/* Approved EBEN research layout. Scoped to D2C so the other Mesper apps retain their shell. */
.d2c-app.d2c-app-shell {
  --d2c-canvas: #f5f6fa;
  --d2c-surface: #fff;
  --d2c-ink: #202338;
  --d2c-muted: #606579;
  --d2c-line: #dfe2ec;
  --d2c-brand: #4340c4;
  --d2c-brand-soft: #eeedfc;
  --d2c-blue: #185ea6;
  --d2c-blue-soft: #eaf2fc;
  --d2c-violet: #7445aa;
  --d2c-violet-soft: #f3ecfa;
  --d2c-warning: #80591e;
  --d2c-warning-soft: #fff4de;
  --d2c-positive: #176344;
  --d2c-positive-soft: #e9f6ef;
  --font-body: "Montserrat", Arial, sans-serif;
  background: var(--d2c-canvas);
  color: var(--d2c-ink);
  font-size: 14px;
}

.d2c-app.d2c-app-shell .work-app-header {
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  flex-basis: 64px;
  background: var(--d2c-surface);
  border-color: var(--d2c-line);
}

.d2c-app.d2c-app-shell .d2c-main {
  background: var(--d2c-canvas);
  color: var(--d2c-ink);
  padding: 32px 32px 64px;
  min-width: 0;
  scroll-padding-top: 24px;
}

.d2c-app.d2c-app-shell .d2c-sidebar {
  background: var(--d2c-surface);
  border-color: var(--d2c-line);
}

.d2c-app.d2c-app-shell .work-sidebar-heading {
  background: var(--d2c-surface);
  border-color: var(--d2c-line);
}

.d2c-app.d2c-app-shell .d2c-shop-identity {
  padding: 0 0 20px;
}

