.strategy-audit-root {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: #17231f;
}

.strategy-audit {
  --strategy-ink: #17231f;
  --strategy-muted: #68736e;
  --strategy-line: #dce3de;
  --strategy-green: #1f6b4f;
  --strategy-green-soft: #e9f3ec;
  --strategy-paper: #fffefb;
  display: grid;
  gap: 18px;
  padding: 4px 0 48px;
}

.strategy-audit__header,
.strategy-audit__section {
  border: 1px solid var(--strategy-line);
  border-radius: 22px;
  background: rgba(255, 254, 251, .96);
  box-shadow: 0 12px 30px rgba(34, 52, 43, .055);
}

.strategy-audit__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 30px;
}

.strategy-audit__eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--strategy-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.strategy-audit__header h1 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.045em;
}

.strategy-audit__header p,
.strategy-audit__section-copy {
  margin: 9px 0 0;
  color: var(--strategy-muted);
  line-height: 1.6;
}

.strategy-audit__sync {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--strategy-green-soft);
  color: var(--strategy-green);
  font-size: 12px;
  font-weight: 750;
}

.strategy-audit__sync span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2d9c6a;
  box-shadow: 0 0 0 4px rgba(45, 156, 106, .12);
}

.strategy-audit__section { padding: 25px 28px 28px; }

.strategy-audit__section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.strategy-audit__section-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.strategy-audit__section-head > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--strategy-ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.strategy-audit__section-head h2 { margin: 0; font-size: 20px; }
.strategy-audit__section-head small { color: var(--strategy-muted); font-weight: 650; }
.strategy-audit__section-head button,
.strategy-audit__secondary,
.strategy-audit__error button {
  border: 1px solid var(--strategy-line);
  border-radius: 11px;
  background: white;
  color: var(--strategy-ink);
  padding: 9px 13px;
  font-weight: 750;
  cursor: pointer;
}

.strategy-goal-path {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 920px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}

.strategy-goal-path__item { position: relative; min-width: 0; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; }
.strategy-goal-path::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 27px;
  bottom: 27px;
  left: 22px;
  width: 2px;
  background: linear-gradient(var(--strategy-ink), #88ac91, var(--strategy-green));
}

.strategy-goal-path__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 22px;
  height: 22px;
  margin: 0 0 0 12px;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  background: var(--strategy-ink);
  color: white;
  font-size: 8px;
  font-weight: 850;
  box-sizing: border-box;
  box-shadow: 0 0 0 1px #cdd7d0;
}

.strategy-goal-path__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 67px;
  box-sizing: border-box;
  padding: 12px 15px;
  border: 1px solid var(--strategy-line);
  border-radius: 13px;
  background: #fff;
}

