/* web/design-system.css */
:root {
  color-scheme: light;
  --alg-canvas-ivory: #f4f0ea;
  --alg-canvas-soft: #faf7f2;
  --alg-surface-white: #ffffff;
  --alg-surface-raised: #fffdf9;
  --alg-surface-subtle: #f7f3ec;
  --alg-surface-disabled: #ece8e0;
  --alg-ink-primary: #1b1b19;
  --alg-ink-secondary: #3c403d;
  --alg-text-muted: #6b736d;
  --alg-text-subtle: #929993;
  --alg-text-disabled: #adb2ae;
  --alg-text-inverse: #ffffff;
  --alg-emerald-950: #153f32;
  --alg-emerald-900: #21453a;
  --alg-emerald-800: #275342;
  --alg-emerald-700: #2e604b;
  --alg-emerald-600: #39735a;
  --alg-emerald-100: #e7f0eb;
  --alg-emerald-050: #f1f6f3;
  --alg-gold-700: #a97d3c;
  --alg-gold-600: #b99054;
  --alg-gold-500: #c8a15c;
  --alg-gold-300: #dec28b;
  --alg-gold-100: #f2e6ce;
  --alg-gold-050: #faf4e8;
  --alg-border-neutral: #d9d4cb;
  --alg-border-soft: #e9e4dc;
  --alg-border-emerald: rgba(33, 69, 58, 0.28);
  --alg-border-gold: rgba(185, 144, 84, 0.38);
  --alg-success: #2e604b;
  --alg-success-bg: #e7f0eb;
  --alg-attention: #815c29;
  --alg-attention-bg: #f6ecd9;
  --alg-error: #9f3e39;
  --alg-error-bg: #f7e6e4;
  --alg-info: #315f73;
  --alg-info-bg: #e7f0f4;
  --alg-shadow-xs: 0 1px 2px rgba(27, 27, 25, 0.05);
  --alg-shadow-sm: 0 8px 24px rgba(27, 27, 25, 0.07);
  --alg-shadow-md: 0 18px 48px rgba(27, 27, 25, 0.1);
  --alg-sidebar-width: 282px;
  --alg-topbar-height: 76px;
  --alg-radius-sm: 12px;
  --alg-radius-md: 16px;
  --alg-radius-lg: 22px;
  --alg-radius-xl: 28px;
  --alg-fast: 140ms;
  --alg-base: 190ms;
  --alg-slow: 280ms;
  --alg-ease: cubic-bezier(0.22, 0.8, 0.28, 1);

  /* Stable semantic aliases retained for existing customer templates. */
  --paper: var(--alg-ink-primary);
  --text-2: var(--alg-ink-secondary);
  --text-3: var(--alg-text-muted);
  --border: var(--alg-border-soft);
  --border-strong: var(--alg-border-neutral);
  --surface: var(--alg-surface-white);
  --surface-raised: var(--alg-surface-raised);
  --shadow-1: var(--alg-shadow-sm);
  --shadow-2: var(--alg-shadow-md);
  --lime: var(--alg-emerald-700);
  --lime-rgb: 46, 96, 75;
  --success: var(--alg-success);
  --warning: var(--alg-attention);
  --critical: var(--alg-error);
  --sidebar-w: var(--alg-sidebar-width);
  --topbar-h: var(--alg-topbar-height);
  --radius-sm: var(--alg-radius-sm);
  --radius-md: var(--alg-radius-md);
  --radius-lg: var(--alg-radius-lg);
  --radius-xl: var(--alg-radius-xl);
  --radius-2xl: var(--alg-radius-xl);
  --ease: var(--alg-ease);
  --fast: var(--alg-fast);
  --base: var(--alg-base);
  --slow: var(--alg-slow);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  min-width: 320px;
  min-height: 100%;
  color: var(--alg-ink-primary);
  background: var(--alg-canvas-ivory);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--alg-ink-primary);
  background:
    radial-gradient(circle at 92% 2%, rgba(200, 161, 92, 0.08), transparent 27rem),
    radial-gradient(circle at 6% 94%, rgba(46, 96, 75, 0.07), transparent 30rem),
    var(--alg-canvas-ivory);
  font: 500 16px/1.55 Manrope, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(circle, rgba(33, 69, 58, 0.18) 1px, transparent 1.35px);
  background-position: calc(100% - 42px) 42px;
  background-size: 18px 18px;
  mask-image: linear-gradient(135deg, transparent 0 70%, #000 100%);
  opacity: 0.32;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--alg-emerald-800); text-decoration: none; }
a:hover { color: var(--alg-emerald-950); }
code, kbd, .mono, .mono-tag { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.is-locked { overflow: hidden; }
.visually-hidden {
  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;
}
::selection { color: #fff; background: var(--alg-emerald-700); }
:focus-visible {
  outline: 3px solid rgba(46, 96, 75, 0.64);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--alg-canvas-soft);
}

h1, h2, h3, h4, p { overflow-wrap: anywhere; }
h1, h2, h3, h4 {
  color: var(--alg-ink-primary);
  font-weight: 760;
  letter-spacing: -0.035em;
}
h1 { margin: 0 0 16px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; }
h2 { margin: 0 0 12px; font-size: clamp(22px, 2.5vw, 32px); line-height: 1.16; }
h3 { margin: 0 0 10px; font-size: 19px; line-height: 1.3; }
p { margin: 0 0 16px; color: var(--alg-ink-secondary); }
small { color: var(--alg-text-muted); }

.skip-link {
  position: fixed;
  z-index: 500;
  left: 16px;
  top: -80px;
  padding: 11px 16px;
  border-radius: var(--alg-radius-sm);
  color: #fff;
  background: var(--alg-emerald-900);
  font-weight: 800;
  transition: top var(--alg-base) var(--alg-ease);
}
.skip-link:focus { top: 16px; }

.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; border: 1px solid rgba(33, 69, 58, 0.08); border-radius: 50%; }
.ambient i:nth-child(1) { width: 360px; height: 360px; right: -180px; top: 110px; box-shadow: 0 0 0 44px rgba(185, 144, 84, 0.025), 0 0 0 88px rgba(33, 69, 58, 0.022); }
.ambient i:nth-child(2) { width: 540px; height: 540px; left: -390px; bottom: -260px; box-shadow: 0 0 0 70px rgba(33, 69, 58, 0.018); }
.ambient i:nth-child(3) { display: none; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--alg-sidebar-width);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--alg-border-soft);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 8px 0 30px rgba(27, 27, 25, 0.035);
  backdrop-filter: blur(18px) saturate(110%);
}
.brand { min-height: 54px; padding: 2px 8px 20px; display: flex; align-items: center; gap: 12px; }
.brand-logo { display: block; width: 174px; height: auto; }
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-block;
  background: center / contain no-repeat url("/assets/brand/algorithm-mark.svg");
}
.brand__mark i { display: none; }
.brand > span:nth-child(2) { min-width: 0; }
.brand strong { display: block; font-size: 14px; letter-spacing: 0.11em; }
.brand small { display: block; margin-top: 3px; color: var(--alg-text-muted); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.sidebar__close { display: none !important; margin-left: auto; }

.workspace { padding: 7px 4px 18px; }
.workspace__eyebrow, .nav__label {
  display: block;
  margin: 0 10px 9px;
  color: var(--alg-text-muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.workspace__switch {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--alg-border-soft);
  border-radius: var(--alg-radius-md);
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-xs);
}
.workspace__switch > span:nth-child(2) { min-width: 0; flex: 1; }
.workspace__switch strong, .workspace__switch small { display: block; }
.workspace__switch strong { font-size: 14px; }
.workspace__switch small { margin-top: 2px; color: var(--alg-text-muted); font-size: 12px; }
.avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--alg-border-emerald);
  border-radius: 13px;
  color: var(--alg-emerald-900);
  background: var(--alg-emerald-050);
  font-size: 13px;
  font-weight: 850;
}
.avatar--company { color: #fff; background: var(--alg-emerald-900); }

.nav { min-height: 0; padding: 3px 0 10px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--alg-border-neutral) transparent; }
.nav__label { margin-top: 9px; }
.nav__item {
  position: relative;
  min-height: 46px;
  margin: 3px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: var(--alg-radius-sm);
  color: var(--alg-text-muted);
  font-weight: 680;
  transition: color var(--alg-base), background var(--alg-base), border-color var(--alg-base), transform var(--alg-base);
}
.nav__item:hover { color: var(--alg-emerald-950); background: var(--alg-emerald-050); transform: translateX(2px); }
.nav__item.is-active { color: var(--alg-emerald-950); border-color: var(--alg-border-emerald); background: var(--alg-emerald-100); }
.nav__item.is-active::before { position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--alg-emerald-700); content: ""; }
.nav__item > span:not(.icon) { flex: 1; font-size: 14px; }
.nav__item.is-active .icon { color: var(--alg-emerald-800); }
.nav--secondary { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--alg-border-soft); }
.sidebar__footer { margin-top: 0; padding: 8px 4px 0; }
.sidebar-logout { margin: 0; }
.sidebar-logout button { width: 100%; color: var(--alg-text-muted); background: transparent; box-shadow: none; }

.icon { position: relative; width: 20px; height: 20px; flex: 0 0 20px; display: inline-grid; place-items: center; color: currentColor; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon--menu::before { width: 16px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor; }
.icon--grid::before { inset: 2px; border: 1.6px solid currentColor; border-radius: 5px; background: linear-gradient(90deg, transparent 47%, currentColor 47% 53%, transparent 53%), linear-gradient(transparent 47%, currentColor 47% 53%, transparent 53%); }
.icon--flow::before { width: 12px; height: 12px; left: 1px; top: 1px; border: 1.6px solid currentColor; border-radius: 4px; }
.icon--flow::after { width: 8px; height: 8px; right: 0; bottom: 0; border: 1.6px solid currentColor; border-radius: 3px; background: var(--alg-surface-white); }
.icon--spark::before { inset: 2px; background: currentColor; clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); }
.icon--ledger::before { inset: 2px 3px; border: 1.6px solid currentColor; border-radius: 4px; }
.icon--ledger::after { width: 8px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 5px currentColor; }
.icon--network::before { width: 6px; height: 6px; left: 0; top: 7px; border: 1.6px solid currentColor; border-radius: 50%; box-shadow: 11px -6px 0 -1px var(--alg-surface-white), 11px -6px 0 0 currentColor, 11px 6px 0 -1px var(--alg-surface-white), 11px 6px 0 0 currentColor; }
.icon--network::after { width: 10px; height: 12px; left: 5px; top: 3px; border: 1.6px solid currentColor; border-left: 0; }
.icon--user::before { width: 7px; height: 7px; top: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
.icon--user::after { width: 14px; height: 8px; bottom: 1px; border: 1.6px solid currentColor; border-radius: 9px 9px 3px 3px; }
.icon--lock::before { width: 13px; height: 10px; bottom: 1px; border: 1.6px solid currentColor; border-radius: 4px; }
.icon--lock::after { width: 8px; height: 8px; top: 0; border: 1.6px solid currentColor; border-bottom: 0; border-radius: 7px 7px 0 0; }
.icon--chevron::before { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.icon--search::before { width: 11px; height: 11px; left: 1px; top: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
.icon--search::after { width: 7px; height: 1.6px; right: 0; bottom: 3px; background: currentColor; transform: rotate(45deg); }

.main { min-width: 0; min-height: 100vh; margin-left: var(--alg-sidebar-width); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: var(--alg-topbar-height);
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(217, 212, 203, 0.86);
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(20px) saturate(120%);
}
.topbar__start, .topbar__actions { display: flex; align-items: center; gap: 10px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: var(--alg-text-muted); font-size: 13px; }
.breadcrumbs b { color: var(--alg-gold-600); }
.breadcrumbs strong { color: var(--alg-ink-primary); font-weight: 700; }
.mobile-brand { display: none; width: 112px; }
.mobile-brand img { display: block; }
.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--alg-border-soft);
  border-radius: 13px;
  color: var(--alg-ink-secondary);
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-xs);
  cursor: pointer;
  transition: border-color var(--alg-base), color var(--alg-base), transform var(--alg-base), box-shadow var(--alg-base);
}
.icon-button:hover { color: var(--alg-emerald-900); border-color: var(--alg-border-emerald); box-shadow: var(--alg-shadow-sm); }
.icon-button:active { transform: scale(0.97); }
.locale-switch {
  height: 42px;
  padding: 3px;
  display: flex;
  align-items: center;
  border: 1px solid var(--alg-border-soft);
  border-radius: 13px;
  background: var(--alg-surface-white);
}
.locale-switch span, .locale-switch strong { min-width: 31px; padding: 6px; border-radius: 10px; font-size: 12px; text-align: center; }
.locale-switch span { color: var(--alg-text-muted); }
.locale-switch strong { color: #fff; background: var(--alg-emerald-900); }
.profile-button {
  min-height: 48px;
  padding: 4px 10px 4px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--alg-border-soft);
  border-radius: 15px;
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-xs);
  cursor: pointer;
}
.profile-button__copy { min-width: 92px; text-align: left; }
.profile-button__copy strong, .profile-button__copy small { display: block; }
.profile-button__copy strong { font-size: 13px; }
.profile-button__copy small { color: var(--alg-text-muted); font-size: 12px; }
.mobile-only, .bottom-nav { display: none; }

.page { width: min(100%, 1320px); margin: 0 auto; padding: 44px 42px 88px; }
.page-heading, .workspace-heading, .section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 26px;
}
.page-heading > div:first-child, .workspace-heading > div:first-child, .section-title > div:first-child { min-width: 0; }
.page-heading h1, .workspace-heading h1, .section-title h1 {
  max-width: 790px;
  margin: 12px 0 13px;
  font-family: Oswald, "Roboto Condensed", "Arial Narrow", Manrope, sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-stretch: condensed;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.page-heading h1 em { color: var(--alg-gold-700); font-style: normal; }
.page-heading p, .workspace-heading p, .section-title p { max-width: 700px; color: var(--alg-ink-secondary); }
.page-heading__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.eyebrow, .overline {
  color: var(--alg-emerald-800);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 26px; height: 2px; background: var(--alg-emerald-700); }

.panel, .signal-card, .action-card, .auth-card {
  min-width: 0;
  border: 1px solid var(--alg-border-soft);
  border-radius: var(--alg-radius-lg);
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-sm);
}
.panel { padding: 24px; }
.panel-heading, .section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.panel-heading > div, .section-heading > div { min-width: 0; }
.panel-heading p, .section-heading p { color: var(--alg-text-muted); }

button, .button {
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--alg-emerald-900);
  border-radius: 14px;
  color: #fff;
  background: var(--alg-emerald-900);
  box-shadow: 0 7px 18px rgba(33, 69, 58, 0.15);
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background var(--alg-base), border-color var(--alg-base), color var(--alg-base), box-shadow var(--alg-base), transform var(--alg-base);
}
button:hover, .button:hover { color: #fff; background: var(--alg-emerald-950); box-shadow: 0 10px 24px rgba(33, 69, 58, 0.2); transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0); }
button:disabled, .button.disabled, [aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none; }
.button--quiet, .ghost, .secondary, .table-action {
  color: var(--alg-ink-primary);
  border-color: var(--alg-border-neutral);
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-xs);
}
.button--quiet:hover, .ghost:hover, .secondary:hover, .table-action:hover { color: var(--alg-emerald-950); border-color: var(--alg-border-emerald); background: var(--alg-emerald-050); }
.button--compact { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.premium-button { color: var(--alg-emerald-950); border-color: var(--alg-border-gold); background: var(--alg-gold-050); }
.warning, .danger, .danger-text { color: var(--alg-error); border-color: rgba(179, 77, 71, 0.28); background: var(--alg-error-bg); box-shadow: none; }
.warning:hover, .danger:hover { color: #fff; border-color: var(--alg-error); background: var(--alg-error); }

label { color: var(--alg-ink-secondary); font-size: 14px; font-weight: 680; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  margin: 8px 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--alg-border-neutral);
  border-radius: 13px;
  color: var(--alg-ink-primary);
  background: var(--alg-surface-white);
  box-shadow: inset 0 1px 2px rgba(27, 27, 25, 0.025);
}
textarea { min-height: 124px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--alg-text-subtle); }
input:focus, select:focus, textarea:focus { border-color: var(--alg-emerald-700); outline: 0; box-shadow: 0 0 0 4px rgba(46, 96, 75, 0.11); }
input[readonly], input:disabled, select:disabled, textarea:disabled { color: var(--alg-text-muted); background: var(--alg-surface-disabled); }
.checkbox, .check-row { display: flex !important; align-items: flex-start; gap: 10px; }
.checkbox input, .check-row input, input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; margin: 2px 0 0; accent-color: var(--alg-emerald-700); }
details > summary { min-height: 44px; display: flex; align-items: center; color: var(--alg-emerald-800); font-weight: 700; cursor: pointer; }

.badge, .state-pill, .status-tag, .mode-chip, .prelaunch-label {
  min-height: 28px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--alg-border-neutral);
  border-radius: 999px;
  color: var(--alg-ink-secondary);
  background: var(--alg-surface-subtle);
  font-size: 13px;
  font-weight: 740;
  line-height: 1.25;
  white-space: nowrap;
}
.badge__dot, .mode-chip i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--success, .state-pill--pass, .state-pill--sent, .state-pill--approved, .state-pill--completed { color: var(--alg-success); border-color: rgba(46, 96, 75, 0.25); background: var(--alg-success-bg); }
.badge--warning, .badge--orange, .prelaunch-label, .state-pill--partial { color: var(--alg-attention); border-color: rgba(138, 101, 47, 0.25); background: var(--alg-attention-bg); }
.badge--critical, .state-pill--failed { color: var(--alg-error); border-color: rgba(179, 77, 71, 0.25); background: var(--alg-error-bg); }
.badge--purple { color: var(--alg-info); border-color: rgba(49, 95, 115, 0.24); background: var(--alg-info-bg); }

