:root {
  color-scheme: light;
  --canvas: #edf1f7;
  --surface: #ffffff;
  --surface-muted: #f2f5f9;
  --surface-strong: #e7ecf3;
  --surface-subtle: #fafbfd;
  --ink: #111318;
  --ink-soft: #343a43;
  --ink-muted: #626b77;
  --ink-faint: #676f7b;
  --border: #d8e0e9;
  --border-strong: #c3ccd8;
  --control-border: #858f9b;
  --brand: #15181d;
  --brand-hover: #252a31;
  --accent: #4357e6;
  --accent-soft: #eef0ff;
  --success: #147a58;
  --success-soft: #e9f6f0;
  --warning: #9b6116;
  --warning-soft: #fff4df;
  --danger: #bd3949;
  --danger-soft: #fdecef;
  --info: #2969b1;
  --info-soft: #eaf2fb;
  --glass-surface: rgba(255, 255, 255, 0.78);
  --glass-surface-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.82);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --radius-control: 12px;
  --radius-card: 18px;
  --radius-panel: 24px;
  --shadow-card: 0 1px 2px rgba(20, 27, 39, 0.025), 0 10px 28px rgba(20, 27, 39, 0.055), 0 28px 64px rgba(53, 67, 91, 0.035);
  --shadow-card-hover: 0 2px 4px rgba(20, 27, 39, 0.035), 0 16px 36px rgba(20, 27, 39, 0.08), 0 34px 72px rgba(53, 67, 91, 0.055);
  --shadow-float: 0 28px 80px rgba(17, 22, 31, 0.18), 0 8px 24px rgba(17, 22, 31, 0.08);
  --shadow-menu: 0 18px 46px rgba(17, 22, 31, 0.13), 0 3px 10px rgba(17, 22, 31, 0.06);
  --shadow-shell: 0 20px 56px rgba(31, 42, 61, 0.1), 0 3px 12px rgba(31, 42, 61, 0.045);
  --shadow-dock: 0 18px 48px rgba(24, 32, 47, 0.16), 0 4px 14px rgba(24, 32, 47, 0.08);
  --ease-ui: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-fast: 160ms;
  --motion-page: 220ms;
  --sidebar-width: 232px;
  --header-height: 70px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  background: var(--canvas);
  overflow-x: clip;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 14px);
  scroll-padding-bottom: 82px;
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 0%, rgba(76, 94, 235, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 6%, rgba(92, 168, 185, 0.1), transparent 38rem),
    radial-gradient(circle at 70% 94%, rgba(150, 125, 216, 0.07), transparent 32rem),
    linear-gradient(180deg, #f8faff 0%, var(--canvas) 44%, #edf1f6 100%);
  font-size: 14px;
  line-height: 1.5;
}

body.dialog-open {
  overflow: hidden;
}

body.operation-busy {
  cursor: progress;
}

body.operation-busy::after {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 34%;
  height: 3px;
  content: "";
  background: var(--accent);
  box-shadow: 0 1px 8px rgba(64, 84, 216, 0.35);
  animation: operation-progress 1.15s ease-in-out infinite;
}

@keyframes operation-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

#app {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: transparent;
}

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

button,
a,
select,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

img {
  max-width: 100%;
}

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

h1 {
  margin-bottom: 6px;
  font-size: clamp(1.75rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

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

.skip-link {
  position: fixed;
  z-index: 999;
  top: calc(10px + env(safe-area-inset-top));
  left: calc(10px + env(safe-area-inset-left));
  padding: 10px 14px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius-control);
  transform: translateY(-150%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.deployment-indicator {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 6px;
  color: #70440d;
  background: #fff4df;
  border: 1px solid #e8c98f;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 6px 18px rgba(112, 68, 13, 0.12);
  font-size: 10px;
  letter-spacing: 0.015em;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.deployment-indicator[hidden] {
  display: none;
}

.deployment-indicator strong {
  font-size: inherit;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 3px solid #3347c8;
  outline-offset: 2px;
}

.boot-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
}

.boot-copy {
  display: grid;
  gap: 2px;
}

.boot-copy strong {
  font-size: 17px;
}

.boot-copy span {
  color: var(--ink-muted);
}

.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #55585b;
  border: 1px solid rgba(17, 19, 24, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(17, 19, 24, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.34);
}

.brand-mark--large {
  width: 72px;
  height: 72px;
  border-radius: 19px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-home-link {
  display: block;
  min-width: 0;
  color: inherit;
  border-radius: 12px;
  text-decoration: none;
}

.brand-home-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  line-height: 1.1;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 550;
}

/* Login */
.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  background: var(--surface);
}

.login-brand-panel {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  color: #f7f8f9;
  background:
    radial-gradient(circle at 75% 25%, rgba(118, 126, 139, 0.25), transparent 30%),
    radial-gradient(circle at 25% 88%, rgba(83, 104, 245, 0.18), transparent 28%),
    #111318;
}

.login-brand-panel::after {
  position: absolute;
  right: -145px;
  bottom: -150px;
  width: 560px;
  height: 420px;
  content: "";
  background: url("/assets/avenox-logo-ui.png") center / cover no-repeat;
  border-radius: 64px;
  opacity: 0.055;
  transform: rotate(-8deg);
  pointer-events: none;
}

.login-brand-panel .brand-copy small {
  color: #aeb5be;
}

.login-brand-message {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 80px 0;
}

.login-eyebrow {
  margin-bottom: 18px;
  color: #aeb6c0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-brand-message h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 620;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.login-brand-message p {
  max-width: 540px;
  margin-bottom: 0;
  color: #b9c0c8;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.login-proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-proof span {
  padding: 7px 10px;
  color: #cbd0d6;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 6vw, 84px);
  background:
    radial-gradient(circle at 92% 4%, rgba(67, 87, 230, 0.11), transparent 28rem),
    radial-gradient(circle at 8% 96%, rgba(132, 151, 180, 0.13), transparent 30rem),
    #f4f7fa;
}

.login-card {
  width: min(100%, 470px);
  padding: clamp(26px, 3.6vw, 38px);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  box-shadow: var(--glass-highlight), var(--shadow-float);
}

.login-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 15px;
}

.login-workspace-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.login-workspace-option {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 12px;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui);
}

.login-workspace-option:hover,
.login-workspace-option:focus-visible {
  color: var(--ink);
  border-color: #c7cbd4;
  box-shadow: 0 8px 22px rgba(21, 24, 30, 0.07);
}

.login-workspace-option.is-active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink), 0 10px 24px rgba(17, 19, 24, 0.08);
}

.login-workspace-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
}

.login-workspace-option strong,
.login-workspace-option small {
  display: block;
}

.login-workspace-option strong {
  font-size: 12px;
}

.login-workspace-option small {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.35;
}

.login-card > .login-role-note {
  margin-bottom: 18px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.45;
}

.auth-setup-notice {
  display: grid;
  gap: 7px;
  padding: 14px;
  color: #6b4a0a;
  background: var(--warning-soft);
  border: 1px solid #ead7ac;
  border-radius: 12px;
}

.auth-setup-notice strong {
  color: #402e0c;
  font-size: 12px;
}

.auth-setup-notice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.auth-setup-notice code {
  overflow-wrap: anywhere;
  color: #5a430f;
  font-family: var(--font-mono);
  font-size: 9px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: rgba(240, 243, 247, 0.92);
  border: 1px solid rgba(156, 166, 179, 0.34);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
}

.login-footnote {
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.login-secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 9px;
  padding-top: 20px;
  margin-top: 22px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.login-secondary a {
  color: var(--accent);
  font-weight: 680;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-stack,
.auth-form {
  display: grid;
  gap: 12px;
}

.auth-provider-button {
  width: 100%;
  min-height: 46px;
  font-size: 13px;
}

.google-mark {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #365ec9;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--ink-faint);
  font-size: 10px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  content: "";
  background: var(--border);
}

.auth-help {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  text-align: center;
}

.auth-email-summary {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  background: var(--surface-muted);
  border-radius: 10px;
  font-size: 12px;
}

.auth-email-summary span {
  color: var(--ink-muted);
  font-size: 10px;
}

.auth-code-input {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  text-align: center;
}

.auth-callback-card {
  display: grid;
  width: min(100%, 440px);
  justify-items: center;
  padding: 36px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-menu);
}

.auth-callback-card h1 {
  margin-top: 20px;
}

.auth-callback-card p {
  margin: 0;
  color: var(--ink-muted);
}

.application-card {
  width: min(100%, 560px);
}

.application-card .form-actions {
  margin-top: 0;
}

.application-identity-grid {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.application-verification {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface-subtle);
}

.application-verification[hidden] {
  display: none;
}

.application-verification .field {
  margin: 0;
}

.application-verification .code-input {
  max-width: 190px;
  letter-spacing: 0.18em;
  font-variant-numeric: tabular-nums;
}

.application-verification .button {
  justify-self: start;
}

.application-privacy {
  margin: 18px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
  text-align: center;
}

.application-success {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  place-items: center;
}

.application-success-card {
  width: min(100%, 520px);
  padding: 38px;
  text-align: center;
}

.application-success-card p {
  margin: 0 auto 24px;
  color: var(--ink-muted);
}

.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
}

/* App shell */
.app-shell {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.sidebar {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  padding: 18px 14px;
  overflow-x: clip;
  background: transparent;
  border: 0;
  isolation: isolate;
}

.sidebar::before {
  position: absolute;
  z-index: -1;
  inset: 10px;
  content: "";
  background: rgba(250, 251, 253, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 25px;
  box-shadow: var(--glass-highlight), var(--shadow-shell);
  pointer-events: none;
}

.sidebar-brand {
  padding: 0 7px 25px;
}

.side-nav {
  display: grid;
  gap: 3px;
}

.nav-link {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  color: var(--ink-muted);
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 570;
  transition: color var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(255, 255, 255, 0.7);
}

.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(31, 42, 61, 0.075), inset 0 1px 0 #fff;
  font-weight: 660;
}

.nav-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: currentColor;
  font-size: 14px;
  border-radius: 8px;
  transition: color var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
}

.nav-icon .ui-icon {
  width: 15px;
  height: 15px;
}

.login-workspace-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.topbar-signout .ui-icon {
  width: 9px;
  height: 9px;
}

.nav-link[aria-current="page"] .nav-icon {
  color: #fff;
  background: linear-gradient(145deg, #6271ef 0%, #4053dd 100%);
  box-shadow: 0 6px 14px rgba(67, 87, 230, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.account-menu {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  cursor: pointer;
  background: transparent;
  border-radius: 11px;
  text-align: left;
  transition: background-color 130ms ease, transform 130ms ease;
}

.account-menu:hover {
  background: var(--surface-muted);
}

.account-menu:active {
  transform: translateY(1px);
}

.account-menu-copy {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.account-menu-copy strong,
.account-menu-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu-copy strong {
  font-size: 12px;
}

.account-menu-copy span {
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: capitalize;
}

.account-caret {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
}

.app-main {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 40px;
  background: transparent;
  border: 0;
  isolation: isolate;
}

.topbar::before {
  position: absolute;
  z-index: -1;
  inset: 8px 24px 0;
  content: "";
  background: rgba(249, 251, 254, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: var(--glass-highlight), var(--shadow-shell);
  pointer-events: none;
}

.app-shell.is-route-loading .topbar::after {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent 0%, var(--accent) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: route-progress 900ms ease-in-out infinite;
}

@keyframes route-progress {
  to { transform: translateX(100%); }
}

.topbar-title {
  min-width: 0;
}

.topbar-title strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-title span {
  display: block;
  color: var(--ink-muted);
  font-size: 11px;
}

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

.topbar-account {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 6px;
  place-items: center;
  cursor: pointer;
  background: transparent;
  border-radius: 50%;
  transition: background-color 130ms ease, transform 130ms ease;
}

.topbar-account:hover {
  background: var(--surface-strong);
}

.topbar-account:active {
  transform: translateY(1px);
}

.topbar-signout {
  position: absolute;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--canvas);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 800;
}

.mobile-brand,
.mobile-nav {
  display: none;
}

.mobile-nav-link {
  transition: color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.mobile-nav-link small {
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
}

.mobile-nav-link:active {
  transform: translateY(1px);
}

.page {
  width: 100%;
  max-width: 1600px;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  min-width: 0;
  padding: 40px 40px 80px;
  margin: 0 auto;
  opacity: 1;
  transition: opacity var(--motion-fast) var(--ease-ui);
}

.app-shell.is-route-loading .page {
  opacity: 1;
  pointer-events: none;
}

#main-content,
#main-content h1,
.dialog-error,
.form-error {
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}

.page-header-copy {
  min-width: 0;
}

.page-header-copy h1,
.lead-title-line {
  min-width: 0;
  overflow-wrap: anywhere;
}

.page-header-copy p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

.page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--ink-muted);
  color: #525da3;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.section-heading > div {
  min-width: 0;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 13px;
}

.section-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}

.section-link:hover {
  text-decoration: underline;
}

.stack {
  display: grid;
  gap: 22px;
}

.stack--tight {
  display: grid;
  gap: 12px;
}

.space-top {
  margin-top: 16px;
}

.panel-gap {
  margin-bottom: 15px;
}

.panel-gap-lg {
  margin-bottom: 18px;
}

.section-heading--flush {
  margin: 0;
}

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

.empty-inline {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 24px;
}

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

.lead-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 360px);
  align-items: start;
  gap: 24px;
}

.lead-layout > * {
  min-width: 0;
}

.lead-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  min-width: 0;
  gap: 16px;
}

.release-workflow {
  display: grid;
  gap: 18px;
}

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

.release-step {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.release-step.is-current {
  background: var(--surface);
  border-color: var(--border-strong);
  box-shadow: 0 10px 28px rgba(19, 24, 33, 0.06);
}

.release-step.is-complete {
  background: var(--success-soft);
  border-color: #cce8dc;
}

.release-step.is-locked {
  color: var(--ink-muted);
}

.release-step-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}

.release-step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.release-step.is-complete .release-step-number {
  color: var(--success);
  border-color: #b8ddce;
}

.release-step-heading strong,
.release-owner strong {
  display: block;
  font-size: 13px;
}

.release-step-heading p,
.release-locked p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.release-owner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.release-owner small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 11px;
}

.card,
.panel {
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.card {
  border-radius: var(--radius-card);
}

.panel {
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-panel);
}

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

.panel-section {
  padding: 20px;
}

.panel-section + .panel-section {
  border-top: 1px solid var(--border);
}

/* Controls */
.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 670;
  line-height: 1;
  transition: background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.button:active:not([disabled]) {
  transform: translateY(0);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
}

.button--primary {
  color: #fff;
  background: linear-gradient(145deg, #2b3039 0%, #171a20 58%, #242944 100%);
  border-color: var(--brand);
  box-shadow: 0 7px 18px rgba(17, 19, 24, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button--primary:hover:not([disabled]) {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 10px 24px rgba(17, 19, 24, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 4px 12px rgba(17, 19, 24, 0.045);
}

.button--secondary:hover:not([disabled]) {
  background: var(--surface-muted);
}

.button--ghost {
  color: var(--ink-muted);
  background: transparent;
}

.button--ghost:hover:not([disabled]) {
  color: var(--ink);
  background: var(--surface-muted);
}

.button--danger {
  color: var(--danger);
  background: rgba(255, 255, 255, 0.92);
  border-color: #e9bbc1;
}

.button--small {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 12px;
}

.button--full {
  width: 100%;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-muted);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 12px rgba(17, 19, 24, 0.045);
  transition: color var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-muted);
  border-color: var(--border-strong);
}

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

.field label,
.field-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 680;
}

.input,
.select,
.textarea {
  width: 100%;
  color: var(--ink);
  background: #fcfdff;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  box-shadow: inset 0 1px 2px rgba(17, 19, 24, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui);
}

.input,
.select {
  min-height: 41px;
  padding: 8px 11px;
}

.select {
  cursor: pointer;
}

.textarea {
  min-height: 112px;
  padding: 10px 11px;
  resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
  color: #69727e;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(67, 87, 230, 0.13), inset 0 1px 2px rgba(17, 19, 24, 0.025);
}

.field-help {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.field-error {
  margin: 0;
  color: #9d2637;
  font-size: 11px;
  font-weight: 650;
}

.field-error[hidden] {
  display: none;
}

.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: #c33b4f;
}

.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  border-color: #b72f43;
  box-shadow: 0 0 0 3px rgba(183, 47, 67, 0.12);
}

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

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

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.search-field {
  position: relative;
}

.search-field .input {
  padding-left: 36px;
}

.search-field::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  content: "⌕";
  color: var(--ink-muted);
  font-size: 17px;
  transform: translateY(-52%);
  pointer-events: none;
}

/* Status */
.status-badge,
.stage-badge,
.assignment-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge::before,
.assignment-badge::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status--neutral,
.assignment-badge {
  color: #616a75;
  background: #edf0f2;
}

.status--info,
.assignment-badge--assigned {
  color: var(--info);
  background: var(--info-soft);
}

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

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

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

.stage-badge {
  color: #464f5a;
  background: #eef0f3;
  text-transform: capitalize;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.lock-banner {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 12px;
}

.notice {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border-radius: 11px;
  font-size: 12px;
}

.lock-banner {
  color: #7b2733;
  background: var(--danger-soft);
  border: 1px solid #f3cbd0;
}

.lock-banner--closed {
  color: #11664a;
  background: var(--success-soft);
  border-color: #cce8dc;
}

.lock-banner + .lead-layout,
.lock-banner + .queue-navigator {
  margin-top: 16px;
}

.notice--warning {
  color: #6c4812;
  background: var(--warning-soft);
  border: 1px solid #efddb8;
}

.notice--info {
  color: #24588e;
  background: var(--info-soft);
  border: 1px solid #cee0f4;
}

.notice--danger {
  color: #7b2733;
  background: var(--danger-soft);
  border: 1px solid #f3cbd0;
}

.notice strong,
.lock-banner strong {
  display: block;
  margin-bottom: 2px;
}

/* Compact, keyboard-native seller disclosures */
.sales-disclosure {
  min-width: 0;
}

.sales-disclosure > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.sales-disclosure > summary::-webkit-details-marker {
  display: none;
}

.sales-disclosure > summary::after {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  content: "⌄";
  color: var(--ink-muted);
  background: rgba(17, 19, 24, 0.045);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  transform: rotate(0deg);
  transition: color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.sales-disclosure[open] > summary::after {
  transform: rotate(180deg);
}

.sales-disclosure > summary:hover::after {
  color: var(--ink);
  background: rgba(17, 19, 24, 0.08);
}

.sales-disclosure > summary:focus-visible {
  outline: 3px solid rgba(78, 100, 228, 0.28);
  outline-offset: -3px;
  border-radius: 11px;
}

.sales-disclosure-heading,
.sales-disclosure > summary > span:first-child {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.sales-disclosure-heading > strong,
.sales-disclosure > summary > span:first-child > strong {
  font-size: 15px;
  line-height: 1.25;
}

.sales-disclosure-heading > small,
.sales-disclosure > summary > span:first-child > small {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.sales-disclosure-status {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.sales-disclosure-body {
  padding: 14px 15px 16px;
  border-top: 1px solid rgba(36, 88, 142, 0.12);
}

.sales-disclosure-body > :first-child {
  margin-top: 0;
}

.sales-disclosure-body > :last-child {
  margin-bottom: 0;
}

.seller-commission-disclosure {
  color: #24588e;
  background: var(--info-soft);
  border: 1px solid #cee0f4;
  border-radius: 11px;
}

.seller-commission-disclosure > summary {
  color: #24588e;
}

.seller-commission-disclosure > summary::after {
  color: #24588e;
  background: rgba(36, 88, 142, 0.08);
}

.seller-commission-disclosure .sales-disclosure-body {
  font-size: 12px;
  line-height: 1.55;
}

.seller-lead-optional-details {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.seller-lead-optional-details[open] > summary {
  border-bottom: 0;
}

/* Dashboard */
.action-count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.action-count {
  position: relative;
  display: grid;
  min-height: 128px;
  align-content: space-between;
  padding: 17px;
  overflow: hidden;
  cursor: default;
  text-align: left;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
  transition: border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui);
}

a.action-count {
  cursor: pointer;
}

a.action-count::after {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(67, 87, 230, 0.7), transparent);
  border-radius: 0 0 999px 999px;
  opacity: 0.72;
  pointer-events: none;
}

a.action-count:hover,
a.action-count:focus-visible {
  border-color: rgba(161, 171, 184, 0.48);
  box-shadow: var(--glass-highlight), var(--shadow-card-hover);
}

.action-count-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
}

.action-count-value {
  margin-top: 18px;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}

.action-count-foot {
  margin-top: 8px;
  color: var(--ink-muted);
  font-size: 11px;
}

.money-overview {
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.money-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}

.money-overview-heading h2 {
  margin: 0;
  font-size: 14px;
}

.money-overview-heading p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
}

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

.money-overview-metric {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 104px;
  align-content: center;
  gap: 5px;
  padding: 18px;
  border-right: 1px solid var(--border);
  transition: background-color var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.money-overview-metric:last-child {
  border-right: 0;
}

.money-overview-metric::before {
  position: absolute;
  top: 0;
  left: 18px;
  width: 28px;
  height: 2px;
  content: "";
  background: var(--ink-faint);
  border-radius: 0 0 2px 2px;
}

.money-overview-metric--collected::before,
.money-overview-metric--paid::before {
  background: var(--success);
}

.money-overview-metric--refunded::before {
  background: var(--danger);
}

.money-overview-metric--payable::before {
  background: var(--accent);
}

.money-overview-metric:hover {
  background: rgba(247, 249, 252, 0.82);
}

.money-overview-label,
.money-overview-detail {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-overview-label {
  font-weight: 680;
}

.money-overview-metric strong {
  overflow: hidden;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.money-overview-arrow {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: var(--ink-faint);
  font-size: 12px;
  transition: color 130ms ease, transform 130ms ease;
}

.money-overview-metric:hover .money-overview-arrow {
  color: var(--ink);
}

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

/* Salesperson onboarding */
.onboarding-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(24px, 4vw, 42px);
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(64, 84, 216, 0.08), transparent 34%),
    var(--surface);
}

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

.onboarding-hero-copy h2 {
  margin-bottom: 9px;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
}

.onboarding-hero-copy > p {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--ink-muted);
}

.onboarding-hero-action {
  display: grid;
  min-width: 190px;
  gap: 8px;
  text-align: center;
}

.onboarding-hero-action small {
  max-width: 300px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: right;
}

.boundary-panel {
  max-width: 760px;
}

.boundary-panel > p {
  max-width: 660px;
  color: var(--ink-muted);
}

.lead-import-form {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
}

.onboarding-hero-action span {
  color: var(--ink-faint);
  font-size: 10px;
}

.onboarding-progress-summary {
  display: grid;
  width: min(220px, 100%);
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.onboarding-progress-summary strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  line-height: 1;
}

.onboarding-progress-summary strong span {
  color: var(--ink-faint);
  font-size: 14px;
}

.onboarding-progress-summary small {
  color: var(--ink-muted);
  font-size: 10px;
}

.onboarding-progress-track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface-strong);
  border: 0;
  border-radius: 999px;
}

.onboarding-progress-track::-webkit-progress-bar {
  background: var(--surface-strong);
  border-radius: inherit;
}

.onboarding-progress-track::-webkit-progress-value {
  background: var(--accent);
  border-radius: inherit;
}

.onboarding-progress-track::-moz-progress-bar {
  background: var(--accent);
  border-radius: inherit;
}

.onboarding-progress-panel {
  margin-bottom: 18px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.onboarding-step {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 15px;
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: 12px;
}

.onboarding-step.is-current {
  background: var(--warning-soft);
  border-color: #efddb8;
}

.onboarding-step.is-complete {
  background: var(--success-soft);
}

.onboarding-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 750;
}

.onboarding-step strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.onboarding-step p {
  margin: 3px 0 10px;
  color: var(--ink-muted);
  font-size: 10px;
}

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

.onboarding-task-panel {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 18px;
}

.onboarding-task-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.onboarding-task-head h2 {
  margin-bottom: 7px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.onboarding-task-head p {
  max-width: 690px;
  margin: 0;
  color: var(--ink-muted);
}

.onboarding-task-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.secure-provider-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.secure-provider-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: #635bff;
  border-radius: 11px;
  font-size: 17px;
  font-weight: 800;
}

.secure-provider-card strong,
.secure-provider-card p {
  display: block;
}

.secure-provider-card p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.secure-provider-card small {
  display: block;
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 9px;
}

.onboarding-task-actions {
  display: flex;
  min-width: min(280px, 100%);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.onboarding-task-actions .button {
  flex: 1 1 132px;
}

.onboarding-task-actions small {
  max-width: 240px;
  color: var(--ink-faint);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}

.payout-return-notice,
.payout-action-feedback,
.stripe-admin-account {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.payout-return-notice .button,
.payout-action-feedback .button,
.stripe-admin-account .button {
  justify-self: end;
}

.payout-boundary-note {
  border-style: dashed;
}

.weekly-payout-schedule p {
  margin: 0;
  line-height: 1.55;
}

.payout-checking {
  display: grid;
  min-height: 220px;
  place-content: center;
  gap: 7px;
  text-align: center;
}

.payout-checking p,
.stripe-admin-account span,
.stripe-admin-account code {
  color: var(--ink-muted);
}

.stripe-admin-account {
  margin-top: 16px;
}

.stripe-admin-account span,
.stripe-admin-account code {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

.stripe-admin-account code {
  width: fit-content;
  padding: 3px 6px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 5px;
}

.payout-record-content {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.payout-record-actions {
  flex-wrap: wrap;
  margin-top: 0;
}

.onboarding-confirm-form,
.agreement-sign-form,
.training-quiz {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

/* W9_WORKFLOW_APPROVAL:styles-base:begin */
.w9-form {
  display: grid;
  width: 100%;
  max-width: 940px;
  gap: 14px;
  margin-inline: auto;
}

.w9-wizard-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.w9-wizard-progress > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: var(--ink-muted);
  border-radius: 10px;
}

.w9-wizard-progress b {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
}

.w9-wizard-progress small {
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w9-wizard-progress > .is-current {
  color: var(--ink);
  background: var(--accent-soft);
}

.w9-wizard-progress > .is-current b {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.w9-wizard-progress > .is-complete b {
  color: var(--success);
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 25%, var(--border));
}

.w9-wizard-panel {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.5vw, 24px);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.w9-wizard-panel[hidden] {
  display: none;
}

.w9-step-heading {
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.w9-step-heading > span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.w9-step-heading h4 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.w9-step-heading p,
.w9-help-grid p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.w9-help-grid > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.w9-help-grid strong {
  font-size: 12px;
}

.w9-approved-name > span {
  display: block;
  line-height: 1.5;
}

.w9-approved-name .w9-approved-name-value {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.w9-individual-guidance {
  display: grid;
  gap: 5px;
  padding: 14px;
  color: var(--ink-soft);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.w9-individual-guidance strong {
  color: var(--ink);
  font-size: 12px;
}

.w9-individual-guidance p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.w9-individual-guidance[hidden],
.w9-backup-hold-warning[hidden] {
  display: none;
}

.w9-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.w9-wizard-actions > span {
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 12px;
}

.w9-form-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  color: #fff;
  background: #171b22;
  border-radius: 14px;
}

.w9-form-kicker {
  display: block;
  margin-bottom: 7px;
  color: #c9ced8;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.w9-form-intro h3 {
  max-width: 620px;
  margin: 0 0 6px;
  color: #fff;
  font-size: clamp(1.15rem, 2.3vw, 1.7rem);
  line-height: 1.12;
}

.w9-form-intro p {
  margin: 0;
  color: #c9ced8;
  font-size: 12px;
}

.w9-reference-links {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  justify-items: end;
}

.w9-reference-links a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.w9-section,
.w9-certification {
  display: grid;
  min-width: 0;
  gap: 14px;
  padding: clamp(18px, 3vw, 25px);
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.w9-section > legend {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.w9-section > legend > span {
  display: inline-grid;
  min-width: 34px;
  min-height: 24px;
  padding: 4px 7px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px;
}

.w9-section-help {
  margin: -4px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.w9-inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.w9-stacked-choices {
  display: grid;
  gap: 8px;
}

.w9-choice {
  display: grid;
  min-height: 46px;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.w9-choice:hover {
  border-color: var(--border-strong);
}

.w9-choice:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 104, 245, 0.12);
}

.w9-choice:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.w9-choice input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.w9-conditional[hidden] {
  display: none;
}

.w9-conditional {
  padding: 14px;
  background: var(--surface-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 11px;
}

.w9-form-grid {
  align-items: start;
}

.w9-address-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr);
  align-items: start;
  gap: 12px;
}

.w9-requester {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border-radius: 9px;
  font-size: 12px;
}

.w9-requester strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.w9-tin-input,
.w9-signature-input {
  font-variant-numeric: tabular-nums;
}

.w9-tin-input {
  max-width: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.w9-backup-note {
  min-height: 18px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
}

.w9-entry-review {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 2.5vw, 22px);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.w9-entry-review .section-heading {
  margin-bottom: 0;
}

.w9-entry-review .section-heading h4,
.w9-entry-review .section-heading p {
  margin: 0;
}

.w9-review-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.w9-entry-review .section-heading p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.w9-entry-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.w9-entry-review-grid > div {
  min-width: 0;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.w9-entry-review-grid dt {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.w9-entry-review-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 670;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.w9-certification {
  padding: clamp(20px, 3vw, 28px);
  color: #1c2129;
  background: #fcfcfa;
  border-color: #aeb4bd;
  box-shadow: inset 0 0 0 4px #f2f2ef;
}

.w9-certification-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 2px solid #252931;
}

.w9-certification-head > span {
  align-self: start;
  padding: 5px 8px;
  color: #fff;
  background: #1c2129;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.w9-certification-head h4,
.w9-certification-head p {
  margin: 0;
}

.w9-certification-head h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.w9-certification-head p {
  margin-top: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.w9-certification ol {
  display: grid;
  gap: 9px;
  padding-left: 24px;
  margin: 0;
}

.w9-certification li {
  padding-left: 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.55;
}

.w9-certification li.is-crossed-out span {
  color: #7e4149;
  text-decoration: line-through 2px;
}

.w9-certification-instructions,
.w9-us-person-definition {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.w9-signature-block {
  display: grid;
  gap: 13px;
  padding-top: 18px;
  border-top: 2px solid #252931;
}

.w9-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.w9-submit-row > span {
  color: var(--ink-muted);
  font-size: 12px;
}

.w9-summary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.w9-summary-card .section-heading {
  margin-bottom: 0;
}

.w9-summary-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.w9-summary-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.w9-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.w9-summary-card .w9-protected-note {
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  line-height: 1.5;
}

.w9-sensitive-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.w9-sensitive-action strong {
  display: block;
  font-size: 12px;
}

.w9-record-content {
  display: grid;
  gap: 14px;
  padding: 0 12px 12px;
}

.w9-correction-disclosure {
  border: 1px solid var(--border);
  border-radius: 11px;
}

.w9-correction-disclosure > summary {
  padding: 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.w9-correction-disclosure > .w9-form {
  padding: 0 12px 12px;
}

.w9-form .field-help,
.w9-form .field-error {
  font-size: 12px;
  line-height: 1.5;
}
/* W9_WORKFLOW_APPROVAL:styles-base:end */

.attestation-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.attestation-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 12px;
}

.attestation-list li::before {
  position: absolute;
  left: 2px;
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.onboarding-receipt {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px;
  color: #0d5b42;
  background: var(--success-soft);
  border: 1px solid #cce8db;
  border-radius: 12px;
}

.onboarding-receipt > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  font-weight: 800;
}

.onboarding-receipt p,
.onboarding-receipt time {
  display: block;
  margin: 3px 0 0;
  color: #39715e;
  font-size: 10px;
}

.agreement-document {
  max-height: 520px;
  padding: clamp(20px, 3vw, 34px);
  overflow-y: auto;
  color: #20242a;
  background: #fcfcfb;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: inset 0 0 0 5px #f5f5f3;
  scroll-padding-top: 20px;
}

.agreement-document header {
  padding-bottom: 20px;
  margin-bottom: 22px;
  border-bottom: 2px solid #252931;
}

.agreement-document header > span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.agreement-document h3 {
  margin: 7px 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.agreement-document header small {
  color: var(--ink-muted);
}

.agreement-document section + section {
  margin-top: 22px;
}

.agreement-document h4 {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.agreement-document p {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.7;
}

.agreement-transcript {
  margin: 0;
  overflow: visible;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.legal-document-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.legal-document-card {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 24px);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(18, 22, 30, 0.05);
}

.legal-document-card.is-signed {
  border-color: #bddfce;
  box-shadow: 0 12px 30px rgba(21, 117, 84, 0.06);
}

.legal-document-card.is-locked {
  background: var(--surface-muted);
}

.legal-document-head,
.legal-document-actions,
.admin-legal-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.legal-document-head {
  align-items: flex-start;
}

.legal-document-head h3 {
  margin: 5px 0 3px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.legal-document-head p,
.admin-legal-record span,
.admin-legal-record small {
  display: block;
  margin: 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.legal-document-sequence {
  color: var(--ink-faint);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-document-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.legal-document-review {
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-document-review summary {
  padding: 13px 15px;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 720;
}

.legal-document-review .agreement-document {
  max-height: 470px;
  margin: 0 12px 12px;
}

.legal-document-card .agreement-sign-form {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.legal-signature-boundary {
  margin-top: 14px;
}

.legal-record-boundary {
  padding: 0 14px 14px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.55;
}

.legal-document-card > .legal-record-boundary {
  padding: 0;
}

.legal-document-list--correction {
  padding: 0 12px 12px;
}

.admin-legal-records {
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.admin-legal-records .section-heading {
  margin-bottom: 0;
}

.admin-legal-records .section-heading h3 {
  margin: 0 0 3px;
}

.legal-document-list--admin {
  gap: 9px;
  margin-top: 14px;
}

.admin-legal-record {
  flex-wrap: wrap;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.admin-legal-record > .agreement-sign-form,
.admin-legal-record > .notice {
  width: 100%;
  flex: 1 0 100%;
}

.admin-legal-record > .agreement-sign-form {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.admin-legal-record.is-signed {
  border-color: #cce8db;
}

.admin-legal-record strong {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
}

.admin-legal-record small {
  margin-top: 3px;
  font-size: 9px;
}

.agreement-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -10px;
}

.agreement-toolbar span {
  color: var(--ink-faint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.electronic-consent {
  padding: 14px;
  color: var(--ink-soft);
  background: var(--info-soft);
  border: 1px solid #ccdef0;
  border-radius: 11px;
}

.electronic-consent p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.55;
}

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

.training-lessons article {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.training-lessons article > span,
.training-question legend > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 750;
}

.training-lessons p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.training-question {
  padding: 16px;
  margin: 0;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.training-question legend {
  display: grid;
  width: 100%;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
}

.training-question > div {
  display: grid;
  gap: 7px;
}

.training-question label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
  transition: background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui);
}

.training-question label:hover {
  border-color: var(--border-strong);
}

.training-question label:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(67, 87, 230, 0.12);
}

.training-question label:has(input:checked) {
  background: var(--accent-soft);
  border-color: #cdd3ff;
}

.training-question input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.onboarding-submit-panel {
  justify-items: center;
  padding-block: clamp(34px, 6vw, 64px);
  text-align: center;
}

.success-mark--neutral {
  color: var(--accent);
  background: var(--accent-soft);
}

.onboarding-submit-panel > p {
  max-width: 620px;
  margin: -12px 0 4px;
  color: var(--ink-muted);
}

.onboarding-package-summary {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.onboarding-package-summary > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 13px 9px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.onboarding-package-summary > div > span {
  color: var(--success);
  font-weight: 800;
}

.onboarding-package-summary strong {
  font-size: 10px;
}

.onboarding-package-summary small {
  color: var(--ink-faint);
  font-size: 8px;
}

.privacy-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.privacy-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

.privacy-list li::before {
  position: absolute;
  left: 1px;
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.confirmation-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui);
}

.confirmation-check:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(67, 87, 230, 0.12);
}

.confirmation-check:has(input:checked) {
  background: var(--accent-soft);
  border-color: #cdd3ff;
}

.confirmation-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.confirmation-check strong,
.confirmation-check small {
  display: block;
}

.confirmation-check small {
  margin-top: 2px;
  color: var(--ink-muted);
  line-height: 1.45;
}

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

.admin-review-gate {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid #f3ccd2;
  border-radius: 10px;
}

.admin-review-gate.is-complete {
  color: var(--success);
  background: var(--success-soft);
  border-color: #cce8db;
}

.admin-review-gate > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  font-weight: 800;
}

.admin-review-gate strong,
.admin-review-gate small {
  display: block;
}

.admin-review-gate strong {
  color: var(--ink);
  font-size: 11px;
}

.admin-review-gate small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 9px;
}

.agreement-review-disclosure {
  border: 1px solid var(--border);
  border-radius: 11px;
}

.agreement-review-disclosure summary {
  padding: 13px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.agreement-review-disclosure .agreement-document {
  max-height: 340px;
  margin: 0 12px 12px;
}

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

.onboarding-record-list .training-lessons {
  padding: 0 12px 12px;
}

.onboarding-record-list .onboarding-receipt {
  margin: 0 12px 12px;
}

.onboarding-record-list .form-actions {
  padding: 0 12px 12px;
  margin-top: 0;
}

.signature-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0 14px 14px;
  color: var(--ink-muted);
  font-size: 9px;
}

.signature-evidence strong {
  color: var(--ink);
}

.team-onboarding-actions {
  flex-wrap: wrap;
}

.offboarding-panel--complete {
  border-color: #edc6cb;
}

.offboarding-record-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.offboarding-reason {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  margin-top: 17px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.offboarding-reason span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.offboarding-reason p,
.offboarding-danger-zone p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
}

.offboarding-effect-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 17px;
}

.offboarding-effect {
  display: grid;
  min-width: 0;
  min-height: 90px;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.offboarding-effect span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
}

.offboarding-effect strong {
  font-size: 24px;
  line-height: 1;
}

.offboarding-retention-note {
  margin-top: 17px;
}

.offboarding-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid var(--border);
}

.offboarding-danger-zone > div {
  min-width: 0;
}

.offboarding-danger-zone > div > strong {
  display: block;
  margin-bottom: 3px;
}

.offboarding-danger-zone p {
  max-width: 720px;
  font-size: 12px;
}

.offboarding-danger-zone .button {
  flex: 0 0 auto;
}

.offboarding-impact-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.offboarding-impact-list li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.offboarding-impact-list strong {
  color: var(--ink);
}

.offboarding-impact-list span {
  color: var(--ink-muted);
}

.onboarding-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.attention-list,
.compact-list,
.timeline,
.evidence-list,
.script-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.attention-item,
.compact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 69px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.attention-item:last-child,
.compact-item:last-child {
  border-bottom: 0;
}

.attention-item:hover {
  background: #fafbfb;
}

.item-main {
  min-width: 0;
}

.item-title {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 11px;
}

/* Billing */
.billing-setup-notice,
.billing-settlement-warning {
  margin-bottom: 16px;
}

.billing-counts {
  margin-bottom: 16px;
}

.billing-stack {
  display: grid;
  gap: 16px;
}

.billing-section > .empty-inline {
  padding: 26px 20px;
  margin: 0;
  border-top: 1px solid var(--border);
}

.billing-tabs .tab {
  gap: 7px;
}

.billing-tabs .tab strong {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  place-items: center;
  background: rgba(17, 19, 24, 0.07);
  border-radius: 999px;
  font-size: 9px;
}

.billing-list {
  display: grid;
  border-top: 1px solid var(--border);
}

.seller-invoices-disclosure > summary,
.seller-ledger-disclosure > summary,
.seller-deal-history .sales-disclosure > summary {
  padding: 17px 20px;
}

.seller-invoices-disclosure[open] > summary,
.seller-ledger-disclosure[open] > summary,
.seller-deal-history .sales-disclosure[open] > summary {
  border-bottom: 1px solid var(--border);
}

.seller-invoices-disclosure .sales-disclosure-content > .billing-list,
.seller-ledger-disclosure .sales-disclosure-content > .billing-list {
  border-top: 0;
}

.seller-ledger-disclosure .sales-disclosure-content > .empty-inline {
  padding: 26px 20px;
  margin: 0;
}

.seller-invoices-disclosure .invoice-commission-boundary {
  border-top: 1px solid var(--border);
}

.seller-deal-history .compact-list {
  border-top: 0;
}

@media (max-width: 640px) {
  .sales-disclosure > summary {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sales-disclosure > summary::after {
    order: 2;
    margin-left: auto;
  }

  .sales-disclosure-status {
    width: 100%;
    order: 3;
    justify-content: flex-start;
    margin-left: 0;
  }

  .seller-invoices-disclosure > summary,
  .seller-ledger-disclosure > summary,
  .seller-deal-history .sales-disclosure > summary {
    padding: 15px 16px;
  }
}

.billing-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(172px, auto);
  align-items: center;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

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

.billing-row-main {
  display: grid;
  min-width: 0;
  gap: 15px;
}

.billing-row-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.billing-row-heading > div {
  min-width: 0;
}

.billing-row-heading h3 {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

.billing-row-heading p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.billing-kicker {
  display: block;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(100px, 1fr));
  gap: 8px;
}

.billing-candidate-row .billing-summary-grid {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.billing-summary-grid--commission {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.pay-run-review-section {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.pay-run-review-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pay-run-review-heading > div {
  min-width: 0;
}

.pay-run-review-heading h3 {
  margin: 0;
  font-size: 13px;
}

.pay-run-review-heading p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.pay-run-review-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.pay-run-review-item,
.pay-run-decision-record {
  align-items: start;
}

.pay-run-record-ref {
  display: block;
  margin-top: 6px;
  color: var(--ink-faint);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.pay-run-decision-reason {
  padding: 9px 10px;
  margin-top: 9px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.pay-run-decision-reason span {
  display: block;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pay-run-decision-reason p {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pay-run-decision-attestations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.pay-run-decision-attestations .status-badge {
  max-width: 100%;
  white-space: normal;
}

.pay-run-payment-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pay-run-payment-steps > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-content: start;
  gap: 3px 9px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.pay-run-payment-steps > div > span {
  display: grid;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.pay-run-payment-steps strong {
  font-size: 11px;
}

.pay-run-payment-steps p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.45;
}

.pay-run-confirmation-list {
  display: grid;
  gap: 10px;
}

.pay-run-confirmation-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.55fr) minmax(170px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.dialog:has(.pay-run-confirmation-row) {
  width: min(94vw, 760px);
}

.pay-run-confirmation-person strong,
.pay-run-confirmation-person span,
.pay-run-confirmation-person small,
.pay-run-confirmation-row label > span {
  display: block;
}

.pay-run-confirmation-person strong {
  font-size: 11px;
}

.pay-run-confirmation-person span,
.pay-run-confirmation-person small,
.pay-run-confirmation-row label > span {
  margin-bottom: 5px;
  color: var(--ink-muted);
  font-size: 9px;
}

.pay-run-confirmation-person .pay-run-destination-hint {
  padding: 6px 8px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-weight: 680;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pay-run-destination-hint > span {
  margin-bottom: 2px;
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pay-run-confirmation-row .input[readonly] {
  color: var(--ink);
  background: var(--surface-muted);
  font-weight: 760;
}

.dialog:has(.pay-run-exact-destinations) {
  width: min(94vw, 820px);
}

.pay-run-exact-destination-list {
  display: grid;
  gap: 12px;
}

.pay-run-exact-destination {
  display: grid;
  gap: 13px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
}

.pay-run-exact-account {
  display: grid;
  gap: 7px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.pay-run-exact-account > span {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 720;
}

.pay-run-exact-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pay-run-exact-account code {
  min-width: 0;
  flex: 1;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 720;
}

.pay-run-exact-destination-warning {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.pay-run-paid-receipt {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f7fcf9;
  border: 1px solid #bddfce;
  border-radius: 13px;
}

.pay-run-paid-receipt.needs-reconciliation {
  background: #fffaf0;
  border-color: #ead39b;
}

.pay-run-paid-receipt.is-legacy {
  background: #fffaf0;
  border-color: #ead39b;
}

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

.pay-run-payment-receipts {
  overflow: hidden;
  background: #fff;
  border: 1px solid #cce8db;
  border-radius: 11px;
}

.pay-run-recheck-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.pay-run-provider-reference {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  background: var(--surface-muted);
  border-radius: 6px;
  font-size: 9px;
}

.seller-pay-run-item.is-paid {
  border-color: #cce8db;
  background: #fbfefc;
}

.seller-pay-run-item.needs-reconciliation {
  border-color: #ead39b;
  background: #fffaf0;
}

.billing-fact {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 3px;
  padding: 11px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.billing-fact span {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 680;
}

.billing-fact strong,
.billing-fact small {
  overflow-wrap: anywhere;
}

.billing-fact strong {
  font-size: 11px;
}

.billing-fact small {
  color: var(--ink-muted);
  font-size: 9px;
}

.billing-scope {
  padding: 12px 14px;
  background: #fafbfb;
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
}

.billing-scope span {
  display: block;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billing-scope p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.billing-blockers ul {
  padding-left: 18px;
  margin: 6px 0 0;
}

.billing-row-actions {
  display: flex;
  max-width: 270px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.billing-action-note {
  max-width: 190px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: right;
}

.invoice-commission-boundary {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
}

.invoice-commission-boundary strong {
  display: block;
  font-size: 11px;
}

.invoice-commission-boundary p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.invoice-review-dialog,
.invoice-detail-dialog {
  gap: 16px;
}

.invoice-review-total {
  padding: 18px;
  color: #fff;
  background: #171b22;
  border-radius: 13px;
}

.invoice-review-total > span {
  display: block;
  color: #c9ced8;
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-review-total > strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-variant-numeric: tabular-nums;
}

.invoice-review-total > strong small {
  color: #c9ced8;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.invoice-review-total p {
  margin: 5px 0 0;
  color: #c9ced8;
  font-size: 10px;
}

.invoice-confirmations {
  display: grid;
  gap: 8px;
}

.metric-list {
  display: grid;
  gap: 11px;
}

.metric-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(92px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 12px;
}

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

.metric-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  text-align: right;
}

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

.person-row + .person-row {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.person-copy {
  display: grid;
  min-width: 0;
}

.person-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-copy span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-count {
  text-align: right;
}

.person-count strong {
  display: block;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.person-count span {
  color: var(--ink-muted);
  font-size: 9px;
  text-transform: uppercase;
}

/* Discovery jobs */
.discovery-search {
  margin-bottom: 16px;
}

.discovery-search-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(150px, 0.42fr);
  align-items: start;
  gap: 12px;
}

.discovery-search .form-error {
  margin-top: 14px;
}

.discovery-current {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.discovery-job-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.discovery-job-heading {
  min-width: 0;
}

.discovery-job-heading h2 {
  margin: 10px 0 3px;
  overflow-wrap: anywhere;
  font-size: 20px;
}

.discovery-job-heading > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.discovery-job-time {
  color: var(--ink-muted);
  font-size: 10px;
}

.discovery-job-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.discovery-progress-block {
  display: grid;
  gap: 12px;
}

.discovery-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.discovery-progress-copy span {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.discovery-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  appearance: none;
  background: var(--surface-strong);
  border: 0;
  border-radius: 999px;
}

.discovery-progress::-webkit-progress-bar {
  background: var(--surface-strong);
  border-radius: 999px;
}

.discovery-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}

.discovery-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

.discovery-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: #fafbfb;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.discovery-count {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
}

.discovery-count + .discovery-count {
  border-left: 1px solid var(--border);
}

.discovery-count span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-count strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.discovery-result-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.discovery-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.discovery-result:last-child {
  border-bottom: 0;
}

.discovery-result-status {
  margin-top: 9px;
}

.discovery-result-note {
  margin: 7px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.discovery-results-empty {
  padding: 18px 0 4px;
}

.discovery-poll-notice {
  margin: 0;
}

.discovery-recent-list {
  border-top: 1px solid var(--border);
}

.discovery-recent-row .table-actions {
  flex-wrap: wrap;
}

.discovery-empty {
  display: flex;
  min-height: 142px;
  align-items: center;
  gap: 15px;
}

.discovery-empty-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border-radius: 13px;
  font-size: 19px;
}

.discovery-empty h2 {
  margin-bottom: 4px;
}

.discovery-empty p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
}

/* Tabs, filters and tables */
.tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: rgba(226, 232, 240, 0.66);
  border: 1px solid rgba(177, 188, 202, 0.26);
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(17, 19, 24, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  scrollbar-color: #b7bdc6 transparent;
  scrollbar-width: thin;
}

.tabs--workspace {
  margin-bottom: 0;
}

.tabs--workspace .tab {
  flex: 1 1 0;
}

.seller-lead-tabs .tab {
  flex: 1 1 0;
}

.approval-tabs .tab {
  gap: 8px;
}

.approval-tabs .tab strong {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  place-items: center;
  background: rgba(17, 19, 24, 0.07);
  border-radius: 999px;
  font-size: 10px;
}

.approval-row {
  align-items: flex-start;
}

.approval-note {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.approval-note--clamped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.application-answer {
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.application-answer > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.application-answer p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.tabs::-webkit-scrollbar {
  height: 4px;
}

.tabs::-webkit-scrollbar-thumb {
  background: #b7bdc6;
  border-radius: 999px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.panel--flush > .pagination {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border);
}

.pagination > div {
  display: flex;
  gap: 8px;
}

.pagination [aria-disabled="true"] {
  cursor: default;
  opacity: 0.45;
}

.tab {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  color: var(--ink-muted);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: color var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), transform var(--motion-fast) var(--ease-ui);
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(172, 182, 197, 0.28), inset 0 1px 0 #fff, 0 5px 14px rgba(17, 19, 24, 0.075);
}

.filter-panel {
  padding: 15px;
  margin-bottom: 15px;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(140px, 0.72fr)) auto;
  align-items: end;
  gap: 10px;
}

.filter-grid--search {
  grid-template-columns: minmax(220px, 1fr) auto;
}

.filter-grid--team {
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.45fr) auto;
}

.filter-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 13px;
  color: var(--ink-muted);
  font-size: 11px;
}

.data-table-wrap {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.32);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.data-table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
  table-layout: auto;
}

.data-table th {
  padding: 11px 14px;
  color: var(--ink-muted);
  background: #f5f8fc;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f5f7ff;
}

.table-primary {
  display: grid;
  min-width: 190px;
}

.table-primary a,
.table-primary strong {
  overflow: hidden;
  max-width: 320px;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-primary a:hover {
  color: var(--accent);
}

.table-primary a {
  color: #3348cc;
  text-decoration: underline;
  text-decoration-color: rgba(51, 72, 204, 0.34);
  text-underline-offset: 2px;
}

.table-primary span {
  overflow: hidden;
  max-width: 320px;
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.mobile-card-list {
  display: none;
}

.lead-mobile-card {
  padding: 15px;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

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

.lead-mobile-head > .person-row {
  min-width: 0;
  flex: 1;
}

.lead-mobile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 13px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mini-value {
  display: grid;
}

.mini-value span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.mini-value strong {
  margin-top: 2px;
  font-size: 11px;
}

.lead-mobile-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.queue-navigator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.queue-navigator > div:first-child {
  display: grid;
}

.queue-navigator span:first-child {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.queue-navigator strong {
  font-size: 13px;
}

.queue-navigator-actions {
  display: flex;
  gap: 8px;
}

.queue-navigator [aria-disabled="true"] {
  cursor: default;
  opacity: 0.45;
}

/* Lead workspace */
.lead-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 630;
}

.back-link:hover {
  color: var(--ink);
}

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

.info-item {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.info-item span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.info-item strong,
.info-item a {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 580;
}

.info-item a:hover {
  color: var(--accent);
}

.info-item a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 10px;
}

.sales-ai-seller,
.sales-ai-conversation-kit {
  border-color: color-mix(in srgb, var(--accent, #2f6f64) 32%, var(--border));
}

.sales-ai-seller {
  display: grid;
  gap: 0.85rem;
}

.sales-ai-callout {
  padding: 0.95rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius, 12px);
  background: var(--surface-subtle, #f7f8f7);
}

.sales-ai-callout > span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sales-ai-callout p,
.sales-ai-script-boundary p {
  margin: 0;
  white-space: pre-line;
}

.sales-ai-conversation-kit .script-card-editor {
  white-space: pre-wrap;
}

.sales-ai-script-boundary {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--warning, #a76b10);
  background: var(--surface-subtle, #f7f8f7);
}

.info-grid + .signal-grid,
.evidence-list + .signal-grid {
  margin-top: 22px;
}

.signal-card {
  padding: 14px;
  background: #fafbfb;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.signal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 660;
}

.signal-card strong {
  display: block;
  margin: 8px 0 9px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.signal-track {
  height: 5px;
  overflow: hidden;
  background: #e7e9ec;
  border-radius: 999px;
}

.signal-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.signal-fill--0 { width: 0; }
.signal-fill--10 { width: 10%; }
.signal-fill--20 { width: 20%; }
.signal-fill--30 { width: 30%; }
.signal-fill--40 { width: 40%; }
.signal-fill--50 { width: 50%; }
.signal-fill--60 { width: 60%; }
.signal-fill--70 { width: 70%; }
.signal-fill--80 { width: 80%; }
.signal-fill--90 { width: 90%; }
.signal-fill--100 { width: 100%; }

.evidence-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.evidence-item:last-child {
  border-bottom: 0;
}

.evidence-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.evidence-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.evidence-copy p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.evidence-measurement {
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: minmax(0, auto) auto;
  align-items: baseline;
  gap: 3px 12px;
  padding: 10px 12px;
  margin: 8px 0 10px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--border));
  border-radius: 10px;
}

.evidence-measurement > span,
.evidence-measurement > small,
.evidence-measurement > em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
}

.evidence-measurement > b {
  font-size: 15px;
}

.evidence-measurement > small,
.evidence-measurement > em {
  grid-column: 1 / -1;
}

.evidence-explanation {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
}

.evidence-explanation > div {
  display: grid;
  grid-template-columns: minmax(105px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.evidence-explanation dt {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.evidence-explanation dd {
  margin: 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.verified-opener-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  padding: 13px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(83, 104, 245, 0.1), rgba(92, 208, 178, 0.1));
  border: 1px solid rgba(83, 104, 245, 0.18);
  border-radius: 11px;
}

.verified-opener-note > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
}

.verified-opener-note strong,
.verified-opener-note p,
.verified-opener-note small {
  display: block;
}

.verified-opener-note p {
  margin: 3px 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.verified-opener-note small {
  color: var(--ink-muted);
  font-size: 9px;
}

.peer-benchmark {
  display: grid;
  gap: 14px;
}

.peer-benchmark--compact {
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.peer-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
}

.peer-metric {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: 10px;
}

.peer-metric--better { border-top-color: var(--success); }
.peer-metric--worse { border-top-color: var(--warning); }
.peer-metric--about_the_same { border-top-color: var(--accent); }

.peer-metric > span,
.peer-metric > small {
  color: var(--ink-muted);
  font-size: 9px;
}

.peer-metric > strong {
  margin-top: 3px;
  font-size: 17px;
}

.peer-metric p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.peer-benchmark-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.5;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}

.check-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fafbfb;
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
}

.check-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.check-item strong {
  font-size: 12px;
  font-weight: 620;
  line-height: 1.35;
}

.check-item small {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.45;
}

.check-state {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.check-state--pass {
  color: var(--success);
  background: var(--success-soft);
}

.check-state--fail {
  color: var(--danger);
  background: var(--danger-soft);
}

.check-state--unknown {
  color: var(--ink-muted);
  background: var(--surface-strong);
}

.readiness-summary {
  display: grid;
  gap: 14px;
}

.readiness-result {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--success-soft);
  border: 1px solid #cce8dc;
  border-radius: 12px;
}

.readiness-result > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--success);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-weight: 800;
}

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

.readiness-result p {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.readiness-result--fail {
  background: var(--danger-soft);
  border-color: #f1cbd0;
}

.readiness-result--fail > span {
  color: var(--danger);
}

.readiness-result--unknown {
  background: var(--surface-muted);
  border-color: var(--border);
}

.readiness-result--unknown > span {
  color: var(--ink-muted);
}

.check-list--blockers {
  grid-template-columns: 1fr;
}

.readiness-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--surface-muted);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
}

.readiness-action > div {
  min-width: 0;
}

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

.readiness-action p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.45;
}

.readiness-action .button {
  flex: 0 0 auto;
}

.customer-review-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(22px, 5vw, 64px) clamp(16px, 4vw, 40px);
  background:
    radial-gradient(circle at 14% 0%, rgba(67, 87, 230, 0.13), transparent 30rem),
    radial-gradient(circle at 92% 12%, rgba(20, 122, 88, 0.09), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #edf1f5 100%);
}

.customer-review-shell {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 20px;
}

.customer-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 8px;
}

.customer-review-header .brand-lockup,
.customer-review-message .brand-lockup,
.customer-review-loading .brand-lockup {
  width: max-content;
}

.customer-review-hero {
  max-width: 720px;
  padding: clamp(18px, 3vw, 32px) 2px 4px;
}

.customer-review-hero h1,
.customer-review-message h1,
.customer-review-loading h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.customer-review-hero p,
.customer-review-message > p,
.customer-review-loading > p {
  margin: 0;
  color: var(--ink-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.customer-record,
.customer-review-agreement,
.customer-response-panel {
  padding: clamp(20px, 4vw, 34px);
}

.customer-record-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.customer-record-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.customer-record-heading > strong {
  color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.customer-record-heading > strong small {
  color: var(--ink-muted);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.customer-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.customer-record-fact {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 15px 16px;
  background: var(--surface-subtle);
}

.customer-record-fact span,
.customer-record-scope > span,
.customer-deliverables > span,
.customer-quote-items-head > span,
.customer-quote-items-total > span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.customer-record-fact strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.customer-record-scope,
.customer-deliverables {
  padding: 18px;
  background: var(--surface-muted);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.customer-quote-items {
  margin: 0 0 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.customer-bundle-savings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 18px;
  overflow: hidden;
  background: #d9e1ea;
  border: 1px solid #d9e1ea;
  border-radius: 13px;
}

.customer-bundle-savings > div {
  display: grid;
  gap: 5px;
  padding: 14px 15px;
  background: var(--surface-muted);
}

.customer-bundle-savings span {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.customer-bundle-savings strong {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.customer-bundle-savings-highlight {
  color: #176849;
  background: #eaf8f1 !important;
}

.customer-quote-items-head,
.customer-quote-items-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  background: var(--surface-muted);
}

.customer-quote-items-head strong {
  font-size: 10px;
}

.customer-quote-items ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.customer-quote-items li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 14px 15px;
  border-top: 1px solid var(--border);
}

.customer-quote-items li strong,
.customer-quote-items li b {
  font-size: 13px;
}

.customer-quote-items li b {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.customer-quote-items li p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.customer-quote-items-total {
  border-top: 1px solid var(--border);
}

.customer-quote-items-total strong {
  margin-left: auto;
  font-size: 16px;
}

.customer-quote-items-total small {
  max-width: 360px;
  color: var(--danger);
  font-size: 9px;
}

.customer-record-scope p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.customer-deliverables {
  margin-top: 12px;
  border-left-color: var(--success);
}

.customer-deliverables ul {
  padding-left: 20px;
  margin: 8px 0 0;
}

.customer-legal-statement {
  margin: 20px 0 0;
  padding: clamp(18px, 3vw, 26px);
  color: var(--ink-soft);
  background: #f8f9fb;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 0 13px 13px 0;
  font-size: 13px;
  font-weight: 570;
  line-height: 1.7;
  white-space: pre-line;
}

.customer-response-confirmations {
  display: grid;
  gap: 10px;
}

.customer-response-actions {
  display: flex;
  justify-content: flex-end;
}

.customer-response-actions .button {
  width: min(100%, 320px);
}

.customer-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 4px 24px;
  color: var(--ink-muted);
  font-size: 12px;
}

.customer-review-footer a,
.customer-review-help a {
  color: var(--accent);
  font-weight: 650;
}

.customer-review-loading,
.customer-review-message {
  width: min(100%, 680px);
  min-height: min(620px, calc(100dvh - 80px));
  align-content: center;
  justify-items: center;
  padding: clamp(28px, 7vw, 64px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-float), var(--glass-highlight);
}

.customer-review-loading .route-spinner {
  margin-top: 30px;
}

.customer-review-message-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-top: 24px;
  place-items: center;
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.customer-review-message-mark--success {
  color: var(--success);
  background: var(--success-soft);
}

.customer-review-help {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--surface-muted);
  border-radius: 12px;
}

.customer-receipt-facts {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  text-align: left;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.customer-receipt-facts > div {
  display: grid;
  gap: 3px;
  padding: 14px;
  background: var(--surface);
}

.customer-receipt-facts dt {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 720;
  text-transform: uppercase;
}

.customer-receipt-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.customer-lifecycle-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.customer-lifecycle-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.customer-lifecycle-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 760;
}

.customer-lifecycle-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.customer-lifecycle-title strong {
  font-size: 12px;
}

.customer-lifecycle-item p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.customer-lifecycle-item small {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 9px;
}

.invoice-fulfillment-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  background: var(--info-soft);
  border: 1px solid #c9ddf4;
  border-radius: 11px;
}

.invoice-fulfillment-status > div {
  min-width: 0;
}

.invoice-fulfillment-status span:first-child {
  display: block;
  color: var(--info);
  font-size: 9px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-fulfillment-status strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
}

.invoice-fulfillment-status p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.billing-installment-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
  background: var(--surface-muted);
  border-color: var(--border);
}

.billing-installment-status > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.billing-installment-status span:first-child {
  color: var(--ink-muted);
}

.customer-payment-schedule .customer-bundle-savings-highlight {
  color: var(--info);
  background: var(--info-soft) !important;
}

@media (max-width: 639px) {
  .readiness-action {
    align-items: stretch;
    flex-direction: column;
  }

  .readiness-action .button {
    width: 100%;
  }

  .customer-review-page {
    padding: 14px 10px 30px;
  }

  .customer-review-header,
  .customer-record-heading,
  .customer-review-footer,
  .invoice-fulfillment-status {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-review-header .status-badge {
    width: max-content;
  }

  .customer-record-heading > strong {
    white-space: normal;
  }

  .customer-record-grid,
  .customer-receipt-facts {
    grid-template-columns: 1fr;
  }

  .billing-installment-status {
    grid-template-columns: 1fr;
  }

  .billing-installment-status > div + div {
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .customer-review-agreement .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-review-agreement .button {
    width: 100%;
  }

  .customer-review-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

.check-disclosure {
  border-top: 1px solid var(--border);
}

.check-disclosure summary {
  padding: 13px 2px 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.check-disclosure[open] summary {
  margin-bottom: 12px;
}

.script-card {
  padding: 15px;
  background: #fafbfb;
  border: 1px solid var(--border);
  border-radius: 11px;
}

.script-card + .script-card {
  margin-top: 10px;
}

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

.script-card-head strong {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.script-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.script-card-editor {
  width: 100%;
  min-height: 5.5rem;
  resize: vertical;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  line-height: 1.65;
}

.script-card-note {
  display: block;
  margin-top: 7px;
  color: var(--ink-faint);
  font-size: 11px;
}

.question-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
}

.question-list li {
  padding-left: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.timeline {
  position: relative;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 13px;
  width: 1px;
  content: "";
  background: var(--border);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 10px;
}

.timeline-copy strong {
  display: block;
  font-size: 12px;
}

.timeline-copy p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.timeline-copy time {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font-size: 10px;
}

.offer-summary {
  padding: 14px;
  background: #f5f6ff;
  border: 1px solid #dde1ff;
  border-radius: 11px;
}

.offer-summary span {
  display: block;
  color: #626ba4;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.offer-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

.offer-summary p {
  margin: 6px 0 0;
  color: #5d6386;
  font-size: 10px;
}

.activity-composer {
  display: grid;
  gap: 13px;
}

.button--space-top {
  margin-top: 15px;
}

.compact-item--flush {
  padding-right: 0;
  padding-left: 0;
}

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

.autosave-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-muted);
  font-size: 10px;
}

.autosave-status::before {
  width: 6px;
  height: 6px;
  content: "";
  background: var(--success);
  border-radius: 50%;
}

.sticky-mobile-actions {
  display: none;
}

/* Empty, loading and errors */
.empty-state,
.error-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(171, 182, 197, 0.3);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-highlight), var(--shadow-card);
}

.empty-state-inner,
.error-state-inner {
  max-width: 430px;
}

.empty-icon,
.error-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 auto 13px;
  border-radius: 13px;
  font-size: 18px;
}

.empty-icon {
  color: var(--ink-muted);
  background: var(--surface-muted);
}

.error-icon {
  color: var(--danger);
  background: var(--danger-soft);
}

.empty-state h2,
.error-state h2 {
  margin-bottom: 7px;
}

.empty-state p,
.error-state p {
  margin-bottom: 17px;
  color: var(--ink-muted);
  font-size: 12px;
}

.panel > .empty-state,
.panel--flush > .empty-state {
  min-height: 170px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

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

.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ebee;
  border-radius: 9px;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.25s infinite;
}

.skeleton-card {
  height: 126px;
  border-radius: var(--radius-card);
}

.skeleton-line {
  height: 13px;
  margin-bottom: 10px;
}

.skeleton-line--sm { width: 35%; }
.skeleton-line--md { width: 60%; }
.skeleton-line--lg { width: 75%; }

.skeleton-line:last-child {
  width: 65%;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Dialog and toasts */
.dialog {
  width: min(92vw, 520px);
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  padding: 0;
  overflow: auto;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-float);
  overscroll-behavior: contain;
}

.dialog[open] {
  animation: dialog-enter 160ms ease-out both;
}

.dialog::backdrop {
  background: rgba(15, 17, 21, 0.46);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog[open]::backdrop {
  animation: dialog-backdrop-enter 160ms ease-out both;
}

@keyframes dialog-enter {
  from {
    transform: translateY(8px) scale(0.985);
  }

  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes dialog-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.dialog-head {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 20px 14px;
  background: var(--surface);
  border-bottom: 1px solid rgba(216, 224, 233, 0.72);
}

.dialog-head h2 {
  margin: 0;
}

.dialog-head p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
}

.dialog-body {
  padding: 16px 20px 20px;
}

.service-item-picker {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.service-item-picker > legend {
  padding: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.service-item-picker > p {
  margin: -5px 0 2px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

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

.service-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.28fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
  opacity: 0.72;
  transition: opacity 130ms ease, border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.service-item-row.is-selected {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  box-shadow: 0 8px 22px rgba(24, 31, 52, 0.05);
  opacity: 1;
}

.service-item-choice {
  display: grid;
  min-width: 0;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.service-item-choice > input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.service-item-choice > span,
.service-item-picker--approval .service-item-choice {
  min-width: 0;
}

.service-item-picker--approval .service-item-choice {
  grid-template-columns: 1fr;
}

.service-item-choice strong,
.service-item-choice small,
.service-item-choice p {
  display: block;
}

.service-item-choice strong {
  font-size: 11px;
}

.service-item-choice small {
  width: fit-content;
  padding: 2px 6px;
  margin-top: 4px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 760;
}

.service-item-choice p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.45;
}

.service-item-price {
  display: grid;
  gap: 5px;
}

.service-item-price > span:first-child {
  color: var(--ink-muted);
  font-size: 8px;
  font-weight: 740;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.money-input {
  position: relative;
  display: block;
}

.money-input > b {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--ink-muted);
  font-size: 11px;
  transform: translateY(-50%);
}

.money-input > .input {
  padding-left: 27px;
}

.service-item-total,
.bundle-price-summary {
  color: #fff;
  background: #171b22;
  border-radius: 10px;
}

.bundle-price-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: #343a45;
}

.bundle-price-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: #171b22;
}

.bundle-price-summary__savings strong {
  color: #9be0bd;
}

.bundle-price-summary__net {
  text-align: right;
}

.service-item-total span,
.bundle-price-summary span {
  color: #c9ced8;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-item-total strong,
.bundle-price-summary strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.bundle-discount-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.42fr);
  align-items: end;
  gap: 13px 16px;
  padding: 15px;
  background: linear-gradient(135deg, #f5f7ff, #f8fbff);
  border: 1px solid #d9defe;
  border-radius: 12px;
}

.bundle-discount-card__copy span,
.bundle-discount-card__choice > span {
  display: block;
  color: #6670a8;
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bundle-discount-card__copy strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.bundle-discount-card__copy p,
.bundle-discount-card__status {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.bundle-discount-card__choice {
  display: grid;
  gap: 6px;
}

.bundle-discount-card__status {
  grid-column: 1 / -1;
  padding-top: 10px;
  margin: 0;
  border-top: 1px solid rgba(95, 107, 168, 0.17);
}

.bundle-discount-card--admin {
  align-items: start;
}

.bundle-discount-card--admin .bundle-price-summary {
  grid-column: 1 / -1;
}

.bundle-price-summary--light {
  color: var(--ink);
  background: #dde3ed;
}

.bundle-price-summary--light > div {
  background: rgba(255, 255, 255, 0.9);
}

.bundle-price-summary--light span {
  color: var(--ink-muted);
}

.service-item-price > strong {
  padding: 9px 11px;
  text-align: right;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.service-item-price .input[readonly] {
  color: var(--ink-soft);
  background: #eef2f7;
  cursor: default;
}

.dialog-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  padding: 14px 20px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 28px rgba(31, 42, 61, 0.045);
}

.dialog-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink-muted);
  cursor: pointer;
  background: transparent;
  border-radius: 8px;
  transition: color 130ms ease, background-color 130ms ease, transform 130ms ease;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

.dialog-close:active {
  transform: scale(0.96);
}

.dialog-error,
.form-error {
  color: #7b2733;
  background: var(--danger-soft);
  border: 1px solid #f3cbd0;
  border-radius: 10px;
  font-size: 12px;
}

.dialog-error {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  margin: 0 20px 14px;
}

.form-error {
  padding: 11px 13px;
}

.form-error[hidden] {
  display: none;
}

.toast-region {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: min(380px, calc(100vw - 36px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
  padding: 13px 14px;
  color: #f8f9fa;
  background: rgba(28, 31, 37, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  box-shadow: var(--shadow-menu);
  animation: toast-in 170ms ease both;
  pointer-events: auto;
}

.toast--leaving {
  animation: toast-out 140ms ease-in both;
  pointer-events: none;
}

.toast--error {
  background: #742d36;
}

.toast-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  font-size: 10px;
}

.toast strong {
  display: block;
  font-size: 11px;
}

.toast p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

.toast button {
  display: grid;
  width: 32px;
  height: 32px;
  margin: -4px -5px 0 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  background: transparent;
  border-radius: 50%;
}

.toast button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.toast button:focus-visible {
  outline-color: #fff;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.985);
  }
}

/* Responsive */
@media (min-width: 1280px) {
  .billing-row {
    padding: 22px 24px;
  }
}

@media (max-width: 1279px) {
  :root {
    --sidebar-width: 232px;
  }

  .sidebar {
    padding: 16px 12px;
    overflow-y: auto;
  }

  .topbar {
    padding-right: 28px;
    padding-left: 28px;
  }

  .page {
    padding: 30px 28px 64px;
  }

  .sidebar-brand {
    padding: 0 6px 20px;
  }

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

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

  .filter-grid .button {
    width: 100%;
  }

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

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

  .money-overview-metric:nth-child(2) {
    border-right: 0;
  }

  .money-overview-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .filter-grid:not(.filter-grid--search) > .button:last-child,
  .discovery-search-grid > .button:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1079px) {
  .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-sidebar {
    position: static;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-layout > .stack {
    grid-row: 1;
  }

  .release-workflow-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1279px) {
  .data-table-scroll {
    display: none;
  }

  .mobile-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 12px;
  }

  .data-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .lead-mobile-head .table-primary {
    min-width: 0;
    flex: 1;
  }
}

@media (max-width: 1099px) {
  :root {
    --sidebar-width: 0px;
    --header-height: calc(60px + env(safe-area-inset-top));
  }

  html {
    scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: 0;
  }

  .sidebar {
    display: none;
  }

  .app-main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    min-height: var(--header-height);
    padding: calc(9px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) 9px calc(24px + env(safe-area-inset-left));
  }

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

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-brand strong {
    font-size: 12px;
  }

  .topbar-title {
    display: none;
  }

  .topbar-account {
    display: grid;
  }

  .topbar-account .avatar {
    width: 32px;
    height: 32px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 66px;
    grid-auto-columns: minmax(64px, 120px);
    grid-auto-flow: column;
    justify-content: center;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
  }

  .mobile-nav-link {
    display: grid;
    min-height: 53px;
    place-content: center;
    gap: 1px;
    color: var(--ink-muted);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 650;
    text-align: center;
  }

  .mobile-nav-link .nav-icon {
    margin: 0 auto;
  }

  .mobile-nav-link[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-muted);
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav {
    grid-template-columns: none;
    grid-auto-columns: minmax(64px, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link {
    min-width: 0;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .page {
    padding: 28px calc(24px + env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  }

  .toast-region {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

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

@media (min-width: 1024px) and (max-width: 1279px) {
  .onboarding-steps,
  .onboarding-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-summary-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .billing-candidate-row .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 899px) {
  .login-page {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    min-height: 360px;
    padding: calc(32px + env(safe-area-inset-top)) calc(32px + env(safe-area-inset-right)) 32px calc(32px + env(safe-area-inset-left));
  }

  .login-brand-message {
    margin: 54px 0 30px;
  }

  .login-brand-message h1 {
    max-width: 560px;
    font-size: clamp(2.45rem, 10vw, 4.3rem);
  }

  .login-form-panel {
    padding: 46px calc(24px + env(safe-area-inset-right)) calc(60px + env(safe-area-inset-bottom)) calc(24px + env(safe-area-inset-left));
  }

  .grid-2,
  .lead-layout {
    grid-template-columns: 1fr;
  }

  .lead-sidebar {
    position: static;
  }

  .billing-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 16px;
  }

  .billing-summary-grid {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }

  .billing-candidate-row .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .billing-row-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .billing-action-note {
    max-width: none;
    text-align: left;
  }

}

@media (max-height: 600px) and (max-width: 899px) {
  .login-brand-panel {
    min-height: auto;
    padding: calc(18px + env(safe-area-inset-top)) calc(24px + env(safe-area-inset-right)) 18px calc(24px + env(safe-area-inset-left));
  }

  .login-brand-message {
    margin: 20px 0 0;
  }

  .login-brand-message h1 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .login-brand-message p,
  .login-proof {
    display: none;
  }

  .login-form-panel {
    align-items: flex-start;
    padding-top: 24px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: calc(60px + env(safe-area-inset-top));
  }

  body {
    padding-bottom: 0;
  }

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

  .login-workspace-option {
    min-height: 66px;
  }

  .sidebar {
    display: none;
  }

  .app-main {
    width: 100%;
    margin-left: 0;
  }

  .topbar {
    min-height: var(--header-height);
    padding: calc(9px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) 9px calc(16px + env(safe-area-inset-left));
  }

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

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
  }

  .mobile-brand strong {
    font-size: 12px;
  }

  .topbar-title {
    display: none;
  }

  .topbar-actions .button--secondary {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: 66px;
    grid-template-columns: none;
    grid-auto-columns: minmax(56px, 120px);
    grid-auto-flow: column;
    justify-content: center;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
  }

  .mobile-nav-link {
    display: grid;
    min-height: 53px;
    place-content: center;
    gap: 1px;
    color: var(--ink-muted);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 650;
    text-align: center;
  }

  .mobile-nav-link .nav-icon {
    margin: 0 auto;
  }

  .mobile-nav-link[aria-current="page"] {
    color: var(--ink);
    background: var(--surface-muted);
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav {
    grid-template-columns: none;
    grid-auto-columns: minmax(64px, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link {
    min-width: 0;
    font-size: 11px;
    scroll-snap-align: start;
  }

  .page {
    padding: 22px calc(16px + env(safe-area-inset-right)) calc(90px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  }

  .page-header {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .button {
    flex: 1;
  }

  .onboarding-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .onboarding-hero-action {
    width: 100%;
  }

  .onboarding-hero-action small {
    max-width: none;
    text-align: left;
  }

  .onboarding-progress-summary {
    width: 100%;
  }

  .onboarding-task-head {
    display: grid;
    gap: 12px;
  }

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

  .onboarding-task-actions {
    width: 100%;
  }

  .onboarding-task-actions .button,
  .payout-return-notice .button,
  .payout-action-feedback .button,
  .stripe-admin-account .button,
  .payout-record-actions .button {
    width: 100%;
  }

  .payout-return-notice,
  .payout-action-feedback,
  .stripe-admin-account {
    grid-template-columns: 1fr;
  }

  .payout-return-notice .button,
  .payout-action-feedback .button,
  .stripe-admin-account .button {
    justify-self: stretch;
  }

  .onboarding-task-actions small {
    max-width: none;
  }

  /* W9_WORKFLOW_APPROVAL:styles-mobile-layout:begin */
  .w9-form-intro,
  .w9-submit-row,
  .w9-sensitive-action {
    align-items: stretch;
    flex-direction: column;
  }

  .w9-reference-links {
    justify-items: start;
  }

  .w9-choice-grid,
  .w9-address-grid,
  .w9-help-grid,
  .w9-entry-review-grid {
    grid-template-columns: 1fr;
  }

  .w9-review-edit-actions,
  .w9-review-edit-actions .button {
    width: 100%;
  }

  .w9-wizard-progress {
    grid-template-columns: repeat(5, 32px);
    justify-content: space-between;
  }

  .w9-wizard-progress > span {
    display: grid;
    grid-template-columns: 1fr;
    padding: 3px;
    place-items: center;
  }

  .w9-wizard-progress small {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .w9-wizard-panel {
    padding: 15px;
  }

  .w9-wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .w9-wizard-actions .button {
    width: 100%;
  }

  .w9-wizard-actions > span {
    margin-right: 0;
  }
  /* W9_WORKFLOW_APPROVAL:styles-mobile-layout:end */

  .evidence-explanation > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .peer-metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item-row {
    grid-template-columns: 1fr;
  }

  .service-item-price {
    padding-left: 28px;
  }

  /* W9_WORKFLOW_APPROVAL:styles-mobile-actions:begin */
  .w9-submit-row .button,
  .w9-sensitive-action .button {
    width: 100%;
  }

  .w9-correction-disclosure > .w9-form {
    padding: 0 8px 8px;
  }
  /* W9_WORKFLOW_APPROVAL:styles-mobile-actions:end */

  .training-lessons {
    grid-template-columns: 1fr;
  }

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

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

  .agreement-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-document-head,
  .admin-legal-record {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-document-actions .button,
  .admin-legal-record .button {
    width: 100%;
  }

  .legal-document-review .agreement-document {
    margin: 0 7px 7px;
  }

  .admin-legal-records {
    padding: 14px;
  }

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

  .team-onboarding-actions {
    align-items: stretch;
  }

  .team-onboarding-actions .button {
    width: 100%;
  }

  .offboarding-record-meta {
    grid-template-columns: 1fr;
  }

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

  .offboarding-danger-zone {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .offboarding-danger-zone .button {
    width: 100%;
  }

  .bulk-bar .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .bulk-bar .page-actions {
    width: 100%;
    flex: 0 1 auto;
    flex-wrap: wrap;
  }

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

  .action-count {
    min-height: 112px;
    padding: 14px;
  }

  .action-count-value {
    font-size: 26px;
  }

  .billing-row {
    padding: 16px;
  }

  .billing-row-heading {
    display: grid;
    gap: 9px;
  }

  .billing-row-heading .status-badge {
    justify-self: start;
  }

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

  .pay-run-payment-steps,
  .pay-run-confirmation-row,
  .pay-run-paid-summary {
    grid-template-columns: 1fr;
  }

  .pay-run-confirmation-row {
    align-items: stretch;
  }

  .pay-run-exact-account-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pay-run-exact-account-row .button {
    width: 100%;
  }

  .billing-row-actions .button,
  .billing-row-actions > a {
    flex: 1 1 132px;
  }

  .invoice-review-facts {
    grid-template-columns: 1fr;
  }

  .grid-equal,
  .form-grid,
  .form-grid--2,
  .filter-grid,
  .discovery-search-grid,
  .composer-top {
    grid-template-columns: 1fr;
  }

  .discovery-job-head {
    display: grid;
    gap: 16px;
  }

  .discovery-job-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .discovery-job-actions .button {
    flex: 1 1 180px;
  }

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

  .discovery-count:nth-child(3) {
    border-left: 0;
  }

  .discovery-count:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .discovery-result,
  .discovery-recent-row {
    grid-template-columns: 1fr;
  }

  .discovery-result .table-actions,
  .discovery-recent-row .table-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .panel,
  .panel-section {
    padding: 16px;
  }

  .lead-sidebar {
    grid-row: 2;
    grid-template-columns: 1fr;
  }

  .lead-layout > .stack {
    grid-row: 1;
  }

  .queue-navigator {
    display: grid;
  }

  .queue-navigator-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .approval-row .table-actions {
    width: 100%;
  }

  .approval-row .button {
    flex: 1;
  }

  .data-table-scroll {
    display: none;
  }

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

  .data-table-wrap {
    overflow: visible;
    background: transparent;
    border: 0;
  }

  .tabs {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    background: transparent;
    border-radius: 0;
  }

  .tab {
    background: #e9ebee;
  }

  .tab[aria-current="page"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px rgba(172, 182, 197, 0.3), 0 5px 14px rgba(17, 19, 24, 0.08);
  }

  .filter-panel {
    padding: 13px;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .dialog {
    width: calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 15px;
  }

  .toast-region {
    right: calc(12px + env(safe-area-inset-right));
    left: calc(12px + env(safe-area-inset-left));
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: auto;
  }

  .sticky-mobile-actions {
    position: sticky;
    z-index: 16;
    bottom: calc(76px + env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
    padding: 10px;
    margin: 15px -5px -5px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(17, 19, 24, 0.12);
  }

  .sticky-mobile-actions .button {
    flex: 1;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .deployment-indicator {
    display: none !important;
  }

  .agreement-document,
  .agreement-document * {
    visibility: visible;
  }

  .agreement-document {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  .login-brand-panel {
    min-height: auto;
    padding: calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 20px calc(20px + env(safe-area-inset-left));
  }

  .login-brand-message {
    margin: 28px 0 0;
  }

  .login-brand-message h1 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 10vw, 2.6rem);
  }

  .login-brand-message p {
    font-size: 14px;
    line-height: 1.5;
  }

  .login-page:not(.application-page) .login-brand-message p,
  .login-proof {
    display: none;
  }

  .login-form-panel {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    padding-right: calc(18px + env(safe-area-inset-right));
    padding-left: calc(18px + env(safe-area-inset-left));
  }

  .action-count-grid {
    grid-template-columns: 1fr;
  }

  .money-overview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dialog-actions .button,
  .dialog-actions > a,
  .form-actions .button,
  .form-actions > a {
    flex: 1 1 140px;
  }

  .money-overview-grid {
    grid-template-columns: 1fr;
  }

  .money-overview-metric,
  .money-overview-metric:nth-child(2) {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .money-overview-metric:last-child {
    border-bottom: 0;
  }

  .action-count {
    min-height: 102px;
  }

  .offboarding-effect-grid {
    grid-template-columns: 1fr;
  }

  .offboarding-effect {
    min-height: 76px;
  }

  .offboarding-impact-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .billing-summary-grid,
  .billing-candidate-row .billing-summary-grid {
    grid-template-columns: 1fr;
  }

  .billing-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .billing-row-actions .button,
  .billing-row-actions > a {
    width: 100%;
  }

  .topbar-actions .status-badge {
    display: none;
  }
}

/* Floating workspace polish keeps layout geometry stable while visually lifting the chrome. */
@media screen and (min-width: 1100px) {
  .sidebar {
    padding: 22px 20px;
  }

  .sidebar-brand {
    padding-right: 4px;
    padding-left: 4px;
  }

  .page {
    padding-top: 34px;
  }
}

@media screen and (max-width: 1099px) {
  :root {
    --mobile-dock-clearance: 102px;
  }

  .topbar::before {
    inset: calc(6px + env(safe-area-inset-top)) 10px 0;
    border-radius: 18px;
  }

  .app-shell.is-route-loading .topbar::after {
    right: 10px;
    left: 10px;
  }

  .mobile-nav {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    min-height: 62px;
    padding: 5px 6px;
    background: rgba(250, 251, 253, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: var(--glass-highlight), var(--shadow-dock);
  }

  .mobile-nav-link {
    min-height: 50px;
    border-radius: 14px;
  }

  .mobile-nav-link[aria-current="page"] {
    color: #3347c8;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(67, 87, 230, 0.08);
  }

  .mobile-nav-link[aria-current="page"] .nav-icon {
    color: #fff;
    background: linear-gradient(145deg, #6271ef 0%, #4053dd 100%);
    border-radius: 8px;
    box-shadow: 0 5px 12px rgba(67, 87, 230, 0.2);
  }

  .page {
    padding-bottom: calc(var(--mobile-dock-clearance) + env(safe-area-inset-bottom));
  }

  .toast-region,
  .sticky-mobile-actions {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .button:hover:not([disabled]),
  .icon-button:hover,
  .login-workspace-option:hover,
  a.action-count:hover {
    transform: translateY(-1px);
  }

  .money-overview-metric:hover .money-overview-arrow {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body.operation-busy::after {
    width: 100%;
    opacity: 0.72;
    animation: none !important;
    transform: none;
  }

  .app-shell.is-route-loading .topbar::after {
    background: var(--accent);
    animation: none !important;
    transform: none;
  }

  .skeleton::after {
    background: rgba(255, 255, 255, 0.38);
    animation: none !important;
    transform: none;
  }

  .mobile-nav {
    scroll-snap-type: none !important;
  }

  .button,
  .icon-button,
  .login-workspace-option,
  .nav-link,
  .nav-icon,
  .mobile-nav-link,
  .tab,
  .action-count,
  .money-overview-arrow,
  .topbar-account,
  .account-menu,
  .dialog-close {
    transform: none !important;
  }
}

@media (pointer: coarse) {
  .button,
  .tab,
  .dialog-close,
  .topbar-account,
  .toast button,
  .section-link,
  .back-link {
    min-width: 44px;
    min-height: 44px;
  }

  .section-link,
  .back-link {
    display: inline-flex;
    align-items: center;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline-color: Highlight;
  }

  .sidebar::before,
  .topbar::before,
  .mobile-nav,
  .sticky-mobile-actions,
  .login-card,
  .panel,
  .card,
  .action-count,
  .money-overview,
  .filter-panel,
  .data-table-wrap,
  .dialog,
  .toast {
    background: Canvas !important;
    border: 1px solid CanvasText !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .button--primary,
  .nav-link[aria-current="page"] .nav-icon,
  .mobile-nav-link[aria-current="page"] .nav-icon {
    color: ButtonText !important;
    background: ButtonFace !important;
    border: 1px solid ButtonText !important;
    box-shadow: none !important;
  }

  .tab[aria-current="page"],
  .nav-link[aria-current="page"],
  .mobile-nav-link[aria-current="page"],
  .login-workspace-option.is-active {
    border: 2px solid Highlight;
    box-shadow: none;
  }

  .sales-disclosure,
  .sales-disclosure > summary::after {
    color: CanvasText !important;
    background: Canvas !important;
    border: 1px solid CanvasText !important;
  }
}

/* Admin · Sales Team directory */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-directory) {
  width: min(1248px, calc(100% - 64px));
  max-width: none;
  padding: 25px 0 56px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory {
  display: grid;
  min-width: 0;
  gap: 24px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header {
  min-height: 128px;
  align-items: center;
  margin: 0 8px -1px;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header h1 {
  margin: 0 0 11px;
  color: #11151d;
  font-size: clamp(44px, 4.2vw, 58px);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header p {
  margin: 0;
  color: #3e4655;
  font-size: 16px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] :is(
  .admin-team-filter,
  .admin-team-table-shell,
  .admin-team-empty-shell
) {
  min-width: 0;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 8% -18%, rgba(167, 123, 255, 0.11), transparent 34%),
    linear-gradient(145deg, rgba(29, 37, 50, 0.95), rgba(13, 21, 33, 0.94));
  border: 1px solid var(--admin-today-border);
  border-radius: 15px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter {
  display: grid;
  min-height: 188px;
  align-content: center;
  gap: 18px;
  padding: 24px 22px 25px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter-heading h2 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-shadow: 0 0 13px rgba(174, 127, 255, 0.34);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .filter-grid--team {
  grid-template-columns: minmax(300px, 1.25fr) minmax(250px, 0.7fr) 138px;
  align-items: end;
  gap: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .field {
  gap: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .field-label {
  color: #f3f4f7;
  font-size: 13px;
  font-weight: 630;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter :is(.input, .select) {
  min-height: 62px;
  padding-inline: 18px;
  color: #f7f8fb;
  background: rgba(7, 13, 23, 0.38);
  border-color: rgba(201, 177, 255, 0.47);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.26);
  font-size: 17px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .input::placeholder {
  color: #aeb5c2;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter :is(.input, .select):focus {
  border-color: rgba(194, 157, 255, 0.92);
  box-shadow: 0 0 0 3px rgba(151, 103, 237, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.23);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .button {
  min-height: 62px;
  color: #fff;
  background: linear-gradient(135deg, #7547d3, #9662ed);
  border-color: rgba(216, 190, 255, 0.46);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(69, 41, 121, 0.32), inset 0 1px rgba(255, 255, 255, 0.23);
  font-size: 16px;
  font-weight: 650;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table-shell {
  overflow: hidden;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table {
  min-width: 1040px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table th {
  height: 70px;
  padding: 18px 24px;
  color: var(--admin-today-purple-soft);
  background: transparent;
  border-bottom-color: var(--admin-today-hairline);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.14em;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table th:nth-child(4),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table th:nth-child(5),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table th:nth-child(6),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table td:nth-child(4),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table td:nth-child(5),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table td:nth-child(6) {
  text-align: center;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table td {
  height: 119px;
  padding: 24px;
  color: #f5f6f9;
  border-bottom-color: var(--admin-today-hairline);
  font-size: 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-row--warning > td:first-child {
  box-shadow: inset 3px 0 #ffb14a;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-row--success > td:first-child {
  box-shadow: inset 3px 0 #62d48f;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-row--danger > td:first-child {
  box-shadow: inset 3px 0 #ff6b72;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .person-row {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 17px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .avatar {
  width: 56px;
  height: 56px;
  color: #fff;
  background: linear-gradient(145deg, rgba(44, 53, 69, 0.94), rgba(18, 25, 37, 0.96));
  border: 1px solid rgba(171, 123, 255, 0.9);
  box-shadow: 0 0 17px rgba(135, 88, 224, 0.16), inset 0 1px rgba(255, 255, 255, 0.1);
  font-size: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .person-copy strong {
  color: #fff;
  font-size: 17px;
  font-weight: 650;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .person-copy span {
  margin-top: 4px;
  color: #b5bbc7;
  font-size: 13px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .status-badge {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .status--warning {
  color: #ffd176;
  background: rgba(118, 74, 8, 0.22);
  border-color: rgba(240, 166, 43, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .status--success {
  color: #8ce8ac;
  background: rgba(25, 105, 59, 0.23);
  border-color: rgba(86, 205, 129, 0.5);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .status--danger {
  color: #ff9da2;
  background: rgba(126, 31, 43, 0.24);
  border-color: rgba(247, 82, 96, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .status--neutral {
  color: #dce0e8;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(220, 224, 233, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-number {
  color: #fff;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-view {
  min-width: 108px;
  min-height: 45px;
  gap: 12px;
  color: #c8a7ff;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(171, 123, 255, 0.72);
  border-radius: 9px;
  font-size: 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-view:hover {
  color: #fff;
  background: rgba(147, 94, 236, 0.14);
  border-color: #b78cff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-view .ui-icon {
  width: 19px;
  height: 19px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-empty-shell {
  padding: 24px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-empty-shell .empty-state {
  color: var(--admin-today-muted);
  background: transparent;
  border: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-empty-shell .empty-state strong {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] :is(
  .admin-team-filter .input,
  .admin-team-filter .select,
  .admin-team-filter .button,
  .admin-team-view
):focus-visible {
  outline: 3px solid rgba(194, 163, 255, 0.78);
  outline-offset: 2px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="chat"] .team-chat-page--admin .sales-chat-heading-actions .button--secondary {
  background: rgba(29, 36, 49, 0.5);
  border-color: rgba(87, 70, 127, 0.38);
  box-shadow: 0 12px 28px rgba(25, 28, 39, 0.14), inset 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 1279px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table-shell {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-list {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card {
    position: relative;
    color: var(--admin-today-ink);
    background:
      radial-gradient(circle at 8% -18%, rgba(167, 123, 255, 0.11), transparent 34%),
      linear-gradient(145deg, rgba(29, 37, 50, 0.95), rgba(13, 21, 33, 0.94));
    border-color: var(--admin-today-border);
    box-shadow: var(--admin-today-shadow);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card--warning {
    box-shadow: inset 3px 0 #ffb14a, var(--admin-today-shadow);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card--success {
    box-shadow: inset 3px 0 #62d48f, var(--admin-today-shadow);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card--danger {
    box-shadow: inset 3px 0 #ff6b72, var(--admin-today-shadow);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card .avatar {
    color: #fff;
    background: linear-gradient(145deg, rgba(44, 53, 69, 0.94), rgba(18, 25, 37, 0.96));
    border-color: rgba(171, 123, 255, 0.9);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card .person-copy strong,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card .mini-value strong {
    color: #fff;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card :is(
    .person-copy span,
    .mini-value span
  ) {
    color: var(--admin-today-muted);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card .lead-mobile-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-onboarding {
    margin-top: 13px;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-directory) {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .filter-grid--team {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .button {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory {
    gap: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header {
    min-height: 0;
    align-items: flex-start;
    margin: 0 1px 3px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header h1 {
    font-size: 38px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header p {
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter {
    min-height: 0;
    gap: 15px;
    padding: 19px 16px 17px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter :is(
    .input,
    .select,
    .button
  ) {
    min-height: 48px;
    font-size: 14px;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-directory) {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-mobile-card .lead-mobile-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] :is(
    .admin-team-filter,
    .admin-team-table-shell,
    .admin-team-mobile-card,
    .admin-team-empty-shell
  ) {
    background: #202938;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] :is(
    .admin-team-filter,
    .admin-team-table-shell,
    .admin-team-mobile-card,
    .admin-team-empty-shell,
    .input,
    .select,
    .button,
    .status-badge
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .button {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
}

/* Team chat */
.team-chat-page {
  min-width: 0;
}

.team-chat-page .page-header {
  margin-bottom: 16px;
}

.chat-workspace {
  display: grid;
  height: clamp(560px, calc(100dvh - 188px), 780px);
  min-height: 0;
  grid-template-columns: minmax(260px, 272px) minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(31, 42, 61, 0.09);
}

.chat-rooms-panel,
.chat-conversation {
  min-width: 0;
  min-height: 0;
}

.chat-rooms-panel {
  display: flex;
  flex-direction: column;
  background: #f7f8fb;
  border-right: 1px solid var(--border);
}

.chat-rooms-heading,
.chat-conversation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-rooms-heading {
  min-height: 70px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.chat-rooms-heading h2,
.chat-conversation-header h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.chat-room-list {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.chat-room-list-empty {
  padding: 18px 10px;
  margin: 0;
  color: var(--ink-muted);
  text-align: center;
}

.chat-room-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background-color var(--motion-fast) var(--ease-ui), border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui);
}

.chat-room-item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-color: var(--border);
}

.chat-room-item.is-selected {
  color: var(--ink);
  background: #efedff;
  border-color: rgba(109, 69, 229, 0.15);
  box-shadow: inset 3px 0 0 #6d45e5;
}

.chat-room-avatar,
.chat-message-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #7b5cf0, #33206e);
  border-radius: 13px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.chat-room-avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.chat-room-copy,
.chat-room-title {
  min-width: 0;
}

.chat-room-copy {
  display: grid;
  gap: 4px;
}

.chat-room-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.chat-room-title strong,
.chat-room-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-room-title strong {
  font-size: 13.5px;
}

.chat-room-copy small,
.chat-room-item > time {
  color: var(--ink-muted);
  font-size: 10.5px;
}

.chat-room-item > time {
  align-self: start;
  padding-top: 2px;
  white-space: nowrap;
}

.chat-unread-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
}

.chat-conversation {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: #fbfcfe;
}

.chat-conversation--empty {
  display: grid;
  padding: 24px;
  place-items: center;
}

.chat-conversation-header {
  grid-row: 1;
  min-height: 70px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.chat-room-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.chat-room-identity > div {
  min-width: 0;
}

.chat-room-identity h2,
.chat-room-identity p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-room-identity p {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 10.5px;
}

.chat-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-size: 10.5px;
  font-weight: 680;
  white-space: nowrap;
}

.chat-live-indicator i {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--success-soft);
}

.chat-live-indicator.is-paused {
  color: var(--danger);
}

.chat-live-indicator.is-paused i {
  background: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-soft);
}

.chat-pins {
  display: grid;
  grid-row: 2;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f6f3ff;
  border-bottom: 1px solid #e3dcff;
}

.chat-pins[hidden] {
  display: none;
}

.chat-pins-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f35a4;
  font-size: 10.5px;
}

.chat-pins-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  color: #4f35a4;
  background: #e9e3ff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 760;
}

.chat-pin-list {
  display: flex;
  min-width: 0;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chat-pin-preview {
  display: flex;
  min-width: 180px;
  max-width: 330px;
  align-items: baseline;
  gap: 6px;
  padding: 6px 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(109, 69, 229, 0.14);
  border-radius: 9px;
  font-size: 10.5px;
  white-space: nowrap;
}

.chat-pin-preview strong {
  flex: 0 0 auto;
}

.chat-pin-preview span {
  overflow: hidden;
  color: var(--ink-muted);
  text-overflow: ellipsis;
}

.chat-poll-error {
  display: flex;
  grid-row: 3;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  color: #7b2733;
  background: var(--danger-soft);
  border-bottom: 1px solid #f3cbd0;
  font-size: 11px;
}

.chat-poll-error[hidden] {
  display: none;
}

.chat-message-scroll {
  grid-row: 4;
  min-height: 0;
  padding: 16px 20px 20px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 69, 229, 0.045), transparent 260px),
    #fbfcfe;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.chat-history-action {
  min-height: 28px;
  text-align: center;
}

.chat-history-action [hidden] {
  display: none;
}

.chat-message-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chat-message-empty {
  display: grid;
  min-height: 270px;
  place-content: center;
  color: var(--ink-muted);
  text-align: center;
}

.chat-message-empty > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 14px;
  font-size: 17px;
}

.chat-message-empty strong {
  color: var(--ink);
}

.chat-message-empty p {
  margin: 4px 0 0;
  font-size: 12px;
}

.chat-message {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 8px;
}

.chat-message.is-own {
  flex-direction: row-reverse;
}

.chat-message-avatar {
  width: 31px;
  height: 31px;
  border-radius: 11px;
  font-size: 9px;
}

.chat-message.is-own .chat-message-avatar {
  display: none;
}

.chat-message-bubble {
  width: fit-content;
  max-width: min(72%, 680px);
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 6px;
  box-shadow: 0 6px 18px rgba(31, 42, 61, 0.05);
}

.chat-message.is-own .chat-message-bubble {
  color: #fff;
  background: #17192a;
  border-color: #17192a;
  border-radius: 16px 16px 6px;
  box-shadow: 0 8px 22px rgba(23, 25, 42, 0.14);
}

.chat-message.is-pinned .chat-message-bubble {
  box-shadow: inset 3px 0 0 #8b6cf3, 0 6px 18px rgba(31, 42, 61, 0.05);
}

.chat-message-bubble > header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-message-bubble > header > div {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.chat-message-bubble header strong {
  font-size: 11.5px;
}

.chat-message-bubble header time {
  color: var(--ink-muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.chat-message.is-own .chat-message-bubble header strong,
.chat-message.is-own .chat-message-text {
  color: #fff;
}

.chat-message.is-own .chat-message-bubble header time {
  color: rgba(255, 255, 255, 0.64);
}

.chat-message-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-pinned-label {
  color: #6c51cf;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.chat-pin-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--ink-muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.chat-pin-button:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.chat-pin-button[aria-pressed="true"] {
  color: #5d40bd;
  background: #eee9ff;
  border-color: #d9ceff;
}

.chat-pin-button .ui-icon {
  width: 14px;
  height: 14px;
}

.chat-message.is-own .chat-pinned-label {
  color: #c8baff;
}

.chat-message.is-own .chat-pin-button {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.chat-message-text {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: normal;
}

.chat-link-cards {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.chat-link-card {
  display: grid;
  min-width: 240px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chat-link-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px rgba(31, 42, 61, 0.08);
}

.chat-link-card > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.chat-link-card strong,
.chat-link-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-link-card strong {
  font-size: 11px;
}

.chat-link-card small {
  color: var(--ink-muted);
  font-size: 9px;
}

.chat-link-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.chat-link-card--meet .chat-link-mark {
  background: #188038;
}

.chat-link-card--zoom .chat-link-mark {
  background: #2d5bff;
}

.chat-link-card--teams .chat-link-mark {
  background: #5b5fc7;
}

.chat-link-arrow {
  color: var(--ink-muted);
  font-size: 14px;
}

.chat-composer {
  display: grid;
  grid-row: 5;
  gap: 7px;
  padding: 12px 16px 14px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--border);
}

.chat-composer-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 7px 7px 7px 13px;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: border-color var(--motion-fast) var(--ease-ui), box-shadow var(--motion-fast) var(--ease-ui), background-color var(--motion-fast) var(--ease-ui);
}

.chat-composer-control:focus-within {
  background: #fff;
  border-color: rgba(109, 69, 229, 0.44);
  box-shadow: 0 0 0 4px rgba(109, 69, 229, 0.1);
}

.chat-composer-input {
  min-height: 48px;
  max-height: 140px;
  padding: 8px 0 6px;
  resize: vertical;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.chat-composer-input:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}

.chat-composer-send {
  min-width: 92px;
  min-height: 44px;
  gap: 7px;
  padding-inline: 16px;
  border-radius: 13px;
}

.chat-composer-send .ui-icon {
  width: 15px;
  height: 15px;
}

.chat-composer-footer {
  display: flex;
  align-items: center;
  min-height: 16px;
}

.chat-composer-footer > span {
  color: var(--ink-muted);
  font-size: 9.5px;
}

.chat-member-fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.chat-member-fieldset legend {
  padding: 0;
  font-size: 12px;
  font-weight: 680;
}

.chat-member-fieldset > p {
  margin: 3px 0 9px;
  color: var(--ink-muted);
  font-size: 11px;
}

.chat-member-picker {
  display: grid;
  max-height: 280px;
  gap: 6px;
  padding: 7px;
  overflow-y: auto;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.chat-member-option {
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 10px;
}

.chat-member-option:has(input:checked) {
  background: var(--accent-soft);
  border-color: rgba(67, 87, 230, 0.2);
}

.chat-member-option .chat-room-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.chat-member-option > span:last-child {
  display: grid;
  min-width: 0;
}

.chat-member-option strong,
.chat-member-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-member-option small {
  color: var(--ink-muted);
  font-size: 10px;
}

@media (max-width: 1099px) {
  .app-shell[data-shell-key*=",chat,"] .mobile-nav {
    grid-template-columns: none;
    grid-auto-columns: minmax(68px, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key*=",chat,"] .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .chat-workspace {
    height: clamp(560px, calc(100dvh - 168px), 760px);
    grid-template-columns: minmax(230px, 250px) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .team-chat-page .page-header {
    margin-bottom: 14px;
  }

  .team-chat-page .page-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-chat-page .page-actions:has(:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-chat-page .page-actions .button {
    width: 100%;
  }

  .chat-workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .chat-rooms-panel {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  }

  .chat-rooms-heading {
    min-height: 62px;
    padding: 12px 14px 8px;
    border-bottom: 0;
  }

  .chat-room-list {
    display: flex;
    gap: 7px;
    padding: 4px 10px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .chat-room-list::-webkit-scrollbar {
    display: none;
  }

  .chat-room-item {
    min-width: min(218px, 74vw);
    scroll-snap-align: start;
  }

  .chat-conversation {
    min-height: min(620px, calc(100dvh - 180px));
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  }

  .chat-conversation-header {
    min-height: 68px;
    padding: 11px 13px;
  }

  .chat-pins {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 12px;
  }

  .chat-message-scroll {
    min-height: 46vh;
    max-height: 58vh;
    padding: 12px 11px 16px;
  }

  .chat-message-bubble {
    max-width: 88%;
  }

  .chat-link-card {
    min-width: 0;
  }

  .chat-composer {
    position: sticky;
    z-index: 2;
    bottom: calc(78px + env(safe-area-inset-bottom));
    padding: 10px 11px 11px;
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  }

  .chat-composer-control {
    gap: 7px;
    padding: 6px 6px 6px 11px;
  }

  .chat-composer-send {
    min-width: 82px;
    padding-inline: 13px;
  }

  .chat-composer-footer {
    padding-inline: 2px;
  }

  .chat-composer-footer > span {
    max-width: 100%;
  }
}

@media (pointer: coarse) {
  .chat-pin-button {
    width: 44px;
    height: 44px;
  }
}

@media (forced-colors: active) {
  .chat-workspace,
  .chat-room-item,
  .chat-message-bubble,
  .chat-link-card,
  .chat-composer,
  .chat-composer-control,
  .chat-member-option,
  .chat-pins {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .chat-room-avatar,
  .chat-message-avatar,
  .chat-link-mark,
  .chat-unread-count {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
  }
}

/* Restrained glass is progressive enhancement; every surface above remains opaque without blur support. */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sidebar::before {
    background: rgba(249, 251, 253, 0.76);
    border-color: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(26px) saturate(145%);
    backdrop-filter: blur(26px) saturate(145%);
  }

  .topbar::before {
    background: rgba(246, 248, 251, 0.7);
    border-color: rgba(255, 255, 255, 0.76);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
  }

  .mobile-nav,
  .sticky-mobile-actions {
    background: rgba(249, 251, 253, 0.82);
    border-color: rgba(255, 255, 255, 0.74);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
  }

  .mobile-nav {
    box-shadow: var(--glass-highlight), var(--shadow-dock);
  }

  .login-card {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
  }

  .panel,
  .card,
  .action-count,
  .money-overview,
  .filter-panel,
  .lead-mobile-card,
  .queue-navigator,
  .empty-state,
  .error-state,
  .auth-callback-card,
  .customer-review-loading,
  .customer-review-message {
    background: var(--glass-surface-strong);
    border-color: var(--glass-border);
  }

  .data-table-wrap {
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--glass-border);
  }

  .dialog {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(26px) saturate(135%);
    backdrop-filter: blur(26px) saturate(135%);
  }

  .toast {
    -webkit-backdrop-filter: blur(20px) saturate(135%);
    backdrop-filter: blur(20px) saturate(135%);
  }

  .agreement-document,
  .legal-document-card,
  .w9-form,
  .input,
  .select,
  .textarea,
  .notice,
  .lock-banner {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body {
    background: var(--canvas);
  }

  .sidebar::before,
  .topbar::before,
  .mobile-nav,
  .sticky-mobile-actions,
  .login-card,
  .panel,
  .card,
  .action-count,
  .money-overview,
  .filter-panel,
  .data-table-wrap,
  .lead-mobile-card,
  .queue-navigator,
  .empty-state,
  .error-state,
  .auth-callback-card,
  .dialog,
  .toast {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .sidebar::before,
  .topbar::before,
  .mobile-nav,
  .sticky-mobile-actions,
  .login-card,
  .panel,
  .card,
  .action-count,
  .money-overview,
  .filter-panel,
  .data-table-wrap,
  .lead-mobile-card,
  .queue-navigator,
  .empty-state,
  .error-state,
  .auth-callback-card,
  .customer-review-loading,
  .customer-review-message,
  .dialog {
    background: var(--surface);
  }
}

@media (max-width: 899px) {
  .login-card {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* Seller lead workspace: paused assignments stay clear without looking broken. */
.seller-lead-workspace {
  width: 100%;
  max-width: 1420px;
  margin-inline: auto;
}

.seller-lead-workspace .page-header {
  align-items: flex-end;
  margin-bottom: 20px;
}

.seller-lead-workspace .page-header-copy {
  max-width: min(100%, 1080px);
}

.seller-lead-workspace .page-header-copy h1 {
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.seller-lead-workspace .page-header-copy p {
  max-width: 900px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
}

.seller-lead-workspace .lead-title-line > span:first-child {
  min-width: 0;
}

#main-content h1[tabindex="-1"]:focus {
  outline: none;
}

.seller-lead-workspace .queue-navigator {
  min-height: 72px;
  padding: 14px 18px;
  margin: 16px 0 20px;
}

.seller-lead-workspace .lead-layout {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 350px);
  gap: 20px;
}

.seller-lead-workspace .lead-sidebar {
  gap: 14px;
}

.seller-access-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 17px 18px;
  color: #684512;
  background: linear-gradient(135deg, rgba(255, 248, 226, 0.98), rgba(255, 252, 242, 0.9));
  border: 1px solid #ead49f;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(117, 78, 18, 0.07);
}

.seller-access-banner--danger {
  color: #7b2733;
  background: var(--danger-soft);
  border-color: #f3cbd0;
}

.seller-access-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #8a5a0b;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(188, 137, 48, 0.23);
  border-radius: 13px;
  font-size: 19px;
  font-weight: 760;
}

.seller-access-banner--danger .seller-access-icon {
  color: var(--danger);
  border-color: #f3cbd0;
}

.seller-access-copy {
  min-width: 0;
}

.seller-access-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
}

.seller-access-title strong {
  font-size: 15px;
  line-height: 1.25;
}

.seller-access-copy p {
  margin: 5px 0 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.seller-access-copy small {
  display: block;
  margin-top: 7px;
  color: #775824;
  color: color-mix(in srgb, currentColor 76%, transparent);
  font-size: 12px;
  line-height: 1.45;
}

.seller-access-banner--compact {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 12px;
  margin: 14px 0;
  border-radius: 12px;
  box-shadow: none;
}

.seller-access-banner--compact .seller-access-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

.seller-access-banner--compact .seller-access-title {
  display: block;
}

.seller-access-banner--compact .status-badge {
  display: none;
}

.seller-paused-panel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: 28px;
  overflow: hidden;
}

.seller-paused-panel--danger {
  border-color: #f3cbd0;
}

.seller-paused-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #4457c5;
  background: #eef1ff;
  border: 1px solid #d8defe;
  border-radius: 16px;
  font-size: 21px;
  font-weight: 760;
}

.seller-paused-panel--danger .seller-paused-mark {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f3cbd0;
}

.seller-paused-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.seller-paused-panel p {
  max-width: 740px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.seller-unlock-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.seller-unlock-steps li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  background: rgba(247, 249, 252, 0.82);
  border: 1px solid var(--border);
  border-radius: 13px;
}

.seller-unlock-steps li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 760;
}

.seller-unlock-steps li.is-current {
  background: #fff8e7;
  border-color: #e7cd8d;
}

.seller-unlock-steps li.is-current > span {
  color: #fff;
  background: #a56b0c;
  border-color: #a56b0c;
}

.seller-unlock-steps li.is-complete {
  background: var(--success-soft);
  border-color: #cce8dc;
}

.seller-unlock-steps li.is-complete > span {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
}

.seller-unlock-steps strong,
.seller-unlock-steps small {
  display: block;
  overflow-wrap: anywhere;
}

.seller-unlock-steps strong {
  font-size: 12px;
  line-height: 1.3;
}

.seller-unlock-steps small {
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.35;
}

.seller-contact-locked {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.seller-contact-lock-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #5363bb;
  background: #f0f2ff;
  border: 1px solid #dde2ff;
  border-radius: 13px;
  font-size: 18px;
}

.seller-contact-locked h2 {
  margin-bottom: 7px;
  font-size: 18px;
}

.seller-contact-locked p,
.seller-contact-locked small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}

.seller-contact-location {
  display: grid;
  gap: 4px;
  padding: 12px 13px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.seller-contact-location span {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-contact-location strong {
  font-size: 12px;
  line-height: 1.45;
}

.admin-audit-refresh {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #684512;
  background: linear-gradient(135deg, #fff7df, #fffdf6);
  border: 1px solid #ead49f;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(117, 78, 18, 0.07);
}

.admin-audit-refresh-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #8a5a0b;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ead49f;
  border-radius: 13px;
  font-size: 19px;
  font-weight: 760;
}

.admin-audit-refresh p {
  margin: 4px 0 0;
  color: #76551f;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1079px) {
  .seller-lead-workspace .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .seller-lead-workspace .customer-lifecycle-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .seller-lead-workspace .page-header {
    gap: 12px;
  }

  .seller-lead-workspace .page-header-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .seller-lead-workspace .lead-title-line {
    align-items: flex-start;
    gap: 9px;
  }

  .seller-access-banner,
  .seller-paused-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-access-title {
    align-items: flex-start;
  }

  .seller-unlock-steps,
  .seller-lead-workspace .lead-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-paused-panel {
    gap: 15px;
    padding: 20px;
  }

  .seller-unlock-steps {
    gap: 8px;
  }

  .admin-audit-refresh {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-audit-refresh .button {
    width: 100%;
  }

  .bundle-discount-card,
  .bundle-price-summary,
  .customer-bundle-savings {
    grid-template-columns: minmax(0, 1fr);
  }

  .bundle-price-summary__net {
    text-align: left;
  }
}

@media (forced-colors: active) {
  .seller-access-banner,
  .seller-paused-panel,
  .seller-contact-locked,
  .admin-audit-refresh,
  .seller-unlock-steps li,
  .seller-contact-location {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
    box-shadow: none;
  }

  .seller-access-icon,
  .seller-paused-mark,
  .seller-contact-lock-icon,
  .admin-audit-refresh-icon,
  .seller-unlock-steps li > span {
    color: CanvasText;
    background: Canvas;
    border: 1px solid CanvasText;
  }
}

/* Balanced hybrid workspace
 *
 * Carries the public Avenox paper, ink, and violet language into the authenticated
 * product without changing workflow geometry or document surfaces. The body rule
 * only activates while the admin or seller shell exists, so public customer,
 * application, W-9, and legal-document pages retain their purpose-built styling.
 */
.app-shell,
body:has(.app-shell) {
  --canvas: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f2f5;
  --surface-strong: #e8e9ee;
  --surface-subtle: #fbfbfc;
  --ink: #08090d;
  --ink-soft: #2a2b32;
  --ink-muted: #60636a;
  --ink-faint: #666971;
  --border: rgba(31, 31, 43, 0.1);
  --border-strong: rgba(31, 31, 43, 0.17);
  --control-border: #858f9b;
  --brand: #111218;
  --brand-hover: #22242c;
  --accent: #552fca;
  --accent-bright: #6963ec;
  --accent-soft: #efedff;
  --glass-surface: rgba(255, 255, 255, 0.78);
  --glass-surface-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.84);
  --radius-control: 11px;
  --radius-card: 18px;
  --radius-panel: 22px;
  --shadow-card: 0 1px 2px rgba(20, 20, 30, 0.025), 0 14px 38px rgba(43, 42, 67, 0.065);
  --shadow-card-hover: 0 2px 5px rgba(20, 20, 30, 0.035), 0 20px 48px rgba(43, 42, 67, 0.09);
  --shadow-float: 0 32px 88px rgba(20, 20, 30, 0.2), 0 8px 24px rgba(20, 20, 30, 0.08);
  --shadow-shell: 0 18px 48px rgba(43, 42, 67, 0.08), 0 3px 10px rgba(43, 42, 67, 0.035);
  --shadow-dock: 0 18px 48px rgba(24, 25, 38, 0.15), 0 4px 14px rgba(24, 25, 38, 0.07);
  --sidebar-width: 220px;
  --header-height: 68px;
  font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.app-shell) {
  background:
    radial-gradient(circle at 18% -8%, rgba(142, 124, 246, 0.15), transparent 34rem),
    radial-gradient(circle at 96% 7%, rgba(113, 163, 224, 0.09), transparent 38rem),
    radial-gradient(rgba(65, 61, 110, 0.055) 0.65px, transparent 0.75px) 0 0 / 28px 28px,
    linear-gradient(180deg, #fafbfc 0%, var(--canvas) 48%, #f4f5f8 100%);
}

.app-shell .sidebar {
  padding: 18px 13px;
}

.app-shell .sidebar::before {
  inset: 11px 9px;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(31, 31, 43, 0.065);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), var(--shadow-shell);
}

.app-shell .sidebar-brand {
  padding: 2px 8px 27px;
}

.app-shell .brand-lockup {
  gap: 10px;
}

.app-shell .brand-mark {
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 22px rgba(20, 20, 30, 0.14);
}

.app-shell .side-nav {
  gap: 4px;
}

.app-shell .nav-link {
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 620;
}

.app-shell .nav-link:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(31, 31, 43, 0.05);
}

.app-shell .nav-link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 31, 43, 0.075);
  box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(43, 42, 67, 0.07);
}

.app-shell .nav-link[aria-current="page"] .nav-icon {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(105, 99, 236, 0.08);
}

.nav-attention-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--danger) 12%, var(--surface));
  color: var(--danger);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mobile-nav-link .nav-attention-count {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 4px;
  border-color: var(--surface);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
}

.app-shell .account-menu {
  border: 1px solid transparent;
  border-radius: 13px;
}

.app-shell .account-menu:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(31, 31, 43, 0.06);
}

.app-shell .topbar {
  min-height: var(--header-height);
  padding: 11px 34px;
}

.app-shell .topbar::before {
  inset: 8px 18px 0;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(31, 31, 43, 0.055);
  border-radius: 19px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), var(--shadow-shell);
}

.app-shell .topbar-title strong {
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.app-shell .topbar-actions .status-badge {
  padding: 5px 9px;
  background: rgba(241, 242, 245, 0.78);
  border-color: rgba(31, 31, 43, 0.06);
}

.app-shell .page {
  max-width: 1480px;
  padding: 38px 32px 78px;
}

.app-shell .page-header {
  gap: 24px;
  margin-bottom: 24px;
}

.app-shell .page-header-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 2.8vw, 2.65rem);
  font-weight: 610;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.app-shell .page-header-copy p {
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.app-shell .eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.app-shell .section-heading {
  margin-bottom: 17px;
}

.app-shell .section-heading h2,
.app-shell .panel h2 {
  font-weight: 620;
  letter-spacing: -0.03em;
}

.app-shell :where(.panel, .card, .action-count, .money-overview, .filter-panel, .lead-mobile-card, .queue-navigator, .empty-state, .error-state) {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(31, 31, 43, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), var(--shadow-card);
}

.app-shell .panel {
  padding: 23px;
  border-radius: var(--radius-panel);
}

.app-shell .panel--flush {
  padding: 0;
}

.app-shell .panel-section {
  padding: 21px;
}

.app-shell .stack {
  gap: 20px;
}

.app-shell .stack--tight {
  gap: 11px;
}

.app-shell .grid-2,
.app-shell .grid-equal,
.app-shell .lead-layout {
  gap: 20px;
}

.app-shell .tabs {
  gap: 3px;
  padding: 4px;
  margin-bottom: 18px;
  background: rgba(232, 233, 238, 0.72);
  border-color: rgba(31, 31, 43, 0.065);
  border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(20, 20, 30, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.app-shell .tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 660;
}

.app-shell .tab[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(31, 31, 43, 0.06), inset 0 1px 0 #fff, 0 7px 18px rgba(43, 42, 67, 0.075);
}

.app-shell .button {
  min-height: 41px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.app-shell .button--small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
}

.app-shell .button--primary {
  background: linear-gradient(145deg, #1b1d24 0%, #08090d 76%);
  border-color: #08090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 9px 24px rgba(8, 9, 13, 0.16);
}

.app-shell .button--primary:hover:not([disabled]) {
  background: linear-gradient(145deg, #292c35 0%, #111218 76%);
  border-color: #111218;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(8, 9, 13, 0.2);
}

.app-shell .button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 31, 43, 0.14);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(43, 42, 67, 0.05);
}

.app-shell .button--secondary:hover:not([disabled]),
.app-shell .button--ghost:hover:not([disabled]) {
  background: var(--surface-muted);
}

.app-shell .icon-button {
  border-color: rgba(31, 31, 43, 0.1);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(43, 42, 67, 0.05);
}

.app-shell :where(.input, .select, .textarea) {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--control-border);
  box-shadow: inset 0 1px 2px rgba(20, 20, 30, 0.025), inset 0 1px 0 #fff;
}

body:has(.app-shell) > .dialog {
  width: min(92vw, 560px);
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(31, 31, 43, 0.09);
  border-radius: 24px;
  box-shadow: var(--shadow-float);
}

body:has(.app-shell) > .dialog::backdrop {
  background: rgba(13, 14, 18, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

body:has(.app-shell) > .dialog .dialog-head {
  padding: 22px 22px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(31, 31, 43, 0.075);
}

body:has(.app-shell) > .dialog .dialog-head h2 {
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.035em;
}

body:has(.app-shell) > .dialog .dialog-body {
  padding: 18px 22px 22px;
}

body:has(.app-shell) > .dialog .dialog-actions {
  gap: 8px;
  padding: 14px 22px 20px;
  background: rgba(255, 255, 255, 0.96);
  border-top-color: rgba(31, 31, 43, 0.075);
  box-shadow: 0 -14px 30px rgba(43, 42, 67, 0.04);
}

body:has(.app-shell) > .dialog .button {
  min-height: 41px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

body:has(.app-shell) > .dialog .button--primary {
  background: linear-gradient(145deg, #1b1d24 0%, #08090d 76%);
  border-color: #08090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 9px 24px rgba(8, 9, 13, 0.16);
}

body:has(.app-shell) > .dialog .button--secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 31, 43, 0.14);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(43, 42, 67, 0.05);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .app-shell .sidebar::before,
  .app-shell .topbar::before,
  .app-shell :where(.panel, .card, .action-count, .money-overview, .filter-panel, .lead-mobile-card, .queue-navigator, .empty-state, .error-state) {
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
  }
}

@media (max-width: 1279px) {
  .app-shell,
  body:has(.app-shell) {
    --sidebar-width: 220px;
  }

  .app-shell .page {
    padding: 30px 26px 68px;
  }
}

@media (max-width: 1099px) {
  .app-shell,
  body:has(.app-shell) {
    --sidebar-width: 0px;
    --header-height: calc(60px + env(safe-area-inset-top));
  }

  .app-shell .topbar {
    padding: calc(8px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) 8px calc(18px + env(safe-area-inset-left));
  }

  .app-shell .topbar::before {
    inset: calc(5px + env(safe-area-inset-top)) 9px 0;
    border-radius: 17px;
  }

  .app-shell .page {
    padding: 25px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .app-shell .mobile-nav {
    right: max(9px, env(safe-area-inset-right));
    bottom: max(9px, env(safe-area-inset-bottom));
    left: max(9px, env(safe-area-inset-left));
    min-height: 62px;
    padding: 5px 6px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(31, 31, 43, 0.075);
    border-radius: 19px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), var(--shadow-dock);
  }

  .app-shell .mobile-nav-link {
    min-height: 50px;
    border-radius: 13px;
  }

  .app-shell .mobile-nav-link[aria-current="page"] {
    color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(105, 99, 236, 0.08);
  }

  .app-shell .mobile-nav-link[aria-current="page"] .nav-icon {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(105, 99, 236, 0.08);
  }
}

@media (max-width: 767px) {
  .app-shell .page {
    padding: 21px calc(14px + env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left));
  }

  .app-shell .page-header {
    gap: 14px;
    margin-bottom: 19px;
  }

  .app-shell .page-header-copy h1,
  .seller-lead-workspace .page-header-copy h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.2rem);
    line-height: 1.06;
  }

  .app-shell .page-actions {
    gap: 7px;
  }

  .app-shell .panel,
  .app-shell .panel-section {
    padding: 17px;
  }

  .app-shell .panel--flush {
    padding: 0;
  }

  .app-shell .tabs {
    padding: 4px;
    margin-right: 0;
    margin-left: 0;
    background: rgba(232, 233, 238, 0.76);
    border: 1px solid rgba(31, 31, 43, 0.065);
    border-radius: 13px;
  }

  .app-shell .tab {
    min-height: 40px;
    background: transparent;
  }

  .app-shell .tab[aria-current="page"] {
    background: rgba(255, 255, 255, 0.96);
  }

  body:has(.app-shell) > .dialog {
    width: calc(100vw - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 20px;
  }

  body:has(.app-shell) > .dialog .dialog-head {
    padding: 19px 18px 14px;
  }

  body:has(.app-shell) > .dialog .dialog-body {
    padding: 16px 18px 19px;
  }

  body:has(.app-shell) > .dialog .dialog-actions {
    padding: 12px 18px 17px;
  }
}

@media (max-width: 480px) {
  .app-shell .topbar {
    padding-right: calc(13px + env(safe-area-inset-right));
    padding-left: calc(13px + env(safe-area-inset-left));
  }

  .app-shell .page {
    padding: 18px calc(10px + env(safe-area-inset-right)) calc(94px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
  }

  .app-shell .page-header-copy h1,
  .seller-lead-workspace .page-header-copy h1 {
    font-size: clamp(1.65rem, 9vw, 2rem);
    overflow-wrap: anywhere;
  }

  .app-shell .page-header-copy p {
    font-size: 12px;
  }

  .app-shell .panel,
  .app-shell .panel-section {
    padding: 15px;
    border-radius: 18px;
  }

  .app-shell .panel--flush {
    padding: 0;
  }

  .app-shell .button {
    min-height: 42px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-shell .tabs {
    gap: 2px;
  }

  .app-shell .tab {
    min-height: 42px;
    padding: 8px 11px;
  }

  .app-shell .mobile-nav {
    right: max(7px, env(safe-area-inset-right));
    bottom: max(7px, env(safe-area-inset-bottom));
    left: max(7px, env(safe-area-inset-left));
    padding: 4px;
    border-radius: 17px;
  }

  .app-shell .mobile-nav-link,
  .app-shell[data-shell-key^="admin:"] .mobile-nav-link {
    min-width: 58px;
    min-height: 51px;
    padding: 3px;
    font-size: 10px;
  }

  .app-shell .mobile-nav-link small {
    font-size: 10px;
  }

  body:has(.app-shell) > .dialog .dialog-actions {
    align-items: stretch;
  }

  body:has(.app-shell) > .dialog .dialog-actions .button,
  body:has(.app-shell) > .dialog .dialog-actions > a {
    flex: 1 1 132px;
  }
}

@media (max-width: 380px) {
  .app-shell[data-shell-key^="sales:"]:not([data-shell-key="sales:onboarding"]) .mobile-nav {
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key^="sales:"]:not([data-shell-key="sales:onboarding"]) .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:not([data-shell-key="sales:onboarding"]) .mobile-nav-link {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body:has(.app-shell) {
    background: var(--canvas);
  }

  .app-shell .sidebar::before,
  .app-shell .topbar::before,
  .app-shell .mobile-nav,
  .app-shell :where(.panel, .card, .action-count, .money-overview, .filter-panel, .lead-mobile-card, .queue-navigator, .empty-state, .error-state),
  body:has(.app-shell) > .dialog {
    background: var(--surface);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .app-shell .nav-link[aria-current="page"] .nav-icon,
  .app-shell .mobile-nav-link[aria-current="page"] .nav-icon,
  .app-shell .button--primary {
    color: ButtonText;
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}

/* Balanced hybrid sign-in
 *
 * The authenticated workspace and public entry now share the same paper, ink,
 * and violet character. This is intentionally scoped away from the application,
 * customer-review, W-9, and legal-document surfaces.
 */
.login-page:not(.application-page) {
  --canvas: #f7f8fb;
  --surface: #ffffff;
  --surface-muted: #f1f2f5;
  --surface-strong: #e8e9ee;
  --surface-subtle: #fbfbfc;
  --ink: #08090d;
  --ink-soft: #2a2b32;
  --ink-muted: #60636a;
  --ink-faint: #666971;
  --border: rgba(31, 31, 43, 0.1);
  --border-strong: rgba(31, 31, 43, 0.17);
  --control-border: #858f9b;
  --brand: #111218;
  --brand-hover: #22242c;
  --accent: #552fca;
  --accent-soft: #efedff;
  min-width: 320px;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.78fr);
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 13% -6%, rgba(142, 124, 246, 0.17), transparent 33rem),
    radial-gradient(circle at 96% 8%, rgba(113, 163, 224, 0.1), transparent 36rem),
    radial-gradient(rgba(65, 61, 110, 0.055) 0.65px, transparent 0.75px) 0 0 / 28px 28px,
    linear-gradient(180deg, #fbfcfd 0%, var(--canvas) 58%, #f3f4f7 100%);
  font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page:not(.application-page) .login-brand-panel {
  min-width: 0;
  min-height: calc(100dvh - 28px);
  padding: clamp(32px, 5vw, 68px);
  background:
    radial-gradient(circle at 74% 19%, rgba(116, 100, 231, 0.3), transparent 28rem),
    radial-gradient(circle at 12% 94%, rgba(75, 99, 180, 0.18), transparent 25rem),
    linear-gradient(145deg, #252630 0%, #111218 57%, #08090d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 80px rgba(16, 17, 25, 0.18);
}

.login-page:not(.application-page) .login-brand-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.65px, transparent 0.75px);
  background-size: 28px 28px;
  border-radius: inherit;
  opacity: 0.14;
  mask-image: radial-gradient(ellipse 82% 66% at 62% 20%, #000 15%, transparent 78%);
  pointer-events: none;
}

.login-page:not(.application-page) .login-brand-panel::after {
  right: -150px;
  bottom: -135px;
  width: min(62vw, 630px);
  height: min(48vw, 470px);
  background-size: contain;
  border-radius: 0;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.28));
  opacity: 0.07;
  transform: rotate(-5deg);
}

.login-page:not(.application-page) .brand-lockup {
  position: relative;
  z-index: 2;
  gap: 12px;
}

.login-page:not(.application-page) .brand-mark {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 30px rgba(0, 0, 0, 0.26);
}

.login-page:not(.application-page) .brand-copy strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.login-page:not(.application-page) .brand-copy small {
  margin-top: 4px;
  color: #aaaab4;
  font-size: 11px;
}

.login-page:not(.application-page) .login-brand-message {
  max-width: 680px;
  margin: clamp(56px, 10vh, 112px) 0;
}

.login-page:not(.application-page) .login-eyebrow {
  margin-bottom: 19px;
  color: #bbb6ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.login-page:not(.application-page) .login-brand-message h1 {
  max-width: 680px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5.25vw, 5.8rem);
  font-weight: 560;
  letter-spacing: -0.067em;
  line-height: 0.9;
  text-wrap: balance;
}

.login-page:not(.application-page) .login-brand-message p {
  max-width: 570px;
  color: #b7b8c1;
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  line-height: 1.68;
}

.login-page:not(.application-page) .login-proof {
  gap: 8px;
}

.login-page:not(.application-page) .login-proof span {
  padding: 7px 11px;
  color: #d1d1d8;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.11);
  font-size: 11px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-page:not(.application-page) .login-form-panel {
  min-width: 0;
  padding: clamp(28px, 5vw, 72px);
  background: transparent;
}

.login-page:not(.application-page) .login-card {
  width: min(100%, 500px);
  padding: clamp(30px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 31, 43, 0.075);
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 30px 82px rgba(43, 42, 67, 0.13), 0 7px 20px rgba(43, 42, 67, 0.05);
}

.login-page:not(.application-page) .login-card > .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.login-page:not(.application-page) .login-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 610;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.login-page:not(.application-page) .login-card > p {
  margin-bottom: 25px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.58;
}

.login-page:not(.application-page) .login-workspace-switch {
  gap: 8px;
  margin-bottom: 13px;
  padding: 4px;
  background: rgba(232, 233, 238, 0.72);
  border: 1px solid rgba(31, 31, 43, 0.065);
  border-radius: 16px;
  box-shadow: inset 0 1px 2px rgba(20, 20, 30, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.login-page:not(.application-page) .login-workspace-option {
  min-height: 84px;
  gap: 11px;
  padding: 13px;
  color: var(--ink-muted);
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
}

.login-page:not(.application-page) .login-workspace-option:hover,
.login-page:not(.application-page) .login-workspace-option:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(31, 31, 43, 0.05);
  box-shadow: none;
}

.login-page:not(.application-page) .login-workspace-option.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(31, 31, 43, 0.065);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(43, 42, 67, 0.08);
}

.login-page:not(.application-page) .login-workspace-icon {
  width: 34px;
  height: 34px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(31, 31, 43, 0.09);
  border-radius: 10px;
}

.login-page:not(.application-page) .login-workspace-option.is-active .login-workspace-icon {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(85, 47, 202, 0.12);
}

.login-page:not(.application-page) .login-workspace-option strong {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

.login-page:not(.application-page) .login-workspace-option small {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

.login-page:not(.application-page) .login-role-note {
  margin-bottom: 20px;
  color: var(--ink-faint);
  font-size: 10px;
  line-height: 1.5;
}

.login-page:not(.application-page) :where(.input, .select, .textarea) {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--control-border);
  border-radius: 13px;
  box-shadow: inset 0 1px 2px rgba(20, 20, 30, 0.025), inset 0 1px 0 #fff;
}

.login-page:not(.application-page) .field label,
.login-page:not(.application-page) .field-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.login-page:not(.application-page) .auth-stack,
.login-page:not(.application-page) .auth-form {
  gap: 13px;
}

.login-page:not(.application-page) .button {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.login-page:not(.application-page) .auth-provider-button {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(31, 31, 43, 0.14);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px rgba(43, 42, 67, 0.05);
}

.login-page:not(.application-page) .button--primary {
  min-height: 48px;
  background: linear-gradient(145deg, #1b1d24 0%, #08090d 76%);
  border-color: #08090d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 9px 24px rgba(8, 9, 13, 0.16);
}

.login-page:not(.application-page) .button--primary:hover:not([disabled]) {
  background: linear-gradient(145deg, #292c35 0%, #111218 76%);
  border-color: #111218;
}

.login-page:not(.application-page) .google-mark {
  width: 24px;
  height: 24px;
  color: #365ec9;
  border-color: rgba(31, 31, 43, 0.1);
  box-shadow: 0 2px 5px rgba(43, 42, 67, 0.05);
}

.login-page:not(.application-page) .auth-divider {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.login-page:not(.application-page) .auth-divider::before,
.login-page:not(.application-page) .auth-divider::after,
.login-page:not(.application-page) .login-secondary {
  border-color: rgba(31, 31, 43, 0.09);
}

.login-page:not(.application-page) .login-secondary {
  padding-top: 19px;
  margin-top: 21px;
  font-size: 11px;
}

.login-page:not(.application-page) .login-secondary a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.login-page:not(.application-page) .login-footnote {
  margin-top: 18px;
  color: var(--ink-faint);
  font-size: 10px;
}

.login-page:not(.application-page) :focus-visible {
  outline-color: #552fca;
}

.boot-screen:has(.auth-callback-card) {
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(142, 124, 246, 0.16), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(113, 163, 224, 0.1), transparent 34rem),
    radial-gradient(rgba(65, 61, 110, 0.055) 0.65px, transparent 0.75px) 0 0 / 28px 28px,
    #f7f8fb;
}

.boot-screen:has(.auth-callback-card) .auth-callback-card {
  padding: 42px;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 31, 43, 0.08);
  border-radius: 24px;
  box-shadow: inset 0 1px 0 #fff, 0 30px 82px rgba(43, 42, 67, 0.13);
}

.boot-screen:has(.auth-callback-card) .auth-callback-card h1 {
  font-weight: 610;
  letter-spacing: -0.045em;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .login-page:not(.application-page) .login-card,
  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
  }
}

@media (max-width: 1100px) {
  .login-page:not(.application-page) {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.88fr);
  }

  .login-page:not(.application-page) .login-brand-panel {
    padding: 40px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    font-size: clamp(2.8rem, 5.8vw, 4.7rem);
  }

  .login-page:not(.application-page) .login-form-panel {
    padding: 32px;
  }
}

@media (max-width: 899px) {
  .login-page:not(.application-page) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .login-page:not(.application-page) .login-brand-panel {
    min-height: 320px;
    padding: calc(28px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 28px calc(28px + env(safe-area-inset-left));
    border-radius: 23px;
  }

  .login-page:not(.application-page) .login-brand-message {
    max-width: 650px;
    margin: 48px 0 30px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    max-width: 650px;
    margin-bottom: 16px;
    font-size: clamp(2.6rem, 9vw, 4.4rem);
    line-height: 0.94;
  }

  .login-page:not(.application-page) .login-brand-message p {
    max-width: 580px;
    font-size: 14px;
  }

  .login-page:not(.application-page) .login-form-panel {
    align-items: flex-start;
    padding: 34px calc(16px + env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  }

  .login-page:not(.application-page) .login-card {
    width: min(100%, 580px);
    padding: clamp(28px, 6vw, 38px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(31, 31, 43, 0.075);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 #fff, 0 24px 64px rgba(43, 42, 67, 0.11);
  }
}

@media (max-width: 767px) {
  .login-page:not(.application-page) .login-workspace-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page:not(.application-page) .login-workspace-option {
    min-height: 80px;
  }
}

@media (max-width: 520px) {
  .login-page:not(.application-page) {
    gap: 8px;
    padding: 8px;
  }

  .login-page:not(.application-page) .login-brand-panel {
    min-height: 280px;
    padding: calc(22px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 22px calc(20px + env(safe-area-inset-left));
    border-radius: 20px;
  }

  .login-page:not(.application-page) .brand-mark {
    width: 40px;
    height: 40px;
  }

  .login-page:not(.application-page) .brand-copy strong {
    font-size: 13px;
  }

  .login-page:not(.application-page) .login-brand-message {
    margin: 38px 0 12px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    margin-bottom: 13px;
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .login-page:not(.application-page) .login-brand-message p {
    display: block;
    font-size: 12px;
    line-height: 1.55;
  }

  .login-page:not(.application-page) .login-proof {
    display: none;
  }

  .login-page:not(.application-page) .login-form-panel {
    padding: 24px calc(8px + env(safe-area-inset-right)) calc(38px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  }

  .login-page:not(.application-page) .login-card {
    padding: 24px 20px;
    border-radius: 21px;
  }

  .login-page:not(.application-page) .login-card h2 {
    font-size: 1.8rem;
  }

  .login-page:not(.application-page) .login-card > p {
    margin-bottom: 21px;
  }

  .login-page:not(.application-page) .login-workspace-switch {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .login-page:not(.application-page) .login-workspace-option {
    min-height: 68px;
    padding: 10px;
  }

  .login-page:not(.application-page) .login-role-note {
    margin-bottom: 18px;
  }

  .login-page:not(.application-page) .login-secondary {
    align-items: center;
    flex-direction: column;
    gap: 3px;
  }

  .boot-screen:has(.auth-callback-card) {
    padding: 12px;
  }

  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    padding: 30px 22px;
    border-radius: 21px;
  }
}

@media (max-width: 350px) {
  .login-page:not(.application-page) .login-brand-panel {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .login-page:not(.application-page) .login-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .login-page:not(.application-page) .login-workspace-option small {
    font-size: 9px;
  }
}

@media (max-height: 640px) and (min-width: 900px) {
  .login-page:not(.application-page) .login-brand-panel {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-page:not(.application-page) .login-brand-message {
    margin: 30px 0;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
  }

  .login-page:not(.application-page) .login-proof {
    display: none;
  }

  .login-page:not(.application-page) .login-form-panel {
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
    overflow-y: auto;
  }
}

/* Sales · Lead detail glass workspace
 *
 * The lead workspace keeps the authoritative sales state and actions from the
 * shared renderers. Its dark glass cards sit on the same projected shell used
 * by every other sales route.
 */

.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page:has(> .seller-lead-workspace) {
  width: min(1230px, calc(100% - 72px));
  min-height: calc(100vh - var(--header-height));
  padding: 22px 0 44px;
}

.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace {
  --surface: rgba(15, 25, 40, 0.78);
  --surface-muted: rgba(34, 45, 62, 0.74);
  --surface-strong: rgba(48, 59, 76, 0.82);
  --surface-subtle: rgba(29, 40, 57, 0.72);
  --ink: #f7f7fb;
  --ink-soft: #d8dae2;
  --ink-muted: #aeb3bf;
  --ink-faint: #888f9d;
  --border: rgba(255, 255, 255, 0.13);
  --border-strong: rgba(255, 255, 255, 0.21);
  --control-border: rgba(255, 255, 255, 0.2);
  --accent: #aa7cff;
  --accent-soft: rgba(143, 97, 236, 0.17);
  --success: #53d18e;
  --success-soft: rgba(51, 188, 116, 0.15);
  --warning: #ffb323;
  --warning-soft: rgba(221, 139, 0, 0.15);
  --danger: #ff756f;
  --danger-soft: rgba(221, 72, 72, 0.15);
  width: 100%;
  max-width: none;
  color: var(--ink);
}

.seller-lead-workspace .seller-lead-hero {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px 24px;
  min-width: 0;
  margin-bottom: 12px;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.seller-lead-workspace .seller-lead-hero-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.seller-lead-workspace .back-link {
  width: fit-content;
  min-height: 28px;
  gap: 8px;
  margin: 0;
  color: rgba(31, 35, 44, 0.76);
  font-size: 13px;
  font-weight: 540;
}

.seller-lead-workspace .back-link .ui-icon {
  width: 17px;
  height: 17px;
}

.seller-lead-workspace .back-link:hover {
  color: #171a21;
}

.seller-lead-workspace .seller-lead-identity {
  min-width: 0;
}

.seller-lead-workspace .seller-lead-title-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.seller-lead-workspace .seller-lead-title-row h1 {
  max-width: 100%;
  margin: 0;
  color: #252932;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 630;
  letter-spacing: -0.052em;
  line-height: 1.04;
  text-wrap: balance;
}

.seller-lead-workspace .seller-lead-title-row > .status-badge,
.seller-lead-workspace .seller-lead-title-row > .stage-badge {
  min-height: 31px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
}

.seller-lead-workspace .seller-lead-identity > p {
  margin: 7px 0 0;
  color: rgba(35, 39, 49, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.seller-lead-workspace .seller-lead-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  align-self: center;
}

.seller-lead-workspace .seller-lead-hero-actions .button,
.seller-lead-workspace .queue-navigator-actions .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  color: #f8f8fb;
  background: rgba(17, 27, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.seller-lead-workspace .seller-lead-hero-actions .button--primary {
  background: linear-gradient(105deg, #8858e7, #a56ef5);
  border-color: rgba(225, 208, 255, 0.38);
  box-shadow: 0 12px 28px rgba(82, 41, 164, 0.28), inset 0 1px rgba(255, 255, 255, 0.24);
}

.seller-lead-workspace .seller-lead-hero-actions .button:hover,
.seller-lead-workspace .queue-navigator-actions .button:hover:not([aria-disabled="true"]) {
  color: #fff;
  background: rgba(45, 57, 75, 0.82);
  border-color: rgba(211, 190, 255, 0.44);
}

.seller-lead-workspace .seller-lead-hero-actions .button--primary:hover {
  background: linear-gradient(105deg, #9867ef, #b07dff);
}

.seller-lead-workspace .seller-lead-hero-actions .ui-icon,
.seller-lead-workspace .queue-navigator-actions .ui-icon {
  width: 18px;
  height: 18px;
}

.seller-lead-workspace .queue-navigator {
  display: flex;
  min-height: 44px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.seller-lead-workspace .queue-navigator > .seller-lead-queue-position {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: rgba(29, 40, 57, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.seller-lead-workspace .queue-navigator .seller-lead-queue-position > span,
.seller-lead-workspace .queue-navigator .seller-lead-queue-position > strong {
  color: inherit;
  font-size: 12px;
  font-weight: 570;
  letter-spacing: 0;
  text-transform: none;
}

.seller-lead-workspace .seller-lead-queue-position i {
  color: var(--ink-faint);
  font-style: normal;
}

.seller-lead-workspace .queue-navigator-actions {
  gap: 14px;
}

.seller-lead-workspace .queue-navigator-actions .button {
  min-width: 136px;
  min-height: 44px;
}

.seller-lead-workspace .queue-navigator [aria-disabled="true"] {
  color: rgba(214, 217, 225, 0.45);
  opacity: 1;
}

.seller-lead-workspace .lead-layout {
  grid-template-columns: minmax(0, 1.62fr) minmax(420px, 1fr);
  gap: 28px;
}

.seller-lead-workspace .lead-workspace-main {
  gap: 20px;
}

.seller-lead-workspace .lead-sidebar {
  top: calc(var(--header-height) + 18px);
  gap: 14px;
}

.seller-lead-workspace .tabs--workspace {
  min-height: 62px;
  padding: 3px;
  margin: 0;
  overflow: hidden;
  background: rgba(25, 35, 51, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 13px 32px rgba(3, 9, 18, 0.13);
  -webkit-backdrop-filter: blur(24px) saturate(112%);
  backdrop-filter: blur(24px) saturate(112%);
}

.seller-lead-workspace .tabs--workspace .tab {
  min-height: 54px;
  color: var(--ink-soft);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 520;
}

.seller-lead-workspace .tabs--workspace .tab[aria-current="page"] {
  color: #fff;
  background: rgba(50, 61, 79, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -3px #a778ff, inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace .panel,
.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace .peer-benchmark {
  color: var(--ink);
  background:
    radial-gradient(ellipse 76% 42% at 4% -6%, rgba(134, 99, 202, 0.09), transparent 74%),
    linear-gradient(145deg, rgba(28, 38, 54, 0.82), rgba(13, 24, 39, 0.79));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(2, 9, 18, 0.17), inset 0 1px rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(27px) saturate(116%);
  backdrop-filter: blur(27px) saturate(116%);
}

.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace .panel {
  padding: 24px;
}

.seller-lead-workspace .section-heading {
  margin-bottom: 17px;
}

.seller-lead-workspace .section-heading h2,
.seller-lead-workspace .panel h2 {
  color: #fff;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.seller-lead-workspace .section-heading p,
.seller-lead-workspace .panel p {
  color: var(--ink-muted);
}

.seller-lead-workspace .eyebrow {
  color: #bd91ff;
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(171, 118, 255, 0.45);
}

.seller-lead-workspace .seller-lead-conversation-card {
  padding: 26px 24px 28px;
}

.seller-lead-workspace .seller-lead-offer h2 {
  margin: 0;
  font-size: 24px;
}

.seller-lead-workspace .seller-lead-offer p {
  margin: 9px 0 0;
  font-size: 14px;
  line-height: 1.55;
}

.seller-lead-workspace .seller-lead-section-divider {
  height: 1px;
  margin: 23px 0;
  background: rgba(255, 255, 255, 0.15);
}

.seller-lead-workspace .seller-lead-question-section .section-heading h2,
.seller-lead-workspace .seller-discovery-card .section-heading h2 {
  margin: 0 0 7px;
  font-size: 22px;
}

.seller-lead-workspace .seller-lead-question-section .section-heading p,
.seller-lead-workspace .seller-discovery-card .section-heading p {
  margin: 0;
  font-size: 13px;
}

.seller-lead-workspace .question-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 28px;
  padding: 0;
  counter-reset: seller-question;
  list-style: none;
}

.seller-lead-workspace .question-list li {
  display: grid;
  min-width: 0;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
  counter-increment: seller-question;
}

.seller-lead-workspace .question-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #e0d2ff;
  content: counter(seller-question);
  background: linear-gradient(145deg, rgba(138, 91, 226, 0.75), rgba(67, 54, 107, 0.88));
  border: 1px solid rgba(219, 197, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.seller-lead-workspace .seller-discovery-note {
  margin: 21px 0 0;
  color: var(--ink-faint);
  font-size: 11px;
}

.seller-lead-workspace .peer-benchmark {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.seller-lead-workspace .peer-benchmark .section-heading {
  margin: 0;
}

.seller-lead-workspace .peer-benchmark .section-heading h2 {
  margin-bottom: 5px;
  font-size: 22px;
}

.seller-lead-workspace .peer-benchmark .section-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.seller-lead-workspace .peer-benchmark .status-badge {
  color: #81afff;
  background: rgba(53, 104, 202, 0.15);
  border-color: rgba(100, 147, 239, 0.34);
}

.seller-lead-workspace .peer-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.seller-lead-workspace .peer-metric {
  min-height: 134px;
  padding: 12px;
  color: var(--ink);
  background: rgba(15, 27, 43, 0.46);
  border-color: rgba(255, 255, 255, 0.17);
  border-top-width: 3px;
  border-radius: 10px;
}

.seller-lead-workspace .peer-metric > span,
.seller-lead-workspace .peer-metric > small {
  color: var(--ink-muted);
  font-size: 10px;
}

.seller-lead-workspace .peer-metric > strong {
  color: #fff;
  font-size: 21px;
}

.seller-lead-workspace .peer-metric p {
  color: var(--ink-soft);
  font-size: 10px;
}

.seller-lead-workspace .peer-metric small {
  margin-top: 4px;
  color: var(--success);
  line-height: 1.45;
}

.seller-lead-workspace .peer-metric--worse small {
  color: var(--warning);
}

.seller-lead-workspace .peer-benchmark-note {
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.5;
}

.seller-lead-workspace .seller-lead-evidence-card .section-heading h2 {
  font-size: 22px;
}

.seller-lead-workspace .evidence-item {
  grid-template-columns: 20px minmax(0, 1fr);
  padding: 14px 0;
  border-color: rgba(255, 255, 255, 0.13);
}

.seller-lead-workspace .evidence-icon {
  width: 20px;
  height: 20px;
  color: var(--success);
  background: rgba(44, 175, 109, 0.12);
  border: 1px solid rgba(70, 212, 139, 0.34);
}

.seller-lead-workspace .evidence-copy {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 0.34fr) minmax(0, 1fr);
  gap: 9px 14px;
}

.seller-lead-workspace .evidence-copy > strong {
  grid-column: 1 / -1;
  color: #fff;
  font-size: 12px;
}

.seller-lead-workspace .evidence-measurement {
  width: 100%;
  align-self: stretch;
  margin: 0;
  color: var(--ink);
  background: rgba(126, 82, 211, 0.16);
  border-color: rgba(178, 135, 255, 0.36);
}

.seller-lead-workspace .evidence-measurement > span,
.seller-lead-workspace .evidence-measurement > small,
.seller-lead-workspace .evidence-measurement > em {
  color: var(--ink-muted);
}

.seller-lead-workspace .evidence-measurement > b {
  color: #fff;
  font-size: 19px;
}

.seller-lead-workspace .evidence-explanation {
  align-self: stretch;
  gap: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
}

.seller-lead-workspace .evidence-explanation > div {
  grid-template-columns: minmax(116px, 0.3fr) minmax(0, 1fr);
  gap: 10px;
  padding: 6px 9px;
  background: rgba(18, 29, 45, 0.45);
  border-radius: 0;
}

.seller-lead-workspace .evidence-explanation > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.seller-lead-workspace .evidence-explanation dt {
  color: #f3f3f7;
}

.seller-lead-workspace .evidence-explanation dd {
  color: var(--ink-soft);
}

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

.seller-lead-workspace .signal-card {
  color: var(--ink);
  background: rgba(22, 33, 49, 0.58);
  border-color: rgba(255, 255, 255, 0.15);
}

.seller-lead-workspace .signal-card-top {
  color: var(--ink-muted);
}

.seller-lead-workspace .signal-card strong {
  color: #fff;
}

.seller-lead-workspace .signal-track {
  background: rgba(154, 117, 224, 0.18);
}

.seller-lead-workspace .signal-fill {
  background: linear-gradient(90deg, #8b5de5, #a979ff);
}

.seller-lead-workspace .seller-ai-insights {
  margin-top: 20px;
  overflow: hidden;
  background: rgba(17, 28, 44, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
}

.seller-lead-workspace .seller-ai-insights > summary {
  padding: 13px 15px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}

.seller-lead-workspace .seller-ai-insights-body {
  display: grid;
  gap: 10px;
  padding: 0 15px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.seller-lead-workspace .sales-ai-callout {
  color: var(--ink);
  background: rgba(31, 43, 60, 0.58);
  border-color: rgba(255, 255, 255, 0.14);
}

.seller-lead-workspace .sales-ai-callout > span {
  color: #bf9bff;
}

.seller-lead-workspace .sales-ai-callout p {
  color: var(--ink-soft);
}

.seller-lead-workspace .seller-lead-card-heading {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.seller-lead-workspace .seller-lead-card-heading .eyebrow {
  margin: 0;
}

.seller-lead-workspace .seller-business-contact .section-heading {
  margin-bottom: 17px;
}

.seller-lead-workspace .seller-business-contact .section-heading .eyebrow {
  margin-bottom: 8px;
}

.seller-lead-workspace .seller-business-contact .section-heading p {
  margin: 0;
  font-size: 12px;
}

.seller-lead-workspace .seller-contact-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.seller-lead-workspace .seller-contact-list > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 0;
}

.seller-lead-workspace .seller-contact-list dt {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-muted);
  font-size: 10px;
  text-transform: uppercase;
}

.seller-lead-workspace .seller-contact-list dt .ui-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: #f2f3f7;
}

.seller-lead-workspace .seller-contact-list dd {
  min-width: 0;
  margin: 0;
}

.seller-lead-workspace .seller-contact-list dd strong,
.seller-lead-workspace .seller-contact-list dd a {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 590;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.seller-lead-workspace .seller-contact-list dd a {
  color: #bc92ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-lead-workspace .seller-contact-list dd a .ui-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.seller-lead-workspace .contact-actions {
  gap: 10px;
  margin-top: 15px;
}

.seller-lead-workspace .contact-actions .button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #f5f5f9;
  background: rgba(17, 28, 44, 0.42);
  border-color: rgba(255, 255, 255, 0.21);
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.seller-lead-workspace .contact-actions .button:last-child {
  color: #c9a9ff;
  border-color: rgba(181, 139, 255, 0.55);
}

.seller-lead-workspace .contact-actions .ui-icon {
  width: 18px;
  height: 18px;
}

.seller-lead-workspace .seller-deal-summary {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.55;
}

.seller-lead-workspace .metric-list {
  display: grid;
  gap: 0;
}

.seller-lead-workspace .metric-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border: 0;
}

.seller-lead-workspace .metric-row span {
  color: var(--ink-muted);
  font-size: 12px;
}

.seller-lead-workspace .metric-row strong {
  color: #fff;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.45;
  text-align: right;
}

.seller-lead-workspace .seller-assignment-card .notice {
  padding: 12px 13px;
  color: #ffd37e;
  background: rgba(103, 66, 4, 0.25);
  border-color: rgba(235, 157, 16, 0.45);
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
}

.seller-lead-workspace .seller-assignment-card .notice strong {
  color: #ffbd3c;
}

.seller-lead-workspace .seller-assignment-card .form-actions {
  align-items: stretch;
  gap: 8px;
}

.seller-lead-workspace .seller-assignment-card .form-actions .button {
  flex: 1 1 0;
}

.seller-lead-workspace .seller-assignment-card .button--primary {
  color: #fff;
  background: linear-gradient(105deg, #8858e7, #a56ef5);
  border-color: rgba(225, 208, 255, 0.38);
}

.seller-lead-workspace .customer-lifecycle-panel {
  color: var(--ink);
}

.seller-lead-workspace .customer-lifecycle-list,
.seller-lead-workspace .customer-lifecycle-item {
  border-color: rgba(255, 255, 255, 0.13);
}

.seller-lead-workspace .seller-script-workspace .script-list {
  display: grid;
  gap: 12px;
}

.seller-lead-workspace .script-card {
  padding: 14px;
  color: var(--ink);
  background: rgba(17, 28, 44, 0.48);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 11px;
}

.seller-lead-workspace .script-card-head strong {
  color: #fff;
}

.seller-lead-workspace .script-card-head .button {
  min-height: 32px;
  color: #c7a6ff;
  background: rgba(139, 91, 229, 0.12);
  border-color: rgba(177, 135, 255, 0.25);
}

.seller-lead-workspace :where(.input, .select, .textarea) {
  color: #f7f7fa;
  background: rgba(8, 18, 31, 0.48);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.seller-lead-workspace :where(.input, .select, .textarea)::placeholder {
  color: rgba(218, 221, 229, 0.55);
}

.seller-lead-workspace :where(.input, .select, .textarea):focus {
  border-color: rgba(180, 135, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(158, 108, 246, 0.13);
}

.seller-lead-workspace .script-card-note,
.seller-lead-workspace .field-help {
  color: var(--ink-faint);
}

.seller-lead-workspace .verified-opener-note,
.seller-lead-workspace .sales-ai-script-boundary,
.seller-lead-workspace .offer-summary {
  color: var(--ink);
  background: rgba(117, 78, 190, 0.14);
  border-color: rgba(181, 142, 248, 0.28);
}

.seller-lead-workspace .verified-opener-note > span {
  color: #bf96ff;
  background: rgba(26, 37, 54, 0.8);
}

.seller-lead-workspace .verified-opener-note p,
.seller-lead-workspace .verified-opener-note small,
.seller-lead-workspace .offer-summary p {
  color: var(--ink-muted);
}

.seller-lead-workspace .offer-summary span {
  color: #bd9aff;
}

.seller-lead-workspace .offer-summary strong,
.seller-lead-workspace .sales-ai-script-boundary strong {
  color: #fff;
}

.seller-lead-workspace .seller-activity-workspace .section-heading h2,
.seller-lead-workspace .activity-composer .section-heading h2 {
  font-size: 22px;
}

.seller-lead-workspace .field-label {
  color: var(--ink-soft);
}

.seller-lead-workspace .compact-item {
  color: var(--ink);
  background: rgba(18, 29, 45, 0.44);
  border-color: rgba(255, 255, 255, 0.13);
}

.seller-lead-workspace .item-title {
  color: #fff;
}

.seller-lead-workspace .item-meta,
.seller-lead-workspace .empty-inline {
  color: var(--ink-muted);
}

.seller-lead-workspace .timeline-item:not(:last-child)::before {
  background: rgba(255, 255, 255, 0.14);
}

.seller-lead-workspace .timeline-dot {
  color: #c5a3ff;
  background: rgba(92, 61, 151, 0.35);
  border-color: rgba(190, 151, 255, 0.28);
}

.seller-lead-workspace .timeline-copy strong {
  color: #fff;
}

.seller-lead-workspace .timeline-copy p,
.seller-lead-workspace .timeline-copy time {
  color: var(--ink-muted);
}

.seller-lead-workspace .seller-access-banner,
.seller-lead-workspace .lock-banner {
  color: #ffe1a8;
  background: rgba(90, 58, 8, 0.5);
  border-color: rgba(235, 157, 16, 0.4);
}

.seller-lead-workspace .seller-contact-locked,
.seller-lead-workspace .seller-paused-panel {
  color: var(--ink);
}

.seller-lead-workspace .seller-contact-locked p,
.seller-lead-workspace .seller-contact-locked small,
.seller-lead-workspace .seller-paused-panel p {
  color: var(--ink-muted);
}

.seller-lead-workspace .seller-contact-location,
.seller-lead-workspace .seller-unlock-steps li {
  color: var(--ink);
  background: rgba(18, 29, 45, 0.5);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 1340px) {
  .seller-lead-workspace .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .lead-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-lead-workspace .customer-lifecycle-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1240px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page:has(> .seller-lead-workspace) {
    width: min(calc(100% - 40px), 1120px);
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page:has(> .seller-lead-workspace) {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .seller-lead-workspace .seller-lead-hero {
    position: static;
  }

  .seller-lead-workspace .seller-lead-title-row h1 {
    font-size: clamp(1.9rem, 6vw, 2.5rem);
  }

  .seller-lead-workspace .seller-lead-hero-actions {
    align-self: end;
  }
}

@media (max-width: 767px) {
  .seller-lead-workspace .seller-lead-hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 13px;
  }

  .seller-lead-workspace .seller-lead-hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .seller-lead-workspace .seller-lead-hero-actions .button {
    width: 100%;
    padding-inline: 11px;
  }

  .seller-lead-workspace .queue-navigator {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .seller-lead-workspace .queue-navigator > .seller-lead-queue-position {
    width: 100%;
    justify-content: center;
  }

  .seller-lead-workspace .queue-navigator-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-lead-workspace .queue-navigator-actions .button {
    min-width: 0;
    width: 100%;
  }

  .seller-lead-workspace .tabs--workspace {
    overflow-x: auto;
  }

  .seller-lead-workspace .tabs--workspace .tab {
    min-width: 112px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace .panel,
  .seller-lead-workspace .peer-benchmark {
    padding: 18px;
  }

  .seller-lead-workspace .question-list,
  .seller-lead-workspace .signal-grid,
  .seller-lead-workspace .lead-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .peer-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-lead-workspace .evidence-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .evidence-copy > strong,
  .seller-lead-workspace .evidence-measurement,
  .seller-lead-workspace .evidence-explanation {
    grid-column: 1;
  }

  .seller-lead-workspace .seller-contact-list > div {
    grid-template-columns: 106px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .seller-lead-workspace .seller-lead-title-row {
    align-items: flex-start;
  }

  .seller-lead-workspace .seller-lead-title-row h1 {
    flex-basis: 100%;
  }

  .seller-lead-workspace .seller-lead-identity > p {
    font-size: 12px;
  }

  .seller-lead-workspace .seller-lead-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .peer-metric-grid,
  .seller-lead-workspace .contact-actions,
  .seller-lead-workspace .composer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .seller-contact-list > div,
  .seller-lead-workspace .metric-row,
  .seller-lead-workspace .evidence-explanation > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-lead-workspace .seller-contact-list > div {
    gap: 6px;
  }

  .seller-lead-workspace .metric-row strong {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page:has(> .seller-lead-workspace) {
    padding-right: calc(8px + env(safe-area-inset-right));
    padding-left: calc(8px + env(safe-area-inset-left));
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace :where(.panel, .peer-benchmark, .tabs--workspace) {
    background: #18263a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace,
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .seller-lead-workspace :where(.panel, .peer-benchmark, .tabs--workspace, .peer-metric, .script-card, .signal-card, .notice, .queue-navigator .button) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .seller-lead-workspace .tabs--workspace .tab[aria-current="page"],
  .seller-lead-workspace .seller-lead-hero-actions .button--primary {
    color: HighlightText;
    background: Highlight;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .login-page:not(.application-page) {
    background: #f7f8fb;
  }

  .login-page:not(.application-page) .login-card,
  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    background: #ffffff;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .login-page:not(.application-page) .login-proof span {
    background: #292a33;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .login-page:not(.application-page),
  .login-page:not(.application-page) .login-brand-panel,
  .login-page:not(.application-page) .login-card,
  .login-page:not(.application-page) .login-workspace-switch,
  .login-page:not(.application-page) .login-workspace-option,
  .boot-screen:has(.auth-callback-card),
  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .login-page:not(.application-page) .login-workspace-option.is-active {
    border: 2px solid Highlight;
  }

  .login-page:not(.application-page) .login-brand-panel::before,
  .login-page:not(.application-page) .login-brand-panel::after {
    display: none;
  }
}

/* Balanced hybrid sales application
 *
 * Scoped to /apply so customer review, W-9, legal, sign-in, and authenticated
 * workspace layouts keep their own composition and compliance boundaries. The
 * public entrance uses the same projected-glass language as the sales workspace
 * without exposing authenticated navigation before an applicant is approved.
 */
.application-page {
  --canvas: #c9cdd4;
  --surface: #ffffff;
  --surface-muted: rgba(230, 233, 238, 0.72);
  --surface-strong: rgba(205, 211, 220, 0.78);
  --surface-subtle: rgba(249, 250, 252, 0.82);
  --ink: #171b24;
  --ink-soft: #292e38;
  --ink-muted: #59616d;
  --ink-faint: #68717d;
  --border: rgba(255, 255, 255, 0.48);
  --border-strong: rgba(54, 64, 78, 0.22);
  --control-border: rgba(70, 80, 94, 0.48);
  --brand: #8050dc;
  --brand-hover: #6f3fca;
  --accent: #7242cb;
  --accent-soft: rgba(226, 213, 250, 0.66);
  position: relative;
  isolation: isolate;
  min-width: 320px;
  grid-template-columns: minmax(380px, 0.82fr) minmax(560px, 1.18fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  background:
    radial-gradient(ellipse 72% 42% at 32% -7%, rgba(255, 255, 255, 0.98), rgba(242, 244, 247, 0.72) 38%, transparent 74%),
    radial-gradient(ellipse 48% 72% at 18% 38%, rgba(247, 248, 250, 0.62), rgba(205, 210, 218, 0.28) 56%, transparent 82%),
    radial-gradient(ellipse 56% 62% at 59% 8%, rgba(199, 205, 214, 0.48), rgba(124, 134, 147, 0.18) 58%, transparent 82%),
    radial-gradient(ellipse 62% 80% at 102% 8%, rgba(44, 55, 71, 0.83), transparent 72%),
    radial-gradient(ellipse 74% 66% at 68% 108%, rgba(8, 16, 29, 0.92), transparent 76%),
    linear-gradient(146deg, #f0f1f3 0%, #c9cdd4 27%, #828b98 55%, #172335 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

.application-page::before,
.application-page::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.application-page::before {
  inset: 0;
  background:
    radial-gradient(ellipse 34% 58% at 9% 10%, rgba(255, 255, 255, 0.48), transparent 74%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.23), transparent 39%, rgba(20, 29, 42, 0.3) 81%),
    radial-gradient(rgba(255, 255, 255, 0.46) 0.6px, transparent 0.7px) 0 0 / 4px 4px;
  opacity: 0.44;
}

.application-page::after {
  top: -34%;
  left: -31%;
  width: 116vw;
  height: 172vh;
  background:
    radial-gradient(ellipse at 57% 9%, rgba(255, 255, 255, 0.9) 0%, rgba(242, 244, 247, 0.72) 27%, rgba(194, 201, 211, 0.48) 47%, rgba(231, 234, 239, 0.24) 62%, transparent 79%),
    radial-gradient(ellipse 46% 54% at 51% 24%, rgba(181, 187, 198, 0.2), transparent 78%);
  border-radius: 46% 54% 58% 42% / 42% 48% 52% 58%;
  filter: blur(88px);
  opacity: 0.7;
  transform: rotate(-8deg);
}

.application-page .login-brand-panel {
  position: sticky;
  top: 14px;
  min-width: 0;
  min-height: calc(100dvh - 28px);
  height: calc(100dvh - 28px);
  padding: clamp(32px, 4.2vw, 64px);
  background:
    radial-gradient(ellipse 115% 58% at 9% -4%, rgba(235, 238, 243, 0.34), transparent 66%),
    radial-gradient(ellipse 84% 64% at 92% 12%, rgba(164, 112, 239, 0.18), transparent 72%),
    linear-gradient(168deg, rgba(160, 170, 183, 0.9) 0%, rgba(101, 114, 131, 0.91) 42%, rgba(61, 75, 93, 0.94) 72%, rgba(34, 47, 64, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  box-shadow:
    24px 0 54px rgba(244, 247, 250, 0.18),
    0 24px 66px rgba(12, 16, 24, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.19);
  -webkit-backdrop-filter: blur(34px) saturate(92%);
  backdrop-filter: blur(34px) saturate(92%);
}

.application-page .login-brand-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.7px) 0 0 / 4px 4px;
  border-radius: inherit;
  opacity: 0.42;
  -webkit-mask-image: radial-gradient(ellipse 82% 66% at 62% 20%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 82% 66% at 62% 20%, #000 15%, transparent 78%);
  pointer-events: none;
}

.application-page .login-brand-panel::after {
  right: -135px;
  bottom: -125px;
  width: min(54vw, 560px);
  height: min(43vw, 420px);
  background-size: contain;
  border-radius: 0;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.28));
  opacity: 0.075;
  transform: rotate(-5deg);
}

.application-page .brand-lockup {
  position: relative;
  z-index: 2;
  gap: 12px;
}

.application-page .brand-mark {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(35, 42, 54, 0.14);
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86), 0 10px 28px rgba(18, 25, 36, 0.18);
}

.application-page .brand-mark img {
  filter: brightness(0) contrast(1.08);
}

.application-page .brand-copy strong {
  color: #ffffff;
  font-size: 19px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.application-page .brand-copy small {
  margin-top: 2px;
  color: rgba(248, 249, 251, 0.84);
  font-size: 12px;
}

.application-page .login-brand-message {
  max-width: 620px;
  margin: clamp(44px, 8vh, 92px) 0;
}

.application-page .login-eyebrow {
  margin-bottom: 18px;
  color: #d3b1ff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.application-page .login-brand-message h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(2.75rem, 4.7vw, 5.2rem);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.91;
  text-wrap: balance;
}

.application-page .login-brand-message p {
  max-width: 560px;
  color: rgba(244, 246, 249, 0.82);
  font-size: clamp(0.92rem, 1.15vw, 1.04rem);
  line-height: 1.65;
}

.application-page .login-proof {
  gap: 8px;
}

.application-page .login-proof span {
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(18, 29, 43, 0.18);
  border-color: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.application-page .login-form-panel {
  min-width: 0;
  align-items: flex-start;
  padding: clamp(28px, 4.2vw, 64px);
  background: transparent;
}

.application-page .application-card {
  width: min(100%, 720px);
  padding: clamp(30px, 4vw, 44px);
  background:
    radial-gradient(ellipse 88% 58% at 0% 0%, rgba(255, 255, 255, 0.66), transparent 72%),
    linear-gradient(145deg, rgba(239, 241, 245, 0.88), rgba(207, 213, 221, 0.79));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    0 28px 72px rgba(16, 23, 34, 0.2),
    0 8px 24px rgba(16, 23, 34, 0.08);
}

.application-page .back-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  margin: -7px 0 25px -9px;
  color: var(--ink-muted);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
}

.application-page .back-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
}

.application-page .application-card > .eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.application-page .application-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 2.65rem);
  font-weight: 610;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.application-page .application-card > p {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.65;
}

.application-page .application-card form.stack {
  gap: 20px;
}

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

.application-page .application-identity-grid > .field {
  align-content: start;
  min-width: 0;
}

.application-page .field {
  gap: 7px;
}

.application-page .field label,
.application-page .field-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.application-page :where(.input, .select, .textarea) {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  border-color: var(--control-border);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(20, 25, 34, 0.05), inset 0 1px rgba(255, 255, 255, 0.64);
}

.application-page :where(.input, .select, .textarea)::placeholder {
  color: #6b7480;
  opacity: 1;
}

.application-page :where(.input, .select, .textarea):-webkit-autofill,
.application-page :where(.input, .select, .textarea):-webkit-autofill:hover,
.application-page :where(.input, .select, .textarea):-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px rgba(244, 246, 249, 0.94) inset;
}

.application-page :where(.input, .select) {
  min-height: 48px;
  padding: 10px 12px;
}

.application-page .textarea {
  min-height: 126px;
  padding: 12px;
  line-height: 1.55;
}

.application-page :where(.input, .select, .textarea):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(114, 66, 203, 0.14), inset 0 1px 2px rgba(20, 20, 30, 0.03);
}

.application-page .field-help {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.application-page .application-verification {
  gap: 13px;
  padding: 17px;
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, rgba(229, 212, 255, 0.7), transparent 75%),
    rgba(237, 233, 248, 0.54);
  border-color: rgba(114, 66, 203, 0.22);
  border-radius: 12px;
}

.application-page .application-verification .code-input {
  max-width: 220px;
  font-size: 18px;
  text-align: center;
}

.application-page .button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.application-page .button--small {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 11px;
}

.application-page .button--primary {
  min-height: 48px;
  background: linear-gradient(135deg, #a464f0, #7544ce);
  border-color: rgba(102, 56, 183, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 12px 28px rgba(105, 63, 184, 0.27);
}

.application-page .button--primary:hover:not([disabled]) {
  background: linear-gradient(135deg, #ad72f5, #8050dc);
  border-color: rgba(102, 56, 183, 0.84);
}

.application-page .application-privacy {
  padding: 14px 15px;
  margin: 22px 0 0;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
}

.application-page :focus-visible {
  outline-color: #552fca;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .application-page .application-card {
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
  }
}

@media (max-width: 1120px) {
  .application-page {
    grid-template-columns: minmax(340px, 0.74fr) minmax(540px, 1.26fr);
  }

  .application-page .login-brand-panel {
    padding: 38px;
  }

  .application-page .login-brand-message h1 {
    font-size: clamp(2.7rem, 5.2vw, 4.5rem);
  }

  .application-page .login-form-panel {
    padding: 34px 28px;
  }

  .application-page .application-card {
    padding: 34px;
  }
}

@media (max-width: 959px) {
  .application-page {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .application-page .login-brand-panel {
    position: relative;
    top: auto;
    min-height: 340px;
    height: auto;
    padding: calc(28px + env(safe-area-inset-top)) calc(28px + env(safe-area-inset-right)) 28px calc(28px + env(safe-area-inset-left));
    border-radius: 23px;
  }

  .application-page .login-brand-message {
    max-width: 690px;
    margin: 48px 0 32px;
  }

  .application-page .login-brand-message h1 {
    max-width: 650px;
    margin-bottom: 16px;
    font-size: clamp(2.6rem, 9vw, 4.4rem);
    line-height: 0.94;
  }

  .application-page .login-brand-message p {
    max-width: 650px;
    font-size: 14px;
  }

  .application-page .login-form-panel {
    padding: 34px calc(16px + env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  }

  .application-page .application-card {
    width: min(100%, 720px);
    padding: clamp(28px, 6vw, 40px);
    background:
      radial-gradient(ellipse 88% 58% at 0% 0%, rgba(255, 255, 255, 0.66), transparent 72%),
      linear-gradient(145deg, rgba(239, 241, 245, 0.9), rgba(207, 213, 221, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 24px 64px rgba(16, 23, 34, 0.16);
  }
}

@media (max-width: 767px) {
  .application-page .application-identity-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .application-page .application-card form.stack {
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .application-page {
    gap: 8px;
    padding: 8px;
  }

  .application-page .login-brand-panel {
    min-height: 300px;
    padding: calc(22px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 22px calc(20px + env(safe-area-inset-left));
    border-radius: 20px;
  }

  .application-page .brand-mark {
    width: 40px;
    height: 40px;
  }

  .application-page .brand-copy strong {
    font-size: 13px;
  }

  .application-page .login-brand-message {
    margin: 38px 0 20px;
  }

  .application-page .login-brand-message h1 {
    margin-bottom: 13px;
    font-size: clamp(2.15rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .application-page .login-brand-message p {
    font-size: 12px;
    line-height: 1.55;
  }

  .application-page .login-proof {
    display: none;
  }

  .application-page .login-form-panel {
    padding: 24px calc(8px + env(safe-area-inset-right)) calc(38px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));
  }

  .application-page .application-card {
    padding: 24px 20px;
    border-radius: 21px;
  }

  .application-page .back-link {
    margin-bottom: 21px;
  }

  .application-page .application-card h2 {
    font-size: 2rem;
  }

  .application-page .application-card > p {
    margin-bottom: 24px;
  }

  .application-page .application-verification {
    padding: 14px;
  }

  .application-page .application-verification .button,
  .application-page .application-verification .code-input {
    width: 100%;
    max-width: none;
  }

  .application-page .application-privacy {
    padding: 12px;
  }
}

@media (max-width: 350px) {
  .application-page .login-brand-panel {
    padding-right: calc(16px + env(safe-area-inset-right));
    padding-left: calc(16px + env(safe-area-inset-left));
  }

  .application-page .application-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .application-page .application-card h2 {
    font-size: 1.8rem;
  }
}

@media (max-height: 700px) and (min-width: 960px) {
  .application-page .login-brand-panel {
    position: relative;
    top: auto;
    height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .application-page .login-brand-message {
    margin: 28px 0;
  }

  .application-page .login-brand-message h1 {
    font-size: clamp(2.45rem, 4.5vw, 3.75rem);
  }

  .application-page .login-proof {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .application-page {
    background: #c8cdd5;
  }

  .application-page .application-card {
    background: #eef0f4;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .application-page .login-proof span {
    background: #344255;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .application-page,
  .application-page .login-brand-panel,
  .application-page .application-card,
  .application-page .application-verification,
  .application-page .application-privacy,
  .application-page .login-proof span {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .application-page .login-brand-panel::before,
  .application-page .login-brand-panel::after {
    display: none;
  }
}

@media (pointer: coarse) {
  .app-shell .button,
  .app-shell .tab,
  body:has(.app-shell) > .dialog .button,
  .application-page .button,
  .application-page .back-link {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Verified application receipt shares the entrance palette without changing the
 * immutable confirmation copy or its single return action. */
.application-success {
  --canvas: #c9cdd4;
  --surface: #ffffff;
  --surface-muted: rgba(230, 233, 238, 0.72);
  --ink: #171b24;
  --ink-soft: #292e38;
  --ink-muted: #59616d;
  --border: rgba(255, 255, 255, 0.48);
  --accent: #7242cb;
  --accent-soft: rgba(226, 213, 250, 0.66);
  position: relative;
  isolation: isolate;
  min-width: 320px;
  padding: clamp(18px, 5vw, 60px);
  background:
    radial-gradient(ellipse 72% 42% at 32% -7%, rgba(255, 255, 255, 0.98), rgba(242, 244, 247, 0.72) 38%, transparent 74%),
    radial-gradient(ellipse 48% 72% at 18% 38%, rgba(247, 248, 250, 0.62), rgba(205, 210, 218, 0.28) 56%, transparent 82%),
    radial-gradient(ellipse 56% 62% at 59% 8%, rgba(199, 205, 214, 0.48), rgba(124, 134, 147, 0.18) 58%, transparent 82%),
    radial-gradient(ellipse 62% 80% at 102% 8%, rgba(44, 55, 71, 0.83), transparent 72%),
    radial-gradient(ellipse 74% 66% at 68% 108%, rgba(8, 16, 29, 0.92), transparent 76%),
    linear-gradient(146deg, #f0f1f3 0%, #c9cdd4 27%, #828b98 55%, #172335 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

.application-success::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse 34% 58% at 9% 10%, rgba(255, 255, 255, 0.48), transparent 74%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.23), transparent 39%, rgba(20, 29, 42, 0.3) 81%),
    radial-gradient(rgba(255, 255, 255, 0.46) 0.6px, transparent 0.7px) 0 0 / 4px 4px;
  opacity: 0.44;
  pointer-events: none;
}

.application-success .application-success-card {
  width: min(100%, 620px);
  padding: clamp(34px, 6vw, 54px);
  background:
    radial-gradient(ellipse 88% 58% at 0% 0%, rgba(255, 255, 255, 0.66), transparent 72%),
    linear-gradient(145deg, rgba(239, 241, 245, 0.9), rgba(207, 213, 221, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.72),
    0 28px 72px rgba(16, 23, 34, 0.2),
    0 8px 24px rgba(16, 23, 34, 0.08);
}

.application-success .success-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  color: #176e53;
  background: #e7f6ef;
  border: 1px solid rgba(23, 110, 83, 0.12);
  box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(23, 110, 83, 0.1);
  font-size: 22px;
}

.application-success .eyebrow {
  margin-bottom: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.application-success h1 {
  margin-bottom: 15px;
  font-size: clamp(2.2rem, 6vw, 3.7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.application-success .application-success-card p {
  max-width: 520px;
  margin-bottom: 28px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.68;
}

.application-success .button {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.application-success .button--primary {
  background: linear-gradient(135deg, #a464f0, #7544ce);
  border-color: rgba(102, 56, 183, 0.74);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 12px 28px rgba(105, 63, 184, 0.27);
}

.application-success :focus-visible {
  outline-color: #552fca;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .application-success .application-success-card {
    -webkit-backdrop-filter: blur(22px) saturate(130%);
    backdrop-filter: blur(22px) saturate(130%);
  }
}

@media (max-width: 520px) {
  .application-success {
    padding: 10px;
  }

  .application-success .application-success-card {
    padding: 32px 22px;
    border-radius: 22px;
  }

  .application-success h1 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .application-success .button {
    width: 100%;
  }
}

@media (max-width: 350px) {
  .application-success .application-success-card {
    padding-right: 17px;
    padding-left: 17px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .application-success {
    background: #c8cdd5;
  }

  .application-success .application-success-card {
    background: #eef0f4;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (forced-colors: active) {
  .application-success,
  .application-success .application-success-card,
  .application-success .success-mark {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}

/* Seller money views and shared semantic icon treatment */
.app-shell .price-update-heading {
  align-items: center;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}

.price-update-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.price-update-panel > .empty-inline {
  padding: 25px 20px;
  margin: 0;
}

.price-update-item {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  gap: 13px;
  padding: 15px 18px;
  transition: background-color var(--motion-fast) var(--ease-ui);
}

.price-update-item:hover {
  background: rgba(247, 248, 252, 0.74);
}

.price-update-marker {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 11px;
}

.price-update-marker .ui-icon {
  width: 17px;
  height: 17px;
}

.price-update-marker--success {
  color: var(--success);
  background: var(--success-soft);
  border-color: color-mix(in srgb, var(--success) 18%, transparent);
}

.price-update-marker--warning {
  color: var(--warning);
  background: var(--warning-soft);
  border-color: color-mix(in srgb, var(--warning) 18%, transparent);
}

.price-update-marker--danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 18%, transparent);
}

.price-update-marker--info {
  color: var(--info);
  background: var(--info-soft);
  border-color: color-mix(in srgb, var(--info) 18%, transparent);
}

.price-update-main {
  display: grid;
  gap: 4px;
}

.price-update-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.price-update-title .item-title {
  min-width: 0;
  padding-top: 1px;
  color: var(--ink);
  font-size: 14px;
  white-space: normal;
}

.price-update-title a.item-title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.price-update-amount {
  display: grid;
  flex: 0 0 auto;
  gap: 1px;
  text-align: right;
}

.price-update-amount small {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.price-update-amount strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.price-update-detail {
  max-width: 68ch;
  margin-top: 4px;
  line-height: 1.5;
}

.price-update-actions {
  align-content: center;
  align-items: flex-end;
  flex-direction: column;
  white-space: normal;
}

.price-update-item--compact {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  padding: 13px 14px;
}

.price-update-item--compact .price-update-marker {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.price-update-item--compact .price-update-marker .ui-icon {
  width: 15px;
  height: 15px;
}

.price-update-item--compact .price-update-actions {
  grid-column: 2;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.timeline-dot .ui-icon {
  width: 13px;
  height: 13px;
}

.seller-access-icon .ui-icon,
.seller-contact-lock-icon .ui-icon,
.admin-audit-refresh-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.seller-paused-mark .ui-icon {
  width: 23px;
  height: 23px;
}

.seller-unlock-steps li > span .ui-icon {
  width: 16px;
  height: 16px;
}

.empty-icon .ui-icon,
.error-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.toast-icon .ui-icon {
  width: 13px;
  height: 13px;
}

.lock-banner > span .ui-icon {
  width: 16px;
  height: 16px;
}

.chat-link-arrow .ui-icon,
.chat-pins-heading .ui-icon,
.chat-message-empty .ui-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .app-shell .price-update-heading {
    align-items: flex-start;
  }

  .price-update-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .price-update-item {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    padding: 14px 15px;
  }

  .price-update-actions {
    grid-column: 2;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .app-shell .price-update-heading {
    display: grid;
  }

  .price-update-heading-actions {
    justify-content: flex-start;
  }

  .price-update-title {
    display: grid;
    gap: 6px;
  }

  .price-update-amount {
    justify-self: start;
    text-align: left;
  }
}

@media (forced-colors: active) {
  .price-update-marker {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
  }
}

/* Shared sales chrome stays hidden unless a route explicitly enables it. */
.sales-topbar-breadcrumb,
.sales-topbar-search,
.sales-topbar-alert {
  display: none;
}

.app-shell[data-shell-key^="sales:"] .topbar-actions {
  position: relative;
}

.app-shell[data-shell-key^="sales:"] .sales-topbar-alert {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7), 0 7px 18px rgba(20, 28, 43, 0.08);
}

.app-shell[data-shell-key^="sales:"] .sales-topbar-alert:hover,
.app-shell[data-shell-key^="sales:"] .sales-topbar-alert[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.78);
}

.app-shell[data-shell-key^="sales:"] .sales-topbar-alert .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-topbar-alert-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #aa7cff, #7950d4);
  border: 2px solid rgba(245, 246, 249, 0.94);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(89, 55, 166, 0.32), 0 0 12px rgba(164, 119, 255, 0.46);
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
}

.sales-topbar-alert-badge[hidden] {
  display: none;
}

.sales-notification-drawer {
  position: absolute;
  z-index: 90;
  top: calc(100% + 11px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-height: min(650px, calc(100dvh - var(--header-height) - 36px));
  overflow: hidden;
  color: #f7f7fb;
  background:
    radial-gradient(ellipse 95% 54% at 0% 0%, rgba(131, 104, 185, 0.22), transparent 64%),
    linear-gradient(155deg, rgba(37, 44, 57, 0.96), rgba(21, 27, 38, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(9, 13, 21, 0.38), inset 0 1px rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(28px) saturate(115%);
  backdrop-filter: blur(28px) saturate(115%);
}

.sales-notification-drawer[hidden] {
  display: none;
}

.sales-notification-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-notification-header .eyebrow {
  min-height: 0;
  margin: 0 0 4px;
  color: #be9cff;
  font-size: 9px;
  letter-spacing: 0.17em;
}

.sales-notification-header h2 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.025em;
}

.sales-notification-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: #c9ccd4;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
}

.sales-notification-icon-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
}

.sales-notification-icon-button .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-notification-toolbar {
  display: flex;
  min-height: 47px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 13px;
  background: rgba(10, 15, 24, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sales-notification-toolbar button,
.sales-notification-empty button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  color: #d8dae1;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 620;
}

.sales-notification-toolbar button:hover,
.sales-notification-empty button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.sales-notification-toolbar button:disabled {
  color: rgba(210, 213, 222, 0.42);
  cursor: default;
  background: transparent;
  border-color: transparent;
}

.sales-notification-toolbar button .ui-icon {
  width: 14px;
  height: 14px;
}

.sales-notification-content {
  max-height: min(518px, calc(100dvh - var(--header-height) - 159px));
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(190, 156, 255, 0.5) transparent;
}

.sales-notification-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sales-notification-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.sales-notification-item:last-child {
  border-bottom: 0;
}

.sales-notification-item > a {
  position: relative;
  display: grid;
  min-height: 89px;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: start;
  gap: 11px;
  padding: 15px 16px;
  color: #f5f6f9;
  transition: background-color 130ms ease, color 130ms ease;
}

.sales-notification-item > a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.sales-notification-item.is-unread > a {
  background: linear-gradient(90deg, rgba(151, 105, 244, 0.13), rgba(151, 105, 244, 0.025) 74%);
}

.sales-notification-item.is-unread > a::before {
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  content: "";
  background: #a77dff;
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 11px rgba(167, 125, 255, 0.6);
}

.sales-notification-kind {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #c4a5ff;
  background: rgba(154, 111, 242, 0.12);
  border: 1px solid rgba(187, 151, 255, 0.18);
  border-radius: 11px;
}

.sales-notification-kind .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-notification-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sales-notification-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.sales-notification-title strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-notification-title i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #a982ff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(169, 130, 255, 0.62);
}

.sales-notification-body {
  display: -webkit-box;
  overflow: hidden;
  color: #b9bdc7;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-notification-copy time {
  color: #8f95a2;
  font-size: 9px;
}

.sales-notification-arrow {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: #8f95a2;
}

.sales-notification-arrow .ui-icon {
  width: 14px;
  height: 14px;
}

.sales-notification-loading,
.sales-notification-empty {
  display: grid;
  min-height: 225px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  padding: 28px 24px;
  color: #aeb3be;
  text-align: center;
}

.sales-notification-loading {
  grid-template-columns: auto auto;
  justify-content: center;
  font-size: 11px;
}

.sales-notification-loading .spinner {
  width: 17px;
  height: 17px;
  border-width: 2px;
}

.sales-notification-empty > .ui-icon {
  width: 30px;
  height: 30px;
  color: #b895ff;
}

.sales-notification-empty strong {
  color: #f7f7fb;
  font-size: 14px;
}

.sales-notification-empty span {
  max-width: 260px;
  font-size: 10px;
  line-height: 1.5;
}

.sales-notification-empty--error > .ui-icon {
  color: #ff9ca7;
}

.sales-notification-empty button {
  margin-top: 3px;
  color: #d4bdff;
  border-color: rgba(196, 165, 255, 0.2);
}

.sales-notification-refreshing {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 5px 12px;
  color: #cbb4fa;
  background: rgba(26, 32, 44, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  text-align: center;
}

.sales-notification-pagination {
  display: grid;
  min-height: 54px;
  place-items: center;
  padding: 9px 13px;
  background: rgba(10, 15, 24, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sales-notification-pagination button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  color: #d8c4ff;
  cursor: pointer;
  background: rgba(161, 119, 246, 0.08);
  border: 1px solid rgba(196, 165, 255, 0.18);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 650;
}

.sales-notification-pagination button:hover {
  color: #fff;
  background: rgba(161, 119, 246, 0.15);
  border-color: rgba(205, 179, 255, 0.3);
}

.sales-notification-pagination button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sales-notification-pagination button .ui-icon,
.sales-notification-pagination button .spinner {
  width: 14px;
  height: 14px;
}

.sales-notification-pagination button .spinner {
  border-width: 2px;
}

.sales-notification-pagination--error {
  justify-items: stretch;
  gap: 7px;
  color: #ffc2c9;
  text-align: center;
}

.sales-notification-pagination--error span {
  font-size: 10px;
  line-height: 1.4;
}

.sales-notification-pagination--error button {
  justify-self: center;
}

.sales-notification-history-end {
  min-height: 42px;
  padding: 14px 13px;
  margin: 0;
  color: #8f95a2;
  background: rgba(10, 15, 24, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 9px;
  text-align: center;
}

.sales-notification-drawer :focus-visible {
  outline: 2px solid #c5a6ff;
  outline-offset: -2px;
}

@media (max-width: 960px) {
  .sales-notification-drawer {
    max-height: calc(100dvh - var(--header-height) - 94px - env(safe-area-inset-bottom));
  }

  .sales-notification-content {
    max-height: calc(100dvh - var(--header-height) - 217px - env(safe-area-inset-bottom));
  }
}

@media (max-width: 520px) {
  .sales-notification-drawer {
    position: fixed;
    top: calc(var(--header-height) - 3px);
    right: max(8px, env(safe-area-inset-right));
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    border-radius: 16px;
  }

  .sales-notification-header {
    min-height: 67px;
    padding: 13px 14px 10px;
  }

  .sales-notification-toolbar {
    padding-right: 9px;
    padding-left: 9px;
  }

  .sales-notification-item > a {
    min-height: 85px;
    grid-template-columns: 35px minmax(0, 1fr) 14px;
    gap: 9px;
    padding: 13px 12px;
  }

  .sales-notification-kind {
    width: 35px;
    height: 35px;
  }
}

/* Sales workspace · reference-parity glass shell
 *
 * The approved Today, My Leads, Deals, Team Chat, Earnings, and Account routes
 * share the same projected background, sidebar, and top bar.
 */
body:has(.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])) {
  --today-ink: #f7f7fb;
  --today-ink-soft: #d7d8df;
  --today-muted: #aeb2bc;
  --today-dark-glass: rgba(21, 27, 38, 0.68);
  --today-dark-glass-strong: rgba(26, 32, 44, 0.78);
  --today-light-glass: rgba(226, 228, 233, 0.42);
  --today-light-glass-strong: rgba(240, 241, 244, 0.55);
  --today-glass-border: rgba(255, 255, 255, 0.18);
  --today-hairline: rgba(255, 255, 255, 0.105);
  --today-shadow: 0 22px 58px rgba(12, 16, 24, 0.19), inset 0 1px rgba(255, 255, 255, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 72% 42% at 32% -7%, rgba(255, 255, 255, 0.98), rgba(242, 244, 247, 0.72) 38%, transparent 74%),
    radial-gradient(ellipse 48% 72% at 18% 38%, rgba(247, 248, 250, 0.62), rgba(205, 210, 218, 0.28) 56%, transparent 82%),
    radial-gradient(ellipse 56% 62% at 59% 8%, rgba(199, 205, 214, 0.48), rgba(124, 134, 147, 0.18) 58%, transparent 82%),
    radial-gradient(ellipse 62% 80% at 102% 8%, rgba(44, 55, 71, 0.83), transparent 72%),
    radial-gradient(ellipse 74% 66% at 68% 108%, rgba(8, 16, 29, 0.92), transparent 76%),
    linear-gradient(146deg, #f0f1f3 0%, #c9cdd4 27%, #828b98 55%, #172335 100%);
}

body:has(.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]))::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    radial-gradient(ellipse 34% 58% at 9% 10%, rgba(255, 255, 255, 0.48), transparent 74%),
    radial-gradient(ellipse 30% 38% at 45% 13%, rgba(118, 128, 142, 0.15), transparent 76%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.23), transparent 39%, rgba(20, 29, 42, 0.3) 81%),
    radial-gradient(rgba(255, 255, 255, 0.48) 0.6px, transparent 0.7px) 0 0 / 4px 4px;
  opacity: 0.46;
  pointer-events: none;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) {
  --sidebar-width: 216px;
  --header-height: 70px;
  position: relative;
  isolation: isolate;
  color: var(--today-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::before,
.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::before {
  top: -34%;
  left: -31%;
  width: 116vw;
  height: 172vh;
  background:
    radial-gradient(ellipse at 57% 9%, rgba(255, 255, 255, 0.9) 0%, rgba(242, 244, 247, 0.72) 27%, rgba(194, 201, 211, 0.48) 47%, rgba(231, 234, 239, 0.24) 62%, transparent 79%),
    radial-gradient(ellipse 46% 54% at 51% 24%, rgba(181, 187, 198, 0.2), transparent 78%);
  border-radius: 46% 54% 58% 42% / 42% 48% 52% 58%;
  filter: blur(88px);
  opacity: 0.72;
  transform: rotate(-8deg);
  transform-origin: 60% 0;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::after {
  inset: -19% -12% -34% 5%;
  background:
    radial-gradient(ellipse 76% 60% at 33% 0%, rgba(255, 255, 255, 0.78), rgba(226, 230, 235, 0.48) 32%, rgba(155, 165, 178, 0.24) 56%, transparent 81%),
    radial-gradient(ellipse 58% 54% at 104% 38%, rgba(52, 65, 82, 0.3), transparent 76%),
    radial-gradient(ellipse 68% 58% at 30% 106%, rgba(39, 53, 70, 0.38), transparent 78%);
  filter: blur(68px);
  opacity: 0.7;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) > .app-main {
  position: relative;
  z-index: 1;
  width: calc(100% - 216px);
  margin-left: 216px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar {
  inset: 16px auto 34px 16px;
  width: 216px;
  height: auto;
  padding: 19px 14px 14px;
  overflow: visible;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar::before {
  inset: 0;
  background:
    radial-gradient(ellipse 115% 58% at 9% -4%, rgba(229, 232, 237, 0.3), transparent 66%),
    linear-gradient(171deg, rgba(164, 173, 185, 0.8) 0%, rgba(108, 121, 137, 0.82) 40%, rgba(65, 79, 97, 0.86) 70%, rgba(42, 55, 72, 0.88) 100%);
  border-color: rgba(255, 255, 255, 0.23);
  border-radius: 18px;
  box-shadow:
    24px 0 54px rgba(244, 247, 250, 0.2),
    0 22px 58px rgba(12, 16, 24, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(34px) saturate(92%);
  backdrop-filter: blur(34px) saturate(92%);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar::after {
  position: absolute;
  z-index: -1;
  top: 3%;
  right: -36px;
  bottom: 3%;
  width: 46px;
  content: "";
  background: linear-gradient(90deg, rgba(248, 249, 251, 0.35), rgba(232, 236, 242, 0.13) 48%, transparent);
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.8;
  pointer-events: none;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar-brand {
  padding: 0 5px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-lockup {
  gap: 13px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-mark {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.79);
  border: 1px solid rgba(38, 40, 54, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 30, 45, 0.13), inset 0 1px rgba(255, 255, 255, 0.9);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-mark img {
  width: 44px;
  height: 39px;
  filter: brightness(0) contrast(1.1);
  object-fit: contain;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-copy strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -0.03em;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-product {
  display: none;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .brand-copy small {
  margin-top: 2px;
  color: rgba(248, 249, 251, 0.9);
  font-size: 12px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .side-nav {
  gap: 2px;
  margin-top: 30px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link {
  display: grid;
  min-height: 51px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 5px;
  color: rgba(247, 248, 250, 0.67);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 470;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(125deg, rgba(121, 83, 207, 0.63), rgba(41, 46, 62, 0.53));
  border-color: rgba(216, 199, 255, 0.28);
  box-shadow: -5px 0 0 rgba(159, 116, 255, 0.38), 0 11px 26px rgba(42, 25, 74, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 630;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link .nav-icon {
  width: 40px;
  height: 40px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link[aria-current="page"] .nav-icon {
  color: #d9c6ff;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 7px rgba(170, 126, 255, 0.8));
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .nav-link .nav-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-menu {
  min-height: 66px;
  grid-template-columns: 43px minmax(0, 1fr) 18px;
  gap: 9px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(21, 28, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(13, 18, 28, 0.18);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-menu .avatar {
  width: 43px;
  height: 43px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-menu:hover {
  background: rgba(28, 36, 50, 0.82);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-menu-copy strong {
  font-size: 12px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-menu-copy span {
  margin-top: 3px;
  color: var(--today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-caret {
  overflow: hidden;
  width: 15px;
  color: transparent;
  font-size: 0;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .account-caret::after {
  display: block;
  color: var(--today-ink-soft);
  content: "⌄";
  font-size: 15px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
  display: grid;
  min-height: 70px;
  grid-template-columns: 1fr minmax(330px, 480px) 1fr;
  align-items: center;
  gap: 0;
  padding: 0 35px;
  color: #20232c;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar::before {
  inset: 0;
  background: linear-gradient(145deg, var(--today-light-glass-strong), var(--today-light-glass));
  border-width: 0 0 1px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 0;
  box-shadow: 0 16px 45px rgba(20, 26, 37, 0.08), inset 0 1px rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-title {
  display: none;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb i {
  color: rgba(32, 35, 44, 0.55);
  font-style: normal;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb strong {
  font-weight: 700;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
  display: grid;
  min-height: 42px;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  padding: 0 17px;
  color: #1d2028;
  background: rgba(217, 218, 223, 0.37);
  border: 1px solid rgba(42, 46, 58, 0.14);
  border-radius: 999px;
  border-color: rgba(42, 46, 58, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.37);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search .ui-icon {
  width: 19px;
  height: 19px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search input {
  width: 100%;
  padding: 0;
  color: #1d2028;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search input::placeholder {
  color: rgba(20, 23, 31, 0.74);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search:focus-within {
  background: rgba(230, 232, 236, 0.52);
  border-color: rgba(79, 68, 112, 0.28);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-actions {
  gap: 13px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-alert {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  filter: drop-shadow(0 1px 4px rgba(15, 20, 29, 0.35));
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-alert .ui-icon {
  width: 20px;
  height: 20px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-alert:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-alert-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: linear-gradient(145deg, #7042cf, #4e288f);
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 11px rgba(112, 66, 207, 0.58);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-actions .status-badge {
  min-height: 40px;
  gap: 9px;
  padding: 0 17px;
  color: #fff;
  background: rgba(37, 43, 54, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11);
  font-size: 13px;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-actions .status-badge::before {
  width: 10px;
  height: 10px;
  background: #63d790;
  box-shadow: 0 0 10px rgba(93, 219, 139, 0.5);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-account {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-account .avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #7568a8, #292f3b);
  border-color: rgba(255, 255, 255, 0.2);
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-signout {
  display: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-menu {
  position: relative;
  z-index: 62;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-menu > summary {
  list-style: none;
  cursor: pointer;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-menu > summary::-webkit-details-marker {
  display: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-menu[open] > .topbar-account {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-popover {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  display: grid;
  width: min(250px, calc(100vw - 24px));
  padding: 9px;
  color: var(--today-ink);
  background: linear-gradient(145deg, rgba(35, 42, 56, 0.98), rgba(16, 23, 35, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 22px 52px rgba(7, 11, 19, 0.4), inset 0 1px rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 8px 11px;
  border-bottom: 1px solid var(--today-hairline);
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-identity .avatar {
  width: 38px;
  height: 38px;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-identity > span:last-child {
  display: grid;
  min-width: 0;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-identity strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-identity small {
  margin-top: 2px;
  color: var(--today-muted);
  font-size: 10px;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-popover > :is(a, button) {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
  padding: 8px 10px;
  color: var(--today-ink-soft);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  text-decoration: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-popover > :is(a, button):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.12);
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar-account-popover .ui-icon {
  width: 17px;
  height: 17px;
}

.app-shell[data-shell-key^="sales:"] :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #6d28d9 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 7px #f4ecff !important;
  transition: none !important;
}

.app-shell[data-shell-key^="sales:"] .page > .skeleton-grid .skeleton-card,
.app-shell[data-shell-key^="sales:"] .page > .skeleton-grid + .panel,
.app-shell[data-shell-key^="sales:"] .error-state {
  color: var(--today-ink);
  background: linear-gradient(145deg, var(--today-dark-glass-strong), var(--today-dark-glass));
  border: 1px solid var(--today-glass-border);
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="sales:"] .error-state p {
  color: var(--today-muted);
}

.app-shell[data-shell-key^="sales:"] .error-state .error-icon {
  color: #ff8a8f;
  background: rgba(255, 91, 98, 0.13);
  border: 1px solid rgba(255, 127, 133, 0.24);
}

.app-shell[data-shell-key^="sales:"] .page > .panel .skeleton {
  background: rgba(255, 255, 255, 0.09);
}

.app-shell[data-shell-key^="sales:"] .page > :is(.skeleton-grid, .panel) .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.17), transparent);
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="sales:"] :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid Highlight !important;
    box-shadow: none !important;
  }
}

.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .page {
  width: min(1230px, calc(100% - 72px));
  max-width: none;
  min-height: calc(100vh - 70px);
  padding: 22px 0 44px;
}

.sales-today-view {
  display: block;
  color: var(--today-ink);
}

.sales-today-heading {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #292c35;
}

.sales-today-heading h1 {
  margin-bottom: 3px;
  font-size: 35px;
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: normal;
}

.sales-today-heading p {
  margin: 0;
  color: #292c35;
  font-size: 15px;
  line-height: normal;
}

.sales-today-schedule {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  color: #fff;
  background: rgba(33, 40, 52, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
  font-size: 13px;
  font-weight: 650;
}

.sales-today-schedule .ui-icon {
  width: 17px;
  height: 17px;
}

.sales-today-view .sales-today-metrics {
  display: grid;
  height: 87px;
  min-height: 87px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 10px 0 0;
  overflow: hidden;
  background: linear-gradient(145deg, var(--today-light-glass-strong), var(--today-light-glass));
  border: 1px solid var(--today-glass-border);
  border-radius: 12px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.sales-today-view .sales-today-metric {
  position: relative;
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-columns: 52px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 12px;
  padding: 13px 34px;
  overflow: visible;
  color: #262a34;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sales-today-view .sales-today-metric + .sales-today-metric {
  border-left: 0;
  box-shadow: none;
}

.sales-today-view .sales-today-metric + .sales-today-metric::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.26);
  box-shadow: -1px 0 rgba(42, 46, 56, 0.07);
}

.sales-today-metric-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #252a34;
}

.sales-today-metric-icon .ui-icon {
  width: 31px;
  height: 31px;
  stroke-width: 1.35;
}

.sales-today-metric small {
  display: block;
  color: #262a34;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.sales-today-metric strong {
  display: block;
  overflow: hidden;
  margin-top: -2px;
  color: #262a34;
  font-size: 31px;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-metric--danger .sales-today-metric-icon {
  color: #e13f51;
}

.sales-today-metric--success .sales-today-metric-icon {
  color: #43bd75;
}

.sales-today-primary-grid,
.sales-today-lower-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 16px;
}

.sales-today-primary-grid {
  margin-top: 16px;
}

.sales-today-view .sales-today-dark-card,
.sales-today-view .sales-today-quote-center {
  color: var(--today-ink);
  background: linear-gradient(145deg, var(--today-dark-glass-strong), var(--today-dark-glass));
  border: 1px solid var(--today-glass-border);
  border-radius: 14px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.sales-today-view .sales-today-dark-card {
  padding: 20px 24px 13px;
}

.sales-today-view .eyebrow {
  min-height: 26px;
  margin-bottom: 0;
  color: #bd9cff;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.17em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.48);
  text-transform: uppercase;
}

.sales-today-next,
.sales-today-pipeline {
  height: auto;
  min-height: 278px;
  overflow: hidden;
}

.sales-today-next {
  position: relative;
}

.sales-today-next::before {
  position: absolute;
  top: -190px;
  left: -70px;
  width: 500px;
  height: 410px;
  content: "";
  background: radial-gradient(circle, rgba(155, 113, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.sales-today-card-heading,
.sales-today-lead-focus,
.sales-today-quick-actions,
.sales-today-primary-actions,
.sales-today-empty {
  position: relative;
}

.sales-today-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.sales-today-next-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sales-today-next-status time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--today-ink-soft);
  font-size: 11px;
}

.sales-today-next-status time .ui-icon {
  width: 14px;
  height: 14px;
}

.sales-today-lead-focus {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 27px;
  margin-top: 13px;
}

.sales-today-lead-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  color: var(--today-ink);
  background: linear-gradient(145deg, rgba(73, 76, 82, 0.76), rgba(25, 29, 37, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  box-shadow: 0 14px 31px rgba(10, 13, 20, 0.2), inset 0 1px rgba(255, 255, 255, 0.1);
  font-size: 22px;
  font-weight: 640;
}

.sales-today-lead-focus h2 {
  margin-bottom: 2px;
  overflow: hidden;
  color: var(--today-ink);
  font-size: 26px;
  font-weight: 630;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-lead-focus h3 {
  margin-bottom: 13px;
  overflow: hidden;
  color: #b8bac3;
  font-size: 22px;
  font-weight: 530;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-lead-focus p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  overflow: hidden;
  color: var(--today-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-lead-focus p i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: #a886ff;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(160, 110, 255, 0.8);
}

.sales-today-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.sales-today-quick-actions a {
  display: inline-flex;
  min-width: 93px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--today-ink-soft);
  background: rgba(24, 30, 40, 0.33);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.sales-today-quick-actions a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sales-today-quick-actions .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-today-primary-actions {
  display: grid;
  grid-template-columns: 1.35fr 0.87fr;
  gap: 10px;
  margin-top: 9px;
}

.sales-today-view .sales-today-primary-actions .button {
  min-height: 41px;
  border-radius: 7px;
}

.sales-today-view .sales-today-primary-actions .button--primary {
  color: #fff;
  background: linear-gradient(100deg, #9a75f1, #ae83ff);
  border-color: rgba(218, 201, 255, 0.37);
  box-shadow: 0 8px 22px rgba(110, 66, 216, 0.31), inset 0 1px rgba(255, 255, 255, 0.28);
}

.sales-today-view .sales-today-primary-actions .button--secondary,
.sales-today-view .sales-today-pipeline-footer .button--secondary {
  color: var(--today-ink-soft);
  background: rgba(24, 30, 40, 0.33);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.sales-today-pipeline {
  padding-right: 20px !important;
  padding-left: 20px !important;
}

.sales-today-pipeline-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  margin-top: 22px;
}

.sales-today-pipeline-arrow {
  display: grid;
  place-items: center;
  color: var(--today-muted);
}

.sales-today-pipeline-arrow .ui-icon {
  width: 14px;
  height: 14px;
}

.sales-today-pipeline-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 83px;
  grid-template-columns: 41px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.sales-today-pipeline-step::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--pipeline-color);
  box-shadow: 0 0 12px var(--pipeline-color);
}

.sales-today-pipeline-step > span {
  color: var(--pipeline-color);
}

.sales-today-pipeline-step > span .ui-icon {
  width: 33px;
  height: 33px;
}

.sales-today-pipeline-step strong {
  display: block;
  margin-top: 2px;
  color: #fff;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  font-weight: 570;
}

.sales-today-pipeline-step small {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-pipeline-step--purple { --pipeline-color: #aa7cff; }
.sales-today-pipeline-step--blue { --pipeline-color: #65a6ff; }
.sales-today-pipeline-step--orange { --pipeline-color: #f2a332; }
.sales-today-pipeline-step--green { --pipeline-color: #66d895; }

.sales-today-pipeline-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 19px;
  margin-top: 45px;
  color: var(--today-muted);
  border-top: 1px solid var(--today-hairline);
  border-top-color: var(--today-hairline);
}

.sales-today-pipeline-footer p {
  margin: 0;
  font-size: 11px;
}

.sales-today-pipeline-footer p strong {
  color: var(--today-ink);
}

.sales-today-pipeline-footer .button {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 17px;
  white-space: nowrap;
}

.sales-today-pipeline-footer .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-today-quote-center {
  margin-top: 16px;
}

.sales-today-lower-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  margin-top: 16px;
}

.sales-today-upcoming,
.sales-today-commission {
  height: 200px;
  min-height: 200px;
  padding: 13px 20px !important;
  overflow: hidden;
}

.sales-today-commission-mark {
  display: grid;
  width: 80px;
  height: 80px;
  place-items: center;
  justify-self: center;
  color: #bd9cff;
  background: radial-gradient(circle, rgba(135, 89, 229, 0.21), rgba(41, 36, 60, 0.22));
  border: 1px solid rgba(183, 143, 255, 0.38);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(125, 82, 215, 0.06), 0 0 0 10px rgba(179, 138, 255, 0.18), 0 0 26px rgba(145, 93, 247, 0.24), inset 0 0 20px rgba(148, 98, 246, 0.13);
}

.sales-today-commission-mark .ui-icon {
  width: 38px;
  height: 38px;
}

.sales-today-commission-rate.sales-today-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
  padding-top: 10px;
  color: var(--today-muted);
  border-top: 1px solid var(--today-hairline);
  font-size: 12px;
}

.sales-today-commission-rate.sales-today-card-link strong {
  color: #fff;
  font-size: 14px;
}

.app-shell[data-shell-key^="sales:"][data-rendered-nav="today"] .nav-link[data-nav-key="leads"] .nav-label {
  font-size: 0;
}

.app-shell[data-shell-key^="sales:"][data-rendered-nav="today"] .nav-link[data-nav-key="leads"] .nav-label::after {
  content: "Leads";
  font-size: 14px;
}

.sales-today-next-status .status-badge,
.sales-today-quote-center .status-badge {
  width: fit-content;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 560;
}

.sales-today-next-status .status-badge::before,
.sales-today-quote-center .status-badge::before {
  width: 7px;
  height: 7px;
}

.sales-today-view .sales-today-quote-center {
  height: 203px;
  min-height: 203px;
  padding: 13px 20px 3px;
  overflow: hidden;
}

.sales-today-view .sales-today-quote-center:has(
  .sales-today-quote-list > .sales-today-quote-row:only-child
) {
  height: auto;
  min-height: 0;
}

.sales-today-quote-heading {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sales-today-quote-heading .eyebrow {
  min-height: 0;
}

.sales-today-quote-heading .price-update-heading-actions {
  display: none;
}

.sales-today-quote-head,
.sales-today-quote-row {
  display: grid !important;
  grid-template-columns: minmax(250px, 1.45fr) 0.52fr 0.76fr 0.5fr 25px !important;
  align-items: center;
  gap: 16px !important;
}

.sales-today-quote-head {
  min-height: 36px;
  color: var(--today-muted);
  font-size: 10px;
}

.sales-today-quote-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sales-today-quote-center .sales-today-quote-row {
  min-height: 41px;
  padding: 0 !important;
  color: var(--today-ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--today-hairline);
  border-radius: 0;
  box-shadow: none;
}

.sales-today-quote-center .sales-today-quote-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sales-today-quote-customer {
  display: grid;
  min-width: 0;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.sales-today-quote-center .sales-today-quote-customer .price-update-marker {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--today-ink-soft);
  background: linear-gradient(145deg, rgba(75, 78, 84, 0.82), rgba(30, 35, 45, 0.91));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.sales-today-quote-center .sales-today-quote-customer .price-update-marker .ui-icon {
  width: 16px;
  height: 16px;
}

.sales-today-quote-customer .item-title {
  overflow: hidden;
  color: var(--today-ink);
  font-size: 12px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-quote-customer .item-title:hover {
  color: #c7a8ff;
}

.sales-today-quote-amount {
  color: var(--today-ink);
  font-size: 12px;
  font-weight: 520;
}

.sales-today-quote-status,
.sales-today-quote-action {
  min-width: 0;
}

.sales-today-quote-center .sales-today-quote-action .button {
  width: fit-content;
  max-width: 100%;
  min-height: 31px;
  padding: 0 14px;
  overflow: hidden;
  color: #fff;
  background: rgba(24, 30, 40, 0.33);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-quote-center .sales-today-quote-action .button--primary {
  background: linear-gradient(100deg, #9a75f1, #ae83ff);
  border-color: rgba(218, 201, 255, 0.37);
}

.sales-today-quote-menu {
  display: grid;
  width: 25px;
  height: 30px;
  place-items: center;
  color: var(--today-muted);
  background: transparent;
  border-radius: 7px;
  font-size: 13px;
  letter-spacing: 1px;
}

.sales-today-quote-menu:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.sales-today-quote-center > .empty-inline {
  min-height: 148px;
  margin: 0;
  align-content: center;
  color: var(--today-muted);
}

.sales-today-upcoming .sales-today-card-heading {
  min-height: 26px;
}

.sales-today-upcoming .sales-today-card-heading h2,
.sales-today-upcoming .sales-today-card-heading .section-link {
  display: none;
}

.sales-today-upcoming-list {
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.sales-today-upcoming-row > a {
  display: grid;
  min-height: 46px;
  grid-template-columns: 120px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  color: #fff;
  border-top: 1px solid var(--today-hairline);
}

.sales-today-upcoming-row:first-child > a {
  border-top: 0;
}

.sales-today-upcoming-time {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--today-muted);
}

.sales-today-upcoming-time .ui-icon {
  width: 22px;
  height: 22px;
  color: #bd9cff;
}

.sales-today-upcoming-time time {
  font-size: 11px;
}

.sales-today-upcoming-copy {
  min-width: 0;
}

.sales-today-upcoming-copy strong,
.sales-today-upcoming-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-today-upcoming-copy strong {
  font-size: 11px;
}

.sales-today-upcoming-copy small {
  margin-top: 2px;
  color: var(--today-muted);
  font-size: 9px;
}

.sales-today-upcoming-arrow {
  display: grid;
  place-items: center;
}

.sales-today-upcoming-arrow .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-today-upcoming-row > a:hover {
  color: #d7c4ff;
}

.sales-today-upcoming .sales-today-empty {
  min-height: 148px;
}

.sales-today-empty {
  display: grid;
  min-height: 100px;
  align-content: center;
  justify-items: start;
  gap: 5px;
  color: rgba(229, 232, 239, 0.86);
}

.sales-today-empty span {
  color: var(--today-muted);
  font-size: 11px;
}

.sales-today-empty--large {
  min-height: 206px;
}

.sales-today-empty .button {
  margin-top: 8px;
}

.sales-today-commission-heading {
  min-height: 26px;
}

.sales-today-commission-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 20px;
}

.sales-today-commission-copy h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 3px 0 6px;
  color: var(--today-ink);
  font-size: 33px;
  font-weight: 580;
  letter-spacing: -0.05em;
}

.sales-today-commission-copy h2 span {
  color: var(--today-ink-soft);
  font-size: 22px;
  font-weight: 520;
  letter-spacing: normal;
}

.sales-today-commission-copy .sales-today-progress {
  display: block;
  width: 100%;
  height: 10px;
  padding: 2px;
  margin: 0;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(81, 63, 118, 0.3);
  border: 1px solid rgba(168, 127, 255, 0.28);
  border-radius: 999px;
}

.sales-today-progress::-webkit-progress-bar {
  background: rgba(81, 63, 118, 0.3);
  border-radius: inherit;
}

.sales-today-progress::-webkit-progress-value,
.sales-today-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #8e5cff, #a982f1);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(159, 111, 255, 0.42);
}

.sales-today-commission-copy small {
  display: block;
  margin-top: 8px;
  color: var(--today-muted);
  font-size: 10px;
  line-height: 1.3;
}

.sales-today-commission-rate.sales-today-card-link:hover {
  color: #d4c1ff;
}

@media (max-width: 1240px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
    grid-template-columns: 1fr minmax(280px, 400px) auto;
    padding: 0 22px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .page {
    width: min(calc(100% - 40px), 1120px);
  }

  .sales-today-view .sales-today-metric {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sales-today-primary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-today-next,
  .sales-today-pipeline {
    height: auto;
    min-height: 278px;
  }

  .sales-today-pipeline-footer {
    margin-top: 25px;
  }
}

@media (min-width: 961px) and (max-width: 1099px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) {
    --sidebar-width: 216px;
    --header-height: 70px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar {
    display: flex;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) > .app-main {
    width: calc(100% - 216px);
    margin-left: 216px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
    display: grid;
    min-height: 70px;
    padding: 0 22px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-brand,
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb,
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
    display: flex;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
    display: grid;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) {
    --sidebar-width: 0px;
    --header-height: calc(60px + env(safe-area-inset-top));
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) > .app-main {
    width: 100%;
    margin-left: 0;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sidebar {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
    display: grid;
    min-height: 70px;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px) auto;
    padding: 0 22px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-brand {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb {
    display: flex;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
    display: grid;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav {
    display: grid;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    min-height: 68px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-columns: auto;
    grid-auto-flow: row;
    gap: 2px;
    justify-content: stretch;
    padding: 7px;
    overflow: hidden;
    color: rgba(44, 50, 61, 0.78);
    background: linear-gradient(145deg, rgba(225, 227, 232, 0.9), rgba(164, 173, 185, 0.84));
    border-color: rgba(255, 255, 255, 0.38);
    border-radius: 21px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.46), 0 18px 48px rgba(12, 17, 26, 0.25);
    -webkit-backdrop-filter: blur(26px) saturate(105%);
    backdrop-filter: blur(26px) saturate(105%);
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link {
    display: grid;
    min-width: 0;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding: 3px 1px;
    color: rgba(42, 48, 59, 0.7);
    border-radius: 10px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link .nav-icon {
    width: 27px;
    height: 28px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link .ui-icon {
    width: 17px;
    height: 17px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link small {
    min-width: 0;
    font-size: 8px;
    white-space: nowrap;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link[aria-current="page"] {
    color: #fff;
    background: linear-gradient(145deg, rgba(130, 92, 210, 0.78), rgba(87, 76, 136, 0.76));
    box-shadow: inset 0 0 0 1px rgba(222, 205, 255, 0.28), 0 8px 20px rgba(55, 36, 96, 0.22);
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="today"] .mobile-nav-link[data-nav-key="leads"] small {
    font-size: 0;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="today"] .mobile-nav-link[data-nav-key="leads"] small::after {
    content: "Leads";
    font-size: 9px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .page {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }
}

@media (max-width: 899px) {
  .sales-today-view .sales-today-metrics {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-today-view .sales-today-metric {
    min-height: 87px;
  }

  .sales-today-view .sales-today-metric:nth-child(3)::before {
    display: none;
  }

  .sales-today-view .sales-today-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .sales-today-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
    min-height: 60px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: env(safe-area-inset-top) 12px 56px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-breadcrumb {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar-actions .status-badge {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
    min-height: 39px;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 7px 0 9px;
    background: rgba(230, 231, 235, 0.65);
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .page {
    padding-top: 17px;
  }

  .sales-today-heading {
    align-items: flex-start;
  }

  .sales-today-heading h1 {
    font-size: 29px;
  }

  .sales-today-heading p {
    font-size: 13px;
  }

  .sales-today-schedule {
    min-width: 43px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .sales-today-view .sales-today-metric {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 12px;
  }

  .sales-today-metric-icon {
    width: 39px;
    height: 39px;
  }

  .sales-today-metric-icon .ui-icon {
    width: 25px;
    height: 25px;
  }

  .sales-today-metric strong {
    font-size: 24px;
  }

  .sales-today-view .sales-today-dark-card {
    padding: 17px;
  }

  .sales-today-next .sales-today-quick-actions {
    margin-top: 6px;
  }

  .sales-today-next,
  .sales-today-pipeline {
    height: auto;
  }

  .sales-today-pipeline-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .sales-today-pipeline-arrow {
    display: none;
  }

  .sales-today-pipeline-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .sales-today-pipeline-footer .button {
    width: 100%;
  }

  .sales-today-pipeline-detail {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .sales-today-view .sales-today-quote-center {
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .sales-today-quote-head {
    display: none !important;
  }

  .sales-today-quote-center .sales-today-quote-row {
    min-height: 0;
    grid-template-columns: 35px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    padding: 12px 0 !important;
  }

  .sales-today-quote-customer {
    display: contents;
  }

  .sales-today-quote-customer .price-update-marker {
    grid-column: 1;
    grid-row: 1;
  }

  .sales-today-quote-customer .item-title {
    grid-column: 2;
    grid-row: 1;
  }

  .sales-today-quote-amount {
    grid-column: 2;
    grid-row: 2;
  }

  .sales-today-quote-status {
    grid-column: 2;
    grid-row: 3;
  }

  .sales-today-quote-action {
    grid-column: 2;
    grid-row: 4;
  }

  .sales-today-quote-menu {
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
  }

  .sales-today-lower-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-today-upcoming,
  .sales-today-commission {
    height: 200px;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .page {
    padding-right: calc(8px + env(safe-area-inset-right));
    padding-left: calc(8px + env(safe-area-inset-left));
  }

  .sales-today-view .sales-today-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-today-view .sales-today-metric {
    grid-template-columns: minmax(0, 1fr);
    min-height: 62px;
    text-align: center;
  }

  .sales-today-metric-icon {
    display: none;
  }

  .sales-today-view .sales-today-metric:nth-child(odd)::before {
    display: none;
  }

  .sales-today-lead-focus {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
  }

  .sales-today-lead-mark {
    width: 54px;
    height: 54px;
  }

  .sales-today-lead-focus h2 {
    font-size: 20px;
  }

  .sales-today-lead-focus h3 {
    font-size: 17px;
  }

  .sales-today-primary-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-today-upcoming-row > a {
    grid-template-columns: 92px minmax(0, 1fr) 15px;
  }

  .sales-today-commission-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-today-commission-mark {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body:has(.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])) {
    background: #aeb4bf;
  }

  body:has(.app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]))::before,
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::before,
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"])::after {
    display: none;
  }

  .sales-today-view .sales-today-dark-card,
  .sales-today-view .sales-today-quote-center {
    background: #242b38;
  }

  .sales-today-view .sales-today-metrics {
    background: #aeb4bf;
  }
}

@media (forced-colors: active) {
  .sales-today-view .sales-today-dark-card,
  .sales-today-view .sales-today-quote-center,
  .sales-today-view .sales-today-metrics {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}

/* Sales · My Leads glass workspace */
.app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page {
  padding-top: 35px;
}

.sales-leads-view {
  display: block;
  color: var(--today-ink);
}

.sales-leads-heading {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #1f232c;
}

.sales-leads-heading h1 {
  margin: 0 0 3px;
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-leads-heading p {
  max-width: 880px;
  margin: 0;
  color: #2c3039;
  font-size: 15px;
  line-height: 1.45;
}

.sales-leads-heading .sales-leads-submit {
  display: inline-flex;
  min-width: 184px;
  min-height: 56px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 20px;
  color: #fff;
  background: linear-gradient(118deg, rgba(132, 91, 224, 0.92), rgba(112, 78, 201, 0.84));
  border: 1px solid rgba(220, 204, 255, 0.38);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(77, 45, 143, 0.24), inset 0 1px rgba(255, 255, 255, 0.28);
  font-size: 14px;
  font-weight: 620;
}

.sales-leads-heading .sales-leads-submit:hover {
  background: linear-gradient(118deg, rgba(146, 103, 237, 0.98), rgba(122, 85, 214, 0.92));
  border-color: rgba(232, 220, 255, 0.52);
  transform: translateY(-1px);
}

.sales-leads-heading .sales-leads-submit .ui-icon {
  width: 24px;
  height: 24px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.sales-leads-metrics {
  display: grid;
  min-height: 110px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 23px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 54% 130% at 4% -18%, rgba(255, 255, 255, 0.16), transparent 72%),
    linear-gradient(118deg, rgba(71, 76, 88, 0.67), rgba(32, 40, 53, 0.73) 58%, rgba(22, 31, 44, 0.78));
  border: 1px solid var(--today-glass-border);
  border-radius: 13px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(118%);
  backdrop-filter: blur(28px) saturate(118%);
}

.sales-leads-metric {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  padding: 18px 36px;
}

.sales-leads-metric + .sales-leads-metric::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
}

.sales-leads-metric-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #c1a2ff;
}

.sales-leads-metric-icon .ui-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.25;
}

.sales-leads-metric--blue .sales-leads-metric-icon {
  color: #78b6e8;
}

.sales-leads-metric--neutral .sales-leads-metric-icon {
  color: #f1f2f5;
}

.sales-leads-metric--danger .sales-leads-metric-icon {
  color: #ef6c68;
}

.sales-leads-metric small,
.sales-leads-metric strong {
  display: block;
}

.sales-leads-metric small {
  color: rgba(247, 248, 251, 0.78);
  font-size: 14px;
  font-weight: 480;
}

.sales-leads-metric strong {
  margin-top: 2px;
  color: #fff;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1;
}

.sales-leads-workspace {
  min-height: 558px;
  padding: 23px 23px 25px;
  margin-top: 20px;
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 58% 52% at 6% 0%, rgba(157, 115, 247, 0.11), transparent 72%),
    linear-gradient(145deg, var(--today-dark-glass-strong), var(--today-dark-glass));
  border: 1px solid var(--today-glass-border);
  border-radius: 14px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(120%);
  backdrop-filter: blur(29px) saturate(120%);
}

.sales-leads-view .eyebrow {
  min-height: 28px;
  margin: 0;
  color: #bd9cff;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.17em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.48);
  text-transform: uppercase;
}

.sales-leads-toolbar {
  display: grid;
  grid-template-columns: minmax(520px, 716px) minmax(275px, 1fr);
  align-items: start;
  gap: 20px 28px;
  margin-top: 10px;
}

.sales-leads-workspace .seller-lead-tabs {
  min-height: 55px;
  padding: 3px;
  margin: 0;
  overflow: hidden;
  background: rgba(20, 27, 38, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sales-leads-workspace .seller-lead-tabs .tab {
  min-height: 47px;
  gap: 10px;
  color: var(--today-ink-soft);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 470;
}

.sales-leads-workspace .seller-lead-tabs .tab + .tab {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
}

.sales-leads-workspace .seller-lead-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(118deg, rgba(126, 91, 198, 0.72), rgba(94, 83, 139, 0.62));
  border-color: rgba(226, 211, 255, 0.28);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.18), 0 10px 26px rgba(31, 18, 61, 0.2);
}

.sales-leads-workspace .seller-lead-tabs .tab strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.sales-leads-toolbar-actions {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 17px;
}

.sales-leads-filter-menu {
  position: relative;
  z-index: 4;
  width: 114px;
}

.sales-leads-filter-menu > summary,
.sales-leads-sort {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--today-ink-soft);
  background: rgba(20, 27, 38, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.sales-leads-filter-menu > summary {
  cursor: pointer;
  list-style: none;
}

.sales-leads-filter-menu > summary::-webkit-details-marker {
  display: none;
}

.sales-leads-filter-menu > summary:hover,
.sales-leads-filter-menu[open] > summary,
.sales-leads-sort:focus-within {
  color: #fff;
  background: rgba(38, 47, 62, 0.76);
  border-color: rgba(205, 181, 255, 0.34);
}

.sales-leads-filter-menu > summary .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-leads-filter-menu > summary i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #fff;
  background: #8d69dd;
  border-radius: 50%;
  font-size: 10px;
  font-style: normal;
}

.sales-leads-filter-menu > div {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 218px;
  padding: 7px;
  background: rgba(22, 29, 41, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(8, 12, 20, 0.36), inset 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
}

.sales-leads-filter-menu:not([open]) > div {
  display: none;
}

.sales-leads-filter-menu > div a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  color: var(--today-ink-soft);
  border-radius: 8px;
  font-size: 12px;
}

.sales-leads-filter-menu > div a:hover,
.sales-leads-filter-menu > div a[aria-current="page"] {
  color: #fff;
  background: rgba(167, 124, 255, 0.18);
}

.sales-leads-filter-menu > div a .ui-icon {
  width: 16px;
  height: 16px;
  color: #bd9cff;
}

.sales-leads-sort {
  position: relative;
  width: 172px;
  padding: 0 16px;
}

.sales-leads-sort select {
  width: 100%;
  min-height: 47px;
  padding: 0 27px 0 0;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.sales-leads-sort > .ui-icon {
  position: absolute;
  right: 15px;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.sales-leads-sort--static {
  justify-content: flex-start;
}

.sales-leads-workspace .seller-lead-filter {
  display: grid;
  min-height: 52px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  align-self: start;
  gap: 0;
  padding: 0 6px;
  margin: 0;
  color: var(--today-ink-soft);
  background: rgba(20, 27, 38, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sales-leads-workspace .seller-lead-filter > .ui-icon {
  width: 21px;
  height: 21px;
  justify-self: center;
}

.sales-leads-workspace .seller-lead-filter .input {
  min-height: 48px;
  padding: 0 8px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.sales-leads-workspace .seller-lead-filter .input::placeholder {
  color: rgba(226, 228, 235, 0.68);
}

.sales-leads-workspace .seller-lead-filter .input:focus {
  outline: 0;
  box-shadow: none;
}

.sales-leads-workspace .seller-lead-filter:focus-within {
  background: rgba(30, 38, 51, 0.58);
  border-color: rgba(190, 158, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(152, 111, 235, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sales-leads-workspace .seller-lead-filter button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--today-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.sales-leads-workspace .seller-lead-filter button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sales-leads-workspace .seller-lead-filter button .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-leads-workspace .filter-summary {
  min-height: 65px;
  padding: 13px 3px 15px;
  margin-top: 0;
  color: var(--today-muted);
  border-bottom: 1px solid var(--today-hairline);
  font-size: 11px;
}

.sales-leads-workspace .filter-summary span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-leads-workspace .filter-summary .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-leads-results .data-table-wrap {
  overflow: hidden;
  color: var(--today-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sales-leads-results .data-table {
  min-width: 1040px;
}

.sales-leads-results .data-table th {
  padding: 17px 13px 13px;
  color: var(--today-muted);
  background: transparent;
  border-bottom: 1px solid var(--today-hairline);
  font-size: 11px;
  font-weight: 480;
  letter-spacing: 0;
  text-transform: none;
}

.sales-leads-results .data-table th:first-child,
.sales-leads-results .data-table td:first-child {
  width: 26%;
  padding-left: 3px;
}

.sales-leads-results .data-table th:last-child,
.sales-leads-results .data-table td:last-child {
  padding-right: 3px;
  text-align: right;
}

.sales-leads-results .data-table td {
  height: 84px;
  padding: 13px;
  color: #f5f6f9;
  border-bottom: 1px solid var(--today-hairline);
  font-size: 12px;
}

.sales-leads-results .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.sales-leads-results .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.sales-leads-business {
  display: grid;
  min-width: 0;
  grid-template-columns: 51px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.sales-leads-score {
  display: grid;
  width: 51px;
  height: 51px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(55, 59, 65, 0.9), rgba(24, 29, 37, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 9px 22px rgba(9, 13, 20, 0.18);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
}

.sales-leads-score--initials {
  color: #d7c6ff;
  background: linear-gradient(145deg, rgba(94, 73, 132, 0.78), rgba(35, 38, 50, 0.92));
  font-size: 13px;
}

.sales-leads-results .table-primary {
  min-width: 0;
}

.sales-leads-results .table-primary a,
.sales-leads-results .table-primary strong,
.sales-leads-results .table-primary .text-link {
  max-width: 280px;
  color: #fff;
  font-size: 13px;
  font-weight: 530;
  text-decoration: none;
}

.sales-leads-results .table-primary .text-link {
  width: fit-content;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.sales-leads-results .table-primary a:hover,
.sales-leads-results .table-primary .text-link:hover {
  color: #c8abff;
  background: transparent;
}

.sales-leads-results .table-primary span {
  max-width: 280px;
  color: var(--today-muted);
  font-size: 10px;
}

.sales-leads-results .status-badge {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 520;
}

.sales-leads-results .table-actions .button {
  display: inline-flex;
  min-width: 127px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #fff;
  background: rgba(24, 30, 40, 0.33);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sales-leads-results .table-actions .button--primary {
  background: linear-gradient(102deg, #9370e8, #a479f4);
  border-color: rgba(225, 207, 255, 0.36);
  box-shadow: 0 9px 22px rgba(89, 50, 176, 0.27), inset 0 1px rgba(255, 255, 255, 0.25);
}

.sales-leads-results .table-actions .button .ui-icon,
.sales-leads-results .lead-mobile-actions .button .ui-icon {
  width: 16px;
  height: 16px;
}

.sales-leads-results .empty-state {
  min-height: 250px;
  color: var(--today-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.sales-leads-results .empty-state p,
.sales-leads-results .empty-state .empty-icon {
  color: var(--today-muted);
}

.sales-leads-workspace .pagination {
  color: var(--today-muted);
  border-top: 1px solid var(--today-hairline);
}

.sales-leads-workspace .pagination .button {
  color: var(--today-ink-soft);
  background: rgba(24, 30, 40, 0.4);
  border-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1279px) {
  .sales-leads-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .sales-leads-workspace .seller-lead-filter {
    grid-column: 1;
  }

  .sales-leads-results .mobile-card-list {
    gap: 13px;
  }

  .sales-leads-results .lead-mobile-card {
    color: var(--today-ink);
    background: rgba(24, 31, 43, 0.56);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 16px 34px rgba(10, 15, 24, 0.16);
  }

  .sales-leads-results .lead-mobile-head {
    align-items: center;
  }

  .sales-leads-results .lead-mobile-head > .sales-leads-business {
    min-width: 0;
    flex: 1;
  }

  .sales-leads-results .lead-mobile-meta {
    border-color: var(--today-hairline);
  }

  .sales-leads-results .mini-value span {
    color: var(--today-muted);
  }

  .sales-leads-results .mini-value strong {
    color: #fff;
  }

  .sales-leads-results .lead-mobile-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    background: rgba(26, 33, 45, 0.56);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .sales-leads-results .lead-mobile-actions .button--primary {
    background: linear-gradient(102deg, #9370e8, #a479f4);
  }
}

@media (max-width: 899px) {
  .sales-leads-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-leads-metric {
    min-height: 88px;
  }

  .sales-leads-metric:nth-child(3)::before {
    display: none;
  }

  .sales-leads-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page {
    padding-top: 22px;
  }

  .sales-leads-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .sales-leads-heading h1 {
    font-size: 38px;
  }

  .sales-leads-heading p {
    font-size: 13px;
  }

  .sales-leads-heading .sales-leads-submit {
    width: 100%;
  }

  .sales-leads-metrics {
    margin-top: 20px;
  }

  .sales-leads-metric {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .sales-leads-metric-icon {
    width: 39px;
    height: 39px;
  }

  .sales-leads-metric-icon .ui-icon {
    width: 27px;
    height: 27px;
  }

  .sales-leads-metric small {
    font-size: 11px;
  }

  .sales-leads-metric strong {
    font-size: 27px;
  }

  .sales-leads-workspace {
    min-height: 0;
    padding: 17px;
  }

  .sales-leads-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .sales-leads-toolbar-actions {
    grid-row: 2;
    justify-content: stretch;
  }

  .sales-leads-filter-menu,
  .sales-leads-sort {
    flex: 1;
    width: auto;
  }

  .sales-leads-workspace .seller-lead-filter {
    grid-column: 1;
    grid-row: 3;
  }

  .sales-leads-workspace .filter-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-leads-results .mobile-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-leads-business {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
  }

  .sales-leads-score {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 440px) {
  .sales-leads-workspace {
    padding: 14px;
  }

  .sales-leads-workspace .seller-lead-tabs .tab {
    min-width: 0;
    padding-right: 6px;
    padding-left: 6px;
    font-size: 12px;
  }

  .sales-leads-workspace .seller-lead-tabs .tab strong {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
  }

  .sales-leads-toolbar-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-leads-filter-menu {
    width: 100%;
  }

  .sales-leads-filter-menu > div {
    right: auto;
    left: 0;
    max-width: calc(100vw - 46px);
  }

  .sales-leads-results .lead-mobile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-leads-results .lead-mobile-head > .sales-leads-business {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sales-leads-metrics {
    background: #3b4350;
  }

  .sales-leads-workspace,
  .sales-leads-results .lead-mobile-card {
    background: #222a37;
  }
}

@media (forced-colors: active) {
  .sales-leads-metrics,
  .sales-leads-workspace,
  .sales-leads-results .lead-mobile-card {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}

/* Sales · Deals glass workspace */
.app-shell[data-shell-key^="sales:"][data-rendered-nav="deals"] .page {
  width: min(1252px, calc(100% - 50px));
  padding-top: 9px;
}

.sales-deals-view {
  display: block;
  color: var(--today-ink);
}

.sales-deals-heading {
  display: flex;
  min-height: 75px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #1f232c;
}

.sales-deals-heading h1 {
  margin: 0 0 3px;
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.sales-deals-heading p {
  max-width: 820px;
  margin: 0;
  color: #2c3039;
  font-size: 15px;
  line-height: 1.45;
}

.sales-deals-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.sales-deals-heading-actions .button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 19px;
  color: #fff;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 620;
}

.sales-deals-heading-actions .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-deals-heading-actions .sales-deals-export {
  background: rgba(30, 38, 50, 0.55);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 11px 26px rgba(18, 24, 34, 0.15);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.sales-deals-heading-actions .sales-deals-new-request {
  background: linear-gradient(118deg, rgba(132, 91, 224, 0.96), rgba(166, 103, 255, 0.9));
  border-color: rgba(226, 210, 255, 0.4);
  box-shadow: 0 16px 34px rgba(77, 45, 143, 0.25), inset 0 1px rgba(255, 255, 255, 0.28);
}

.sales-deals-heading-actions .sales-deals-new-request .ui-icon {
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.sales-deals-heading-actions .button:hover {
  color: #fff;
  border-color: rgba(232, 220, 255, 0.48);
  transform: translateY(-1px);
}

.sales-deals-metrics {
  min-height: 92px;
  margin-top: 18px;
}

.sales-deals-metrics .sales-leads-metric--success .sales-leads-metric-icon {
  color: #68dfa0;
}

.sales-deals-tabs {
  display: grid;
  min-height: 55px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 19px;
  margin-top: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 130% at 0% -20%, rgba(255, 255, 255, 0.11), transparent 72%),
    linear-gradient(118deg, rgba(45, 52, 65, 0.74), rgba(20, 29, 42, 0.8));
  border: 1px solid var(--today-glass-border);
  border-radius: 12px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(115%);
  backdrop-filter: blur(27px) saturate(115%);
}

.sales-deals-tabs a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--today-ink-soft);
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 480;
  text-decoration: none;
}

.sales-deals-tabs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.sales-deals-tabs a[aria-current="page"] {
  color: #fff;
  border-bottom-color: #a776ff;
  box-shadow: inset 0 -10px 18px -15px rgba(171, 121, 255, 0.85);
  font-weight: 650;
}

.sales-deals-tabs a:focus-visible {
  outline: 2px solid #dfd1ff;
  outline-offset: -4px;
  border-radius: 8px;
}

.sales-deals-tabs a strong {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 620;
}

.sales-deals-tabs a > i {
  width: 7px;
  height: 7px;
  margin-left: -5px;
  background: #ff756c;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 103, 94, 0.7);
}

.sales-deals-overview {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}

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

.sales-deals-overview-card,
.sales-deals-history-preview,
.sales-deals-tab-panel {
  min-width: 0;
  overflow: hidden;
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 58% 66% at 5% 0%, rgba(151, 108, 242, 0.09), transparent 72%),
    linear-gradient(145deg, var(--today-dark-glass-strong), var(--today-dark-glass));
  border: 1px solid var(--today-glass-border);
  border-radius: 14px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(120%);
  backdrop-filter: blur(29px) saturate(120%);
}

.sales-deals-card-heading,
.sales-deals-panel-heading {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 14px;
}

.sales-deals-card-heading > div:first-child,
.sales-deals-panel-heading > div:first-child {
  min-width: 0;
}

.sales-deals-view .eyebrow {
  margin: 0 0 9px;
  color: #c099ff;
  font-size: 11px;
  font-weight: 740;
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.48);
  text-transform: uppercase;
}

.sales-deals-card-heading h2,
.sales-deals-panel-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.sales-deals-card-heading p,
.sales-deals-panel-heading p {
  margin: 5px 0 0;
  color: var(--today-muted);
  font-size: 11px;
  line-height: 1.45;
}

.sales-deals-card-heading .section-link,
.sales-deals-card-footer {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--today-ink-soft);
  font-size: 10px;
  font-weight: 520;
  text-decoration: none;
}

.sales-deals-card-heading .section-link .ui-icon,
.sales-deals-card-footer .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-deals-card-heading .section-link:hover,
.sales-deals-card-footer:hover {
  color: #d2bdff;
}

.sales-deals-card-status {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.sales-deals-view .status-badge {
  min-height: 27px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 560;
}

.sales-deals-view .status--neutral {
  color: #e4e7ed;
  background: rgba(126, 135, 150, 0.2);
}

.sales-deals-view .status--info {
  color: #a8d0ff;
  background: rgba(52, 108, 171, 0.22);
}

.sales-deals-view .status--warning {
  color: #ffd188;
  background: rgba(153, 94, 24, 0.25);
}

.sales-deals-view .status--danger {
  color: #ff988f;
  background: rgba(163, 56, 58, 0.28);
}

.sales-deals-view .status--success {
  color: #91edb8;
  background: rgba(42, 123, 82, 0.28);
}

.sales-deals-preview-list {
  padding: 0 17px 6px;
}

.sales-deals-preview-list .price-update-item {
  min-height: 88px;
  grid-template-columns: 38px minmax(0, 1fr) minmax(116px, auto);
  gap: 11px;
  padding: 11px 6px;
  color: var(--today-ink);
  border-top: 1px solid var(--today-hairline);
  border-bottom: 0;
}

.sales-deals-preview-list .price-update-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.sales-deals-preview-list .price-update-title .item-title,
.sales-deals-preview-list .price-update-amount strong {
  color: #fff;
}

.sales-deals-preview-list .price-update-amount small,
.sales-deals-preview-list .item-meta,
.sales-deals-preview-list .price-update-detail {
  color: var(--today-muted);
}

.sales-deals-preview-list .price-update-detail {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sales-deals-preview-list .price-update-actions {
  align-items: flex-end;
  gap: 6px;
}

.sales-deals-preview-list .sales-today-quote-row {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) 84px minmax(115px, auto) minmax(108px, auto) 28px;
  gap: 10px;
  padding: 10px 6px;
  color: var(--today-ink);
  border-top: 1px solid var(--today-hairline);
  border-bottom: 0;
}

.sales-deals-preview-list .sales-today-quote-customer {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.sales-deals-preview-list .price-update-marker {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #8ee7b7;
  background: rgba(61, 122, 94, 0.3);
  border-radius: 8px;
}

.sales-deals-preview-list .price-update-marker .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-deals-preview-list .item-title {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 590;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.sales-deals-preview-list .sales-today-quote-amount {
  color: #fff;
  font-size: 12px;
  font-weight: 570;
}

.sales-deals-preview-list .sales-today-quote-action .button,
.sales-deals-preview-list .price-update-actions .button,
.sales-deals-plan-list .button,
.sales-deals-history-list .button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(18, 24, 34, 0.3);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 11px;
  text-decoration: none;
}

.sales-deals-preview-list .sales-today-quote-action .button--primary {
  background: linear-gradient(103deg, #8e64df, #a372ef);
  border-color: rgba(225, 207, 255, 0.35);
}

.sales-deals-preview-list .sales-today-quote-menu {
  color: var(--today-muted);
}

.sales-deals-plan-list,
.sales-deals-history-list {
  padding: 0 16px;
  margin: 0;
  list-style: none;
}

.sales-deals-plan-list li {
  display: grid;
  min-height: 73px;
  grid-template-columns: minmax(0, 1.25fr) 92px minmax(110px, auto) 108px;
  align-items: center;
  gap: 12px;
  padding: 10px 7px;
  border-top: 1px solid var(--today-hairline);
}

.sales-deals-row-primary,
.sales-deals-plan-amount {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.sales-deals-row-primary strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 590;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-deals-row-primary span,
.sales-deals-plan-amount span {
  color: var(--today-muted);
  font-size: 10px;
}

.sales-deals-plan-amount strong {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.sales-deals-card-footer {
  min-height: 45px;
  justify-content: flex-end;
  padding: 0 22px;
  border-top: 1px solid var(--today-hairline);
}

.sales-deals-history-list li {
  display: grid;
  min-height: 48px;
  grid-template-columns: 31px minmax(180px, 1.2fr) minmax(150px, 1fr) 90px minmax(145px, 1fr) 100px;
  align-items: center;
  gap: 10px;
  padding: 7px 4px;
  color: var(--today-ink-soft);
  border-top: 1px solid var(--today-hairline);
  font-size: 10px;
}

.sales-deals-history-list li > strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-deals-history-list li > span:last-child {
  justify-self: end;
}

.sales-deals-history-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #c9d0dc;
}

.sales-deals-history-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-deals-history-icon--won {
  color: #69dfa0;
}

.sales-deals-empty {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 24px;
  color: var(--today-muted);
  text-align: center;
}

.sales-deals-empty strong {
  color: #fff;
  font-size: 14px;
}

.sales-deals-empty span {
  max-width: 410px;
  font-size: 10px;
  line-height: 1.5;
}

.sales-deals-empty--large {
  min-height: 300px;
}

.sales-deals-tab-panel {
  margin-top: 15px;
}

.sales-deals-panel-heading {
  padding: 23px 24px 18px;
}

.sales-deals-panel-heading h2 {
  font-size: 18px;
}

.sales-deals-filter-form {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(170px, 0.32fr) minmax(170px, 0.32fr) auto;
  align-items: center;
  gap: 13px;
  padding: 0 23px 17px;
  border-bottom: 1px solid var(--today-hairline);
}

.sales-deals-search {
  display: grid;
  min-height: 49px;
  grid-template-columns: 43px minmax(0, 1fr) 40px;
  align-items: center;
  color: var(--today-ink-soft);
  background: rgba(18, 25, 36, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sales-deals-search > .ui-icon {
  width: 20px;
  height: 20px;
  justify-self: center;
}

.sales-deals-search input {
  width: 100%;
  min-height: 47px;
  padding: 0 6px;
  color: #fff;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.sales-deals-search input::placeholder {
  color: rgba(226, 228, 235, 0.68);
}

.sales-deals-search button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: var(--today-ink-soft);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.sales-deals-search button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sales-deals-search button .ui-icon {
  width: 16px;
  height: 16px;
}

.sales-deals-search:focus-within {
  background: rgba(30, 38, 51, 0.56);
  border-color: rgba(190, 158, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(152, 111, 235, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sales-deals-select {
  position: relative;
  display: grid;
  min-height: 49px;
  grid-template-columns: 29px minmax(0, 1fr) 18px;
  align-items: center;
  padding: 0 12px;
  color: var(--today-ink-soft);
  background: rgba(18, 25, 36, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.sales-deals-select > .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-deals-select > .ui-icon:last-child {
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.sales-deals-select select {
  width: 100%;
  min-height: 47px;
  padding: 0 6px;
  color: inherit;
  cursor: pointer;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
  -webkit-appearance: none;
  appearance: none;
}

.sales-deals-select:focus-within {
  color: #fff;
  background: rgba(30, 38, 51, 0.56);
  border-color: rgba(190, 158, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(152, 111, 235, 0.1), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sales-deals-filter-form > .status-badge {
  justify-self: end;
  white-space: nowrap;
}

.sales-deals-results .data-table-wrap {
  overflow: hidden;
  color: var(--today-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.sales-deals-results .data-table {
  min-width: 1140px;
}

.sales-deals-results .data-table th {
  padding: 16px 11px 13px;
  color: var(--today-muted);
  background: transparent;
  border-bottom: 1px solid var(--today-hairline);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sales-deals-results .data-table td {
  height: 89px;
  padding: 13px 11px;
  color: #f5f6f9;
  border-bottom: 1px solid var(--today-hairline);
  font-size: 11px;
  line-height: 1.45;
}

.sales-deals-results .data-table th:first-child,
.sales-deals-results .data-table td:first-child {
  width: 25%;
  padding-left: 24px;
}

.sales-deals-results .data-table th:nth-child(6),
.sales-deals-results .data-table td:nth-child(6) {
  width: 28%;
  padding-right: 24px;
}

.sales-deals-results .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.sales-deals-customer {
  display: grid;
  min-width: 0;
  grid-template-columns: 45px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.sales-deals-customer .price-update-marker {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  color: #8ee7b7;
  background: rgba(57, 118, 91, 0.31);
  border: 1px solid rgba(118, 226, 166, 0.1);
  border-radius: 9px;
}

.sales-deals-customer .price-update-marker--warning {
  color: #ffd188;
  background: rgba(142, 94, 34, 0.28);
}

.sales-deals-customer .price-update-marker--danger {
  color: #ff988f;
  background: rgba(139, 49, 54, 0.28);
}

.sales-deals-customer .price-update-marker--info {
  color: #9fcaff;
  background: rgba(49, 93, 147, 0.28);
}

.sales-deals-customer .price-update-marker .ui-icon {
  width: 22px;
  height: 22px;
}

.sales-deals-results .table-primary {
  min-width: 0;
}

.sales-deals-results .table-primary a {
  overflow: hidden;
  max-width: 260px;
  color: #fff;
  font-size: 12px;
  font-weight: 590;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-deals-results .table-primary a:hover {
  color: #c8abff;
}

.sales-deals-results .table-primary span {
  overflow: hidden;
  max-width: 260px;
  color: var(--today-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-deals-money {
  display: grid;
  gap: 3px;
}

.sales-deals-money strong {
  color: #fff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 580;
}

.sales-deals-money span {
  color: var(--today-muted);
  font-size: 9px;
}

.sales-deals-next-action {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.sales-deals-next-action > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--today-ink-soft);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-deals-next-action .button {
  display: inline-flex;
  min-width: 104px;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(18, 24, 34, 0.3);
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 11px;
}

.sales-deals-next-action .button--primary {
  background: linear-gradient(103deg, #8e64df, #a372ef);
  border-color: rgba(225, 207, 255, 0.35);
  box-shadow: 0 9px 21px rgba(85, 48, 165, 0.24);
}

.sales-deals-pagination {
  min-height: 65px;
  padding: 11px 23px;
  color: var(--today-muted);
  border-top: 1px solid var(--today-hairline);
}

.sales-deals-pagination .button {
  min-width: 112px;
  min-height: 40px;
  color: var(--today-ink-soft);
  background: rgba(18, 24, 34, 0.3);
  border-color: rgba(255, 255, 255, 0.17);
  border-radius: 8px;
}

.sales-deals-pagination .button:disabled {
  opacity: 0.42;
}

.sales-deals-panel-note {
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  color: var(--today-muted);
  border-top: 1px solid var(--today-hairline);
  font-size: 10px;
}

.sales-deals-panel-note .ui-icon {
  width: 18px;
  height: 18px;
}

.sales-deals-embedded-disclosure {
  padding: 0 22px 22px;
}

.sales-deals-embedded-disclosure > .panel {
  overflow: hidden;
  color: var(--today-ink);
  background: rgba(12, 19, 29, 0.21);
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.sales-deals-embedded-disclosure .sales-disclosure > summary {
  color: #fff;
}

.sales-deals-embedded-disclosure .sales-disclosure > summary::after {
  color: var(--today-ink-soft);
  background: rgba(255, 255, 255, 0.07);
}

.sales-deals-embedded-disclosure .sales-disclosure > summary:focus-visible {
  outline-color: rgba(190, 158, 255, 0.55);
}

.sales-deals-embedded-disclosure .sales-disclosure-heading small,
.sales-deals-embedded-disclosure .item-meta,
.sales-deals-embedded-disclosure .billing-kicker,
.sales-deals-embedded-disclosure .billing-row-heading p,
.sales-deals-embedded-disclosure .billing-fact span,
.sales-deals-embedded-disclosure .billing-fact small,
.sales-deals-embedded-disclosure .invoice-fulfillment-status span:first-child,
.sales-deals-embedded-disclosure .invoice-fulfillment-status p,
.sales-deals-embedded-disclosure .invoice-commission-boundary p {
  color: var(--today-muted);
}

.sales-deals-embedded-disclosure .billing-list,
.sales-deals-embedded-disclosure .billing-row,
.sales-deals-embedded-disclosure .compact-item,
.sales-deals-embedded-disclosure .seller-invoices-disclosure[open] > summary,
.sales-deals-embedded-disclosure .seller-deal-history .sales-disclosure[open] > summary,
.sales-deals-embedded-disclosure .invoice-commission-boundary {
  border-color: var(--today-hairline);
}

.sales-deals-embedded-disclosure .billing-fact,
.sales-deals-embedded-disclosure .invoice-fulfillment-status {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.09);
}

.sales-deals-embedded-disclosure .invoice-commission-boundary {
  color: var(--today-ink);
  background: rgba(20, 27, 38, 0.58);
}

.sales-deals-embedded-disclosure .status-badge {
  min-height: 29px;
  padding: 0 11px;
  font-size: 10px;
}

.sales-deals-embedded-disclosure .billing-fact strong,
.sales-deals-embedded-disclosure .invoice-fulfillment-status strong,
.sales-deals-embedded-disclosure .item-title,
.sales-deals-embedded-disclosure .invoice-commission-boundary strong {
  color: #fff;
}

.sales-deals-embedded-disclosure .compact-item .button {
  color: #fff;
  background: rgba(18, 24, 34, 0.3);
  border-color: rgba(255, 255, 255, 0.18);
}

.sales-deals-embedded-disclosure .empty-inline {
  color: var(--today-muted);
}

.sales-deals-mobile-card {
  color: var(--today-ink);
  background: rgba(22, 29, 41, 0.56);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 15px 32px rgba(9, 14, 22, 0.16);
}

.sales-deals-mobile-card .lead-mobile-meta {
  border-color: var(--today-hairline);
}

.sales-deals-mobile-card .mini-value span {
  color: var(--today-muted);
}

.sales-deals-mobile-card .mini-value strong {
  color: #fff;
}

.sales-deals-mobile-card > p {
  margin: 12px 0 0;
  color: var(--today-muted);
  font-size: 10px;
  line-height: 1.5;
}

.sales-deals-mobile-card .lead-mobile-actions .button {
  color: #fff;
  background: rgba(18, 24, 34, 0.4);
  border-color: rgba(255, 255, 255, 0.17);
}

.sales-deals-mobile-card .lead-mobile-actions .button--primary {
  background: linear-gradient(103deg, #8e64df, #a372ef);
}

.sales-deals-request-picker .compact-item {
  gap: 12px;
}

@media (max-width: 1399px) {
  .sales-deals-results .data-table-scroll {
    display: none;
  }

  .sales-deals-results .mobile-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 13px;
    padding: 18px 22px 22px;
  }

  .sales-deals-results .data-table-wrap {
    overflow: visible;
  }
}

@media (max-width: 1279px) {
  .sales-deals-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-deals-preview-list .sales-today-quote-row {
    grid-template-columns: minmax(0, 1fr) 90px minmax(120px, auto) minmax(110px, auto) 28px;
  }

  .sales-deals-results .mobile-card-list {
    gap: 13px;
    padding: 18px 22px 22px;
  }

  .sales-deals-history-list li {
    grid-template-columns: 31px minmax(150px, 1.2fr) minmax(135px, 1fr) 82px minmax(130px, 1fr) 95px;
  }
}

@media (max-width: 1099px) {
  .sales-deals-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-deals-metrics .sales-leads-metric {
    min-height: 88px;
  }

  .sales-deals-metrics .sales-leads-metric:nth-child(3)::before {
    display: none;
  }

  .sales-deals-metrics .sales-leads-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .sales-deals-filter-form {
    grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(150px, 0.42fr));
  }

  .sales-deals-filter-form > .status-badge {
    display: none;
  }
}

@media (max-width: 899px) {
  .sales-deals-history-list li {
    min-height: 64px;
    grid-template-columns: 31px minmax(0, 1fr) auto;
  }

  .sales-deals-history-list li > :nth-child(3),
  .sales-deals-history-list li > :nth-child(5) {
    display: none;
  }

  .sales-deals-history-list li > :nth-child(4) {
    grid-column: 2;
    color: var(--today-muted);
  }

  .sales-deals-history-list li > :last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="deals"] .page {
    padding-top: 18px;
  }

  .sales-deals-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 17px;
  }

  .sales-deals-heading h1 {
    font-size: 38px;
  }

  .sales-deals-heading p {
    font-size: 13px;
  }

  .sales-deals-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-deals-heading-actions .button {
    width: 100%;
  }

  .sales-deals-metrics .sales-leads-metric {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px;
    padding: 12px;
  }

  .sales-deals-metrics .sales-leads-metric-icon {
    width: 39px;
    height: 39px;
  }

  .sales-deals-metrics .sales-leads-metric-icon .ui-icon {
    width: 27px;
    height: 27px;
  }

  .sales-deals-metrics .sales-leads-metric small {
    font-size: 10px;
  }

  .sales-deals-metrics .sales-leads-metric strong {
    font-size: 27px;
  }

  .sales-deals-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 3px;
  }

  .sales-deals-tabs a {
    min-height: 48px;
    border: 1px solid transparent;
    border-bottom-width: 1px;
    border-radius: 9px;
    font-size: 11px;
  }

  .sales-deals-tabs a[aria-current="page"] {
    background: rgba(130, 91, 207, 0.36);
    border-color: rgba(205, 181, 255, 0.28);
  }

  .sales-deals-card-heading,
  .sales-deals-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-deals-card-heading .section-link,
  .sales-deals-card-status {
    justify-content: flex-start;
  }

  .sales-deals-preview-list .sales-today-quote-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 3px;
  }

  .sales-deals-preview-list .price-update-item {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    padding: 13px 3px;
  }

  .sales-deals-preview-list .price-update-actions {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sales-deals-preview-list .price-update-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-deals-preview-list .price-update-amount {
    text-align: left;
  }

  .sales-deals-preview-list .sales-today-quote-customer {
    display: contents;
  }

  .sales-deals-preview-list .price-update-marker {
    grid-column: 1;
    grid-row: 1;
  }

  .sales-deals-preview-list .item-title {
    grid-column: 2;
    grid-row: 1;
  }

  .sales-deals-preview-list .sales-today-quote-amount {
    grid-column: 2;
    grid-row: 2;
  }

  .sales-deals-preview-list .sales-today-quote-status {
    grid-column: 2;
    grid-row: 3;
  }

  .sales-deals-preview-list .sales-today-quote-action {
    grid-column: 2;
    grid-row: 4;
  }

  .sales-deals-preview-list .sales-today-quote-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .sales-deals-plan-list li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 13px 5px;
  }

  .sales-deals-plan-list li > .sales-deals-plan-amount {
    justify-items: end;
  }

  .sales-deals-plan-list li > .status-badge {
    grid-column: 1;
  }

  .sales-deals-plan-list li > .button {
    grid-column: 2;
  }

  .sales-deals-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 17px 17px;
  }

  .sales-deals-search {
    grid-column: 1 / -1;
  }

  .sales-deals-select {
    padding: 0 9px;
  }

  .sales-deals-select select {
    font-size: 10px;
  }

  .sales-deals-results .mobile-card-list {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 17px 18px;
  }

  .sales-deals-mobile-card .lead-mobile-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-deals-mobile-card .sales-deals-customer {
    width: 100%;
  }

  .sales-deals-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 14px 17px;
  }

  .sales-deals-pagination > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-deals-pagination .button {
    min-width: 0;
    width: 100%;
  }

  .sales-deals-panel-note {
    align-items: flex-start;
    padding: 15px 17px;
    line-height: 1.5;
  }

  .sales-deals-embedded-disclosure {
    padding: 0 17px 17px;
  }

  .sales-deals-embedded-disclosure .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 440px) {
  .sales-deals-heading-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-deals-metrics .sales-leads-metric {
    grid-template-columns: minmax(0, 1fr);
    min-height: 68px;
    justify-items: center;
    text-align: center;
  }

  .sales-deals-metrics .sales-leads-metric-icon {
    display: none;
  }

  .sales-deals-tabs a {
    gap: 6px;
    padding: 0 5px;
  }

  .sales-deals-tabs a strong {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
  }

  .sales-deals-card-heading,
  .sales-deals-panel-heading {
    padding: 18px 16px 13px;
  }

  .sales-deals-plan-list,
  .sales-deals-history-list,
  .sales-deals-preview-list {
    padding-right: 11px;
    padding-left: 11px;
  }

  .sales-deals-filter-form {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-deals-search {
    grid-column: 1;
  }

  .sales-deals-results .mobile-card-list {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-deals-mobile-card {
    padding: 13px;
  }

  .sales-deals-mobile-card .lead-mobile-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-deals-embedded-disclosure {
    padding-right: 13px;
    padding-left: 13px;
  }

  .sales-deals-embedded-disclosure .billing-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sales-deals-tabs,
  .sales-deals-overview-card,
  .sales-deals-history-preview,
  .sales-deals-tab-panel,
  .sales-deals-mobile-card,
  .sales-deals-heading-actions .sales-deals-export,
  .sales-deals-search,
  .sales-deals-select {
    background: #222a37;
  }
}

@media (forced-colors: active) {
  .sales-deals-tabs,
  .sales-deals-overview-card,
  .sales-deals-history-preview,
  .sales-deals-tab-panel,
  .sales-deals-mobile-card {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}

/* Shared Sales/Admin · Team Chat glass workspace */
.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .page {
  width: min(1248px, calc(100% - 64px));
  padding-top: 22px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .team-chat-page {
  color: var(--today-ink, var(--admin-today-ink));
}

.sales-chat-heading {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  color: #252933;
}

.sales-chat-heading > div:first-child {
  min-width: 0;
}

.sales-chat-heading h1 {
  margin: 0 0 3px;
  color: #242832;
  font-size: 43px;
  font-weight: 620;
  letter-spacing: -0.048em;
  line-height: 1.05;
}

.sales-chat-heading p {
  margin: 0;
  color: rgba(37, 41, 51, 0.85);
  font-size: 14px;
  line-height: 1.45;
}

.sales-chat-heading-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  padding-top: 8px;
}

.sales-chat-heading-actions .button {
  min-height: 46px;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(105deg, rgba(113, 77, 201, 0.82), rgba(139, 96, 225, 0.78));
  border: 1px solid rgba(220, 202, 255, 0.38);
  border-radius: 10px;
  box-shadow: 0 13px 30px rgba(76, 46, 137, 0.2), inset 0 1px rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 620;
}

.sales-chat-heading-actions .button:hover {
  background: linear-gradient(105deg, rgba(125, 86, 218, 0.9), rgba(151, 106, 238, 0.88));
  border-color: rgba(231, 218, 255, 0.54);
}

.sales-chat-heading-actions .ui-icon {
  width: 19px;
  height: 19px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-workspace {
  height: clamp(620px, calc(100dvh - 222px), 802px);
  grid-template-columns: 314px minmax(0, 1fr);
  color: var(--today-ink, var(--admin-today-ink));
  background: linear-gradient(145deg, rgba(26, 32, 44, 0.84), rgba(13, 21, 33, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 15px;
  box-shadow: 0 25px 64px rgba(8, 14, 24, 0.25), inset 0 1px rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(29px) saturate(116%);
  backdrop-filter: blur(29px) saturate(116%);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-panel {
  background:
    radial-gradient(ellipse 92% 62% at 4% 0%, rgba(164, 135, 226, 0.09), transparent 72%),
    linear-gradient(162deg, rgba(45, 52, 66, 0.7), rgba(24, 31, 43, 0.72));
  border-right-color: rgba(255, 255, 255, 0.12);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-heading {
  min-height: 64px;
  padding: 18px 22px 10px;
  border-bottom: 0;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-heading h2 {
  color: #c3a2ff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.45);
  text-transform: uppercase;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-heading .status-badge {
  min-height: 27px;
  padding: 0 11px;
  color: rgba(246, 247, 250, 0.9);
  background: rgba(27, 34, 46, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 10px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-heading .status-badge::before {
  display: none;
}

.chat-room-search {
  display: grid;
  min-height: 43px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  margin: 0 21px 13px;
  padding: 0 13px;
  color: rgba(230, 232, 239, 0.84);
  background: rgba(21, 28, 40, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.chat-room-search:focus-within {
  border-color: rgba(183, 142, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(157, 105, 255, 0.14), inset 0 1px rgba(255, 255, 255, 0.07);
}

.chat-room-search .ui-icon {
  width: 18px;
  height: 18px;
}

.chat-room-search input {
  width: 100%;
  padding: 0;
  color: #f5f5f8;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 11px;
}

.chat-room-search input::placeholder {
  color: rgba(220, 223, 231, 0.7);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-list {
  gap: 4px;
  padding: 0 13px 16px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-list-empty {
  color: rgba(220, 223, 231, 0.72);
  font-size: 12px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item {
  min-height: 76px;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(235, 237, 243, 0.78);
  border-radius: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item.is-selected {
  color: #fff;
  background: linear-gradient(125deg, rgba(116, 79, 200, 0.32), rgba(45, 49, 66, 0.32));
  border-color: rgba(182, 139, 255, 0.7);
  box-shadow: inset 3px 0 0 #a978ff, 0 13px 28px rgba(13, 17, 28, 0.14);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-avatar,
.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-avatar {
  color: #fff;
  background: linear-gradient(145deg, #8659df, #392474);
  border: 1px solid rgba(218, 194, 255, 0.2);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 8px 19px rgba(18, 12, 35, 0.22);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-avatar {
  width: 45px;
  height: 45px;
  font-size: 13px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-title strong {
  color: #f7f7fa;
  font-size: 13px;
  font-weight: 610;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-copy small,
.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item > time {
  color: rgba(216, 220, 229, 0.74);
  font-size: 10.5px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-unread-count {
  background: linear-gradient(145deg, #aa79ff, #8455e6);
  box-shadow: 0 0 10px rgba(163, 112, 255, 0.46);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-conversation {
  background:
    radial-gradient(ellipse 70% 54% at 84% 0%, rgba(77, 88, 108, 0.14), transparent 72%),
    linear-gradient(155deg, rgba(25, 31, 43, 0.7), rgba(12, 20, 32, 0.76));
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-conversation-header {
  min-height: 78px;
  padding: 13px 21px 13px 24px;
  color: #fff;
  background: rgba(21, 28, 40, 0.24);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity {
  gap: 14px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity > .chat-room-avatar {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 14px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity h2 {
  color: #f8f8fb;
  font-size: 18px;
  font-weight: 620;
}

.chat-room-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity p {
  color: rgba(216, 220, 229, 0.76);
  font-size: 11px;
}

.chat-member-stack {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding-left: 4px;
}

.chat-member-stack > span {
  display: inline-grid;
  width: 23px;
  height: 23px;
  margin-left: -5px;
  place-items: center;
  color: rgba(250, 250, 252, 0.94);
  background: linear-gradient(145deg, rgba(97, 102, 117, 0.96), rgba(48, 55, 68, 0.98));
  border: 2px solid rgba(27, 34, 46, 0.94);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 720;
}

.chat-member-stack > span:first-child {
  margin-left: 0;
  background: linear-gradient(145deg, #7668a8, #3c355e);
}

.chat-conversation-tools {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-live-indicator {
  margin-right: 5px;
  color: #40d18a;
  font-size: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-live-indicator i {
  width: 8px;
  height: 8px;
  background: #40d18a;
  box-shadow: 0 0 10px rgba(64, 209, 138, 0.55);
}

.chat-tool-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: rgba(234, 236, 242, 0.9);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.chat-tool-button:hover,
.chat-room-menu[open] > .chat-tool-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.chat-tool-button .ui-icon {
  width: 20px;
  height: 20px;
}

.chat-room-menu {
  position: relative;
}

.chat-room-menu > summary {
  list-style: none;
  letter-spacing: 2px;
}

.chat-room-menu > summary::-webkit-details-marker {
  display: none;
}

.chat-room-menu-popover {
  position: absolute;
  z-index: 8;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  width: 205px;
  gap: 3px;
  padding: 7px;
  color: #f5f5f8;
  background: rgba(25, 31, 43, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  box-shadow: 0 20px 45px rgba(5, 9, 16, 0.35);
}

.chat-room-menu:not([open]) .chat-room-menu-popover {
  display: none;
}

.chat-room-menu-popover button {
  display: grid;
  min-height: 39px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: rgba(239, 241, 246, 0.88);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.chat-room-menu-popover button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.chat-room-menu-popover .ui-icon {
  width: 16px;
  height: 16px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins {
  display: block;
  padding: 9px 18px;
  background: rgba(28, 35, 48, 0.42);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins[hidden] {
  display: none;
}

.chat-pins-disclosure > summary {
  display: grid;
  min-height: 32px;
  grid-template-columns: auto minmax(0, 1fr) 28px;
  align-items: center;
  gap: 11px;
  color: rgba(229, 232, 239, 0.85);
  cursor: pointer;
  list-style: none;
}

.chat-pins-disclosure > summary::-webkit-details-marker {
  display: none;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins-heading {
  color: #c3a2ff;
  font-size: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins-count {
  color: #e5d9ff;
  background: rgba(179, 137, 255, 0.18);
}

.chat-pin-summary {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
}

.chat-pin-summary strong {
  flex: 0 0 auto;
  color: #f4f4f8;
}

.chat-pin-summary span {
  overflow: hidden;
  color: rgba(219, 222, 230, 0.78);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-pin-chevron {
  display: grid;
  place-items: center;
  transition: transform var(--motion-fast) var(--ease-ui);
}

.chat-pins-disclosure[open] .chat-pin-chevron {
  transform: rotate(180deg);
}

.chat-pin-chevron .ui-icon {
  width: 15px;
  height: 15px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pin-list {
  gap: 7px;
  padding: 7px 0 2px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pin-preview {
  color: #f6f6f9;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.13);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pin-preview span {
  color: rgba(218, 221, 229, 0.75);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-poll-error {
  color: #ffd9dd;
  background: rgba(131, 37, 51, 0.42);
  border-bottom-color: rgba(255, 165, 176, 0.23);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-scroll {
  padding: 14px 24px 19px;
  background:
    radial-gradient(ellipse 62% 48% at 92% 1%, rgba(102, 111, 131, 0.08), transparent 72%),
    transparent;
  scrollbar-color: rgba(196, 170, 246, 0.32) transparent;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-history-action {
  min-height: 24px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-history-action .button {
  color: rgba(226, 229, 236, 0.78);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-list {
  gap: 13px;
}

.chat-date-divider {
  display: grid;
  grid-template-columns: minmax(22px, 1fr) auto minmax(22px, 1fr);
  align-items: center;
  gap: 17px;
  margin: 0 0 5px;
  color: rgba(221, 224, 231, 0.78);
  font-size: 11px;
  list-style: none;
}

.chat-date-divider::before,
.chat-date-divider::after {
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.1);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-empty {
  color: rgba(218, 221, 229, 0.72);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-empty > span {
  color: #c2a1ff;
  background: rgba(145, 93, 239, 0.17);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-empty strong {
  color: #f4f4f8;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message {
  align-items: flex-start;
  gap: 12px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-avatar {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  font-size: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble {
  max-width: min(78%, 720px);
  padding: 14px 16px 15px;
  color: #f3f4f8;
  background: linear-gradient(145deg, rgba(44, 51, 65, 0.56), rgba(25, 32, 45, 0.68));
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 13px 28px rgba(4, 9, 17, 0.13), inset 0 1px rgba(255, 255, 255, 0.055);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message.is-own .chat-message-bubble {
  color: #fff;
  background: linear-gradient(145deg, rgba(111, 70, 193, 0.78), rgba(55, 42, 91, 0.88));
  border-color: rgba(196, 161, 255, 0.28);
  box-shadow: 0 14px 30px rgba(19, 10, 40, 0.2), inset 0 1px rgba(255, 255, 255, 0.11);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message.is-pinned .chat-message-bubble {
  box-shadow: inset 3px 0 0 #a879ff, 0 13px 28px rgba(4, 9, 17, 0.13);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble header strong {
  color: #f7f7fa;
  font-size: 13px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble header time {
  color: rgba(213, 217, 226, 0.65);
  font-size: 10px;
}

.chat-sender-role {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  color: rgba(236, 232, 244, 0.9);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 620;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-text {
  color: rgba(238, 240, 245, 0.88);
  font-size: 13.5px;
  line-height: 1.55;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-link-card {
  min-width: 0;
  color: #e2cfff;
  background: rgba(17, 24, 36, 0.35);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 9px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-link-card:hover {
  color: #ebddff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(191, 154, 255, 0.42);
  box-shadow: 0 8px 20px rgba(4, 8, 15, 0.16);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-link-card strong {
  color: #c8a7ff;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-link-card small,
.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-link-arrow {
  color: rgba(216, 220, 229, 0.67);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer {
  gap: 5px;
  padding: 11px 18px 14px;
  background: rgba(17, 24, 36, 0.48);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-control {
  min-height: 61px;
  align-items: center;
  padding: 7px 8px 7px 16px;
  background: rgba(17, 24, 36, 0.42);
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-control:focus-within {
  background: rgba(22, 29, 42, 0.75);
  border-color: rgba(183, 142, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(157, 105, 255, 0.13), inset 0 1px rgba(255, 255, 255, 0.07);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-input {
  min-height: 45px;
  color: #f5f5f8;
  appearance: none;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-input::placeholder {
  color: rgba(218, 221, 229, 0.7);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-send {
  min-width: 102px;
  min-height: 47px;
  color: #fff;
  background: linear-gradient(105deg, #8e5be8, #a86df5);
  border-color: rgba(219, 195, 255, 0.36);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(81, 45, 153, 0.28), inset 0 1px rgba(255, 255, 255, 0.22);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-send:hover {
  background: linear-gradient(105deg, #9a66ee, #b17bfa);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-footer > span {
  color: rgba(209, 213, 222, 0.65);
  font-size: 10px;
}

.chat-search-view {
  grid-template-rows: auto minmax(0, 1fr);
}

.chat-search-header {
  display: flex;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-search-header .eyebrow {
  color: #c3a2ff;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.chat-search-header h2 {
  margin: 3px 0 2px;
  color: #f7f7fa;
  font-size: 22px;
}

.chat-search-header p {
  margin: 0;
  color: rgba(218, 221, 229, 0.72);
  font-size: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-search-header .button--secondary {
  color: #f5f5f8;
  background: #111722;
  border-color: rgba(255, 255, 255, 0.15);
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-search-header .button--secondary:hover:not([disabled]) {
  color: #fff;
  background: #1b2432;
  border-color: rgba(199, 168, 255, 0.42);
}

.chat-search-scroll {
  min-height: 0;
  padding: 20px 24px 28px;
  overflow-y: auto;
}

.chat-search-group + .chat-search-group {
  margin-top: 25px;
}

.chat-search-group h3 {
  margin: 0 0 10px;
  color: #c3a2ff;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chat-search-room-results,
.chat-search-message-results {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chat-search-room-results > a,
.chat-search-message-results a {
  display: grid;
  min-width: 0;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: #f6f6f9;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
}

.chat-search-room-results > a:hover,
.chat-search-message-results a:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(184, 143, 255, 0.38);
}

.chat-search-room-results .chat-room-avatar,
.chat-search-message-results .chat-message-avatar {
  width: 42px;
  height: 42px;
}

.chat-search-room-results a > span:nth-child(2),
.chat-search-message-results a > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.chat-search-room-results small,
.chat-search-message-results small,
.chat-search-message-results p,
.chat-search-message-results time {
  color: rgba(215, 219, 228, 0.7);
  font-size: 10px;
}

.chat-search-message-results p {
  margin: 4px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-search-message-results time {
  justify-self: start;
}

.chat-search-room-results .ui-icon,
.chat-search-message-results .ui-icon {
  width: 17px;
  height: 17px;
  color: rgba(215, 219, 228, 0.7);
}

.chat-search-empty {
  display: grid;
  min-height: 380px;
  place-content: center;
  justify-items: center;
  color: rgba(216, 220, 229, 0.7);
  text-align: center;
}

.chat-search-empty .ui-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  color: #c3a2ff;
}

.chat-search-empty strong {
  color: #f5f5f8;
}

.chat-search-empty p {
  margin: 5px 0 0;
  font-size: 11px;
}

.app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] :is(
  .chat-tool-button,
  .chat-room-menu-popover button,
  .chat-pins-disclosure > summary,
  .chat-room-item,
  .chat-search-room-results > a,
  .chat-search-message-results a
):focus-visible {
  outline: 2px solid #c7a8ff;
  outline-offset: 2px;
}

@media (max-width: 1240px) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .page {
    width: min(calc(100% - 40px), 1120px);
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-workspace {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .page {
    width: 100%;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-workspace {
    height: clamp(610px, calc(100dvh - 220px), 760px);
    grid-template-columns: 238px minmax(0, 1fr);
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item {
    grid-template-columns: 41px minmax(0, 1fr);
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item > time {
    display: none;
  }
}

@media (max-width: 767px) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .page {
    padding-top: 17px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .team-chat-page {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .sales-chat-heading {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 15px;
  }

  .sales-chat-heading h1 {
    font-size: 31px;
  }

  .sales-chat-heading p {
    font-size: 12px;
  }

  .sales-chat-heading-actions {
    display: grid;
    width: 100%;
    padding-top: 0;
  }

  .sales-chat-heading-actions .button {
    width: 100%;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-workspace {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 15px 15px 0 0;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-heading {
    min-height: 51px;
    padding: 13px 14px 6px;
  }

  .chat-room-search {
    min-height: 41px;
    margin: 0 12px 8px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-list {
    display: flex;
    gap: 8px;
    padding: 3px 11px 12px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-item {
    min-width: min(224px, 76vw);
    min-height: 68px;
    grid-template-columns: 41px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-conversation {
    min-height: min(650px, calc(100dvh - 175px));
    border-radius: 0 0 15px 15px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-conversation-header {
    min-height: 70px;
    padding: 10px 11px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity {
    gap: 9px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity > .chat-room-avatar {
    width: 40px;
    height: 40px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-identity h2 {
    font-size: 15px;
  }

  .chat-room-meta {
    gap: 4px;
  }

  .chat-member-stack {
    display: none;
  }

  .chat-conversation-tools {
    gap: 2px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-live-indicator {
    margin-right: 0;
    font-size: 0;
  }

  .chat-tool-button {
    width: 42px;
    height: 42px;
  }

  .chat-room-menu-popover {
    right: 0;
    width: min(205px, 72vw);
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins {
    padding: 8px 11px;
  }

  .chat-pins-disclosure > summary {
    grid-template-columns: auto minmax(0, 1fr) 24px;
    gap: 7px;
  }

  .chat-pin-summary {
    font-size: 10px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-scroll {
    min-height: 45vh;
    max-height: 58vh;
    padding: 12px 10px 16px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message {
    gap: 7px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-avatar {
    width: 34px;
    height: 34px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble {
    max-width: calc(100% - 42px);
    padding: 12px 13px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer {
    position: static;
    z-index: 2;
    bottom: auto;
    padding: 9px 9px 11px;
    border-radius: 0 0 15px 15px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-control {
    min-height: 57px;
    gap: 6px;
    padding: 6px 6px 6px 11px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-send {
    min-width: 84px;
    min-height: 45px;
    padding-inline: 12px;
  }

  .chat-search-view {
    min-height: 600px;
  }

  .chat-search-header {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    padding: 16px 14px;
  }

  .chat-search-header .button {
    width: 100%;
  }

  .chat-search-scroll {
    padding: 15px 12px 22px;
  }
}

@media (max-width: 440px) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble > header > div {
    flex-wrap: wrap;
    gap: 5px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-send span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer-send {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .chat-pin-summary strong {
    display: none;
  }
}

@media (pointer: coarse) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-search,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-pins-disclosure > summary,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-room-menu-popover button {
    min-height: 44px;
  }

  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-tool-button {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-workspace,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-rooms-panel,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-conversation,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-message-bubble,
  .app-shell:is([data-shell-key^="sales:"], [data-shell-key^="admin:"])[data-rendered-nav="chat"] .chat-composer {
    background: #1d2634;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .sales-chat-heading,
  .chat-room-search,
  .chat-tool-button,
  .chat-room-menu-popover,
  .chat-date-divider,
  .chat-search-header,
  .chat-search-room-results > a,
  .chat-search-message-results a {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .chat-date-divider::before,
  .chat-date-divider::after {
    background: CanvasText;
  }
}

/* Sales · Earnings glass workspace */
.app-shell[data-shell-key^="sales:"][data-rendered-nav="earnings"] .page {
  padding-top: 22px;
}

.sales-earnings-page {
  display: block;
  color: var(--today-ink);
}

.sales-earnings-heading {
  display: flex;
  min-height: 66px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: #252932;
}

.sales-earnings-heading > div {
  min-width: 0;
}

.sales-earnings-heading h1 {
  margin: 0 0 4px;
  color: #252932;
  font-size: 35px;
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.sales-earnings-heading p {
  margin: 0;
  color: #252932;
  font-size: 15px;
  line-height: 1.4;
}

.earnings-policy-button {
  display: inline-flex;
  min-height: 45px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 17px;
  color: #fff;
  cursor: pointer;
  background: rgba(27, 35, 47, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 9px;
  box-shadow:
    0 12px 28px rgba(16, 23, 34, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 650;
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
}

.earnings-policy-button:hover {
  background: rgba(34, 43, 57, 0.69);
  border-color: rgba(255, 255, 255, 0.34);
}

.earnings-policy-button .ui-icon {
  width: 17px;
  height: 17px;
}

.earnings-summary-strip {
  display: grid;
  height: 117px;
  min-height: 117px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 64% 120% at 0% 0%, rgba(133, 112, 182, 0.16), transparent 72%),
    linear-gradient(145deg, rgba(37, 43, 55, 0.88), rgba(18, 27, 40, 0.91));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(118%);
  backdrop-filter: blur(29px) saturate(118%);
}

.earnings-summary-metric {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 30px;
}

.earnings-summary-metric + .earnings-summary-metric::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.2);
  box-shadow: -1px 0 rgba(0, 0, 0, 0.15);
}

.earnings-summary-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.earnings-summary-icon .ui-icon {
  width: 29px;
  height: 29px;
  stroke-width: 1.55;
}

.earnings-summary-metric > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.earnings-summary-metric small,
.earnings-summary-metric em {
  display: block;
  overflow: hidden;
  color: #e9eaf0;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-summary-metric strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  font-weight: 610;
  letter-spacing: -0.035em;
  line-height: 1.14;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-summary-metric em {
  color: #b9bdc7;
}

.earnings-summary-metric--estimated .earnings-summary-icon {
  color: #bd90ff;
  background: rgba(152, 94, 239, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 23px rgba(155, 102, 239, 0.12);
}

.earnings-summary-metric--earned .earnings-summary-icon {
  color: #65adff;
  background: rgba(75, 150, 237, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 23px rgba(75, 150, 237, 0.1);
}

.earnings-summary-metric--payable .earnings-summary-icon {
  color: #ffa827;
  background: rgba(236, 143, 22, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 23px rgba(236, 143, 22, 0.1);
}

.earnings-summary-metric--paid .earnings-summary-icon {
  color: #50d68d;
  background: rgba(58, 197, 119, 0.11);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 23px rgba(58, 197, 119, 0.1);
}

.earnings-tabs {
  display: grid;
  width: min(568px, 100%);
  height: 45px;
  min-height: 45px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(38, 45, 58, 0.86), rgba(19, 29, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(118%);
  backdrop-filter: blur(27px) saturate(118%);
}

.earnings-tabs a {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #c5c8d0;
  font-size: 13px;
  font-weight: 540;
}

.earnings-tabs a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.earnings-tabs a[aria-current="page"] {
  color: #c49cff;
  background: linear-gradient(180deg, rgba(155, 104, 247, 0.09), rgba(155, 104, 247, 0.015));
  font-weight: 680;
  text-shadow: 0 0 12px rgba(181, 130, 255, 0.38);
}

.earnings-tabs a[aria-current="page"]::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #8b55ed, #c08cff);
  box-shadow: 0 0 11px rgba(174, 117, 255, 0.7);
}

.earnings-tabs a strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  color: #ececf1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 620;
}

.earnings-overview-primary,
.earnings-overview-secondary {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.earnings-overview-primary {
  min-height: 352px;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  margin-top: 16px;
}

.earnings-overview-secondary {
  min-height: 262px;
  grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr);
  margin-top: 16px;
}

.earnings-dark-card {
  min-width: 0;
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 80% 92% at 0% 0%, rgba(119, 90, 175, 0.08), transparent 72%),
    linear-gradient(145deg, rgba(38, 45, 58, 0.9), rgba(18, 28, 41, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(118%);
  backdrop-filter: blur(29px) saturate(118%);
}

.earnings-eyebrow {
  display: inline-block;
  margin: 0;
  color: #c69bff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.48);
  text-transform: uppercase;
}

.earnings-progress-card {
  display: flex;
  min-height: 352px;
  flex-direction: column;
  padding: 20px 24px 17px;
}

.earnings-progress-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 15px 0 6px;
  color: #fff;
}

.earnings-progress-total strong {
  font-size: 39px;
  font-variant-numeric: tabular-nums;
  font-weight: 570;
  letter-spacing: -0.045em;
  line-height: 1;
}

.earnings-progress-total span {
  color: #e2e3e9;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.earnings-progress {
  width: 100%;
  height: 11px;
  margin: 0;
  overflow: hidden;
  color: #a76eff;
  appearance: none;
  background: rgba(95, 67, 134, 0.28);
  border: 1px solid rgba(190, 151, 255, 0.33);
  border-radius: 999px;
}

.earnings-progress::-webkit-progress-bar {
  background: rgba(95, 67, 134, 0.28);
  border-radius: 999px;
}

.earnings-progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8b54ed, #b17cff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(171, 112, 255, 0.48);
}

.earnings-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #8b54ed, #b17cff);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(171, 112, 255, 0.48);
}

.earnings-progress-card > p:not(.earnings-progress-total) {
  margin: 12px 0 14px;
  color: #bec1ca;
  font-size: 12px;
  line-height: 1.4;
}

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

.earnings-rate-grid > div {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 4px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.earnings-rate-grid span {
  color: #d3d5dc;
  font-size: 11px;
}

.earnings-rate-grid strong {
  color: #f5f5f8;
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  font-weight: 590;
  line-height: 1;
}

.earnings-rate-grid > div:last-child strong {
  color: #56d895;
}

.earnings-progress-card .earnings-rate-rule {
  margin: 11px 0 0;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.earnings-progress-card footer,
.earnings-schedule-card footer {
  display: flex;
  min-height: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #c7cad2;
  font-size: 11px;
}

.earnings-progress-card footer > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.earnings-progress-card footer > span > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-progress-card footer .ui-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #b689ff;
}

.earnings-progress-card footer button,
.earnings-schedule-card footer button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #f4f4f7;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 650;
}

.earnings-progress-card footer button:hover,
.earnings-schedule-card footer button:hover {
  color: #cdaaff;
}

.earnings-progress-card footer button .ui-icon,
.earnings-schedule-card footer button .ui-icon {
  width: 14px;
  height: 14px;
}

.earnings-schedule-card {
  display: flex;
  min-height: 352px;
  flex-direction: column;
  padding: 20px 20px 17px;
}

.earnings-schedule-steps {
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.earnings-schedule-step {
  display: grid;
  min-height: 60px;
  grid-template-columns: 53px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 6px 14px;
}

.earnings-schedule-step + .earnings-schedule-step {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.earnings-schedule-icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 11px;
}

.earnings-schedule-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.earnings-schedule-icon--cutoff {
  color: #b77dff;
  background: rgba(153, 91, 237, 0.12);
}

.earnings-schedule-icon--processing {
  color: #59aaff;
  background: rgba(69, 144, 234, 0.11);
}

.earnings-schedule-icon--arrival {
  color: #51d490;
  background: rgba(56, 192, 116, 0.11);
}

.earnings-schedule-step > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.earnings-schedule-step small {
  color: #bfc3cc;
  font-size: 11px;
}

.earnings-schedule-step strong {
  overflow: hidden;
  color: #f4f5f8;
  font-size: 13px;
  font-weight: 570;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-schedule-notes {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.earnings-schedule-notes p {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  margin: 0;
  color: #b9bdc7;
  font-size: 10.5px;
  line-height: 1.35;
}

.earnings-schedule-notes .ui-icon {
  width: 15px;
  height: 15px;
  color: #ff9b22;
}

.earnings-schedule-notes p:last-child .ui-icon {
  color: #ffc400;
}

.earnings-schedule-card footer {
  min-height: 29px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.earnings-schedule-card footer small {
  overflow: hidden;
  color: #abb0bb;
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-ledger-preview,
.earnings-payout-preview {
  min-height: 262px;
  padding: 16px 19px 17px;
}

.earnings-overview-secondary .earnings-section-heading > a {
  display: none;
}

.earnings-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.earnings-section-heading > div {
  min-width: 0;
}

.earnings-section-heading > div > strong {
  display: inline-grid;
  min-height: 23px;
  margin-left: 8px;
  padding: 0 8px;
  place-items: center;
  color: #ececf2;
  background: rgba(255, 255, 255, 0.085);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  vertical-align: middle;
}

.earnings-section-heading p {
  margin: 4px 0 0;
  color: #b5bac5;
  font-size: 10.5px;
  line-height: 1.4;
}

.earnings-section-heading > a {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: #eeedf3;
  font-size: 10.5px;
  font-weight: 630;
}

.earnings-section-heading > a:hover {
  color: #cba7ff;
}

.earnings-section-heading > a .ui-icon {
  width: 14px;
  height: 14px;
}

.earnings-ledger-preview-list {
  margin-top: 10px;
}

.earnings-ledger-row {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

.earnings-ledger-row > header {
  display: flex;
  min-height: 81px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 15px;
}

.earnings-ledger-row > header > div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.earnings-ledger-row > header small {
  overflow: hidden;
  color: #b8bdc7;
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-ledger-row > header strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 620;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-ledger-row > header span {
  overflow: hidden;
  color: #c5c8d0;
  font-size: 10.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-ledger-row > header > div:last-child {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.earnings-ledger-row > header button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  color: #fff;
  cursor: pointer;
  background: rgba(22, 29, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 620;
}

.earnings-ledger-row > header button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(203, 169, 255, 0.42);
}

.earnings-ledger-row > header button .ui-icon {
  width: 13px;
  height: 13px;
}

.earnings-ledger-row dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.earnings-ledger-row dl > div {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 14px;
}

.earnings-ledger-row dl > div + div::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.13);
}

.earnings-ledger-row dt {
  color: #b7bbc4;
  font-size: 9px;
}

.earnings-ledger-row dd {
  overflow: hidden;
  margin: 0;
  color: #f7f7f9;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.earnings-ledger-row > p {
  margin: 9px 14px 11px;
  color: #b5bac4;
  font-size: 9.5px;
  line-height: 1.35;
}

.sales-earnings-page .status-badge {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.sales-earnings-page .status--neutral {
  color: #e3e5eb;
  background: rgba(255, 255, 255, 0.08);
}

.sales-earnings-page .status--info {
  color: #a8cfff;
  background: rgba(68, 132, 207, 0.15);
}

.sales-earnings-page .status--success {
  color: #78e3aa;
  background: rgba(52, 164, 105, 0.17);
}

.sales-earnings-page .status--warning {
  color: #ffca77;
  background: rgba(203, 130, 26, 0.17);
}

.sales-earnings-page .status--danger {
  color: #ff9ca7;
  background: rgba(205, 65, 80, 0.17);
}

.earnings-payout-preview-list,
.earnings-payout-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 11px 0 0;
  list-style: none;
}

.earnings-payout-preview-list .compact-item,
.earnings-payout-list .compact-item {
  min-height: 72px;
  padding: 10px 13px;
  color: #eef0f4;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
}

.earnings-payout-preview-list .item-title,
.earnings-payout-list .item-title {
  color: #fff;
  font-size: 11px;
}

.earnings-payout-preview-list .item-meta,
.earnings-payout-list .item-meta {
  color: #b5bac4;
  font-size: 9.5px;
}

.earnings-payout-preview-list .item-meta span:nth-child(n + 4) {
  display: none;
}

.earnings-empty {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  padding: 20px;
  color: #c4c7cf;
  text-align: center;
}

.earnings-empty > span {
  display: grid;
  width: 80px;
  height: 80px;
  margin-bottom: 4px;
  place-items: center;
  color: #b582ff;
  background: rgba(142, 86, 229, 0.08);
  border: 1px solid rgba(182, 130, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 27px rgba(155, 100, 238, 0.08);
}

.earnings-empty > span .ui-icon {
  width: 32px;
  height: 32px;
}

.earnings-empty strong {
  color: #fff;
  font-size: 13px;
  font-weight: 620;
}

.earnings-empty p {
  max-width: 360px;
  margin: 0;
  color: #b5b9c3;
  font-size: 10.5px;
  line-height: 1.45;
}

.earnings-payout-preview .earnings-empty {
  min-height: 188px;
}

.earnings-full-panel {
  min-height: 420px;
  margin-top: 16px;
  padding: 19px;
}

.earnings-full-ledger {
  padding: 0;
  overflow: hidden;
}

.earnings-full-ledger .seller-ledger-disclosure > summary {
  min-height: 78px;
  padding: 17px 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.025);
}

.earnings-full-ledger .seller-ledger-disclosure[open] > summary {
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.earnings-full-ledger .sales-disclosure-heading strong {
  color: #fff;
}

.earnings-full-ledger .sales-disclosure-heading small {
  color: #b9bdc7;
}

.earnings-full-ledger .sales-disclosure-content {
  padding: 16px 18px 18px;
}

.earnings-full-panel .billing-list {
  display: grid;
  gap: 11px;
}

.earnings-full-panel .billing-row {
  color: #edf0f4;
  background: rgba(255, 255, 255, 0.027);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

.earnings-full-panel .billing-row-heading h3,
.earnings-full-panel .billing-fact strong,
.earnings-full-panel .item-title {
  color: #fff;
}

.earnings-full-panel .billing-kicker,
.earnings-full-panel .billing-row-heading p,
.earnings-full-panel .billing-fact span,
.earnings-full-panel .billing-fact small,
.earnings-full-panel .billing-action-note,
.earnings-full-panel .item-meta {
  color: #b9bdc7;
}

.earnings-full-panel .billing-fact {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.1);
}

.earnings-full-panel .billing-row-actions {
  border-color: rgba(255, 255, 255, 0.1);
}

.earnings-payout-view {
  display: grid;
  gap: 16px;
}

.earnings-payout-view .earnings-full-panel {
  margin-bottom: 0;
}

.earnings-policy-inline .weekly-payout-schedule {
  margin: 0;
  color: #d9dce3;
  background:
    radial-gradient(ellipse 70% 130% at 0% 0%, rgba(131, 92, 202, 0.13), transparent 74%),
    linear-gradient(145deg, rgba(36, 43, 56, 0.9), rgba(18, 27, 40, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--today-shadow);
}

.earnings-policy-inline .weekly-payout-schedule strong {
  color: #c69bff;
}

.earnings-policy-inline .weekly-payout-schedule p,
.earnings-policy-inline .weekly-payout-schedule small {
  color: #bbc0c9;
}

.earnings-dialog {
  display: grid;
  gap: 12px;
}

.earnings-dialog-step {
  display: grid;
  min-height: 72px;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.earnings-dialog-step > .ui-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.earnings-dialog-step > div {
  display: grid;
  gap: 3px;
}

.earnings-dialog-step span,
.earnings-ledger-dialog-heading span {
  color: var(--text-muted);
  font-size: 12px;
}

.earnings-dialog-step strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.earnings-dialog-note {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 11px 13px;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.earnings-dialog-note .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.earnings-dialog-note--warning .ui-icon {
  color: var(--warning);
}

.earnings-dialog-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.earnings-dialog-trace {
  color: var(--text-muted);
  font-size: 11px;
}

.earnings-rate-dialog-grid {
  display: grid;
  gap: 10px;
}

.earnings-rate-dialog-grid article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  padding: 14px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.earnings-rate-dialog-grid article > span {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}

.earnings-rate-dialog-grid article > strong {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent);
  font-size: 26px;
  font-weight: 650;
}

.earnings-rate-dialog-grid article > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.earnings-ledger-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.earnings-ledger-dialog-heading > div {
  display: grid;
  gap: 3px;
}

.earnings-ledger-dialog-heading strong {
  color: var(--text);
  font-size: 13px;
}

.earnings-ledger-dialog dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.earnings-ledger-dialog dl > div {
  min-width: 0;
  padding: 12px 14px;
}

.earnings-ledger-dialog dl > div:nth-child(even) {
  border-left: 1px solid var(--border);
}

.earnings-ledger-dialog dl > div:nth-child(n + 3) {
  border-top: 1px solid var(--border);
}

.earnings-ledger-dialog dt {
  color: var(--text-muted);
  font-size: 11px;
}

.earnings-ledger-dialog dd {
  overflow: hidden;
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-earnings-page :is(
  a,
  button,
  summary
):focus-visible {
  outline: 2px solid #c69bff;
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .earnings-summary-metric {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .earnings-summary-icon {
    width: 46px;
    height: 46px;
  }

  .earnings-summary-icon .ui-icon {
    width: 25px;
    height: 25px;
  }

  .earnings-summary-metric strong {
    font-size: 25px;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="earnings"] .page {
    width: min(100% - 32px, 760px);
    padding-top: 18px;
  }

  .earnings-summary-strip {
    height: auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .earnings-tabs {
    width: 100%;
  }

  .earnings-summary-metric {
    min-height: 91px;
  }

  .earnings-summary-metric:nth-child(3)::before {
    display: none;
  }

  .earnings-summary-metric:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  .earnings-overview-primary,
  .earnings-overview-secondary {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-progress-card,
  .earnings-schedule-card {
    min-height: 340px;
  }
}

@media (max-width: 700px) {
  .sales-earnings-heading {
    min-height: 0;
    flex-direction: column;
    gap: 14px;
  }

  .sales-earnings-heading h1 {
    font-size: 31px;
  }

  .sales-earnings-heading p {
    font-size: 13px;
  }

  .earnings-policy-button {
    width: 100%;
  }

  .earnings-summary-strip {
    margin-top: 17px;
  }

  .earnings-summary-metric {
    min-height: 86px;
    padding: 12px 15px;
  }

  .earnings-summary-metric small,
  .earnings-summary-metric em {
    font-size: 10px;
  }

  .earnings-summary-metric strong {
    font-size: 23px;
  }

  .earnings-tabs {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    scrollbar-width: thin;
  }

  .earnings-progress-card,
  .earnings-schedule-card,
  .earnings-ledger-preview,
  .earnings-payout-preview,
  .earnings-full-panel {
    padding-right: 15px;
    padding-left: 15px;
  }

  .earnings-progress-card footer,
  .earnings-schedule-card footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
  }

  .earnings-ledger-row > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .earnings-ledger-row > header > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .earnings-ledger-row dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .earnings-ledger-row dl > div:nth-child(3)::before {
    display: none;
  }

  .earnings-ledger-row dl > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .earnings-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .earnings-empty {
    min-height: 150px;
  }
}

@media (max-width: 520px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="earnings"] .page {
    width: calc(100% - 22px);
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .earnings-summary-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-summary-metric {
    min-height: 81px;
  }

  .earnings-summary-metric + .earnings-summary-metric::before {
    top: 0;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    height: 1px;
  }

  .earnings-summary-metric:nth-child(3)::before {
    display: block;
  }

  .earnings-summary-metric:nth-child(n + 3) {
    border-top: 0;
  }

  .earnings-tabs {
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .earnings-tabs a {
    min-width: 0;
    gap: 4px;
    padding: 0 4px;
    font-size: 10.5px;
    line-height: 1.15;
    text-align: center;
  }

  .earnings-tabs a strong {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
  }

  .earnings-progress-total strong {
    font-size: 34px;
  }

  .earnings-progress-total span {
    font-size: 19px;
  }

  .earnings-rate-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-progress-card,
  .earnings-schedule-card {
    min-height: 0;
  }

  .earnings-schedule-step {
    min-height: 67px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .earnings-schedule-step strong {
    white-space: normal;
  }

  .earnings-ledger-row > header > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }

  .earnings-ledger-row > header button {
    justify-content: center;
  }

  .earnings-ledger-row dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-ledger-row dl > div + div::before {
    top: 0;
    right: 12px;
    bottom: auto;
    left: 12px;
    width: auto;
    height: 1px;
  }

  .earnings-ledger-row dl > div:nth-child(3)::before {
    display: block;
  }

  .earnings-ledger-row dl > div:nth-child(n + 3) {
    border-top: 0;
  }

  .earnings-payout-preview-list .compact-item,
  .earnings-payout-list .compact-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .earnings-ledger-dialog dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .earnings-ledger-dialog dl > div:nth-child(even) {
    border-left: 0;
  }

  .earnings-ledger-dialog dl > div + div {
    border-top: 1px solid var(--border);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .earnings-summary-strip,
  .earnings-tabs,
  .earnings-dark-card,
  .earnings-policy-button,
  .earnings-policy-inline .weekly-payout-schedule {
    background: #1c2634;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .sales-earnings-heading,
  .earnings-policy-button,
  .earnings-summary-strip,
  .earnings-tabs,
  .earnings-dark-card,
  .earnings-summary-icon,
  .earnings-schedule-icon,
  .earnings-ledger-row,
  .earnings-progress {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .earnings-tabs a[aria-current="page"] {
    color: LinkText;
    forced-color-adjust: auto;
  }
}

/* Sales · Account setup glass workspace */
.app-shell[data-shell-key^="sales:"][data-rendered-nav="onboarding"] .page {
  width: min(1212px, calc(100% - 64px));
  padding-top: 20px;
  padding-bottom: 32px;
}

.sales-account-page {
  display: block;
  color: var(--today-ink);
}

.sales-account-heading {
  display: flex;
  min-height: 70px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: #252932;
}

.sales-account-heading h1 {
  margin: 0 0 4px;
  color: #20242d;
  font-size: 35px;
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.sales-account-heading p {
  margin: 0;
  color: #343944;
  font-size: 15px;
  line-height: 1.4;
}

.sales-account-page .onboarding-hero {
  display: grid;
  min-height: 201px;
  grid-template-columns: minmax(0, 1fr) 190px 260px;
  align-items: center;
  gap: 28px;
  padding: 26px 30px;
  margin: 0 0 12px;
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 48% 118% at 0% 18%, rgba(132, 92, 196, 0.2), transparent 73%),
    radial-gradient(ellipse 42% 100% at 72% 0%, rgba(111, 77, 169, 0.12), transparent 76%),
    linear-gradient(145deg, rgba(36, 42, 55, 0.91), rgba(17, 26, 39, 0.93));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(118%);
  backdrop-filter: blur(29px) saturate(118%);
}

.sales-account-page .onboarding-hero-copy {
  max-width: 650px;
}

.sales-account-page .onboarding-hero-copy .eyebrow,
.sales-account-page .account-section-label h2,
.sales-account-page .account-card-heading h2 {
  margin: 0;
  color: #c89dff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.48);
  text-transform: uppercase;
}

.sales-account-page .onboarding-hero-copy h2 {
  margin: 14px 0 6px;
  color: #fff;
  font-size: 30px;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.sales-account-page .onboarding-hero-copy > p {
  max-width: 610px;
  margin: 0 0 17px;
  color: #d1d3da;
  font-size: 14px;
  line-height: 1.45;
}

.sales-account-page .onboarding-hero-copy .status-row {
  margin: 0;
}

.sales-account-page .onboarding-progress-summary {
  position: relative;
  display: grid;
  width: 150px;
  height: 150px;
  min-width: 150px;
  padding: 0;
  place-content: center;
  justify-self: center;
  color: #fff;
  background: conic-gradient(#a56bff var(--account-ring-angle, 0deg), rgba(164, 111, 241, 0.18) 0);
  border: 1px solid rgba(196, 158, 255, 0.3);
  border-radius: 50%;
  box-shadow:
    0 0 28px rgba(146, 92, 235, 0.18),
    inset 0 0 25px rgba(196, 154, 255, 0.08);
}

.sales-account-page .onboarding-progress-summary::before {
  position: absolute;
  inset: 9px;
  content: "";
  background:
    radial-gradient(circle at 34% 24%, rgba(110, 83, 158, 0.18), transparent 58%),
    #1c2533;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.sales-account-page .onboarding-progress-summary--1 {
  --account-ring-angle: 90deg;
}

.sales-account-page .onboarding-progress-summary--2 {
  --account-ring-angle: 180deg;
}

.sales-account-page .onboarding-progress-summary--3 {
  --account-ring-angle: 270deg;
}

.sales-account-page .onboarding-progress-summary--4 {
  --account-ring-angle: 360deg;
}

.sales-account-page .onboarding-progress-summary strong,
.sales-account-page .onboarding-progress-summary small {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sales-account-page .onboarding-progress-summary strong {
  font-size: 29px;
  font-variant-numeric: tabular-nums;
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.sales-account-page .onboarding-progress-summary strong span {
  margin-left: 4px;
  color: #d7d9df;
  font-size: 15px;
  font-weight: 520;
}

.sales-account-page .onboarding-progress-summary small {
  margin-top: 9px;
  color: #e1e2e7;
  font-size: 11px;
}

.sales-account-page .onboarding-progress-track {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.sales-account-page .onboarding-hero-action {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
}

.sales-account-page .onboarding-hero-action .button {
  width: 100%;
  min-height: 50px;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #a464f0, #7846d2);
  border: 1px solid rgba(223, 197, 255, 0.4);
  border-radius: 8px;
  box-shadow:
    0 12px 28px rgba(105, 63, 184, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.24);
  font-size: 14px;
}

.sales-account-page .onboarding-hero-action .button--secondary {
  color: #f2f2f6;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.18);
}

.sales-account-page .onboarding-progress-panel {
  min-height: 126px;
  padding: 13px 22px 15px;
  margin: 0 0 12px;
  color: #232832;
  background:
    radial-gradient(ellipse 50% 130% at 0% 20%, rgba(255, 255, 255, 0.38), transparent 70%),
    linear-gradient(145deg, rgba(237, 239, 243, 0.79), rgba(201, 207, 216, 0.71));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow:
    0 19px 44px rgba(18, 26, 39, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(25px) saturate(105%);
  backdrop-filter: blur(25px) saturate(105%);
}

.sales-account-page .account-section-label {
  display: flex;
  min-height: 23px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 5px;
}

.sales-account-page .account-section-label h2 {
  color: #6745c7;
  text-shadow: none;
}

.sales-account-page .account-section-label p {
  margin: 0;
  color: #555d69;
  font-size: 10px;
}

.sales-account-page .onboarding-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.sales-account-page .onboarding-step {
  position: relative;
  display: grid;
  min-height: 73px;
  min-width: 0;
  grid-template-columns: 43px minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 13px;
  padding: 7px 20px;
  color: #252a33;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sales-account-page .onboarding-step + .onboarding-step::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 1px;
  content: "";
  background: rgba(44, 50, 61, 0.19);
}

.sales-account-page .onboarding-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #747c89;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(67, 75, 89, 0.3);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5);
}

.sales-account-page .onboarding-step-number .ui-icon {
  width: 23px;
  height: 23px;
}

.sales-account-page .onboarding-step.is-complete .onboarding-step-number {
  color: #087d55;
  background: rgba(210, 241, 228, 0.42);
  border-color: rgba(3, 126, 84, 0.58);
}

.sales-account-page .onboarding-step.is-current .onboarding-step-number {
  color: #7c4fd4;
  background: rgba(228, 216, 249, 0.5);
  border-color: rgba(111, 68, 190, 0.45);
}

.sales-account-page .onboarding-step strong {
  display: block;
  overflow: hidden;
  margin: 0;
  color: #20252d;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-account-page .onboarding-step p {
  overflow: hidden;
  margin: 3px 0 3px;
  color: #555d69;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-account-page .onboarding-step .status-badge {
  display: inline-flex;
  min-height: 17px;
  grid-column: auto;
  justify-self: start;
  padding: 0;
  color: #177451;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 10px;
}

.sales-account-page .onboarding-step .status-badge::before {
  width: 7px;
  height: 7px;
}

.sales-account-page .onboarding-step.is-current .status-badge {
  color: #7142c5;
}

.sales-account-page .account-dashboard-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.205fr) minmax(0, 1fr);
  gap: 13px;
}

.sales-account-page .account-dashboard-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.sales-account-page .account-dashboard-grid--single .account-dashboard-side {
  max-width: none;
  grid-column: 1 / -1;
}

.sales-account-page .onboarding-records-panel,
.sales-account-page .account-security-card,
.sales-account-page .account-payment-plans-card,
.sales-account-page .account-privacy-strip {
  min-width: 0;
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 78% 95% at 0% 0%, rgba(115, 85, 171, 0.08), transparent 74%),
    linear-gradient(145deg, rgba(38, 45, 58, 0.9), rgba(18, 28, 41, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(118%);
  backdrop-filter: blur(29px) saturate(118%);
}

.sales-account-page .onboarding-records-panel {
  min-height: 410px;
  padding: 20px 22px;
}

.sales-account-page .account-card-heading {
  display: flex;
  min-height: 35px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.sales-account-page .account-card-heading p {
  margin: 5px 0 0;
  color: #d6d8df;
  font-size: 12px;
}

.sales-account-page .onboarding-record-list {
  display: grid;
  gap: 6px;
}

.sales-account-page .account-record {
  overflow: hidden;
  color: #eef0f4;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) {
  overflow: hidden;
  color: #eef0f4;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
}

.sales-account-page .account-record > summary {
  min-height: 54px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

.sales-account-page .account-record > summary::-webkit-details-marker {
  display: none;
}

.sales-account-page .account-record > summary:focus-visible {
  outline: 2px solid #c49cff;
  outline-offset: -3px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 8px 104px 8px 60px;
  overflow: hidden;
  color: #f4f4f7;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 640;
  line-height: 38px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary::-webkit-details-marker {
  display: none;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary::before {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 11px;
  display: grid;
  width: 39px;
  place-items: center;
  content: "✓";
  color: #eef0f4;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  font-size: 15px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary::after {
  position: absolute;
  right: 13px;
  content: "●  Verified  ⌄";
  color: #61d39a;
  font-size: 10px;
  font-weight: 650;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record)[open] > summary::after {
  content: "●  Verified  ⌃";
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary:focus-visible {
  outline: 2px solid #c49cff;
  outline-offset: -3px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record)[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sales-account-page .account-record-summary {
  display: grid;
  min-width: 0;
  min-height: 54px;
  grid-template-columns: 44px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 12px;
  padding: 5px 11px;
}

.sales-account-page .account-record-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  color: #f0f0f4;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
}

.sales-account-page .account-record-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.sales-account-page .account-record-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sales-account-page .account-record-copy strong,
.sales-account-page .account-record-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-account-page .account-record-copy strong {
  color: #f4f4f7;
  font-size: 12px;
  font-weight: 640;
}

.sales-account-page .account-record-copy small {
  color: #c3c6cf;
  font-size: 11px;
}

.sales-account-page .account-record-status .status-badge {
  color: #61d39a;
  background: rgba(63, 168, 112, 0.12);
  border-color: rgba(82, 193, 135, 0.17);
}

.sales-account-page .account-record-chevron {
  display: grid;
  place-items: center;
  color: #d9dbe1;
  transition: transform var(--motion-fast) var(--ease-ui);
}

.sales-account-page .account-record-chevron .ui-icon {
  width: 17px;
  height: 17px;
}

.sales-account-page .account-record[open] .account-record-chevron {
  transform: rotate(180deg);
}

.sales-account-page .account-record[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.sales-account-page .account-record > .agreement-document {
  margin: 12px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > .agreement-document {
  margin: 12px;
}

.sales-account-page .account-record > .w9-record-content,
.sales-account-page .account-record > .payout-record-content,
.sales-account-page .account-record > .training-lessons {
  color: #20252d;
  background: rgba(243, 245, 248, 0.96);
}

.sales-account-page .account-record > .w9-record-content {
  padding: 12px;
}

.sales-account-page .account-record > .payout-record-content {
  margin: 12px;
  border-radius: 10px;
}

.sales-account-page .account-record > .training-lessons {
  margin: 12px;
  padding: 12px;
  border-radius: 10px;
}

.sales-account-page .account-record .signature-evidence,
.sales-account-page .account-record .legal-record-boundary,
.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) .signature-evidence,
.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) .legal-record-boundary {
  color: #c6cad3;
}

.sales-account-page .account-record .signature-evidence strong,
.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) .signature-evidence strong {
  color: #f2f3f6;
}

.sales-account-page .account-record .legal-record-boundary,
.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) .legal-record-boundary {
  margin-right: 14px;
  margin-left: 14px;
}

.sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > .form-actions {
  padding: 0 14px 14px;
}

.sales-account-page .account-record-empty {
  display: grid;
  min-height: 270px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: #c2c6cf;
  text-align: center;
}

.sales-account-page .account-record-empty > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #bd87ff;
  border: 1px solid rgba(188, 134, 255, 0.55);
  border-radius: 50%;
}

.sales-account-page .account-record-empty .ui-icon {
  width: 25px;
  height: 25px;
}

.sales-account-page .account-record-empty strong {
  color: #fff;
  font-size: 13px;
}

.sales-account-page .account-record-empty p {
  margin: 0;
  font-size: 11px;
}

.sales-account-page .account-record-empty a {
  color: #c9a5ff;
  font-size: 11px;
  font-weight: 650;
}

.sales-account-page .account-dashboard-side {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(252px, auto) minmax(145px, auto);
  gap: 12px;
}

.sales-account-page .account-security-card {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  padding: 21px 22px 16px;
}

.sales-account-page .account-security-list {
  display: grid;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sales-account-page .account-security-list li {
  display: grid;
  min-height: 69px;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.sales-account-page .account-security-list li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sales-account-page .account-security-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #f0f1f5;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sales-account-page .account-security-list .ui-icon {
  width: 25px;
  height: 25px;
}

.sales-account-page .account-security-list p {
  margin: 0;
  color: #d3d5dc;
  font-size: 12px;
  line-height: 1.45;
}

.sales-account-page .account-security-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-top: auto;
}

.sales-account-page .account-security-actions small {
  flex-basis: 100%;
  color: #b7bbc5;
  font-size: 10px;
  text-align: right;
}

.sales-account-page .account-security-actions .button,
.sales-account-page .account-payment-plans-body .button {
  min-height: 40px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.24);
}

.sales-account-page .account-security-actions .button .ui-icon,
.sales-account-page .account-payment-plans-body .button .ui-icon {
  width: 15px;
  height: 15px;
}

.sales-account-page .account-payment-plans-card {
  min-height: 145px;
  padding: 20px 22px;
}

.sales-account-page .account-payment-plans-card .account-card-heading {
  min-height: 25px;
  margin-bottom: 10px;
}

.sales-account-page .account-payment-plan-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.sales-account-page .account-payment-plans-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.sales-account-page .account-payment-plans-body p {
  margin: 0;
  color: #d0d3db;
  font-size: 12px;
  line-height: 1.45;
}

.sales-account-page .account-privacy-strip {
  display: grid;
  min-height: 60px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 22px;
  margin-top: 15px;
}

.sales-account-page .account-privacy-strip > span {
  color: #d8dbe2;
}

.sales-account-page .account-privacy-strip .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-account-page .account-privacy-strip p {
  margin: 0;
  color: #d0d3da;
  font-size: 12px;
  line-height: 1.4;
}

.sales-account-page .account-privacy-strip strong {
  color: #f4f4f7;
}

.sales-account-page.is-in-progress #account-current-step {
  margin-bottom: 12px;
}

.sales-account-page.is-in-progress .onboarding-task-panel {
  margin-bottom: 0;
  color: #20252d;
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(255, 255, 255, 0.42), transparent 74%),
    rgba(239, 241, 245, 0.91);
  border-color: rgba(255, 255, 255, 0.46);
  box-shadow: 0 20px 50px rgba(18, 27, 40, 0.16), inset 0 1px rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(25px) saturate(105%);
  backdrop-filter: blur(25px) saturate(105%);
}

.sales-account-page.is-in-progress .onboarding-task-panel .onboarding-task-head h2,
.sales-account-page.is-in-progress .onboarding-task-panel .section-heading h3 {
  color: #20252d;
}

.sales-account-page.is-in-progress .onboarding-task-panel .onboarding-task-head p {
  color: #4f5662;
}

.app-shell[data-shell-key="sales:onboarding"][data-rendered-nav="onboarding"] .mobile-nav {
  grid-template-columns: minmax(120px, 180px);
  justify-content: center;
}

@media (max-width: 1240px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="onboarding"] .page {
    width: min(calc(100% - 40px), 1120px);
  }

  .sales-account-page .onboarding-hero {
    grid-template-columns: minmax(0, 1fr) 170px 225px;
    gap: 22px;
  }

  .sales-account-page .onboarding-progress-summary {
    width: 140px;
    height: 140px;
    min-width: 140px;
  }

  .sales-account-page .account-dashboard-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  }

  .sales-account-page .onboarding-step {
    padding-right: 13px;
    padding-left: 13px;
  }
}

@media (max-width: 960px) {
  .sales-account-page .account-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-account-page .account-dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .sales-account-page .onboarding-hero {
    grid-template-columns: minmax(0, 1fr) 150px 210px;
    padding-right: 22px;
    padding-left: 22px;
  }

  .sales-account-page .onboarding-progress-summary {
    width: 132px;
    height: 132px;
    min-width: 132px;
  }
}

@media (max-width: 899px) {
  .sales-account-page .onboarding-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-account-page .onboarding-step:nth-child(3)::before {
    display: none;
  }

  .sales-account-page .onboarding-step:nth-child(n + 3) {
    border-top: 1px solid rgba(44, 50, 61, 0.16);
  }

  .sales-account-page .onboarding-progress-panel {
    min-height: 0;
  }

  .sales-account-page .onboarding-hero {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .sales-account-page .onboarding-hero-action {
    grid-column: 1 / -1;
  }

  .sales-account-page .onboarding-hero-action .button {
    width: min(100%, 280px);
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .sales-account-heading {
    min-height: 82px;
  }

  .sales-account-heading h1 {
    font-size: 30px;
  }

  .sales-account-heading p {
    max-width: 355px;
    font-size: 13px;
  }

  .sales-account-page .onboarding-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 24px 20px;
  }

  .sales-account-page .onboarding-hero-copy h2 {
    font-size: 26px;
  }

  .sales-account-page .onboarding-progress-summary {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }

  .sales-account-page .onboarding-hero-action {
    grid-column: auto;
  }

  .sales-account-page .onboarding-hero-action .button {
    width: 100%;
  }

  .sales-account-page .account-section-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .sales-account-page .onboarding-progress-panel {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-account-page .account-dashboard-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-account-page .account-record-summary {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 9px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .sales-account-page .account-record-status {
    display: none;
  }

  .sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary {
    padding-right: 38px;
    line-height: 1.35;
    white-space: normal;
  }

  .sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary::after {
    right: 12px;
    content: "⌄";
    color: #d9dbe1;
    font-size: 15px;
  }

  .sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record)[open] > summary::after {
    content: "⌃";
  }

  .sales-account-page .account-security-actions,
  .sales-account-page .account-security-actions .button,
  .sales-account-page .account-payment-plans-body .button {
    width: 100%;
  }

  .sales-account-page .account-payment-plans-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
  }

  .sales-account-page .account-payment-plans-body .button {
    justify-content: center;
  }

  .sales-account-page .account-privacy-strip {
    align-items: flex-start;
    padding: 15px 17px;
  }
}

@media (max-width: 520px) {
  .sales-account-page .onboarding-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-account-page .onboarding-step + .onboarding-step::before {
    top: 0;
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
    height: 1px;
  }

  .sales-account-page .onboarding-step:nth-child(3)::before {
    display: block;
  }

  .sales-account-page .onboarding-step:nth-child(n + 3) {
    border-top: 0;
  }

  .sales-account-page .onboarding-records-panel,
  .sales-account-page .account-security-card,
  .sales-account-page .account-payment-plans-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sales-account-page .account-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sales-account-page .account-payment-plan-status {
    justify-content: flex-start;
  }

  .sales-account-page .account-record-copy strong,
  .sales-account-page .account-record-copy small {
    white-space: normal;
  }

  .sales-account-page .account-security-list li {
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 10px;
  }

  .sales-account-page .account-security-list li > span {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .sales-account-page .onboarding-hero,
  .sales-account-page .onboarding-progress-panel,
  .sales-account-page .onboarding-records-panel,
  .sales-account-page .account-security-card,
  .sales-account-page .account-payment-plans-card,
  .sales-account-page .account-privacy-strip,
  .sales-account-page.is-in-progress .onboarding-task-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .sales-account-page .onboarding-hero,
  .sales-account-page .onboarding-records-panel,
  .sales-account-page .account-security-card,
  .sales-account-page .account-payment-plans-card,
  .sales-account-page .account-privacy-strip {
    background: #1c2634;
  }

  .sales-account-page .onboarding-progress-panel,
  .sales-account-page.is-in-progress .onboarding-task-panel {
    background: #edf0f4;
  }
}

@media (forced-colors: active) {
  .sales-account-heading,
  .sales-account-page .onboarding-hero,
  .sales-account-page .onboarding-progress-panel,
  .sales-account-page .onboarding-records-panel,
  .sales-account-page .account-security-card,
  .sales-account-page .account-payment-plans-card,
  .sales-account-page .account-privacy-strip,
  .sales-account-page .account-record,
  .sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record),
  .sales-account-page .onboarding-step-number,
  .sales-account-page.is-in-progress .onboarding-task-panel {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .sales-account-page .onboarding-progress-summary {
    color: CanvasText;
    background: Canvas;
    border: 5px solid Highlight;
    box-shadow: none;
  }

  .sales-account-page .onboarding-progress-summary::before {
    background: Canvas;
    border-color: CanvasText;
  }

  .sales-account-page .account-record > summary:focus-visible {
    outline-color: Highlight;
  }

  .sales-account-page .onboarding-record-list > .agreement-review-disclosure:not(.account-record) > summary:focus-visible {
    outline-color: Highlight;
  }
}

/* Sales workspace · Resources */
.sales-resources-view {
  color: var(--today-ink);
}

.sales-resources-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #292c35;
}

.sales-resources-heading h1 {
  margin: 0 0 4px;
  font-size: 40px;
  font-weight: 630;
  letter-spacing: -0.045em;
}

.sales-resources-heading p {
  max-width: 770px;
  margin: 0;
  color: #343943;
  font-size: 15px;
}

.sales-resources-heading .button {
  min-height: 46px;
  flex: 0 0 auto;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(115deg, #885fe4, #a978f3);
  border-color: rgba(225, 207, 255, 0.48);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(84, 49, 160, 0.22), inset 0 1px rgba(255, 255, 255, 0.25);
}

.sales-resources-heading .button .ui-icon {
  width: 19px;
  height: 19px;
}

.sales-resources-process,
.sales-resources-catalog,
.sales-resources-rules {
  color: var(--today-ink);
  background:
    radial-gradient(ellipse 72% 100% at 0% 0%, rgba(123, 91, 183, 0.12), transparent 72%),
    linear-gradient(145deg, rgba(43, 50, 63, 0.91), rgba(18, 28, 41, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  box-shadow: var(--today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.sales-resources-process {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.55fr);
  align-items: center;
  gap: 30px;
  padding: 24px;
  margin-top: 22px;
}

.sales-resources-kicker {
  display: block;
  color: #bd9cff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.45);
  text-transform: uppercase;
}

.sales-resources-process-copy h2,
.sales-resources-section-heading h2,
.sales-resources-rules-heading h2 {
  margin: 7px 0 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: -0.03em;
}

.sales-resources-process-copy p,
.sales-resources-section-heading p {
  margin: 0;
  color: var(--today-muted);
  font-size: 12px;
  line-height: 1.55;
}

.sales-resources-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sales-resources-steps li {
  display: grid;
  min-width: 0;
  min-height: 92px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 11px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.sales-resources-step-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #bd9cff;
  background: rgba(151, 108, 236, 0.11);
  border: 1px solid rgba(193, 157, 255, 0.18);
  border-radius: 11px;
}

.sales-resources-step-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.sales-resources-steps small,
.sales-resources-steps strong,
.sales-resources-steps p {
  display: block;
}

.sales-resources-steps small {
  color: #a88cf0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.sales-resources-steps strong {
  margin-top: 2px;
  color: #fff;
  font-size: 13px;
}

.sales-resources-steps p {
  margin: 3px 0 0;
  color: var(--today-muted);
  font-size: 10px;
  line-height: 1.4;
}

.sales-resources-catalog {
  padding: 23px;
  margin-top: 16px;
}

.sales-resources-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-resources-section-heading h2 {
  margin-bottom: 4px;
}

.sales-resources-heading-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.sales-resources-heading-actions .status-badge {
  min-height: 31px;
  color: #e7e8ed;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.sales-resources-heading-actions > a {
  color: #ceb7ff;
  font-size: 11px;
  font-weight: 650;
}

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

.sales-resource-card {
  display: flex;
  min-width: 0;
  min-height: 315px;
  flex-direction: column;
  padding: 17px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 65% at 0% 0%, rgba(156, 115, 237, 0.11), transparent 73%),
    linear-gradient(150deg, rgba(53, 61, 75, 0.73), rgba(21, 30, 43, 0.79));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.sales-resource-card > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sales-resource-card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #c4a4ff;
  background: rgba(157, 114, 239, 0.12);
  border: 1px solid rgba(195, 159, 255, 0.2);
  border-radius: 12px;
}

.sales-resource-card-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.sales-resource-price {
  display: grid;
  justify-items: end;
  gap: 1px;
}

.sales-resource-price small {
  color: var(--today-muted);
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.sales-resource-price strong {
  color: #fff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.sales-resource-price--starting strong {
  color: #75dfa0;
}

.sales-resource-price--custom strong {
  color: #ffc66d;
  font-size: 15px;
}

.sales-resource-card-copy {
  margin-top: 14px;
}

.sales-resource-card-copy > span {
  display: block;
  overflow: hidden;
  color: #a98bec;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sales-resource-card-copy h3 {
  margin: 5px 0 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.025em;
}

.sales-resource-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #c5c8d0;
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.sales-resource-card details {
  margin-top: 15px;
  background: rgba(8, 14, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
}

.sales-resource-card details summary {
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: #e8e9ed;
  cursor: pointer;
  font-size: 10px;
  list-style: none;
}

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

.sales-resource-card details summary strong {
  color: var(--today-muted);
  font-size: 9px;
  font-weight: 560;
}

.sales-resource-card details summary .ui-icon {
  width: 14px;
  height: 14px;
  transition: transform 140ms ease;
}

.sales-resource-card details[open] summary .ui-icon {
  transform: rotate(180deg);
}

.sales-resource-card details ul {
  display: grid;
  gap: 7px;
  padding: 0 11px 12px;
  margin: 0;
  color: #c5c8d0;
  list-style: none;
}

.sales-resource-card details li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 7px;
  font-size: 9px;
  line-height: 1.4;
}

.sales-resource-card details li .ui-icon {
  width: 13px;
  height: 13px;
  color: #67d596;
}

.sales-resource-admin-scope {
  padding: 11px;
  margin: 15px 0 0;
  color: #d4bdff;
  background: rgba(157, 114, 239, 0.08);
  border: 1px solid rgba(193, 159, 255, 0.14);
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.45;
}

.sales-resource-card > footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 14px;
  margin-top: auto;
  color: #9fa4af;
  font-size: 9px;
}

.sales-resource-card > footer .ui-icon {
  width: 13px;
  height: 13px;
  color: #78d8a0;
}

.sales-resources-empty {
  display: grid;
  min-height: 330px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--today-muted);
  text-align: center;
}

.sales-resources-empty > .ui-icon {
  width: 34px;
  height: 34px;
  color: #bd9cff;
}

.sales-resources-empty h3,
.sales-resources-empty p {
  margin: 0;
}

.sales-resources-empty h3 {
  color: #fff;
  font-size: 18px;
}

.sales-resources-empty p {
  font-size: 11px;
}

.sales-resources-empty .button {
  margin-top: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.sales-resources-rules {
  padding: 22px;
  margin-top: 16px;
}

.sales-resources-rules-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sales-resources-rule-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  color: #75dda0;
  background: rgba(80, 190, 128, 0.1);
  border: 1px solid rgba(107, 218, 154, 0.19);
  border-radius: 12px;
}

.sales-resources-rule-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.sales-resources-rules-heading h2 {
  margin-top: 4px;
  margin-bottom: 0;
}

.sales-resources-rule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.sales-resources-rule-grid > div {
  display: grid;
  min-width: 0;
  min-height: 100px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sales-resources-rule-grid > div > .ui-icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: #bd9cff;
}

.sales-resources-rule-grid p,
.sales-resources-rule-grid strong,
.sales-resources-rule-grid small {
  display: block;
  margin: 0;
}

.sales-resources-rule-grid strong {
  color: #fff;
  font-size: 11px;
}

.sales-resources-rule-grid small {
  margin-top: 4px;
  color: var(--today-muted);
  font-size: 9px;
  line-height: 1.45;
}

.sales-resources-rules > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sales-resources-rules > footer p {
  margin: 0;
  color: var(--today-muted);
  font-size: 10px;
}

.sales-resources-rules > footer > div {
  display: flex;
  gap: 9px;
}

.sales-resources-rules > footer .button {
  min-height: 39px;
  gap: 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.sales-resources-rules > footer .button--primary {
  background: linear-gradient(112deg, #885fe4, #a978f3);
  border-color: rgba(225, 207, 255, 0.4);
}

.sales-resources-rules > footer .ui-icon {
  width: 15px;
  height: 15px;
}

/* Final seller polish found during the cross-route browser audit. */
.app-shell[data-shell-key^="sales:"] .sales-topbar-breadcrumb {
  min-width: 0;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}

.app-shell[data-shell-key^="sales:"] .sales-topbar-breadcrumb > span,
.app-shell[data-shell-key^="sales:"] .sales-topbar-breadcrumb > i {
  flex: 0 0 auto;
}

.app-shell[data-shell-key^="sales:"] .sales-topbar-breadcrumb > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1241px) and (max-width: 1390px) {
  .sales-today-pipeline {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }

  .sales-today-pipeline-flow {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr);
    gap: 2px;
  }

  .sales-today-pipeline-step {
    min-height: 76px;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 5px;
    padding: 9px 8px;
  }

  .sales-today-pipeline-step > span .ui-icon {
    width: 25px;
    height: 25px;
  }

  .sales-today-pipeline-step small {
    font-size: 9px;
  }
}

@media (max-width: 1100px) {
  .sales-resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .topbar {
    min-height: 0;
    row-gap: 7px;
    padding: max(8px, env(safe-area-inset-top)) 12px 9px;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .sales-topbar-search {
    margin: 0;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav {
    grid-template-columns: none;
    grid-auto-columns: minmax(62px, 1fr);
    grid-auto-flow: column;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link {
    scroll-snap-align: center;
  }

  .app-shell[data-shell-key^="sales:"]:is([data-rendered-nav="today"], [data-rendered-nav="leads"], [data-rendered-nav="deals"], [data-rendered-nav="chat"], [data-rendered-nav="earnings"], [data-rendered-nav="resources"], [data-rendered-nav="onboarding"]) .mobile-nav-link small,
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="today"] .mobile-nav-link[data-nav-key="leads"] small::after {
    font-size: 10px;
  }

  .sales-resources-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-resources-heading h1 {
    font-size: 32px;
  }

  .sales-resources-heading .button {
    width: 100%;
  }

  .sales-resources-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .sales-resources-steps,
  .sales-resources-grid,
  .sales-resources-rule-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-resources-catalog,
  .sales-resources-rules {
    padding: 17px;
  }

  .sales-resources-section-heading,
  .sales-resources-rules > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sales-resources-rules > footer > div {
    width: 100%;
  }

  .sales-resources-rules > footer .button {
    flex: 1 1 0;
  }

  .sales-resource-card {
    min-height: 0;
  }
}

.sales-account-page .onboarding-step p {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.3;
  -webkit-line-clamp: unset;
}

.sales-leads-workspace:has(.lead-mobile-card:only-child) {
  min-height: 0;
}

@media (prefers-reduced-transparency: reduce) {
  .sales-resources-process,
  .sales-resources-catalog,
  .sales-resources-rules,
  .sales-resource-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #1c2634;
  }
}

@media (forced-colors: active) {
  .sales-resources-process,
  .sales-resources-catalog,
  .sales-resources-rules,
  .sales-resource-card,
  .sales-resources-steps li,
  .sales-resources-rule-grid > div,
  .sales-resource-card details {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }
}

/* Cinematic Avenox team access
 *
 * This production sign-in treatment mirrors the approved access concept while
 * retaining the shared, server-owned seller/admin authentication markup.
 * Application and onboarding surfaces remain intentionally out of scope.
 */
body:has(.login-page:not(.application-page)) {
  color-scheme: dark;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 2%, rgba(226, 234, 255, 0.34), transparent 31%),
    radial-gradient(circle at 48% 43%, rgba(63, 73, 107, 0.38), transparent 46%),
    radial-gradient(circle at 73% 68%, rgba(126, 94, 239, 0.08), transparent 35%),
    linear-gradient(122deg, #1a2234 0%, #101626 44%, #070b14 100%);
}

.login-page:not(.application-page) {
  --canvas: #070b15;
  --surface: rgba(18, 25, 40, 0.78);
  --surface-muted: rgba(7, 12, 23, 0.33);
  --surface-strong: rgba(55, 63, 84, 0.7);
  --surface-subtle: rgba(25, 32, 49, 0.76);
  --ink: #f8f9fc;
  --ink-soft: #e6e9f1;
  --ink-muted: #c4c9d4;
  --ink-faint: #aab1c0;
  --border: rgba(224, 228, 255, 0.16);
  --border-strong: rgba(224, 228, 255, 0.3);
  --control-border: rgba(224, 228, 255, 0.28);
  --brand: #a979ff;
  --brand-hover: #c08bff;
  --accent: #bd83ff;
  --accent-soft: rgba(151, 93, 247, 0.18);
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  min-height: var(--public-entry-viewport-height, 100dvh);
  grid-template-columns: minmax(0, 1fr) minmax(430px, 500px);
  align-items: stretch;
  gap: clamp(32px, 4.4vw, 72px);
  padding: 30px clamp(28px, 4vw, 60px) 38px;
  overflow: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 2%, rgba(226, 234, 255, 0.34), transparent 31%),
    radial-gradient(circle at 48% 43%, rgba(63, 73, 107, 0.38), transparent 46%),
    radial-gradient(circle at 73% 68%, rgba(126, 94, 239, 0.08), transparent 35%),
    linear-gradient(122deg, #1a2234 0%, #101626 44%, #070b14 100%);
  font-family: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page:not(.application-page)::before {
  position: absolute;
  z-index: 0;
  top: -22%;
  left: -8%;
  width: 64%;
  height: 118%;
  content: "";
  background: linear-gradient(
    122deg,
    rgba(246, 249, 255, 0.27),
    rgba(214, 223, 250, 0.075) 47%,
    transparent 70%
  );
  clip-path: polygon(0 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(13px);
  opacity: 0.84;
  transform: rotate(-7deg);
  transform-origin: 0 0;
  pointer-events: none;
}

.login-page:not(.application-page)::after {
  position: absolute;
  z-index: 0;
  top: -8%;
  left: -16%;
  width: min(118vw, 1810px);
  aspect-ratio: 1.5;
  content: "";
  background: url("/assets/avenox-logo-ui.png") center / contain no-repeat;
  filter:
    brightness(0.42)
    saturate(0.68)
    contrast(1.18)
    drop-shadow(0 22px 30px rgba(0, 0, 0, 0.58));
  opacity: 0.32;
  transform: rotate(-1.2deg) scaleY(1.22);
  transform-origin: center;
  pointer-events: none;
}

.login-page:not(.application-page) .login-atmosphere {
  position: absolute;
  z-index: 0;
  inset: 0;
  contain: paint;
  overflow: hidden;
  pointer-events: none;
}

.login-page:not(.application-page) .login-light-beam {
  display: none;
}

.login-page:not(.application-page) .login-floor-light {
  position: absolute;
  right: 15%;
  bottom: -7%;
  width: 37%;
  height: 29%;
  background:
    radial-gradient(ellipse at 48% 20%, rgba(135, 87, 255, 0.37), transparent 29%),
    linear-gradient(90deg, transparent, rgba(123, 87, 222, 0.18), transparent);
  filter: blur(19px);
  transform: perspective(500px) rotateX(63deg) rotateZ(-3deg);
}

.login-page:not(.application-page) .login-secure-chip {
  position: absolute;
  z-index: 5;
  top: 32px;
  right: clamp(28px, 4vw, 60px);
  display: inline-flex;
  min-height: 41px;
  align-items: center;
  gap: 12px;
  padding: 0 19px;
  color: #f2f4f8;
  border: 1px solid rgba(221, 228, 247, 0.24);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  font-size: 14px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.login-page:not(.application-page) .login-secure-chip > span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #56dc95;
  box-shadow: 0 0 17px rgba(86, 220, 149, 0.72);
}

.login-page:not(.application-page) .login-brand-panel,
.login-page:not(.application-page) .login-form-panel {
  position: relative;
  z-index: 2;
}

.login-page:not(.application-page) .login-brand-panel {
  display: flex;
  min-width: 0;
  min-height: calc(var(--public-entry-viewport-height, 100dvh) - 68px);
  justify-content: flex-start;
  padding: 0;
  overflow: visible;
  color: #f7f8fc;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-page:not(.application-page) .login-brand-panel::before {
  z-index: -1;
  inset: -38px -47vw -54px -72px;
  background:
    linear-gradient(90deg, rgba(5, 8, 16, 0.04), transparent 42%, rgba(3, 6, 13, 0.24)),
    radial-gradient(rgba(255, 255, 255, 0.12) 0.55px, transparent 0.65px);
  background-size: auto, 32px 32px;
  border-radius: 0;
  opacity: 0.08;
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.35) 72%, transparent);
}

.login-page:not(.application-page) .login-brand-panel::after {
  z-index: -1;
  right: -49vw;
  bottom: -14vh;
  width: min(112vw, 1400px);
  height: min(34vw, 370px);
  content: "";
  background:
    radial-gradient(ellipse at 58% 20%, rgba(135, 87, 255, 0.32), transparent 28%),
    linear-gradient(90deg, transparent, rgba(123, 87, 222, 0.12), transparent);
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.78;
  transform: perspective(500px) rotateX(63deg) rotateZ(-3deg);
}

.login-page:not(.application-page) .brand-lockup {
  position: relative;
  z-index: 3;
  gap: 18px;
}

.login-page:not(.application-page) .brand-lockup::after {
  display: none;
}

.login-page:not(.application-page) .brand-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(237, 240, 255, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.33), transparent 38%),
    linear-gradient(145deg, rgba(52, 61, 81, 0.92), rgba(11, 15, 27, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 13px 28px rgba(0, 0, 0, 0.34);
}

.login-page:not(.application-page) .brand-mark img {
  filter: brightness(1.08) contrast(1.12);
}

.login-page:not(.application-page) .brand-copy strong {
  color: #fff;
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.login-page:not(.application-page) .brand-product {
  display: none;
}

.login-page:not(.application-page) .brand-copy small {
  margin-top: 4px;
  color: #c7ccd7;
  font-size: 14px;
  font-weight: 500;
}

.login-page:not(.application-page) .login-brand-message {
  position: relative;
  z-index: 2;
  max-width: 810px;
  margin: clamp(112px, 14vh, 156px) 0 0;
}

.login-page:not(.application-page) .login-eyebrow {
  margin-bottom: 23px;
  color: #c08bff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.17em;
  line-height: 1.2;
  text-shadow: 0 0 24px rgba(169, 121, 255, 0.38);
}

.login-page:not(.application-page) .login-brand-message h1 {
  max-width: 810px;
  margin-bottom: 24px;
  color: #f7f8fc;
  font-size: clamp(50px, 4.7vw, 74px);
  font-weight: 690;
  letter-spacing: -0.057em;
  line-height: 1.055;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.27);
  text-wrap: balance;
}

.login-page:not(.application-page) .login-brand-message p {
  max-width: 530px;
  color: #c4c9d4;
  font-size: clamp(16px, 1.16vw, 19px);
  letter-spacing: -0.017em;
  line-height: 1.7;
}

.login-page:not(.application-page) .login-proof {
  display: grid;
  width: min(100%, 580px);
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: start;
  gap: 5px;
  margin-top: 38px;
}

.login-page:not(.application-page) .login-proof > .login-proof-item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 15px;
  padding: 0;
  color: #f3f4f8;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.35;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.login-page:not(.application-page) .login-proof > .login-proof-item::before,
.login-page:not(.application-page) .login-proof > .login-proof-item::after,
.login-page:not(.application-page) .login-proof .login-proof-icon::before,
.login-page:not(.application-page) .login-proof .login-proof-icon::after,
.login-page:not(.application-page) .login-proof .login-proof-label::before,
.login-page:not(.application-page) .login-proof .login-proof-label::after,
.login-page:not(.application-page) .login-proof .login-proof-arrow::before,
.login-page:not(.application-page) .login-proof .login-proof-arrow::after {
  display: none;
}

.login-page:not(.application-page) .login-proof .login-proof-icon {
  position: relative;
  display: grid;
  width: 49px;
  height: 49px;
  place-items: center;
  color: #e0e4ef;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.login-page:not(.application-page) .login-proof .login-proof-icon .ui-icon {
  width: 36px;
  height: 36px;
  stroke-width: 1.55;
}

.login-page:not(.application-page) .login-proof .login-proof-icon i {
  position: absolute;
  right: -2px;
  bottom: 1px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #141827;
  background: linear-gradient(145deg, #b47dff, #7458f3);
  border: 3px solid #111725;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(148, 101, 255, 0.52);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.login-page:not(.application-page) .login-proof .login-proof-label {
  display: block;
  padding: 0;
  color: #f3f4f8;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 14px;
}

.login-page:not(.application-page) .login-proof > .login-proof-arrow {
  display: block;
  align-self: start;
  padding: 19px 0 0;
  color: rgba(223, 227, 238, 0.76);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
}

.login-page:not(.application-page) .login-page-footnote {
  margin: auto 0 0;
  color: #969eae;
  font-size: 14px;
}

.login-page:not(.application-page) .login-form-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.login-page:not(.application-page) .login-form-panel::before {
  display: none;
}

.login-page:not(.application-page) .login-card {
  position: relative;
  width: min(100%, 500px);
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 34px 34px 24px;
  overflow: visible;
  color: #f7f8fc;
  background:
    radial-gradient(circle at 68% 0%, rgba(129, 122, 171, 0.29), transparent 42%),
    linear-gradient(145deg, rgba(66, 72, 96, 0.68), rgba(10, 15, 27, 0.74) 53%, rgba(27, 34, 51, 0.67));
  border: 1px solid rgba(229, 229, 255, 0.76);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 0 40px rgba(144, 131, 213, 0.08),
    0 0 42px rgba(194, 185, 255, 0.13),
    0 36px 90px rgba(0, 0, 0, 0.48);
  scrollbar-color: rgba(190, 132, 255, 0.55) transparent;
  scrollbar-width: thin;
  -webkit-backdrop-filter: blur(24px) saturate(118%);
  backdrop-filter: blur(24px) saturate(118%);
  transform: none;
}

.login-page:not(.application-page) .login-card::before {
  position: absolute;
  top: 0;
  left: 11%;
  width: 78%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.88), transparent);
  box-shadow: 0 0 20px rgba(218, 212, 255, 0.7);
}

.login-page:not(.application-page) .login-card > .eyebrow {
  margin-bottom: 0;
  color: #c08bff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-shadow: 0 0 24px rgba(169, 121, 255, 0.38);
}

.login-page:not(.application-page) .login-card h2 {
  margin: 16px 0 7px;
  color: #f8f9fc;
  font-size: clamp(29px, 2.1vw, 33px);
  font-weight: 670;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.login-page:not(.application-page) .login-card > p {
  margin: 0;
  color: #c4c9d4;
  font-size: 14.5px;
  line-height: 1.6;
}

.login-page:not(.application-page) .login-workspace-switch {
  min-height: 62px;
  gap: 0;
  margin: 22px 0 0;
  padding: 0;
  overflow: hidden;
  background: rgba(5, 9, 18, 0.24);
  border: 1px solid rgba(221, 224, 243, 0.29);
  border-radius: 13px;
  box-shadow: none;
}

.login-page:not(.application-page) .login-workspace-option {
  position: relative;
  display: grid;
  min-height: 61px;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 18px;
  color: #c8ccd7;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

.login-page:not(.application-page) .login-workspace-option + .login-workspace-option {
  border-left: 1px solid rgba(221, 224, 243, 0.18);
}

.login-page:not(.application-page) .login-workspace-option::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: transparent;
}

.login-page:not(.application-page) .login-workspace-option:hover,
.login-page:not(.application-page) .login-workspace-option:focus-visible {
  color: #fff;
  background: rgba(103, 70, 175, 0.24);
  border-color: transparent;
  box-shadow: none;
}

.login-page:not(.application-page) .login-workspace-option.is-active {
  color: #fff;
  background:
    radial-gradient(circle at 50% 100%, rgba(173, 106, 255, 0.55), transparent 58%),
    linear-gradient(135deg, rgba(109, 67, 203, 0.72), rgba(87, 44, 184, 0.48));
  border-color: transparent;
  box-shadow: none;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.login-page:not(.application-page) .login-workspace-option.is-active::after {
  background: linear-gradient(90deg, #a462ff, #cf7dff);
  box-shadow: 0 0 13px rgba(179, 104, 255, 0.8);
}

.login-page:not(.application-page) .login-workspace-icon,
.login-page:not(.application-page) .login-workspace-option.is-active .login-workspace-icon {
  width: 27px;
  height: 27px;
  color: currentColor;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.login-page:not(.application-page) .login-workspace-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.login-page:not(.application-page) .login-workspace-option strong {
  color: inherit;
  font-size: 16px;
  font-weight: 620;
}

.login-page:not(.application-page) .login-workspace-option small {
  display: none;
}

.login-page:not(.application-page) .login-workspace-summary {
  min-height: 106px;
  padding: 17px 0 8px;
}

.login-page:not(.application-page) .login-workspace-summary h3 {
  margin: 0 0 8px;
  color: #f8f9fc;
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -0.02em;
}

.login-page:not(.application-page) .login-workspace-summary p {
  margin: 0;
  color: #c4c9d4;
  font-size: 14px;
  line-height: 1.55;
}

.login-page:not(.application-page) .login-workspace-summary .login-access-boundary {
  margin-top: 16px;
}

.login-page:not(.application-page) .login-role-note {
  position: relative;
  min-height: 56px;
  padding: 12px 0 8px 32px;
  margin: 0;
  color: #bdc3d0;
  font-size: 14px;
  line-height: 1.55;
}

.login-page:not(.application-page) .login-role-note::before {
  position: absolute;
  top: 16px;
  left: 2px;
  width: 14px;
  height: 16px;
  content: "";
  border: 1.5px solid #d5d9e4;
  border-radius: 3px;
}

.login-page:not(.application-page) .login-role-note::after {
  position: absolute;
  top: 8px;
  left: 4px;
  width: 7px;
  height: 8px;
  content: "";
  border: 1.5px solid #d5d9e4;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.login-page:not(.application-page) .auth-stack,
.login-page:not(.application-page) .auth-form {
  gap: 9px;
}

.login-page:not(.application-page) .login-auth-region {
  margin-top: 0;
}

.login-page:not(.application-page) .login-email-fallback {
  color: #c4c9d4;
  background: rgba(5, 9, 18, 0.24);
  border: 1px solid rgba(221, 224, 243, 0.22);
  border-radius: 11px;
}

.login-page:not(.application-page) .login-email-fallback summary {
  padding: 9px 15px;
  cursor: pointer;
  color: #d8dce5;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}

.login-page:not(.application-page) .login-email-fallback[open] summary {
  border-bottom: 1px solid rgba(221, 224, 243, 0.16);
}

.login-page:not(.application-page) .login-email-fallback .auth-form {
  padding: 15px;
}

.login-page:not(.application-page) .button {
  min-height: 48px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 680;
}

.login-page:not(.application-page) .auth-provider-button {
  min-height: 56px;
  color: #11131a;
  background: linear-gradient(180deg, #fff, #f1f2f6);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 11px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 26px rgba(0, 0, 0, 0.2);
  font-size: 16px;
}

.login-page:not(.application-page) .auth-provider-button:hover:not([disabled]) {
  color: #11131a;
  background: linear-gradient(180deg, #fff, #f6f7fa);
  border-color: #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 31px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.login-page:not(.application-page) .google-mark {
  width: 24px;
  height: 24px;
  color: transparent;
  background:
    conic-gradient(
      from -38deg,
      #4285f4 0 25%,
      #34a853 0 42%,
      #fbbc05 0 65%,
      #ea4335 0 83%,
      #4285f4 0
    );
  background-clip: text;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  -webkit-background-clip: text;
}

.login-page:not(.application-page) .auth-divider {
  color: #9da5b5;
  font-size: 10px;
}

.login-page:not(.application-page) .auth-divider::before,
.login-page:not(.application-page) .auth-divider::after {
  background: rgba(226, 229, 244, 0.2);
}

.login-page:not(.application-page) .field label,
.login-page:not(.application-page) .field-label {
  color: #e2e5ed;
  font-size: 12px;
}

.login-page:not(.application-page) :where(.input, .select, .textarea) {
  min-height: 48px;
  color: #f7f8fc;
  background: rgba(5, 9, 18, 0.38);
  border-color: rgba(221, 224, 243, 0.3);
  border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.16);
}

.login-page:not(.application-page) :where(.input, .select, .textarea)::placeholder {
  color: #8992a3;
}

.login-page:not(.application-page) .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #9c65ef, #7447dd);
  border-color: rgba(192, 139, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 27px rgba(107, 68, 206, 0.26);
}

.login-page:not(.application-page) .button--primary:hover:not([disabled]) {
  color: #fff;
  background: linear-gradient(135deg, #ad75fa, #8355e5);
  border-color: #c895ff;
}

.login-page:not(.application-page) .button--ghost {
  color: #c8ccd7;
  background: rgba(5, 9, 18, 0.2);
  border-color: rgba(221, 224, 243, 0.24);
}

.login-page:not(.application-page) .auth-help {
  color: #aeb4c1;
}

.login-page:not(.application-page) .auth-email-summary {
  color: #f7f8fc;
  background: rgba(5, 9, 18, 0.3);
  border: 1px solid rgba(221, 224, 243, 0.16);
}

.login-page:not(.application-page) .auth-email-summary span {
  color: #aeb4c1;
}

.login-page:not(.application-page) .auth-setup-notice {
  color: #f6dfac;
  background: rgba(113, 75, 18, 0.28);
  border-color: rgba(240, 183, 76, 0.43);
}

.login-page:not(.application-page) .auth-setup-notice strong {
  color: #ffe8b5;
}

.login-page:not(.application-page) .auth-setup-notice code {
  color: #ffdda0;
}

.login-page:not(.application-page) .login-oauth-note {
  margin: 0 0 0 32px;
  color: #aeb4c1;
  font-size: 13px;
}

.login-page:not(.application-page) .login-secondary {
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  margin-top: 18px;
  color: #bdc2cd;
  border-color: rgba(226, 229, 244, 0.22);
  font-size: 15px;
}

.login-page:not(.application-page) .login-secondary a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 22px;
  color: #c895ff;
  border: 1px solid rgba(169, 112, 255, 0.82);
  border-radius: 11px;
  box-shadow: inset 0 0 18px rgba(133, 81, 224, 0.08);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.login-page:not(.application-page) .login-secondary a::after {
  margin-left: 18px;
  content: "→";
}

.login-page:not(.application-page) .login-footnote {
  margin-top: 14px;
  color: #aeb4c1;
  font-size: 13px;
  text-align: center;
}

.login-page:not(.application-page) .login-support-links {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  font-size: 14px;
}

.login-page:not(.application-page) .login-support-links a {
  color: #c4c9d4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-page:not(.application-page) :focus-visible {
  outline: 3px solid rgba(192, 139, 255, 0.95);
  outline-offset: 3px;
}

.login-page:not(.application-page)#main-content[tabindex="-1"]:focus {
  outline: none;
}

.boot-screen:has(.auth-callback-card) {
  color-scheme: dark;
  background:
    radial-gradient(circle at 14% 2%, rgba(226, 234, 255, 0.27), transparent 31%),
    linear-gradient(122deg, #1a2234 0%, #101626 44%, #070b14 100%);
}

.boot-screen:has(.auth-callback-card) .auth-callback-card {
  color: #f7f8fc;
  background:
    radial-gradient(circle at 68% 0%, rgba(129, 122, 171, 0.25), transparent 42%),
    rgba(13, 19, 31, 0.82);
  border-color: rgba(229, 229, 255, 0.48);
  border-radius: 30px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 32px 86px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(30px) saturate(120%);
  backdrop-filter: blur(30px) saturate(120%);
}

.boot-screen:has(.auth-callback-card) .auth-callback-card p {
  color: #c4c9d4;
}

@media (max-width: 1180px) {
  .login-page:not(.application-page) {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 460px);
    gap: 28px;
    padding-inline: 26px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    font-size: clamp(46px, 4.8vw, 60px);
  }

  .login-page:not(.application-page) .login-proof {
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr) 30px minmax(0, 1fr);
    gap: 4px;
  }
}

@media (max-width: 920px) {
  .login-page:not(.application-page) {
    display: flex;
    min-height: var(--public-entry-viewport-height, 100dvh);
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
    padding: 25px 22px 44px;
    overflow: clip;
    background:
      radial-gradient(circle at 14% 0%, rgba(228, 234, 255, 0.28), transparent 27%),
      linear-gradient(140deg, #192235 0%, #0a0f1b 70%);
  }

  .login-page:not(.application-page)::after {
    top: 3%;
    left: 18%;
    width: 92vw;
    opacity: 0.24;
  }

  .login-page:not(.application-page) .login-brand-panel {
    min-height: auto;
  }

  .login-page:not(.application-page) .login-secure-chip {
    top: 29px;
    right: 22px;
    min-height: 39px;
    padding-inline: 15px;
    font-size: 12px;
  }

  .login-page:not(.application-page) .login-brand-message {
    max-width: 700px;
    margin-top: 86px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    font-size: clamp(47px, 8vw, 68px);
  }

  .login-page:not(.application-page) .login-form-panel {
    align-items: flex-start;
  }

  .login-page:not(.application-page) .login-form-panel::before {
    display: none;
  }

  .login-page:not(.application-page) .login-card {
    width: min(100%, 650px);
    height: auto;
    min-height: 0;
    max-height: none;
    margin-inline: auto;
    transform: none;
  }
}

@media (max-width: 560px) {
  .login-page:not(.application-page) {
    gap: 32px;
    padding:
      calc(19px + env(safe-area-inset-top))
      calc(16px + env(safe-area-inset-right))
      calc(32px + env(safe-area-inset-bottom))
      calc(16px + env(safe-area-inset-left));
  }

  .login-page:not(.application-page) .brand-lockup {
    gap: 10px;
  }

  .login-page:not(.application-page) .brand-mark {
    width: 49px;
    height: 49px;
    border-radius: 11px;
  }

  .login-page:not(.application-page) .brand-copy strong {
    font-size: 21px;
  }

  .login-page:not(.application-page) .brand-copy small {
    font-size: 12px;
  }

  .login-page:not(.application-page) .login-secure-chip {
    top: calc(23px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
    min-height: 35px;
    max-width: 132px;
    gap: 7px;
    padding: 0 9px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .login-page:not(.application-page) .login-secure-chip > span {
    width: 8px;
    height: 8px;
  }

  .login-page:not(.application-page) .login-brand-message {
    margin-top: 58px;
  }

  .login-page:not(.application-page) .login-eyebrow {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    margin-bottom: 19px;
    font-size: clamp(35px, 9.6vw, 46px);
    line-height: 1.02;
  }

  .login-page:not(.application-page) .login-brand-message p {
    font-size: 17px;
    line-height: 1.56;
  }

  .login-page:not(.application-page) .login-proof {
    display: none;
  }

  .login-page:not(.application-page) .login-card {
    width: 100%;
    padding: 31px 22px 23px;
    border-radius: 28px;
  }

  .login-page:not(.application-page) .login-card h2 {
    margin-top: 12px;
    font-size: 30px;
  }

  .login-page:not(.application-page) .login-card > p {
    font-size: 14px;
  }

  .login-page:not(.application-page) .login-workspace-switch {
    min-height: 59px;
    margin-top: 23px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-page:not(.application-page) .login-workspace-option {
    min-height: 58px;
    gap: 8px;
    padding-inline: 9px;
  }

  .login-page:not(.application-page) .login-workspace-option strong {
    font-size: 14px;
  }

  .login-page:not(.application-page) .login-workspace-icon {
    width: 22px;
    height: 22px;
  }

  .login-page:not(.application-page) .login-workspace-icon .ui-icon {
    width: 20px;
    height: 20px;
  }

  .login-page:not(.application-page) .login-role-note {
    min-height: 74px;
    padding-top: 20px;
    padding-bottom: 16px;
    font-size: 12.5px;
  }

  .login-page:not(.application-page) .login-role-note::before {
    top: 24px;
  }

  .login-page:not(.application-page) .login-role-note::after {
    top: 16px;
  }

  .login-page:not(.application-page) .auth-provider-button {
    min-height: 56px;
    font-size: 15px;
  }

  .login-page:not(.application-page) .login-secondary {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
  }

  .login-page:not(.application-page) .login-secondary a {
    justify-content: center;
  }

  .login-page:not(.application-page) .login-footnote {
    font-size: 11px;
  }
}

@media (max-height: 760px) and (min-width: 921px) {
  .login-page:not(.application-page) .login-brand-message {
    margin-top: 64px;
  }

  .login-page:not(.application-page) .login-brand-message h1 {
    font-size: clamp(44px, 4.6vw, 56px);
  }

  .login-page:not(.application-page) .login-proof {
    display: none;
  }

  .login-page:not(.application-page) .login-form-panel {
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 28px;
  }

  .login-page:not(.application-page) .login-card {
    height: auto;
    min-height: 0;
    max-height: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-page:not(.application-page) *,
  .login-page:not(.application-page) *::before,
  .login-page:not(.application-page) *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .login-page:not(.application-page) .login-card,
  .login-page:not(.application-page) .login-form-panel::before,
  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .login-page:not(.application-page) .login-card {
    background: #151c2b;
  }
}

@media (forced-colors: active) {
  .login-page:not(.application-page),
  .login-page:not(.application-page) .login-brand-panel,
  .login-page:not(.application-page) .login-form-panel,
  .login-page:not(.application-page) .login-card,
  .login-page:not(.application-page) .login-workspace-option,
  .login-page:not(.application-page) .auth-provider-button,
  .login-page:not(.application-page) :where(.input, .select, .textarea),
  .boot-screen:has(.auth-callback-card),
  .boot-screen:has(.auth-callback-card) .auth-callback-card {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .login-page:not(.application-page)::before,
  .login-page:not(.application-page)::after,
  .login-page:not(.application-page) .login-brand-panel::before,
  .login-page:not(.application-page) .login-brand-panel::after,
  .login-page:not(.application-page) .login-form-panel::before {
    display: none;
  }

  .login-page:not(.application-page) .login-workspace-option.is-active,
  .login-page:not(.application-page) .button--primary {
    color: HighlightText;
    background: Highlight;
  }
}

/* Admin workspace · reference-parity glass shell
 *
 * The projected shell is shared across protected admin routes. The dashboard
 * content treatment remains scoped to the Admin Today route below.
 */
body:has(.app-shell[data-shell-key^="admin:"]) {
  --admin-today-ink: #f7f8fb;
  --admin-today-ink-soft: #d5d8e0;
  --admin-today-muted: #aeb4c0;
  --admin-today-page-ink: #1c2029;
  --admin-today-page-muted: #3d434f;
  --admin-today-purple: #a77bff;
  --admin-today-purple-soft: #c2a3ff;
  --admin-today-warning: #ffb14a;
  --admin-today-success: #62d48f;
  --admin-today-danger: #ff6b72;
  --admin-today-blue: #6da9ff;
  --admin-today-dark-glass: rgba(19, 25, 36, 0.7);
  --admin-today-dark-glass-strong: rgba(26, 32, 44, 0.82);
  --admin-today-light-glass: rgba(218, 221, 227, 0.4);
  --admin-today-light-glass-strong: rgba(242, 243, 246, 0.56);
  --admin-today-border: rgba(255, 255, 255, 0.18);
  --admin-today-hairline: rgba(255, 255, 255, 0.105);
  --admin-today-shadow: 0 22px 58px rgba(12, 16, 24, 0.2), inset 0 1px rgba(255, 255, 255, 0.1);
  min-width: 0;
  overflow-x: clip;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse 74% 46% at 30% -8%, rgba(255, 255, 255, 0.99), rgba(243, 245, 248, 0.74) 37%, transparent 73%),
    radial-gradient(ellipse 48% 72% at 17% 38%, rgba(248, 249, 251, 0.66), rgba(205, 211, 220, 0.3) 57%, transparent 82%),
    radial-gradient(ellipse 56% 62% at 59% 7%, rgba(201, 207, 216, 0.5), rgba(121, 131, 145, 0.18) 59%, transparent 82%),
    radial-gradient(ellipse 62% 80% at 103% 8%, rgba(43, 54, 70, 0.84), transparent 72%),
    radial-gradient(ellipse 74% 66% at 68% 108%, rgba(8, 16, 29, 0.93), transparent 76%),
    linear-gradient(146deg, #f2f3f5 0%, #ccd1d8 28%, #818b99 56%, #172335 100%);
  background-attachment: fixed;
}

body:has(.app-shell[data-shell-key^="admin:"])::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse 36% 62% at 8% 9%, rgba(255, 255, 255, 0.5), transparent 73%),
    radial-gradient(ellipse 31% 40% at 45% 12%, rgba(116, 127, 142, 0.15), transparent 77%),
    linear-gradient(112deg, rgba(255, 255, 255, 0.24), transparent 39%, rgba(20, 29, 42, 0.31) 82%),
    radial-gradient(rgba(255, 255, 255, 0.46) 0.6px, transparent 0.7px) 0 0 / 4px 4px;
  opacity: 0.45;
  pointer-events: none;
}

.app-shell[data-shell-key^="admin:"] {
  --sidebar-width: 232px;
  --header-height: 72px;
  position: relative;
  isolation: isolate;
  color: var(--admin-today-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
}

.app-shell[data-shell-key^="admin:"]::before,
.app-shell[data-shell-key^="admin:"]::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.app-shell[data-shell-key^="admin:"]::before {
  top: -35%;
  left: -31%;
  width: 116vw;
  height: 172vh;
  background:
    radial-gradient(ellipse at 57% 9%, rgba(255, 255, 255, 0.92) 0%, rgba(242, 244, 247, 0.73) 27%, rgba(194, 201, 211, 0.49) 47%, rgba(231, 234, 239, 0.24) 62%, transparent 79%),
    radial-gradient(ellipse 46% 54% at 51% 24%, rgba(181, 187, 198, 0.21), transparent 78%);
  border-radius: 46% 54% 58% 42% / 42% 48% 52% 58%;
  filter: blur(88px);
  opacity: 0.73;
  transform: rotate(-8deg);
  transform-origin: 60% 0;
}

.app-shell[data-shell-key^="admin:"]::after {
  inset: -19% -12% -34% 5%;
  background:
    radial-gradient(ellipse 76% 60% at 33% 0%, rgba(255, 255, 255, 0.79), rgba(226, 230, 235, 0.49) 32%, rgba(155, 165, 178, 0.25) 56%, transparent 81%),
    radial-gradient(ellipse 58% 54% at 104% 38%, rgba(52, 65, 82, 0.31), transparent 76%),
    radial-gradient(ellipse 68% 58% at 30% 106%, rgba(39, 53, 70, 0.39), transparent 78%);
  filter: blur(68px);
  opacity: 0.7;
}

.app-shell[data-shell-key^="admin:"] > .app-main {
  position: relative;
  z-index: 1;
  width: calc(100% - 232px);
  min-width: 0;
  margin-left: 232px;
}

.app-shell[data-shell-key^="admin:"] .sidebar {
  inset: 16px auto 18px 16px;
  width: 216px;
  height: auto;
  padding: 18px 13px 13px;
  overflow: visible;
}

.app-shell[data-shell-key^="admin:"] .sidebar::before {
  inset: 0;
  background:
    radial-gradient(ellipse 115% 58% at 9% -4%, rgba(229, 232, 237, 0.31), transparent 66%),
    linear-gradient(171deg, rgba(164, 173, 185, 0.82) 0%, rgba(108, 121, 137, 0.84) 40%, rgba(65, 79, 97, 0.88) 70%, rgba(42, 55, 72, 0.9) 100%);
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  box-shadow:
    24px 0 54px rgba(244, 247, 250, 0.2),
    0 22px 58px rgba(12, 16, 24, 0.21),
    inset 0 1px rgba(255, 255, 255, 0.17);
  -webkit-backdrop-filter: blur(34px) saturate(92%);
  backdrop-filter: blur(34px) saturate(92%);
}

.app-shell[data-shell-key^="admin:"] .sidebar::after {
  position: absolute;
  z-index: -1;
  top: 3%;
  right: -36px;
  bottom: 3%;
  width: 46px;
  content: "";
  background: linear-gradient(90deg, rgba(248, 249, 251, 0.36), rgba(232, 236, 242, 0.13) 48%, transparent);
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.8;
  pointer-events: none;
}

.app-shell[data-shell-key^="admin:"] .sidebar-brand {
  padding: 0 5px;
}

.app-shell[data-shell-key^="admin:"] .brand-lockup {
  gap: 12px;
}

.app-shell[data-shell-key^="admin:"] .brand-mark {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(38, 40, 54, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 30, 45, 0.13), inset 0 1px rgba(255, 255, 255, 0.9);
}

.app-shell[data-shell-key^="admin:"] .brand-mark img {
  width: 42px;
  height: 37px;
  filter: brightness(0) contrast(1.1);
  object-fit: contain;
}

.app-shell[data-shell-key^="admin:"] .brand-copy strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 19px;
  font-weight: 570;
  letter-spacing: -0.03em;
}

.app-shell[data-shell-key^="admin:"] .brand-product {
  display: none;
}

.app-shell[data-shell-key^="admin:"] .brand-copy small {
  margin-top: 2px;
  color: rgba(248, 249, 251, 0.88);
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"] .side-nav {
  gap: 1px;
  margin-top: 22px;
}

.app-shell[data-shell-key^="admin:"] .nav-link {
  display: grid;
  min-height: 47px;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 4px;
  color: rgba(247, 248, 250, 0.69);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 480;
}

.app-shell[data-shell-key^="admin:"] .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="admin:"] .nav-link[aria-current="page"] {
  color: #fff;
  background: linear-gradient(125deg, rgba(121, 83, 207, 0.64), rgba(41, 46, 62, 0.54));
  border-color: rgba(216, 199, 255, 0.29);
  box-shadow: -5px 0 0 rgba(159, 116, 255, 0.39), 0 11px 26px rgba(42, 25, 74, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
  font-weight: 640;
}

.app-shell[data-shell-key^="admin:"] .nav-link .nav-icon {
  width: 39px;
  height: 39px;
}

.app-shell[data-shell-key^="admin:"] .nav-link[aria-current="page"] .nav-icon {
  color: #d9c6ff;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 7px rgba(170, 126, 255, 0.8));
}

.app-shell[data-shell-key^="admin:"] .nav-link .nav-icon .ui-icon {
  width: 20px;
  height: 20px;
}

.app-shell[data-shell-key^="admin:"] .nav-attention-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  color: #fff;
  background: rgba(29, 35, 47, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="admin:"] .account-menu {
  min-height: 62px;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: 9px;
  padding: 7px 9px;
  color: #fff;
  background: rgba(21, 28, 40, 0.67);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 12px 28px rgba(13, 18, 28, 0.18);
}

.app-shell[data-shell-key^="admin:"] .account-menu .avatar {
  width: 40px;
  height: 40px;
}

.app-shell[data-shell-key^="admin:"] .account-menu:hover {
  background: rgba(28, 36, 50, 0.84);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-shell[data-shell-key^="admin:"] .account-menu-copy strong {
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"] .account-menu-copy span {
  margin-top: 3px;
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"] .account-caret {
  overflow: hidden;
  width: 14px;
  color: transparent;
  font-size: 0;
}

.app-shell[data-shell-key^="admin:"] .account-caret::after {
  display: block;
  color: var(--admin-today-ink-soft);
  content: "⌄";
  font-size: 15px;
}

.app-shell[data-shell-key^="admin:"] .topbar {
  display: grid;
  min-height: 72px;
  grid-template-columns: minmax(180px, 1fr) minmax(340px, 520px) minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 34px;
  color: #20232c;
}

.app-shell[data-shell-key^="admin:"] .topbar::before {
  inset: 0;
  background: linear-gradient(145deg, var(--admin-today-light-glass-strong), var(--admin-today-light-glass));
  border-width: 0 0 1px;
  border-color: rgba(255, 255, 255, 0.19);
  border-radius: 0;
  box-shadow: 0 16px 45px rgba(20, 26, 37, 0.08), inset 0 1px rgba(255, 255, 255, 0.46);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="admin:"] .topbar-title {
  display: none;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #20232c;
  font-size: 13px;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb i {
  color: rgba(32, 35, 44, 0.53);
  font-style: normal;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb strong {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-search {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0 13px 0 17px;
  color: #1d2028;
  background: rgba(217, 218, 223, 0.38);
  border: 1px solid rgba(42, 46, 58, 0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.38);
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-search .ui-icon {
  width: 18px;
  height: 18px;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #1d2028;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-search input::placeholder {
  color: rgba(20, 23, 31, 0.69);
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-search:focus-within {
  background: rgba(234, 235, 239, 0.58);
  border-color: #5f4398;
  outline: 2px solid #5f4398;
  outline-offset: 2px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.48);
}

.app-shell[data-shell-key^="admin:"] .admin-search-kbd {
  min-width: 27px;
  padding: 3px 7px;
  color: rgba(30, 34, 43, 0.65);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(37, 42, 53, 0.12);
  border-radius: 7px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
}

.app-shell[data-shell-key^="admin:"] .topbar-actions {
  justify-self: end;
  gap: 12px;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-alert {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #252a34;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(38, 44, 56, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28);
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-alert:hover {
  background: rgba(34, 40, 51, 0.09);
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-alert .ui-icon {
  width: 20px;
  height: 20px;
}

.app-shell[data-shell-key^="admin:"] .admin-topbar-alert-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  background: var(--admin-today-purple);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(167, 123, 255, 0.85);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
  line-height: 1;
}

.app-shell[data-shell-key^="admin:"] .topbar-actions .status-badge {
  min-height: 40px;
  gap: 0;
  padding: 0 17px;
  color: #2d323d;
  background: rgba(218, 221, 227, 0.46);
  border: 1px solid rgba(39, 45, 57, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.app-shell[data-shell-key^="admin:"] .topbar-actions .status-badge::before {
  display: none;
}

.app-shell[data-shell-key^="admin:"] .topbar-account {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #fff;
}

.app-shell[data-shell-key^="admin:"] .topbar-account .avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, #7568a8, #292f3b);
  border-color: rgba(255, 255, 255, 0.22);
}

.app-shell[data-shell-key^="admin:"] .topbar-signout {
  display: none;
}

.app-shell[data-shell-key^="admin:"] :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #6d28d9 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 7px #f4ecff !important;
}

.app-shell :is([tabindex="-1"], #main-content[tabindex="-1"]):focus-visible {
  outline: none !important;
}

.app-shell[data-shell-key^="admin:"] .page > .skeleton-grid .skeleton-card,
.app-shell[data-shell-key^="admin:"] .page > .skeleton-grid + .panel,
.app-shell[data-shell-key^="admin:"] .error-state {
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 8% -20%, rgba(167, 123, 255, 0.11), transparent 34%),
    linear-gradient(145deg, var(--admin-today-dark-glass-strong), var(--admin-today-dark-glass));
  border: 1px solid var(--admin-today-border);
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(118%);
  backdrop-filter: blur(27px) saturate(118%);
}

.app-shell[data-shell-key^="admin:"] .error-state p {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"] .error-state .error-icon {
  color: #ff9da2;
  background: rgba(120, 35, 43, 0.26);
  border: 1px solid rgba(246, 96, 105, 0.5);
}

.app-shell[data-shell-key^="admin:"] .page > .panel .skeleton {
  background: rgba(255, 255, 255, 0.09);
}

.app-shell[data-shell-key^="admin:"] .page > :is(.skeleton-grid, .panel) .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.17), transparent);
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"] :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid Highlight !important;
    box-shadow: none !important;
  }
}

.app-shell[data-shell-key^="admin:"] .page {
  width: 100%;
  max-width: 1480px;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  min-width: 0;
  padding: 38px 32px 78px;
}

.app-shell[data-shell-key^="admin:"]:not([data-rendered-nav="today"]) .page {
  color: var(--ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
  width: min(1240px, calc(100% - 64px));
  max-width: none;
  padding: 24px 0 48px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-view {
  display: grid;
  min-width: 0;
  gap: 16px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-view > .page-header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-heading .page-header-copy {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .page-header-copy {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) h1 {
  margin: 0 0 3px;
  color: var(--admin-today-page-ink);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) p {
  max-width: 680px;
  margin: 0;
  color: var(--admin-today-page-muted);
  font-size: 14px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .page-actions {
  flex: 0 0 auto;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .button--primary {
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  background: linear-gradient(135deg, #8657e8, #a678f4);
  border-color: rgba(235, 224, 255, 0.34);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(83, 49, 146, 0.2), inset 0 1px rgba(255, 255, 255, 0.25);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .button--primary:hover {
  background: linear-gradient(135deg, #794ada, #a87af7);
  border-color: rgba(244, 237, 255, 0.46);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .admin-open-approvals {
  color: #fff;
  background: linear-gradient(145deg, rgba(49, 56, 69, 0.72), rgba(20, 26, 36, 0.84));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(18, 23, 33, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  backdrop-filter: blur(18px) saturate(110%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .admin-open-approvals:hover {
  background: linear-gradient(145deg, rgba(58, 66, 80, 0.8), rgba(25, 31, 42, 0.9));
  border-color: rgba(255, 255, 255, 0.3);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-center {
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 6% -20%, rgba(167, 123, 255, 0.13), transparent 38%),
    linear-gradient(145deg, var(--admin-today-dark-glass-strong), var(--admin-today-dark-glass));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-section-heading {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-section-heading h2 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-shadow: 0 0 14px rgba(167, 123, 255, 0.38);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-section-heading p {
  margin: 3px 0 0;
  color: var(--admin-today-muted);
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 112px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 15px;
  overflow: hidden;
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, rgba(55, 63, 78, 0.58), rgba(24, 31, 44, 0.56));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(7, 11, 18, 0.13), inset 0 1px rgba(255, 255, 255, 0.065);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card::before {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--admin-today-purple);
  box-shadow: 0 0 18px rgba(167, 123, 255, 0.7);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning {
  padding-right: 62px;
  border-color: rgba(255, 177, 74, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 177, 74, 0.2), 0 12px 28px rgba(255, 157, 35, 0.13), inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning::before {
  background: var(--admin-today-warning);
  box-shadow: 0 0 18px rgba(255, 177, 74, 0.65);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--success::before {
  background: var(--admin-today-success);
  box-shadow: 0 0 18px rgba(98, 212, 143, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] a.admin-action-card:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] a.admin-action-card:focus-visible {
  border-color: rgba(213, 194, 255, 0.36);
  box-shadow: 0 15px 35px rgba(7, 11, 18, 0.22), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.11);
  border: 1px solid rgba(194, 163, 255, 0.24);
  border-radius: 12px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning .admin-action-icon {
  color: var(--admin-today-warning);
  background: rgba(255, 177, 74, 0.1);
  border-color: rgba(255, 177, 74, 0.24);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--success .admin-action-icon {
  color: var(--admin-today-success);
  background: rgba(98, 212, 143, 0.1);
  border-color: rgba(98, 212, 143, 0.24);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-icon .ui-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.6;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy > span:first-child,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy small {
  overflow: hidden;
  color: var(--admin-today-muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy > span:first-child {
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 610;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-state {
  align-self: start;
  min-height: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-state .status-badge {
  min-height: 25px;
  padding: 5px 8px;
  color: var(--admin-today-ink-soft);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 680;
  line-height: 1.25;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-state .status-badge::before {
  width: 6px;
  height: 6px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning .admin-action-state .status-badge {
  color: #ffd18c;
  background: rgba(255, 177, 74, 0.11);
  border-color: rgba(255, 177, 74, 0.18);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--success .admin-action-state .status-badge {
  color: #8ee8b1;
  background: rgba(98, 212, 143, 0.11);
  border-color: rgba(98, 212, 143, 0.18);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-arrow {
  display: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning .admin-action-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #7c4fde, #5d3b9e);
  border: 1px solid rgba(220, 199, 255, 0.35);
  border-radius: 50%;
  box-shadow: 0 7px 17px rgba(71, 42, 128, 0.34), inset 0 1px rgba(255, 255, 255, 0.22);
  font-size: 17px;
  transform: translateY(-50%);
  transition: color 160ms ease, transform 160ms ease;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] a.admin-action-card--warning:hover .admin-action-arrow {
  transform: translate(3px, -50%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, var(--admin-today-dark-glass-strong), var(--admin-today-dark-glass));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-heading {
  min-height: 68px;
  padding: 14px 19px;
  border-bottom-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-heading h2 {
  color: var(--admin-today-purple-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-shadow: 0 0 14px rgba(167, 123, 255, 0.38);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-heading p {
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-heading .section-link {
  color: var(--admin-today-purple-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-grid {
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric {
  min-width: 0;
  min-height: 116px;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-areas: "icon copy";
  align-content: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  padding: 17px 35px 17px 18px;
  color: var(--admin-today-ink);
  border-right-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-copy {
  display: grid;
  min-width: 0;
  grid-area: copy;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric::before {
  display: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:focus-visible {
  background: rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-icon {
  display: grid;
  width: 42px;
  height: 42px;
  grid-area: icon;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.1);
  border: 1px solid rgba(194, 163, 255, 0.22);
  border-radius: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric--collected .money-overview-icon,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric--paid .money-overview-icon {
  color: var(--admin-today-success);
  background: rgba(98, 212, 143, 0.1);
  border-color: rgba(98, 212, 143, 0.22);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric--refunded .money-overview-icon {
  color: var(--admin-today-danger);
  background: rgba(255, 107, 114, 0.1);
  border-color: rgba(255, 107, 114, 0.22);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-label {
  grid-area: auto;
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric strong {
  grid-area: auto;
  color: #fff;
  font-size: 23px;
  font-weight: 610;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-detail {
  grid-area: auto;
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-arrow {
  right: 14px;
  bottom: 13px;
  color: rgba(255, 255, 255, 0.38);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:hover .money-overview-arrow {
  color: var(--admin-today-purple-soft);
  transform: translateX(2px);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: start;
  gap: 14px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, var(--admin-today-dark-glass-strong), var(--admin-today-dark-glass));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(120%);
  backdrop-filter: blur(27px) saturate(120%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-decisions {
  padding: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team {
  padding: 0 18px 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .section-heading {
  min-height: 72px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team > .section-heading {
  margin: 0 -18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .section-heading h2 {
  color: var(--admin-today-purple-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-shadow: 0 0 14px rgba(167, 123, 255, 0.38);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .section-heading p {
  margin-top: 3px;
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .section-link {
  color: var(--admin-today-purple-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-list {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item {
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 11px 16px;
  color: var(--admin-today-ink);
  border-bottom-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-kind-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.1);
  border: 1px solid rgba(194, 163, 255, 0.2);
  border-radius: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-kind-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item .item-title {
  color: #fff;
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item .item-meta {
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .button--secondary,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .button--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) :is(.button--secondary, .button--ghost):hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(210, 192, 255, 0.3);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .person-row {
  min-width: 0;
  min-height: 65px;
  padding: 10px 0;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .person-row + .person-row {
  padding-top: 10px;
  margin-top: 0;
  border-top-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .person-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .avatar {
  color: #fff;
  background: linear-gradient(145deg, rgba(139, 97, 231, 0.84), rgba(61, 55, 91, 0.88));
  border-color: rgba(221, 204, 255, 0.25);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .person-copy strong,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team .person-count strong {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team :is(.person-copy span, .person-count span) {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) :is(.empty-state, .empty-inline) {
  color: var(--admin-today-ink-soft);
  background: transparent;
  border-color: var(--admin-today-hairline);
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) :is(.empty-state, .empty-inline) p {
  color: var(--admin-today-muted);
}

@media (max-width: 1280px) {
  .app-shell[data-shell-key^="admin:"] .topbar {
    grid-template-columns: minmax(150px, 1fr) minmax(280px, 420px) auto;
    gap: 14px;
    padding: 0 22px;
  }

  .app-shell[data-shell-key^="admin:"] .page,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
    width: min(1120px, calc(100% - 40px));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 11px;
    padding-right: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning {
    padding-right: 62px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-icon {
    width: 43px;
    height: 43px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
    padding-right: 27px;
    padding-left: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-icon {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 961px) and (max-width: 1120px) {
  .app-shell[data-shell-key^="admin:"] {
    --sidebar-width: 220px;
  }

  .app-shell[data-shell-key^="admin:"] > .app-main {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .app-shell[data-shell-key^="admin:"] .sidebar {
    width: 204px;
  }

  .app-shell[data-shell-key^="admin:"] .topbar {
    grid-template-columns: minmax(120px, 1fr) minmax(245px, 340px) auto;
    padding: 0 18px;
  }

  .app-shell[data-shell-key^="admin:"] .admin-search-kbd,
  .app-shell[data-shell-key^="admin:"] .topbar-actions .status-badge {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:nth-child(2) {
    border-right: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"] {
    --sidebar-width: 0px;
    --header-height: calc(72px + env(safe-area-inset-top));
  }

  .app-shell[data-shell-key^="admin:"] > .app-main {
    width: 100%;
    margin-left: 0;
  }

  .app-shell[data-shell-key^="admin:"] .sidebar {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .topbar {
    display: grid;
    min-height: var(--header-height);
    grid-template-columns: minmax(130px, 1fr) minmax(260px, 390px) auto;
    padding: env(safe-area-inset-top) 20px 0;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-brand {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav {
    display: flex;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    min-width: 0;
    min-height: 68px;
    gap: 3px;
    justify-content: flex-start;
    padding: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    color: rgba(44, 50, 61, 0.78);
    background: linear-gradient(145deg, rgba(225, 227, 232, 0.92), rgba(164, 173, 185, 0.86));
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 21px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.48), 0 18px 48px rgba(12, 17, 26, 0.25);
    -webkit-backdrop-filter: blur(26px) saturate(105%);
    backdrop-filter: blur(26px) saturate(105%);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav::-webkit-scrollbar {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link {
    display: grid;
    width: 74px;
    min-width: 74px;
    min-height: 52px;
    flex: 0 0 74px;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 0;
    padding: 3px 2px;
    color: rgba(42, 48, 59, 0.72);
    border-radius: 10px;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link .nav-icon {
    width: 27px;
    height: 28px;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link .ui-icon {
    width: 17px;
    height: 17px;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link small {
    min-width: 0;
    max-width: 68px;
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link[aria-current="page"] {
    color: #fff;
    background: linear-gradient(145deg, rgba(130, 92, 210, 0.8), rgba(87, 76, 136, 0.78));
    box-shadow: inset 0 0 0 1px rgba(222, 205, 255, 0.29), 0 8px 20px rgba(55, 36, 96, 0.22);
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav-link .nav-attention-count {
    position: absolute;
    top: 1px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    color: #fff;
    background: #7953cf;
    border-color: rgba(255, 255, 255, 0.72);
    font-size: 8px;
  }

  .app-shell[data-shell-key^="admin:"] .page,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:nth-child(2) {
    border-right: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"] {
    --header-height: calc(116px + env(safe-area-inset-top));
  }

  .app-shell[data-shell-key^="admin:"] .topbar {
    min-height: var(--header-height);
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 52px 48px;
    gap: 0 10px;
    padding: env(safe-area-inset-top) 12px 8px;
  }

  .app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
  }

  .app-shell[data-shell-key^="admin:"] .topbar-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .app-shell[data-shell-key^="admin:"] .topbar-actions .status-badge,
  .app-shell[data-shell-key^="admin:"] .admin-search-kbd {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .admin-topbar-search {
    min-height: 39px;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 29px minmax(0, 1fr);
    background: rgba(230, 231, 235, 0.68);
  }

  .app-shell[data-shell-key^="admin:"] .page,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
    padding-top: 17px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-view {
    gap: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) h1 {
    font-size: 30px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) p {
    font-size: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .page-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-heading, .admin-today-view > .page-header) .button {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-center {
    padding: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card {
    min-height: 104px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-heading {
    align-items: flex-start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric {
    min-height: 108px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(.admin-today-decisions, .admin-today-team) .section-heading {
    align-items: flex-start;
    min-height: 0;
    gap: 9px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item > :is(.button, .table-actions) {
    width: 100%;
    grid-column: 2;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .attention-item .table-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"] .page,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb > span:first-child,
  .app-shell[data-shell-key^="admin:"] .admin-topbar-breadcrumb > i:first-of-type {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-center {
    padding: 11px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-state {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-action-card--warning .admin-action-state {
    right: 60px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric {
    border-right: 0;
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .money-overview-metric:last-child {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team {
    padding-right: 13px;
    padding-left: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .admin-today-team > .section-heading {
    margin-right: -13px;
    margin-left: -13px;
  }
}

@media (max-height: 760px) and (min-width: 961px) {
  .app-shell[data-shell-key^="admin:"] .sidebar {
    top: 10px;
    bottom: 10px;
    padding-top: 13px;
    padding-bottom: 10px;
  }

  .app-shell[data-shell-key^="admin:"] .brand-mark {
    width: 42px;
    height: 42px;
  }

  .app-shell[data-shell-key^="admin:"] .side-nav {
    margin-top: 12px;
  }

  .app-shell[data-shell-key^="admin:"] .nav-link {
    min-height: 41px;
  }

  .app-shell[data-shell-key^="admin:"] .nav-link .nav-icon {
    width: 35px;
    height: 35px;
  }

  .app-shell[data-shell-key^="admin:"] .account-menu {
    min-height: 56px;
  }
}

/* Admin Today topbar search and attention dialogs */
body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) {
  width: min(92vw, 600px);
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, rgba(31, 38, 52, 0.97), rgba(17, 23, 34, 0.96));
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 90px rgba(7, 11, 18, 0.48), inset 0 1px rgba(255, 255, 255, 0.13);
  -webkit-backdrop-filter: blur(30px) saturate(118%);
  backdrop-filter: blur(30px) saturate(118%);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
)::backdrop {
  background: rgba(10, 14, 22, 0.59);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .dialog-head {
  color: #fff;
  background: rgba(25, 31, 43, 0.9);
  border-bottom-color: var(--admin-today-hairline);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .dialog-head p {
  color: var(--admin-today-muted);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .dialog-close {
  color: var(--admin-today-ink-soft);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .dialog-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .dialog-actions {
  background: rgba(21, 27, 39, 0.92);
  border-top-color: var(--admin-today-hairline);
  box-shadow: 0 -14px 30px rgba(7, 11, 18, 0.14);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .button--ghost {
  color: var(--admin-today-ink-soft);
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.14);
}

body:has(.app-shell[data-shell-key^="admin:"]) > .dialog:has(
  .admin-workspace-search-results,
  .admin-attention-list
) .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #8050df, #a675f3);
  border-color: rgba(235, 224, 255, 0.32);
  box-shadow: 0 10px 24px rgba(72, 43, 128, 0.31), inset 0 1px rgba(255, 255, 255, 0.24);
}

.admin-workspace-search-results,
.admin-attention-list {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.admin-workspace-search-option,
.admin-attention-item {
  display: grid;
  min-width: 0;
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.admin-workspace-search-option:hover,
.admin-workspace-search-option:focus-visible,
.admin-attention-item:hover,
.admin-attention-item:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(198, 166, 255, 0.32);
  box-shadow: 0 12px 28px rgba(6, 10, 17, 0.19), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.admin-workspace-search-option:focus-visible,
.admin-attention-item:focus-visible {
  outline: 3px solid rgba(194, 163, 255, 0.48);
  outline-offset: 2px;
}

.admin-workspace-search-option > span:first-child,
.admin-attention-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.11);
  border: 1px solid rgba(194, 163, 255, 0.22);
  border-radius: 11px;
}

.admin-workspace-search-option > span:first-child .ui-icon,
.admin-attention-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.admin-workspace-search-option > span:nth-child(2),
.admin-attention-item > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.admin-workspace-search-option strong,
.admin-attention-item strong {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-search-option small,
.admin-attention-item small {
  overflow: hidden;
  color: var(--admin-today-muted);
  font-size: 10px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-search-option > span:last-child {
  color: rgba(255, 255, 255, 0.43);
  font-size: 15px;
  transition: color 150ms ease, transform 150ms ease;
}

.admin-workspace-search-option:hover > span:last-child,
.admin-workspace-search-option:focus-visible > span:last-child {
  color: var(--admin-today-purple-soft);
  transform: translateX(3px);
}

.admin-attention-value {
  display: grid;
  min-width: 34px;
  height: 30px;
  padding: 0 9px;
  place-items: center;
  color: #fff;
  background: rgba(167, 123, 255, 0.16);
  border: 1px solid rgba(194, 163, 255, 0.23);
  border-radius: 999px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

@media (max-width: 520px) {
  .admin-workspace-search-results,
  .admin-attention-list {
    gap: 7px;
  }

  .admin-workspace-search-option,
  .admin-attention-item {
    min-height: 68px;
    grid-template-columns: 37px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px;
  }

  .admin-workspace-search-option > span:first-child,
  .admin-attention-icon {
    width: 36px;
    height: 36px;
  }

  .admin-workspace-search-option strong,
  .admin-attention-item strong {
    font-size: 12px;
  }

  .admin-workspace-search-option small,
  .admin-attention-item small {
    overflow: visible;
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell[data-shell-key^="admin:"] *,
  .app-shell[data-shell-key^="admin:"] *::before,
  .app-shell[data-shell-key^="admin:"] *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body:has(.app-shell[data-shell-key^="admin:"]) {
    background: #aeb4bf;
  }

  body:has(.app-shell[data-shell-key^="admin:"])::before,
  .app-shell[data-shell-key^="admin:"]::before,
  .app-shell[data-shell-key^="admin:"]::after,
  .app-shell[data-shell-key^="admin:"] .sidebar::after {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"] .sidebar::before {
    background: #536174;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-shell[data-shell-key^="admin:"] .topbar::before {
    background: #c9cdd4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-topbar-alert,
    .topbar-actions .status-badge
  ) {
    color: #202630;
    background: #e2e4e8;
    border-color: #747b86;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(
    .admin-action-center,
    .admin-action-card,
    .money-overview,
    .admin-today-decisions,
    .admin-today-team
  ) {
    background: #242b38;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-shell[data-shell-key^="admin:"] .mobile-nav {
    background: #aeb4bf;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  body:has(.app-shell[data-shell-key^="admin:"]),
  .app-shell[data-shell-key^="admin:"],
  .app-shell[data-shell-key^="admin:"] .admin-topbar-search,
  .app-shell[data-shell-key^="admin:"] .mobile-nav,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"],
  .app-shell[data-shell-key^="admin:"] .sidebar::before,
  .app-shell[data-shell-key^="admin:"] .topbar::before,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(
    .admin-action-center,
    .admin-action-card,
    .money-overview,
    .admin-today-decisions,
    .admin-today-team,
    .admin-topbar-search,
    .mobile-nav
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  body:has(.app-shell[data-shell-key^="admin:"])::before,
  .app-shell[data-shell-key^="admin:"]::before,
  .app-shell[data-shell-key^="admin:"]::after,
  .app-shell[data-shell-key^="admin:"] .sidebar::after,
  .app-shell[data-shell-key^="admin:"] .admin-action-card::before,
  .app-shell[data-shell-key^="admin:"] .admin-topbar-alert-badge {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(
    .admin-today-heading h1,
    .admin-today-heading p,
    .admin-today-section-heading h2,
    .admin-today-section-heading p,
    .money-overview-heading h2,
    .money-overview-heading p,
    .money-overview-label,
    .money-overview-detail,
    .money-overview-metric strong,
    .section-heading h2,
    .section-heading p,
    .item-title,
    .item-meta,
    .person-copy strong,
    .person-copy span,
    .person-count strong,
    .person-count span
  ) {
    color: CanvasText;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(
    .admin-today-heading .button--primary,
    .admin-open-approvals,
    .nav-link[aria-current="page"],
    .mobile-nav-link[aria-current="page"]
  ) {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"] :is(.nav-link[aria-current="page"], .mobile-nav-link[aria-current="page"]) {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
}

/* Admin Approvals · reference-parity decision workspace
 *
 * All rules remain route-scoped so the queue redesign cannot alter another
 * admin or seller surface.
 */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .page {
  width: min(1240px, calc(100% - 64px));
  max-width: none;
  padding: 34px 0 56px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view {
  display: grid;
  min-width: 0;
  gap: 18px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header {
  display: flex;
  min-width: 0;
  min-height: 112px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: -9px 2px -2px;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header .page-header-copy {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header h1 {
  margin: 0 0 8px;
  color: #11151d;
  font-size: clamp(42px, 4.2vw, 54px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header p {
  max-width: 790px;
  margin: 0;
  color: #414754;
  font-size: 14px;
  line-height: 1.5;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header .page-actions {
  flex: 0 0 auto;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-decision-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 17px;
  color: #f8f9fc;
  background: linear-gradient(145deg, rgba(50, 58, 72, 0.91), rgba(20, 27, 38, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 20, 30, 0.24), inset 0 1px rgba(255, 255, 255, 0.13);
  font-size: 12px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(20px) saturate(112%);
  backdrop-filter: blur(20px) saturate(112%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-decision-pill > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--admin-today-purple-soft);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(167, 123, 255, 0.9);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-decision-pill strong {
  font-weight: 570;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs {
  display: flex;
  min-width: 0;
  min-height: 68px;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  margin: 0;
  overflow-x: auto;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 5% -40%, rgba(167, 123, 255, 0.12), transparent 38%),
    linear-gradient(145deg, rgba(31, 39, 52, 0.92), rgba(17, 24, 35, 0.9));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(118%);
  backdrop-filter: blur(27px) saturate(118%);
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab {
  min-width: max-content;
  min-height: 46px;
  flex: 1 0 190px;
  gap: 10px;
  padding: 0 16px;
  color: #e1e4eb;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  scroll-snap-align: start;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 84, 207, 0.55), rgba(62, 55, 91, 0.52));
  border-color: rgba(190, 157, 255, 0.72);
  box-shadow: 0 10px 24px rgba(42, 25, 74, 0.2), inset 0 1px rgba(255, 255, 255, 0.15);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab strong {
  display: inline-grid;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  color: #eef0f5;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab[aria-current="page"] strong {
  background: rgba(13, 18, 28, 0.35);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-stack {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content > .stack {
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 4% -32%, rgba(167, 123, 255, 0.1), transparent 34%),
    linear-gradient(145deg, var(--admin-today-dark-glass-strong), var(--admin-today-dark-glass));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(118%);
  backdrop-filter: blur(27px) saturate(118%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading {
  min-height: 96px;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  margin: 0;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading > div {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading h2 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-shadow: 0 0 14px rgba(167, 123, 255, 0.37);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading p {
  max-width: 970px;
  margin: 6px 0 0;
  color: var(--admin-today-ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading > span {
  flex: 0 0 auto;
  color: var(--admin-today-ink-soft);
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-preview-application {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.045);
  border-color: rgba(167, 123, 255, 0.8);
  border-radius: 10px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-preview-application:hover {
  color: #fff;
  background: rgba(167, 123, 255, 0.14);
  border-color: rgba(205, 183, 255, 0.95);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state {
  min-height: 245px;
  padding: 32px 24px 36px;
  color: var(--admin-today-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state .empty-state-inner {
  max-width: 620px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state .empty-icon {
  width: 78px;
  height: 78px;
  margin-bottom: 13px;
  color: #b9bec8;
  background: radial-gradient(circle at 35% 25%, rgba(167, 123, 255, 0.12), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(167, 123, 255, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 0 28px rgba(99, 65, 160, 0.1);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state .empty-icon .ui-icon {
  width: 34px;
  height: 34px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 660;
  letter-spacing: -0.035em;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state p {
  margin: 10px 0 0;
  color: var(--admin-today-ink-soft);
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .compact-list {
  display: grid;
  min-width: 0;
  gap: 11px;
  padding: 14px 24px 24px;
  margin: 0;
  border: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .compact-item {
  min-width: 0;
  min-height: 88px;
  gap: 18px;
  padding: 17px 18px;
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .compact-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .item-main {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .item-title {
  color: #fff;
  font-size: 13px;
  font-weight: 670;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .item-meta {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .item-meta a {
  color: var(--admin-today-purple-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .approval-note {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row {
  display: grid;
  min-height: 126px;
  grid-template-columns: 50px minmax(190px, 1.3fr) minmax(170px, 0.9fr) minmax(145px, 0.72fr) auto;
  align-items: center;
  gap: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-application-row {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-avatar {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(109, 89, 151, 0.62), rgba(34, 41, 54, 0.72));
  border: 1px solid rgba(167, 123, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 9px 23px rgba(10, 14, 22, 0.18), inset 0 1px rgba(255, 255, 255, 0.14);
  font-size: 18px;
  font-weight: 680;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-copy > span {
  overflow: hidden;
  color: var(--admin-today-ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-copy .approval-note {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-progress {
  display: grid;
  min-width: 0;
  gap: 9px;
  color: var(--admin-today-ink-soft);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-segments {
  display: grid;
  min-width: 0;
  grid-auto-columns: minmax(22px, 1fr);
  grid-auto-flow: column;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-segments i {
  height: 8px;
  background: rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-segments i.is-complete {
  background: linear-gradient(90deg, #9f6cff, #c0a0ff);
  box-shadow: 0 0 10px rgba(167, 123, 255, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at span {
  color: var(--admin-today-muted);
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at strong {
  color: var(--admin-today-ink-soft);
  font-size: 11px;
  font-weight: 560;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .table-actions {
  min-width: max-content;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button {
  min-height: 42px;
  border-radius: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--primary,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #7c4bd7, #a16ce8);
  border-color: rgba(222, 201, 255, 0.34);
  box-shadow: 0 10px 24px rgba(61, 36, 111, 0.25), inset 0 1px rgba(255, 255, 255, 0.2);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--primary:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--primary:hover {
  background: linear-gradient(135deg, #7040ca, #ab79ef);
  border-color: rgba(238, 225, 255, 0.48);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--ghost,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--secondary,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--ghost,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--secondary {
  color: var(--admin-today-purple-soft);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.13);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--ghost:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--secondary:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--ghost:hover,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel .button--secondary:hover {
  color: #fff;
  background: rgba(167, 123, 255, 0.11);
  border-color: rgba(194, 163, 255, 0.34);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content > .stack > .tabs {
  min-height: 54px;
  gap: 6px;
  padding: 6px;
  margin: 0;
  background: rgba(21, 28, 40, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content > .stack > .tabs .tab {
  min-height: 40px;
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content > .stack > .tabs .tab[aria-current="page"] {
  color: #fff;
  background: rgba(121, 83, 207, 0.45);
  box-shadow: inset 0 0 0 1px rgba(194, 163, 255, 0.28);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel {
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, rgba(31, 39, 52, 0.88), rgba(17, 24, 35, 0.86));
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--admin-today-shadow);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content .filter-panel label {
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content :is(.input, .select, .textarea) {
  color: #fff;
  background: rgba(8, 13, 22, 0.42);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-content :is(.input, .select, .textarea)::placeholder {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .pagination {
  color: var(--admin-today-muted);
  border-top-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] :is(
  .approval-tabs .tab,
  .admin-approval-panel a,
  .admin-approval-panel button,
  .admin-approvals-content input,
  .admin-approvals-content select,
  .admin-approvals-content textarea
):focus-visible {
  outline: 3px solid rgba(194, 163, 255, 0.72);
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab {
    flex-basis: 180px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row {
    grid-template-columns: 50px minmax(190px, 1fr) minmax(170px, 0.85fr) auto;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at {
    grid-column: 2;
    padding-left: 0;
    border-left: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row > .table-actions {
    grid-column: 3 / -1;
    grid-row: 2;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .page {
    width: 100%;
    padding: 22px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header {
    min-height: 100px;
    margin: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header h1 {
    font-size: 42px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs {
    min-height: 64px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row {
    grid-template-columns: 50px minmax(0, 1fr) minmax(150px, 0.72fr);
    align-items: start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row > .table-actions {
    width: 100%;
    min-width: 0;
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view {
    gap: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 2px 0 4px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header h1 {
    font-size: 36px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header .page-actions {
    align-self: flex-start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs {
    padding: 8px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab {
    min-height: 44px;
    flex-basis: 168px;
    padding: 0 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 20px 18px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-preview-application {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .compact-list {
    padding: 12px 14px 16px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-application-row {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-avatar {
    width: 48px;
    height: 48px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-progress,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-person-row > .table-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-application-row > .button {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-submitted-at {
    padding-top: 12px;
    border-top: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .table-actions {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .table-actions .button {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state {
    min-height: 220px;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .page {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-decision-pill {
    min-height: 40px;
    padding: 0 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .section-heading {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state {
    min-height: 198px;
    padding: 26px 15px 30px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel > .empty-state .empty-icon {
    width: 66px;
    height: 66px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .table-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] :is(
    .approval-tabs,
    .admin-approval-panel,
    .admin-approvals-decision-pill,
    .admin-approvals-content > .stack > .tabs,
    .admin-approvals-content .filter-panel
  ) {
    background: #242b38;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"],
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] :is(
    .approval-tabs,
    .approval-tabs .tab,
    .admin-approval-panel,
    .admin-approval-panel .compact-item,
    .admin-approvals-decision-pill,
    .admin-approvals-content > .stack > .tabs,
    .admin-approvals-content .filter-panel,
    .approval-person-avatar,
    .approval-gate-segments i
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-tabs .tab[aria-current="page"],
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approval-panel .button--primary {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .approval-gate-segments i.is-complete {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] :is(
    .page-header h1,
    .page-header p,
    .admin-approval-panel .section-heading h2,
    .admin-approval-panel .section-heading p,
    .admin-approval-panel .item-title,
    .admin-approval-panel .item-meta,
    .admin-approval-panel .approval-note,
    .admin-approval-panel .empty-state h2,
    .admin-approval-panel .empty-state p
  ) {
    color: CanvasText;
  }
}

/* Admin Leads · reference-parity discovery workspace
 *
 * Discovery keeps its existing forms, links, native progress element, polling
 * region, and worker controls. These rules only arrange and skin that live UI.
 */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(.admin-leads-discovery-view) {
  width: min(1260px, calc(100% - 64px));
  max-width: none;
  padding: 24px 0 56px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view {
  display: grid;
  min-width: 0;
  gap: 12px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header {
  min-height: 96px;
  align-items: center;
  margin: -3px 8px 0;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header h1 {
  margin: 0 0 7px;
  color: #11151d;
  font-size: clamp(40px, 3.7vw, 48px);
  font-weight: 660;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header p {
  max-width: 720px;
  margin: 0;
  color: #3d4451;
  font-size: 13px;
  line-height: 1.52;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs {
  width: min(100%, 660px);
  min-height: 48px;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  margin: 0 0 1px;
  overflow-x: auto;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 5% -35%, rgba(167, 123, 255, 0.13), transparent 40%),
    linear-gradient(145deg, rgba(31, 39, 52, 0.94), rgba(17, 24, 35, 0.92));
  border: 1px solid var(--admin-today-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(12, 17, 26, 0.24), inset 0 1px rgba(255, 255, 255, 0.11);
  -webkit-backdrop-filter: blur(25px) saturate(116%);
  backdrop-filter: blur(25px) saturate(116%);
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs .tab {
  min-width: max-content;
  min-height: 37px;
  flex: 1 0 108px;
  padding: 0 14px;
  color: #d8dce5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 560;
  scroll-snap-align: start;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.11);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(126, 85, 214, 0.58), rgba(62, 55, 91, 0.5));
  border-color: rgba(191, 158, 255, 0.72);
  box-shadow: 0 8px 19px rgba(42, 25, 74, 0.23), inset 0 1px rgba(255, 255, 255, 0.17);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-workspace {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.92fr);
  grid-template-areas:
    "search recent"
    "current recent";
  align-items: start;
  gap: 12px 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(
  .discovery-search,
  .discovery-job,
  .discovery-recent,
  .discovery-empty,
  .boundary-panel
) {
  min-width: 0;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 7% -18%, rgba(167, 123, 255, 0.105), transparent 34%),
    linear-gradient(145deg, rgba(30, 38, 52, 0.94), rgba(14, 22, 34, 0.93));
  border: 1px solid var(--admin-today-border);
  border-radius: 13px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(27px) saturate(116%);
  backdrop-filter: blur(27px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search {
  grid-area: search;
  padding: 18px 20px 16px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-current {
  grid-area: current;
  gap: 10px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent {
  grid-area: recent;
  align-self: start;
  overflow: hidden;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .section-heading {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading {
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading h2,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-section-heading h2,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-kicker {
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 730;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading h2,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-section-heading h2 {
  margin: 0 0 7px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-section-heading p {
  margin: 0;
  color: var(--admin-today-ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading > .status-badge {
  flex: 0 0 auto;
  color: #e8eaf0;
  background: rgba(77, 83, 101, 0.55);
  border-color: rgba(194, 163, 255, 0.28);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .notice {
  padding: 11px 13px;
  margin: 0 0 10px;
  color: #d8dcf0;
  background: linear-gradient(135deg, rgba(119, 80, 200, 0.22), rgba(75, 71, 118, 0.2));
  border-color: rgba(184, 149, 255, 0.4);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.46;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .notice strong {
  margin-bottom: 3px;
  color: #c8a9ff;
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.7fr);
  gap: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .field {
  gap: 6px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .field label,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .field-label {
  color: #f1f2f6;
  font-size: 11px;
  font-weight: 630;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search :is(.input, .select) {
  min-height: 41px;
  color: #f7f8fb;
  background: rgba(7, 13, 23, 0.37);
  border-color: rgba(218, 222, 232, 0.25);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search :is(.input, .select):focus {
  border-color: rgba(191, 153, 255, 0.86);
  box-shadow: 0 0 0 3px rgba(151, 103, 237, 0.17), inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .input::placeholder {
  color: #8f97a7;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .field-hint {
  color: var(--admin-today-muted);
  font-size: 9px;
  line-height: 1.4;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .form-actions {
  justify-content: flex-end;
  margin-top: 4px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .button {
  min-height: 37px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #7948db, #9a66ee);
  border-color: rgba(214, 188, 255, 0.46);
  box-shadow: 0 9px 21px rgba(69, 41, 121, 0.3), inset 0 1px rgba(255, 255, 255, 0.24);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(.button--secondary, .button--ghost) {
  color: #eef0f5;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(217, 221, 232, 0.22);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(.button--secondary, .button--ghost):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(198, 166, 255, 0.44);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job {
  overflow: hidden;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job .panel-section {
  padding: 14px 19px;
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-head {
  gap: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-heading {
  display: grid;
  gap: 6px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-kicker {
  display: block;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-heading .status-row {
  gap: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-heading > p {
  color: var(--admin-today-ink-soft);
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-time {
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .status-badge {
  min-height: 24px;
  padding: 0 9px;
  color: #e8ebf2;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .status--warning {
  color: #ffd37c;
  background: rgba(122, 77, 10, 0.25);
  border-color: rgba(242, 168, 43, 0.55);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .status--success {
  color: #8de4ab;
  background: rgba(26, 104, 59, 0.25);
  border-color: rgba(87, 203, 128, 0.48);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .status--info {
  color: #9fc3ff;
  background: rgba(36, 79, 139, 0.26);
  border-color: rgba(104, 162, 248, 0.47);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .status--danger {
  color: #ff9da2;
  background: rgba(120, 35, 43, 0.26);
  border-color: rgba(246, 96, 105, 0.5);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress-block {
  gap: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress-copy {
  color: #f1f2f6;
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress-copy span {
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress {
  height: 6px;
  color: #9561ee;
  background: rgba(202, 178, 255, 0.14);
  accent-color: #9561ee;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress::-webkit-progress-bar {
  background: rgba(202, 178, 255, 0.14);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress::-webkit-progress-value,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #8150dd, #aa79fb);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-counts {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count {
  padding: 9px 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count + .discovery-count {
  border-color: rgba(255, 255, 255, 0.13);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count span {
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count strong {
  color: #fff;
  font-size: 17px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-results-section > .section-heading {
  margin-bottom: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-results-section > .section-heading h2 {
  margin: 0 0 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 670;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-results-section > .section-heading p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-results-section > .section-heading .muted-copy {
  margin: 0;
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result-list {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result {
  min-height: 90px;
  padding: 10px 12px;
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result .item-title {
  color: #fff;
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result .item-meta,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result-note {
  color: var(--admin-today-muted);
  font-size: 9px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result-status {
  margin-top: 6px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result-note {
  margin-top: 5px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job .notice--danger {
  color: var(--admin-today-ink-soft);
  background: rgba(101, 39, 47, 0.24);
  border-color: rgba(246, 96, 105, 0.38);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job .notice--info {
  color: #d6e3ff;
  background: rgba(42, 79, 133, 0.26);
  border-color: rgba(105, 160, 241, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-poll-notice {
  color: #ffe0a6;
  background: rgba(104, 67, 10, 0.68);
  border-color: rgba(240, 171, 54, 0.54);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-section-heading {
  min-height: 79px;
  align-items: center;
  padding: 17px 20px;
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-list {
  max-height: 532px;
  overflow-y: auto;
  border-color: var(--admin-today-hairline);
  scrollbar-gutter: stable;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row {
  min-height: 76px;
  gap: 12px;
  padding: 14px 18px;
  color: var(--admin-today-ink);
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .item-title {
  color: #fff;
  font-size: 12px;
  font-weight: 650;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .item-meta {
  margin-top: 6px;
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .table-actions {
  min-width: 0;
  flex-wrap: nowrap;
  gap: 7px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .button--small {
  min-width: 57px;
  min-height: 31px;
  padding-inline: 9px;
  background: transparent;
  border-color: transparent;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .button--small[aria-current="page"] {
  color: #d7c2ff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 18px;
  border-top: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-footer .section-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #c5a5ff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-empty {
  min-height: 156px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-empty-mark {
  color: var(--admin-today-purple-soft);
  background: rgba(167, 123, 255, 0.1);
  border: 1px solid rgba(194, 163, 255, 0.25);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-empty h2 {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-empty p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-results-empty {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .boundary-panel {
  padding: 24px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .boundary-panel :is(h2, label) {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .boundary-panel p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .boundary-panel .field-hint {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .boundary-panel .input {
  color: #fff;
  background: rgba(7, 13, 23, 0.37);
  border-color: rgba(218, 222, 232, 0.25);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(
  .admin-lead-tabs .tab,
  .button,
  .section-link,
  .input,
  .select
):focus-visible {
  outline: 3px solid rgba(194, 163, 255, 0.76);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "search"
      "current"
      "recent";
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(.admin-leads-discovery-view) {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(.admin-leads-discovery-view) {
    padding-top: 17px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view {
    gap: 10px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header {
    min-height: 0;
    align-items: flex-start;
    margin: 0 1px 4px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header h1 {
    font-size: 36px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header p {
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs {
    min-height: 56px;
    padding: 6px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .admin-lead-tabs .tab {
    min-height: 44px;
    flex-basis: 116px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .button {
    min-height: 44px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search {
    padding: 18px 16px 16px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search > .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .form-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-search .form-actions .button {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-head {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-actions {
    width: 100%;
    justify-content: stretch;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job-actions .button {
    width: 100%;
    flex: 1 1 180px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count:nth-child(3) {
    border-left: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result .table-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row .table-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-result .table-actions .button {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(.admin-leads-discovery-view) {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-job .panel-section,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-discovery-section-heading,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-recent-row {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-counts {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-count + .discovery-count {
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    border-left: 0;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(
    .admin-lead-tabs,
    .discovery-search,
    .discovery-job,
    .discovery-recent,
    .discovery-empty,
    .boundary-panel
  ) {
    background: #202938;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(
    .admin-lead-tabs,
    .admin-lead-tabs .tab,
    .discovery-search,
    .discovery-job,
    .discovery-recent,
    .discovery-empty,
    .boundary-panel,
    .notice,
    .discovery-counts,
    .discovery-result-list,
    .discovery-result,
    .discovery-recent-row,
    .input,
    .select,
    .button
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-tabs .tab[aria-current="page"],
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view .button--primary {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .discovery-progress {
    color: Highlight;
    background: Canvas;
    border: 1px solid CanvasText;
    accent-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view :is(
    .page-header h1,
    .page-header p,
    h2,
    p,
    .admin-discovery-kicker,
    .item-title,
    .item-meta,
    .field label,
    .field-hint
  ) {
    color: CanvasText;
  }
}

/* Admin · Deal pipeline */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .page:has(.admin-pipeline-view) {
  width: min(1248px, calc(100% - 64px));
  max-width: none;
  padding: 25px 0 56px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view {
  display: grid;
  min-width: 0;
  gap: 22px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header {
  min-height: 126px;
  align-items: center;
  margin: 0 7px -2px;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header h1 {
  margin: 0 0 10px;
  color: #11151d;
  font-size: clamp(44px, 4.2vw, 58px);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header p {
  margin: 0;
  color: #3e4655;
  font-size: 16px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open-approvals {
  min-width: 172px;
  min-height: 50px;
  color: #fff;
  background: linear-gradient(145deg, rgba(35, 43, 56, 0.94), rgba(12, 19, 29, 0.96));
  border: 2px solid rgba(144, 92, 238, 0.88);
  border-radius: 999px;
  box-shadow: 0 13px 29px rgba(15, 20, 29, 0.25), 0 0 0 1px rgba(222, 204, 255, 0.22), inset 0 1px rgba(255, 255, 255, 0.13);
  font-size: 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open-approvals:hover {
  color: #fff;
  background: linear-gradient(145deg, rgba(48, 56, 71, 0.97), rgba(20, 27, 39, 0.98));
  border-color: #b88cff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs {
  min-height: 74px;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  margin: 0;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 8% -45%, rgba(167, 123, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(29, 37, 50, 0.97), rgba(11, 20, 31, 0.96));
  border: 1px solid var(--admin-today-border);
  border-radius: 16px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs .tab {
  min-height: 48px;
  flex: 1 0 auto;
  padding: 0 13px;
  color: #f0f2f6;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
  font-weight: 540;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(145deg, rgba(112, 72, 203, 0.91), rgba(64, 53, 126, 0.9));
  border-color: rgba(191, 151, 255, 0.9);
  box-shadow: 0 0 15px rgba(137, 85, 229, 0.4), inset 0 1px rgba(255, 255, 255, 0.2);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 7% -18%, rgba(167, 123, 255, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(25, 34, 47, 0.97), rgba(8, 18, 29, 0.97));
  border: 1px solid var(--admin-today-border);
  border-radius: 16px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(30px) saturate(116%);
  backdrop-filter: blur(30px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results-heading {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 26px;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results-heading h2 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-shadow: 0 0 13px rgba(174, 127, 255, 0.34);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results-heading span {
  color: var(--admin-today-muted);
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table {
  min-width: 1120px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table th {
  height: 45px;
  padding: 10px 22px;
  color: var(--admin-today-purple-soft);
  background: transparent;
  border-bottom-color: var(--admin-today-hairline);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 730;
  letter-spacing: 0.14em;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table th:first-child {
  width: 29%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table th:nth-child(2) {
  width: 13%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table th:nth-child(3) {
  width: 18%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table th:nth-child(4) {
  width: 18%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table td {
  height: 108px;
  padding: 18px 22px;
  color: #f5f6f9;
  border-bottom-color: var(--admin-today-hairline);
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-row--success > td:first-child {
  box-shadow: inset 4px 0 var(--admin-today-success);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-row--danger > td:first-child {
  box-shadow: inset 4px 0 var(--admin-today-danger);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business {
  min-width: 245px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business a {
  max-width: 330px;
  color: #c39bff;
  font-size: 15px;
  font-weight: 620;
  text-decoration-color: rgba(195, 155, 255, 0.72);
  text-underline-offset: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business a:hover {
  color: #e1ccff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business span {
  max-width: 330px;
  margin-top: 5px;
  color: #d7dbe3;
  font-family: inherit;
  font-size: 11px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business span:last-child {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-offer {
  display: block;
  max-width: 200px;
  color: #f4f5f8;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(.status-badge, .assignment-badge) {
  min-height: 35px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 540;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .status--neutral {
  color: #e1e5ed;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(217, 222, 233, 0.26);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .status--info {
  color: #83bdff;
  background: rgba(28, 92, 164, 0.21);
  border-color: rgba(66, 151, 245, 0.55);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .status--success {
  color: #85e5a7;
  background: rgba(21, 102, 58, 0.22);
  border-color: rgba(74, 201, 119, 0.52);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .status--warning {
  color: #ffd17a;
  background: rgba(118, 74, 8, 0.22);
  border-color: rgba(240, 166, 43, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .status--danger {
  color: #ff928f;
  background: rgba(126, 31, 43, 0.24);
  border-color: rgba(247, 82, 96, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .assignment-badge--assigned {
  color: #a9a6ff;
  background: rgba(55, 57, 139, 0.18);
  border-color: rgba(104, 110, 237, 0.5);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .assignment-badge:not(.assignment-badge--assigned) {
  color: #dce0e8;
  background: rgba(255, 255, 255, 0.045);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open {
  min-width: 78px;
  gap: 8px;
  color: #c49cff;
  background: transparent;
  border-color: transparent;
  border-radius: 8px;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open:hover {
  color: #fff;
  background: rgba(146, 91, 236, 0.12);
  border-color: rgba(178, 133, 255, 0.35);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open .ui-icon {
  width: 16px;
  height: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-refresh {
  color: #ff817e;
  background: rgba(102, 22, 32, 0.18);
  border-color: #e9464d;
  border-radius: 8px;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-refresh:hover {
  color: #fff;
  background: rgba(173, 40, 50, 0.35);
  border-color: #ff6b72;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results > .empty-state {
  min-height: 300px;
  margin: 0;
  color: var(--admin-today-ink-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results > .empty-state h2 {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results > .empty-state p {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .pagination {
  padding-top: 0;
  color: #303744;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(
  .admin-pipeline-tabs .tab,
  .admin-pipeline-open-approvals,
  .admin-pipeline-open,
  .admin-pipeline-refresh,
  .admin-pipeline-business a
):focus-visible {
  outline: 3px solid rgba(131, 78, 229, 0.86);
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table-shell {
    padding: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-list {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card {
    position: relative;
    color: var(--admin-today-ink);
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--admin-today-hairline);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card--success {
    box-shadow: inset 4px 0 var(--admin-today-success), inset 0 1px rgba(255, 255, 255, 0.035);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card--danger {
    box-shadow: inset 4px 0 var(--admin-today-danger), inset 0 1px rgba(255, 255, 255, 0.035);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card .mini-value span {
    color: var(--admin-today-muted);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card .mini-value strong {
    color: #fff;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .page:has(.admin-pipeline-view) {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(100px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view {
    gap: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header {
    min-height: 0;
    align-items: stretch;
    margin: 0 1px 3px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header h1 {
    font-size: 38px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header p {
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header .page-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open-approvals {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs {
    min-height: 58px;
    padding: 6px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs .tab {
    min-width: max-content;
    min-height: 44px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results-heading {
    padding: 15px 17px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-table-shell {
    padding: 10px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-card {
    padding: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-mobile-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(
    .admin-pipeline-open-approvals,
    .admin-pipeline-tabs .tab,
    .admin-pipeline-open,
    .admin-pipeline-refresh
  ) {
    min-height: 44px;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .page:has(.admin-pipeline-view) {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business a,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-business span {
    max-width: 230px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(
    .admin-pipeline-tabs,
    .admin-pipeline-results
  ) {
    background: #202938;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(
    .admin-pipeline-tabs,
    .admin-pipeline-tabs .tab,
    .admin-pipeline-results,
    .admin-pipeline-mobile-card,
    .button,
    .status-badge,
    .assignment-badge
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-tabs .tab[aria-current="page"] {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] :is(
    .admin-pipeline-results-heading h2,
    .admin-pipeline-business a,
    .admin-pipeline-business span,
    .admin-pipeline-offer,
    .mini-value span,
    .mini-value strong
  ) {
    color: CanvasText;
  }
}

/* Admin · Billing command center */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .page:has(.admin-billing-view) {
  width: min(1268px, calc(100% - 64px));
  max-width: none;
  padding: 24px 0 58px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view {
  display: grid;
  min-width: 0;
  gap: 13px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header {
  min-height: 76px;
  align-items: center;
  margin: 0 4px;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header h1 {
  margin: 0 0 6px;
  color: #12161e;
  font-size: clamp(35px, 3.2vw, 43px);
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header p {
  max-width: 880px;
  margin: 0;
  color: #424956;
  font-size: 13px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-won-deals {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(145deg, rgba(36, 44, 57, 0.94), rgba(12, 19, 29, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 13px 28px rgba(15, 20, 29, 0.23), inset 0 1px rgba(255, 255, 255, 0.12);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-won-deals:hover {
  color: #fff;
  background: linear-gradient(145deg, rgba(51, 60, 76, 0.97), rgba(19, 27, 39, 0.98));
  border-color: rgba(255, 255, 255, 0.32);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metrics {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 5% -38%, rgba(167, 123, 255, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(27, 36, 49, 0.97), rgba(8, 18, 29, 0.97));
  border: 1px solid var(--admin-today-border);
  border-radius: 15px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 21px;
  color: var(--admin-today-ink);
  border-right: 1px solid var(--admin-today-hairline);
  text-decoration: none;
  transition: background 160ms ease, box-shadow 160ms ease;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric:last-child {
  border-right: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 -3px rgba(167, 123, 255, 0.58);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(117, 80, 194, 0.12);
  border: 1px solid rgba(181, 139, 255, 0.38);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(141, 85, 236, 0.12), inset 0 1px rgba(255, 255, 255, 0.08);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-icon .ui-icon {
  width: 25px;
  height: 25px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric--info .admin-billing-metric-icon {
  color: #a47dff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric--success .admin-billing-metric-icon {
  color: var(--admin-today-success);
  background: rgba(36, 142, 82, 0.12);
  border-color: rgba(82, 216, 133, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric--danger .admin-billing-metric-icon {
  color: var(--admin-today-danger);
  background: rgba(151, 37, 51, 0.12);
  border-color: rgba(255, 89, 101, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-copy > span {
  color: #e2e5eb;
  font-size: 12px;
  font-weight: 570;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-copy strong {
  color: #fff;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-copy small {
  max-width: 190px;
  color: var(--admin-today-muted);
  font-size: 10px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-state {
  position: absolute;
  top: 47px;
  right: 18px;
  min-width: 47px;
  padding: 4px 8px;
  color: #e3e7ed;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 650;
  text-align: center;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric--danger .admin-billing-metric-state {
  color: #ff9a9e;
  background: rgba(175, 45, 57, 0.34);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .billing-target-notice,
  .billing-setup-notice,
  .billing-settlement-warning
) {
  margin: 0;
  border-radius: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning {
  display: grid;
  min-height: 68px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: #245394;
  background: rgba(226, 239, 255, 0.78);
  border-color: rgba(86, 151, 244, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  backdrop-filter: blur(18px) saturate(110%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #4d8ee7;
  border-radius: 50%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning > span .ui-icon {
  width: 5px;
  height: 5px;
  fill: currentColor;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning strong {
  color: #235091;
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning p {
  margin: 4px 0 0;
  color: #285ba1;
  font-size: 10px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-workspace {
  display: grid;
  min-width: 0;
  min-height: 582px;
  grid-template-columns: 220px 326px minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-views,
  .admin-billing-history,
  .admin-billing-detail
) {
  min-width: 0;
  overflow: hidden;
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 7% -16%, rgba(167, 123, 255, 0.09), transparent 33%),
    linear-gradient(145deg, rgba(24, 33, 46, 0.97), rgba(7, 17, 28, 0.97));
  border: 1px solid var(--admin-today-border);
  border-radius: 14px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(29px) saturate(116%);
  backdrop-filter: blur(29px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views {
  display: flex;
  flex-direction: column;
  padding: 14px 10px 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-panel-heading {
  min-width: 0;
  padding: 2px 8px 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-panel-heading h2 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.32);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  padding: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab {
  display: grid;
  min-width: 0;
  min-height: 39px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: #eef0f5;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 530;
  text-align: left;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(145deg, rgba(111, 73, 204, 0.86), rgba(63, 53, 124, 0.78));
  border-color: rgba(190, 149, 255, 0.75);
  box-shadow: 0 0 13px rgba(136, 84, 230, 0.27), inset 0 1px rgba(255, 255, 255, 0.17);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab strong,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab i {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  color: #f3f4f7;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 650;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note {
  display: grid;
  gap: 8px;
  padding: 14px 12px;
  margin-top: auto;
  color: #e7eaf0;
  background: rgba(5, 13, 23, 0.34);
  border: 1px solid var(--admin-today-hairline);
  border-radius: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note h3 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 9px;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note strong {
  color: #fff;
  font-size: 18px;
  font-weight: 590;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note small {
  margin: 0;
  color: #d1d5de;
  font-size: 9px;
  line-height: 1.5;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note small {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history {
  display: flex;
  flex-direction: column;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-heading {
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 14px 14px;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-heading > div {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-heading p {
  margin: 10px 0 0;
  color: #d3d7df;
  font-size: 9px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-heading > span {
  flex: 0 0 auto;
  color: #f1f2f5;
  font-size: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-list {
  display: grid;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(183, 145, 255, 0.5) transparent;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item {
  display: grid;
  min-width: 0;
  min-height: 137px;
  align-content: center;
  gap: 5px;
  padding: 15px 14px;
  color: #f5f6f8;
  background: transparent;
  border-bottom: 1px solid var(--admin-today-hairline);
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item.is-selected {
  background:
    radial-gradient(circle at 0 0, rgba(151, 100, 246, 0.17), transparent 45%),
    rgba(16, 25, 39, 0.88);
  box-shadow: inset 3px 0 #9a68f2, inset 0 0 0 1px rgba(172, 118, 255, 0.72);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-kicker {
  overflow: hidden;
  color: var(--admin-today-muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item > strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 610;
  line-height: 1.3;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item > small {
  overflow: hidden;
  color: #d2d6df;
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-bottom b {
  color: #fff;
  font-size: 11px;
  font-weight: 570;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-bottom .status-badge {
  min-height: 25px;
  padding: 3px 8px;
  font-size: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status-badge {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status--neutral {
  color: #dce1e9;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(218, 224, 234, 0.2);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status--info {
  color: #8fc2ff;
  background: rgba(39, 102, 176, 0.2);
  border-color: rgba(82, 160, 247, 0.38);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status--success {
  color: #82e2a4;
  background: rgba(24, 112, 63, 0.2);
  border-color: rgba(75, 205, 122, 0.38);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status--warning {
  color: #ffd17c;
  background: rgba(130, 82, 9, 0.2);
  border-color: rgba(242, 170, 48, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .status--danger {
  color: #ff969b;
  background: rgba(137, 33, 46, 0.22);
  border-color: rgba(247, 80, 94, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-history-empty,
  .admin-billing-detail-empty
) {
  display: grid;
  min-height: 300px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--admin-today-muted);
  text-align: center;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-history-empty,
  .admin-billing-detail-empty
) > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: var(--admin-today-purple-soft);
  background: rgba(138, 84, 226, 0.1);
  border: 1px solid rgba(182, 140, 255, 0.3);
  border-radius: 50%;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-history-empty,
  .admin-billing-detail-empty
) strong,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-detail-empty h2 {
  margin: 0;
  color: #fff;
  font-size: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-history-empty,
  .admin-billing-detail-empty
) p {
  max-width: 330px;
  margin: 0;
  color: var(--admin-today-muted);
  font-size: 10px;
  line-height: 1.5;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-detail {
  display: flex;
  flex-direction: column;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice {
  display: grid;
  min-width: 0;
  height: 100%;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-header {
  display: flex;
  min-width: 0;
  min-height: 132px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-title {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-title > span {
  max-width: 100%;
  overflow: hidden;
  color: var(--admin-today-muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-title h2 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 630;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-title p {
  margin: 0;
  color: #d1d5de;
  font-size: 9px;
  overflow-wrap: anywhere;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-title .status-badge {
  min-height: 27px;
  margin-top: 4px;
  padding: 3px 9px;
  font-size: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions {
  display: flex;
  min-width: 0;
  max-width: 52%;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions .button {
  min-height: 36px;
  padding: 0 12px;
  color: #f5f6f8;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.23);
  border-radius: 8px;
  box-shadow: none;
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #7444d6, #9f6cf3);
  border-color: rgba(212, 184, 255, 0.45);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions .button--danger {
  color: #ff999d;
  background: rgba(121, 30, 41, 0.2);
  border-color: rgba(242, 72, 85, 0.56);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-facts {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--admin-today-hairline);
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact {
  display: grid;
  min-width: 0;
  min-height: 69px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-right: 1px solid var(--admin-today-hairline);
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(4n) {
  border-right: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(n + 5) {
  border-bottom: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact-icon {
  color: #d8dce5;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact-icon .ui-icon {
  width: 19px;
  height: 19px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact small {
  color: var(--admin-today-muted);
  font-size: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact strong {
  color: #fff;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-commission {
  display: grid;
  min-height: 54px;
  grid-template-columns: 24px auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: #d7dbe3;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-commission > span:first-child {
  color: #e8ebf1;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-commission > span:nth-child(2) {
  color: var(--admin-today-muted);
  font-size: 9px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-commission strong {
  color: #fff;
  font-size: 11px;
  font-weight: 570;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-heading h3 {
  margin: 0;
  color: var(--admin-today-purple-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 740;
  letter-spacing: 0.13em;
  text-shadow: 0 0 12px rgba(174, 127, 255, 0.3);
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-heading .status-badge {
  min-height: 27px;
  padding: 3px 9px;
  font-size: 8px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-steps {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 148px;
  align-content: start;
  gap: 7px;
  padding: 22px 13px 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step:not(:last-child)::after {
  position: absolute;
  z-index: -1;
  top: 42px;
  left: 100%;
  width: 32px;
  content: "";
  border-top: 1px dashed rgba(216, 220, 229, 0.46);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--danger {
  border-color: rgba(239, 75, 88, 0.75);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--warning {
  border-color: rgba(240, 166, 43, 0.62);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--success {
  border-color: rgba(74, 201, 119, 0.52);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--info {
  border-color: rgba(66, 151, 245, 0.52);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-number {
  position: absolute;
  top: -10px;
  left: -8px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #18202c;
  background: #b9c1ce;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  font-size: 9px;
  font-weight: 720;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--danger .admin-billing-journey-number {
  color: #fff;
  background: var(--admin-today-danger);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--success .admin-billing-journey-number {
  color: #0e2c1a;
  background: var(--admin-today-success);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step--info .admin-billing-journey-number {
  color: #10263f;
  background: #8cbeff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step small {
  color: var(--admin-today-muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step strong {
  color: #fff;
  font-size: 11px;
  font-weight: 580;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step p {
  margin: 0;
  color: #c5cad4;
  font-size: 9px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail {
  min-width: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-row {
  min-height: 580px;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 16px;
  padding: 18px;
  color: var(--admin-today-ink);
  border: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-row-heading h3 {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-row-heading p,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-kicker {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail :is(
  .billing-fact,
  .billing-scope,
  .customer-quote-items
) {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail :is(
  .billing-fact span,
  .billing-fact small,
  .billing-scope span
) {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail :is(
  .billing-fact strong,
  .billing-scope p
) {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-row-actions {
  justify-content: flex-start;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .button {
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #7444d6, #9f6cf3);
  border-color: rgba(212, 184, 255, 0.45);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
  .admin-billing-metric,
  .admin-billing-won-deals,
  .admin-billing-views .billing-tabs .tab,
  .admin-billing-history-item,
  .admin-billing-invoice-actions .button,
  .admin-billing-invoice-actions a
):focus-visible {
  outline: 3px solid rgba(166, 111, 255, 0.92);
  outline-offset: 3px;
}

@media (max-width: 1279px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric {
    padding-right: 15px;
    padding-left: 15px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric-state {
    right: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-workspace {
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.6fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr) minmax(210px, 0.35fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-panel-heading {
    padding: 0 7px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs {
    display: flex;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab {
    min-width: max-content;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note {
    display: block;
    padding: 10px;
    margin: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note strong {
    display: inline;
    margin-left: 5px;
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note p,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note small {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions {
    max-width: 58%;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .page:has(.admin-billing-view) {
    width: 100%;
    padding: 20px calc(18px + env(safe-area-inset-right)) calc(108px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric:nth-child(2) {
    border-right: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-today-hairline);
  }
}

@media (max-width: 820px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-workspace {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views {
    grid-column: auto;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-list {
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    max-height: 390px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item {
    border-right: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice {
    min-height: 580px;
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view {
    gap: 10px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header {
    min-height: 0;
    align-items: stretch;
    margin: 0 1px 4px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header h1 {
    font-size: 37px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header p {
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header .page-actions,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-won-deals {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric {
    min-height: 106px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-recovery-note {
    display: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning {
    align-items: start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-header {
    align-items: stretch;
    flex-direction: column;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-invoice-actions .button {
    min-height: 44px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(4n) {
    border-right: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(2n) {
    border-right: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(n + 5) {
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(n + 7) {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-steps {
    gap: 14px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step:not(:last-child)::after {
    width: 15px;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .page:has(.admin-billing-view) {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-metric:last-child {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-heading {
    min-height: 0;
    flex-direction: column;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(2n),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(4n),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:nth-child(n + 7) {
    border-right: 0;
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-fact:last-child {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step {
    min-height: 120px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-journey-step:not(:last-child)::after {
    top: 100%;
    left: 26px;
    width: 0;
    height: 20px;
    border-top: 0;
    border-left: 1px dashed rgba(216, 220, 229, 0.46);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-candidate-detail .billing-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
    .admin-billing-metrics,
    .admin-billing-views,
    .admin-billing-history,
    .admin-billing-detail
  ) {
    background: #202938;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .billing-settlement-warning {
    background: #e5f0ff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
    .admin-billing-metrics,
    .admin-billing-metric,
    .billing-settlement-warning,
    .admin-billing-views,
    .admin-billing-views .billing-tabs,
    .admin-billing-views .billing-tabs .tab,
    .admin-billing-recovery-note,
    .admin-billing-history,
    .admin-billing-history-item,
    .admin-billing-detail,
    .admin-billing-fact,
    .admin-billing-journey-step,
    .button,
    .status-badge
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-views .billing-tabs .tab[aria-current="page"],
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-history-item.is-selected {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] :is(
    .admin-billing-panel-heading h2,
    .admin-billing-metric-copy span,
    .admin-billing-metric-copy strong,
    .admin-billing-metric-copy small,
    .admin-billing-history-item strong,
    .admin-billing-history-item small,
    .admin-billing-invoice-title h2,
    .admin-billing-invoice-title p,
    .admin-billing-fact small,
    .admin-billing-fact strong,
    .admin-billing-journey-heading h3,
    .admin-billing-journey-step small,
    .admin-billing-journey-step strong,
    .admin-billing-journey-step p
  ) {
    color: CanvasText;
  }
}

/* Admin route continuity · leads, team detail, and payouts
 *
 * These routes keep their existing workflows and hooks. This layer only brings
 * the older route bodies into the same projected-glass system as Today,
 * Approvals, Discover, Team, Pipeline, and Billing.
 */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(:is(.admin-leads-list-view, .admin-lead-detail-view)),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-member-view),
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .page:has(.admin-payouts-view) {
  width: min(1248px, calc(100% - 64px));
  max-width: none;
  padding: 25px 0 58px;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) {
  --surface: rgba(27, 35, 48, 0.92);
  --surface-muted: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --surface-subtle: rgba(255, 255, 255, 0.025);
  --ink: var(--admin-today-ink);
  --ink-soft: var(--admin-today-ink-soft);
  --ink-muted: var(--admin-today-muted);
  --ink-faint: #929aa8;
  --border: var(--admin-today-hairline);
  --border-strong: rgba(210, 189, 255, 0.32);
  --control-border: rgba(213, 220, 233, 0.34);
  --accent: var(--admin-today-purple-soft);
  --accent-soft: rgba(139, 91, 232, 0.16);
  --success: #7ce1a2;
  --success-soft: rgba(25, 115, 65, 0.22);
  --warning: #ffd17a;
  --warning-soft: rgba(126, 79, 9, 0.24);
  --danger: #ff969a;
  --danger-soft: rgba(127, 35, 46, 0.25);
  --info: #8bc1ff;
  --info-soft: rgba(37, 91, 156, 0.23);
  display: grid;
  min-width: 0;
  gap: 18px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) > .page-header {
  min-width: 0;
  min-height: 112px;
  align-items: center;
  margin: 0 7px -2px;
  color: var(--admin-today-page-ink);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-team-member-view,
  .admin-payouts-view
) > .page-header h1 {
  margin: 0 0 8px;
  color: #11151d;
  font-size: clamp(42px, 4vw, 54px);
  font-weight: 660;
  letter-spacing: -0.052em;
  line-height: 1;
}

.app-shell[data-shell-key^="admin:"] .admin-lead-detail-view > .page-header {
  min-height: 82px;
}

.app-shell[data-shell-key^="admin:"] .admin-lead-detail-view > .page-header h1 {
  margin: 0 0 7px;
  color: #11151d;
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) > .page-header p {
  max-width: 790px;
  margin: 0;
  color: #3e4655;
  font-size: 14px;
  line-height: 1.45;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) > .back-link {
  width: max-content;
  margin: 0 7px -7px;
  color: #303744;
  font-size: 12px;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) > .back-link:hover {
  color: #6b3fbd;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) .button--primary {
  color: #fff;
  background: linear-gradient(135deg, #7b4dd9, #a675f3);
  border-color: rgba(229, 214, 255, 0.35);
  box-shadow: 0 10px 23px rgba(66, 36, 122, 0.2), inset 0 1px rgba(255, 255, 255, 0.22);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) .button--primary:hover {
  color: #fff;
  background: linear-gradient(135deg, #8a59e8, #b182fa);
  border-color: rgba(242, 234, 255, 0.5);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.button--secondary, .button--ghost) {
  color: #f1f3f7;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(219, 225, 235, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.button--secondary, .button--ghost):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(211, 190, 255, 0.42);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.panel, .filter-panel, .data-table-wrap, .empty-state) {
  color: var(--admin-today-ink);
  background:
    radial-gradient(circle at 7% -24%, rgba(167, 123, 255, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(28, 36, 49, 0.96), rgba(10, 19, 30, 0.95));
  border: 1px solid var(--admin-today-border);
  border-radius: 16px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.section-heading h2, .panel h2, .panel h3, .empty-state h2, .empty-state strong) {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.section-heading p, .panel p, .empty-state p, .empty-inline, .field-hint, .item-meta) {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.input, .select, textarea) {
  color: #f7f8fb;
  background: rgba(5, 13, 23, 0.34);
  border-color: rgba(211, 218, 231, 0.27);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.input, .select, textarea)::placeholder {
  color: #9199a7;
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.input, .select, textarea):focus {
  border-color: rgba(186, 144, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(155, 98, 245, 0.15);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.status-badge, .assignment-badge, .stage-badge) {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.status--neutral, .assignment-badge:not(.assignment-badge--assigned), .stage-badge) {
  color: #dce1e9;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(217, 222, 233, 0.23);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) :is(.status--info, .assignment-badge--assigned) {
  color: #8cc4ff;
  background: rgba(28, 91, 164, 0.23);
  border-color: rgba(73, 153, 242, 0.45);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) .status--success {
  color: #86e5a8;
  background: rgba(21, 102, 58, 0.23);
  border-color: rgba(75, 199, 119, 0.46);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) .status--warning {
  color: #ffd17a;
  background: rgba(118, 74, 8, 0.24);
  border-color: rgba(240, 166, 43, 0.5);
}

.app-shell[data-shell-key^="admin:"] :is(
  .admin-leads-list-view,
  .admin-lead-detail-view,
  .admin-team-member-view,
  .admin-payouts-view
) .status--danger {
  color: #ff969a;
  background: rgba(126, 31, 43, 0.25);
  border-color: rgba(247, 82, 96, 0.5);
}

/* Admin lead queues */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs {
  min-height: 62px;
  align-items: center;
  gap: 7px;
  padding: 8px;
  margin: 0;
  background:
    radial-gradient(circle at 8% -45%, rgba(167, 123, 255, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(29, 37, 50, 0.97), rgba(11, 20, 31, 0.96));
  border: 1px solid var(--admin-today-border);
  border-radius: 16px;
  box-shadow: var(--admin-today-shadow);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs .tab {
  min-height: 44px;
  flex: 1 0 auto;
  color: #eef1f5;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs .tab[aria-current="page"] {
  color: #fff;
  background: linear-gradient(145deg, rgba(112, 72, 203, 0.91), rgba(64, 53, 126, 0.9));
  border-color: rgba(191, 151, 255, 0.85);
  box-shadow: 0 0 15px rgba(137, 85, 229, 0.36), inset 0 1px rgba(255, 255, 255, 0.18);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .filter-panel {
  padding: 18px;
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .field-label {
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .filter-summary {
  padding: 0 3px;
  color: #3e4655;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .data-table-wrap {
  margin: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .data-table {
  min-width: 1040px;
  color: var(--admin-today-ink);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .data-table th {
  padding: 12px 17px;
  color: var(--admin-today-purple-soft);
  background: transparent;
  border-bottom-color: var(--admin-today-hairline);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .data-table td {
  min-height: 84px;
  padding: 16px 17px;
  color: #f4f6f9;
  border-bottom-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .table-primary a {
  color: #c39bff;
  font-size: 13px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .table-primary a:hover {
  color: #e2cdff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .table-primary span {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view input[type="checkbox"] {
  accent-color: #9f6af4;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .pagination {
  padding-top: 0;
  color: #303744;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .lead-mobile-card {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--admin-today-hairline);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .lead-mobile-card .mini-value span {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .lead-mobile-card .mini-value strong {
  color: #fff;
}

/* Admin lead detail */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .lead-layout {
  gap: 18px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .lead-sidebar {
  top: calc(var(--header-height) + 14px);
  gap: 14px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .tabs--workspace {
  min-height: 58px;
  padding: 7px;
  background: linear-gradient(145deg, rgba(32, 41, 55, 0.94), rgba(13, 22, 34, 0.93));
  border-color: var(--admin-today-border);
  box-shadow: var(--admin-today-shadow);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .tabs--workspace .tab {
  min-height: 42px;
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .tabs--workspace .tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .tabs--workspace .tab[aria-current="page"] {
  color: #fff;
  background: rgba(138, 91, 226, 0.23);
  box-shadow: inset 0 -2px #ad7cff, inset 0 0 0 1px rgba(193, 157, 255, 0.2);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .panel {
  padding: 20px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .panel--flush {
  padding: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .panel-section {
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view :is(
  .release-step,
  .signal-card,
  .script-card,
  .peer-metric,
  .application-answer
) {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--admin-today-hairline);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .release-step.is-current {
  background: rgba(143, 92, 232, 0.12);
  border-color: rgba(187, 145, 255, 0.38);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .release-step.is-complete {
  background: rgba(27, 114, 65, 0.16);
  border-color: rgba(83, 199, 124, 0.33);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .release-step-number {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view :is(
  .metric-list,
  .compact-list,
  .billing-list
) {
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view :is(
  .compact-item,
  .metric-row,
  .timeline-item,
  .billing-row
) {
  color: var(--admin-today-ink);
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .notice {
  color: var(--admin-today-ink-soft);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .notice--info {
  background: rgba(31, 85, 148, 0.22);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .notice--warning {
  background: rgba(118, 74, 8, 0.24);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .notice--danger {
  background: rgba(126, 31, 43, 0.25);
}

/* Admin team member */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid {
  gap: 0;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% -35%, rgba(167, 123, 255, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(28, 37, 50, 0.97), rgba(9, 18, 29, 0.96));
  border: 1px solid var(--admin-today-border);
  border-radius: 16px;
  box-shadow: var(--admin-today-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(116%);
  backdrop-filter: blur(28px) saturate(116%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count {
  min-height: 118px;
  color: var(--admin-today-ink);
  background: linear-gradient(145deg, rgba(53, 63, 80, 0.28), rgba(13, 22, 34, 0.16));
  border: 0;
  border-right: 1px solid var(--admin-today-hairline);
  border-radius: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count:last-child,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count:last-child {
  border-right: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .action-count-top,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .action-count-foot,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .action-count-top,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .action-count-foot {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .action-count-value,
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .action-count-value {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .panel {
  border-radius: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view :is(
  .compact-item,
  .offboarding-reason,
  .offboarding-effect,
  .admin-legal-record,
  .legal-document-record,
  .provider-account-reset-record
) {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view :is(
  .offboarding-record-meta,
  .offboarding-effect-grid,
  .info-grid,
  .compact-list,
  .admin-legal-records,
  .legal-document-list--admin
) {
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .admin-legal-record :is(strong, span, small) {
  color: inherit;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .admin-legal-record > div > :is(span, small) {
  color: var(--admin-today-ink-soft);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .offboarding-danger-zone {
  background: rgba(117, 30, 42, 0.15);
  border-color: rgba(240, 82, 96, 0.32);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view .notice {
  color: var(--admin-today-ink-soft);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Admin payouts */
.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view {
  gap: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > :is(
  .payout-boundary,
  .weekly-payout-schedule
) {
  margin: 0;
  color: var(--admin-today-ink-soft);
  background: rgba(22, 46, 74, 0.72);
  border: 1px solid rgba(120, 176, 244, 0.36);
  box-shadow: 0 12px 30px rgba(8, 15, 26, 0.12), inset 0 1px rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(22px) saturate(112%);
  backdrop-filter: blur(22px) saturate(112%);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-boundary {
  background: rgba(100, 67, 15, 0.7);
  border-color: rgba(242, 175, 66, 0.42);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > :is(
  .payout-boundary,
  .weekly-payout-schedule
) :is(strong, b, p, small) {
  color: inherit;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .payouts-stack {
  gap: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-section {
  border-radius: 16px;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-section > .section-heading {
  margin: 0;
  border-bottom: 1px solid var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-list {
  border-top: 0;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-row {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.018);
  border-bottom-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view :is(
  .billing-row-heading h3,
  .billing-fact strong,
  .pay-run-review-heading h3
) {
  color: #fff;
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view :is(
  .billing-kicker,
  .billing-row-heading p,
  .billing-fact span,
  .billing-action-note,
  .pay-run-review-heading p,
  .pay-run-record-ref
) {
  color: var(--admin-today-muted);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view :is(
  .billing-fact,
  .pay-run-review-list,
  .pay-run-review-item,
  .pay-run-decision-record,
  .pay-run-decision-reason,
  .pay-run-payment-step
) {
  color: var(--admin-today-ink);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--admin-today-hairline);
}

.app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-section > .empty-inline {
  color: var(--admin-today-muted);
  border-top-color: var(--admin-today-hairline);
}

@media (max-width: 1100px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count {
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count:nth-child(2n),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count:nth-child(2n) {
    border-right: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}

@media (max-width: 960px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(:is(.admin-leads-list-view, .admin-lead-detail-view)),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-member-view),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .page:has(.admin-payouts-view) {
    width: 100%;
    padding: 20px calc(20px + env(safe-area-inset-right)) calc(104px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .lead-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .lead-sidebar {
    position: static;
  }
}

@media (max-width: 700px) {
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) {
    gap: 13px;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header {
    min-height: 0;
    align-items: stretch;
    margin: 0 1px 3px;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header h1,
  .app-shell[data-shell-key^="admin:"] .admin-lead-detail-view > .page-header h1 {
    font-size: 36px;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header p {
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header .page-actions,
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header .button {
    width: 100%;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs {
    min-height: 56px;
    padding: 6px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-list-view > .admin-lead-tabs .tab {
    min-width: max-content;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .release-workflow-grid,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-lead-detail-view .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .page:has(:is(.admin-leads-list-view, .admin-lead-detail-view)),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .page:has(.admin-team-member-view),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .page:has(.admin-payouts-view) {
    padding-right: calc(9px + env(safe-area-inset-right));
    padding-left: calc(9px + env(safe-area-inset-left));
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count:nth-child(2n),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count:nth-child(2n) {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--admin-today-hairline);
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-member-view > .action-count-grid .action-count:last-child,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view > .payout-count-grid .action-count:last-child {
    border-bottom: 0;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="payouts"] .admin-payouts-view .billing-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) :is(
    .panel,
    .filter-panel,
    .data-table-wrap,
    .empty-state,
    .admin-lead-tabs,
    .tabs--workspace,
    .action-count-grid
  ) {
    background: #202938;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (forced-colors: active) {
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ),
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) :is(
    .panel,
    .filter-panel,
    .data-table-wrap,
    .empty-state,
    .admin-lead-tabs,
    .tabs--workspace,
    .action-count-grid,
    .action-count,
    .lead-mobile-card,
    .release-step,
    .billing-row,
    .billing-fact,
    .notice,
    .button,
    .status-badge,
    .assignment-badge,
    .stage-badge
  ) {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-lead-detail-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) :is(.tab[aria-current="page"], .button--primary) {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }
}

/* Crisp floating workspace shell
 *
 * Keep the projected-light background and glass hierarchy without asking the
 * browser to continuously re-rasterize the entire viewport. Menus, dialogs,
 * and notification drawers remain true floating overlays; structural chrome
 * and route content use stable layered fills.
 */
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) {
  --today-dark-glass: rgba(21, 27, 38, 0.94);
  --today-dark-glass-strong: rgba(26, 32, 44, 0.97);
  --today-light-glass: rgba(226, 228, 233, 0.8);
  --today-light-glass-strong: rgba(240, 241, 244, 0.91);
  --admin-today-dark-glass: rgba(19, 25, 36, 0.94);
  --admin-today-dark-glass-strong: rgba(26, 32, 44, 0.97);
  --admin-today-light-glass: rgba(218, 221, 227, 0.8);
  --admin-today-light-glass-strong: rgba(242, 243, 246, 0.91);
  text-rendering: auto;
}

body:has(.app-shell[data-shell-key^="admin:"]) {
  background-attachment: scroll;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"])::before,
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"])::after,
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .sidebar::after {
  display: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .sidebar::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar {
  background: transparent;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar::before {
  display: block;
  inset: 0;
  background:
    radial-gradient(rgba(255, 255, 255, 0.34) 0.55px, transparent 0.65px) 0 0 / 4px 4px,
    linear-gradient(112deg, rgba(235, 237, 241, 0.985), rgba(177, 184, 194, 0.985) 53%, rgba(62, 77, 96, 0.985));
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 140ms ease-out;
}

.app-shell[data-shell-key^="admin:"] .topbar::before {
  background:
    radial-gradient(rgba(255, 255, 255, 0.3) 0.55px, transparent 0.65px) 0 0 / 4px 4px,
    linear-gradient(112deg, rgba(236, 238, 242, 0.985), rgba(188, 195, 205, 0.985) 55%, rgba(75, 89, 108, 0.985));
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]).has-scrolled-content .topbar::before {
  opacity: 1;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]).is-route-loading .topbar::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  :is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar::before {
    transition: none;
  }
}

@media (forced-colors: active) {
  :is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar::before {
    background: Canvas;
    box-shadow: none;
  }
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) > .app-main,
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .page {
  filter: none;
  opacity: 1;
  transform: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .page,
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .page *,
:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .mobile-nav {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .page * {
  text-shadow: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) :is(
  .sales-topbar-breadcrumb,
  .admin-topbar-breadcrumb
) {
  min-height: 24px;
  padding: 0 10px;
  background: linear-gradient(145deg, rgba(247, 248, 250, 0.72), rgba(218, 222, 228, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(20, 27, 39, 0.1), inset 0 1px rgba(255, 255, 255, 0.66);
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) :is(
  .sales-topbar-search,
  .admin-topbar-search
) {
  position: relative;
  overflow: hidden;
  background: rgba(232, 235, 240, 0.88);
  border-color: rgba(42, 46, 58, 0.18);
  box-shadow: 0 10px 28px rgba(20, 27, 39, 0.11), inset 0 1px rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

:is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]).is-route-loading :is(
  .sales-topbar-search,
  .admin-topbar-search
)::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #8f62ea 35%, #b58cff 65%, transparent);
  transform: translateX(-240%);
  animation: workspace-search-progress 900ms ease-in-out infinite;
  pointer-events: none;
}

@keyframes workspace-search-progress {
  to {
    transform: translateX(340%);
  }
}

.app-shell[data-shell-key^="sales:"] .nav-link,
.app-shell[data-shell-key^="admin:"] .nav-link {
  color: rgba(247, 248, 250, 0.82);
  font-weight: 500;
}

.app-shell[data-shell-key^="sales:"] .nav-link[aria-current="page"],
.app-shell[data-shell-key^="admin:"] .nav-link[aria-current="page"] {
  font-weight: 600;
}

@media (min-width: 701px) {
  :is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .topbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 1099px) {
  :is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]) .mobile-nav {
    background: linear-gradient(145deg, rgba(232, 234, 239, 0.97), rgba(157, 167, 180, 0.96));
  }

  .app-shell[data-shell-key^="sales:"] .mobile-nav-link,
  .app-shell[data-shell-key^="admin:"] .mobile-nav-link {
    color: rgba(37, 43, 54, 0.82);
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.app-shell[data-shell-key^="sales:"], .app-shell[data-shell-key^="admin:"]).is-route-loading :is(
    .sales-topbar-search,
    .admin-topbar-search
  )::after {
    width: 100%;
    animation: none;
    transform: none;
  }
}

/* Laptop-density refinement
 *
 * The full desktop composition stays available on compact laptop viewports,
 * but its largest fixed-pixel surfaces step down slightly. This is layout
 * density—not visual scaling—so type remains sharp and browser zoom continues
 * to work normally.
 */
@media (min-width: 961px) and (max-width: 1399px) {
  .app-shell[data-shell-key^="sales:"][data-rendered-nav] {
    --sidebar-width: 200px;
    --header-height: 66px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] > .app-main {
    width: calc(100% - 200px);
    margin-left: 200px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .sidebar {
    inset: 12px auto 24px 12px;
    width: 200px;
    padding: 16px 12px 12px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .brand-lockup {
    gap: 11px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .brand-mark {
    width: 44px;
    height: 44px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .brand-mark img {
    width: 40px;
    height: 36px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .brand-copy strong {
    font-size: 18px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .brand-copy small {
    font-size: 11px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .side-nav {
    margin-top: 22px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .nav-link {
    min-height: 46px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    font-size: 13px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .nav-link .nav-icon {
    width: 36px;
    height: 36px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .nav-link .nav-icon .ui-icon {
    width: 19px;
    height: 19px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .account-menu {
    min-height: 60px;
    grid-template-columns: 39px minmax(0, 1fr) 16px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .account-menu .avatar {
    width: 39px;
    height: 39px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .topbar {
    min-height: 66px;
    grid-template-columns: minmax(150px, 1fr) minmax(300px, 460px) minmax(150px, 1fr);
    padding: 7px 26px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .sales-topbar-search {
    min-height: 40px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav] .page {
    width: min(1290px, calc(100% - 48px));
    min-height: calc(100vh - 66px);
    min-height: calc(100dvh - 66px);
    padding-bottom: 40px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="leads"] .page {
    padding-top: 28px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="chat"] .page,
  .app-shell[data-shell-key^="sales:"][data-rendered-nav="earnings"] .page {
    padding-top: 18px;
  }

  .app-shell[data-shell-key^="sales:"][data-rendered-nav="onboarding"] .page {
    padding-top: 17px;
  }

  .sales-today-heading h1,
  .sales-earnings-heading h1,
  .sales-account-heading h1 {
    font-size: 33px;
  }

  .sales-leads-heading {
    min-height: 78px;
  }

  .sales-leads-heading h1,
  .sales-deals-heading h1 {
    font-size: 45px;
  }

  .sales-leads-heading .sales-leads-submit {
    min-width: 172px;
    min-height: 50px;
  }

  .sales-deals-heading {
    min-height: 70px;
  }

  .sales-deals-heading-actions .button {
    min-height: 48px;
  }

  .sales-chat-heading {
    min-height: 71px;
  }

  .sales-chat-heading h1 {
    font-size: 40px;
  }

  .sales-resources-heading h1 {
    font-size: 38px;
  }

  .seller-lead-workspace .page-header-copy h1 {
    font-size: clamp(30px, 2.3vw, 41px);
  }

  .sales-leads-metrics {
    min-height: 102px;
  }

  .sales-leads-metric {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 30px;
  }

  .sales-leads-metric-icon {
    width: 46px;
    height: 46px;
  }

  .sales-leads-metric-icon .ui-icon {
    width: 33px;
    height: 33px;
  }

  .sales-leads-metric strong {
    font-size: 32px;
  }

  .sales-leads-results .data-table td {
    height: 78px;
  }

  .sales-deals-results .data-table td {
    height: 82px;
  }

  .app-shell[data-shell-key^="admin:"] {
    --sidebar-width: 220px;
    --header-height: 68px;
  }

  .app-shell[data-shell-key^="admin:"] > .app-main {
    width: calc(100% - 220px);
    margin-left: 220px;
  }

  .app-shell[data-shell-key^="admin:"] .sidebar {
    inset: 12px auto 16px 12px;
    width: 204px;
    padding: 16px 12px 12px;
  }

  .app-shell[data-shell-key^="admin:"] .brand-mark {
    width: 43px;
    height: 43px;
  }

  .app-shell[data-shell-key^="admin:"] .brand-mark img {
    width: 39px;
    height: 35px;
  }

  .app-shell[data-shell-key^="admin:"] .brand-copy strong {
    font-size: 18px;
  }

  .app-shell[data-shell-key^="admin:"] .side-nav {
    margin-top: 18px;
  }

  .app-shell[data-shell-key^="admin:"] .nav-link {
    min-height: 44px;
    grid-template-columns: 37px minmax(0, 1fr) auto;
    font-size: 12px;
  }

  .app-shell[data-shell-key^="admin:"] .nav-link .nav-icon {
    width: 36px;
    height: 36px;
  }

  .app-shell[data-shell-key^="admin:"] .nav-link .nav-icon .ui-icon {
    width: 19px;
    height: 19px;
  }

  .app-shell[data-shell-key^="admin:"] .topbar {
    min-height: 68px;
    grid-template-columns: minmax(150px, 1fr) minmax(280px, 480px) minmax(150px, 1fr);
    gap: 12px;
    padding: 8px 28px;
  }

  .app-shell[data-shell-key^="admin:"] .admin-topbar-search {
    min-height: 40px;
  }

  .app-shell[data-shell-key^="admin:"] .page {
    max-width: 1550px;
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
    padding: 32px 28px 64px;
  }

  .app-shell[data-shell-key^="admin:"] :is(
    .admin-today-view,
    .admin-approvals-view,
    .admin-leads-discovery-view,
    .admin-pipeline-view,
    .admin-team-directory,
    .admin-billing-view
  ) {
    max-width: none;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] .page {
    width: min(1295px, calc(100% - 48px));
    padding-top: 20px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="today"] :is(
    .admin-today-heading,
    .admin-today-view > .page-header
  ) h1 {
    font-size: 37px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header {
    min-height: 102px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="approvals"] .admin-approvals-view > .page-header h1,
  .app-shell[data-shell-key^="admin:"] :is(
    .admin-leads-list-view,
    .admin-team-member-view,
    .admin-payouts-view
  ) > .page-header h1 {
    font-size: 50px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header {
    min-height: 90px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="leads"] .admin-leads-discovery-view > .page-header h1 {
    font-size: 45px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header {
    min-height: 116px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-view > .page-header h1,
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header h1 {
    font-size: 54px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="pipeline"] .admin-pipeline-open-approvals {
    min-height: 46px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-directory > .page-header {
    min-height: 118px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter {
    min-height: 174px;
    padding: 21px 20px 22px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter :is(.input, .select),
  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-filter .button {
    min-height: 56px;
    font-size: 15px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table th {
    height: 64px;
    padding: 16px 22px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table td {
    height: 108px;
    padding: 21px 22px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .person-row {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="team"] .admin-team-table .avatar {
    width: 52px;
    height: 52px;
  }

  .app-shell[data-shell-key^="admin:"][data-rendered-nav="billing"] .admin-billing-view > .page-header h1 {
    font-size: 40px;
  }

  .app-shell[data-shell-key^="admin:"] .admin-lead-detail-view > .page-header h1 {
    font-size: clamp(30px, 2.8vw, 41px);
  }
}
