:root {
  --accent: #1f6f5b;
  --accent-soft: rgba(31, 111, 91, 0.16);
  --bg: #f7f8f6;
  --border: #d9ded8;
  --danger: #b42318;
  --muted: #5d665f;
  --surface: #ffffff;
  --text: #151916;

  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color-scheme: light;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
}

* {
  box-sizing: border-box;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 700;
  line-height: 0.98;
  margin: 0;
}
.auth-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.auth-loading-shell {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}

.auth-loading-shell .brand {
  margin-bottom: 0;
}

.auth-loading-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}

.auth-loading-state p {
  margin: 0;
  font-weight: 650;
}

.auth-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.language-picker {
  position: absolute;
  top: 24px;
  right: 24px;
}

.language-picker .language-button {
  min-width: 46px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}

.language-picker .language-button:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  gap: 4px;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(21, 25, 22, 0.12);
}

.language-menu .language-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.language-menu .language-menu-item:hover,
.language-menu .language-menu-item:focus-visible,
.language-menu .language-menu-item[aria-current='true'] {
  background: var(--accent-soft);
  outline: 0;
}

.language-menu .language-menu-item span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.intro {
  width: min(100%, 720px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 28px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
}

.intro p {
  color: var(--muted);
  font-size: 20px;
  max-width: 560px;
  margin: 22px auto 0;
}

.auth-form {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  text-align: left;
}

.auth-stack {
  display: grid;
  gap: 24px;
  width: min(100%, 440px);
}

.auth-panel {
  display: grid;
  gap: 14px;
  width: min(100%, 440px);
  text-align: left;
}

.auth-panel h2 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.auth-panel p {
  color: var(--muted);
  margin: 0;
}

.verification-shell {
  gap: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(196, 255, 91, 0.22), transparent 32%),
    radial-gradient(circle at 85% 80%, rgba(105, 86, 255, 0.14), transparent 30%),
    #f7f4ed;
}

.verification-shell .brand {
  margin: 0;
}

.verification-shell .brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--text);
}

.verification-shell .brand-mark b {
  transform: translateX(1px);
  font-size: 15px;
  font-style: normal;
}

.verification-shell .brand-mark i {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #ddb18e;
  font-size: 9px;
  font-style: normal;
}

.verification-panel {
  justify-items: center;
  width: min(100%, 480px);
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 10px 12px 0 rgba(21, 25, 22, 0.1);
  text-align: center;
}

.verification-panel h1 {
  margin: 0;
  font-size: clamp(27px, 5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.verification-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: #fff;
  background: var(--accent);
  font-size: 27px;
}

.verification-email {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text);
  background: var(--accent-soft);
  font-size: 14px;
}

.verification-panel .primary-button {
  width: 100%;
}

.verification-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.verification-secondary-actions button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 4px;
  cursor: pointer;
}

.verification-secondary-actions button:hover,
.verification-secondary-actions button:focus-visible {
  color: var(--accent);
}

.verification-secondary-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.auth-form label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.auth-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.auth-mode-toggle button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.auth-mode-toggle button[aria-pressed='true'] {
  color: var(--text);
  background: var(--accent-soft);
}

.auth-field input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  padding: 0 14px;
}

.auth-field input:focus,
.auth-mode-toggle button:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.primary-button {
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-weight: 700;
  padding: 0 18px;
  cursor: pointer;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-status,
.auth-error,
.auth-success {
  width: min(100%, 440px);
  margin: 0;
  text-align: left;
}

.auth-status {
  color: var(--muted);
}

.auth-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
}

.auth-success {
  color: #17664e;
  font-size: 14px;
  font-weight: 650;
}

.reset-password-button {
  justify-self: start;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 2px 0;
  cursor: pointer;
}

.reset-password-button:hover,
.reset-password-button:focus-visible {
  color: var(--accent);
}

.public-site {
  --public-ink: #202a27;
  --public-paper: #f6f3ed;
  --public-violet: #527568;
  --public-violet-dark: #39594f;
  --public-lime: #ddb18e;
  --public-line: rgba(32, 42, 39, .15);
  min-height: 100vh;
  overflow: hidden;
  color: var(--public-ink);
  background: var(--public-paper);
}

.public-site button,
.public-site input { font-family: inherit; }
.public-site button { transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.public-site button:not(:disabled):hover { transform: translateY(-2px); }

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(20px, 4.6vw, 72px);
  border-bottom: 1px solid var(--public-line);
  background: rgba(246, 243, 237, .92);
  backdrop-filter: blur(18px);
}