.d2c-app.d2c-app-shell .d2c-shop-identity strong {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.d2c-app.d2c-app-shell .d2c-shop-identity span {
  display: block;
  margin-top: 4px;
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.d2c-app.d2c-app-shell .d2c-sidebar nav,
.d2c-app.d2c-app-shell .d2c-mobile-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.d2c-app.d2c-app-shell .d2c-sidebar nav button,
.d2c-app.d2c-app-shell .d2c-mobile-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--d2c-muted);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.d2c-app.d2c-app-shell .d2c-sidebar nav button img,
.d2c-app.d2c-app-shell .d2c-mobile-sidebar nav button img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.d2c-app.d2c-app-shell .d2c-sidebar nav button[aria-current="page"],
.d2c-app.d2c-app-shell .d2c-mobile-sidebar nav button[aria-current="page"] {
  background: var(--d2c-brand-soft);
  color: var(--d2c-brand);
}

.d2c-app.d2c-app-shell .d2c-sidebar nav button:hover,
.d2c-app.d2c-app-shell .d2c-mobile-sidebar nav button:hover {
  border-color: var(--d2c-line);
  background: var(--d2c-canvas);
}

.d2c-sidebar-management {
  margin-top: 20px;
  padding-top: 8px;
  border-top: 1px solid var(--d2c-line);
}

.d2c-sidebar-management > summary {
  display: list-item;
  min-height: 44px;
  padding: 12px 2px;
  color: var(--d2c-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.d2c-sidebar-management[open] > summary {
  margin-bottom: 8px;
}

.d2c-app.d2c-app-shell .d2c-title-row.is-research {
  align-items: center;
  padding: 0;
  margin-bottom: 24px;
  border: 0;
  gap: 16px;
}

.d2c-title-row.is-research h1,
.d2c-app.d2c-app-shell .d2c-title-row.is-research h1 {
  color: var(--d2c-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
}

.d2c-title-row.is-research .d2c-subtitle {
  margin-top: 4px !important;
  color: var(--d2c-muted);
  font-size: 12px;
  line-height: 1.6;
}

.d2c-app.d2c-app-shell .d2c-button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--d2c-line);
  border-radius: 8px;
  background: var(--d2c-surface);
  box-shadow: none;
  color: var(--d2c-ink);
  white-space: normal;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.d2c-app.d2c-app-shell .d2c-button:hover:not(:disabled) {
  border-color: #b5b8cb;
  background: #fafaff;
}

.d2c-app.d2c-app-shell .d2c-button.primary {
  border-color: var(--d2c-brand);
  background: var(--d2c-brand);
  color: #fff;
}

.d2c-app.d2c-app-shell .d2c-button.primary:hover:not(:disabled) {
  border-color: #3633a9;
  background: #3633a9;
}

.d2c-app.d2c-app-shell .d2c-button.danger {
  color: #a82b35;
}

.d2c-app.d2c-app-shell :focus-visible {
  outline: 3px solid var(--d2c-blue);
  outline-offset: 3px;
}

.d2c-app.d2c-app-shell .d2c-results-toolbar {
  align-items: flex-start;
  gap: 8px 24px;
  margin: 0 0 24px;
  border: 0;
}

.d2c-results-toolbar > details {
  min-width: 0;
}

.d2c-results-toolbar > details[open] {
  flex-basis: 100%;
}

.d2c-results-toolbar > details > summary,
.d2c-research-data > summary {
  min-height: 44px;
  color: var(--d2c-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.d2c-results-toolbar .d2c-analysis-tools[open] {
  padding: 16px;
  border: 1px solid var(--d2c-line);
  border-radius: 12px;
  background: var(--d2c-surface);
}

.d2c-research {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.d2c-research > * {
  min-width: 0;
}

.d2c-product-hero {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--d2c-line);
  border-radius: 14px;
  background: var(--d2c-surface);
}

.d2c-hero-photo {
  position: relative;
  flex: 0 0 112px;
  width: 112px;
  height: 132px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.d2c-product-source {
  margin-left: auto;
  align-self: flex-start;
  flex-shrink: 0;
  text-decoration: none;
}

.d2c-hero-photo > img {
  display: block;
  width: 112px;
  height: 132px;
  object-fit: contain;
}

.d2c-hero-photo.is-eben > img,
.d2c-hero-photo[data-eben="true"] > img {
  position: absolute;
  left: -14.94%;
  top: -29.41%;
  width: 129.87%;
  height: 147.06%;
  max-width: none;
  object-fit: fill;
}

.d2c-hero-photo:empty {
  display: grid;
  place-items: center;
  background: var(--d2c-canvas);
}

.d2c-hero-copy {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.d2c-app.d2c-app-shell .d2c-hero-copy h1 {
  margin: 0;
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.4px;
}

.d2c-hero-copy > p {
  margin-top: 10px !important;
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
}

.d2c-hero-copy .d2c-row {
  align-items: flex-start;
}

.d2c-hero-metrics {
  display: flex;
  align-items: baseline;
  gap: 12px 32px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.d2c-hero-metrics > span {
  display: block;
  min-width: 0;
  color: var(--d2c-ink);
  font-size: 15px;
  line-height: 1.5;
}

.d2c-hero-metrics strong {
  font-weight: 600;
}

.d2c-research-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.d2c-research-tabs > button {
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--d2c-muted);
  white-space: normal;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.d2c-research-tabs > button[aria-selected="true"] {
  background: var(--d2c-brand-soft);
  color: var(--d2c-brand);
  font-weight: 600;
}

.d2c-research-tabs > button:hover {
  border-color: var(--d2c-line);
}

.d2c-personas-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.d2c-app.d2c-app-shell .d2c-personas-heading h2 {
  color: var(--d2c-ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.35px;
}

.d2c-personas-heading p {
  max-width: 68ch;
  color: var(--d2c-muted);
  font-size: 13px;
  line-height: 1.6;
}

.d2c-persona-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

:is(.d2c-persona-card, .d2c-persona-preview)[data-tone="natural"] {
  --persona-color: var(--d2c-brand);
  --persona-soft: var(--d2c-brand-soft);
}

:is(.d2c-persona-card, .d2c-persona-preview)[data-tone="light"] {
  --persona-color: var(--d2c-blue);
  --persona-soft: var(--d2c-blue-soft);
}

:is(.d2c-persona-card, .d2c-persona-preview)[data-tone="coverage"] {
  --persona-color: var(--d2c-violet);
  --persona-soft: var(--d2c-violet-soft);
}

.d2c-app.d2c-app-shell .d2c-persona-card {
  --persona-color: var(--d2c-brand);
  --persona-soft: var(--d2c-brand-soft);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--d2c-line);
  border-radius: 14px;
  background: var(--d2c-surface);
  box-shadow: none;
  color: var(--d2c-ink);
  text-align: left;
  transition: border-color .12s ease, box-shadow .12s ease;
}

.d2c-app.d2c-app-shell .d2c-persona-card[data-tone="light"] {
  --persona-color: var(--d2c-blue);
  --persona-soft: var(--d2c-blue-soft);
}

.d2c-app.d2c-app-shell .d2c-persona-card[data-tone="coverage"] {
  --persona-color: var(--d2c-violet);
  --persona-soft: var(--d2c-violet-soft);
}

.d2c-app.d2c-app-shell .d2c-persona-card[aria-pressed="true"] {
  padding: 19px;
  border: 2px solid var(--persona-color);
  background: var(--persona-soft);
  box-shadow: 0 1px 3px rgba(32, 35, 56, .06);
}

.d2c-app.d2c-app-shell .d2c-persona-card:hover {
  border-color: var(--persona-color);
  box-shadow: 0 2px 8px rgba(32, 35, 56, .07);
}

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

.d2c-motif {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.d2c-motif img {
  display: block;
  width: 32px;
  height: 32px;
}

.d2c-card-top .d2c-status {
  max-width: 140px;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: normal;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.d2c-card-top .d2c-status.supported {
  background: var(--d2c-positive-soft);
  color: var(--d2c-positive);
}

.d2c-card-top .d2c-status.mixed,
.d2c-card-top .d2c-status.insufficient {
  background: var(--d2c-warning-soft);
  color: var(--d2c-warning);
}

.d2c-app.d2c-app-shell .d2c-persona-card h3 {
  min-height: 52px;
  margin: 0;
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
}

.d2c-card-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 60px;
}

.d2c-share-ring {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(var(--persona-color) var(--share, 0%), var(--persona-soft) 0);
}

.d2c-share-ring::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.d2c-card-stat > div:last-child {
  flex: 1;
  min-width: 0;
}

.d2c-card-stat strong {
  display: block;
  color: var(--persona-color);
  overflow-wrap: anywhere;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.5px;
}

.d2c-card-stat p {
  margin-top: 2px !important;
  color: var(--d2c-muted);
  font-size: 12px;
  line-height: 1.45;
}

.d2c-card-need {
  min-height: 40px;
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45 !important;
}

.d2c-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--persona-color);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.d2c-card-footer img {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.d2c-persona-preview {
  --persona-color: var(--d2c-brand);
  --persona-soft: var(--d2c-brand-soft);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: stretch;
  gap: 24px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--d2c-line);
  border-radius: 14px;
  background: var(--d2c-surface);
}

.d2c-preview-finding,
.d2c-preview-test {
  min-width: 0;
}

.d2c-app.d2c-app-shell .d2c-preview-finding h3 {
  margin: 0;
  color: var(--d2c-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.25px;
}

.d2c-preview-finding > p {
  margin-top: 12px !important;
  color: var(--d2c-muted);
  font-size: 14px;
  line-height: 1.5;
}

.d2c-preview-finding blockquote {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--persona-soft);
  color: var(--d2c-ink);
}

.d2c-preview-finding blockquote > img {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.d2c-preview-finding blockquote p {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.d2c-preview-finding > .d2c-actions,
.d2c-preview-finding > footer,
.d2c-preview-finding .d2c-evidence-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.d2c-preview-finding :is(footer, .d2c-evidence-actions) > span {
  color: var(--d2c-warning);
  font-size: 12px;
  line-height: 1.5;
}

.d2c-preview-test {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  align-items: start;
  justify-items: start;
  gap: 12px 10px;
  padding: 20px;
  border-radius: 10px;
  background: var(--d2c-brand-soft);
}

.d2c-preview-test > header,
.d2c-preview-test > .d2c-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.d2c-preview-test img {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.d2c-app.d2c-app-shell .d2c-preview-test h3 {
  color: var(--d2c-brand);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.d2c-preview-test > p {
  grid-column: 1 / -1;
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.d2c-preview-test > .d2c-button {
  grid-column: 1 / -1;
  margin-top: auto;
  min-width: 190px;
}

.d2c-quality-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--d2c-warning-soft);
  color: var(--d2c-warning);
}

.d2c-quality-banner > img {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.d2c-quality-banner p {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.5;
}

.d2c-quality-banner > button {
  flex-shrink: 0;
}

.d2c-plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.d2c-plan > header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.d2c-plan-back {
  align-self: flex-start;
}

.d2c-plan > header > img {
  flex-shrink: 0;
}

.d2c-plan > header > div {
  flex: 1;
  min-width: 0;
}

.d2c-plan > header > .d2c-status {
  flex-shrink: 0;
  align-self: center;
}

.d2c-plan > header > .d2c-status.hypothesis {
  background: var(--d2c-warning-soft);
  color: var(--d2c-warning);
}

.d2c-app.d2c-app-shell .d2c-plan h1 {
  margin: 0;
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.4px;
}

.d2c-plan > header > .d2c-row {
  justify-content: flex-start;
  align-items: flex-start;
}

.d2c-app.d2c-app-shell .d2c-plan .d2c-plan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  max-width: 100%;
  margin: 0 0 6px;
  color: var(--d2c-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.d2c-plan-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.d2c-plan-steps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--d2c-brand-soft);
  color: var(--d2c-brand);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.d2c-plan-steps a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.d2c-plan-comparison,
.d2c-plan-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
}

.d2c-plan-comparison > article,
.d2c-plan-proof > article,
.d2c-plan-hypothesis {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--d2c-line);
  border-radius: 12px;
  background: var(--d2c-surface);
}

.d2c-plan-comparison > article.is-variant {
  border-color: var(--d2c-brand);
  background: var(--d2c-brand-soft);
}

.d2c-app.d2c-app-shell .d2c-plan section h2,
.d2c-app.d2c-app-shell .d2c-plan article h2 {
  margin: 0 0 10px;
  color: var(--d2c-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
}

.d2c-app.d2c-app-shell .d2c-plan .is-variant h2 {
  color: var(--d2c-brand);
}

.d2c-app.d2c-app-shell .d2c-plan > section > h2 {
  margin-bottom: 16px;
}

.d2c-app.d2c-app-shell .d2c-plan-comparison h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
}

.d2c-app.d2c-app-shell .d2c-plan-comparison .is-variant h3 {
  color: var(--d2c-brand);
}

.d2c-plan :is(article, section) > p,
.d2c-plan :is(article, section) > ul {
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.55;
}

.d2c-plan :is(article, section) > p + p {
  margin-top: 16px;
}

.d2c-plan :is(article, section) > ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.d2c-plan li + li {
  margin-top: 8px;
}

.d2c-plan-constants {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 8px;
  background: var(--d2c-positive-soft);
  color: var(--d2c-positive);
}

.d2c-plan-constants img {
  display: block;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
}

.d2c-plan-constants p {
  min-width: 0;
  color: var(--d2c-positive);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.d2c-action-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.d2c-action-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--d2c-line);
  border-radius: 12px;
  background: var(--d2c-surface);
}

.d2c-action-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.d2c-action-card > header > :first-child {
  min-width: 0;
}

.d2c-action-card header img {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.d2c-app.d2c-app-shell .d2c-action-card h3 {
  margin: 0;
  color: var(--d2c-ink);
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
}

.d2c-action-card > p {
  max-width: 90ch;
  margin-top: 16px !important;
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.55;
}

.d2c-action-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
}

.d2c-action-card > footer > :not(button) {
  color: var(--d2c-muted);
  font-size: 12px;
  line-height: 1.5;
}

.d2c-research-data {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--d2c-line);
  border-radius: 14px;
  background: var(--d2c-surface);
}

.d2c-research-data > h2,
.d2c-research-data > h3 {
  margin-bottom: 16px;
}

.d2c-research-data .d2c-coverage {
  border-radius: 8px;
}

.d2c-research-data .d2c-data-warning {
  max-width: 100ch;
  color: var(--d2c-warning);
}

.d2c-research-data .d2c-panel {
  border-color: var(--d2c-line);
  border-radius: 10px;
}

.d2c-app.d2c-app-shell .d2c-drawer {
  background: var(--d2c-surface);
}

.d2c-app.d2c-app-shell .d2c-drawer-head {
  background: var(--d2c-surface);
  border-color: var(--d2c-line);
}

.d2c-app.d2c-app-shell .d2c-drawer-body h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}

.d2c-app.d2c-app-shell .d2c-evidence {
  border-color: var(--d2c-line);
  border-radius: 10px;
  background: var(--d2c-surface);
}

.d2c-app.d2c-app-shell .d2c-evidence-meta {
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
}

@media (min-width: 1000px) {
  .d2c-app.d2c-app-shell .d2c-sidebar {
    width: 208px;
    flex: 0 0 208px;
    padding: 20px 16px;
  }
}

@media (max-width: 1140px) and (min-width: 700px) {
  .d2c-persona-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .d2c-persona-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .d2c-hero-metrics {
    gap: 8px 24px;
  }
}

@media (max-width: 999px) {
  .d2c-app.d2c-app-shell .d2c-main {
    padding: 24px 28px 60px;
  }

  .d2c-app.d2c-app-shell .work-sidebar-rail.is-mobile {
    min-height: 44px;
    height: 44px;
    flex-basis: 44px;
    padding: 6px 20px;
    background: var(--d2c-surface);
    border-color: var(--d2c-line);
  }

  .d2c-plan-comparison,
  .d2c-plan-proof {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 699px) {
  .d2c-app.d2c-app-shell .d2c-results-toolbar {
    gap: 12px;
  }

  .d2c-app.d2c-app-shell .d2c-results-toolbar > details:not([open]) {
    flex-basis: auto;
  }
  .d2c-app.d2c-app-shell .work-app-header {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    flex-basis: 56px;
  }

  .d2c-app.d2c-app-shell .d2c-main {
    padding: 20px 20px 48px;
  }

  .d2c-app.d2c-app-shell .d2c-title-row.is-research {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 20px;
  }

  .d2c-title-row.is-research > div:first-child {
    flex-basis: 100%;
  }

  .d2c-app.d2c-app-shell .d2c-results-toolbar {
    gap: 0 20px;
    margin-bottom: 20px;
  }

  .d2c-research {
    gap: 20px;
  }

  .d2c-product-hero {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
  }

  .d2c-product-source {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
  }

  .d2c-hero-photo {
    width: 72px;
    height: 100px;
    flex-basis: 72px;
  }

  .d2c-hero-photo > img {
    width: 72px;
    height: 100px;
  }

  .d2c-hero-photo.is-eben > img,
  .d2c-hero-photo[data-eben="true"] > img {
    left: -21.43%;
    top: -24.73%;
    width: 142.86%;
    height: 137.36%;
  }

  .d2c-app.d2c-app-shell .d2c-hero-copy h1 {
    font-size: 26px;
    line-height: 1.45;
  }

  .d2c-hero-copy > p {
    margin-top: 6px !important;
    font-size: 13px;
  }

  .d2c-hero-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
  }

  .d2c-hero-metrics > span {
    font-size: 12px;
    line-height: 1.45;
  }

  .d2c-hero-copy .d2c-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .d2c-research-tabs {
    gap: 6px;
  }

  .d2c-research-tabs > button {
    padding: 10px 12px;
    font-size: 12px;
  }

  .d2c-personas-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .d2c-app.d2c-app-shell .d2c-personas-heading h2 {
    font-size: 22px;
    line-height: 1.45;
  }

  .d2c-personas-heading p {
    font-size: 14px;
    line-height: 1.45;
  }

  .d2c-persona-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .d2c-app.d2c-app-shell .d2c-persona-card {
    min-height: 310px;
    padding: 20px 17px;
    border-color: var(--persona-color);
    background: var(--persona-soft);
  }

  .d2c-app.d2c-app-shell .d2c-persona-card[aria-pressed="true"] {
    padding: 19px 16px;
  }

  .d2c-persona-preview {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 20px;
  }

  .d2c-app.d2c-app-shell .d2c-preview-finding h3 {
    font-size: 19px;
  }

  .d2c-preview-test {
    padding: 18px;
  }

  .d2c-preview-test > .d2c-button {
    width: 100%;
    min-width: 0;
  }

  .d2c-quality-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
  }

  .d2c-quality-banner p {
    flex: 1 1 calc(100% - 32px);
  }

  .d2c-quality-banner > button {
    margin-left: 30px;
  }

  .d2c-plan {
    gap: 20px;
  }

  .d2c-plan > header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .d2c-plan > header > div {
    flex-basis: calc(100% - 48px);
  }

  .d2c-plan > header > .d2c-status {
    margin-left: 48px;
  }

  .d2c-app.d2c-app-shell .d2c-plan h1 {
    font-size: 22px;
    line-height: 1.45;
  }

  .d2c-plan-steps {
    gap: 8px;
  }

  .d2c-plan-steps a {
    padding: 8px;
    font-size: 11px;
  }

  .d2c-plan-comparison,
  .d2c-plan-proof {
    gap: 20px;
  }

  .d2c-plan-comparison > article,
  .d2c-plan-proof > article,
  .d2c-plan-hypothesis,
  .d2c-action-card,
  .d2c-research-data {
    padding: 20px;
  }

  .d2c-action-card > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .d2c-action-card > footer .d2c-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .d2c-app.d2c-app-shell .d2c-persona-card {
    transition: none;
  }
}

@media print {
  .d2c-app.d2c-app-shell .d2c-main {
    padding: 0;
  }

  .d2c-research,
  .d2c-plan,
  .d2c-results-toolbar {
    display: none;
  }
}

/* Project setup shares the research workspace's typography and quiet surfaces. */
.d2c-project-access,
.d2c-project-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.d2c-project-access {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--d2c-line);
}

.d2c-project-settings {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--d2c-line);
}

.d2c-app.d2c-app-shell :is(.d2c-project-access, .d2c-project-settings) .d2c-button {
  justify-content: flex-start;
  width: 100%;
  white-space: normal;
  text-align: left;
  gap: 8px;
}

.d2c-project-access .d2c-button > svg,
.d2c-project-settings .d2c-button > svg {
  flex-shrink: 0;
}

.d2c-app.d2c-app-shell .d2c-project-access .d2c-all-projects {
  padding-left: 0;
  border-color: transparent;
  background: transparent;
  color: var(--d2c-muted);
}

.d2c-project-access .d2c-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--d2c-muted);
}

.d2c-project-access select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 24px 10px 10px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--d2c-line);
  border-radius: 8px;
  color: var(--d2c-ink);
  background: var(--d2c-surface);
}

