:root {
  --ink: #183b37;
  --muted: #627670;
  --teal: #147b6b;
  --teal-dark: #105c50;
  --mint: #e7f3ed;
  --paper: #f5f6f1;
  --white: #fff;
  --line: #dfe7df;
  --amber: #96631a;
  --amber-bg: #faf1dd;
  --red: #a13c33;
  --red-bg: #fff0ed;
  --on-accent: #fff;
  --surface-soft: #f0f4ed;
  --surface-raised: #fbfcf8;
  --input-line: #cfdbd2;
  --placeholder: #89978f;
  --selection: #c8e7d7;
  --radius: 16px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink: #e8f3ef;
  --muted: #a2b9af;
  --teal: #5bd6b4;
  --teal-dark: #83e4c8;
  --mint: #1a3a30;
  --paper: #101a18;
  --white: #182522;
  --line: #334a40;
  --amber: #f2cc83;
  --amber-bg: #382e1e;
  --red: #ffb2a7;
  --red-bg: #3b2625;
  --on-accent: #0d271f;
  --surface-soft: #1d3029;
  --surface-raised: #14221d;
  --input-line: #425c4f;
  --placeholder: #92a99e;
  --selection: #285d49;
  color-scheme: dark;
}
::selection { background: var(--selection); }
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  line-height: 1;
}
.theme-toggle span { font-size: 23px; }
.theme-toggle:hover { background: var(--mint); }
.theme-toggle[aria-pressed='true'] { border-color: var(--teal); }
.wordmark .theme-toggle { margin-left: auto; }
.auth-story .theme-toggle { color: #f2f7f0; background: transparent; border-color: #547d6d; }
.topbar-actions { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-actions .brand-select { min-width: 0; }
.topbar-actions select { min-width: 0; }
@media (max-width: 760px) {
  .topbar-actions { max-width: 65%; gap: 8px; }
  .topbar .breadcrumb { min-width: 0; }
  .topbar .breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 520px) {
  .public-shell .topbar-actions .tag { display: none; }
}
:root[data-theme='dark'] .auth-story { background: #0c2b22; }
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
a {
  color: var(--teal-dark);
  text-underline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p + p {
  margin-top: 12px;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 750;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  background: var(--white);
  padding: 12px;
  z-index: 99;
}
.skip-link:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #53b69f;
  outline-offset: 3px;
}
input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--input-line);
  border-radius: 9px;
  background: var(--white);
  padding: 10px 12px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin: 14px 0 6px;
}
label:first-child {
  margin-top: 0;
}
.field-hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 9px;
  border: 1px solid var(--line);
  padding: 10px 15px;
  min-height: 42px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  white-space: normal;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover:not(:disabled) {
  background: var(--surface-soft);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--teal);
  color: var(--on-accent);
  border-color: var(--teal);
}
.btn.primary:hover:not(:disabled) {
  background: var(--teal-dark);
}
.btn.danger {
  color: var(--red);
  border-color: var(--line);
}
.btn.text {
  background: transparent;
  border-color: transparent;
  color: var(--teal);
  padding-left: 0;
  padding-right: 0;
}
.btn.small {
  padding: 6px 11px;
  min-height: 33px;
  font-size: 12px;
}
.btn.wide {
  width: 100%;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: none;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-mark {
  display: flex;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  justify-content: center;
  align-items: center;
  color: var(--on-accent);
  background: var(--teal);
  font-size: 29px;
  font-weight: 750;
  font-style: italic;
  line-height: 1;
  flex: none;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.wordmark small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--muted);
  margin-top: 0;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: #113f38;
  color: #f2f7f0;
  padding: 48px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid #38675a;
  border-radius: 50%;
  right: -240px;
  bottom: -290px;
  box-shadow: 0 0 0 75px #1a4b411f, 0 0 0 150px #1a4b4126;
  pointer-events: none;
}
.auth-story .wordmark small {
  color: #a7c8ba;
}
.auth-story h1 {
  font-size: clamp(32px, 3.4vw, 51px);
  letter-spacing: -1.6px;
  line-height: 1.16;
  max-width: 520px;
  margin: 70px 0 20px;
}
.auth-story .intro {
  font-size: 16px;
  color: #bad1c6;
  max-width: 440px;
}
.story-points {
  display: grid;
  gap: 22px;
  margin: 40px 0;
}
.story-point {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.story-point .number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #547d6d;
  border-radius: 50%;
  color: #d7e7dc;
  flex: none;
}
.story-point p {
  color: #b5cec0;
  font-size: 13px;
  margin-top: 3px;
}
.auth-foot {
  font-size: 11px;
  color: #a6c1b1;
  z-index: 1;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 44px 8vw;
}
.auth-form {
  max-width: 410px;
  width: 100%;
}
.auth-form h2 {
  font-size: 25px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.auth-form .tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin: 25px 0;
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 12px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  border-color: var(--teal);
  color: var(--teal);
  font-weight: 650;
}
.auth-form .btn.wide {
  margin-top: 22px;
}
.auth-note {
  font-size: 11px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.7;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 239px minmax(0, 1fr);
}
.sidebar {
  background: var(--surface-raised);
  border-right: 1px solid var(--line);
  padding: 30px 19px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 239px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .wordmark {
  margin: 0 10px 36px;
}
.context-switch {
  padding: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 18px;
}
.context-switch select {
  background: transparent;
  border: 0;
  padding: 4px 0;
  min-height: 32px;
  font-size: 13px;
  font-weight: 650;
}
.context-switch .eyebrow {
  font-size: 9px;
}
.context-switch .btn {
  font-size: 11px;
  padding: 3px 0;
  min-height: 24px;
  justify-content: flex-start;
}
.nav-section {
  margin: 14px 11px 8px;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 750;
}
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  margin: 3px 0;
  border: 0;
  background: transparent;
  border-radius: 9px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
}
.nav-link:hover {
  background: var(--surface-soft);
}
.nav-link.active {
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 650;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.method-label {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  background: var(--surface-soft);
}
.method-label strong {
  display: block;
  color: var(--teal-dark);
  font-size: 11px;
  margin-bottom: 3px;
}
.method-label button {
  display: inline;
  border: 0;
  background: transparent;
  text-decoration: underline;
  padding: 0;
  color: inherit;
  font: inherit;
}
.account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 0;
  min-width: 0;
}
.avatar {
  width: 31px;
  height: 31px;
  background: var(--amber-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 135px;
  font-size: 11px;
}
.account .logout {
  font-size: 10px;
  color: var(--muted);
  border: 0;
  background: none;
  padding: 0;
}
.workspace {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 550;
}
.brand-select {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  max-width: 280px;
}
.brand-select select {
  background: transparent;
  min-height: 36px;
  font-size: 12px;
  padding: 5px 10px;
}
.mobile-menu {
  display: none;
}
.content {
  padding: 34px 43px 58px;
  max-width: 1440px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.heading-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  padding: 4px 9px;
  background: var(--mint);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1px;
  color: var(--teal-dark);
  white-space: nowrap;
}
.tag:before {
  content: '';
  width: 5px;
  height: 5px;
  display: block;
  border-radius: 50%;
  background: currentColor;
}
.tag.warning {
  background: var(--amber-bg);
  color: var(--amber);
}
.tag.error {
  background: var(--red-bg);
  color: var(--red);
}
.tag.neutral {
  background: var(--surface-soft);
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 20px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  min-width: 0;
}
.card + .card,
.section-gap {
  margin-top: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.card-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 175px;
}
.metric-card .eyebrow {
  letter-spacing: 0.8px;
  font-size: 10px;
}
.metric-value {
  font-size: 42px;
  letter-spacing: -1.7px;
  font-weight: 600;
  line-height: 1.1;
  margin: 17px 0 10px;
}
.metric-caption {
  font-size: 11px;
  color: var(--muted);
}
.metric-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--teal);
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.metric-card.featured {
  background: #173f37;
  border-color: #173f37;
  color: #edf7ef;
}
.metric-card.featured .eyebrow,
.metric-card.featured .metric-caption {
  color: #b7cec1;
}
.metric-card.featured .metric-icon {
  background: #355d4e;
  color: #c4e7c9;
}
.metric-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.featured .metric-foot {
  border-color: #365b4c;
  color: #b7cec1;
}
.notice {
  background: var(--mint);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 15px 18px;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}