.public-brand { margin: 0; color: var(--public-ink); font-size: 16px; font-weight: 850; letter-spacing: -.025em; text-decoration: none; }
.public-site .brand-mark { position: relative; display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; overflow: hidden; border: 0; border-radius: 50%; color: #fff; background: var(--public-ink); }
.public-site .brand-mark b { transform: translateX(1px); font-size: 16px; font-style: normal; }
.public-site .brand-mark i { position: absolute; right: 5px; bottom: 3px; color: var(--public-lime); font-size: 10px; font-style: normal; }
.public-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.public-nav a { position: relative; color: #514e49; font-size: 13px; font-weight: 700; text-decoration: none; }
.public-nav a::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; transform: scaleX(0); background: var(--public-violet); content: ''; transition: transform .2s ease; }
.public-nav a:hover::after, .public-nav a:focus-visible::after { transform: scaleX(1); }
.public-header-actions { display: flex; align-items: center; gap: 6px; }
.public-header .language-picker { position: relative; inset: auto; }
.public-header .language-picker .language-button { min-width: 42px; border-color: transparent; border-radius: 999px; color: var(--public-ink); background: transparent; font-size: 12px; }
.public-header .language-menu { border-color: var(--public-line); border-radius: 14px; box-shadow: 0 20px 50px rgba(17, 16, 15, .15); }
.public-sign-in { min-height: 42px; border: 0; padding: 0 15px; color: var(--public-ink); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 800; }
.public-site .primary-button { min-height: 48px; border: 1px solid var(--public-ink); border-radius: 999px; padding: 0 21px; color: #fff; background: var(--public-ink); font-size: 14px; font-weight: 800; box-shadow: none; }
.public-site .primary-button:not(:disabled):hover { box-shadow: 0 6px 0 #b9cec5; }
.public-start { min-height: 42px !important; padding-inline: 17px !important; }

.public-hero {
  position: relative;
  display: grid;
  max-width: 1440px;
  min-height: 760px;
  margin: 0 auto;
  grid-template-columns: minmax(0, .96fr) minmax(520px, 1.04fr);
  align-items: center;
  gap: clamp(50px, 5vw, 84px);
  padding: 82px clamp(22px, 5vw, 76px) 96px;
}

.hero-orbit { position: absolute; z-index: 0; border: 1px solid rgba(82, 117, 104, .15); border-radius: 50%; pointer-events: none; }
.hero-orbit-one { top: -300px; left: -360px; width: 760px; height: 760px; }
.hero-orbit-two { top: -170px; left: -230px; width: 520px; height: 520px; }
.public-hero .intro { position: relative; z-index: 1; width: 100%; }
.public-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; color: var(--public-violet-dark); font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.public-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--public-violet); box-shadow: 0 0 0 5px rgba(82, 117, 104, .11); }
.public-hero .intro h1 { max-width: 710px; margin: 0; color: var(--public-ink); font-size: clamp(58px, 6.2vw, 96px); font-weight: 850; line-height: .91; letter-spacing: -.072em; }
.public-hero .intro h1 span, .public-hero .intro h1 em { display: block; }
.public-hero .intro h1 em { color: var(--public-violet); font-family: Georgia, 'Times New Roman', serif; font-size: .94em; font-weight: 500; letter-spacing: -.065em; }
.public-hero .intro p { max-width: 600px; margin: 30px 0 0; color: #55514b; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 13px; margin-top: 34px; }
.hero-actions a { display: inline-flex; min-height: 48px; align-items: center; gap: 25px; border: 1px solid var(--public-line); border-radius: 999px; padding: 0 19px; color: var(--public-ink); background: rgba(255,255,255,.35); font-size: 14px; font-weight: 800; text-decoration: none; }
.hero-actions a:hover { border-color: var(--public-ink); }
.hero-trust { display: flex; align-items: center; gap: 8px; margin-top: 22px; color: #716c64; font-size: 11px; font-weight: 700; }
.hero-trust > span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #365a4d; background: #dce8e1; font-size: 10px; }
.hero-trust i { width: 3px; height: 3px; margin: 0 3px; border-radius: 50%; background: #9a958c; }

.hero-product { position: relative; z-index: 1; min-width: 0; transform: rotate(1.4deg); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; color: #fff; background: #202623; box-shadow: 0 38px 80px rgba(31, 43, 39, .2), 18px 18px 0 #9db6ac; }
.hero-product-topbar { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.1); color: #aaa6ad; font-size: 10px; font-weight: 750; }
.hero-product-brand { display: flex; align-items: center; gap: 8px; }
.hero-product-brand b { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: #171618; background: var(--public-lime); }
.hero-live { display: flex; align-items: center; gap: 6px; }
.hero-live i { width: 6px; height: 6px; border-radius: 50%; background: #8eb39a; box-shadow: 0 0 0 4px rgba(142,179,154,.12); }
.hero-product-body { display: grid; grid-template-columns: 55px minmax(0, 1fr); }
.hero-product-nav { display: flex; align-items: center; flex-direction: column; gap: 12px; padding-top: 20px; border-right: 1px solid rgba(255,255,255,.08); color: #6e6b72; }
.hero-product-nav span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; font-size: 13px; }
.hero-product-nav .is-active { color: #151416; background: var(--public-lime); }
.hero-product-content { min-width: 0; padding: 23px 24px 25px; }
.preview-title-row { display: flex; align-items: end; justify-content: space-between; gap: 15px; }
.preview-title-row > div { display: grid; gap: 4px; }
.preview-title-row small { color: #8e8a92; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.preview-title-row strong { font-size: 19px; letter-spacing: -.03em; }
.preview-title-row button { border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 7px 10px; color: #aaa7ad; background: #222125; font-size: 9px; }
.preview-progress { display: grid; margin: 20px 0 12px; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: #1c1b1e; }
.preview-progress span { display: flex; align-items: baseline; gap: 5px; padding: 11px 12px; color: #77737d; font-size: 8px; }
.preview-progress span + span { border-left: 1px solid rgba(255,255,255,.07); }
.preview-progress b { color: #e8e5ea; font-size: 13px; }
.preview-lead { display: grid; align-items: center; grid-template-columns: 38px 1fr auto; gap: 10px; border: 1px solid rgba(255,255,255,.09); padding: 12px; background: #201f22; }
.preview-lead.is-featured { border-color: rgba(221,177,142,.55); border-radius: 11px 11px 0 0; }
.preview-company-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 9px; color: #202a27; background: #aebfb7; font-size: 10px; font-weight: 900; }
.preview-company-mark.is-lime { background: var(--public-lime); }
.preview-company { position: relative; display: grid; min-width: 0; }
.preview-company strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.preview-company small { overflow: hidden; margin-top: 2px; color: #77747b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.preview-sample { position: absolute; top: -23px; right: 0; color: #8b8790; font-size: 7px; text-transform: uppercase; }
.preview-score { display: grid; justify-items: end; }
.preview-score strong { color: var(--public-lime); font-size: 17px; line-height: 1; }
.preview-score span { color: #77747b; font-size: 7px; text-transform: uppercase; }
.preview-insight { border: solid rgba(255,255,255,.08); border-width: 0 1px 1px; border-radius: 0 0 11px 11px; padding: 14px 15px; background: #19181b; }
.preview-insight > span { color: #9a969e; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.preview-insight > p { margin: 5px 0 12px; color: #cac6cd; font-size: 9px; line-height: 1.5; }
.preview-insight > div { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 8px; color: #171618; background: var(--public-lime); }
.preview-insight > div > i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: rgba(17,16,15,.1); font-style: normal; }
.preview-insight > div > span { display: grid; }
.preview-insight > div small { font-size: 7px; opacity: .62; }
.preview-insight > div b { font-size: 9px; }
.preview-lead-muted { margin-top: 9px; border-radius: 10px; opacity: .72; }
.hero-product-float { position: absolute; right: -25px; bottom: 62px; display: flex; align-items: center; gap: 10px; transform: rotate(-4deg); border: 1px solid rgba(255,255,255,.6); border-radius: 12px; padding: 11px 14px; color: var(--public-ink); background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.22); }
.hero-product-float > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #fff; background: var(--public-violet-dark); }
.hero-product-float > div { display: grid; }
.hero-product-float small { color: #88827a; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.hero-product-float strong { font-size: 10px; }

.manifesto-strip { display: grid; min-height: 116px; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 38px; padding: 20px clamp(22px, 5vw, 76px); color: #fff; background: var(--public-violet); }
.manifesto-strip p, .manifesto-strip strong { margin: 0; font-size: clamp(17px, 2vw, 25px); letter-spacing: -.035em; }
.manifesto-strip strong { justify-self: end; color: var(--public-lime); text-align: right; }
.manifesto-strip > div { display: flex; align-items: center; gap: 10px; color: #d8e5df; font-size: 9px; font-weight: 800; }
.manifesto-strip i { width: 46px; height: 1px; background: rgba(255,255,255,.35); }

.section-heading { max-width: 780px; }
.section-heading > span, .section-kicker { color: var(--public-violet-dark); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.section-heading h2, .control-copy h2 { margin: 16px 0 20px; font-size: clamp(42px, 5.4vw, 76px); font-weight: 820; line-height: .98; letter-spacing: -.065em; }
.section-heading > p, .control-copy > p { max-width: 670px; margin: 0; color: #68625b; font-size: 17px; line-height: 1.7; }

.public-product { padding: 124px clamp(22px, 6vw, 92px) 136px; background: #fffdf8; }
.public-product .section-heading { margin: 0 auto; text-align: center; }
.public-product .section-heading > p { margin-inline: auto; }
.comparison-stage { position: relative; display: grid; max-width: 1120px; margin: 70px auto 0; grid-template-columns: 1fr 1fr; gap: 22px; }
.comparison-card { position: relative; min-height: 410px; overflow: hidden; border-radius: 24px; padding: 42px; }
.comparison-card > span { font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.comparison-card h3 { max-width: 430px; margin: 18px 0 32px; font-size: clamp(28px, 3.2vw, 43px); line-height: 1; letter-spacing: -.05em; }
.comparison-card ul { position: relative; z-index: 1; display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.comparison-card li { display: flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 650; }
.comparison-card li > span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; font-size: 11px; }
.comparison-old { border: 1px solid #dedbd5; color: #5f5b56; background: #eeece7; }
.comparison-old li > span { color: #77716b; background: #dcd9d3; }
.comparison-new { color: #fff; background: var(--public-ink); box-shadow: 0 25px 60px rgba(17,16,15,.18); }
.comparison-new > span { color: var(--public-lime); }
.comparison-new li > span { color: var(--public-ink); background: var(--public-lime); }
.comparison-turn { position: absolute; z-index: 2; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center; transform: translate(-50%,-50%); border: 7px solid #fffdf8; border-radius: 50%; color: #fff; background: var(--public-violet); font-size: 20px; }
.old-way-sheet { position: absolute; right: -30px; bottom: -48px; width: 220px; height: 160px; transform: rotate(-7deg); border: 1px solid #ccc7c0; background: repeating-linear-gradient(0deg, transparent 0 27px, #d5d1ca 27px 28px), repeating-linear-gradient(90deg, transparent 0 54px, #d5d1ca 54px 55px), #f8f6f1; }
.old-way-sheet i { display: block; width: 60%; height: 9px; margin: 14px; background: #dedad3; }
.new-way-focus { position: absolute; right: 28px; bottom: 28px; display: grid; width: 126px; height: 126px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: #222123; }
.new-way-focus span { position: absolute; top: 26px; color: var(--public-lime); font-size: 36px; font-weight: 850; }
.new-way-focus i { position: absolute; top: 73px; width: 54px; height: 1px; background: rgba(255,255,255,.25); }
.new-way-focus b { position: absolute; bottom: 22px; color: #99959d; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.public-method { padding: 126px clamp(22px, 6vw, 92px) 140px; color: #fff; background: var(--public-ink); }
.section-heading-light { max-width: 860px; }
.section-heading-light > span { color: var(--public-lime); }
.section-heading-light > p { color: #a9a4ac; }
.method-grid { display: grid; max-width: 1240px; margin: 68px auto 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: method; }
.method-card { position: relative; min-width: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 20px 20px 30px; background: #1a191b; }
.method-number { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: #858189; font-size: 9px; font-weight: 800; }
.method-visual { position: relative; display: flex; height: 165px; align-items: center; justify-content: center; margin: 13px 0 24px; overflow: hidden; border-radius: 13px; background: #222124; }
.method-card h3 { margin: 0 4px 10px; font-size: 21px; letter-spacing: -.03em; }
.method-card p { margin: 0 4px; color: #9d99a1; font-size: 13px; line-height: 1.65; }
.method-visual-1 { align-content: center; align-items: stretch; flex-direction: column; gap: 7px; padding: 32px; }
.method-visual-1 span { border: 1px solid rgba(255,255,255,.1); border-radius: 7px; padding: 8px 10px; color: #aaa6ae; background: #1a191b; font-size: 9px; }
.method-visual-1 span:nth-child(2) { transform: translateX(14px); border-color: rgba(221,177,142,.42); color: #e8c7ac; }
.method-visual-2 i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #6a666e; }
.method-visual-2 i:nth-child(1) { top: 28px; left: 42px; }.method-visual-2 i:nth-child(2) { top: 42px; right: 49px; }.method-visual-2 i:nth-child(4) { right: 34px; bottom: 36px; }.method-visual-2 i:nth-child(5) { bottom: 30px; left: 59px; }
.method-visual-2::before, .method-visual-2::after { position: absolute; width: 150px; height: 70px; transform: rotate(23deg); border: 1px solid rgba(126,162,148,.4); border-radius: 50%; content: ''; }
.method-visual-2::after { transform: rotate(-27deg); }
.method-visual-2 b { display: grid; z-index: 1; width: 47px; height: 47px; place-items: center; border-radius: 50%; color: #171618; background: var(--public-lime); }
.method-visual-3 span { color: var(--public-lime); font-size: 54px; font-weight: 850; }
.method-visual-3 span::after { margin-left: 3px; color: #77737b; font-size: 11px; content: '%'; }
.method-visual-3 i { position: absolute; bottom: 40px; width: 100px; height: 4px; overflow: hidden; border-radius: 99px; background: #3a383d; }
.method-visual-3 i::after { display: block; width: 92%; height: 100%; background: var(--public-lime); content: ''; }
.method-visual-3 b { position: absolute; right: 15px; bottom: 14px; border-radius: 7px; padding: 7px 9px; color: #171618; background: #fff; font-size: 8px; }

.public-control { display: grid; align-items: center; grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr); gap: clamp(60px, 8vw, 130px); padding: 136px clamp(22px, 6vw, 92px); background: var(--public-lime); }
.control-copy h2 { max-width: 680px; }
.control-copy > p { color: #413f36; }
.control-points { display: grid; gap: 18px; margin-top: 38px; }
.control-points > div { display: flex; align-items: flex-start; gap: 13px; }
.control-points > div > span { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(17,16,15,.18); border-radius: 10px; font-weight: 900; }
.control-points p { display: grid; gap: 2px; margin: 0; }
.control-points strong { font-size: 13px; }
.control-points small { color: #575448; font-size: 12px; }
.evidence-card { transform: rotate(-1.5deg); border-radius: 22px; padding: 25px; color: #fff; background: var(--public-ink); box-shadow: 18px 18px 0 var(--public-violet); }
.evidence-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; color: #8e8992; font-size: 9px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.evidence-verified { color: #a8cbb6; }
.evidence-company { display: grid; align-items: center; grid-template-columns: 50px 1fr auto; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.11); }
.evidence-company > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 12px; color: #202a27; background: #aebfb7; font-size: 12px; font-weight: 900; }
.evidence-company > div { display: grid; gap: 3px; }
.evidence-company strong { font-size: 16px; }
.evidence-company small { color: #858189; font-size: 9px; }
.evidence-company > b { color: var(--public-lime); font-size: 32px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; }
.evidence-grid > div { display: grid; min-width: 0; gap: 8px; padding: 19px 15px; border-bottom: 1px solid rgba(255,255,255,.1); }
.evidence-grid > div:nth-child(odd) { padding-left: 0; border-right: 1px solid rgba(255,255,255,.1); }
.evidence-grid span { color: #7f7b83; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.evidence-grid strong { font-size: 11px; line-height: 1.4; }
.evidence-source { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #918d95; font-size: 9px; }
.evidence-source span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #171618; background: var(--public-lime); font-size: 9px; }

.public-conversion { display: grid; align-items: center; grid-template-columns: 1fr minmax(360px, 470px); gap: clamp(70px, 10vw, 160px); padding: 120px clamp(22px, 7vw, 110px); color: #fff; background: var(--public-violet); }
.conversion-copy > span { color: var(--public-lime); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.conversion-copy h2 { max-width: 760px; margin: 18px 0 24px; font-size: clamp(48px, 6.2vw, 88px); line-height: .92; letter-spacing: -.07em; }
.conversion-copy p { max-width: 600px; margin: 0; color: #dce7e2; font-size: 17px; line-height: 1.7; }
.auth-card { scroll-margin-top: 96px; border: 0; border-radius: 20px; padding: 28px; color: var(--public-ink); background: #fffdf8; box-shadow: 14px 14px 0 var(--public-lime); }
.auth-card > h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 22px; color: #716b64; font-size: 13px; line-height: 1.55; }
.auth-card .auth-form { width: 100%; }
.auth-card .auth-mode-toggle { border-color: #ddd8ce; border-radius: 12px; background: #eeebe4; }
.auth-card .auth-mode-toggle button { border-radius: 9px; }
.auth-card .auth-mode-toggle button[aria-pressed='true'] { color: #fff; background: var(--public-ink); }
.auth-card .auth-field label { color: #68625c; font-size: 12px; }
.auth-card .auth-field input { min-height: 48px; border-color: #d7d2c8; border-radius: 10px; background: #fff; }
.auth-card .auth-field input:focus { border-color: var(--public-violet); outline: 3px solid rgba(82,117,104,.15); }
.auth-card .primary-button { width: 100%; border-radius: 10px; background: var(--public-ink); }
.selected-public-plan { display: grid; gap: 3px; margin: 0 0 17px; border: 1px solid #adc5bb; border-radius: 10px; padding: 11px 13px; color: #345a4d; background: #e8f0ec; }
.selected-public-plan strong { font-size: 13px; }
.selected-public-plan span { font-size: 12px; line-height: 1.45; }

.public-footer { display: grid; min-height: 105px; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 24px; padding: 20px clamp(22px, 5vw, 76px); color: #8e8992; background: var(--public-ink); font-size: 12px; }
.public-footer > div { display: flex; align-items: center; gap: 10px; color: #fff; }
.public-footer .brand-mark { width: 31px; height: 31px; color: var(--public-ink); background: var(--public-lime); }
.public-footer p { margin: 0; }
.public-footer a { justify-self: end; color: #c9c5cc; text-decoration: none; }

@media (max-width: 1050px) {
  .public-hero { grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr); }
  .public-hero .intro h1 { font-size: clamp(54px, 6.4vw, 74px); }
  .public-control { gap: 55px; }
}

@media (max-width: 900px) {
  .public-hero { min-height: 0; grid-template-columns: 1fr; padding-top: 72px; }
  .public-hero .intro { max-width: 720px; }
  .public-hero .intro h1 { font-size: clamp(62px, 10vw, 88px); }
  .hero-product { width: min(100%, 680px); margin: 10px auto 0; }
  .method-grid { grid-template-columns: 1fr; }
  .method-card { display: grid; align-items: center; grid-template-columns: 50px 210px 1fr; column-gap: 20px; }
  .method-visual { grid-row: span 2; width: 210px; margin: 0; }
  .method-card h3, .method-card p { grid-column: 3; }
  .public-control { grid-template-columns: 1fr; }
  .evidence-card { width: min(100%, 620px); }
  .public-conversion { grid-template-columns: 1fr; }
  .auth-card { width: min(100%, 520px); }
}

@media (max-width: 680px) {
  .auth-shell { align-items: stretch; gap: 36px; text-align: left; }
  .language-picker { top: 16px; right: 16px; }
  .brand { margin-bottom: 24px; }
  .intro p { margin-inline: 0; font-size: 17px; }
  .public-header { min-height: 66px; padding-inline: 15px; }
  .public-nav, .public-sign-in { display: none; }
  .public-header-actions { margin-left: auto; }
  .public-brand > span:last-child { display: none; }
  .public-start { padding-inline: 13px !important; }
  .public-hero { gap: 56px; padding: 56px 16px 78px; }
  .public-hero .intro h1 { font-size: clamp(48px, 14.2vw, 69px); }
  .public-hero .intro p { font-size: 16px; line-height: 1.58; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions > * { justify-content: center; width: 100%; }
  .hero-trust { flex-wrap: wrap; }
  .hero-product { width: calc(100% - 7px); transform: none; border-radius: 17px; box-shadow: 7px 9px 0 var(--public-violet); }
  .hero-product-body { grid-template-columns: 42px minmax(0, 1fr); }
  .hero-product-nav span { width: 26px; height: 26px; }
  .hero-product-content { padding: 18px 12px 17px; }
  .preview-title-row strong { font-size: 15px; }
  .preview-title-row button { display: none; }
  .preview-progress span { display: grid; gap: 0; padding: 9px 7px; }
  .preview-progress b { font-size: 12px; }
  .preview-company small { max-width: 125px; }
  .hero-product-float { right: -4px; bottom: -26px; }
  .manifesto-strip { grid-template-columns: 1fr; gap: 12px; padding-block: 30px; text-align: center; }
  .manifesto-strip > div { justify-self: center; }
  .manifesto-strip strong { justify-self: center; text-align: center; }
  .public-product, .public-method, .public-control, .public-conversion { padding: 90px 17px; }
  .section-heading h2, .control-copy h2 { font-size: clamp(39px, 12vw, 58px); }
  .comparison-stage { grid-template-columns: 1fr; margin-top: 46px; }
  .comparison-card { min-height: 370px; padding: 30px 25px; }
  .comparison-turn { top: 50%; transform: translate(-50%,-50%) rotate(90deg); }
  .method-grid { margin-top: 44px; }
  .method-card { display: block; }
  .method-number { margin-bottom: 12px; }
  .method-visual { width: 100%; margin: 0 0 24px; }
  .method-card h3, .method-card p { margin-inline: 4px; }
  .evidence-card { transform: none; padding: 20px 17px; box-shadow: 7px 8px 0 var(--public-violet); }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-grid > div:nth-child(odd) { padding-left: 15px; border-right: 0; }
  .conversion-copy h2 { font-size: clamp(44px, 13vw, 66px); }
  .auth-card { padding: 23px 18px; box-shadow: 7px 8px 0 var(--public-lime); }
  .public-footer { grid-template-columns: 1fr auto; }
  .public-footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .public-site *, .public-site *::before, .public-site *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.project-profiler {
  grid-column: 2 / -1;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: #f6f5f1;
  color: var(--workspace-ink);
}

.profile-page-header {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--workspace-line);
  background: #fffefa;
}

.profile-page-header span {
  color: var(--workspace-blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.profile-page-header h1 {
  margin: 2px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.profile-page-header p {
  margin: 3px 0 0;
  color: var(--workspace-muted);
  font-size: 11px;
}

.profile-readonly,
.draft-state {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4f5a61;
  background: #ecece8;
  font-size: 9px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.profile-columns {
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(500px, 1.18fr);
  min-height: 0;
  flex: 1;
}

.profile-conversation,
.manifesto-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.profile-conversation {
  border-right: 1px solid var(--workspace-line);
  background: #f1f0eb;
}

.conversation-heading,
.manifesto-toolbar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--workspace-line);
  background: rgba(255, 254, 250, .8);
}

.conversation-heading div,
.manifesto-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.conversation-heading span,
.manifesto-toolbar strong {
  color: var(--workspace-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.conversation-heading strong {
  max-width: 460px;
  color: var(--workspace-ink);
  font-size: 10px;
  font-weight: 600;
}

.conversation-scroll,
.manifesto-scroll {
  min-height: 0;
  overflow-y: auto;
}

.conversation-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
}

.conversation-empty {
  display: grid;
  max-width: 360px;
  margin: auto;
  place-items: center;
  text-align: center;
}

.conversation-empty strong {
  margin-top: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.conversation-empty p {
  color: var(--workspace-muted);
  font-size: 11px;
  line-height: 1.55;
}

.assistant-mark,
.profile-message > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: none;
  border-radius: 8px;
  color: white;
  background: var(--workspace-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.profile-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 92%;
}

.profile-message.is-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.profile-message.is-user > span {
  color: var(--workspace-ink);
  background: #dfe3e2;
}

.profile-message > div {
  padding: 10px 12px;
  border: 1px solid #d9d8d2;
  border-radius: 4px 12px 12px;
  background: #fffefa;
  box-shadow: 0 1px 2px rgba(35, 42, 47, .04);
}

.profile-message.is-user > div {
  border-radius: 12px 4px 12px 12px;
  background: #e7edf4;
}

.profile-message p,
.assistant-guidance p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.profile-message small {
  display: block;
  margin-top: 7px;
  color: var(--workspace-blue);
  font-size: 9px;
}

.assistant-guidance {
  padding: 10px 12px;
  border-left: 3px solid #c08a2b;
  background: #f9f0dc;
}

.assistant-guidance.is-focus {
  display: none;
}

.assistant-guidance strong {
  display: block;
  margin-bottom: 4px;
  font-size: 9px;
  text-transform: uppercase;
}

.conversation-composer {
  flex: none;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--workspace-line);
  background: #fffefa;
}

.composer-notice,
.profile-source-notice {
  margin: 0 0 8px;
  padding: 7px 9px;
  border-radius: 5px;
  color: #715017;
  background: #fff3d5;
  font-size: 10px;
}

.profile-global-error {
  flex: none;
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid #ebc6c3;
  color: #8f2f2f;
  background: #fbe8e6;
  font-size: 10px;
}

.profile-source-notice {
  color: #256143;
  background: #e2f3e9;
}

.pending-sources {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  overflow-x: auto;
}

.pending-sources span {
  flex: none;
  color: var(--workspace-muted);
  font-size: 9px;
}

.pending-sources button {
  flex: none;
  padding: 5px 7px;
  border: 1px solid #d4d7d6;
  border-radius: 5px;
  color: var(--workspace-blue);
  background: white;
  font-size: 9px;
  cursor: pointer;
}

.message-form {
  overflow: visible;
  border: 1px solid #cfd3d2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 35, 43, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.message-form:focus-within {
  border-color: var(--workspace-blue);
  box-shadow: 0 0 0 3px rgba(36, 79, 145, .1), 0 4px 14px rgba(24, 35, 43, .07);
}

.message-form textarea,
.editor-field input,
.editor-field textarea,
.editor-field select {
  width: 100%;
  border: 1px solid #cfd3d2;
  border-radius: 6px;
  outline: none;
  color: var(--workspace-ink);
  background: #fff;
  font: inherit;
}

.message-form textarea {
  display: block;
  resize: none;
  min-height: 70px;
  padding: 12px 13px 4px;
  border: 0;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.45;
}

.message-form textarea:focus {
  box-shadow: none;
}

.editor-field input:focus,
.editor-field textarea:focus,
.editor-field select:focus {
  border-color: var(--workspace-blue);
  box-shadow: 0 0 0 3px rgba(36, 79, 145, .1);
}

.manifesto-actions button:last-child,
.profile-dialog button:last-child {
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  color: white;
  background: var(--workspace-blue);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.manifesto-actions button:disabled,
.send-message-button:disabled,
.attachment-trigger:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.message-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px 6px 7px;
}

.attachment-control {
  position: relative;
}

.attachment-trigger,
.send-message-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .15s ease, background .15s ease, transform .15s ease;
}

.attachment-trigger {
  border: 0;
  color: #53616b;
  background: transparent;
}

.attachment-trigger:hover:not(:disabled),
.attachment-trigger[aria-expanded="true"] {
  color: var(--workspace-blue);
  background: #edf2f8;
}

.attachment-trigger svg,
.send-message-button svg,
.attachment-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attachment-menu {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 8px);
  left: 0;
  width: 190px;
  padding: 5px;
  border: 1px solid #d7dcdf;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 35, 43, .16);
}

.attachment-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  color: var(--workspace-ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.attachment-menu button:hover,
.attachment-menu button:focus-visible {
  outline: none;
  background: #f0f4f8;
}

.attachment-menu svg {
  flex: none;
  color: var(--workspace-blue);
}

.attachment-menu span,
.attachment-menu strong,
.attachment-menu small {
  display: block;
}

.attachment-menu strong {
  font-size: 11px;
}

.attachment-menu small {
  margin-top: 2px;
  color: var(--workspace-muted);
  font-size: 8px;
  letter-spacing: .02em;
}

.send-message-button {
  border: 0;
  color: white;
  background: var(--workspace-blue);
  box-shadow: 0 3px 8px rgba(36, 79, 145, .24);
}

.send-message-button:hover:not(:disabled) {
  background: #193d74;
  transform: translateY(-1px);
}

.send-message-button:active:not(:disabled) {
  transform: translateY(0);
}

.send-spinner,
.attachment-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: profile-spin .8s linear infinite;
}

.send-spinner {
  border-color: rgba(255, 255, 255, .45);
  border-right-color: white;
}

.manifesto-actions button,
.profile-dialog button:first-child,
.conflict-reload {
  padding: 8px 10px;
  border: 1px solid #ced1d0;
  border-radius: 6px;
  color: #4a555d;
  background: white;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.manifesto-panel {
  background: #f7f6f2;
}

.manifesto-toolbar {
  gap: 10px;
}

.draft-state.is-dirty {
  color: #75500e;
  background: #fff0ca;
}

.draft-state.is-invalid {
  color: #8b3030;
  background: #f8dfdc;
}

.manifesto-actions {
  display: flex;
  gap: 6px;
}

.manifesto-actions button:nth-child(2) {
  color: var(--workspace-blue);
  border-color: #aebed4;
}

.manifesto-scroll {
  padding: 18px 22px 50px;
  scroll-behavior: smooth;
}

.readiness-card {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid #d8d7d1;
  border-radius: 9px;
  background: #fffefa;
}

.readiness-score {
  display: flex;
  align-items: center;
  gap: 12px;
}

.readiness-score > span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--workspace-blue) var(--readiness), #e1e2de 0);
  box-shadow: inset 0 0 0 7px #fffefa;
  color: var(--workspace-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.readiness-score div {
  display: grid;
}

.readiness-score strong {
  font-size: 12px;
}

.readiness-score small {
  color: var(--workspace-muted);
  font-size: 9px;
}

.readiness-bars {
  display: grid;
  gap: 7px;
}

.readiness-bars span {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

.readiness-bars i {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #e1e2de;
}

.readiness-bars b {
  display: block;
  height: 100%;
  background: var(--workspace-blue);
}

.attention-list {
  grid-column: 1 / -1;
  padding-top: 10px;
  border-top: 1px solid #e2e1dc;
}

.attention-list > strong {
  display: block;
  margin-bottom: 7px;
  font-size: 10px;
}

.attention-list p {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 7px;
  margin: 5px 0;
  color: var(--workspace-muted);
  font-size: 9px;
  line-height: 1.45;
}

.attention-list span {
  align-self: start;
  padding: 2px 4px;
  border-radius: 3px;
  text-align: center;
  text-transform: uppercase;
}

.assessment-missing { color: #8c3131; background: #f8dfdc; }
.assessment-weak { color: #765515; background: #fff0c9; }

.rescore-warning,
.field-summary {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #ead49c;
  border-radius: 7px;
  color: #735116;
  background: #fff4d9;
  font-size: 10px;
  line-height: 1.45;
}

.field-summary {
  color: #7f3131;
  border-color: #ebc6c3;
  background: #fbe9e7;
}

.field-summary ul {
  margin: 6px 0 0;
  padding-left: 17px;
}

.field-summary code {
  font-size: 9px;
  font-weight: 700;
}

.conflict-reload {
  margin-top: 8px;
}

.manifesto-section-nav {
  display: flex;
  gap: 6px;
  margin: 14px 0;
  overflow-x: auto;
}

.manifesto-section-nav a {
  flex: none;
  padding: 6px 8px;
  border: 1px solid #d6d8d7;
  border-radius: 999px;
  color: #536069;
  background: white;
  font-size: 9px;
  text-decoration: none;
}

.manifesto-editor {
  display: grid;
  gap: 14px;
}

.manifesto-section {
  scroll-margin-top: 10px;
  padding: 16px;
  border: 1px solid #d8d7d1;
  border-radius: 9px;
  background: #fffefa;
}

.manifesto-section > header,
.subsection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manifesto-section > header {
  margin-bottom: 12px;
}

.manifesto-section h2,
.manifesto-section h3,
.recent-changes h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}

.manifesto-section > header button,
.subsection-heading button {
  border: 0;
  color: var(--workspace-blue);
  background: transparent;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.editor-field {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}

.editor-field > span {
  font-size: 10px;
  font-weight: 750;
}

.editor-field > small {
  color: var(--workspace-muted);
  font-size: 9px;
  line-height: 1.4;
}

.editor-field input,
.editor-field textarea,
.editor-field select {
  padding: 8px 9px;
  resize: vertical;
  font-size: 10px;
  line-height: 1.45;
}

.editor-field input[readonly],
.editor-field textarea[readonly],
.editor-field select:disabled {
  color: #485159;
  background: #f5f5f1;
}

.editor-field.has-error input,
.editor-field.has-error textarea,
.editor-field.has-error select {
  border-color: #ba5a55;
}

.editor-field em {
  color: #a43f3a;
  font-size: 9px;
  font-style: normal;
}

.empty-items {
  color: var(--workspace-muted);
  font-size: 10px;
}

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

.repeatable-card {
  padding: 12px;
  border: 1px solid #e1e0db;
  border-radius: 7px;
  background: #f8f7f3;
}

.repeatable-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.repeatable-card > header strong {
  color: var(--workspace-blue);
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.repeatable-card > header button,
.band-row > button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: #9a4944;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

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

.editor-grid > .editor-field:nth-last-child(1):nth-child(odd),
.editor-grid > .band-editor {
  grid-column: 1 / -1;
}

.tier-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
  padding: 12px;
  border-radius: 7px;
  background: #f4f4f0;
}

.tier-editor h3 {
  grid-column: 1 / -1;
  font-size: 13px;
}

.band-editor {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #deddd8;
}

.band-row {
  display: grid;
  grid-template-columns: minmax(100px, .7fr) minmax(140px, 1fr) 82px 24px;
  align-items: end;
  gap: 7px;
}

.recent-changes {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d8d7d1;
  border-radius: 9px;
  background: #fffefa;
}

.recent-changes p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0 0;
  color: var(--workspace-muted);
  font-size: 9px;
}

.profile-dialog-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(24, 30, 35, .42);
}

.profile-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 22px;
  border-radius: 10px;
  background: #fffefa;
  box-shadow: 0 20px 60px rgba(25, 31, 36, .24);
}

.profile-generation-dialog {
  border-top: 4px solid var(--workspace-blue);
}

.profile-dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid #d5d9d8;
  border-radius: 50%;
  color: var(--workspace-muted);
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.profile-dialog-close:hover {
  color: var(--workspace-ink);
  background: #f1f4f6;
}

.profile-dialog h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-dialog p,
.profile-dialog li {
  color: var(--workspace-muted);
  font-size: 11px;
  line-height: 1.5;
}

.profile-dialog > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-mobile-tabs {
  display: none;
}

/* Landing-aligned profiler finish */
.project-profiler { background: #f6f3ed; }
.profile-page-header { min-height: 90px; padding-inline: 26px; background: #fffdfa; }
.profile-page-header span { color: #3b6054; }
.profile-page-header h1 { font-family: inherit; font-size: 26px; font-weight: 820; letter-spacing: -.04em; }
.profile-columns { grid-template-columns: minmax(360px, .84fr) minmax(500px, 1.16fr); }
.profile-conversation { background: #efede7; }
.conversation-heading, .manifesto-toolbar { min-height: 58px; background: rgba(255,253,250,.86); }
.assistant-mark, .profile-message > span { border-radius: 11px; background: #527568; font-family: inherit; font-weight: 850; }
.profile-message.is-user > span { color: #202a27; background: #ddb18e; }
.profile-message > div { border-color: #d5dad5; border-radius: 6px 15px 15px; background: #fffdfa; box-shadow: 0 4px 14px rgba(32,42,39,.04); }
.profile-message.is-user > div { border-color: #cad8d2; border-radius: 15px 6px 15px 15px; background: #e2ebe7; }
.conversation-composer { background: #fffdfa; }
.message-form { border-color: #cfd7d2; border-radius: 14px; background: #f6f3ed; }
.message-form:focus-within { border-color: #8fa99e; box-shadow: 0 0 0 3px rgba(82,117,104,.12); }
.message-form button, .manifesto-actions .primary-action { border-radius: 999px; background: #202a27; }
.source-menu, .attachment-button { border-radius: 11px; }
.manifesto-panel { background: #f6f3ed; }
.manifesto-scroll { padding: 22px; }
.readiness-card, .manifesto-section, .editor-card, .band-editor, .tier-editor, .profile-source-card {
  border-color: #d9ddd8;
  border-radius: 15px;
  background: #fffdfa;
  box-shadow: none;
}
.readiness-track, .readiness-section-track { background: #e1e5e1; }
.readiness-track i, .readiness-section-track i { background: linear-gradient(90deg, #527568, #91aa9f); }
.manifesto-toolbar button, .manifesto-actions button { border-radius: 999px; }
.manifesto-actions button:not(.primary-action) { border-color: #d1d7d2; background: #fffdfa; }
.editor-field input, .editor-field textarea, .editor-field select { border-color: #d5dad5; border-radius: 10px; background: #fdfcf8; }
.editor-field input:focus, .editor-field textarea:focus, .editor-field select:focus { border-color: #829f93; outline-color: rgba(82,117,104,.14); }
.profile-mobile-tabs button[aria-selected="true"] { color: #34594d; background: #fffdfa; }

.profile-state {
  grid-column: 2 / -1;
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--workspace-muted);
}

.profile-state p { margin: 0; font-size: 11px; }
.profile-state button { padding: 8px 12px; border: 0; border-radius: 6px; color: white; background: var(--workspace-blue); cursor: pointer; }
.profile-state.is-error strong { color: #8a3434; }

.profile-spinner {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #d5d8d7;
  border-top-color: var(--workspace-blue);
  border-radius: 50%;
  animation: profile-spin .8s linear infinite;
}

@keyframes profile-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .project-profiler,
  .profile-state { grid-column: 2 / -1; }
  .profile-columns { grid-template-columns: minmax(330px, .8fr) minmax(480px, 1.2fr); }
  .manifesto-scroll { padding-inline: 16px; }
}

@media (max-width: 900px) {
  .project-profiler { min-width: 800px; }
}

@media (max-width: 720px) {
  .project-profiler,
  .profile-state {
    grid-column: auto;
    min-width: 0;
    min-height: calc(100dvh - 64px);
  }

  .profile-page-header {
    min-height: 76px;
    padding: 12px 15px;
  }

  .profile-page-header h1 { font-size: 21px; }
  .profile-page-header p { max-width: 280px; }

  .profile-mobile-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 7px;
    border-bottom: 1px solid var(--workspace-line);
    background: #ebeae5;
  }

  .profile-mobile-tabs button {
    padding: 8px;
    border: 0;
    border-radius: 6px;
    color: var(--workspace-muted);
    background: transparent;
    font-size: 10px;
    font-weight: 750;
  }

  .profile-mobile-tabs button[aria-selected="true"] {
    color: var(--workspace-blue);
    background: #fffefa;
    box-shadow: 0 1px 3px rgba(20, 30, 40, .1);
  }

  .profile-columns { display: block; flex: 1; }
  .profile-conversation,
  .manifesto-panel { display: none; height: calc(100dvh - 189px); }
  .profile-conversation.is-mobile-active,
  .manifesto-panel.is-mobile-active { display: flex; }
  .manifesto-scroll { padding: 12px 12px 40px; }
  .manifesto-toolbar { align-items: flex-start; flex-direction: column; }
  .manifesto-actions { width: 100%; overflow-x: auto; }
  .manifesto-actions button { flex: 1; white-space: nowrap; }
  .readiness-card { grid-template-columns: 1fr; }
  .attention-list { grid-column: auto; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-grid > .band-editor { grid-column: auto; }
  .tier-editor { grid-template-columns: repeat(3, 1fr); }
  .band-row { grid-template-columns: 1fr 74px 24px; }
  .band-row > .editor-field:first-child { grid-column: 1 / -1; }
  .message-form { grid-template-columns: 1fr; }
  .message-form button { justify-self: end; }
}
.administration-panel {
  grid-column: 2 / -1;
  min-width: 0;
  overflow: auto;
  padding: 34px clamp(24px, 4vw, 58px) 60px;
  background: #f8fafc;
}

.administration-header { max-width: 760px; margin-bottom: 28px; }
.administration-header > span { color: #65758b; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.administration-header h1 { margin: 5px 0 8px; color: #172033; font-size: 32px; line-height: 1.12; }
.administration-header p { margin: 0; color: #65758b; line-height: 1.55; }
.administration-error { position: sticky; top: 0; z-index: 2; margin: -12px 0 18px; padding: 11px 14px; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; background: #fff1f2; }
.administration-list { display: grid; gap: 16px; max-width: 980px; }
.member-admin-card, .team-admin-card, .access-model-card, .create-team-form { border: 1px solid #e1e7ef; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(30, 48, 78, .04); }
.member-admin-card, .team-admin-card { padding: 20px; }
.member-admin-card.is-disabled, .team-admin-card.is-disabled { background: #f5f7fa; opacity: .76; }
.member-admin-heading, .team-admin-heading { display: flex; align-items: center; gap: 12px; }
.member-admin-heading > div, .team-admin-heading > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.member-admin-heading strong, .team-admin-heading strong { color: #1c2638; }
.member-admin-heading span, .team-admin-heading span { color: #738096; font-size: 13px; }
.admin-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #3155b8 !important; background: #e8eeff; font-size: 13px !important; font-weight: 800; }
.access-state { padding: 4px 9px; border-radius: 999px; background: #e7ebf0; font-size: 11px !important; font-weight: 700; text-transform: uppercase; }
.access-state.is-active { color: #166534 !important; background: #dcfce7; }
.member-admin-controls { display: flex; align-items: end; gap: 12px; margin: 18px 0; }
.member-admin-controls label, .rename-team-form label, .create-team-form label { display: grid; gap: 6px; color: #536077; font-size: 12px; font-weight: 700; }
.member-admin-controls select, .rename-team-form input, .create-team-form input { min-height: 40px; border: 1px solid #ccd5e2; border-radius: 9px; padding: 0 11px; color: #243047; background: #fff; }
.member-admin-controls button, .team-admin-heading button, .rename-team-form button, .create-team-form button, .administration-state button { min-height: 40px; border: 1px solid #bfc9d7; border-radius: 9px; padding: 0 14px; cursor: pointer; color: #344158; background: #fff; font-weight: 700; }
.member-admin-controls button:disabled, .team-admin-heading button:disabled, .rename-team-form button:disabled, .create-team-form button:disabled { cursor: not-allowed; opacity: .55; }
.danger-secondary { color: #a32222 !important; border-color: #f0b8b8 !important; }
.primary-secondary, .create-team-form button { color: #fff !important; border-color: #3155b8 !important; background: #3155b8 !important; }
.last-admin-note { margin: -7px 0 15px; color: #8a5b12; font-size: 13px; }
.member-admin-card fieldset, .team-admin-card fieldset { margin: 15px 0 0; border: 0; border-top: 1px solid #edf0f5; padding: 15px 0 0; }
.member-admin-card legend, .team-admin-card legend { padding: 0 8px 0 0; color: #344158; font-size: 13px; font-weight: 800; }
.member-admin-card fieldset > p { margin: 3px 0 11px; color: #7a8799; font-size: 12px; }
.assignment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 12px; }
.assignment-grid label { display: flex; align-items: center; gap: 8px; min-height: 35px; color: #435067; font-size: 13px; }
.assignment-grid input { width: 16px; height: 16px; accent-color: #3155b8; }
.muted { color: #8893a3; font-size: 13px; }
.create-team-form { display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: end; gap: 12px; max-width: 640px; margin-bottom: 22px; padding: 17px; }
.create-team-form label { grid-column: 1; }
.create-team-form input { width: 100%; }
.create-team-form button { grid-column: 2; grid-row: 1; align-self: end; }
.rename-team-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-top: 16px; }
.rename-team-form label { grid-column: 1; }
.rename-team-form button { grid-column: 2; grid-row: 1; }
.access-model-card { max-width: 900px; padding: 20px; }
.access-model-card strong { color: #1e293b; }
.access-model-card p { margin: 8px 0 0; color: #637086; line-height: 1.55; }
.audit-heading { display: flex; max-width: 900px; align-items: baseline; justify-content: space-between; margin: 30px 0 12px; }
.audit-heading h2 { margin: 0; color: #1e293b; font-size: 20px; }
.audit-heading span { color: #8290a3; font-size: 12px; }
.audit-list { display: grid; max-width: 900px; }
.shared-access-list { display: grid; max-width: 900px; border: 1px solid #e1e7ef; border-radius: 14px; overflow: hidden; background: #fff; }
.shared-access-list article { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #edf0f5; }
.shared-access-list article:last-child { border-bottom: 0; }
.shared-access-list article > div { display: grid; gap: 3px; }
.shared-access-list strong { color: #2c394f; font-size: 13px; }
.shared-access-list span { color: #8290a3; font-size: 12px; }
.shared-access-list button { min-height: 36px; border: 1px solid #f0b8b8; border-radius: 9px; padding: 0 12px; cursor: pointer; background: #fff; font-weight: 700; }
.audit-list article { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; padding: 15px 4px; border-bottom: 1px solid #e4e8ee; }
.audit-list article > div { min-width: 0; }
.audit-list strong { color: #2c394f; font-size: 13px; }
.audit-list p { margin: 4px 0; color: #5c697d; font-size: 13px; }
.audit-list small, .audit-list article > span:last-child { color: #8a96a7; font-size: 11px; }
.audit-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #5874ca; }
.administration-state { display: grid; min-height: 180px; place-items: center; align-content: center; gap: 9px; color: #65758b; text-align: center; }
.administration-state p { margin: 0; }
.administration-state.is-error strong { color: #991b1b; }
.subscription-nudge, .subscription-contact { display: flex; max-width: 900px; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 20px; border: 1px solid #cbd7f5; border-radius: 14px; padding: 16px 18px; background: #f1f5ff; }
.subscription-nudge > div, .subscription-contact { color: #2b3d6d; }
.subscription-nudge p, .subscription-contact p { margin: 4px 0 0; color: #65758b; font-size: 13px; }
.subscription-nudge button { border: 0; border-radius: 9px; padding: 10px 13px; cursor: pointer; color: #fff; background: #3155b8; font-weight: 700; }
.subscription-heading-row { display: flex; max-width: 1100px; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.subscription-heading-row .administration-header { margin-bottom: 0; }
.subscription-billing-toggle { display: inline-flex; flex: 0 0 auto; gap: 3px; padding: 4px; border: 1px solid #d6ddd8; border-radius: 11px; background: #fff; }
.subscription-billing-toggle button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 12px; color: #68736b; background: transparent; cursor: pointer; font-weight: 700; }
.subscription-billing-toggle button[aria-pressed='true'] { color: #fff; background: #1f6f5b; }
.subscription-billing-toggle small { margin-left: 7px; color: #278065; font: inherit; }
.subscription-billing-toggle button[aria-pressed='true'] small { color: #d7f1e8; }
.current-plan-card { display: flex; max-width: 1100px; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; border: 1px solid #b9d4ca; border-radius: 16px; padding: 22px; background: linear-gradient(135deg, #eff7f3, #fff); }
.current-plan-card span { color: #5f7068; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.current-plan-card h2 { margin: 4px 0; color: #185344; font-size: 26px; }
.current-plan-card p { margin: 0; color: #65758b; }
.current-plan-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.current-plan-actions button { min-height: 40px; border: 0; border-radius: 9px; padding: 0 14px; cursor: pointer; color: #fff; background: #1f6f5b; font-weight: 700; }
.current-plan-actions button:disabled { cursor: default; opacity: .6; }
.plan-over-limit { color: #a33a24; }
.subscription-usage-grid { display: grid; max-width: 1100px; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.subscription-usage-grid article { display: grid; gap: 5px; border: 1px solid #e1e7ef; border-radius: 13px; padding: 16px; background: #fff; }
.subscription-usage-grid span, .subscription-usage-grid small { color: #758299; font-size: 12px; }
.subscription-usage-grid strong { color: #243047; font-size: 20px; }
.subscription-usage-track { height: 6px; margin: 5px 0 2px; overflow: hidden; border-radius: 999px; background: #e8ede9; }
.subscription-usage-track > span { display: block; height: 100%; border-radius: inherit; background: #1f6f5b; }
.plan-grid { display: grid; max-width: 1100px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.plan-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid #e1e7ef; border-radius: 16px; padding: 20px; background: #fff; box-shadow: 0 7px 22px rgba(30, 48, 78, .04); }
.plan-card.is-current, .plan-card.is-selected { border-color: #4f957f; box-shadow: 0 8px 25px rgba(31, 111, 91, .12); }
.plan-card > div { min-height: 122px; }
.plan-card span { color: #6d7b91; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-card h2 { margin: 6px 0; color: #23304a; }
.plan-card > div > strong { display: block; color: #1f6f5b; font-size: 14px; }
.plan-card > div > small { display: block; min-height: 17px; margin-top: 5px; color: #7c8896; font-size: 11px; }
.plan-card .plan-recommended { position: absolute; top: 0; right: 18px; transform: translateY(-50%); border-radius: 999px; padding: 5px 9px; color: #fff; background: #1f6f5b; }
.plan-card ul { display: grid; gap: 8px; margin: 12px 0 0; padding: 14px 0 0 18px; border-top: 1px solid #edf0f5; color: #56647a; font-size: 13px; }
.plan-card > button { width: 100%; min-height: 40px; margin-top: auto; border: 1px solid #c5d0c8; border-radius: 9px; color: #26362e; background: #fff; cursor: pointer; font-weight: 700; }
.plan-card.is-selected > button { border-color: #1f6f5b; color: #fff; background: #1f6f5b; }
.plan-card > button:disabled { cursor: default; opacity: .58; }
.enterprise-plan-row, .subscription-selection { display: flex; max-width: 1100px; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 14px; border: 1px solid #d8e0da; border-radius: 14px; padding: 17px 20px; background: #eef3ef; }
.enterprise-plan-row.is-selected { border-color: #4f957f; box-shadow: 0 0 0 1px #4f957f inset; }
.enterprise-plan-row p, .subscription-selection p { margin: 4px 0 0; color: #65756d; font-size: 13px; }
.enterprise-contact-link { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; border: 1px solid #bccac1; border-radius: 9px; padding: 0 14px; color: #24332b; background: #fff; font-weight: 700; text-decoration: none; }
.subscription-selection { color: #1c4e3f; border-color: #b9d8cd; background: #edf7f2; }
.subscription-selection.is-neutral { color: #374151; border-color: #d8e0da; background: #f6f7f6; }

/* Landing-aligned administration finish */
.administration-panel { padding-top: 40px; background: #f6f3ed; }
.administration-header > span { color: #527568; font-size: 10px; font-weight: 850; letter-spacing: .15em; }
.administration-header h1 { margin-top: 9px; color: #202a27; font-size: clamp(32px, 4vw, 46px); font-weight: 820; letter-spacing: -.055em; }
.administration-header p { color: #65706b; }
.member-admin-card, .team-admin-card, .access-model-card, .create-team-form,
.shared-access-list, .subscription-usage-grid article, .plan-card {
  border-color: #d9ddd8;
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: none;
}
.member-admin-heading strong, .team-admin-heading strong, .access-model-card strong,
.audit-heading h2, .shared-access-list strong, .audit-list strong, .plan-card h2,
.subscription-usage-grid strong { color: #202a27; }
.member-admin-heading span, .team-admin-heading span, .access-model-card p,
.audit-heading span, .shared-access-list span, .audit-list p, .audit-list small,
.audit-list article > span:last-child, .muted { color: #707a75; }
.admin-avatar { border-radius: 12px; color: #34594d !important; background: #e1ebe6; }
.access-state.is-active { color: #34594d !important; background: #e1ebe6; }
.assignment-grid input { accent-color: #527568; }
.primary-secondary, .create-team-form button, .subscription-nudge button { border-color: #202a27 !important; border-radius: 999px; background: #202a27 !important; }
.member-admin-controls button, .team-admin-heading button, .rename-team-form button,
.create-team-form button, .administration-state button { border-radius: 999px; }
.audit-dot { background: #ddb18e; }
.subscription-nudge, .subscription-contact { border-color: #cbd8d2; border-radius: 16px; color: #34594d; background: #e6eee9; }
.subscription-nudge > div, .subscription-contact { color: #34594d; }
.subscription-billing-toggle { border-color: #d2d8d3; border-radius: 999px; background: #ebe8e1; }
.subscription-billing-toggle button { border-radius: 999px; }
.subscription-billing-toggle button[aria-pressed='true'] { background: #202a27; }
.subscription-billing-toggle small { color: #527568; }
.subscription-billing-toggle button[aria-pressed='true'] small { color: #e7c8ad; }
.current-plan-card { border-color: #b9cdc4; border-radius: 18px; background: linear-gradient(135deg, #e4ede8, #fffdfa); }
.current-plan-card h2 { color: #34594d; }
.current-plan-actions button { border-radius: 999px; background: #202a27; }
.subscription-usage-track { background: #e1e6e2; }
.subscription-usage-track > span { background: #527568; }
.plan-card.is-current, .plan-card.is-selected { border-color: #78988b; box-shadow: 0 9px 28px rgba(32,42,39,.08); }
.plan-card > div > strong { color: #456d5c; }
.plan-card .plan-recommended { color: #202a27; background: #ddb18e; }
.plan-card > button, .enterprise-contact-link { border-radius: 999px; }
.plan-card.is-selected > button { border-color: #202a27; background: #202a27; }
.enterprise-plan-row, .subscription-selection { border-color: #cad5cf; border-radius: 16px; background: #ebefeb; }
.enterprise-plan-row.is-selected { border-color: #78988b; box-shadow: 0 0 0 1px #78988b inset; }
.subscription-selection { color: #34594d; border-color: #b9cdc4; background: #e5eee9; }

@media (max-width: 820px) {
  .administration-panel { grid-column: 1; padding: 24px 18px 48px; }
  .member-admin-controls, .team-admin-heading { align-items: stretch; flex-direction: column; }
  .create-team-form, .rename-team-form { grid-template-columns: 1fr; }
  .create-team-form button, .rename-team-form button { grid-column: 1; grid-row: auto; }
  .audit-list article { grid-template-columns: 12px 1fr; }
  .audit-list article > span:last-child { grid-column: 2; }
  .subscription-usage-grid, .plan-grid { grid-template-columns: 1fr; }
  .subscription-nudge, .current-plan-card, .subscription-heading-row, .enterprise-plan-row, .subscription-selection { align-items: stretch; flex-direction: column; }
  .subscription-billing-toggle { display: grid; grid-template-columns: 1fr 1fr; }
}
.control-panel {
  grid-column: 2 / -1;
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  padding: 32px clamp(20px, 4vw, 54px) 48px;
  background: #f8f9fc;
}

.control-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.control-panel-header > div > span { color: #7451c5; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.control-panel-header h1 { margin: 5px 0 7px; color: #18152a; font-size: clamp(1.8rem, 3vw, 2.45rem); letter-spacing: -.045em; }
.control-panel-header p, .control-section-heading p { margin: 0; color: #777487; line-height: 1.55; }
.control-panel-header button, .control-panel-state button { border: 1px solid #dedbe8; border-radius: 9px; background: #fff; color: #464154; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.control-panel-header button:disabled { cursor: wait; opacity: .6; }

.control-panel-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e4e1eb; margin-bottom: 28px; }
.control-panel-tabs button { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #7b7786; padding: 11px 18px; font-weight: 750; cursor: pointer; }
.control-panel-tabs button[aria-selected="true"] { border-bottom-color: #7451c5; color: #5f3caf; }
.control-panel-tabs button span { min-width: 21px; border-radius: 999px; background: #ece8f7; padding: 2px 6px; color: #6948b1; font-size: .72rem; }

.control-panel-dashboard, .control-panel-users { max-width: 1280px; margin: 0 auto; }
.control-section-heading h2 { margin: 0 0 4px; color: #242033; font-size: 1.08rem; }
.control-section-heading p { font-size: .86rem; }
.control-stat-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 12px; margin: 16px 0 26px; }
.control-metric { position: relative; overflow: hidden; min-height: 108px; border: 1px solid #e8e5ed; border-radius: 13px; background: #fff; padding: 17px; box-shadow: 0 3px 13px rgba(38, 29, 61, .035); }
.control-metric::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: #7451c5; }
.control-metric span { display: block; color: #85818e; font-size: .76rem; font-weight: 700; line-height: 1.3; }
.control-metric strong { display: block; margin-top: 14px; color: #211d2f; font-size: 1.72rem; letter-spacing: -.035em; }
.control-metric.is-compact { min-height: 88px; padding: 14px 16px; }
.control-metric.is-compact strong { margin-top: 9px; font-size: 1.35rem; }
.control-metric.is-green::before { background: #36a269; }.control-metric.is-blue::before { background: #4d7cca; }.control-metric.is-amber::before { background: #d79b35; }.control-metric.is-pink::before { background: #ca6799; }.control-metric.is-cyan::before { background: #42a2ad; }

.control-dashboard-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.control-card { border: 1px solid #e8e5ed; border-radius: 14px; background: #fff; padding: 22px; box-shadow: 0 5px 20px rgba(38, 29, 61, .04); }
.telemetry-primary { display: flex; align-items: baseline; gap: 9px; margin-top: 21px; }.telemetry-primary strong { color: #211d2f; font-size: 2rem; }.telemetry-primary span { color: #777487; font-size: .82rem; }
.telemetry-track { display: flex; overflow: hidden; height: 8px; margin: 12px 0 20px; border-radius: 999px; background: #eceaf0; }.telemetry-track span { min-width: 2px; }.telemetry-track .is-success { background: #43ad75; }.telemetry-track .is-active { background: #688fde; }.telemetry-track .is-failed { background: #db6d79; }
.telemetry-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 0 0; overflow: hidden; border: 1px solid #ebe8ef; border-radius: 10px; background: #ebe8ef; }
.telemetry-list div { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; padding: 11px 13px; }.telemetry-list dt { color: #757180; font-size: .79rem; }.telemetry-list dd { margin: 0; color: #252131; font-weight: 800; }.telemetry-list .is-success dd { color: #268b57; }.telemetry-list .is-active dd { color: #4b72c2; }.telemetry-list .is-failed dd { color: #c55361; }
.api-metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 21px; }.tracked-cost { display: flex; justify-content: space-between; margin-top: 14px; border-radius: 9px; background: #f7f5fb; padding: 11px 13px; color: #706b7a; font-size: .8rem; }.tracked-cost strong { color: #352d48; }
.provider-card { margin-top: 16px; }

.control-table-wrap { margin-top: 18px; overflow-x: auto; }.control-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }.control-table-wrap th { border-bottom: 1px solid #e8e5ed; color: #8c8893; padding: 10px 12px; font-size: .7rem; letter-spacing: .075em; text-transform: uppercase; }.control-table-wrap td { border-bottom: 1px solid #efedf2; color: #514c5c; padding: 13px 12px; font-size: .85rem; }.control-table-wrap tbody tr:last-child td { border-bottom: 0; }.control-table-wrap td:first-child { display: flex; align-items: center; gap: 10px; color: #2c2738; }.provider-mark { display: inline-grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; background: #eee9f8; color: #6947b1; font-weight: 850; }
.control-empty { margin-top: 18px; border: 1px dashed #ddd8e7; border-radius: 10px; padding: 28px; color: #817c8a; text-align: center; }.control-empty-inline { color: #817c8a; font-size: .84rem; }.control-updated { margin: 17px 2px 0; color: #97939e; font-size: .72rem; text-align: right; }

.users-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 16px; }.control-user-search { display: flex; align-items: center; width: min(300px, 100%); border: 1px solid #dedbe6; border-radius: 9px; background: #fff; padding: 0 11px; }.control-user-search:focus-within { border-color: #8c6bcc; box-shadow: 0 0 0 3px rgba(116,81,197,.1); }.control-user-search svg { width: 17px; fill: none; stroke: #8b8791; stroke-width: 1.8; }.control-user-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 8px; background: transparent; color: #2d2936; }
.users-card { padding-top: 7px; }.users-card td:first-child > span:last-child { display: flex; flex-direction: column; gap: 3px; }.users-card td small { color: #8c8894; }.control-user-avatar { display: inline-grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ede8f8; color: #6544ad; font-size: .74rem; font-weight: 850; }.control-role, .control-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: .72rem; font-weight: 800; }.control-role.is-admin { background: #eee8f9; color: #6844b3; }.control-role.is-user { background: #f0f1f4; color: #65616b; }.control-status { gap: 6px; background: #edf7f1; color: #2c8857; }.control-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.control-status.is-disabled { background: #f4f1f2; color: #8b6d74; }
.promo-help { margin: 8px 0 18px; color: #777487; font-size: .8rem; line-height: 1.5; }
.promo-form { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(150px, .8fr) minmax(170px, 1fr) auto; align-items: end; gap: 12px; border-radius: 11px; background: #f8f7fb; padding: 15px; }
.promo-form label { display: grid; gap: 6px; color: #716c7a; font-size: .74rem; font-weight: 750; }
.promo-form select, .promo-form input { min-width: 0; height: 40px; border: 1px solid #dcd8e4; border-radius: 8px; outline: 0; background: #fff; padding: 0 10px; color: #302b39; font: inherit; font-weight: 600; }
.promo-form select:focus, .promo-form input:focus { border-color: #8c6bcc; box-shadow: 0 0 0 3px rgba(116,81,197,.1); }
.promo-form button { height: 40px; border: 0; border-radius: 8px; background: #6c49ba; padding: 0 17px; color: #fff; font-weight: 800; cursor: pointer; }
.promo-form button:disabled, .promo-actions button:disabled { cursor: not-allowed; opacity: .55; }
.promo-feedback { margin: 12px 1px 0; font-size: .8rem; font-weight: 700; }.promo-feedback.is-success { color: #278755; }.promo-feedback.is-error { color: #b74854; }
.promo-table code { border-radius: 6px; background: #f0ecf8; padding: 5px 7px; color: #5e3da7; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.promo-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: .7rem; font-weight: 800; }.promo-status.is-active { background: #eaf6ef; color: #278755; }.promo-status.is-expired { background: #f4f1f2; color: #7f6e73; }.promo-status.is-revoked { background: #fff0f1; color: #b74854; }
.promo-actions { display: flex; gap: 6px; }.promo-actions button { border: 1px solid #ded9e5; border-radius: 7px; background: #fff; padding: 6px 9px; color: #5d5667; font-size: .72rem; font-weight: 800; cursor: pointer; }.promo-actions .is-revoke:not(:disabled):hover { border-color: #c9b9e5; color: #6443ac; }.promo-actions .is-delete:not(:disabled):hover { border-color: #e9bfc4; background: #fff6f7; color: #ad3f4b; }
.control-panel-state { display: grid; min-height: 280px; place-items: center; align-content: center; gap: 11px; color: #696572; text-align: center; }.control-panel-state p { margin: 0; max-width: 560px; }.control-panel-error { max-width: 1280px; margin: 0 auto 16px; border: 1px solid #efc9cd; border-radius: 9px; background: #fff3f4; padding: 11px 13px; color: #a43d48; }

/* Landing-aligned control panel finish */
.control-panel { padding-top: 40px; background: #f6f3ed; }
.control-panel-header > div > span { color: #527568; font-size: .65rem; letter-spacing: .15em; }
.control-panel-header h1 { color: #202a27; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 820; letter-spacing: -.055em; }
.control-panel-header p, .control-section-heading p, .promo-help { color: #6c7671; }
.control-panel-header button, .control-panel-state button { border-color: #d4dad5; border-radius: 999px; color: #34453f; background: #fffdfa; }
.control-panel-tabs { border-bottom-color: #d9ddd8; }
.control-panel-tabs button { color: #747d78; }
.control-panel-tabs button[aria-selected="true"] { border-bottom-color: #527568; color: #34594d; }
.control-panel-tabs button span { color: #34594d; background: #e1ebe6; }
.control-section-heading h2 { color: #202a27; }
.control-metric, .control-card { border-color: #d9ddd8; border-radius: 16px; background: #fffdfa; box-shadow: none; }
.control-metric::before { background: #527568; }
.control-metric.is-green::before { background: #6f927f; }
.control-metric.is-blue::before { background: #7d9890; }
.control-metric.is-amber::before { background: #c69069; }
.control-metric.is-pink::before { background: #b78376; }
.control-metric.is-cyan::before { background: #7b9d9b; }
.control-metric span, .telemetry-primary span, .telemetry-list dt,
.control-table-wrap td, .control-empty, .control-empty-inline { color: #747d78; }
.control-metric strong, .telemetry-primary strong, .telemetry-list dd,
.tracked-cost strong, .control-table-wrap td:first-child { color: #202a27; }
.telemetry-track { background: #e5e8e5; }
.telemetry-track .is-success { background: #6f927f; }
.telemetry-track .is-active { background: #8ba29a; }
.telemetry-track .is-failed { background: #b97c75; }
.telemetry-list { border-color: #dfe3df; background: #dfe3df; }
.telemetry-list div { background: #fffdfa; }
.tracked-cost, .promo-form { background: #efede7; }
.provider-mark { color: #34594d; background: #e1ebe6; }
.control-user-search { border-color: #d4dad5; border-radius: 12px; background: #fffdfa; }
.control-user-search:focus-within { border-color: #88a398; box-shadow: 0 0 0 3px rgba(82,117,104,.12); }
.control-user-avatar { color: #34594d; background: #e1ebe6; }
.control-role.is-admin { color: #34594d; background: #e1ebe6; }
.promo-form { border-radius: 14px; }
.promo-form select, .promo-form input { border-color: #d4dad5; border-radius: 10px; color: #202a27; background: #fffdfa; }
.promo-form select:focus, .promo-form input:focus { border-color: #88a398; box-shadow: 0 0 0 3px rgba(82,117,104,.12); }
.promo-form button { border-radius: 999px; background: #202a27; }
.promo-table code { color: #34594d; background: #e5ede9; }
.promo-actions button { border-color: #d5dad6; border-radius: 999px; background: #fffdfa; }

@media (max-width: 1050px) { .control-stat-grid { grid-template-columns: repeat(3, 1fr); }.control-dashboard-columns { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .promo-form { grid-template-columns: 1fr 1fr; }.promo-form button { align-self: end; } }
@media (max-width: 720px) { .control-panel { grid-column: auto; padding: 22px 16px 90px; }.control-panel-header { flex-direction: column; }.control-panel-header button { align-self: stretch; }.control-stat-grid { grid-template-columns: repeat(2, 1fr); }.users-heading { align-items: stretch; flex-direction: column; }.control-user-search { width: auto; }.telemetry-list { grid-template-columns: 1fr; }.control-card { padding: 16px; }.provider-card .control-table-wrap th:nth-child(4), .provider-card .control-table-wrap td:nth-child(4), .users-card .control-table-wrap th:nth-child(4), .users-card .control-table-wrap td:nth-child(4) { display: none; }.promo-form { grid-template-columns: 1fr; }.promo-form button { width: 100%; }.promo-table th:nth-child(6), .promo-table td:nth-child(6) { display: none; } }
.workspace-shell {
  --workspace-ink: #202a27;
  --workspace-muted: #65706b;
  --workspace-faint: #8c958f;
  --workspace-line: #d9ddd8;
  --workspace-paper: #f6f3ed;
  --workspace-surface: #fffdfa;
  --workspace-panel: #f1efea;
  --workspace-blue: #527568;
  --workspace-blue-soft: #e2ebe7;
  --workspace-green: #456d5c;
  --workspace-green-soft: #e1ece6;
  --workspace-amber: #8a6042;
  --workspace-amber-soft: #f2e3d7;

  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  color: var(--workspace-ink);
  background: var(--workspace-paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Loading indicator styles */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

.empty-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100% - 40px, 520px);
  min-height: 100%;
  margin: 0 auto;
  text-align: center;
}

.empty-projects .workspace-brand-mark {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
}

.empty-projects strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 5vw, 42px);
}

.empty-projects p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--workspace-muted);
  line-height: 1.55;
}

.empty-project-primary,
.empty-project-signout {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.empty-project-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  color: white !important;
  background: var(--workspace-blue);
  font-weight: 750 !important;
}

.empty-project-signout {
  color: var(--workspace-muted) !important;
  font-size: 13px !important;
}

.project-modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 27, 33, 0.42);
}

.project-modal {
  width: min(100%, 460px);
  padding: 26px;
  border: 1px solid var(--workspace-line, #dfe2df);
  border-radius: 12px;
  background: var(--workspace-surface, #fffefa);
  box-shadow: 0 24px 70px rgba(20, 27, 33, 0.24);
}

.project-modal h2 {
  margin: 0 0 8px;
  color: var(--workspace-ink, #1d252c);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.project-modal > p {
  margin: 0 0 22px;
  color: var(--workspace-muted, #69737c);
  line-height: 1.5;
}

.project-modal form,
.project-modal label {
  display: grid;
}

.project-modal form {
  gap: 10px;
}

.project-modal label {
  color: var(--workspace-ink, #1d252c);
  font-size: 13px;
  font-weight: 750;
}

.project-modal input,
.project-modal textarea {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--workspace-line, #dfe2df);
  border-radius: 8px;
  color: var(--workspace-ink, #1d252c);
  background: #fff;
  font: inherit;
}

.project-modal textarea {
  min-height: 112px;
  padding-block: 10px;
  resize: vertical;
  line-height: 1.45;
}

.project-modal input:focus,
.project-modal textarea:focus {
  border-color: var(--workspace-blue, #244f91);
  outline: 3px solid rgba(36, 79, 145, 0.14);
}

.project-modal-error,
.project-modal-success {
  font-size: 13px;
  font-weight: 650;
}

.project-modal-error { color: #a7362d; }
.project-modal-success { color: #17664e; }

.project-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.project-modal-actions button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--workspace-line, #dfe2df);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.project-modal-actions button[type='submit'] {
  border-color: var(--workspace-blue, #244f91);
  color: #fff;
  background: var(--workspace-blue, #244f91);
  font-weight: 750;
}

.project-modal-actions .destructive-action {
  border-color: #9e302a;
  color: #fff;
  background: #9e302a;
  font-weight: 750;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--workspace-line);
  border-top-color: var(--workspace-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.workspace-shell button,
.workspace-shell input {
  font: inherit;
}

.workspace-shell button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.workspace-shell button {
  color: inherit;
}

.workspace-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) auto;
  align-items: center;
  height: 64px;
  border-bottom: 1px solid var(--workspace-line);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: 0 1px 0 rgba(29, 37, 44, 0.02);
}

.workspace-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 20px;
  border-right: 1px solid var(--workspace-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  white-space: nowrap;
}

.workspace-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #fff;
  background: var(--workspace-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-style: italic;
}

.project-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-left: 20px;
}

.project-label,
.menu-eyebrow,
.eyebrow,
.content-eyebrow,
.nav-label {
  color: var(--workspace-faint);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 330px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.project-button:hover,
.project-button[aria-expanded='true'] {
  border-color: var(--workspace-line);
  background: var(--workspace-panel);
}

.project-button > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-menu,
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  padding: 8px;
  border: 1px solid var(--workspace-line);
  border-radius: 11px;
  background: var(--workspace-surface);
  box-shadow: 0 18px 50px rgba(28, 35, 41, 0.15);
}

.project-menu {
  left: 20px;
  width: 310px;
  max-height: min(560px, calc(100dvh - 84px));
  overflow-y: auto;
}

.project-menu .menu-eyebrow {
  display: block;
  padding: 8px 10px 7px;
}

.project-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-option:hover,
.project-option[aria-current='true'] {
  background: var(--workspace-blue-soft);
}

.project-option-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d5dbe3;
  border-radius: 7px;
  color: var(--workspace-blue);
  background: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}

.project-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.project-option strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-option small {
  color: var(--workspace-muted);
  font-size: 11px;
}

.create-project-button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--workspace-line);
  background: transparent;
  color: var(--workspace-blue) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

.create-project-button.is-destructive {
  color: #9e302a !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
}

.header-actions .language-picker {
  position: relative;
  inset: auto;
}

.header-icon-button,
.small-icon-button,
.filter-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: var(--workspace-surface);
  cursor: pointer;
}

.header-icon-button {
  width: 34px;
  height: 34px;
  color: var(--workspace-muted) !important;
}

.profile-menu-wrap {
  position: relative;
}

.avatar-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff !important;
  background: var(--workspace-blue);
  font-size: 11px !important;
  font-weight: 750 !important;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.profile-menu {
  right: 0;
  display: grid;
  gap: 4px;
  width: 230px;
  padding: 14px;
}

.profile-menu strong {
  font-size: 13px;
}

.profile-menu > span:not(.role-pill) {
  overflow: hidden;
  color: var(--workspace-muted);
  font-size: 12px;
  text-overflow: ellipsis;
}

.role-pill {
  justify-self: start;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--workspace-blue);
  background: var(--workspace-blue-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-menu button {
  margin-top: 9px;
  padding: 9px 0 0;
  border: 0;
  border-top: 1px solid var(--workspace-line);
  background: transparent;
  color: var(--workspace-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.workspace-body {
  display: grid;
  grid-template-columns: 232px 398px minmax(500px, 1fr);
  height: calc(100dvh - 64px);
}

.workspace-sidebar,
.lead-list-panel,
.lead-detail-panel {
  min-width: 0;
  min-height: 0;
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  overflow: hidden;
  border-right: 1px solid var(--workspace-line);
  background: #ebe9e3;
}

.workspace-identity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.workspace-identity:hover {
  background: rgba(255, 255, 255, 0.58);
}

.workspace-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd2cf;
  border-radius: 7px;
  background: var(--workspace-surface);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
}

.workspace-identity > span:nth-child(2) {
  display: grid;
}

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

.workspace-identity small {
  color: var(--workspace-muted);
  font-size: 10px;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  margin-top: 22px;
}

.nav-label {
  padding: 0 10px 7px;
}

.nav-label-spaced {
  margin-top: 17px;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #59636b !important;
  background: transparent;
  font-size: 12px !important;
  font-weight: 630 !important;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--workspace-ink) !important;
  background: rgba(255, 255, 255, 0.5);
}

.nav-item.is-active {
  color: var(--workspace-blue) !important;
  background: var(--workspace-surface);
  box-shadow: 0 1px 3px rgba(29, 37, 44, 0.08);
}

.nav-item em {
  color: var(--workspace-faint);
  font-size: 10px;
  font-style: normal;
}

.nav-item i {
  padding: 2px 5px;
  border-radius: 3px;
  color: var(--workspace-blue);
  background: var(--workspace-blue-soft);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profiler-card {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 13px;
  border: 1px solid #d6d4ce;
  border-radius: 9px;
  background: rgba(255, 254, 250, 0.72);
}

.profiler-card > div:first-child {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  color: var(--workspace-blue);
  font-size: 11px;
  font-weight: 750;
}

.profiler-card > div:first-child strong {
  font-size: 10px;
}

.profiler-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: #d8d9d4;
}

.profiler-progress i {
  display: block;
  width: 82%;
  height: 100%;
  background: var(--workspace-blue);
}

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

.profiler-card button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-blue);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.lead-list-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--workspace-line);
  background: var(--workspace-panel);
}

.lead-list-header {
  flex: none;
  padding: 14px 20px;
  border-bottom: 1px solid var(--workspace-line);
  background: var(--workspace-surface);
}

.section-title-row,
.detail-heading-row,
.card-title-row,
.tab-content-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-title-row h1 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.1;
}

.small-icon-button {
  width: 32px;
  height: 32px;
  flex: none;
  color: var(--workspace-muted) !important;
}

.lead-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
}

.search-input {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  color: var(--workspace-muted);
  background: var(--workspace-panel);
}

.search-input:focus-within {
  border-color: #9aacc9;
  box-shadow: 0 0 0 3px var(--workspace-blue-soft);
}

.search-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--workspace-ink);
  background: transparent;
  font-size: 12px;
}

.search-input input::placeholder {
  color: var(--workspace-faint);
}

.search-input kbd {
  padding: 1px 5px;
  border: 1px solid #d5d8d6;
  border-radius: 4px;
  color: var(--workspace-faint);
  background: #fff;
  font-family: inherit;
  font-size: 9px;
  box-shadow: 0 1px 0 #d5d8d6;
}

.filter-button {
  height: 38px;
  color: var(--workspace-muted) !important;
}

.filter-button.is-active {
  border-color: #9aacc9;
  color: var(--workspace-blue) !important;
  background: var(--workspace-blue-soft);
}

.lead-filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: var(--workspace-panel);
}

.lead-filter-panel label,
.lead-review-controls label,
.lead-edit-modal label {
  display: grid;
  gap: 4px;
  color: var(--workspace-muted);
  font-size: 9px;
  font-weight: 700;
}

.lead-filter-panel select,
.lead-review-controls select {
  min-width: 0;
  height: 32px;
  border: 1px solid var(--workspace-line);
  border-radius: 6px;
  color: var(--workspace-ink);
  background: white;
  font-size: 10px;
}

.lead-filter-panel > button,
.load-more-leads {
  min-height: 32px;
  border: 1px solid var(--workspace-line);
  border-radius: 6px;
  color: var(--workspace-blue);
  background: white;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.status-filter-row {
  display: flex;
  gap: 5px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.status-filter-row button {
  flex: none;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--workspace-muted);
  background: transparent;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.status-filter-row button:hover,
.status-filter-row button[aria-pressed='true'] {
  border-color: var(--workspace-line);
  color: var(--workspace-ink);
  background: var(--workspace-panel);
}

.discovery-status {
  position: relative;
  display: grid;
  gap: 7px;
  margin: 10px -8px 0;
  padding: 9px 10px;
  border: 1px solid #d7dde3;
  border-left: 3px solid var(--workspace-blue);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--workspace-muted);
  font-size: 10px;
  overflow: hidden;
}

.discovery-status.is-idle { border-left-color: #9aa3a9; }
.discovery-status.state-discovering,
.discovery-status.state-researching {
  border-color: #c8d7e8;
  border-left-color: var(--workspace-blue);
  background: #f6f9fc;
  box-shadow: inset 0 0 0 1px rgba(36, 79, 145, .05);
}
.discovery-status.state-blocked,
.discovery-status.state-failed,
.discovery-status.is-error { border-left-color: #a94b46; background: #fff8f7; }
.discovery-status.state-partially_succeeded,
.discovery-status.state-retryable { border-left-color: #b27b22; background: #fffaf0; }
.discovery-status.state-complete {
  border-left-color: #23775a;
  background: #f7fbf8;
}

.discovery-status.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .48) 42%, transparent 68%);
  transform: translateX(-100%);
  animation: generation-sweep 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes generation-sweep {
  to { transform: translateX(100%); }
}

.discovery-status-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.discovery-heading {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.discovery-title-line,
.discovery-meta-line,
.discovery-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.discovery-title-line {
  justify-content: space-between;
}

.discovery-status strong {
  color: var(--workspace-ink);
  font-size: 11px;
  line-height: 1.2;
}

.discovery-state {
  flex: none;
  padding: 2px 6px;
  border-radius: 999px;
  color: var(--workspace-blue);
  background: #e6edf6;
  font-size: 8px;
  text-transform: uppercase;
}

.discovery-scope {
  min-width: 0;
  overflow: hidden;
  color: var(--workspace-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.discovery-metrics span {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  gap: 1px;
  padding: 4px 3px;
  border: 1px solid #e0e5e8;
  border-radius: 7px;
  background: rgba(255, 255, 255, .62);
}

.discovery-metrics b {
  color: var(--workspace-ink);
  font-size: 13px;
  line-height: 1;
}

.discovery-metrics small {
  max-width: 100%;
  overflow: hidden;
  color: var(--workspace-muted);
  font-size: 8px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-progress { height: 4px; overflow: hidden; border-radius: 999px; background: #dbe5ee; }
.discovery-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--workspace-blue), #2fb67d);
  transition: width .25s ease;
}
.discovery-status.is-active .discovery-progress i {
  background-size: 180% 100%;
  animation: generation-progress 1.3s linear infinite;
}

@keyframes generation-progress {
  to { background-position: 180% 0; }
}

.generation-status-line {
  color: var(--workspace-ink);
  font-size: 9px;
  font-weight: 650;
}

.generation-research-row {
  display: flex;
  gap: 8px;
}

.generation-research-row span {
  padding: 4px 6px;
  border: 1px solid rgba(36, 79, 145, .14);
  border-radius: 5px;
  background: rgba(255, 255, 255, .52);
}

.generation-research-row b {
  color: var(--workspace-ink);
}
.discovery-status p { margin: 0; line-height: 1.45; }
.discovery-error { color: #8f342f; }

.discovery-status button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid #b8c3cf;
  border-radius: 6px;
  color: var(--workspace-blue);
  background: white;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.discovery-status button:disabled { opacity: .55; cursor: wait; }

.lead-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.load-more-leads {
  width: 100%;
  margin-top: 8px;
}

.lead-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  width: 100%;
  box-sizing: border-box;
  min-height: 98px;
  padding: 13px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.lead-card + .lead-card {
  margin-top: 3px;
}

.lead-card:hover {
  background: rgba(255, 254, 250, 0.7);
}

.lead-card.is-selected {
  border-color: #ccd5e2;
  background: var(--workspace-surface);
  box-shadow: 0 2px 9px rgba(29, 37, 44, 0.06);
}

.lead-avatar,
.detail-company-mark,
.contact-avatar {
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #d7d9d7;
  color: var(--workspace-blue);
  background: #f0f3f7;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.lead-avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 12px;
}

.lead-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.lead-card-top,
.lead-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.lead-card-top strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-value {
  flex: none;
  color: var(--workspace-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}

.lead-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-card-bottom {
  overflow: hidden;
}

.lead-card-bottom > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-meta {
  overflow: hidden;
  color: var(--workspace-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-card-bottom {
  margin-top: 5px;
}

.lead-card-bottom > span:last-child {
  color: var(--workspace-faint);
  font-size: 9px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

.status-contacted {
  color: #705410;
  background: #f5edcf;
}

.status-watch {
  color: var(--workspace-muted);
  background: #e9eae7;
}

.empty-leads {
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 64px 20px;
  color: var(--workspace-muted);
  text-align: center;
}

.empty-leads strong {
  color: var(--workspace-ink);
  font-family: Georgia, "Times New Roman", serif;
}

.empty-leads span {
  font-size: 11px;
}

.lead-detail-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--workspace-surface);
}

.detail-header {
  flex: none;
  padding: 24px 28px 0;
  border-bottom: 1px solid var(--workspace-line);
  background: var(--workspace-surface);
}

.detail-heading-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 32px;
}

.detail-company-mark {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  font-size: 15px;
}

.detail-eyebrow {
  display: flex;
  gap: 6px;
  color: var(--workspace-faint);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-heading-row h2 {
  margin: 3px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.08;
}

.detail-heading-row p {
  margin: 0;
  color: var(--workspace-muted);
  font-size: 10px;
}

.detail-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--workspace-line);
}

.fit-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-ring {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--workspace-surface) 58%, transparent 60%), conic-gradient(var(--workspace-green) var(--score), #dfe3e1 0);
  color: var(--workspace-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.fit-score > span:last-child {
  display: grid;
}

.fit-score strong {
  font-size: 11px;
}

.fit-score small {
  color: var(--workspace-green);
  font-size: 9px;
}

.detail-tags {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.detail-tags span {
  padding: 4px 8px;
  border: 1px solid var(--workspace-line);
  border-radius: 999px;
  color: var(--workspace-muted);
  background: var(--workspace-panel);
  font-size: 9px;
  font-weight: 650;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.primary-action,
.secondary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 10px !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.primary-action {
  border: 1px solid var(--workspace-blue);
  color: #fff !important;
  background: var(--workspace-blue);
}

.primary-action.is-planned {
  border-color: var(--workspace-green);
  background: var(--workspace-green);
}

.secondary-action {
  border: 1px solid var(--workspace-line);
  background: var(--workspace-surface);
  color: var(--workspace-ink);
  text-decoration: none;
}

.secondary-action.is-disabled,
.contact-email.is-disabled {
  color: var(--workspace-faint) !important;
  cursor: default;
}

.lead-review-controls {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 8px;
  margin-top: 12px;
}

.lead-archive-button {
  min-height: 32px;
  border: 1px solid #d9b7b4;
  border-radius: 6px;
  color: #8f342f;
  background: #fff8f7;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.lead-mutation-error,
.evidence-warning {
  display: block;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 6px;
  color: #8f342f;
  background: #fff1ef;
  font-size: 10px;
  line-height: 1.4;
}

.detail-tabs {
  display: flex;
  gap: 22px;
  margin-top: 18px;
}

.detail-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  color: var(--workspace-muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.detail-tabs button[aria-selected='true'] {
  color: var(--workspace-ink);
}

.detail-tabs button[aria-selected='true']::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--workspace-blue);
}

.detail-tabs button span {
  display: grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--workspace-panel);
  font-size: 8px;
}

.detail-scroll-area {
  flex: 1;
  overflow-y: auto;
  background: #fbfaf7;
}

.overview-content,
.tab-content,
.evidence-content {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 22px 28px 56px;
}

.evidence-content {
  display: grid;
  gap: 12px;
}

.score-explanation,
.research-section,
.score-breakdown section,
.source-list article,
.assertion-card,
.score-rule {
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  background: var(--workspace-surface);
}

.score-explanation {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.score-explanation.is-stale { border-color: #d7b164; background: #fffaf0; }
.score-explanation h3 { margin: 6px 0 0; font: 24px Georgia, serif; }
.score-explanation > span { color: var(--workspace-muted); font-size: 9px; }
.score-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.score-breakdown section { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 14px; }
.score-breakdown section > span,
.assertion-card div span,
.source-list article div span { color: var(--workspace-muted); font-size: 9px; }
.score-breakdown section p { grid-column: 1 / -1; margin: 3px 0; color: var(--workspace-muted); font-size: 10px; line-height: 1.4; }
.score-breakdown section a { grid-column: 1 / -1; }
.research-section { padding: 16px; }
.research-section h3 { margin: 4px 0 12px; font-size: 13px; }
.research-section ul { color: var(--workspace-muted); font-size: 10px; }
.assertion-list,
.source-list { display: grid; gap: 8px; }
.assertion-card,
.source-list article,
.score-rule { padding: 12px; }
.assertion-card > div,
.source-list article > div { display: flex; justify-content: space-between; gap: 10px; }
.assertion-card p,
.source-list article p,
.score-rule p { margin: 8px 0; color: var(--workspace-muted); font-size: 10px; line-height: 1.45; }
.claim-unknown { border-left: 3px solid #b27b22; }
.claim-inference { border-left: 3px solid var(--workspace-blue); }
.claim-fact { border-left: 3px solid var(--workspace-green); }
.assertion-actions,
.evidence-links { display: flex; flex-wrap: wrap; gap: 6px; }
.assertion-actions button { padding: 5px 8px; border: 1px solid var(--workspace-line); border-radius: 5px; background: white; color: var(--workspace-blue); font-size: 9px; cursor: pointer; }
.evidence-content a { display: inline-flex; align-items: center; gap: 3px; color: var(--workspace-blue); font-size: 9px; }
.missing-source { color: var(--workspace-faint); font-size: 9px; }
.score-rule { position: relative; margin-top: 8px; }
.score-rule > span { position: absolute; top: 12px; right: 12px; color: #8f342f; font-size: 9px; }
.lead-edit-modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.lead-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.summary-card,
.insight-card,
.contact-card,
.next-step-card {
  border: 1px solid var(--workspace-line);
  border-radius: 9px;
  background: var(--workspace-surface);
}

.summary-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
}

.summary-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: '';
  background: var(--workspace-blue);
}

.content-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
}

.summary-card .content-eyebrow {
  color: var(--workspace-blue);
}

.summary-card p {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.insight-card {
  padding: 17px;
}

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

.insight-card li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  color: var(--workspace-muted);
  font-size: 10px;
  line-height: 1.4;
}

.insight-card li svg {
  color: var(--workspace-green);
}

.signal-dot {
  width: 6px;
  height: 6px;
  margin: 4px 0 0 5px;
  border-radius: 50%;
  background: var(--workspace-blue);
  box-shadow: 0 0 0 3px var(--workspace-blue-soft);
}

.contact-card,
.next-step-card {
  margin-top: 12px;
  padding: 18px;
}

.card-title-row button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-blue);
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 10px;
}

.contact-person > span:nth-child(2) {
  display: grid;
}

.contact-person strong {
  font-size: 11px;
}

.contact-person small {
  color: var(--workspace-muted);
  font-size: 9px;
}

.confidence-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--workspace-green);
  font-size: 9px;
  font-weight: 700;
}

.contact-email {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--workspace-blue) !important;
  font-size: 10px !important;
  text-decoration: underline;
  text-decoration-color: #a8b9d2;
  text-underline-offset: 3px;
  cursor: pointer;
}

.next-step-callout {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
  padding: 13px;
  background: var(--workspace-blue-soft);
}

.next-step-callout > span {
  color: var(--workspace-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-style: italic;
}

.next-step-callout p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.45;
}

.message-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 14px;
  border: 1px solid var(--workspace-line);
  background: var(--workspace-line);
}

.message-guidance > div {
  padding: 13px;
  background: var(--workspace-surface);
}

.message-guidance strong {
  color: var(--workspace-green);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-guidance .avoid-guidance strong {
  color: var(--workspace-amber);
}

.message-guidance p {
  margin: 6px 0 0;
  color: var(--workspace-muted);
  font-size: 9px;
  line-height: 1.45;
}

.tab-content-heading {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--workspace-line);
}

.tab-content-heading h3 {
  margin: 3px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.tab-content-heading button {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--workspace-line);
  border-radius: 7px;
  background: var(--workspace-surface);
  color: var(--workspace-blue);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

/* Landing-aligned workspace finish */
.workspace-header {
  height: 70px;
  grid-template-columns: 248px minmax(0, 1fr) auto;
  border-bottom-color: rgba(32, 42, 39, .14);
  background: rgba(246, 243, 237, .94);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.workspace-brand {
  gap: 11px;
  padding-inline: 18px;
  border-right-color: rgba(32, 42, 39, .12);
  font-family: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.025em;
}

.workspace-brand-mark {
  position: relative;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  background: var(--workspace-ink);
  font-family: inherit;
  font-style: normal;
}

.workspace-brand-mark b { transform: translateX(1px); font-size: 16px; }
.workspace-brand-mark i { position: absolute; right: 5px; bottom: 3px; color: #ddb18e; font-size: 10px; font-style: normal; }
.workspace-body { height: calc(100dvh - 70px); grid-template-columns: 248px 410px minmax(500px, 1fr); }
.workspace-sidebar { padding: 18px 14px; border-right-color: rgba(32,42,39,.12); background: #efede7; }
.workspace-identity { padding: 10px; border-radius: 12px; }
.workspace-logo { border-color: #cfd5d1; border-radius: 11px; color: #34594d; background: #faf8f3; font-family: inherit; }
.sidebar-nav { gap: 4px; margin-top: 24px; }
.nav-label { color: #8d948f; font-size: 9px; letter-spacing: .16em; }
.nav-item { position: relative; min-height: 42px; border-radius: 11px; color: #59645f !important; font-size: 12px !important; }
.nav-item:hover { background: rgba(255,255,255,.58); }
.nav-item.is-active { color: #2f5548 !important; background: #dfe8e3; box-shadow: none; }
.nav-item.is-active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: #527568; content: ''; }
.profiler-card { border-color: #d3d7d2; border-radius: 14px; background: rgba(255,253,250,.72); }
.profiler-progress { height: 5px; background: #dce0dc; }
.profiler-progress i { border-radius: inherit; background: linear-gradient(90deg, #527568, #91aa9f); }
.project-button { border-radius: 999px; padding-inline: 13px; }
.project-button:hover, .project-button[aria-expanded='true'] { background: #ebe8e1; }
.project-menu, .profile-menu { border-color: #d4d9d4; border-radius: 16px; background: #fffdfa; box-shadow: 0 22px 60px rgba(32,42,39,.16); }
.project-option { border-radius: 11px; }
.project-option:hover, .project-option[aria-current='true'] { background: #e2ebe7; }
.avatar-button { width: 38px; height: 38px; color: #202a27 !important; background: #ddb18e; }
.header-actions .language-button { border-radius: 999px; background: transparent; }

.lead-list-panel { border-right-color: rgba(32,42,39,.13); background: #f3f1ec; }
.lead-list-header { padding: 16px 18px; background: #fffdfa; }
.search-input { height: 42px; border-color: #d6dbd6; border-radius: 12px; background: #f3f1ec; }
.search-input:focus-within { border-color: #8fa99e; box-shadow: 0 0 0 3px rgba(82,117,104,.12); }
.filter-button { height: 42px; border-radius: 12px; }
.status-filter-row button { min-height: 31px; padding-inline: 11px; }
.status-filter-row button[aria-pressed='true'] { border-color: #cdd9d3; color: #2d5145; background: #e2ebe7; }
.discovery-status { margin-top: 12px; border-color: #d7ddd9; border-left-color: #527568; border-radius: 12px; background: #f6f8f6; }
.discovery-status.state-complete { border-left-color: #527568; background: #f0f5f2; }
.discovery-state { color: #345a4d; background: #dfeae4; }
.discovery-progress { background: #dce5e0; }
.discovery-progress i { background: linear-gradient(90deg, #527568, #8eaa9e); }
.lead-list { padding: 10px; }
.lead-card { min-height: 102px; border-radius: 13px; padding: 13px; }
.lead-card:hover { background: rgba(255,253,250,.7); }
.lead-card.is-selected { border-color: #b9cbc3; background: #fffdfa; box-shadow: 0 7px 22px rgba(32,42,39,.07); }
.lead-avatar { border-color: #d1d8d4; border-radius: 11px; color: #355b4e; background: #e4ebe7; font-family: inherit; }
.lead-card-top strong { font-family: inherit; font-size: 14px; font-weight: 820; letter-spacing: -.015em; }
.score-value { color: #8a6042; font-family: inherit; font-size: 16px; font-weight: 820; }
.status-research { color: #395f52; background: #e2ebe7; }

.lead-detail-panel, .detail-header { background: #fffdfa; }
.detail-header { padding: 26px 30px 0; }
.detail-company-mark { border-color: #cbd5d0; border-radius: 14px; color: #34594d; background: #e3ebe7; font-family: inherit; }
.detail-heading-row h2 { font-family: inherit; font-size: 29px; font-weight: 820; letter-spacing: -.045em; }
.score-ring { background: radial-gradient(circle at center, #fffdfa 58%, transparent 60%), conic-gradient(#527568 var(--score), #dfe3e1 0); color: #395f52; font-family: inherit; font-weight: 800; }
.primary-action, .secondary-action { min-height: 40px; border-radius: 999px; padding-inline: 16px; }
.primary-action { border-color: #202a27; background: #202a27; }
.primary-action.is-planned { border-color: #527568; background: #527568; }
.detail-tabs { gap: 24px; }
.detail-tabs button[aria-selected='true']::after { background: #527568; }
.detail-scroll-area { background: #f6f3ed; }
.summary-card, .insight-card, .contact-card, .next-step-card,
.score-explanation, .research-section, .score-breakdown section, .source-list article, .assertion-card, .score-rule {
  border-color: #d9ddd8;
  border-radius: 14px;
  background: #fffdfa;
}
.summary-card { padding: 20px 22px; }
.summary-card::before { width: 4px; background: #527568; }
.summary-card .content-eyebrow { color: #3c6255; }
.summary-card p { font-family: inherit; font-size: 14px; line-height: 1.65; }
.next-step-callout { border-radius: 11px; background: #e4ece8; }
.next-step-callout > span, .next-step-callout p { font-family: inherit; }
.signal-dot { background: #ddb18e; box-shadow: 0 0 0 3px #f1dfd0; }
.message-guidance { border-radius: 12px; overflow: hidden; }
.tab-content-heading h3, .score-explanation h3 { font-family: inherit; font-weight: 800; letter-spacing: -.025em; }
.workspace-shell :where(button, a, input, select, textarea):focus-visible { outline-color: rgba(82,117,104,.42); }
.mobile-nav { background: rgba(246,243,237,.97); box-shadow: 0 -8px 28px rgba(32,42,39,.08); }
.mobile-nav button { border-radius: 12px; }
.mobile-nav button.is-active { color: #34594d; background: #dfe9e4; }

.collaboration-upload {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--workspace-line);
  border-radius: 7px;
  color: var(--workspace-blue);
  background: var(--workspace-surface);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.note-composer {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--workspace-line);
  border-radius: 8px;
  background: var(--workspace-panel);
}

.note-composer label {
  color: var(--workspace-muted);
  font-size: 9px;
  font-weight: 750;
}

.note-composer textarea {
  resize: vertical;
  padding: 9px;
  border: 1px solid var(--workspace-line);
  border-radius: 6px;
  color: var(--workspace-ink);
  background: white;
  font: inherit;
  font-size: 10px;
}

.note-composer > div,
.file-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.note-composer button,
.file-actions button,
.collaboration-load-more {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--workspace-line);
  border-radius: 6px;
  color: var(--workspace-blue);
  background: white;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.note-composer button:disabled,
.file-actions button:disabled { opacity: .5; cursor: not-allowed; }

.collaboration-empty {
  margin: 16px 0;
  color: var(--workspace-muted);
  font-size: 10px;
}

.outreach-content {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.outreach-heading,
.outreach-status-row,
.outreach-actions,
.outreach-approved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.outreach-heading h3 { margin: 5px 0; }
.outreach-heading p { margin: 0; color: var(--muted); }
.outreach-heading .primary-action { flex: 0 0 auto; }

.outreach-empty {
  min-height: 260px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.outreach-history { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; }
.outreach-history button {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
  padding: 7px 11px;
  color: var(--muted);
}
.outreach-history button.is-selected { border-color: #3759d7; color: #243fba; background: #eef2ff; }

.outreach-editor {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.outreach-editor > label,
.outreach-contact-grid label,
.outreach-guidance-grid label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 650;
}
.outreach-editor input:not([type='checkbox']),
.outreach-editor select,
.outreach-editor textarea {
  width: 100%;
  border: 1px solid #d7dce5;
  border-radius: 9px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}
.outreach-editor input:disabled,
.outreach-editor select:disabled,
.outreach-editor textarea:disabled { background: #f8fafc; color: #475467; opacity: 1; }
.outreach-draft { min-height: 220px; }
.outreach-contact-grid,
.outreach-guidance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outreach-contact-value { grid-column: 1 / -1; }
.outreach-confirm { display: flex !important; grid-template-columns: auto 1fr; align-items: center; }
.outreach-confirm input { width: 16px; height: 16px; }

.outreach-status {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.outreach-status.status-needs_review, .outreach-status.status-draft { background: #fff4e5; color: #9a5b00; }
.outreach-status.status-approved { background: #e7f8ef; color: #16764b; }
.outreach-status.status-rejected, .outreach-status.status-superseded { background: #f2f4f7; color: #667085; }
.outreach-status-row small { color: var(--muted); text-align: right; }

.outreach-no-send {
  border: 1px solid #f0b9b5;
  border-radius: 11px;
  background: #fff5f4;
  padding: 12px 14px;
  color: #8d2721;
}
.outreach-no-send p { margin: 5px 0 0; }
.outreach-approved { border-radius: 11px; background: #eefaf4; color: #176542; padding: 12px 14px; }
.outreach-approved span { font-size: 12px; }
.outreach-sources { border-radius: 11px; background: #f8fafc; padding: 13px 14px; }
.outreach-sources p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.outreach-feedback { border-radius: 9px; padding: 9px 11px; background: #eefaf4; color: #176542; }
.outreach-actions { justify-content: flex-start; flex-wrap: wrap; }
.outreach-actions button { border: 1px solid #d0d5dd; border-radius: 9px; background: #fff; padding: 9px 13px; font-weight: 700; }
.outreach-actions button.approve { border-color: #3759d7; background: #3759d7; color: #fff; }
.outreach-actions button.reject { color: #b42318; }
.outreach-actions button:disabled { opacity: .48; cursor: not-allowed; }
.outreach-send-boundary { display: flex; align-items: center; gap: 7px; margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .outreach-content { padding: 18px; }
  .outreach-heading, .outreach-status-row, .outreach-approved { align-items: flex-start; flex-direction: column; }
  .outreach-status-row small { text-align: left; }
  .outreach-contact-grid, .outreach-guidance-grid { grid-template-columns: 1fr; }
  .outreach-contact-value { grid-column: auto; }
}

.collaboration-load-more { margin-top: 12px; }

.activity-list,
.file-list {
  display: grid;
  margin-top: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 2px;
  border-bottom: 1px solid var(--workspace-line);
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--workspace-muted);
  background: #e9eae7;
}

.activity-icon.is-latest {
  color: var(--workspace-blue);
  background: var(--workspace-blue-soft);
}

.activity-item strong,
.file-row strong {
  font-size: 11px;
}

.activity-item p {
  margin: 3px 0 0;
  color: var(--workspace-muted);
  font-size: 9px;
}

.activity-item small {
  display: block;
  margin-top: 5px;
  color: var(--workspace-faint);
  font-size: 8px;
}

.activity-item time {
  color: var(--workspace-faint);
  font-size: 9px;
}

.file-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid var(--workspace-line);
  background: transparent;
  text-align: left;
  color: inherit;
}

.file-row:hover {
  background: var(--workspace-panel);
}

.file-type {
  display: grid;
  place-items: center;
  width: 42px;
  height: 36px;
  border-radius: 6px;
  color: var(--workspace-blue);
  background: var(--workspace-blue-soft);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.05em;
}

.file-row > span:nth-child(2) {
  display: grid;
}

.file-row small {
  color: var(--workspace-muted);
  font-size: 9px;
}

.file-actions button:last-child { color: #9b3c36; }

.workspace-shell button:focus-visible {
  outline: 3px solid rgba(36, 79, 145, 0.2);
  outline-offset: 1px;
}

@media (max-width: 1180px) {
  .workspace-header {
    grid-template-columns: 76px minmax(0, 1fr) auto;
  }

  .workspace-brand {
    justify-content: center;
    padding: 0;
  }

  .workspace-brand > span:last-child,
  .project-label {
    display: none;
  }

  .workspace-body {
    grid-template-columns: 76px 360px minmax(480px, 1fr);
  }

  .workspace-sidebar {
    padding-inline: 9px;
  }

  .workspace-identity {
    display: flex;
    justify-content: center;
    padding: 8px 0;
  }

  .workspace-identity > span:nth-child(2),
  .workspace-identity > svg,
  .nav-label,
  .nav-item span,
  .nav-item em,
  .nav-item i,
  .profiler-card {
    display: none;
  }

  .nav-item {
    display: grid;
    place-items: center;
    padding: 0;
  }

  .nav-label-spaced {
    display: block;
    width: auto;
    height: 1px;
    margin: 14px 5px 9px;
    padding: 0;
    overflow: hidden;
    background: #d5d4ce;
    color: transparent;
    font-size: 0;
  }
}

.locked-leads { position: relative; display: grid; }
.locked-lead-card { pointer-events: none; filter: blur(1.8px); opacity: .28; user-select: none; }
.locked-line { display: block; width: 56%; height: 9px; margin: 5px 0; border-radius: 999px; background: #aab4c3; }
.locked-line.is-long { width: 82%; height: 12px; }
.locked-line.is-short { width: 38%; }
.lead-subscription-callout { position: absolute; inset: 18px 14px auto; z-index: 1; display: grid; gap: 5px; border: 1px solid #cbd7f5; border-radius: 12px; padding: 14px; color: #293956; background: rgba(248, 251, 255, .96); box-shadow: 0 8px 28px rgba(30, 55, 105, .16); }
.lead-subscription-callout strong { color: #1f3778; }
.lead-subscription-callout span { color: #65758b; font-size: 12px; line-height: 1.4; }
.lead-subscription-callout button, .subscription-inline-nudge button { justify-self: start; border: 0; border-radius: 8px; padding: 8px 11px; cursor: pointer; color: #fff; background: #3155b8; font-weight: 700; }
.subscription-inline-nudge { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; border: 1px solid #cbd7f5; border-radius: 12px; padding: 14px 16px; background: #f3f6ff; }
.subscription-inline-nudge > div { display: grid; gap: 4px; }
.subscription-inline-nudge strong { color: #263d7c; }
.subscription-inline-nudge span { color: #68768b; font-size: 13px; }

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

.workspace-shell :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid rgba(49, 85, 184, .38);
  outline-offset: 2px;
}

.mobile-nav { display: none; }

.route-error {
  grid-column: 2 / -1;
  display: grid;
  min-height: 320px;
  place-content: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
}

.route-error h1,
.route-error p { margin: 0; }
.route-error p { max-width: 560px; color: var(--workspace-muted); line-height: 1.55; }
.route-error > div { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.route-error button { border: 1px solid var(--workspace-line-strong); border-radius: 9px; padding: 10px 14px; cursor: pointer; background: #fff; font-weight: 700; }
.route-error button:last-child { border-color: var(--workspace-blue); color: #fff; background: var(--workspace-blue); }

@media (max-width: 900px) {
  .header-icon-button {
    display: none;
  }

  .workspace-body {
    grid-template-columns: 68px 330px minmax(450px, 1fr);
    overflow-x: auto;
  }

  .workspace-header {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }

  .detail-header,
  .overview-content,
  .tab-content {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 720px) {
  .workspace-shell {
    height: auto;
    min-height: 100dvh;
    padding-bottom: 70px;
    overflow: visible;
  }

  .workspace-header {
    position: sticky;
    top: 0;
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .workspace-brand-mark {
    width: 28px;
    height: 28px;
  }

  .project-switcher {
    padding-left: 6px;
  }

  .project-button {
    max-width: 180px;
    padding-inline: 7px;
    font-size: 11px;
  }

  .header-actions {
    padding: 0 8px;
  }

  .workspace-body {
    display: block;
    height: auto;
    overflow: visible;
  }

  .workspace-sidebar {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    min-height: 64px;
    gap: 4px;
    padding: 7px max(8px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    overflow-x: auto;
    border-top: 1px solid var(--workspace-line);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 28px rgba(24, 34, 52, .08);
  }

  .mobile-nav button {
    display: grid;
    min-width: 40px;
    flex: 1 1 0;
    place-items: center;
    gap: 3px;
    border: 0;
    border-radius: 9px;
    padding: 5px 2px;
    cursor: pointer;
    color: var(--workspace-muted);
    background: transparent;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .mobile-nav button.is-active { color: var(--workspace-blue); background: var(--workspace-blue-soft); }

  .route-error { min-height: 60dvh; padding: 24px 18px; }

  .lead-list-panel {
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--workspace-line);
  }

  .lead-list-panel .lead-list {
    min-height: 260px;
    max-height: 420px;
  }

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

  .lead-detail-panel {
    min-height: 760px;
    overflow: visible;
  }

  .detail-header {
    padding-top: 20px;
  }

  .detail-scroll-area {
    overflow: visible;
  }

  .insight-grid,
  .message-guidance,
  .score-breakdown,
  .lead-edit-grid,
  .lead-review-controls {
    grid-template-columns: 1fr;
  }

  .detail-score-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-tags {
    justify-content: flex-start;
  }
}
.public-pricing {
  scroll-margin-top: 88px;
  padding: 80px clamp(20px, 5vw, 72px) 72px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #f2f5f1 0, var(--bg) 180px);
}

.pricing-heading { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.pricing-heading > span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pricing-heading h2 { margin: 10px 0 13px; font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.pricing-heading > p { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; }
.pricing-billing-toggle { display: inline-flex; gap: 3px; margin-top: 25px; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.pricing-billing-toggle button { min-height: 36px; border: 0; border-radius: 8px; padding: 0 13px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; }
.pricing-billing-toggle button[aria-pressed='true'] { color: #fff; background: var(--accent); }
.pricing-billing-toggle small { margin-left: 7px; color: #298269; font: inherit; }
.pricing-billing-toggle button[aria-pressed='true'] small { color: #d8f3e9; }

.pricing-state { display: grid; min-height: 250px; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.pricing-state p { margin: 0; }
.pricing-state button { min-height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 700; }
.pricing-state-error strong { color: var(--danger); }

.public-plan-grid { display: grid; max-width: 1120px; margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.public-plan-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: var(--surface); box-shadow: 0 8px 28px rgba(21, 49, 34, .055); }
.public-plan-card.is-recommended { border: 2px solid var(--accent); padding: 23px; box-shadow: 0 13px 34px rgba(31, 111, 91, .14); }
.plan-recommended-label { position: absolute; top: 0; right: 22px; transform: translateY(-50%); border-radius: 999px; padding: 5px 10px; color: #fff; background: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.public-plan-card h3 { margin: 0 0 7px; font-size: 23px; }
.plan-audience { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.public-plan-price { display: flex; min-height: 51px; align-items: baseline; margin-bottom: 7px; }
.public-plan-price strong { font-size: 38px; line-height: 1; letter-spacing: -.04em; }
.public-plan-price span { margin-left: 7px; color: var(--muted); font-size: 12px; line-height: 1.25; }
.public-plan-billing-note { min-height: 18px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.public-plan-card > button { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 750; }
.public-plan-card.is-recommended > button { border-color: var(--accent); color: #fff; background: var(--accent); }
.public-plan-includes { margin-top: 22px; padding-top: 19px; border-top: 1px solid #edf0ed; font-size: 12px; }
.public-plan-card ul { display: grid; gap: 10px; margin: 13px 0 0; padding: 0; list-style: none; color: #48534b; font-size: 13px; }
.public-plan-card li { display: grid; grid-template-columns: 17px 1fr; gap: 8px; line-height: 1.4; }
.public-plan-card li > span { display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; color: var(--accent); background: #e8f3ee; font-size: 10px; font-weight: 900; }
.public-enterprise-row { display: flex; max-width: 1120px; align-items: center; justify-content: space-between; gap: 24px; margin: 15px auto 0; border: 1px solid var(--border); border-radius: 14px; padding: 19px 22px; background: #eef3ef; }
.public-enterprise-row h3 { margin: 0 0 4px; font-size: 16px; }
.public-enterprise-row p { margin: 0; color: var(--muted); font-size: 13px; }
.public-enterprise-row button { min-height: 40px; border: 1px solid #bdc9c1; border-radius: 9px; padding: 0 15px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 700; }
.pricing-definition { max-width: 900px; margin: 19px auto 0; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

@media (max-width: 820px) {
  .public-plan-grid { grid-template-columns: 1fr; }
  .plan-audience { min-height: 0; }
}

@media (max-width: 560px) {
  .public-pricing { padding-inline: 16px; }
  .pricing-billing-toggle { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .public-enterprise-row { align-items: stretch; flex-direction: column; }
}

/* Premium public-site treatment */
.public-pricing { scroll-margin-top: 74px; padding: 126px clamp(22px, 6vw, 92px) 116px; border-top: 0; color: var(--public-ink, #11100f); background: #fffdf8; }
.pricing-heading { max-width: 790px; margin-bottom: 54px; }
.pricing-heading > span { color: var(--public-violet-dark, #39594f); font-size: 11px; font-weight: 850; letter-spacing: .15em; }
.pricing-heading h2 { margin: 15px 0 19px; font-size: clamp(42px, 5.5vw, 76px); font-weight: 820; line-height: .98; letter-spacing: -.065em; }
.pricing-heading > p { max-width: 680px; color: #68625b; font-size: 16px; line-height: 1.7; }
.pricing-billing-toggle { margin-top: 28px; border-color: rgba(17,16,15,.14); border-radius: 999px; background: #eeebe4; }
.pricing-billing-toggle button { min-height: 38px; border-radius: 999px; padding-inline: 15px; color: #6b665f; font-size: 12px; font-weight: 800; }
.pricing-billing-toggle button[aria-pressed='true'] { color: #fff; background: var(--public-ink, #11100f); }
.pricing-billing-toggle small { color: #46695d; }
.pricing-billing-toggle button[aria-pressed='true'] small { color: #e7c8ad; }
.pricing-state { color: #6b665f; }
.pricing-state button { border-color: rgba(17,16,15,.16); border-radius: 999px; color: var(--public-ink, #11100f); }
.public-plan-grid { max-width: 1160px; gap: 12px; }
.public-plan-card { overflow: hidden; border-color: rgba(17,16,15,.16); border-radius: 20px; padding: 29px; box-shadow: none; }
.public-plan-card::after { position: absolute; right: -45px; bottom: -65px; width: 150px; height: 150px; border: 1px solid rgba(17,16,15,.08); border-radius: 50%; content: ''; }
.public-plan-card.is-recommended { border: 0; padding: 30px; color: #fff; background: var(--public-ink, #11100f); box-shadow: 0 20px 45px rgba(17,16,15,.17); }
.public-plan-card.is-recommended::after { border-color: rgba(221,177,142,.24); }
.plan-recommended-label { top: 0; right: 24px; transform: none; border-radius: 0 0 10px 10px; padding: 7px 11px; color: #202a27; background: var(--public-lime, #ddb18e); font-size: 9px; font-weight: 900; }
.public-plan-card h3 { margin-bottom: 8px; letter-spacing: -.035em; }
.plan-audience { min-height: 44px; margin-bottom: 25px; color: #777169; font-size: 12px; }
.is-recommended .plan-audience { color: #9d99a1; }
.public-plan-price { min-height: 56px; }
.public-plan-price strong { font-size: 43px; letter-spacing: -.055em; }
.public-plan-price span { color: #777169; font-size: 10px; }
.is-recommended .public-plan-price span { color: #918d95; }
.public-plan-billing-note { margin-bottom: 20px; color: #89837b; font-size: 10px; }
.public-plan-card > button { position: relative; z-index: 1; min-height: 44px; border-color: rgba(17,16,15,.2); border-radius: 999px; background: transparent; font-weight: 850; }
.public-plan-card.is-recommended > button { border-color: var(--public-lime, #ddb18e); color: #202a27; background: var(--public-lime, #ddb18e); }
.public-plan-includes { position: relative; z-index: 1; margin-top: 24px; padding-top: 21px; border-color: rgba(17,16,15,.1); font-size: 11px; }
.is-recommended .public-plan-includes { border-color: rgba(255,255,255,.11); }
.public-plan-card ul { position: relative; z-index: 1; gap: 11px; color: #514c46; font-size: 12px; }
.is-recommended ul { color: #c2bec5; }
.public-plan-card li > span { color: #fff; background: var(--public-violet, #527568); }
.is-recommended li > span { color: #202a27; background: var(--public-lime, #ddb18e); }
.public-enterprise-row { max-width: 1160px; border-color: rgba(17,16,15,.14); border-radius: 18px; padding: 22px 25px; background: #f0ede6; }
.public-enterprise-row h3 { letter-spacing: -.02em; }
.public-enterprise-row p { color: #716b64; font-size: 12px; }
.public-enterprise-row button { border-color: var(--public-ink, #11100f); border-radius: 999px; color: #fff; background: var(--public-ink, #11100f); font-weight: 800; }
.pricing-definition { color: #88827a; font-size: 10px; }

@media (max-width: 560px) {
  .public-pricing { padding: 90px 17px 84px; }
  .pricing-heading h2 { font-size: clamp(39px, 12vw, 58px); }
  .public-plan-card { padding: 25px; }
  .public-plan-card.is-recommended { padding: 26px; }
}