.d2c-project-settings .d2c-footnote a {
  color: var(--d2c-muted);
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.6;
  text-underline-offset: 3px;
}

.d2c-project-home {
  width: 100%;
  max-width: 1000px;
  min-width: 0;
  margin: 8px auto 0;
}

.d2c-project-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.d2c-project-page-heading > div {
  min-width: 0;
}

.d2c-app.d2c-app-shell :is(.d2c-project-page-heading, .d2c-project-form > header) h1 {
  margin: 0;
  color: var(--d2c-ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.4px;
}

.d2c-project-page-heading p,
.d2c-project-form > header p {
  margin-top: 10px !important;
  max-width: 64ch;
  color: var(--d2c-muted);
  font-size: 14px;
  line-height: 1.65;
}

.d2c-project-page-heading > button {
  flex-shrink: 0;
  gap: 8px;
}

.d2c-project-structure {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #e1e0f4;
  border-radius: 10px;
  background: var(--d2c-brand-soft);
}

.d2c-project-structure > img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.d2c-project-structure p {
  min-width: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #474567;
}

.d2c-project-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 440px;
  margin-bottom: 20px;
  color: var(--d2c-muted);
  font-size: 12px;
  font-weight: 600;
}

.d2c-project-search input,
.d2c-project-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #d6dae6;
  border-radius: 8px;
  background: #fff;
  color: var(--d2c-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.d2c-project-search input:focus-visible,
.d2c-project-form :is(input, select, textarea):focus-visible,
.d2c-project-access select:focus-visible {
  outline: 3px solid #b5b2fa;
  outline-offset: 2px;
}

.d2c-project-list {
  overflow: hidden;
  border: 1px solid var(--d2c-line);
  border-radius: 12px;
  background: var(--d2c-surface);
}

.d2c-project-record {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  color: var(--d2c-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.d2c-project-record + .d2c-project-record {
  border-top: 1px solid var(--d2c-line);
}

.d2c-project-record:hover {
  background: #f8f8fd;
}

.d2c-project-record:focus-visible {
  outline: 3px solid var(--d2c-brand);
  outline-offset: -3px;
}

.d2c-project-initial {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--d2c-brand-soft);
  color: var(--d2c-brand);
  font-size: 14px;
  font-weight: 700;
}

.d2c-project-record > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.d2c-project-record strong {
  font-size: 15px;
  line-height: 1.5;
}

.d2c-project-record small {
  color: var(--d2c-muted);
  font-size: 12px;
  line-height: 1.5;
}

.d2c-project-open {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: var(--d2c-brand);
  font-size: 12px;
  font-weight: 600;
}

.d2c-app.d2c-app-shell .d2c-project-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--d2c-line);
  border-radius: 14px;
  background: var(--d2c-surface);
}