.notice.warning {
  background: var(--amber-bg);
  border-color: var(--line);
  color: var(--amber);
}
.notice.error {
  background: var(--red-bg);
  border-color: var(--line);
  color: var(--red);
}
.notice .icon {
  margin-top: 1px;
}
.notice strong {
  display: block;
  margin-bottom: 3px;
  font-weight: 650;
}
.notice p {
  margin: 0;
}
.notice .btn {
  margin-top: 10px;
}
.setup {
  padding: 32px 30px;
  background: var(--surface-soft);
  border-color: var(--line);
  position: relative;
}
.setup h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 8px 0;
}
.setup > p {
  color: var(--muted);
  max-width: 580px;
  font-size: 13px;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 0;
}
.setup-step {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.setup-step .step-n {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 7px;
}
.setup-step p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.setup-step.done .step-n {
  color: var(--teal);
}
.optional-settings {
  margin-top: 18px;
}
.optional-settings summary {
  cursor: pointer;
  color: var(--teal);
  padding: 10px 0;
}
.optional-settings[open] summary {
  margin-bottom: 12px;
}
.getting-started ol {
  padding-left: 22px;
  margin: 20px 0;
}
.getting-started li {
  margin-bottom: 16px;
  padding-left: 4px;
}
.getting-started li p {
  color: var(--muted);
  margin-top: 4px;
}
.billing-card.requested-plan {
  border-color: var(--teal);
}
.table-wrap {
  overflow-x: auto;
  margin: 0 -3px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
thead {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
th {
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td .btn {
  font-size: 11px;
}
td .muted {
  font-size: 11px;
}
.empty {
  padding: 35px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
}
.empty .icon {
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
}
.empty p {
  max-width: 430px;
  font-size: 12px;
}
.empty .btn {
  margin-top: 5px;
}
.engine-row {
  display: grid;
  grid-template-columns: 120px 1fr 55px;
  gap: 13px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.engine-row:last-child {
  border: 0;
}
.engine-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.engine-symbol {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 750;
}
.bar {
  height: 6px;
  background: var(--surface-soft);
  border-radius: 10px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: #65a989;
  border-radius: 10px;
}
.engine-percent {
  text-align: right;
  font-size: 12px;
  font-weight: 650;
}
.engine-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.section-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.question-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.question-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 155px 35px;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
}
.question-row textarea {
  min-height: 62px;
  font-size: 12px;
}
.question-row select {
  font-size: 11px;
}
.question-number {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.question-row .remove {
  border: 0;
  color: var(--muted);
  background: none;
  min-height: 36px;
  font-size: 19px;
}
.disclosure {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: var(--white);
}
.disclosure + .disclosure {
  margin-top: 12px;
}
.disclosure summary {
  cursor: pointer;
  padding: 17px 19px;
  font-size: 12px;
  font-weight: 550;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.disclosure summary:after {
  content: '+';
  font-size: 20px;
  color: var(--muted);
}
.disclosure[open] summary:after {
  content: '−';
}
.disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}
.disclosure-body {
  padding: 19px;
}
.answer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink);
  max-height: 400px;
  overflow: auto;
  background: var(--surface-soft);
  border: 1px solid var(--surface-soft);
  border-radius: 10px;
  padding: 18px;
  margin-top: 14px;
}
.source-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-left: 17px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
}
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters select {
  max-width: 245px;
  font-size: 12px;
}
.filters label {
  margin: 0;
  font-size: 11px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 12px;
}
.notifications {
  position: fixed;
  bottom: 22px;
  right: 25px;
  max-width: 440px;
  width: calc(100% - 40px);
  z-index: 100;
  display: grid;
  gap: 10px;
}
.toast {
  background: #173f37;
  color: #f2f7ee;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 5px 20px #172b2726;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  animation: slide-in 0.2s;
}
.toast.error {
  background: #923e32;
}
.toast button {
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  font-size: 18px;
  padding: 0 2px;
}
.boot {
  height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  color: var(--muted);
}
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.billing-card .price {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 20px 0 5px;
}
.billing-card .price small {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.billing-card ul {
  padding-left: 16px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 9px;
}
.billing-card.selected {
  border: 2px solid var(--teal);
  background: var(--surface-soft);
}
.quota-row {
  margin: 17px 0;
  font-size: 12px;
}
.quota-row .flex-between {
  margin-bottom: 8px;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.line-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.content-footer {
  margin-top: 30px;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 15px;
  justify-content: space-between;
}
.member-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
  margin: 0;
}
.checkbox input {
  width: 16px;
  min-height: 16px;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
  max-width: 580px;
  width: calc(100% - 30px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 16px 80px #142b2740;
}
.dialog::backdrop {
  background: #0c282b77;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.close {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 5px;
  font-size: 25px;
}
.mobile-overlay {
  display: none;
}
.action-editor {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  min-height: 260px;
  white-space: pre;
}
.draft-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.draft-compare .answer-text {
  margin: 0;
  max-height: 330px;
}
.status-line {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.skeleton {
  height: 8px;
  background: var(--surface-soft);
  border-radius: 5px;
  width: 85%;
  margin: 12px 0;
}
.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  text-decoration: underline;
  color: var(--teal-dark);
  font: inherit;
}
.legal {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.progress-track {
  height: 5px;
  border-radius: 4px;
  background: var(--surface-soft);
  overflow: hidden;
  margin-top: 16px;
}
.progress-track span {
  height: 100%;
  background: #579d79;
  display: block;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}
.no-wrap {
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .metric-card {
    min-height: 195px;
  }
}
@media (max-width: 1150px) {
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .shell {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    width: 215px;
    padding: 25px 13px;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 38px 5vw;
  }
  .auth-main {
    padding: 38px 6vw;
  }
  .page-heading {
    flex-wrap: wrap;
  }
  .grid.three {
    gap: 12px;
  }
  .metric-card {
    padding: 18px;
  }
  .question-row {
    grid-template-columns: 22px 1fr 130px 25px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .shell.menu-open .sidebar {
    transform: translateX(0);
  }
  .shell.menu-open .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: #173f3766;
    z-index: 19;
    border: 0;
  }
  .workspace {
    width: 100%;
  }
  .mobile-menu {
    display: flex;
    padding: 7px;
    background: transparent;
    border: 0;
    color: var(--ink);
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
    gap: 10px;
  }
  .breadcrumb {
    font-size: 11px;
  }
  .breadcrumb > span {
    display: none;
  }
  .brand-select {
    max-width: 185px;
  }
  .content {
    padding: 25px 18px 40px;
  }
  .page-heading {
    gap: 18px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 26px;
  }
  .heading-actions {
    width: 100%;
  }
  .heading-actions > .btn {
    flex: 1;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .metric-card {
    min-height: 0;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .metric-top {
    grid-column: 1;
  }
  .metric-value {
    grid-column: 2;
    grid-row: 1/3;
    margin: 0 0 0 14px;
    align-self: center;
    font-size: 34px;
  }
  .metric-icon {
    display: none;
  }
  .metric-caption {
    grid-column: 1;
  }
  .metric-foot {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .card {
    padding: 20px;
  }
  .setup {
    padding: 26px 22px;
  }
  .setup-steps {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 20px;
  }
  .setup-step {
    padding-top: 12px;
  }
  .setup-step .step-n {
    display: inline;
    margin-right: 7px;
  }
  .setup-step h3 {
    display: inline;
    font-size: 13px;
  }
  .setup-step p {
    margin-top: 4px;
  }
  .auth {
    display: flex;
    flex-direction: column;
  }
  .auth-story {
    min-height: auto;
    padding: 18px 25px;
  }
  .auth-story > div:not(.wordmark),
  .auth-story .auth-foot {
    display: none;
  }
  .auth-story h1 {
    font-size: 31px;
    margin: 34px 0 12px;
  }
  .auth-story .intro {
    font-size: 14px;
  }
  .story-points {
    display: none;
  }
  .auth-foot {
    margin-top: 25px;
    font-size: 10px;
  }
  .auth-main {
    padding: 25px;
    align-items: start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .question-row {
    grid-template-columns: 22px 1fr 25px;
    padding: 10px;
    gap: 8px;
  }
  .question-row textarea {
    grid-column: 2;
    grid-row: 1/3;
  }
  .question-row select {
    grid-column: 2;
    grid-row: 3;
    font-size: 11px;
    min-height: 34px;
  }
  .question-row .remove {
    grid-column: 3;
    grid-row: 1;
  }
  .question-number {
    align-self: start;
    margin-top: 9px;
  }
  .draft-compare {
    grid-template-columns: 1fr;
  }
  .notifications {
    bottom: 12px;
    right: 12px;
    width: calc(100% - 24px);
  }
  .content-footer {
    flex-direction: column;
    gap: 5px;
  }
  .filters select {
    max-width: 100%;
  }
  .engine-row {
    grid-template-columns: 110px 1fr 40px;
  }
  .dialog {
    padding: 23px;
  }
  .table-wrap {
    margin: 0 -10px;
  }
  .billing-card .price {
    font-size: 28px;
  }
  .account-name {
    max-width: 125px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep adjacent cards aligned when they share a grid row. */
.grid > .card {
  margin-top: 0;
}
.grid.section-gap + .card {
  margin-top: 22px;
}
.public-shell .content {
  max-width: 1160px;
}
.public-shell .topbar {
  max-width: 1160px;
  margin: auto;
}
[aria-busy='true'] .heading-actions::after {
  content: 'Chargement…';
  font-size: 11px;
  color: var(--muted);
  align-self: center;
}

/* The complete navigation and logout remain reachable on short screens. */
.sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar > .wordmark,
.sidebar > .context-switch,
.sidebar > nav,
.sidebar-bottom {
  flex-shrink: 0;
}
.active-brands-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.active-brand-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.active-brand-choice .checkbox {
  min-width: 0;
}
.recommendation-item + .recommendation-item {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.recommendation-item h3 {
  margin: 12px 0 8px;
}
.recommendation-item details {
  margin: 12px 0;
}
.recommendation-item summary {
  cursor: pointer;
  font-weight: 600;
}
.recommendation-item .button-row {
  flex-wrap: wrap;
}