.strategy-goal-path__card strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}
.strategy-goal-path__card small { display: block; color: var(--strategy-muted); line-height: 1.4; text-align: right; }
.strategy-goal-path__item:last-child .strategy-goal-path__card { border-color: #a9d2b2; background: var(--strategy-green-soft); }
.strategy-goal-path__item:last-child .strategy-goal-path__number { background: var(--strategy-green); box-shadow: 0 0 0 4px var(--strategy-green-soft); }

.strategy-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.strategy-project-card {
  padding: 17px;
  border: 1px solid var(--strategy-line);
  border-radius: 16px;
  background: white;
}
.strategy-project-card[data-decision='VALIDATE'], .strategy-project-card[data-decision='KEEP'] { border-color: #a9cbb7; }
.strategy-project-card[data-decision='PAUSE'], .strategy-project-card[data-decision='HIBERNATE'] { background: #f7f7f5; opacity: .83; }
.strategy-project-card__top { display: flex; justify-content: space-between; gap: 12px; }
.strategy-project-card h3 { margin: 9px 0 0; font-size: 17px; }
.strategy-decision { color: var(--strategy-green); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.strategy-project-card__score { color: var(--strategy-green); font-size: 18px; }
.strategy-project-card__meter { height: 5px; margin: 15px 0; overflow: hidden; border-radius: 999px; background: #edf0ed; }
.strategy-project-card__meter span { display: block; height: 100%; border-radius: inherit; background: var(--strategy-green); }
.strategy-project-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 0; }
.strategy-project-card__facts div { min-width: 0; }
.strategy-project-card__facts dt { color: var(--strategy-muted); font-size: 10px; }
.strategy-project-card__facts dd { margin: 3px 0 0; font-size: 12px; font-weight: 750; }
.strategy-project-card > p { margin: 14px 0 0; color: var(--strategy-muted); font-size: 12px; line-height: 1.55; }

.strategy-coach-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 14px; align-items: start; margin-top: 22px; }
.strategy-coach-grid--pre-audit { grid-template-columns: minmax(0, 1fr); }
.strategy-coach-grid--single { grid-template-columns: minmax(0, 1fr); }
.strategy-chat, .strategy-verdict { border: 1px solid var(--strategy-line); border-radius: 16px; background: #fff; }
.strategy-chat { display: grid; width: 100%; min-width: 0; grid-template-rows: auto minmax(250px, 48vh) auto; overflow: hidden; }
.strategy-chat__prompts { display: flex; gap: 7px; align-items: center; padding: 12px; overflow-x: auto; border-bottom: 1px solid var(--strategy-line); }
.strategy-chat__prompts button { flex: 0 0 auto; border: 1px solid #cddbd2; border-radius: 999px; background: #f6faf7; color: #315843; padding: 7px 10px; font-size: 11px; font-weight: 750; cursor: pointer; }
.strategy-chat__messages { display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow: auto; background: #fafbf9; }
.strategy-message { max-width: 82%; padding: 11px 13px; border-radius: 14px; font-size: 13px; line-height: 1.58; }
.strategy-message--ai { align-self: flex-start; border: 1px solid var(--strategy-line); background: white; }
.strategy-message--user { align-self: flex-end; background: var(--strategy-ink); color: white; }
.strategy-message__audit-card { align-self: stretch; width: auto; max-width: none; box-sizing: border-box; }
.strategy-verdict--inline { padding: 20px; border-color: #b9cfc2; box-shadow: 0 8px 24px rgba(31,107,79,.07); }
.strategy-message--pending { display: inline-flex; align-items: center; gap: 9px; }
.strategy-message__spinner { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; box-sizing: border-box; border: 2px solid #b7c8bd; border-top-color: var(--strategy-green); border-radius: 50%; animation: strategy-spin .8s linear infinite; }
.strategy-chat__form { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; border-top: 1px solid var(--strategy-line); }
.strategy-chat__form textarea { min-height: 46px; max-height: 120px; box-sizing: border-box; resize: vertical; border: 1px solid var(--strategy-line); border-radius: 11px; padding: 10px 12px; font: inherit; line-height: 1.45; }
.strategy-chat__form button, .strategy-audit__primary { border: 0; border-radius: 11px; background: var(--strategy-green); color: white; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.strategy-chat__form button:disabled, .strategy-audit__primary:disabled, .strategy-audit__secondary:disabled { opacity: .55; cursor: not-allowed; }
.strategy-audit__primary[aria-busy='true'], .strategy-audit__secondary[aria-busy='true'] { cursor: progress; }
.strategy-conclusion-panel { box-sizing: border-box; margin-top: 14px; padding: 18px; border: 1px solid #ebc978; border-radius: 15px; background: #fff9eb; }
.strategy-conclusion-panel > span { display: inline-block; margin-bottom: 10px; padding: 5px 9px; border-radius: 999px; background: #fff0c8; color: #8a5a00; font-size: 10px; font-weight: 850; }
.strategy-conclusion-panel > strong { display: block; color: var(--strategy-ink); font-size: 16px; line-height: 1.45; }
.strategy-conclusion-panel > p { margin: 8px 0 14px; color: var(--strategy-muted); font-size: 12px; line-height: 1.55; }
.strategy-conclusion-panel__actions { display: flex; gap: 9px; align-items: stretch; }
.strategy-conclusion-panel__actions .strategy-audit__primary { flex: 1 1 auto; width: auto; background: var(--strategy-ink); }
.strategy-conclusion-panel__actions .strategy-audit__secondary { flex: 0 0 auto; width: auto; }
.strategy-conclusion-panel--saved { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-color: #b9d7c7; background: var(--strategy-green-soft); }
.strategy-conclusion-panel--saved > div { display: grid; gap: 4px; }
.strategy-chat__save-status { color: var(--strategy-green); font-size: 11px; font-weight: 850; }
.strategy-conclusion-panel--saved strong { font-size: 14px; }
.strategy-conclusion-panel--saved .strategy-audit__secondary { width: auto; white-space: nowrap; }
.strategy-verdict { padding: 20px; }
.strategy-verdict__badge { display: inline-block; border-radius: 999px; background: #fff1d2; color: #7b5617; padding: 6px 9px; font-size: 10px; font-weight: 850; }
.strategy-verdict h3 { margin: 15px 0 8px; font-size: 20px; line-height: 1.35; }
.strategy-verdict > p { color: var(--strategy-muted); font-size: 13px; line-height: 1.6; }
.strategy-verdict__evidence { margin-top: 16px; font-size: 12px; line-height: 1.6; }
.strategy-verdict__evidence ul { padding-left: 18px; color: var(--strategy-muted); }
.strategy-verdict__evidence li + li { margin-top: 8px; }
.strategy-verdict__evidence small { display: block; }
.strategy-verdict__source-status { display: inline-block; vertical-align: middle; padding: 3px 7px; border-radius: 7px; font-size: 10px; font-weight: 650; background: #f2f5f2; color: var(--strategy-muted); }
.strategy-verdict__sources { padding-left: 18px; font-size: 12px; color: var(--strategy-muted); line-height: 1.6; }
.strategy-verdict__sources li + li { margin-top: 10px; }
.strategy-verdict__sources strong, .strategy-verdict__sources span { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.strategy-verdict__next { display: grid; gap: 5px; margin: 20px 0 14px; padding: 14px; border-radius: 12px; background: var(--strategy-green-soft); }
.strategy-verdict__next span { color: var(--strategy-green); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.strategy-verdict__next strong { font-size: 14px; line-height: 1.45; }
.strategy-verdict__next small { color: var(--strategy-muted); line-height: 1.45; }
.strategy-audit__primary, .strategy-audit__secondary { width: 100%; }
.strategy-audit__loading, .strategy-audit__error, .strategy-audit__empty { padding: 48px 24px; text-align: center; color: var(--strategy-muted); }
.strategy-audit__loading span { display: inline-block; width: 12px; height: 12px; margin-right: 9px; border: 2px solid #b7c8bd; border-top-color: var(--strategy-green); border-radius: 50%; animation: strategy-spin .8s linear infinite; }
.strategy-audit__error { border: 1px solid #e8c3bd; border-radius: 18px; background: #fff7f5; }
@keyframes strategy-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .strategy-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-coach-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .strategy-goal-path__card { display: block; }
  .strategy-goal-path__card small { margin-top: 5px; text-align: left; }
  .strategy-audit__header, .strategy-audit__section { padding: 20px 16px; border-radius: 16px; }
  .strategy-audit__header { flex-direction: column; }
  .strategy-audit__section-head { align-items: flex-start; }
  .strategy-project-grid { grid-template-columns: 1fr; }
  .strategy-chat__form { grid-template-columns: 1fr; }
  .strategy-message { max-width: 94%; }
}
.strategy-history { display: grid; gap: 16px; margin-top: 22px; border-left: 2px solid var(--strategy-line); padding-left: 20px; }
.strategy-history__card { position: relative; padding: 20px; border: 1px solid var(--strategy-line); border-radius: 15px; background: white; }
.strategy-history__card::before { content: ''; position: absolute; top: 24px; left: -27px; width: 10px; height: 10px; border: 2px solid var(--strategy-green); border-radius: 50%; background: white; }
.strategy-history__card time { color: var(--strategy-green); font-size: 12px; font-weight: 750; }
.strategy-history__card h3 { margin: 10px 0 16px; font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.strategy-history__comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.strategy-history__comparison section { border-radius: 11px; padding: 12px; background: #f7f9f7; }
.strategy-history__comparison section:last-child { background: var(--strategy-green-soft); }
.strategy-history__comparison strong { font-size: 11px; }
.strategy-history__comparison p, .strategy-history__card details { font-size: 13px; line-height: 1.6; }
.strategy-history__comparison small { color: var(--strategy-muted); }
.strategy-history__card details { margin-top: 16px; overflow-wrap: anywhere; }
.strategy-history__card summary { cursor: pointer; color: var(--strategy-green); font-weight: 750; }
.strategy-history__change { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--strategy-line); }
.strategy-history__change > strong { display: block; margin-bottom: 10px; }
.strategy-history__conversation { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow: auto; padding: 12px; background: #fafbf9; }
.strategy-audit__section-head button:disabled { opacity: .55; cursor: default; }
@media (max-width: 640px) { .strategy-history__comparison { grid-template-columns: 1fr; } }
.strategy-profile {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(0, 1.4fr);
  gap: 16px;
  margin-top: 22px;
}
.strategy-profile__editor,
.strategy-profile__result {
  padding: 18px;
  border: 1px solid var(--strategy-line);
  border-radius: 16px;
  background: white;
}
.strategy-profile__editor { display: flex; flex-direction: column; gap: 10px; }
.strategy-profile__editor label,
.strategy-project-dialog label { font-size: 13px; font-weight: 800; }
.strategy-profile__editor textarea,
.strategy-project-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid var(--strategy-line);
  border-radius: 11px;
  padding: 11px 12px;
  font: inherit;
  line-height: 1.55;
}
.strategy-profile__editor textarea { flex: 1 1 260px; min-height: 260px; }
.strategy-profile__editor small { color: var(--strategy-muted); line-height: 1.45; }
.strategy-profile__summary { margin: 0 0 15px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.strategy-profile__categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.strategy-profile__categories section { padding: 12px; border-radius: 12px; background: #f7f9f7; }
.strategy-profile__categories strong { font-size: 12px; }
.strategy-profile__categories ul { margin: 8px 0 0; padding-left: 18px; color: var(--strategy-muted); font-size: 12px; line-height: 1.55; }
.strategy-profile__empty { display: grid; min-height: 210px; place-content: center; text-align: center; color: var(--strategy-muted); }
.strategy-profile__empty p { max-width: 480px; line-height: 1.6; }
.strategy-project-card__description { color: var(--strategy-ink) !important; font-weight: 700; }
.strategy-project-card__goal-link { display: inline-flex; width: fit-content; margin-top: 2px; border-radius: 999px; padding: 5px 8px; background: #f3f5f3; color: var(--strategy-muted); font-size: 10px; font-weight: 750; }
.strategy-project-card__goal-link.is-linked { background: var(--strategy-green-soft); color: var(--strategy-green); }
.strategy-project-card__edit { margin-top: 13px; border: 1px solid #b9cfc2; border-radius: 9px; background: #f4faf6; color: var(--strategy-green); padding: 7px 10px; font-size: 11px; font-weight: 800; cursor: pointer; }
.strategy-project-dialog { width: min(560px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 18px; color: var(--strategy-ink); box-shadow: 0 28px 80px rgba(15, 31, 23, .28); }
.strategy-project-dialog::backdrop { background: rgba(16, 27, 22, .48); backdrop-filter: blur(3px); }
.strategy-project-dialog form { display: grid; gap: 12px; padding: 24px; }
.strategy-project-dialog h2 { margin: 0 0 6px; }
.strategy-project-dialog form > div { display: flex; justify-content: flex-end; gap: 8px; }
.strategy-project-dialog form > div button { width: auto; min-width: 88px; border: 1px solid var(--strategy-line); border-radius: 10px; padding: 9px 14px; font-weight: 800; cursor: pointer; }
.strategy-form-error { margin: 0; color: #a43b31; font-size: 12px; line-height: 1.45; }

@media (max-width: 780px) {
  .strategy-profile { grid-template-columns: 1fr; }
  .strategy-profile__categories { grid-template-columns: 1fr; }
  .strategy-conclusion-panel__actions, .strategy-conclusion-panel--saved { align-items: stretch; flex-direction: column; }
  .strategy-conclusion-panel__actions .strategy-audit__secondary, .strategy-conclusion-panel--saved .strategy-audit__secondary { width: 100%; }
}