.profile-drawer, .network-selector { position: relative; z-index: 100; }
.profile-drawer > summary, .network-selector > summary { list-style: none; }
.profile-drawer > summary::-webkit-details-marker, .network-selector > summary::-webkit-details-marker { display: none; }
.profile-drawer__menu, .network-selector__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 120;
  padding: 10px;
  border: 1px solid var(--alg-border-neutral);
  border-radius: 18px;
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-md);
}
.profile-drawer__menu { min-width: 310px; display: grid; gap: 4px; }
.profile-drawer__menu a, .profile-drawer__menu button { min-height: 44px; padding: 10px 12px; justify-content: flex-start; color: var(--alg-ink-primary); border: 0; border-radius: 11px; background: transparent; box-shadow: none; text-align: left; }
.profile-drawer__menu a:hover, .profile-drawer__menu button:hover { color: var(--alg-emerald-950); background: var(--alg-emerald-050); transform: none; }
.profile-drawer__menu hr { width: 100%; margin: 5px 0; border: 0; border-top: 1px solid var(--alg-border-soft); }
.network-selector > summary {
  min-width: 224px;
  min-height: 48px;
  padding: 6px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--alg-border-emerald);
  border-radius: 15px;
  background: var(--alg-surface-white);
  box-shadow: var(--alg-shadow-xs);
  cursor: pointer;
}
.network-selector > summary small, .network-selector > summary strong { display: block; }
.network-selector > summary small { color: var(--alg-text-muted); font-size: 12px; }
.network-selector > summary strong { font-size: 14px; }
.network-selector > summary > i { max-width: 94px; overflow: hidden; color: var(--alg-text-muted); font-size: 12px; font-style: normal; text-overflow: ellipsis; }
.network-chip__icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--alg-emerald-900); background: var(--alg-emerald-100); font-size: 16px; }
.network-selector__state { color: var(--alg-emerald-800); font-size: 12px; }
.network-selector__chevron { font-size: 16px; transition: transform var(--alg-base); }
.network-selector[open] .network-selector__chevron { transform: rotate(180deg); }
.network-selector__menu { width: min(380px, calc(100vw - 24px)); }
.network-selector__menu form { margin: 0; }
.network-selector__row {
  width: 100%;
  min-height: 62px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: var(--alg-ink-primary);
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.network-selector__row:hover, .network-selector__row:focus-visible, .network-selector__row.is-active { color: var(--alg-emerald-950); border-color: var(--alg-border-emerald); background: var(--alg-emerald-050); transform: none; }
.network-selector__row strong, .network-selector__row small { display: block; }
.network-selector__row strong { font-size: 14px; }
.network-selector__row small { margin-top: 3px; color: var(--alg-text-muted); font-size: 12px; }
.network-selector__row > b { color: var(--alg-text-muted); font-size: 12px; }

.scrim { position: fixed; inset: 0; z-index: 70; display: none; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(21, 63, 50, 0.2); box-shadow: none; backdrop-filter: blur(4px); }
.command-layer, .modal-layer { position: fixed; inset: 0; z-index: 260; display: grid; place-items: start center; padding: 12vh 16px 16px; opacity: 0; transition: opacity var(--alg-base); }
.command-layer.is-open, .modal-layer.is-open { opacity: 1; }
.command-layer > .scrim, .modal-layer > .scrim { display: block; }
.command-palette, .modal { position: relative; z-index: 1; width: min(620px, 100%); padding: 18px; border: 1px solid var(--alg-border-neutral); border-radius: var(--alg-radius-lg); background: var(--alg-surface-white); box-shadow: var(--alg-shadow-md); }
.command-search { display: flex; align-items: center; gap: 10px; }
.command-search input { margin: 0; }
.command-results { display: grid; gap: 5px; margin-top: 12px; }
.command-results a { min-height: 44px; padding: 10px 12px; border-radius: 11px; }
.command-results a:hover { background: var(--alg-emerald-050); }
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 8px; }
.toast { max-width: 360px; padding: 14px; display: flex; gap: 10px; border: 1px solid var(--alg-border-neutral); border-radius: var(--alg-radius-md); background: var(--alg-surface-white); box-shadow: var(--alg-shadow-md); opacity: 0; transform: translateY(8px); transition: opacity var(--alg-base), transform var(--alg-base); }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  :root { --alg-sidebar-width: 250px; }
  .page { padding-inline: 28px; }
  .topbar { padding-inline: 24px; }
}

@media (max-width: 900px) {
  body::before { display: none; }
  .sidebar { width: min(320px, calc(100vw - 38px)); transform: translateX(-105%); transition: transform var(--alg-slow) var(--alg-ease); }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .app-shell.nav-open > .scrim { display: block; }
  .sidebar__close { display: inline-grid !important; }
  .main { margin-left: 0; }
  .mobile-only, .mobile-brand { display: inline-flex; }
  .breadcrumbs { display: none; }
  .topbar { padding: max(10px, env(safe-area-inset-top)) 16px 10px; min-height: 70px; }
  .topbar__start { gap: 10px; }
  .page { padding: 30px 18px calc(106px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    min-height: calc(70px + env(safe-area-inset-bottom));
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    border-top: 1px solid var(--alg-border-soft);
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 -8px 26px rgba(27, 27, 25, 0.06);
    backdrop-filter: blur(18px);
  }
  .bottom-nav a { min-width: 0; min-height: 56px; padding: 5px 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: var(--alg-text-muted); font-size: 12px; line-height: 1.05; text-align: center; }
  .bottom-nav a span:last-child { max-width: 100%; max-height: 2.1em; overflow: hidden; white-space: normal; }
  .bottom-nav a.is-active { color: var(--alg-emerald-950); background: var(--alg-emerald-100); }
  .page-heading, .workspace-heading, .section-title { align-items: flex-start; flex-direction: column; gap: 14px; }
  .page-heading__actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .topbar__start { flex: 1 1 auto; }
  .topbar__actions { width: 100%; order: 2; gap: 7px; }
  .network-selector { flex: 1; order: 1; }
  .network-selector > summary { min-width: 0; width: 100%; grid-template-columns: auto 1fr auto; }
  .network-selector > summary > i, .network-selector__state { display: none; }
  .network-selector__menu { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 120px); width: auto; max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); overflow: auto; }
  .profile-button__copy { display: none; }
  .profile-drawer__menu { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 120px); min-width: 0; max-height: calc(100dvh - 150px - env(safe-area-inset-bottom)); overflow: auto; }
  .locale-switch { flex: 0 0 auto; }
  .page { padding-top: 26px; }
  .panel { padding: 20px; }
  .panel-heading, .section-heading { display: grid; gap: 10px; }
}