.d2c-project-form > fieldset {
  min-width: 0;
  margin: 0;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--d2c-line);
}

.d2c-project-form > fieldset > legend {
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  color: var(--d2c-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.d2c-project-form .d2c-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  color: var(--d2c-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.d2c-project-form .d2c-field small {
  color: var(--d2c-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.d2c-project-form textarea {
  min-height: 100px;
  resize: vertical;
}

.d2c-project-form .d2c-form-grid {
  align-items: start;
  gap: 20px;
}

.d2c-company-create {
  display: flex;
  align-self: end;
  min-height: 44px;
}

.d2c-inline-company,
.d2c-project-existing {
  min-width: 0;
  padding: 20px;
  border-radius: 10px;
  background: var(--d2c-brand-soft);
}

.d2c-inline-company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.d2c-inline-company .d2c-data-warning {
  grid-column: 1 / -1;
}

.d2c-project-existing {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.d2c-project-existing p {
  flex: 1;
  min-width: 0;
  color: #474567;
  font-size: 13px;
  line-height: 1.65;
}

.d2c-project-existing > button {
  flex-shrink: 0;
}

.d2c-project-bound {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
  padding: 16px 20px;
  border-radius: 8px;
  background: var(--d2c-canvas);
}

.d2c-project-bound strong { font-size: 15px; }
.d2c-project-bound span { color: var(--d2c-muted); font-size: 13px; }

.d2c-project-scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.d2c-project-scope > label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--d2c-line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.d2c-project-scope > label:has(input:checked) {
  border-color: var(--d2c-brand);
  background: var(--d2c-brand-soft);
  box-shadow: inset 0 0 0 1px var(--d2c-brand);
}

.d2c-project-scope input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--d2c-brand);
}

.d2c-project-scope span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.d2c-project-scope strong { font-size: 13px; line-height: 1.5; }
.d2c-project-scope small { color: var(--d2c-muted); font-size: 12px; line-height: 1.6; }
.d2c-project-form fieldset:disabled { opacity: .65; }
.d2c-project-form fieldset:disabled :is(input, select, textarea) { cursor: wait; }
.d2c-project-form .d2c-form-footer { margin: 0; gap: 12px; }

.d2c-app .work-header-start,
.d2c-app .work-identity {
  flex-shrink: 1;
  min-width: 0;
}

.d2c-app .work-switcher {
  min-width: 0;
  text-align: left;
  white-space: normal;
}

.d2c-app .work-switcher > svg {
  flex-shrink: 0;
}

.d2c-app .work-switcher > span,
.d2c-app .work-app-menu button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.d2c-app .work-app-menu button {
  text-align: left;
  white-space: normal;
}

@media (max-width: 699px) {
  .d2c-project-home { margin-top: 0; }
  .d2c-project-page-heading { flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .d2c-app.d2c-app-shell :is(.d2c-project-page-heading, .d2c-project-form > header) h1 { font-size: 26px; }
  .d2c-project-page-heading > button { width: 100%; }
  .d2c-project-structure { gap: 12px; padding: 16px; margin-bottom: 24px; }
  .d2c-project-search { max-width: none; }
  .d2c-project-record { flex-wrap: wrap; gap: 12px; padding: 18px 16px; }
  .d2c-project-initial { flex-basis: 36px; width: 36px; height: 36px; }
  .d2c-project-record > span:nth-child(2) { flex-basis: calc(100% - 48px); }
  .d2c-project-open { margin-left: 48px; }
  .d2c-app.d2c-app-shell .d2c-project-form { padding: 20px; gap: 24px; }
  .d2c-project-form > fieldset { padding-bottom: 24px; }
  .d2c-project-form > fieldset > legend { font-size: 17px; margin-bottom: 16px; }
  .d2c-project-form .d2c-form-grid,
  .d2c-inline-company,
  .d2c-project-scope { grid-template-columns: minmax(0, 1fr); }
  .d2c-project-existing { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .d2c-inline-company { padding: 16px; }
  .d2c-project-form .d2c-form-footer { flex-direction: column-reverse; align-items: stretch; }
  .d2c-project-form .d2c-form-footer > button { width: 100%; }
  .d2c-app.d2c-app-shell .work-app-header { gap: 8px; }
  .d2c-app .work-header-start { flex: 1 1 auto; }
  .d2c-app .work-identity { width: 100%; gap: 6px; }
  .d2c-app .work-app-header .work-switcher { flex: 1 1 auto; font-size: 11px; line-height: 1.35; gap: 4px; }
  .d2c-app .work-logo { flex-shrink: 0; }
  .d2c-app .work-header-actions { gap: 4px; }
  .d2c-app .work-header-widgets { gap: 4px; }
  .d2c-app .work-app-menu { max-width: calc(100vw - 24px); }
}

/* Keep research and supporting controls readable on wide desktop displays. */
.d2c-app.d2c-app-shell .d2c-main > :not(.d2c-sr-only) {
  max-width: 1440px;
  margin-inline: auto;
}