@media (max-width: 430px) {
  .mobile-brand { width: 98px; }
  .topbar-web-exit { width: 44px; padding: 8px; }
  .topbar-web-exit > span:last-child { display: none; }
  .locale-switch span, .locale-switch strong { min-width: 27px; padding-inline: 4px; }
  .page { padding-inline: 16px; }
  .bottom-nav a { font-size: 12px; letter-spacing: -0.02em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* product.css */
/*
 * ALGORITHM IVORY SIGNATURE — EMERALD & GOLD
 * Product and public surfaces. The structural shell and central tokens live in
 * web/design-system.css; this file supplies screen-specific composition only.
 */

:root {
  color-scheme: light;
  --ivory: #f4f0ea;
  --ivory-soft: #faf7f2;
  --white: #ffffff;
  --ink: #1b1b19;
  --ink-secondary: #3c403d;
  --muted: #6b736d;
  --emerald: #2e604b;
  --emerald-deep: #21453a;
  --emerald-soft: #e7f0eb;
  --gold: #b99054;
  --gold-soft: #f2e6ce;
  --line: #e9e4dc;
  --line-strong: #d9d4cb;
  --ok: #2e604b;
  --warn: #815c29;
  --bad: #9f3e39;
  --paper: var(--ink);
  --text-2: var(--ink-secondary);
  --text-3: var(--muted);
  --border: var(--line);
  --border-strong: var(--line-strong);
  --surface: var(--white);
  --surface-raised: #fffdf9;
  --lime: var(--emerald);
  --lime-rgb: 46, 96, 75;
  --success: var(--ok);
  --warning: var(--warn);
  --critical: var(--bad);
  --purple: #315f73;
  --orange: var(--gold);
}

.product-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  min-height: 76vh;
  margin: 0 auto;
  padding: 48px 28px 96px;
}

.cabinet-page {
  font-size: 16px;
  line-height: 1.58;
}

.cabinet-page p,
.cabinet-page label,
.cabinet-page li,
.cabinet-page dt,
.cabinet-page dd { font-size: 14px; }

.cabinet-page small,
.cabinet-page .overline,
.cabinet-page .eyebrow,
.cabinet-page .badge,
.cabinet-page .state-pill { font-size: 12px; line-height: 1.45; }

.cabinet-page h1 { font-size: clamp(36px, 5vw, 62px); }
.cabinet-page h2 { font-size: clamp(22px, 2.5vw, 30px); }
.cabinet-page h3 { font-size: 18px; }
.muted { color: var(--muted); }
.danger-text, .alert { color: var(--bad); }
.mono { overflow-wrap: anywhere; }
.cabinet-page > .grid-two, .cabinet-page > .panel { margin-bottom: 18px; }
.action-card { min-height: 110px; display: block; padding: 22px; color: var(--ink); }
.action-card strong { color: var(--emerald-deep); font-size: 18px; }
.action-card p { margin: 6px 0 0; }

/* Shared card, status and data compositions */
.grid-two,
.operations-grid,
.overview-health-grid,
.overview-results-grid,
.content-layout,
.settings-layout,
.security-grid,
.knowledge-input-grid,
.brain-runtime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kpis,
.metric-grid,
.content-metrics,
.overview-truth-grid,
.brain-result-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.kpis article,
.metric-grid > *,
.content-metrics > *,
.overview-truth-grid > *,
.brain-result-summary > * {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 7px 22px rgba(27, 27, 25, 0.045);
}

.kpis span,
.metric-grid span,
.content-metrics span,
.overview-truth-grid span,
.row-card span { display: block; color: var(--muted); }

.kpis strong,
.metric-grid strong,
.content-metrics strong,
.overview-truth-grid strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 780;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.overview-truth-grid small { display: block; margin-top: 4px; color: var(--muted); }
.overview-truth-grid a { display: inline-flex; margin-top: 8px; font-weight: 720; }

.panel dl,
.cabinet-plan dl,
.network-card dl { margin: 0; }

.panel dl div,
.cabinet-plan dl div,
.network-card dl div,
.data-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt, .data-row span { color: var(--muted); }
dd, .data-row strong { margin: 0; color: var(--ink); font-weight: 720; text-align: right; }

.row-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.state,
.state-pill,
.badge,
.mode-chip,
.status-tag,
.source-state,
.prelaunch-label {
  display: inline-flex;
  min-height: 28px;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(46, 96, 75, 0.23);
  border-radius: 999px;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.025em;
}

.state.paused,
.state-pill.pending,
.state-pill.processing,
.badge--warning,
.prelaunch-label { color: var(--warn); border-color: rgba(169, 125, 60, 0.28); background: #f6ecd9; }
.state-pill.failed, .badge--danger { color: var(--bad); border-color: rgba(179, 77, 71, 0.25); background: #f7e6e4; }
.badge--purple { color: #315f73; border-color: rgba(49, 95, 115, 0.22); background: #e7f0f4; }
.badge--lime, .badge--success, .notice-bar--ok { color: var(--emerald-deep); background: var(--emerald-soft); }
.badge__dot, .mode-chip i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.notice-bar,
.notice-card,
.cabinet-note,
.protection-note,
.privacy-note,
.brain-safety-note,
.brain-upload-contract,
.safe-error,
.billing-boundary {
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  border-radius: 13px;
  color: var(--ink-secondary);
  background: var(--ivory-soft);
}

.billing-portal-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.billing-boundary-card { position: relative; z-index: 1; width: min(100%,620px); padding: clamp(26px,5vw,46px); border: 1px solid var(--line-strong); border-top: 4px solid var(--gold); border-radius: 25px; background: #fff; box-shadow: 0 24px 70px rgba(27,27,25,.12); }
.billing-portal-logo { display: block; width: 210px; margin-bottom: 34px; }
.billing-boundary-card dl { margin: 24px 0; }
.billing-boundary-card dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.billing-boundary-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.billing-off { margin-top: 22px; padding: 15px; border: 1px solid rgba(185,144,84,.35); border-left: 3px solid var(--gold); border-radius: 12px; background: #faf4e8; }
.billing-off p { margin: 6px 0 0; }

.notice-bar--ok { border-left-color: var(--emerald); }
.safe-error, .alert { border-color: rgba(179, 77, 71, 0.26); background: #fdf5f4; }
.button-row, .controls, .page-heading__actions, .source-actions, .brain-pack-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Overview and setup */
.overview-heading,
.workspace-heading,
.analytics-heading,
.knowledge-heading,
.page-heading,
.section-title {
  position: relative;
  margin-bottom: 30px;
}

.overview-heading::after,
.workspace-heading::after,
.analytics-heading::after,
.knowledge-heading::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 22px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  content: "";
}

.overview-health-grid { margin-bottom: 18px; }
.overview-health-card { position: relative; overflow: hidden; padding: 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 8px 26px rgba(27,27,25,.055); }
.overview-health-card::after {
  position: absolute;
  right: -42px;
  bottom: -48px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(46, 96, 75, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(185, 144, 84, 0.035);
  content: "";
}
.overview-health-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.overview-results-grid { margin: 18px 0; }
.next-action-panel { border-color: rgba(185, 144, 84, 0.4); background: linear-gradient(135deg, #fff, #fdf8ee); }

.setup-steps,
.setup-page-grid,
.pipeline-list,
.knowledge-sections,
.knowledge-source-list,
.media-list,
.session-list,
.settings-stack { display: grid; gap: 12px; }

.setup-step,
.setup-page-step,
.pipeline-row,
.knowledge-source-row,
.media-row,
.security-card,
.session-panel {
  position: relative;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.setup-step,
.setup-page-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}
.setup-page-step__number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--emerald-deep);
  font-weight: 800;
}
.setup-step strong, .setup-step small { display: block; }
.setup-step small { margin-top: 3px; color: var(--muted); }

/* Connections and network truth */
.network-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.network-card { position: relative; min-height: 300px; overflow: hidden; }
.network-card::after {
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(46, 96, 75, 0.08);
  border-radius: 50%;
  content: "";
}
.network-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.network-logo, .source-glyph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(46, 96, 75, 0.18);
  border-radius: 15px;
  color: var(--emerald-deep);
  background: var(--emerald-soft);
  font-size: 21px;
  font-weight: 800;
}
.network-account { color: var(--emerald-deep); font-weight: 750; }
.prelaunch-state { color: var(--muted); }
.connection-guide { margin-top: 22px; }
.guide-body { display: grid; gap: 15px; }
.guide-lead { font-size: 16px; }
.guide-checklist { display: grid; gap: 10px; padding-left: 22px; }
.guide-warning { padding: 14px; border-radius: 12px; color: var(--warn); background: #f6ecd9; }
.guide-links { display: flex; flex-wrap: wrap; gap: 12px; }
.oauth-account-list { display: grid; gap: 12px; margin: 20px 0; }
.oauth-account-card { display: grid; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory-soft); }
.oauth-account-card__label { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.oauth-account-card strong { font-size: clamp(21px, 4vw, 29px); overflow-wrap: anywhere; }

/* Knowledge */
.knowledge-readiness { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.knowledge-readiness article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 7px 22px rgba(27,27,25,.045); }
.knowledge-readiness span, .knowledge-readiness strong, .knowledge-readiness small { display: block; }
.knowledge-readiness span { color: var(--muted); font-size: 12px; font-weight: 720; letter-spacing: .04em; text-transform: uppercase; }
.knowledge-readiness strong { margin-top: 6px; color: var(--ink); font-size: 22px; }
.knowledge-readiness small { margin-top: 4px; color: var(--muted); }
.knowledge-section-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.knowledge-section-tags span, .source-token {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-secondary);
  background: var(--ivory-soft);
  font-size: 12px;
}
.knowledge-sources { margin-top: 20px; }
.knowledge-source-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.source-copy { min-width: 0; }
.source-copy strong, .source-copy small { display: block; }
.source-copy small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; }
.knowledge-form, .action-form, .settings-form, .identity-form { display: grid; gap: 14px; }
.knowledge-form label, .action-form label, .settings-form label, .identity-form label { display: grid; gap: 7px; color: var(--ink-secondary); font-weight: 680; }
.knowledge-version-editor { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--ivory-soft); }
.knowledge-version-editor > summary { min-height: 46px; padding: 12px 15px; color: var(--emerald-deep); cursor: pointer; font-weight: 720; }
.knowledge-version-editor > *:not(summary) { margin-inline: 15px; }

.file-drop {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1.5px dashed rgba(46, 96, 75, 0.42);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f7f3ec);
  cursor: pointer;
  text-align: center;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.file-drop:hover, .file-drop:focus-within, .file-drop.has-file { border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(46, 96, 75, .08); transform: translateY(-1px); }
.file-drop .file-picker-button { width: min(100%, 360px); min-height: 52px; margin: 20px 0 0; padding: 13px 18px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--emerald); border-radius: 13px; color: #fff; background: var(--emerald); font-size: 15px; font-weight: 800; }
.file-drop .file-picker-hint { margin-top: 10px; color: var(--muted); font-size: 13px; }
.file-drop .native-file-input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.file-selection-status { min-height: 24px; margin: 10px 0 12px; color: var(--ink-secondary); font-size: 14px; text-align: center; overflow-wrap: anywhere; }
.knowledge-upload-queue-preview { max-height: 150px; margin: 0 0 12px; padding: 0; overflow: auto; display: grid; gap: 7px; list-style: none; }
.knowledge-upload-queue-preview li { min-width: 0; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory-soft); }
.knowledge-upload-queue-preview span { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-upload-queue-preview small { flex: 0 0 auto; color: var(--muted); font-size: 12px; }

.knowledge-upload-layer { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 18px; padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.knowledge-upload-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; background: rgba(27, 27, 25, .42); backdrop-filter: blur(8px); }
.knowledge-upload-sheet { position: relative; z-index: 1; width: min(620px, 100%); max-height: min(760px, calc(100dvh - 36px)); padding: 24px; overflow: auto; border: 1px solid rgba(185, 144, 84, .42); border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(27, 27, 25, .24); }
.knowledge-upload-sheet > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.knowledge-upload-sheet > header h2 { margin: 4px 0 0; }
.knowledge-upload-count { margin: 14px 0; color: var(--ink-secondary); font-weight: 750; }
.knowledge-upload-items { display: grid; gap: 8px; }
.knowledge-upload-item { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--ivory-soft); }
.knowledge-upload-item > div { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.knowledge-upload-item strong { min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.knowledge-upload-item span { flex: 0 0 auto; color: var(--ink-secondary); font-size: 12px; }
.knowledge-upload-item progress, .knowledge-overall-progress progress { width: 100%; height: 9px; margin-top: 10px; overflow: hidden; border: 0; border-radius: 999px; background: #e4e0d8; accent-color: var(--emerald); }
.knowledge-upload-item.is-processing span { color: #315f73; }
.knowledge-upload-item.is-ready { border-color: rgba(46, 96, 75, .3); background: var(--emerald-soft); }
.knowledge-upload-item.is-ready span { color: var(--emerald); }
.knowledge-upload-item.is-error { border-color: rgba(179, 77, 71, .35); background: #fdf5f4; }
.knowledge-upload-item.is-error span, .knowledge-upload-item.is-error small { color: var(--bad); }
.knowledge-upload-item.is-error p { margin: 10px 0 4px; font-size: 13px; }
.knowledge-upload-retry { min-height: 38px; margin-top: 10px; padding: 8px 12px; font-size: 13px; }
.knowledge-overall-progress { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.knowledge-overall-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.knowledge-overall-progress span { color: var(--ink-secondary); font-size: 13px; }
.knowledge-overall-progress strong { color: var(--emerald); font-size: 14px; }
.knowledge-upload-note { margin: 14px 0 8px; color: var(--muted); font-size: 13px; }
.knowledge-upload-support { display: inline-flex; min-height: 40px; align-items: center; color: var(--emerald); font-weight: 750; }

/* Content, publications and analytics */
.content-layout { align-items: start; }
.intake-card, .jobs-card, .pipeline-card, .review-panel, .publication-card { position: relative; overflow: hidden; }
.publication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.publication-card { min-height: 250px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; }
.publication-copy { min-width: 0; }
.publication-title { color: var(--ink); font-size: 19px; font-weight: 760; }
.publication-visual { min-height: 130px; border: 1px solid var(--line); border-radius: 15px; background: radial-gradient(circle at 50% 42%, rgba(185, 144, 84, .22), transparent 4px), linear-gradient(145deg, var(--emerald-soft), var(--ivory-soft)); }
.publication-empty, .empty-state { min-height: 220px; display: grid; place-items: center; padding: 28px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); background: rgba(255,255,255,.65); text-align: center; }
.pipeline-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.analytics-hero { margin-bottom: 20px; border-top: 3px solid var(--emerald); }
.analytics-history { display: grid; gap: 12px; }
.daily-group { border: 1px solid var(--line); border-radius: 15px; background: var(--white); overflow: hidden; }
.daily-group > summary { min-height: 56px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; padding: 15px 18px; cursor: pointer; font-weight: 720; }
.daily-group[open] > summary { border-bottom: 1px solid var(--line); background: var(--ivory-soft); }
.daily-group > *:not(summary) { margin-inline: 18px; }
.media-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(2, auto); align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.metric-comparison { color: var(--emerald-deep); font-weight: 750; }
.analytics-policy { margin-top: 20px; padding: 15px; border-left: 3px solid var(--gold); color: var(--muted); background: var(--ivory-soft); }

/* Plan hierarchy: CORE emerald, PRO gold, future muted */
.current-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 28px; margin-bottom: 20px; border-top: 3px solid var(--emerald); }
.current-plan > div:not(:first-child) { padding-left: 22px; border-left: 1px solid var(--line); }
.current-plan span, .current-plan strong { display: block; }
.current-plan span { color: var(--muted); font-size: 12px; }
.cabinet-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; align-items: stretch; }
.cabinet-plan { position: relative; min-height: 400px; display: flex; flex-direction: column; overflow: hidden; }
.cabinet-plan::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--line-strong); content: ""; }
.cabinet-plan--core::before, .cabinet-plan[class*="cabinet-plan--core"]::before { background: var(--emerald); }
.cabinet-plan--pro { border-color: rgba(185, 144, 84, .45); background: linear-gradient(150deg, #fff, #fdf7eb); box-shadow: 0 16px 44px rgba(139, 101, 47, .11); }
.cabinet-plan--pro::before, .cabinet-plan[class*="cabinet-plan--pro"]::before { background: linear-gradient(90deg, var(--gold), #dec28b); }
.cabinet-plan[class*="cabinet-plan--pro"] { border-color: rgba(185,144,84,.45); background: linear-gradient(150deg,#fff,#fdf7eb); }
.cabinet-plan--current { box-shadow: 0 0 0 2px rgba(46, 96, 75, .18), 0 15px 38px rgba(27,27,25,.08); }
.cabinet-plan--future { filter: saturate(.55); }
.cabinet-plan h2 { margin-top: 21px; }
.cabinet-plan-price { display: block; margin: 8px 0 2px; color: var(--ink); font-size: clamp(38px, 5vw, 52px); line-height: 1; letter-spacing: -.055em; }
.cabinet-plan dl { margin: 18px 0 22px; }
.cabinet-plan > form, .cabinet-plan > .button { margin-top: auto; }
.cabinet-plan > form button { width: 100%; }
.premium-ribbon { position: absolute; right: 16px; top: 14px; z-index: 2; padding: 5px 10px; border-radius: 999px; color: #65491f; background: var(--gold-soft); font-size: 12px; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }

/* Partner, settings and security */
.referral-hero, .partner-section { position: relative; overflow: hidden; border-color: rgba(185, 144, 84, .38); background: linear-gradient(135deg, #fff, #fdf8ee); }
.referral-links { display: grid; gap: 12px; margin-top: 18px; }
.copy-url-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.copy-url-control { position: relative; }
.copy-url-button { min-width: 46px; padding-inline: 13px; }
.copy-icon { font-size: 18px; }
.tree { overflow-x: auto; }
.settings-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; margin-bottom: 18px; }
.security-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.security-card { display: grid; gap: 10px; }
.security-card form { display: grid; gap: 11px; }
.security-card details { padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory-soft); }
.session-panel { display: grid; grid-template-columns: minmax(230px, .38fr) minmax(0, 1fr); align-items: start; gap: 22px; }
.session-panel > .panel-heading { display: grid; gap: 14px; }
.session-list > article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.session-list > article:last-child { border-bottom: 0; }
.session-list strong, .session-list small { display: block; min-width: 0; overflow-wrap: anywhere; }
.session-list small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.session-list form { margin: 0; }
.totp-setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .55fr); gap: 22px; }
.totp-qr, .processing-qr { display: block; width: min(100%, 280px); height: auto; margin: 18px auto; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.recovery-codes li { padding: 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--ivory-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }

/* Public web experience */
.public-body { overflow-x: hidden; background: var(--ivory); }
.public-body::before { opacity: .25; }
.public-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 12px max(26px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid rgba(217, 212, 203, .9);
  background: rgba(250, 247, 242, .9);
  backdrop-filter: blur(24px) saturate(135%);
}
.public-brand { display: flex; align-items: center; flex: 0 0 auto; color: var(--ink); }
.public-brand img { display: block; width: 196px; height: auto; }
.public-topbar nav { display: flex; flex: 1; justify-content: center; gap: clamp(18px, 2.5vw, 34px); }
.public-topbar nav a, .public-topbar .text-link { position: relative; color: var(--ink-secondary); font-size: 14px; font-weight: 680; }
.public-topbar nav a::after { position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; border-radius: 2px; background: var(--emerald); transition: right 190ms ease; content: ""; }
.public-topbar nav a:hover { color: var(--emerald-deep); }
.public-topbar nav a:hover::after { right: 0; }
.public-actions { display: flex; align-items: center; gap: 15px; flex: 0 0 auto; }
.public-button { min-height: 44px; padding: 11px 17px; }
.public-shell { width: min(100%, 1440px); max-width: none; padding: 0 clamp(22px, 4vw, 62px) 110px; }
.public-hero { min-height: min(820px, calc(100vh - 76px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(370px, .72fr); align-items: center; gap: clamp(44px, 7vw, 110px); padding: clamp(72px, 10vh, 126px) 0 80px; }
.public-hero.compact { min-height: 500px; grid-template-columns: 1fr; padding-bottom: 54px; }
.hero-copy { position: relative; }
.hero-copy::before { position: absolute; left: -130px; top: -120px; z-index: -1; width: 390px; height: 390px; border: 1px solid rgba(46, 96, 75, .08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(185, 144, 84, .025), 0 0 0 82px rgba(46, 96, 75, .016); content: ""; }
.public-eyebrow, .eyebrow, .overline { margin: 0 0 11px; color: var(--emerald); font-size: 12px; font-weight: 820; letter-spacing: .11em; text-transform: uppercase; }
.public-hero h1 { max-width: 840px; margin: 18px 0 26px; font-size: clamp(53px, 7vw, 104px); line-height: .94; letter-spacing: -.065em; }
.public-hero h1 em { color: var(--gold); font-style: normal; font-weight: 610; }
.public-hero .lead { max-width: 720px; margin: 0; color: var(--ink-secondary); font-size: clamp(18px, 1.65vw, 23px); line-height: 1.58; }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: 12px; font-weight: 720; letter-spacing: .035em; text-transform: uppercase; }
.trust-line span { display: flex; align-items: center; gap: 8px; }
.trust-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.hero-console { position: relative; overflow: hidden; min-height: 530px; padding: 26px; border: 1px solid var(--line-strong); border-radius: 28px; background: rgba(255,255,255,.88); box-shadow: 0 30px 80px rgba(27,27,25,.12); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.hero-console::before { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 20%, rgba(185,144,84,.16), transparent 30%), linear-gradient(rgba(46,96,75,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(46,96,75,.04) 1px, transparent 1px); background-size: auto, 34px 34px, 34px 34px; content: ""; }
.console-head { position: relative; z-index: 2; display: flex; justify-content: space-between; color: var(--muted); font: 700 12px/1 ui-monospace, monospace; letter-spacing: .06em; }
.console-orbit { position: relative; width: 210px; height: 210px; margin: 34px auto 20px; display: grid; place-items: center; border: 1px solid rgba(46,96,75,.22); border-radius: 50%; box-shadow: inset 0 0 70px rgba(46,96,75,.04); }
.console-orbit::before, .console-orbit::after, .console-orbit i { position: absolute; border: 1px solid rgba(46,96,75,.12); border-radius: 50%; content: ""; }
.console-orbit::before { inset: 25px; }
.console-orbit::after { inset: 56px; border-color: rgba(185,144,84,.35); background: rgba(185,144,84,.06); }
.console-orbit i:first-child { width: 9px; height: 9px; top: 19px; left: 46px; border: 0; background: var(--gold); }
.console-orbit i:nth-child(2) { width: 7px; height: 7px; right: 14px; bottom: 72px; border: 0; background: var(--emerald); }
.console-orbit strong { z-index: 2; color: var(--emerald-deep); font-size: 44px; letter-spacing: -.08em; }
.console-flow { position: relative; z-index: 2; margin: 0; padding: 0; list-style: none; }
.console-flow li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 11px; padding: 12px 3px; border-top: 1px solid var(--line); }
.console-flow li > span { color: var(--muted); font: 700 11px ui-monospace, monospace; }
.console-flow strong, .console-flow small { display: block; }
.console-flow strong { font-size: 14px; }
.console-flow small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.console-flow b { color: var(--emerald); font: 700 11px ui-monospace, monospace; letter-spacing: .04em; }
.console-flow li:nth-child(3) b, .console-flow li:nth-child(4) b { color: var(--gold); }
.console-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; margin: 16px 0 0; color: var(--muted); font: 700 11px ui-monospace, monospace; text-transform: uppercase; }
.console-foot span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.public-section { padding: clamp(78px, 10vw, 142px) 0; border-top: 1px solid var(--line-strong); }
.section-kicker { display: flex; align-items: center; gap: 13px; margin-bottom: 30px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.section-kicker span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--emerald); background: #fff; }
.section-split { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.65fr); align-items: end; gap: clamp(34px,7vw,120px); margin-bottom: 54px; }
.public-section h2 { max-width: 850px; margin: 0; font-size: clamp(39px,5vw,74px); line-height: .99; letter-spacing: -.055em; }
.section-split > p, .public-section > p, .partner-section > div > p, .security-section > div > p { margin: 0; color: var(--ink-secondary); font-size: 16px; line-height: 1.7; }
.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.capability-grid article, .operations-grid article { position: relative; overflow: hidden; min-height: 290px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(27,27,25,.055); }
.capability-grid article::after, .operations-grid article::after { position: absolute; right: -70px; bottom: -80px; width: 180px; height: 180px; border: 1px solid rgba(46,96,75,.06); border-radius: 50%; box-shadow: 0 0 0 28px rgba(185,144,84,.025); content: ""; }
.cap-icon { width: 48px; height: 48px; margin-bottom: 52px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 15px; font-size: 20px; }
.cap-icon.lime, .cap-icon.purple { color: var(--emerald); background: var(--emerald-soft); }
.cap-icon.orange { color: var(--gold); background: var(--gold-soft); }
.capability-grid h3, .operations-grid h3 { margin: 9px 0 12px; font-size: 24px; }
.capability-grid article > p:last-child, .operations-grid article > p { max-width: 44ch; color: var(--muted); font-size: 14px; line-height: 1.65; }
.workflow-track { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-strong); border-radius: 23px; background: rgba(255,255,255,.72); overflow: hidden; }
.workflow-track li { position: relative; min-height: 250px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.workflow-track li:last-child { border: 0; }
.workflow-track li::after { position: absolute; z-index: 2; right: -13px; top: 31px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--emerald); background: var(--ivory); font-size: 12px; content: "→"; }
.workflow-track li:last-child::after { display: none; }
.workflow-track b { color: var(--gold); font: 750 13px ui-monospace, monospace; }
.workflow-track h3 { margin: 0 0 10px; font-size: 26px; }
.workflow-track p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.telegram-card { position: relative; overflow: hidden; padding: clamp(32px,5vw,70px); display: grid; grid-template-columns: 1fr .75fr; gap: clamp(40px,8vw,130px); align-items: center; border: 1px solid rgba(46,96,75,.2); border-radius: 30px; background: radial-gradient(circle at 92% 10%, rgba(185,144,84,.16), transparent 32%), #fff; box-shadow: 0 24px 70px rgba(27,27,25,.09); }
.telegram-card h2 { font-size: clamp(40px,5vw,70px); }
.telegram-card > div > p { max-width: 650px; margin: 24px 0; color: var(--ink-secondary); line-height: 1.7; }
.telegram-thread { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--ivory-soft); }
.telegram-thread .bubble { width: 88%; margin: 0 0 13px; padding: 13px 15px; border-radius: 16px; font-size: 13px; line-height: 1.55; }
.bubble.owner { margin-left: auto; color: #fff; background: var(--emerald); border-bottom-right-radius: 4px; }
.bubble.algorithm { border: 1px solid rgba(185,144,84,.28); border-bottom-left-radius: 4px; background: #fff; }
.bubble.algorithm strong, .bubble.algorithm span { display: block; }
.bubble.algorithm strong { margin-bottom: 7px; color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.thread-note { text-align: center !important; margin: 20px 0 0 !important; color: var(--muted) !important; font: 700 11px ui-monospace, monospace !important; text-transform: uppercase; }
.operations-grid { grid-template-columns: repeat(2,1fr); }
.operations-grid article { min-height: 260px; padding-right: 26%; }
.operations-grid .overline, .micro-state.orange, .micro-state.purple { color: var(--gold); }
.micro-state { position: absolute; left: 28px; bottom: 27px; color: var(--muted); font: 750 11px ui-monospace, monospace; letter-spacing: .06em; }
.micro-state.ok { color: var(--emerald); }
.partner-section { display: grid; grid-template-columns: .8fr 1fr; align-items: center; gap: clamp(55px,9vw,150px); padding: clamp(40px,6vw,80px); }
.partner-visual { position: relative; width: min(430px,100%); aspect-ratio: 1; display: grid; place-items: center; margin: auto; border: 1px solid rgba(46,96,75,.19); border-radius: 50%; box-shadow: 0 0 0 48px rgba(185,144,84,.035), 0 0 0 96px rgba(46,96,75,.016); }
.partner-visual::before, .partner-visual::after { position: absolute; background: rgba(46,96,75,.12); content: ""; }
.partner-visual::before { width: 60%; height: 1px; }
.partner-visual::after { width: 1px; height: 60%; }
.partner-visual span, .partner-visual b { z-index: 2; display: grid; place-items: center; border: 1px solid rgba(46,96,75,.25); border-radius: 50%; background: #fff; }
.partner-points { display: grid; gap: 12px; margin-top: 28px; }
.security-section { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(40px,8vw,110px); }
.final-cta { position: relative; overflow: hidden; padding: clamp(46px,8vw,100px); border: 1px solid rgba(185,144,84,.4); border-radius: 30px; background: linear-gradient(135deg, var(--emerald-deep), #2e604b); text-align: center; }
.final-cta h2, .final-cta p { color: #fff; }
.final-cta p { max-width: 700px; margin: 20px auto 28px; opacity: .88; }
.final-cta .button { color: var(--emerald-deep); background: var(--gold-soft); }
.final-cta--compact { padding: 44px; }
.plans-section { padding-top: 40px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 18px; }
.plan-card { position: relative; min-height: 380px; display: flex; flex-direction: column; overflow: hidden; }
.plan-price { display: block; margin: 14px 0; color: var(--ink); font-size: 44px; font-weight: 780; letter-spacing: -.05em; }
.public-body .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.public-body .plan-price small { font-size: 17px; line-height: 1.4; letter-spacing: normal; }
.public-topbar .public-brand { min-width: 0; }
@media (max-width: 1040px) {
  .public-topbar { flex-wrap: wrap; gap: 12px; }
  .public-topbar nav { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 760px) {
  .public-topbar .public-brand { flex: 1 1 100px; }
  .public-topbar .public-brand img { max-width: 100%; }
}
.plan-card .button { margin-top: auto; }
.faq-section { padding-top: 36px; }
.faq-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.faq-grid details { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-grid summary { min-height: 32px; cursor: pointer; color: var(--ink); font-weight: 720; }
.public-footer { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(230px,.7fr) auto minmax(260px,.7fr); gap: 34px; align-items: start; padding: 38px max(26px,calc((100vw - 1380px)/2)); border-top: 1px solid var(--line-strong); color: var(--muted); background: #eee9e1; }
.public-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.public-footer p { color: var(--muted); font-size: 13px; }
.public-brand--footer img { width: 174px; }
.footer-note { margin: 0; text-align: right; }

/* Web identity entry */
body:has([data-web-login-surface]) .product-shell { width: 100%; max-width: none; min-height: 100dvh; display: grid; place-items: center; padding: clamp(24px,5vw,72px); }
.auth-card {
  position: relative;
  isolation: isolate;
  width: min(100%, 620px);
  margin: 4vh auto;
  padding: clamp(28px,5vw,48px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--emerald);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(27,27,25,.12);
}
.auth-card::before { position: absolute; z-index: -1; right: -86px; top: -108px; width: 260px; height: 260px; border: 1px solid rgba(46,96,75,.08); border-radius: 50%; box-shadow: 0 0 0 35px rgba(185,144,84,.025), 0 0 0 70px rgba(46,96,75,.016); content: ""; }
.auth-logo { display: block; width: 210px; margin: 0 0 34px; }
.auth-logo img { display: block; width: 100%; height: auto; }
.auth-card h1 { max-width: 540px; margin: 6px 0 13px; font-size: clamp(42px,7vw,66px); line-height: 1; overflow-wrap: normal; word-break: normal; hyphens: none; }
.auth-card > p:not(.eyebrow):not(.alert):not(.miniapp-status) { max-width: 52ch; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 26px 0 22px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: var(--ivory-soft); }
.auth-tabs .button { width: 100%; justify-content: center; }
.identity-form { margin: 18px 0; }
.identity-form button { width: 100%; }
.identity-form > a { width: fit-content; font-weight: 680; }
.auth-card details { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--ivory-soft); }
.auth-card details > summary { min-height: 48px; display: flex; align-items: center; padding: 11px 15px; cursor: pointer; color: var(--emerald-deep); font-weight: 740; }
.auth-card details[open] > summary { border-bottom: 1px solid var(--line); background: var(--emerald-soft); }
.auth-card details > form { margin: 0; padding: 17px; }
.auth-card .check-row { display: grid; grid-template-columns: 22px 1fr; align-items: start; gap: 10px; }
.auth-card .check-row input { width: 20px; min-height: 20px; margin: 2px 0 0; }
.auth-helper { margin: 24px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--line); }
.auth-footer { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 18px; }
.auth-footer a { font-size: 13px; }
.legacy-login { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

.auth-card--clean { padding: clamp(24px,4vw,36px); }
.auth-card--clean .auth-logo { margin-bottom: 22px; }
.auth-card--clean h1 { margin-bottom: 10px; font-size: clamp(38px,6vw,58px); }
.auth-card--clean .identity-form { gap: 11px; margin: 12px 0; }
.auth-card--clean .identity-form label { gap: 5px; }
.auth-card--clean .identity-form input { min-height: 50px; }
.auth-card--clean details[open] > form { padding: 14px; }
.auth-card--clean .check-row { margin-top: 4px; }

/* Mini App bootstrap has deliberately no interactive fallback. */
.miniapp-bootstrap-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 28px;
  color: var(--ink);
  background: radial-gradient(circle at 80% 12%, rgba(185,144,84,.12), transparent 28rem), var(--ivory);
  font: 500 16px/1.55 Manrope, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.miniapp-bootstrap { position: relative; width: min(100%, 440px); padding: 44px 32px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 20px 55px rgba(27,27,25,.1); text-align: center; }
.miniapp-bootstrap::before { display: block; width: 54px; height: 2px; margin: 0 auto 28px; background: linear-gradient(90deg, var(--emerald), var(--gold)); content: ""; }
.miniapp-bootstrap__mark { width: min(220px, 78%); height: auto; }
.miniapp-status { margin: 24px 0 0; color: var(--ink-secondary); font-size: 15px; }

@media (max-width: 1000px) {
  .kpis, .metric-grid, .content-metrics, .overview-truth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-grid { grid-template-columns: 1fr; }
  .public-hero { grid-template-columns: 1fr; }
  .hero-console { width: min(100%, 670px); min-height: 500px; transform: none; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-track { grid-template-columns: repeat(2, 1fr); }
  .workflow-track li:nth-child(2) { border-right: 0; }
  .workflow-track li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .workflow-track li:nth-child(2)::after { display: none; }
  .telegram-card, .partner-section, .security-section { grid-template-columns: 1fr; }
  .partner-visual { width: min(340px, 82%); }
  .public-footer { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 760px) {
  .product-shell { padding: 32px 18px 104px; }
  .cabinet-page { font-size: 16px; }
  .cabinet-page p, .cabinet-page label, .cabinet-page li { font-size: 15px; }
  .grid-two, .operations-grid, .overview-health-grid, .overview-results-grid, .content-layout, .settings-layout, .security-grid, .knowledge-input-grid, .brain-runtime-grid, .network-card-grid, .totp-setup { grid-template-columns: 1fr; }
  .current-plan { grid-template-columns: 1fr 1fr; gap: 18px; }
  .current-plan > div:first-child { grid-column: 1 / -1; }
  .current-plan > div:not(:first-child) { padding: 0; border: 0; }
  .setup-step, .setup-page-step { grid-template-columns: 36px minmax(0, 1fr); }
  .setup-step > :last-child, .setup-page-step > :last-child { grid-column: 2; }
  .knowledge-source-row { grid-template-columns: 44px minmax(0, 1fr); }
  .knowledge-source-row > :last-child { grid-column: 1 / -1; }
  .publication-card { grid-template-columns: 1fr; }
  .daily-group > summary { grid-template-columns: 1fr auto; }
  .daily-group > summary span:last-child { grid-column: 1 / -1; }
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row > a { grid-column: 1 / -1; }
  .knowledge-upload-layer { align-items: end; padding: 0; }
  .knowledge-upload-sheet { width: 100%; max-height: calc(100dvh - max(12px, env(safe-area-inset-top))); padding: 20px 17px calc(20px + env(safe-area-inset-bottom)); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 24px 24px 0 0; }
  .knowledge-upload-item > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .knowledge-upload-item strong { max-width: 100%; }
  .file-drop { min-height: 190px; }
  .file-drop .file-picker-button { font-size: 16px; }
  .session-panel, .session-list > article { grid-template-columns: 1fr; }
  .knowledge-readiness { grid-template-columns: 1fr; }
  .public-topbar { min-height: 68px; padding: 10px 17px; }
  .public-brand img { width: 154px; }
  .public-topbar nav { display: none; }
  .public-actions { margin-left: auto; gap: 8px; }
  .public-actions .text-link { display: none; }
  .public-button { min-height: 44px; padding: 10px 13px; font-size: 13px; }
  .public-shell { padding: 0 18px 90px; }
  .public-hero { min-height: auto; padding: 70px 0; gap: 46px; }
  .public-hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-console { min-height: 480px; padding: 20px; }
  .public-section { padding: 76px 0; }
  .section-split { grid-template-columns: 1fr; align-items: start; }
  .capability-grid, .operations-grid, .faq-grid { grid-template-columns: 1fr; }
  .workflow-track { grid-template-columns: 1fr; }
  .workflow-track li { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-track li:last-child { border-bottom: 0; }
  .workflow-track li::after { display: none; }
  .telegram-card, .partner-section { padding: 28px 20px; }
  .public-footer { grid-template-columns: 1fr; padding: 32px 18px; }
  .public-footer nav { justify-content: flex-start; }
  .auth-card { margin: 0 auto; padding: 28px 20px; border-radius: 22px; }
  .auth-card h1 { font-size: clamp(38px, 11vw, 46px); }
}

@media (max-width: 480px) {
  .kpis, .metric-grid, .content-metrics, .overview-truth-grid, .brain-result-summary, .recovery-codes { grid-template-columns: 1fr; }
  .row-card { grid-template-columns: 1fr; }
  .copy-url-field { grid-template-columns: 1fr; }
  .cabinet-plan-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Studio V1 mobile form — 2026-09-17 */
[data-studio-form]{display:grid;gap:18px}
[data-studio-form]>label{display:grid;gap:8px;font-size:16px;font-weight:700;line-height:1.35}
[data-studio-form] select,[data-studio-form] input[type="url"],[data-studio-form] input[type="file"],[data-studio-form] textarea{width:100%;max-width:100%;box-sizing:border-box;font:inherit;line-height:1.35}
[data-studio-form] textarea{min-height:120px;resize:vertical}
.studio-publish-mode{margin:0;padding:20px;border:1px solid rgba(31,82,67,.16);border-radius:24px;display:grid;gap:12px}
.studio-publish-mode legend{padding:0 8px;font-size:18px;font-weight:800;line-height:1.25}
.studio-publish-mode .checkbox-row,[data-studio-form]>.checkbox-row{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:12px;margin:0;padding:14px 0;font-size:15px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.studio-publish-mode .checkbox-row+.checkbox-row{border-top:1px solid rgba(31,82,67,.12)}
.studio-publish-mode input[type="radio"],.studio-publish-mode input[type="checkbox"],[data-studio-form]>.checkbox-row input[type="checkbox"]{width:22px;height:22px;margin:2px 0 0;accent-color:#1f5b49}
.studio-publish-mode strong{font-size:16px;line-height:1.35}
.studio-source-card{display:grid;gap:14px;margin:14px 0;padding:18px}
.studio-source-card .studio-file-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;min-width:0}
.studio-source-card .studio-file-row input{min-width:0;max-width:100%}
.studio-source-card .studio-file-clear{display:inline-flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;padding:0;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font:inherit;font-size:26px;line-height:1;cursor:pointer;box-shadow:none}
.studio-source-card .studio-file-clear[hidden]{display:none!important}
.studio-source-card .studio-file-clear:disabled{opacity:.5;cursor:default}
.studio-source-card label{display:grid;gap:8px;font-size:15px;font-weight:700;line-height:1.4}
[data-studio-form] .notice{font-size:14px;line-height:1.55;padding:16px 18px}
@media(max-width:600px){.studio-publish-mode{padding:16px;border-radius:20px}.studio-publish-mode .checkbox-row,[data-studio-form]>.checkbox-row{font-size:14px;line-height:1.45}.studio-publish-mode strong{font-size:15px}}

/* Studio V1 wizard refinement */
.studio-hero p:last-child{max-width:760px}.studio-wizard{overflow:hidden}.studio-wizard [hidden]{display:none!important}.studio-wizard h2{margin:8px 0 20px}.studio-wizard [data-studio-step]{display:grid;gap:20px}.studio-no-video{display:grid!important;grid-template-columns:24px minmax(0,1fr);gap:12px;align-items:start;padding:16px;border:1px solid rgba(31,82,67,.16);border-radius:18px}.studio-no-video input{width:22px;height:22px;margin:0;accent-color:#1f5b49}.studio-back{justify-self:start;border:0;background:transparent;color:#1f5b49;font:inherit;font-weight:800;padding:4px 0}.studio-source-card{border:1px solid rgba(31,82,67,.15);border-radius:22px;background:#fff;padding:18px;display:grid;gap:14px}.studio-source-card h3{margin:0}.studio-source-card label{display:grid;gap:7px;font-size:14px;font-weight:700}.studio-source-card input,.studio-source-card textarea{width:100%;box-sizing:border-box}.studio-source-card textarea{min-height:110px}.studio-or{text-align:center;color:#707872;font-size:13px}.studio-publish-mode small{display:block;margin-top:5px;font-weight:500;line-height:1.45}.studio-ready{width:100%;justify-content:center}.studio-current [disabled]{opacity:.55;cursor:not-allowed}.studio-current [data-studio-countdown]{font-variant-numeric:tabular-nums}
@media(max-width:600px){.studio-wizard{padding:20px}.studio-wizard h2{font-size:28px;line-height:1.12}.studio-publish-mode legend{font-size:22px}.studio-source-card{padding:16px}}

.studio-publish-mode [data-trial-graduation].is-disabled{opacity:.42;background:rgba(112,120,114,.06);cursor:not-allowed}.studio-publish-mode [data-trial-graduation].is-disabled input{cursor:not-allowed}.setup-step__hint{display:block;margin-top:7px;font-size:13px;line-height:1.4;color:#737b75;font-weight:500}

/* Focused Web referral registration: one task, no competing Telegram/login CTAs. */
.auth-card details.referral-register { border: 0; background: transparent; }
.auth-card details.referral-register > summary { display: none; }
.auth-card details.referral-register > form { padding: 0; margin-top: 22px; }
@media (max-width: 720px) {
  .auth-card--clean { padding: 28px 22px; border-radius: 22px; }
  .auth-card--clean h1 { font-size: clamp(38px, 12vw, 56px); }
  .auth-card--clean .identity-form label { font-size: 16px; }
}
.legal-copy { display: grid; gap: 34px; }
.legal-copy article { max-width: 880px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.legal-copy article:last-child { border-bottom: 0; }
.legal-copy h2 { margin-bottom: 16px; font-size: clamp(28px,4vw,44px); }
.legal-copy p { max-width: 72ch; color: var(--ink-secondary); line-height: 1.75; }

/* Global interaction acknowledgement: instant press flash + pending submit state. */
button, a[href], input[type="submit"], input[type="button"] { -webkit-tap-highlight-color: rgba(255,255,255,.14); }
.ui-press-feedback { position:relative; overflow:hidden; transform:translateY(1px) scale(.985); filter:brightness(1.09); transition:transform 90ms ease,filter 90ms ease; }
.ui-press-feedback::after { content:""; position:absolute; inset:-45%; pointer-events:none; background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.58) 49%,transparent 63%); animation:algorithm-press-sheen .48s ease-out both; }
.ui-submit-pending { cursor:progress!important; opacity:.78; }
.ui-submit-pending::before { content:""; display:inline-block; width:.72em; height:.72em; margin-right:.48em; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; vertical-align:-.08em; animation:algorithm-submit-spin .7s linear infinite; }
@keyframes algorithm-press-sheen { from{transform:translateX(-45%)} to{transform:translateX(45%)} }
@keyframes algorithm-submit-spin { to{transform:rotate(360deg)} }
@media (prefers-reduced-motion:reduce){.ui-press-feedback{transform:none}.ui-press-feedback::after{animation:none}.ui-submit-pending::before{animation-duration:1.4s}}

/* Studio comments and consent-first audience replies. */
.studio-source-card{background:var(--agent-panel,var(--surface,#fff));border-color:var(--agent-border,#c5dcd8)}
.studio-comment{min-width:0;margin-top:1.5rem;padding:1rem;border:1px solid var(--agent-border,#c5dcd8);border-radius:18px}
.studio-source-card .checkbox-row,.studio-engagement .checkbox-row{display:flex;align-items:flex-start;gap:10px}.studio-source-card .checkbox-row input,.studio-engagement .checkbox-row input{margin-top:2px}
.studio-comment legend{font-weight:750;padding:0 .4rem}.studio-comment-fields{display:grid;gap:1rem}.studio-comment-fields[hidden]{display:none}
.studio-comment textarea,.studio-engagement input,.studio-engagement textarea{box-sizing:border-box;max-width:100%;min-width:0;width:100%}
.studio-comment .checkbox-row input,.studio-engagement .checkbox-row input{width:20px;flex:0 0 20px}
.studio-comment small,.studio-engagement small{display:block;line-height:1.5;opacity:.8}
.studio-engagement{margin-top:1.5rem;min-width:0}.engagement-settings{display:grid;gap:1rem;margin:1.25rem 0}
.engagement-settings label{display:grid;gap:.5rem}.engagement-preview{padding:1.2rem;border-radius:20px;background:var(--surface-muted,rgba(80,160,150,.08));display:flex;flex-direction:column;gap:.75rem}
.engagement-preview .overline{margin:0 0 .35rem}.engagement-bubble{margin:0;max-width:94%;padding:1rem;border-radius:18px 18px 18px 5px;background:var(--agent-raised,var(--surface,#fff));border:1px solid var(--agent-border,#c5dcd8);white-space:pre-line;overflow-wrap:anywhere}
.engagement-bubble--visitor{align-self:flex-end;border-radius:18px 18px 5px 18px;background:rgba(60,165,155,.16)}
.engagement-metrics{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border,#c5dcd8)}
.engagement-metrics strong{display:block;font-size:1.5rem}.engagement-pin-list a{display:block;margin:.75rem 0;overflow-wrap:anywhere}

/* cabinet-navigation.css */
/* Customer navigation, company information and existing collateral. */
.sidebar { overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.sidebar > * { flex-shrink: 0; }
.app-shell.nav-open > button.scrim { background: rgba(16, 43, 34, .22); border: 0; box-shadow: none; backdrop-filter: blur(3px); }
.nav--secondary { margin-top: 24px; }
.nav--secondary button.nav__item { width: 100%; justify-content: flex-start; border: 0; background: transparent; box-shadow: none; text-align: left; }
.statistics-actions { display: flex; align-items: flex-start; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.statistics-actions form { margin: 0; }
.statistics-network-selector > summary { grid-template-columns: auto 1fr auto; }
.statistics-network-selector .network-selector__menu { z-index: 30; }
.company-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.company-link { display: flex; align-items: center; gap: 16px; min-height: 100px; color: var(--alg-ink-primary); text-decoration: none; }
.company-link > span:last-child { margin-left: auto; }
.company-link strong, .company-link small { display: block; }
.company-link small { margin-top: 6px; color: var(--alg-text-muted); line-height: 1.5; }
.company-link:hover { border-color: var(--alg-border-emerald); }
.company-back { display: inline-block; margin-bottom: 20px; }
.company-document { max-width: 850px; line-height: 1.7; }
.material-languages { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 32px; }
.material-languages a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--alg-border-soft); border-radius: 24px; color: var(--alg-text-muted); background: white; text-decoration: none; }
.material-languages a[aria-current] { color: var(--alg-emerald-950); border-color: var(--alg-border-emerald); background: var(--alg-emerald-050); }
.material-group { margin: 0 0 36px; }
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.material-card h3 { margin: 8px 0; font-size: 24px; line-height: 1.25; }
.material-card h4 { margin: 8px 0 18px; font-size: 20px; line-height: 1.3; }
.material-video-heading { margin: 32px 0 20px; }
.material-embed { width: 100%; aspect-ratio: 16 / 9; min-height: 200px; }
.material-embed iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.material-variants { display: grid; gap: 12px; margin-top: 24px; }
.material-variant { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 16px; border-top: 1px solid var(--alg-border-soft); }
.material-variant > span { flex: 1; }
.material-variant strong, .material-variant small { display: block; }
.material-variant small { margin-top: 4px; color: var(--alg-text-muted); }
.material-download { min-height: 44px; display: inline-flex; align-items: center; }
.material-empty { margin: 0; color: var(--alg-text-muted); }
.bottom-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .topbar { flex-wrap: nowrap; gap: 8px; }
  .topbar__actions { width: auto; order: initial; margin-left: auto; gap: 6px; }
  .topbar__start { gap: 8px; }
  .mobile-brand { width: 106px; }
  .statistics-actions { width: 100%; margin: 12px 0 0; justify-content: flex-end; }
  .statistics-network-selector { flex: 0 1 250px; order: initial; }
  .statistics-network-selector .network-selector__menu { position: absolute; inset: auto 0 auto auto; top: calc(100% + 8px); width: min(340px, calc(100vw - 40px)); max-height: 55dvh; overflow-y: auto; }
  .company-links, .material-grid { grid-template-columns: 1fr; }
  .company-link { min-height: 88px; }
}

/* cabinet-polish.css */
/* Cabinet motion and compact mobile controls; keep the established brand. */
.material-filter{padding:18px;background:#fffdf9;border:1px solid #e4dfd7;border-radius:20px;margin:16px 0}.material-filter>label{font-weight:700;font-size:14px}.material-filter>div{display:flex;gap:10px;margin:8px 0}.material-filter select{min-width:0;flex:1;margin:0;padding:12px;border:1px solid #ddd7cd;border-radius:12px;background:#fff}.material-filter button{margin:0;padding:12px 15px}.material-filter small{color:#6c7470}.material-section-links{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 24px}.material-section-links a{padding:8px 12px;border-radius:99px;background:#e7efeb;color:#214d40;text-decoration:none;font-size:12px;font-weight:700}.material-card.material-card--compact{padding:20px}.material-card--compact .material-variant{margin-top:12px;padding-top:12px;gap:10px}.material-card--compact .material-variant small{margin:0}.material-card--compact .material-variant .button{padding:10px 12px;font-size:12px}.material-card--compact .material-download{font-size:12px}.material-card--compact h3{font-size:23px}.material-group h2{scroll-margin-top:100px}
.topbar{background:rgba(255,253,248,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.locale-control{position:relative;display:flex;align-items:center;gap:2px}
.locale-control .locale-switch{display:flex;gap:2px;padding:4px;margin:0;background:#fff;border:1px solid #e4dfd7;border-radius:16px}
.locale-switch button{margin:0;padding:9px 7px;min-width:32px;min-height:40px;background:transparent;color:#6c7470;border:0;border-radius:11px;font-size:12px;line-height:1;font-weight:800;box-shadow:none}
.locale-switch button[aria-pressed=true]{background:#204d40;color:#fff}
.locale-more{margin:0;padding:8px 2px;min-width:22px;min-height:44px;background:transparent;color:#204d40;border:0;box-shadow:none}
.locale-menu{position:absolute;right:0;top:calc(100% + 10px);width:180px;padding:14px;background:#fffdf9;border:1px solid #e4dfd7;border-radius:18px;box-shadow:0 12px 32px #214d4024;z-index:50}
.locale-menu[hidden]{display:none}.locale-menu p{margin:0 0 8px;font-size:12px;color:#6c7470}.locale-menu form{display:grid;gap:5px}.locale-menu button{margin:0;text-align:left;padding:10px;border:0;background:#e7efeb;color:#204d40;border-radius:10px}
.avatar--company img,.company-pending__mark img{display:block;object-fit:contain}.company-pending__mark{background:transparent!important;box-shadow:none!important}
.reels-follower-strip{background:linear-gradient(115deg,#d0ae69,#f0db9e 55%,#cfac63)!important;border:1px solid #bd9651!important;color:#191a17!important;padding:16px 20px!important}
.reels-follower-strip__label span,.reels-follower-strip__label small,.reels-follower-strip strong{color:#191a17!important}.reels-follower-strip__label small{opacity:.78}
.followers-current{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.followers-current strong{color:#111510!important}.followers-current .followers-from-reels{font-size:20px;font-weight:800;color:#2c8054;line-height:1.1}
.reels-followers.panel{padding:24px}.reels-followers .followers-trend{margin:16px 0 20px}.company-pending{min-height:330px!important}.company-pending__notice{padding:26px!important}
.personal-offer-badge{background:#edf3e8;border:1px solid #ccd9ba;color:#31542f;display:inline-flex;align-items:center;gap:8px;margin-top:8px;padding:8px 12px;border-radius:99px;font-size:12px;font-weight:700}
.nav__item,.bottom-nav a,.bottom-nav button,.locale-control button,.button{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
.bottom-nav a:active,.bottom-nav button:active,.locale-control button:active{transform:scale(.96)}
@media(max-width:900px){
 .bottom-nav.bottom-nav--with-site{grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:0;padding:5px 4px max(8px,env(safe-area-inset-bottom));overflow:visible;background:rgba(255,253,248,.95);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 .bottom-nav--with-site>a{padding:9px 1px;min-width:0;gap:5px;font-size:10.5px;letter-spacing:-.25px;white-space:normal}
 .bottom-site-wrap.topbar__actions{position:relative;display:flex;justify-content:center;min-width:0;gap:0;align-self:stretch}
 .bottom-site-wrap .bottom-nav__site{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:transparent;color:#204d40;padding:0;margin:0;border:0;box-shadow:none;font-size:10px;font-weight:750;line-height:1.2;width:100%;transform:translateY(-10px)}
 .site-icon{display:flex;align-items:center;justify-content:center;width:53px;height:53px;background:linear-gradient(140deg,#37634f,#183e32);color:#f4e1b4;border:3px solid #faf7f1;border-radius:19px;box-shadow:0 5px 15px #204d4033}
 .bottom-site-status:not(:empty){position:absolute;bottom:82px;left:50%;transform:translateX(-50%);width:250px;padding:12px;border-radius:12px;background:#fffdf9;box-shadow:0 5px 24px #204d4033;font-size:12px}
 .topbar__actions{gap:4px}.topbar .mobile-brand{max-width:112px}.topbar{padding:12px 14px}
 .cabinet-page{padding-bottom:110px}
 .panel,.material-card,.mv3-card{scroll-margin-top:100px}
}
@media(prefers-reduced-motion:no-preference){.cabinet-page{animation:cabinet-enter .24s ease-out both}.locale-menu:not([hidden]){animation:cabinet-enter .15s ease-out both}@keyframes cabinet-enter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.nav__item,.bottom-nav a,.bottom-nav button,.locale-control button,.button{transition:none}}

/* cabinet-revision.css */
/* Compact statistics: the selector belongs to the network heading. */
.followers-before-after{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px!important}.followers-before-after strong{color:#151b15!important;font-size:30px!important}.followers-before-after>div:last-child{text-align:right}.followers-arrow{font-size:23px;color:#9b9e89}.followers-account-change{display:flex;align-items:center;justify-content:space-between;gap:15px;background:linear-gradient(110deg,#e6c98b,#f5e9c3);border:1px solid #d5b476;border-radius:13px;padding:12px 15px;font-size:12px}.followers-account-change strong{font-size:22px;color:#226943}.followers-account-change.is-negative strong{color:#ae4536}
.analytics-heading{display:block!important;margin-bottom:15px!important}.analytics-heading:after{display:none!important}.statistics-topline{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.statistics-topline>.overline{margin:0!important;font-size:11px!important;white-space:nowrap}.analytics-heading h1{font-size:clamp(26px,4vw,42px)!important;line-height:1.13;margin:0 0 9px!important}.statistics-account{font-size:14px!important;color:#315d48;font-weight:750;margin:0!important}
.statistics-topline .statistics-network-selector{width:auto!important;min-width:0;max-width:175px}.statistics-topline .network-selector>summary{padding:8px 10px;gap:7px;min-height:44px;border-radius:14px;font-size:12px}.statistics-topline .network-selector>summary small{display:none}.statistics-topline .network-selector>summary strong{font-size:12px}.statistics-topline .network-chip__icon{width:24px;height:24px;font-size:15px}.statistics-topline .network-selector__menu{min-width:230px;right:0;left:auto}
.reels-dashboard .reels-kicker{font-size:11px;gap:6px 10px;margin:0 0 16px;line-height:1.4}.reels-dashboard .reels-kicker>span:last-child{display:none}.reels-dashboard .reels-footnote{font-size:11px!important;line-height:1.5!important;margin:10px 0!important}.reels-comparison .reels-before p,.reels-comparison .reels-before small,.reels-followers small{font-size:12px!important;line-height:1.5!important}.statistics-refresh{text-align:center;padding:4px 12px 22px}.statistics-refresh form{margin:0}.statistics-refresh button{display:inline-flex;margin:0;padding:11px 18px;min-height:42px;font-size:13px;border-radius:14px;box-shadow:0 5px 15px #204d4015}.statistics-refresh .reels-footnote{max-width:440px;margin:10px auto 0!important}
.knowledge-advanced-input .panel-heading{margin:18px 0 20px!important;gap:0!important;min-height:0!important}.knowledge-advanced-input .panel-heading h2{margin-bottom:0!important}.knowledge-advanced-input .knowledge-form{padding-top:0!important}
@media(prefers-reduced-motion:no-preference){.motion-enter{opacity:0;transform:translateY(15px);transition:opacity .55s ease,transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:var(--motion-delay,0ms)}.motion-enter.is-visible{opacity:1;transform:translateY(0)}.network-selector[open] .network-selector__menu{animation:cabinet-enter .25s ease both}.knowledge-advanced-input[open]>.knowledge-form{animation:cabinet-enter .35s ease both}}

/* cabinet-acceptance.css */
/* Customer acceptance R6. External stylesheet: compatible with style-src self. */
@media(max-width:360px) { html,body { min-width:0; } }
.cabinet-nav-icon { display:block; flex:0 0 24px; }
.nav__item--sub { padding-left:22px; }
.bottom-nav .cabinet-nav-icon { margin:auto; }

.dashboard-plan.panel { padding:26px; overflow:hidden; background:linear-gradient(140deg,#fffdf8,#f3ebda); border:1px solid #d8c49a; }
.dashboard-plan__head,.dashboard-plan__name { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.dashboard-plan__head .overline { margin:0; color:#796742; font-size:11px; letter-spacing:.13em; }
.dashboard-plan__status { padding:6px 11px; border:1px solid #cad8ce; border-radius:99px; color:#234c3d; background:#e7efe8; font-size:12px; font-weight:700; }
.dashboard-plan__status.is-inactive { background:#eee7e2; border-color:#dfd4cc; color:#785e52; }
.dashboard-plan__name { margin:16px 0 6px; }
.dashboard-plan__name h2 { margin:0; color:#172c24; font-size:36px; letter-spacing:-.035em; line-height:1.1; }
.dashboard-plan__name a { color:#745a2c; font-size:13px; font-weight:700; white-space:nowrap; }
.dashboard-plan__limit { margin:10px 0 24px; color:#596158; font-size:14px; line-height:1.5; }
.dashboard-plan__dates { display:grid; grid-template-columns:1fr 1.2fr; gap:20px; padding:18px 0; border-top:1px solid #dfd5c0; border-bottom:1px solid #dfd5c0; }
.dashboard-plan__dates>div { min-width:0; }
.dashboard-plan__dates span { display:block; font-size:12px; color:#72776b; margin-bottom:5px; }
.dashboard-plan__dates strong { display:block; color:#263e31; font-size:16px; line-height:1.45; font-variant-numeric:tabular-nums; }
.dashboard-plan__usage { padding-top:22px; }
.dashboard-plan__usage>div { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dashboard-plan__usage>div>span { font-size:14px; font-weight:650; }
.dashboard-plan__usage strong { font-size:29px; font-variant-numeric:tabular-nums; color:#223e32; line-height:1.1; }
.dashboard-plan__usage strong b { font-weight:800; }
.dashboard-plan__usage strong small { color:#747c6b; font-size:17px; }
.dashboard-plan__usage progress { display:block; width:100%; height:7px; margin:16px 0 8px; border:0; border-radius:99px; overflow:hidden; appearance:none; accent-color:#a98a4b; background:#e4ddca; }
.dashboard-plan__usage progress::-webkit-progress-bar { background:#e4ddca; border-radius:99px; }
.dashboard-plan__usage progress::-webkit-progress-value { background:linear-gradient(90deg,#9f7b36,#d1b36e); border-radius:99px; }
.dashboard-plan__usage progress::-moz-progress-bar { background:#b39654; border-radius:99px; }
.dashboard-plan__day { display:block; font-size:11px; color:#76776a; text-align:right; }

.knowledge-purpose { font-size:14px; line-height:1.6; color:var(--text-2,#68716a); margin:12px 0 20px; max-width:75ch; }
.settings-layout .security-card:has(form[action="/app/content-language"]) { display:none; }
.knowledge-publication-language.panel { padding:20px 22px; margin:20px 0; }
.knowledge-publication-language h2 { font-size:20px; line-height:1.3; margin:0 0 13px; }
.knowledge-publication-language form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.knowledge-publication-language select,.knowledge-publication-language button { min-height:44px; margin:0; border-radius:12px; padding:10px 13px; font-size:14px; }
.knowledge-publication-language .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.knowledge-language-saved { color:#356548; font-size:12px; margin:9px 0 0; }
.knowledge-simple-flow { display:grid; gap:20px; }
.knowledge-simple-flow>.panel,.knowledge-simple-flow>.action-form { margin:0; min-width:0; }
.knowledge-advanced-entry { min-width:0; padding:2px 0 12px; }
.knowledge-advanced-entry .knowledge-advanced-button { display:flex; align-items:center; justify-content:center; gap:14px; width:100%; min-height:52px; margin:0; padding:15px 20px; border:1px solid #181d19; border-radius:16px; background:#181d19; color:#fff; font-size:15px; font-weight:750; line-height:1.35; text-align:center; text-decoration:none; box-shadow:0 6px 14px #17221a12; }
.knowledge-advanced-button>span { flex:0 0 auto; font-size:19px; color:#ddc58d; }
.knowledge-advanced-entry>p { display:block; margin:9px 10px 0; max-width:62ch; color:#71766c; font-size:12px; line-height:1.55; overflow-wrap:anywhere; }
.knowledge-assistant-heading { margin:0 0 22px; }
.knowledge-assistant-heading h1 { margin-top:18px; }
.knowledge-assistant-heading a,.knowledge-materials-return { font-size:14px; font-weight:700; color:#245347; }
.knowledge-assistant-heading p { font-size:14px; color:var(--text-2,#68716a); line-height:1.55; }
.knowledge-materials-panel.brain-start-card { padding:22px; }
.knowledge-materials-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.knowledge-materials-heading .overline { font-size:10px; margin:0 0 6px; }
.knowledge-materials-heading h2 { font-size:21px; line-height:1.25; margin:0; }
.knowledge-materials-count { padding:6px 11px; border-radius:99px; background:#edf1e9; color:#325341; font-size:13px; font-weight:750; }
.knowledge-materials-panel .knowledge-source-list { display:block; max-height:280px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; border:1px solid #e3e4db; border-radius:13px; background:#fafbf7; }
.knowledge-materials-panel .knowledge-source-row { display:grid; grid-template-columns:30px minmax(0,1fr) auto; align-items:start; gap:7px 10px; margin:0; padding:12px; border:0; border-bottom:1px solid #e5e8df; border-radius:0; background:transparent; box-shadow:none; }
.knowledge-materials-panel .knowledge-source-row:last-child { border-bottom:0; }
.knowledge-materials-panel .source-glyph { width:29px; height:33px; border-radius:7px; font-size:12px; color:#947536; background:#faf4e6; border-color:#e7d9b8; }
.knowledge-materials-panel .source-copy { min-width:0; }
.knowledge-materials-panel .source-copy>strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; line-height:1.4; }
.knowledge-materials-panel .source-copy>small { display:block; font-size:10px; color:#7e8378; margin-top:4px; line-height:1.3; }
.knowledge-materials-panel .source-state { min-width:0; min-height:0; padding:0; border:0; border-radius:0; background:transparent; grid-column:3; grid-row:1; }
.knowledge-materials-panel .source-state .badge { padding:4px 7px; min-height:0; font-size:10px; letter-spacing:0; white-space:nowrap; }
.knowledge-materials-panel .source-state .badge__dot { display:none; }
.knowledge-materials-panel .source-actions { grid-column:2 / -1; display:flex; gap:12px; padding:0; margin:0; justify-content:flex-start; }
.knowledge-materials-panel .source-actions form { margin:0; }
.knowledge-materials-panel .source-actions button { min-height:24px; margin:0; padding:2px 0; background:transparent; color:#697566; border:0; border-radius:0; font-size:11px; box-shadow:none; }
.knowledge-materials-panel .source-actions .danger-text { color:#946e64; }
.knowledge-materials-panel .knowledge-version-editor { margin-top:5px; font-size:11px; border:0; background:transparent; }
.knowledge-materials-panel .knowledge-version-editor summary { display:block; min-height:20px; height:auto; border:0; background:transparent; box-shadow:none; font-size:11px; line-height:1.5; padding:0; color:#7b7f71; }
.knowledge-materials-panel .knowledge-version-editor textarea { min-height:90px; font-size:13px; }
.knowledge-materials-panel .knowledge-version-editor button { font-size:12px; padding:8px 12px; min-height:34px; }
.knowledge-materials-panel .empty-state { display:block; min-height:0; padding:20px 14px; margin:0; border:0; border-radius:0; background:transparent; text-align:center; }
.knowledge-materials-panel .empty-state p { margin:0; font-size:13px; line-height:1.6; color:#7a8075; }
.knowledge-materials-panel .brain-start-form { margin-top:18px; gap:11px; }
.knowledge-materials-panel .brain-start-form label { display:flex; align-items:flex-start; gap:10px; font-size:13px; font-weight:500; line-height:1.5; color:#606b61; }
.knowledge-materials-panel .brain-start-form input[type=checkbox] { flex:0 0 19px; width:19px; height:19px; min-height:19px; margin:0; padding:0; }
.knowledge-materials-panel .brain-start-form button { min-height:46px; padding:12px 18px; margin:0; width:100%; font-size:14px; border-radius:13px; }
.knowledge-materials-panel .brain-start-form small,.knowledge-materials-notice { margin:0; color:#7b8278; font-size:12px; line-height:1.5; }
.knowledge-materials-notice { margin-top:13px; }

.knowledge-upload.panel { padding:22px; }
.knowledge-upload .panel-heading { margin-bottom:16px; }
.knowledge-upload .panel-heading h2 { font-size:23px; }
.knowledge-upload .panel-heading .overline { font-size:10px; }
.knowledge-upload form[data-knowledge-upload] { display:grid; gap:10px; }
.knowledge-upload .file-drop { width:100%; min-height:0; padding:19px 16px; gap:10px; border-radius:14px; margin:0; }
.knowledge-upload .file-drop>span:first-child { font-size:11px; line-height:1.55; color:#7c8379; font-weight:600; }
.knowledge-upload .file-drop>strong { max-width:28ch; font-size:14px; line-height:1.5; font-weight:650; }
.knowledge-upload .file-drop .file-picker-button { min-height:46px; width:100%; max-width:none; margin:4px 0 0; padding:11px 14px; font-size:14px; border-radius:12px; }
.knowledge-upload .file-drop .file-picker-hint { font-size:11px; line-height:1.4; margin:0; font-weight:400; }
.knowledge-upload button[data-upload-start],.knowledge-upload .external-upload-button { min-height:46px; width:100%; max-width:none; margin:0; padding:11px 14px; font-size:14px; line-height:1.4; border-radius:12px; }
.knowledge-upload .external-upload-button { background:#f8f6ee; border:1px solid #dfd5bc; color:#766035; font-size:12px; box-shadow:none; }
.knowledge-upload .file-selection-status { font-size:12px; line-height:1.5; margin:2px 0; color:#767d71; font-weight:500; overflow-wrap:anywhere; }
.knowledge-upload .external-upload-status:empty { display:none; }
.knowledge-upload .knowledge-safety { display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:14px; color:#808678; font-size:10px; line-height:1.5; }
.knowledge-upload-sheet h2 { font-size:22px; line-height:1.25; }
.knowledge-upload-sheet header .overline { font-size:10px; }
.knowledge-upload-sheet .knowledge-upload-note { font-size:12px; line-height:1.55; }

/* Each card follows its own content; one network cannot stretch adjacent cards. */
.network-card-grid { align-items:start; grid-auto-rows:auto; }
.network-card-grid .network-card { display:grid; grid-template-columns:48px minmax(0,1fr); grid-template-rows:48px auto auto; align-content:start; align-items:center; align-self:start; gap:15px 12px; min-height:0; height:auto; padding:22px; }
.network-card-grid .network-card::after { display:none; }
.network-card-grid .network-card__head { display:contents; }
.network-card-grid .network-logo { grid-column:1; grid-row:1; width:48px; height:48px; border-radius:12px; border:1px solid #decca6; background:linear-gradient(145deg,#fffdf8,#f5ebd5); box-shadow:0 2px 5px #9479360a; font-size:0; }
.network-card-grid .network-logo::before { content:""; display:block; width:29px; height:29px; background-size:contain; background-position:center; background-repeat:no-repeat; }
.network-card-grid .network-card__head>.badge { grid-column:1 / -1; grid-row:2; justify-self:start; max-width:100%; padding:5px 9px; font-size:11px; white-space:normal; letter-spacing:0; }
.network-card-grid .network-card>h2 { grid-column:2; grid-row:1; margin:0; min-width:0; word-break:normal; overflow-wrap:normal; font-size:22px; line-height:1.2; }
.network-card-grid .network-card>p,.network-card-grid .network-card>dl,.network-card-grid .network-card>div,.network-card-grid .network-card>section,.network-card-grid .network-card>aside,.network-card-grid .network-card>a,.network-card-grid .network-card>details,.network-card-grid .network-card>form { grid-column:1 / -1; margin:0; min-width:0; }
.network-card-grid .network-card>p { font-size:13px; line-height:1.6; color:#73796e; }
.network-card-grid .network-card>p small { font-size:12px; }
.network-card-grid .network-card .network-account { color:var(--ink); font-weight:650; }
.network-card-grid .network-card>.network-card__content { display:flex; flex-direction:column; align-self:start; gap:15px; }
.network-card__content>p,.network-card__content>form,.network-card__content>div { margin:0; }
.network-card__content>p { font-size:13px; line-height:1.6; color:var(--muted); }
.network-card__content small { font-size:12px; }
.network-card__content>form[data-social-oauth-start],.network-card__content>.network-card__primary { margin-top:auto; }
.network-card__content>form>button,.network-card__content>.button,.network-card__footer>.button { width:100%; min-height:44px; }
.network-card__content>.network-card__footer { display:flex; align-items:center; min-height:80px; flex-shrink:0; }
[data-social-oauth-status]:empty { display:none; }
.network-card-grid .network-card--facebook .network-logo::before { content:"f"; display:grid; place-items:center; color:#b49655; font:bold 30px/1 Arial,sans-serif; }
.network-card-grid .network-card--youtube .network-logo::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2' y='6' width='28' height='20' rx='6' fill='%23b49655'/%3E%3Cpath d='M13 11l9 5-9 5z' fill='white'/%3E%3C/svg%3E"); }
.network-card-grid .network-card--instagram .network-logo::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23b49655' stroke-width='2.5'%3E%3Crect x='4' y='4' width='24' height='24' rx='7'/%3E%3Ccircle cx='16' cy='16' r='5.5'/%3E%3Ccircle cx='23.5' cy='8.8' r='1.3' fill='%23b49655' stroke='none'/%3E%3C/svg%3E"); }
.network-card-grid .network-card--tiktok .network-logo::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M19 3h4c.3 3.5 2.4 5.8 6 6v4c-2.2 0-4.2-.7-6-2v11a8 8 0 1 1-8-8v4a4 4 0 1 0 4 4z' fill='%23b49655'/%3E%3C/svg%3E"); }
.network-card-grid .network-card--telegram .network-logo::before { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M28 5L24 27l-8-6-4 4 1-7 11-9-14 7-7-2z' fill='%23b49655'/%3E%3C/svg%3E"); }
@media(max-width:520px) {
  .dashboard-plan.panel { padding:22px; }
  .dashboard-plan__dates { grid-template-columns:1fr; gap:15px; }
  .dashboard-plan__dates>div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
  .dashboard-plan__dates span { margin:0; white-space:nowrap; }
  .dashboard-plan__dates strong { text-align:right; font-size:14px; }
  .knowledge-advanced-entry .knowledge-advanced-button { font-size:14px; padding:14px 17px; }
  .knowledge-materials-panel.brain-start-card,.knowledge-upload.panel { padding:19px; }
  .network-card-grid .network-card { padding:19px; grid-template-columns:44px minmax(0,1fr); grid-template-rows:44px auto auto; gap:13px 10px; }
  .network-card-grid .network-logo { width:44px; height:44px; border-radius:11px; }
  .network-card-grid .network-card>h2 { font-size:21px; }
}


/* Company materials: preserve card width while preview/copy controls wrap on mobile. */
.material-video-preview video { display:block; width:100%; max-height:70vh; aspect-ratio:9 / 16; object-fit:contain; background:#05080b; border-radius:16px; }
.material-share-ready { margin:12px 0 6px; color:var(--accent,#8fc6ff); font-weight:700; }
.material-copy-label { display:block; margin:8px 0 4px; font-weight:650; }
.material-share-copy { display:block; width:100%; max-width:100%; min-height:13rem; resize:vertical; box-sizing:border-box; white-space:pre-wrap; overflow-wrap:anywhere; }
.material-copy-button { margin-top:8px; }
.material-copy-status { display:inline-block; margin-inline-start:8px; font-size:.9em; }
.material-share-unavailable { color:var(--muted,#a9b2bf); }
@media (max-width:600px) {
  .material-card { min-width:0; }
  .material-variant { flex-wrap:wrap; gap:8px; }
  .material-share-copy { font-size:14px; }
}

/* notifications.css */
.notifications{position:relative;flex:none}.notification-bell{position:relative;display:grid;place-items:center;width:42px;height:42px;min-height:0;padding:0;border:1px solid #e0ddd4;border-radius:14px;background:#fff;color:#214c40;box-shadow:0 2px 5px #173d3110}.notification-count{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;border:2px solid #fff;border-radius:12px;background:#bf3d3d;color:#fff;font:700 10px/13px system-ui;text-align:center}.notification-count[hidden],.notification-panel[hidden],.notification-more[hidden]{display:none}.notification-panel{position:absolute;right:0;top:54px;width:370px;max-width:calc(100vw - 24px);max-height:min(650px,75dvh);overflow:auto;background:#fff;border:1px solid #ddd8cc;border-radius:22px;padding:16px;box-shadow:0 20px 70px #173d3130;z-index:220;overscroll-behavior:contain}.notification-panel header{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-panel header strong{font-size:18px;color:#173c31}.notification-panel header button{background:transparent;color:#555;border:0;padding:0;width:32px;height:32px;min-height:0;font-size:25px;box-shadow:none}.notification-toolbar{display:flex;justify-content:space-between;gap:12px;margin:12px 0}.notification-toolbar button,.notification-toolbar a{border:0;background:none;box-shadow:none;padding:4px 0;min-height:0;font-size:12px;color:#35624f;font-weight:600}.notification-list{display:grid;gap:8px}.notification-item{border:1px solid #e9e5dd;border-radius:14px;padding:12px;display:grid;gap:7px;background:#faf9f5}.notification-item.is-unread{border-left:3px solid #b89b59;background:#f4f8f3}.notification-item-body{white-space:pre-line;overflow-wrap:anywhere;font-size:13px;line-height:1.5;color:#29352f}.notification-item-body a{color:#285f50;text-decoration:underline}.notification-item-body b{font-weight:700}.notification-item time{font-size:10px;color:#82877e}.notification-item button{justify-self:start;min-height:0;font-size:11px;border:0;background:none;color:#396553;padding:2px 0;box-shadow:none}.notification-more{margin:12px auto 0;display:block;padding:9px 15px;min-height:0;font-size:12px}.notification-panel [role=status]{font-size:12px;line-height:1.45;color:#737970}.notification-panel [role=status]:empty{display:none}.notification-settings{margin-bottom:22px}.notification-settings form{display:grid;gap:0}.notification-choice{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eeeae3;font-size:14px!important;line-height:1.45!important;cursor:pointer}.notification-choice input{appearance:auto;accent-color:#245242;flex:none;width:19px!important;height:19px;min-height:0!important;margin:0}.notification-choice span{min-width:0;font-size:14px}.notification-caption{font-size:12px!important;line-height:1.55!important;color:#72796f;margin:8px 0 14px;overflow-wrap:anywhere}.notification-settings form>button{justify-self:start;font-size:14px;min-height:44px;padding:10px 24px;margin-top:8px}.notification-settings [role=status]{font-size:12px;color:#375b46}.settings-layout form:has(select[name=notification_mode]) label:has(select[name=notification_mode]){display:none}
@media(max-width:600px){.topbar__actions{gap:7px!important}.notification-bell{width:34px;height:36px;border-radius:11px}.notification-bell svg{width:20px;height:20px}.notification-panel{position:fixed;top:calc(env(safe-area-inset-top,0px) + 76px);left:12px;right:12px;width:auto;max-height:calc(100dvh - 176px);padding:14px}.notification-settings{padding:20px}.notification-settings h2{font-size:22px}.mobile-brand{max-width:104px;height:auto}.topbar__start{gap:8px!important}.locale-switch button{padding-left:8px!important;padding-right:8px!important}.locale-more{padding:0!important;width:18px!important}.topbar{padding-left:12px!important;padding-right:12px!important}}@media(max-width:360px){.mobile-brand{max-width:83px}.notification-bell{width:31px}.topbar__actions{gap:4px!important}.locale-switch button{padding-left:6px!important;padding-right:6px!important}}
.notification-settings~.workspace-heading{display:none}
@media(max-width:600px){.topbar .topbar__start{min-width:0}.topbar .mobile-brand{max-width:104px!important}.topbar .locale-more{min-width:18px!important}}@media(max-width:360px){.topbar .mobile-brand{max-width:83px!important}}

/* ui-soft-glass-v1.css */
/* ALGORITHM Soft Glass V1. Material only; brand, geometry and content unchanged.
   Opaque by default; progressive enhancement. No moving glare or extra JS. */
body[data-ui-material="soft-glass"] {
  --alg-glass-filter: none;
  --alg-glass-nav: #fffdf9;
  --alg-glass-billing: #faf7f2;
  --alg-glass-popover: #ffffff;
  --alg-glass-warm-popover: #fffdf9;
  --alg-glass-sheen: linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0) 58%);
  --alg-glass-edge: inset 0 1px 0 rgba(255,255,255,.76);
}
body[data-ui-material="soft-glass"] :is(.sidebar, .topbar, .bottom-nav) {
  background-color: var(--alg-glass-nav);
  background-image: var(--alg-glass-sheen);
  -webkit-backdrop-filter: var(--alg-glass-filter);
  backdrop-filter: var(--alg-glass-filter);
}
body[data-ui-material="soft-glass"] .topbar {
  box-shadow: var(--alg-glass-edge), 0 4px 18px rgba(27,27,25,.035);
}
body[data-ui-material="soft-glass"] .sidebar {
  box-shadow: inset -1px 0 0 rgba(255,255,255,.62), 8px 0 30px rgba(27,27,25,.035);
}
body[data-ui-material="soft-glass"] .bottom-nav {
  box-shadow: var(--alg-glass-edge), 0 -8px 26px rgba(27,27,25,.06);
}
body[data-ui-material="soft-glass"] .billing-header {
  background-color: var(--alg-glass-billing);
  background-image: var(--alg-glass-sheen);
  -webkit-backdrop-filter: var(--alg-glass-filter);
  backdrop-filter: var(--alg-glass-filter);
  box-shadow: var(--alg-glass-edge), 0 4px 18px rgba(27,27,25,.035);
}
body[data-ui-material="soft-glass"] :is(.locale-menu, .notification-panel,
    .profile-drawer__menu, .network-selector__menu, .command-palette, .modal) {
  background-color: var(--alg-glass-popover);
  background-image: var(--alg-glass-sheen);
  -webkit-backdrop-filter: var(--alg-glass-filter);
  backdrop-filter: var(--alg-glass-filter);
  box-shadow: var(--alg-glass-edge), 0 18px 48px rgba(27,27,25,.10);
}
body[data-ui-material="soft-glass"] .locale-menu {
  background-color: var(--alg-glass-warm-popover);
}
/* No filters on content cards, inputs, primary actions, QR codes or media.
   Keep focus, hidden/disabled states, spacing and stacking order from base CSS. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body[data-ui-material="soft-glass"] {
    --alg-glass-filter: blur(10px);
    --alg-glass-nav: rgba(255,253,249,.90);
    --alg-glass-billing: rgba(250,247,242,.92);
    --alg-glass-popover: rgba(255,255,255,.97);
    --alg-glass-warm-popover: rgba(255,253,249,.97);
  }
}
@media (max-width: 900px) {
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    body[data-ui-material="soft-glass"] { --alg-glass-filter: blur(8px); }
  }
}
/* Preferences are progressive too: unsupported queries keep the dense tint. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more),
    (prefers-reduced-motion: reduce), (forced-colors: active), print {
  body[data-ui-material="soft-glass"] {
    --alg-glass-filter: none;
    --alg-glass-nav: #fffdf9;
    --alg-glass-billing: #faf7f2;
    --alg-glass-popover: #ffffff;
    --alg-glass-warm-popover: #fffdf9;
    --alg-glass-sheen: none;
  }
  body[data-ui-material="soft-glass"] .scrim {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ui-header-brand-v1.css */
/* OWNER: larger ALGORITHM wordmark, same palette and existing navigation. */
@media (max-width: 900px) {
  .topbar .topbar__start .mobile-brand {
    width: clamp(100px, calc(100vw - 222px), 196px);
    max-width: none !important;
    height: auto;
    flex: 0 0 auto;
  }
  .topbar .topbar__start { min-width: 0; }
  .topbar .topbar__actions { flex-shrink: 0; }
}
@media (min-width: 901px) {
  .topbar .breadcrumbs > span:first-child {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: .03em;
  }
}
.notification-item > a {
  justify-self: start;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
}

/* agent-appearance.css */
/* V3 appearance layer. Classic remains available. No financial state is derived here. */
html[data-agent-theme] { --agent-accent:#e4bb70; --agent-accent-rgb:228,187,112; --agent-base:#090b0c; --agent-panel:#111416; --agent-raised:#191c1e; --agent-ink:#f2f1ec; --agent-muted:#a7aaa8; --agent-border:#303335; --agent-hue:0deg; }
html[data-agent-theme="green"] { --agent-accent:#75e6a8; --agent-accent-rgb:117,230,168; --agent-base:#070e0c; --agent-panel:#101c17; --agent-raised:#17251f; --agent-border:#283e32; --agent-hue:87deg; }
html[data-agent-theme="blue"] { --agent-accent:#8cc8ff; --agent-accent-rgb:140,200,255; --agent-base:#07101a; --agent-panel:#111c2a; --agent-raised:#19273a; --agent-border:#2c3b50; --agent-hue:172deg; }
html[data-agent-theme="red"] { --agent-accent:#ff9b9f; --agent-accent-rgb:255,155,159; --agent-base:#140a0d; --agent-panel:#201316; --agent-raised:#2c1b20; --agent-border:#4b2c33; --agent-hue:316deg; }
html[data-agent-theme="orange"] { --agent-accent:#ffbd79; --agent-accent-rgb:255,189,121; --agent-base:#140e08; --agent-panel:#21180f; --agent-raised:#2a2016; --agent-border:#473525; --agent-hue:340deg; }
html[data-agent-theme="tiffany"] { --agent-accent:#79e5dc; --agent-accent-rgb:121,229,220; --agent-base:#061311; --agent-panel:#0e211f; --agent-raised:#17302d; --agent-border:#29443e; --agent-hue:121deg; }
html[data-agent-theme="pearl"] { --agent-accent:#79603a; --agent-accent-rgb:121,96,58; --agent-base:#f1eee9; --agent-panel:#fcfbf8; --agent-raised:#fff; --agent-ink:#242522; --agent-muted:#676a64; --agent-border:#d6d2ca; --agent-hue:0deg; }
html[data-agent-theme="classic"] { --agent-accent:#2e604b; --agent-accent-rgb:46,96,75; --agent-base:#f4f0ea; --agent-panel:#fff; --agent-raised:#fffdf9; --agent-ink:#1b1b19; --agent-muted:#6b736d; --agent-border:#d9d4cb; }
html[data-agent-theme="tiffany-light"] { --agent-accent:#117c76; --agent-accent-rgb:17,124,118; --agent-base:#eef9f7; --agent-panel:#fff; --agent-raised:#e2f4f0; --agent-ink:#173c37; --agent-muted:#55756f; --agent-border:#c5ded8; --agent-hue:121deg; }
html[data-agent-theme="hermes"] { --agent-accent:#a84914; --agent-accent-rgb:168,73,20; --agent-base:#fff4e8; --agent-panel:#fffdf9; --agent-raised:#f9e6d3; --agent-ink:#34271e; --agent-muted:#796754; --agent-border:#ead5bf; --agent-hue:340deg; }
html[data-agent-theme]:not([data-agent-theme="classic"]) {
 color-scheme:dark; --alg-canvas-ivory:var(--agent-base); --alg-canvas-soft:var(--agent-panel); --alg-surface-white:var(--agent-panel); --alg-surface-raised:var(--agent-raised); --alg-surface-subtle:var(--agent-raised); --alg-surface-disabled:var(--agent-raised); --alg-ink-primary:var(--agent-ink); --alg-ink-secondary:var(--agent-muted); --alg-text-muted:var(--agent-muted); --alg-text-subtle:var(--agent-muted); --alg-border-neutral:var(--agent-border); --alg-border-soft:var(--agent-border); --alg-emerald-950:var(--agent-accent); --alg-emerald-900:var(--agent-accent); --alg-emerald-800:var(--agent-accent); --alg-emerald-700:var(--agent-accent); --alg-emerald-600:var(--agent-accent); --alg-emerald-100:var(--agent-raised); --alg-emerald-050:var(--agent-panel); --alg-gold-700:var(--agent-accent); --alg-gold-600:var(--agent-accent); --alg-gold-500:var(--agent-accent); --alg-gold-100:var(--agent-raised); --alg-gold-050:var(--agent-panel); --ivory:var(--agent-base); --ivory-soft:var(--agent-panel); --white:var(--agent-panel); --ink:var(--agent-ink); --ink-secondary:var(--agent-muted); --muted:var(--agent-muted); --emerald:var(--agent-accent); --emerald-deep:var(--agent-accent); --emerald-soft:var(--agent-raised); --gold:var(--agent-accent); --gold-soft:var(--agent-raised); --line:var(--agent-border); --line-strong:var(--agent-border); --surface-raised:var(--agent-raised); --lime-rgb:var(--agent-accent-rgb);
 background:var(--agent-base);
}
html[data-agent-theme="pearl"],html[data-agent-theme="tiffany-light"],html[data-agent-theme="hermes"] { color-scheme:light; }
html[data-agent-theme="tiffany-light"] .agent-hero h1 em { color:#92e8df; }
html[data-agent-theme="hermes"] .agent-hero h1 em { color:#ffc28b; }
html[data-agent-theme="tiffany-light"] .agent-auth-intro h2 em { color:#92e8df; }
html[data-agent-theme="hermes"] .agent-auth-intro h2 em { color:#ffc28b; }
html:is([data-agent-theme="tiffany-light"],[data-agent-theme="hermes"]) .agent-shortcut-icon { background:var(--agent-raised); border-color:var(--agent-border); color:var(--agent-accent); }
html:is([data-agent-theme="tiffany-light"],[data-agent-theme="hermes"]) .agent-shortcut-icon--connect { color:#235f91; }
html:is([data-agent-theme="tiffany-light"],[data-agent-theme="hermes"]) .agent-shortcut-icon--content { color:#a83d51; }
html:is([data-agent-theme="tiffany-light"],[data-agent-theme="hermes"]) .agent-shortcut-icon--growth { color:#287550; }
html[data-agent-theme]:not([data-agent-theme="classic"]) body { background:var(--agent-base); color:var(--agent-ink); --alg-glass-nav:var(--agent-base); --alg-glass-billing:var(--agent-panel); --alg-glass-popover:var(--agent-raised); --alg-glass-warm-popover:var(--agent-raised); --alg-glass-sheen:none; --alg-glass-edge:none; }
html[data-agent-theme]:not([data-agent-theme="classic"]) .ambient { display:none; }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.sidebar,.topbar,.bottom-nav) { border-color:var(--agent-border); background:var(--agent-base); box-shadow:none; }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.panel,.setup-step,.review-card,.settings-form,.security-card,.workspace__switch,.locale-switch,.locale-menu,.notification-panel,.command-palette,.modal,.profile-drawer__menu,.network-selector__menu) { background:var(--agent-panel); border-color:var(--agent-border); color:var(--agent-ink); box-shadow:none; }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(input,select,textarea) { background:var(--agent-raised); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.nav__item,.bottom-nav a,.breadcrumbs,.setup-step small,.workspace small,.overline,.nav__label,.workspace__eyebrow,.dashboard-plan__limit,.dashboard-plan__dates span,.dashboard-plan__day,.dashboard-plan__usage strong small) { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.nav__item.is-active,.bottom-nav .is-active,.locale-switch button[aria-pressed="true"]) { color:var(--agent-accent); background:rgba(var(--agent-accent-rgb),.08); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.dashboard-plan__name h2,.dashboard-plan__dates strong,.dashboard-plan__usage strong,.setup-step strong,.breadcrumbs strong) { color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.dashboard-plan__head .overline,.dashboard-plan__name a,.notification-bell,.icon-button,.locale-more) { color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .dashboard-plan__dates { border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .dashboard-plan__usage progress { accent-color:var(--agent-accent); background:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .dashboard-plan__usage progress::-webkit-progress-bar { background:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .dashboard-plan__usage progress::-webkit-progress-value { background:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .dashboard-plan__usage progress::-moz-progress-bar { background:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .button:not(.button--quiet),html[data-agent-theme]:not([data-agent-theme="classic"]) form button[type="submit"]:not(.nav__item):not([name="locale"]) { background:var(--agent-accent); color:var(--agent-base); border-color:var(--agent-accent); }
/* The existing plan carousel keeps its behavior and follows the selected theme. */
/* Legacy modules use their own colors. Bind every surface and label to the same palette. */
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 { --rv-ink:var(--agent-ink); --rv-green:var(--agent-accent); --rv-soft:var(--agent-raised); --rv-gold:var(--agent-accent); --rv-line:var(--agent-border); color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-stat,.rv3-panel,.rv3-member,.rv3-copy,.rv3-tree-controls,.rv3-personal-card dl,.rv3-leg-summary>div,.rv3-vacant-label) { background:var(--agent-panel); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(h1,h2,h3,strong,.rv3-router>span) { color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-title>p:last-child,.rv3-note,.rv3-empty,.rv3-stat>span,.rv3-stat>small,.rv3-member small,.rv3-legs,dt,.rv3-leg-summary span,.rv3-router>small,.rv3-tree-status,.rv3-period) { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-stat--green,.rv3-stat--gold,.rv3-leg-summary>div.is-minor) { background:rgba(var(--agent-accent-rgb),.1); border-color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-tabs,.rv3-router-options,.rv3-tag,.rv3-node-more,.rv3-notice) { background:var(--agent-raised); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-tabs a,.rv3-router-options button,.rv3-username,.rv3-chevron) { color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-tabs a[aria-current],.rv3-router-options button[aria-pressed="true"],.rv3-button,.rv3-search button) { background:var(--agent-accent); color:var(--agent-base); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 .rv3-tree { background-color:var(--agent-base); background-image:radial-gradient(var(--agent-border) 1px,transparent 1px); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 .rv3-tree-lines path { stroke:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .rv3 :is(.rv3-member:hover,.rv3-link-tabs button[aria-selected="true"]) { background:var(--agent-raised); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .reels-dashboard { --reels-ink:var(--agent-ink); --reels-muted:var(--agent-muted); --reels-line:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.reels-card,.reels-table th,.reels-table td) { background:var(--agent-panel); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.reels-card--lead,.reels-day__count,.reel-link,.reels-table thead th,.reels-table tfoot th,.reels-table tfoot td,.reels-table tbody tr:hover td,.reels-table tbody tr:hover th) { background:var(--agent-raised); color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .reels-card--lead :is(span,small) { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .notification-panel :is(header strong,.notification-item-body) { color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.notification-item,.notification-item.is-unread) { background:var(--agent-raised); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .notification-item.is-unread { border-left-color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .notification-panel :is(a,button) { color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.notification-item time,.notification-panel [role="status"],.notification-caption) { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-current,.plan-dialog,.plan-dialog__sheet) { background:var(--agent-panel); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-current>strong,.plan-payment-totals strong) { color:var(--agent-ink); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-current>span:first-child { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-face { background:linear-gradient(145deg,var(--agent-raised),var(--agent-panel))!important; color:var(--agent-ink)!important; border-color:var(--agent-border)!important; box-shadow:0 18px 40px -22px #0008!important; }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-face--gold { background:linear-gradient(130deg,rgba(var(--agent-accent-rgb),.22),transparent 95%),var(--agent-panel)!important; border-color:var(--agent-accent)!important; }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-face--green { background:linear-gradient(145deg,rgba(var(--agent-accent-rgb),.12),transparent 95%),var(--agent-panel)!important; }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-showcase.is-enhanced .plan-slide.is-selected .plan-face { box-shadow:0 20px 48px -22px #0009,inset 0 1px 0 var(--agent-border)!important; }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-status,.plan-current .state-pill) { color:var(--agent-accent); background:var(--agent-raised); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-dialog__price small,.plan-specs dt,.plan-selection,.plan-payment-totals span,.plan-payment-row small,.plan-history-empty,.plan-heading p:last-child) { color:var(--agent-muted); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-specs>div,.plan-payment-row) { border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) :is(.plan-dialog__close,.plan-navigation>button,.plan-unavailable,.plan-current-note,.plan-payment-totals>div) { background:var(--agent-raised); color:var(--agent-ink); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .plan-dots button[aria-pressed="true"] span { background:var(--agent-accent); }
.agent-theme-toggle { display:grid; place-items:center; width:38px; height:38px; padding:8px; border:1px solid var(--agent-border); border-radius:50%; background:var(--agent-panel); color:var(--agent-accent); flex-shrink:0; }
.agent-theme-toggle svg { width:20px; height:20px; }
.agent-hero { position:relative; isolation:isolate; min-height:320px; overflow:hidden; border:1px solid var(--agent-border); border-radius:24px; background:#090b0c; margin-bottom:18px; }
.agent-hero-earth { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center; opacity:.85; filter:hue-rotate(var(--agent-hue)); z-index:-2; }
.agent-hero::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#090b0cf5 0%,#090b0caa 34%,transparent 74%),linear-gradient(0deg,#090b0cbf,transparent 60%); }
.agent-hero-copy { padding:36px; max-width:560px; }
.agent-hero .agent-eyebrow { color:#c4c7c3; font-size:9px; font-weight:650; letter-spacing:.22em; margin:0 0 26px; }
.agent-hero h1 { color:#f4f2eb; font-size:clamp(32px,4.3vw,54px); font-weight:650; line-height:1.06; letter-spacing:-.045em; margin:0 0 17px; }
.agent-hero h1 em { font-style:normal; color:var(--agent-accent); }
.agent-hero-copy>p:not(.agent-eyebrow) { color:#bfc2bd; max-width:310px; font-size:14px; line-height:1.5; margin:0 0 20px; }
.agent-theme-trigger { display:inline-flex; gap:9px; align-items:center; min-height:44px; padding:7px 13px; background:#0a0d0eba; color:#f3f1e8; border:1px solid #ffffff3b; border-radius:22px; font-size:12px; }
.agent-theme-dot { width:8px; height:8px; border-radius:50%; background:var(--agent-accent); box-shadow:0 0 12px rgba(var(--agent-accent-rgb),.4); }
.agent-shortcuts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.agent-shortcut { display:flex; align-items:center; gap:12px; min-width:0; padding:17px 14px; border:1px solid var(--agent-border); border-radius:16px; color:var(--agent-ink); text-decoration:none; background:linear-gradient(135deg,rgba(var(--agent-accent-rgb),.03),transparent),var(--agent-panel); transition:transform .15s,border-color .15s; }
.agent-shortcut:hover { transform:translateY(-2px); border-color:var(--agent-accent); }
.agent-shortcut>span:nth-child(2) { min-width:0; }
.agent-shortcut strong { display:block; font-size:13px; font-weight:650; }
.agent-shortcut small { display:block; color:var(--agent-muted); font-size:10px; line-height:1.4; margin-top:3px; }
.agent-shortcut>b { margin-left:auto; font-size:24px; color:var(--agent-muted); font-weight:300; }
.agent-shortcut-icon { display:grid; place-items:center; flex:0 0 34px; width:34px; height:38px; border:1px solid #e4bb7038; border-radius:10px; color:#e4bb70; background:#e4bb7010; font-size:28px; }
.agent-shortcut-icon .cabinet-nav-icon { width:20px; height:20px; }
.agent-shortcut-icon--connect { color:#8ec8ff; background:#8ec8ff10; border-color:#8ec8ff30; }
.agent-shortcut-icon--content { color:#ed969c; background:#ed969c10; border-color:#ed969c30; }
.agent-shortcut-icon--growth { color:#78d6a6; background:#78d6a610; border-color:#78d6a630; }
.agent-appearance-dialog { box-sizing:border-box; width:min(510px,calc(100vw - 28px)); max-height:calc(100dvh - 40px); padding:28px; border:1px solid var(--agent-border); border-radius:24px; background:var(--agent-panel); color:var(--agent-ink); box-shadow:0 30px 100px #0009; overflow-y:auto; }
.agent-appearance-dialog::backdrop { background:#000a; backdrop-filter:blur(8px); }
.agent-appearance-dialog header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.agent-appearance-dialog header h2 { font-size:27px; margin:6px 0 10px; letter-spacing:-.035em; color:var(--agent-ink); }
.agent-appearance-dialog header .overline { font-size:9px; color:var(--agent-accent); letter-spacing:.2em; margin:0; }
.agent-appearance-dialog>p { font-size:13px; color:var(--agent-muted); margin:0 0 18px; }
.agent-appearance-dialog header button { color:var(--agent-muted); font-size:26px; background:transparent; border:0; }
.agent-theme-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.agent-theme-option { position:relative; display:flex; flex-direction:column; align-items:center; gap:9px; padding:12px 4px; background:var(--agent-raised); color:var(--agent-ink); border:1px solid var(--agent-border); border-radius:14px; min-width:0; font-size:12px; cursor:pointer; }
.agent-theme-option img { width:52px; height:52px; border-radius:13px; }
.agent-theme-option[aria-pressed="true"] { outline:2px solid var(--agent-accent); outline-offset:-1px; }
html[data-agent-theme] .agent-appearance-dialog .agent-theme-option { background:var(--agent-raised); color:var(--agent-ink); border-color:var(--agent-border); box-shadow:none; }
html[data-agent-theme] .agent-appearance-dialog .agent-theme-option[aria-pressed="true"] { background:rgba(var(--agent-accent-rgb),.1); color:var(--agent-ink); border-color:var(--agent-accent); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .notification-bell { background:var(--agent-panel); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .avatar--company { background:var(--agent-panel); border-color:var(--agent-border); }
html[data-agent-theme]:not([data-agent-theme="classic"]) .bottom-nav .bottom-nav__site .site-icon { background:var(--agent-panel); border-color:var(--agent-border); color:var(--agent-accent); box-shadow:0 0 0 1px var(--agent-border); }
.agent-theme-check { display:none; position:absolute; top:3px; right:5px; font-size:11px; color:var(--agent-accent); }
.agent-theme-option[aria-pressed="true"] .agent-theme-check { display:block; }
.agent-appearance-dialog .agent-appearance-status { min-height:20px; font-size:12px; margin:14px 0; color:var(--agent-accent); }
.agent-install-preview { display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--agent-border); }
.agent-install-preview img { width:58px; height:58px; border-radius:15px; }
.agent-install-preview strong,.agent-install-preview span { display:block; font-size:13px; }
.agent-install-preview span { color:var(--agent-muted); font-size:11px; margin-top:3px; }
.agent-appearance-dialog .agent-install-help { font-size:11px; line-height:1.65; margin:0; }
.agent-holding-link { display:block; color:var(--agent-muted); font-size:10px; text-decoration:none; padding:12px 8px; }
html[data-agent-theme="classic"] :is(.agent-hero,.agent-shortcuts) { display:none; }
html[data-agent-theme="pearl"] .agent-hero { background:#f1eee9; }
html[data-agent-theme="pearl"] .agent-hero-earth { filter:grayscale(1) invert(1); opacity:.76; }
html[data-agent-theme="pearl"] .agent-hero::after { background:linear-gradient(90deg,#f1eee9f0,#f1eee955 65%,transparent); }
html[data-agent-theme="pearl"] .agent-hero h1 { color:#242522; }
html[data-agent-theme="pearl"] .agent-hero h1 em { color:#79603a; }
html[data-agent-theme="pearl"] .agent-hero-copy>p { color:#4d514c; }
html[data-agent-theme="pearl"] .agent-shortcut-icon { background:#eeeeeb; border-color:#d6d2ca; color:#786441; }
html[data-agent-theme="pearl"] .agent-shortcut-icon--connect { color:#235f91; }
html[data-agent-theme="pearl"] .agent-shortcut-icon--content { color:#a83d51; }
html[data-agent-theme="pearl"] .agent-shortcut-icon--growth { color:#287550; }
html[data-agent-theme] :focus-visible { outline:2px solid var(--agent-accent); outline-offset:4px; }
@media(max-width:1200px) { .agent-shortcuts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .topbar { padding-top:calc(10px + env(safe-area-inset-top,0px))!important; min-height:calc(70px + env(safe-area-inset-top,0px)); }
 html[data-agent-theme] .plan-showcase { margin-left:-16px; margin-right:-16px; }
 .agent-hero { min-height:258px; margin-bottom:12px; border-radius:20px; }
 .agent-hero-copy { padding:27px 21px; }
 .agent-hero .agent-eyebrow { font-size:7px; letter-spacing:.16em; margin-bottom:28px; }
 .agent-hero h1 { font-size:34px; max-width:260px; }
 .agent-hero-copy>p:not(.agent-eyebrow) { font-size:12px; max-width:205px; margin-bottom:14px; }
 .agent-hero-earth { object-position:61% center; }
 .agent-hero::after { background:linear-gradient(90deg,#090b0ceb,#090b0c55 60%,#090b0c00),linear-gradient(0deg,#090b0c80,transparent); }
 .agent-shortcuts { grid-template-columns:1fr; gap:9px; margin-bottom:22px; }
 .agent-shortcut { min-height:65px; padding:11px 15px; border-radius:13px; }
 .agent-shortcut strong { font-size:14px; }
 .agent-shortcut small { font-size:11px; }
 .agent-theme-toggle { width:32px; height:32px; padding:7px; }
 .topbar__actions { gap:7px; }
 .topbar .topbar__start .mobile-brand { width:clamp(88px,calc(100vw - 252px),138px); }
 .agent-appearance-dialog { padding:22px 18px; }
 .agent-theme-grid { gap:7px; }
 .agent-theme-option img { width:46px; height:46px; }
}
@media(prefers-reduced-motion:reduce) { .agent-shortcut { transition:none; } .agent-shortcut:hover { transform:none; } .agent-appearance-dialog::backdrop { backdrop-filter:none; } }
@media(forced-colors:active) { .agent-theme-option[aria-pressed="true"] { outline:2px solid Highlight; } .agent-hero::after { background:Canvas; } }

/* Public entry shares the reference shell; authentication actions stay unchanged. */
html[data-agent-theme] .agent-public-shell { width:min(1180px,100%); max-width:1180px; margin:0 auto; padding:24px 28px 30px; box-sizing:border-box; }
.agent-public-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:32px; }
.agent-public-header>a { display:block; line-height:0; }
.agent-public-header .brand-logo { width:230px; max-width:100%; height:auto; }
.agent-public-header .agent-theme-trigger { flex-shrink:0; }
.agent-auth-layout { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,1fr); gap:40px; align-items:center; }
.agent-auth-intro { min-height:500px; position:relative; isolation:isolate; overflow:hidden; border-radius:26px; background:#090b0c; border:1px solid var(--agent-border); }
.agent-auth-intro .agent-hero-earth { opacity:.88; object-position:63% center; }
.agent-auth-intro::after { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#090b0ce6,#090b0c25),linear-gradient(0deg,#090b0ceb,transparent 80%); }
.agent-auth-intro-copy { padding:48px 34px; }
.agent-auth-intro .agent-eyebrow { color:#d4d3ca; font-size:9px; line-height:1.7; font-weight:600; letter-spacing:.21em; margin:0 0 118px; }
.agent-auth-intro h2 { margin:0 0 18px; color:#f4f2eb; font-size:clamp(36px,4vw,51px); font-weight:600; line-height:1.08; letter-spacing:-.04em; }
.agent-auth-intro h2 em { font-style:normal; color:var(--agent-accent); }
.agent-auth-intro-copy>p:not(.agent-eyebrow) { max-width:290px; color:#d0d2cd; font-size:15px; line-height:1.6; margin:0; }
.agent-auth-capabilities { display:flex; flex-wrap:wrap; gap:8px; margin-top:26px; }
.agent-auth-capabilities span { padding:8px 10px; border:1px solid #ffffff2d; background:#0b0d0dc9; border-radius:8px; font-size:11px; color:#eeece5; }
html[data-agent-theme] .agent-public-shell .auth-card { width:100%; min-width:0; margin:0; padding:30px; box-sizing:border-box; border:1px solid var(--agent-border); border-radius:24px; background:var(--agent-panel); color:var(--agent-ink); box-shadow:0 20px 70px #0000001a; }
html[data-agent-theme] .agent-public-shell .auth-card::before,html[data-agent-theme] .agent-public-shell .auth-card::after { display:none; }
html[data-agent-theme] .agent-public-shell .auth-logo { display:none; }
html[data-agent-theme] .agent-public-shell .auth-card h1 { font-size:28px; line-height:1.15; letter-spacing:-.03em; color:var(--agent-ink); margin:14px 0 18px; }
html[data-agent-theme] .agent-public-shell .auth-card :is(label,summary) { color:var(--agent-ink); }
html[data-agent-theme] .agent-public-shell .auth-card :is(p,small,.auth-helper) { color:var(--agent-muted); }
html[data-agent-theme] .agent-public-shell .auth-card .eyebrow { color:var(--agent-accent); font-size:10px; letter-spacing:.18em; }
html[data-agent-theme] .agent-public-shell .auth-card a { color:var(--agent-accent); }
html[data-agent-theme] .agent-public-shell .auth-tabs { background:var(--agent-base); border:1px solid var(--agent-border); padding:4px; border-radius:14px; }
html[data-agent-theme] .agent-public-shell .auth-tabs .button { margin:0; border-radius:10px; box-shadow:none; }
html[data-agent-theme] .agent-public-shell .auth-tabs .button:not(.button--quiet) { background:var(--agent-accent); color:var(--agent-base); }
html[data-agent-theme] .agent-public-shell .auth-tabs .button--quiet { background:transparent; border-color:transparent; color:var(--agent-muted); }
html[data-agent-theme] .agent-public-shell .identity-form { gap:17px; }
html[data-agent-theme] .agent-public-shell .identity-form input:not([type="checkbox"]) { min-height:48px; width:100%; box-sizing:border-box; border-radius:11px; background:var(--agent-raised); color:var(--agent-ink); border:1px solid var(--agent-border); font-size:16px; }
html[data-agent-theme] .agent-public-shell .identity-form button[type="submit"] { min-height:49px; border-radius:12px; font-weight:650; margin-top:2px; }
html[data-agent-theme] .agent-public-shell .auth-helper { font-size:12px; line-height:1.7; margin-top:24px; }
html[data-agent-theme] .agent-public-shell .check-row { font-size:12px; line-height:1.6; }
html[data-agent-theme] .agent-public-shell .alert { background:var(--agent-raised); color:var(--agent-ink); border:1px solid var(--agent-accent); }
.agent-public-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-top:32px; color:var(--agent-muted); font-size:11px; letter-spacing:.025em; }
.agent-public-footer a { color:var(--agent-accent); text-decoration:none; }
html[data-agent-theme="pearl"] .agent-auth-intro { background:var(--agent-base); }
html[data-agent-theme="pearl"] .agent-auth-intro::after { background:linear-gradient(90deg,#f1eee9ef,#f1eee922),linear-gradient(0deg,#f1eee9e6,transparent); }
html[data-agent-theme="pearl"] .agent-auth-intro :is(h2,p) { color:var(--agent-ink); }
html[data-agent-theme="classic"] .agent-auth-intro { display:none; }
html[data-agent-theme="classic"] .agent-auth-layout { display:block; max-width:610px; margin:auto; }
html[data-agent-theme="classic"] .agent-public-header .agent-theme-trigger { color:var(--agent-ink); background:var(--agent-panel); border-color:var(--agent-border); }
@media(max-width:850px) {
 html[data-agent-theme] .agent-public-shell { max-width:610px; padding:20px; }
 .agent-public-header { margin-bottom:20px; }
 .agent-public-header .brand-logo { width:194px; }
 .agent-auth-layout { grid-template-columns:1fr; gap:18px; }
 .agent-auth-intro { min-height:260px; border-radius:20px; }
 .agent-auth-intro-copy { padding:26px 24px; }
 .agent-auth-intro .agent-eyebrow { margin-bottom:35px; font-size:8px; }
 .agent-auth-intro h2 { font-size:35px; margin-bottom:13px; }
 .agent-auth-intro-copy>p:not(.agent-eyebrow) { font-size:12px; max-width:230px; }
 .agent-auth-capabilities { margin-top:18px; }
 .agent-auth-capabilities span { font-size:10px; padding:6px 8px; }
 html[data-agent-theme] .agent-public-shell .auth-card { padding:24px; border-radius:20px; }
 html[data-agent-theme] .agent-public-shell .auth-card h1 { font-size:25px; }
 .agent-public-footer { margin-top:24px; padding-bottom:env(safe-area-inset-bottom,0px); }
}
@media(max-width:370px) {
 html[data-agent-theme] .agent-public-shell { padding:16px; }
 .agent-public-header .brand-logo { width:164px; }
 .agent-public-header .agent-theme-trigger { font-size:11px; gap:6px; padding:7px 10px; }
 .agent-auth-intro-copy { padding:24px 19px; }
 .agent-auth-intro h2 { font-size:31px; }
 html[data-agent-theme] .agent-public-shell .auth-card { padding:20px; }
}

/* customer-readiness.css */
/* Customer readiness and explicit feature requests; all ten themes. */
.setup-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.setup-disclosure>summary::-webkit-details-marker{display:none}.setup-disclosure>summary>span:first-child{display:grid;gap:9px}.setup-disclosure #setup-title{font-size:clamp(1.2rem,4vw,1.7rem);line-height:1.2}.setup-count{color:var(--agent-accent);font-size:1rem;font-weight:800}.setup-chevron{font-size:1.6rem;transition:transform .18s}.setup-disclosure[open] .setup-chevron{transform:rotate(180deg)}.setup-disclosure .setup-steps{margin-top:22px}.setup-disclosure .setup-step{display:grid;gap:14px;padding:18px;grid-template-columns:48px minmax(0,1fr) 20px;align-items:start}.setup-step__indicator{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;font-size:1.5rem;font-weight:900}.setup-step__indicator.is-ready{background:#d8f5e3;color:#12552d}.setup-step__indicator.needs-action{background:#fff0c2;color:#755300}.setup-step__status{display:inline-block;margin:10px 0;padding:5px 10px;border-radius:8px;font-size:.85rem;font-weight:800}.setup-step__status.is-ready{background:#d8f5e3;color:#12552d}.setup-step__status.needs-action{background:#fff0c2;color:#755300}.setup-step__hint{display:block}.interface-languages{margin:12px 0 20px;text-align:left}.interface-languages summary,.multi-account-request summary{cursor:pointer;font-weight:700;padding:10px 0}.interface-languages__body{padding:8px 0}.interface-languages p,.multi-account-request p{font-size:.9rem;line-height:1.55;color:var(--agent-muted)}.interface-languages label{display:grid;gap:8px}.interface-languages select{width:100%;min-height:48px;color:var(--agent-ink);background:var(--agent-raised);border:1px solid var(--agent-border);border-radius:12px;padding:10px;max-width:100%}.interface-languages button{margin-top:12px}.locale-menu .interface-languages{min-width:220px;max-width:min(320px,calc(100vw - 60px));white-space:normal}.locale-menu .interface-languages form{display:block}.multi-account-request{border-top:1px solid var(--agent-border);margin-top:22px;padding-top:8px}.feature-request{max-width:760px}.feature-request form{margin-top:24px}.setup-disclosure summary:focus-visible,.interface-languages summary:focus-visible,.multi-account-request summary:focus-visible{outline:3px solid var(--agent-accent);outline-offset:5px;border-radius:8px}@media(prefers-reduced-motion:reduce){.setup-chevron{transition:none}}

.setup-attention{display:flex;align-items:center;gap:8px;font-size:.88rem;color:var(--agent-ink)}.setup-attention b{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:50%;background:#fff0c2;color:#755300}

/* customer-typography.css */
/* Responsive text preferences; stored only on this device. Browser zoom stays enabled. */
:root{--agent-body-weight:450;--agent-label-weight:600;--agent-title-weight:700}
html[data-text-size="large"]{font-size:112.5%}
html[data-text-size="extra"]{font-size:125%}
html[data-text-bold="true"]{--agent-body-weight:650;--agent-label-weight:750;--agent-title-weight:800}
body{font-size:1rem;line-height:1.55;font-weight:var(--agent-body-weight);-webkit-text-size-adjust:100%}
#product-main{min-width:0;overflow-wrap:break-word}
#product-main :is(p,label,li,dt,dd){font-size:.9375rem;line-height:1.55;font-weight:var(--agent-body-weight)}
#product-main :is(button,.button,input,select,textarea){font-size:1rem;line-height:1.35}
#product-main :is(button,.button){font-weight:var(--agent-label-weight)}
#product-main :is(h1,h2,h3){line-height:1.18;text-wrap:balance;overflow-wrap:break-word;word-break:normal;font-weight:var(--agent-title-weight)}
#product-main h1{font-size:clamp(1.8rem,3.4vw,2.75rem)}
#product-main h2{font-size:clamp(1.4rem,2.6vw,1.9rem)}
#product-main h3{font-size:clamp(1.2rem,2.2vw,1.5rem)}
#product-main :is(.overline,.eyebrow,.agent-eyebrow){font-size:.6875rem;line-height:1.55;letter-spacing:.14em;font-weight:var(--agent-label-weight)}
#product-main :is(small,.setup-step__hint){font-size:.8125rem;line-height:1.5}
#product-main :is(.agent-hero,.agent-auth-intro){container-type:inline-size}
#product-main :is(.agent-hero h1,.agent-auth-intro h2){font-size:clamp(1.75rem,8.4cqi,3.15rem);max-width:none;line-height:1.1}
#product-main :is(.agent-hero-copy,.agent-auth-intro-copy){max-width:100%}
#product-main :is(.agent-hero-copy>p:not(.agent-eyebrow),.agent-auth-intro-copy>p:not(.agent-eyebrow)){font-size:1rem;max-width:30ch;line-height:1.5}
#product-main .auth-welcome-title{font-size:clamp(1.55rem,3.5vw,1.9rem);line-height:1.23;margin:14px 0 18px;text-wrap:balance}
.auth-welcome-title>span{display:block}.auth-welcome-brand{white-space:nowrap}
#product-main .agent-auth-capabilities span{font-size:.75rem;text-align:center}
#product-main :is(.auth-tabs,.insights-tabs,.insights-period,.insights-referral-choices){display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch}
#product-main :is(.auth-tabs,.insights-tabs,.insights-period,.insights-referral-choices)>:is(a,button){display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;min-height:44px;width:100%;height:100%;margin:0;box-sizing:border-box;white-space:normal}
#product-main .auth-tabs .button{font-size:.875rem;padding:12px 4px}
.dashboard-summary-link{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;margin-top:18px;padding:16px 0 0;border-top:1px solid var(--agent-border);font-size:.9375rem;font-weight:var(--agent-label-weight);color:var(--agent-accent);text-decoration:none}
.dashboard-summary-link>span:last-child{flex:none;display:grid;place-items:center;width:28px;height:28px;font-size:1.25rem;line-height:1}
#product-main .dashboard-plan__name{display:block}
#product-main .dashboard-plan__name h2{overflow-wrap:anywhere}
.locale-control .locale-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.locale-switch button{display:flex;align-items:center;justify-content:center;text-align:center;font-weight:var(--agent-label-weight)}
.locale-menu{width:min(21rem,calc(100vw - 40px));box-sizing:border-box;max-width:calc(100vw - 40px);max-height:min(80dvh,620px);overflow-x:hidden;overflow-y:auto;white-space:normal}
.locale-menu :is(button,select,summary,p){font-size:.875rem;line-height:1.5;overflow-wrap:break-word}
.locale-menu>form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.locale-menu>form button{display:flex;justify-content:center;align-items:center;min-height:44px}
.locale-control .locale-more{flex:0 0 24px;width:24px;min-height:44px;margin:0;padding:0;display:grid;place-items:center;background:transparent;border:0;box-shadow:none;color:var(--agent-accent)}
.locale-control .locale-more:focus-visible{outline:2px solid var(--agent-accent);outline-offset:2px}
.locale-menu>form button[aria-pressed="true"]{outline:2px solid var(--agent-accent);outline-offset:-2px}
.locale-request{margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--agent-border);min-width:0}
.locale-request p{margin:0 0 8px;font-size:.875rem;line-height:1.45;color:var(--agent-muted);white-space:normal}
.locale-request button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;box-sizing:border-box;margin:0;padding:10px 12px;white-space:normal;font-size:.875rem;line-height:1.4;color:var(--agent-accent);background:var(--agent-raised);border:1px solid var(--agent-border);border-radius:12px;text-align:left}
.locale-request button>span{flex:none}
.language-request-dialog{box-sizing:border-box;width:min(30rem,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--agent-border);border-radius:24px;background:var(--agent-panel);color:var(--agent-ink);overflow-x:hidden;overflow-y:auto;box-shadow:0 24px 80px #0006}
.language-request-dialog:not([open]){display:none}
.language-request-dialog::backdrop{background:#071310a8;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.language-request-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-width:0}
.language-request-heading h2{margin:4px 0 0;font-size:1.4rem;line-height:1.2;overflow-wrap:break-word;font-weight:var(--agent-title-weight)}
.language-request-dialog .language-request-close{display:grid;place-items:center;flex:0 0 44px;width:44px;min-height:44px;margin:0;padding:0;font-size:1.5rem;line-height:1;border:1px solid var(--agent-border);border-radius:50%;background:var(--agent-raised);color:var(--agent-ink);box-shadow:none}
.language-request-dialog p{margin:16px 0 24px;font-size:1rem;line-height:1.5;color:var(--agent-muted)}
.language-request-dialog form{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:0;min-width:0}
.language-request-dialog label{font-size:.875rem;line-height:1.5;font-weight:var(--agent-label-weight)}
.language-request-dialog select{width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:48px;padding:10px;font:inherit;border:1px solid var(--agent-border);border-radius:12px;background:var(--agent-raised);color:var(--agent-ink)}
.language-request-dialog form>button{width:100%;min-width:0;min-height:48px;box-sizing:border-box;margin:10px 0 0;font:inherit;font-weight:var(--agent-label-weight);white-space:normal;line-height:1.4;border-radius:12px}
.interface-languages summary{font-weight:var(--agent-label-weight);min-height:44px;align-content:center}
.interface-languages :is(select,button){max-width:100%;min-width:0}
.agent-appearance-dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto}
.agent-appearance-dialog :is(h2,p,button,legend,label){font-weight:var(--agent-body-weight)}
.agent-appearance-dialog h2{font-size:1.65rem;line-height:1.2;text-wrap:balance}
.agent-theme-option{font-size:.8125rem;line-height:1.4;text-align:center}
.agent-text-settings{min-width:0;margin:24px 0 0;padding:18px 0 0;border:0;border-top:1px solid var(--agent-border)}
.agent-text-settings legend{font-size:1rem;padding:0 8px 0 0;color:var(--agent-ink);font-weight:var(--agent-label-weight)}
.agent-text-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:var(--agent-base);padding:5px;border:1px solid var(--agent-border);border-radius:14px}
.agent-text-options button{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;padding:8px 5px;margin:0;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--agent-muted);font-size:.8125rem;line-height:1.4;text-align:center;cursor:pointer}
.agent-text-options button[aria-pressed="true"]{border-color:var(--agent-border);background:var(--agent-raised);color:var(--agent-accent)}
.agent-bold-option{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;font-size:1rem;color:var(--agent-ink)}
.agent-bold-option input{appearance:none;-webkit-appearance:none;flex:none;width:52px;height:30px;border:1px solid var(--agent-border);border-radius:30px;background:var(--agent-muted);cursor:pointer;position:relative;margin:0}
.agent-bold-option input::before{content:"";display:block;width:22px;height:22px;border-radius:50%;background:var(--agent-panel);position:absolute;left:3px;top:3px;transition:transform .15s ease}
.agent-bold-option input:checked{background:var(--agent-accent)}
.agent-bold-option input:checked::before{transform:translateX(22px)}
.agent-bold-option input:focus-visible{outline:2px solid var(--agent-accent);outline-offset:3px}
.agent-text-preview{font-size:1rem;line-height:1.5;font-weight:var(--agent-body-weight);margin:12px 0;color:var(--agent-ink)}
.agent-theme-option img,.agent-install-preview img,.site-icon svg,.cabinet-nav-icon{display:block;flex-shrink:0}
.agent-theme-toggle,.icon-button,.bottom-nav .site-icon{display:inline-flex;align-items:center;justify-content:center}
html[data-text-bold="true"] :is(.nav__item,.bottom-nav a,.bottom-nav button,.setup-step strong,.dashboard-plan strong){font-weight:750}
@media(max-width:1050px){
 .bottom-nav.bottom-nav--with-site{grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch}
 .bottom-nav.bottom-nav--with-site>a,.bottom-site-wrap .bottom-nav__site{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;gap:6px;width:100%;font-size:.6875rem;line-height:1.3;padding:8px 2px;box-sizing:border-box}
 .bottom-nav a>span:last-child,.bottom-nav button>span:last-child{min-height:2.6em;display:flex;align-items:center;justify-content:center;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:manual;width:100%}
 .bottom-site-wrap .bottom-nav__site{transform:none}
 .bottom-nav .site-icon{width:38px;height:38px;border-radius:12px}
 #product-main{padding-bottom:calc(128px + env(safe-area-inset-bottom))}
}
@media(max-width:380px){
 #product-main :is(.agent-hero-copy,.agent-auth-intro-copy){padding-left:18px;padding-right:18px}
 .agent-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .topbar .mobile-brand{width:94px;height:auto}
 .topbar__actions{gap:4px}
 .topbar .locale-switch button{padding:7px 4px;min-width:28px}
}
@media(prefers-reduced-motion:reduce){.dashboard-summary-link{transition:none}}
