:root {
  color-scheme: light;
  --bg: #fff;
  --sf: #fff;
  --soft: #f5f5f5;
  --tx: #111;
  --mu: #595959;
  --ac: #171717;
  --ink: #fff;
  --lv: #383838;
  --bd: #d7d7d7;
  --ok: #303030;
  --wa: #494949;
  --bad: #171717;
  --c1: #151515;
  --c2: #454545;
  --c3: #686868;
  --c4: #8a8a8a;
  --c5: #aaa;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #080808;
  --sf: #111;
  --soft: #1a1a1a;
  --tx: #f5f5f5;
  --mu: #b5b5b5;
  --ac: #f5f5f5;
  --ink: #111;
  --lv: #d1d1d1;
  --bd: #3d3d3d;
  --ok: #ddd;
  --wa: #c5c5c5;
  --bad: #fff;
  --c1: #eee;
  --c2: #bcbcbc;
  --c3: #959595;
  --c4: #777;
  --c5: #595959;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 1rem/1.45 system-ui, sans-serif;
}

.shell {
  width: min(1080px, 100% - 2rem);
  margin-inline: auto;
}

.step-head,
.nav,
.voice-row,
.report-head,
.tools {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.step-head,
.voice-row,
.report-head {
  justify-content: space-between;
}

#theme-home {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

#tm {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0.2rem 0 0.55rem;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

h3 {
  font-size: 1.14rem;
}

p {
  margin: 0.4rem 0 0.9rem;
  overflow-wrap: anywhere;
}

#purpose,
.muted,
.gp,
.meta,
.hint {
  color: var(--mu);
}

.grid,
.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.field {
  min-width: 0;
}

.field > label {
  display: block;
  margin-bottom: 0.3rem;
}

label,
.legend {
  font-weight: 610;
}

input:not([type=checkbox], [type=radio]),
select,
textarea {
  width: 100%;
  padding: 0.63rem 0.75rem;
  border: 1px solid var(--bd);
  border-radius: 0.45rem;
  background: var(--bg);
  color: var(--tx);
  font: inherit;
}

textarea {
  min-height: 6rem;
  display: block;
  resize: vertical;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  min-width: 0;
}

legend {
  padding: 0;
  max-width: 100%;
}

input[type=radio],
input[type=checkbox] {
  accent-color: var(--ac);
  flex: none;
  margin: 0;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: var(--ac);
  color: var(--ink);
  font: 600 0.88rem/1.3 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.g {
  background: var(--bg);
  color: var(--tx);
  border-color: var(--bd);
}

button:hover {
  opacity: 0.82;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}

.hint,
.error {
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.error {
  font-weight: 650;
}

.hint:empty,
.error:empty {
  display: none;
}

.card {
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 0.75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  min-width: 0;
}

.report-head,
.tools {
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

dd {
  margin: 0 0 1rem;
  white-space: pre-wrap;
}

dt {
  font-weight: 750;
}

:root {
  --error: #b42332;
}

:root[data-theme=dark] {
  --error: #ff8790;
}

.required-mark,
.error,
.field:has([aria-invalid=true]) > label,
.field:has([aria-invalid=true]) .voice-row > label,
fieldset[aria-invalid=true] > legend {
  color: var(--error);
}

[aria-invalid=true]:not(fieldset) {
  border-color: var(--error) !important;
}

[aria-invalid=true]:focus-visible {
  outline-color: var(--error);
}

fieldset[aria-invalid=true] .op {
  outline-color: var(--error);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#wizard {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vh, 2.5rem) 0;
}

.form-card {
  width: min(100%, 850px);
  margin: auto;
  background: var(--sf);
  border: 1px solid var(--bd);
  border-radius: 1rem;
  padding: clamp(1rem, 3.5vw, 2.6rem);
}

#step-tools {
  justify-content: flex-end;
  gap: 0.35rem;
}

#preview-skip {
  font-size: 0.8rem;
}

#stage,
#deep-stage {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--mu);
}

progress {
  display: block;
  width: 100%;
  height: 0.32rem;
  margin: 0.85rem 0 1.5rem;
  border: 0;
  border-radius: 3rem;
  overflow: hidden;
  background: var(--bd);
  accent-color: var(--ac);
}

progress::-webkit-progress-bar {
  background: var(--bd);
}

progress::-webkit-progress-value {
  background: var(--ac);
}

progress::-moz-progress-bar {
  background: var(--ac);
}

.step-title {
  margin-bottom: 1.1rem;
}

#question-title:focus {
  outline: none;
}

#st {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.phone {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.op {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.op label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid var(--bd);
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.op label:has(input:checked) {
  border-color: var(--ac);
  background: var(--soft);
}

.nav {
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bd);
}

.voice-row {
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.voice svg {
  width: 1rem;
  height: 1rem;
}

.voice[aria-pressed=true],
[aria-invalid=true] {
  border-color: var(--ac) !important;
}

fieldset[aria-invalid=true] .op {
  outline: 1px solid var(--error);
  outline-offset: 0.2rem;
}

@media (max-width: 480px) and (max-height: 730px) {
  #wizard {
    padding: 0.65rem 0;
  }
  .form-card:has(.op label:nth-child(8)) {
    padding: 0.8rem;
  }
  .form-card:has(.op label:nth-child(8)) progress {
    margin: 0.5rem 0 0.7rem;
  }
  .form-card:has(.op label:nth-child(8)) .step-title {
    margin-bottom: 0.45rem;
  }
  .form-card:has(.op label:nth-child(8)) #purpose {
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
  }
  .form-card:has(.op label:nth-child(8)) .op {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .form-card:has(.op label:nth-child(8)) .op label {
    min-height: 1.9rem;
    padding: 0.2rem 0.45rem;
    line-height: 1.2;
  }
  .form-card:has(.op label:nth-child(8)) .nav {
    margin-top: 0.6rem;
    padding-top: 0.5rem;
  }
}
.phone {
  grid-template-columns: minmax(6rem, 0.75fr) minmax(6.25rem, 0.75fr) minmax(0, 1.5fr);
  align-items: end;
  gap: 0.55rem;
}

.phone > div {
  min-width: 0;
}

.field:has(> select) {
  position: relative;
}

.field:has(> select)::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.8rem;
  bottom: 1.16rem;
  width: 0.45rem;
  height: 0.45rem;
  border-inline-end: 1.6px solid var(--mu);
  border-bottom: 1.6px solid var(--mu);
  transform: rotate(45deg);
  pointer-events: none;
}

.field > select {
  appearance: none;
  padding-inline-end: 1.65rem;
}

.field small {
  font-size: 0.76em;
  font-weight: 400;
  color: var(--mu);
}

.other-choice {
  margin-top: 0.65rem;
}

.marked-choices {
  font-size: 0.84rem;
  margin: 0.25rem 0 0.65rem;
}

.marked-choices ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}

.marked-choices li {
  background: var(--soft);
  border: 1px solid var(--bd);
  border-radius: 0.35rem;
  padding: 0.15rem 0.4rem;
  margin: 0;
}

.voice-wave {
  display: none;
  width: 1rem;
  height: 1rem;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.voice-wave i {
  display: block;
  width: 2px;
  height: 80%;
  border-radius: 3px;
  background: currentColor;
  transform: scaleY(0.35);
}

.voice[data-listening=true] svg {
  display: none;
}

.voice[data-listening=true] .voice-wave {
  display: flex;
}

.voice[data-listening=true] .voice-wave i {
  animation: voice-wave 0.7s ease-in-out infinite alternate;
}

.voice-wave i:nth-child(2) {
  animation-delay: -0.2s !important;
}

.voice-wave i:nth-child(3) {
  animation-delay: -0.4s !important;
}

.voice-wave i:nth-child(4) {
  animation-delay: -0.1s !important;
}

@keyframes voice-wave {
  to {
    transform: scaleY(1.05);
  }
}
@media (prefers-reduced-motion: reduce) {
  .voice[data-listening=true] .voice-wave i {
    animation: none;
    transform: scaleY(0.7);
  }
}
@media (max-width: 480px) {
  .phone {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .phone > .field:last-child {
    grid-column: 1/-1;
  }
}
#intro {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 1rem;
}

#intro-theme {
  position: absolute;
  top: 1rem;
  right: 0;
}

.intro-content {
  max-width: 730px;
  text-align: center;
}

.intro-content h1 {
  font-size: clamp(2.15rem, 6.4vw, 4rem);
  margin: 0 0 0.85rem;
  text-wrap: balance;
  overflow-wrap: normal;
}

.intro-content p {
  max-width: 52ch;
  margin: 0 auto 1.35rem;
  color: var(--mu);
}

#start {
  min-height: 2.8rem;
  padding: 0.65rem 1.2rem;
  font-size: 0.98rem;
}

#tm {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.4rem;
}

#tm svg {
  width: 1.1rem;
  height: 1.1rem;
}

.brand-signature {
  margin: 0 auto 1.35rem;
  width: clamp(5rem, 13vw, 7rem);
}

.brand-signature img {
  width: 100%;
  height: auto;
  display: block;
}

.brand-signature .brand-dark,
[data-theme=dark] .brand-signature .brand-light {
  display: none;
}

[data-theme=dark] .brand-signature .brand-dark {
  display: block;
}

.sc {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.big {
  font: 700 3.2rem/1 Sora, sans-serif;
}

.row {
  display: grid;
  grid-template-columns: 9.5rem 1fr 6.5rem;
  gap: 0.6rem;
  align-items: center;
  margin: 0.55rem 0;
  font-size: 0.9rem;
}

.tr {
  height: 14px;
  background: var(--bd);
  border-radius: 7px;
  position: relative;
}

.tr i {
  display: block;
  height: 100%;
  border-radius: 7px;
}

.tr u {
  position: absolute;
  left: 80%;
  top: -3px;
  bottom: -3px;
  border-left: 2px dashed var(--mu);
}

.gp {
  color: var(--mu);
  font-size: 0.82rem;
}

ul {
  padding-left: 1.2rem;
  margin: 0.3rem 0;
}

li {
  margin: 0.35rem 0;
}

.tg {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.05rem 0.5rem;
  margin: 0 0.3rem 0.2rem 0;
  background: var(--bd);
  color: var(--tx);
}

.tg.f {
  background: var(--ac);
  color: #fff;
}

.is {
  border-left: 4px solid var(--lv);
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin: 1.1rem 0;
}

.is p {
  margin: 0.25rem 0;
}

.is b.k {
  color: var(--mu);
  font-weight: 600;
  font-size: 0.85rem;
}

.g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.g3 > div {
  border: 1px solid var(--bd);
  border-radius: 10px;
  padding: 0.7rem;
}

.g3 h4 {
  margin: 0 0 0.3rem;
  font-family: Sora, sans-serif;
}

.cg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

svg text {
  fill: var(--tx);
  font: 11px system-ui, sans-serif;
}

#rp,
#admin {
  padding: 1.5rem 0;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1rem 0;
}

.metric {
  background: var(--soft);
  border: 1px solid var(--bd);
  border-radius: 0.6rem;
  padding: 0.8rem;
}

.metric strong {
  display: block;
  font-size: clamp(1rem, 3vw, 2rem);
}

#rp svg {
  display: block;
  max-width: 420px;
  margin: auto;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 0.8rem;
  align-items: center;
}

.row,
.chart-layout .row {
  grid-template-columns: minmax(5rem, 1fr) minmax(1.5rem, 1fr) 5rem;
}

.is {
  background: var(--soft);
  padding: 0.8rem;
  border-radius: 0.6rem;
}

.tg.f {
  color: var(--ink);
}

.meta {
  display: flex;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
}

.followup-title {
  margin-top: 1.35rem;
}

@media (max-width: 640px) {
  .chart-layout,
  .g3,
  .cg,
  #rp .grid {
    grid-template-columns: 1fr;
  }
}
#rp {
  --c1: #2563eb;
  --c2: #0f766e;
  --c3: #6d45c5;
  --c4: #a4520d;
  --c5: #b63273;
  --ok: #157345;
  --wa: #9a5208;
  --bad: #b42332;
  --lv: #2563eb;
  --chart-dot: #2563eb;
  --chart-zone: #edf8f1;
}

@media screen {
  :root[data-theme=dark] #rp {
    --c1: #79a8ff;
    --c2: #52d1ba;
    --c3: #bc9bf8;
    --c4: #f4ab61;
    --c5: #f38bbb;
    --ok: #75d6a4;
    --wa: #f1b36f;
    --bad: #ff8d95;
    --lv: #79a8ff;
    --chart-zone: #182b23;
  }
}
.score-card p {
  margin: 0.8rem 0 0;
}

.context-grid,
.issues-grid,
.next-grid {
  display: grid;
  gap: 0.75rem;
}

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

.issues-grid {
  align-items: start;
  gap: 1rem;
}

.next-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.context-item,
.next-step,
.issue,
.opportunity {
  border: 1px solid var(--bd);
  border-radius: 0.65rem;
  padding: 0.85rem;
}

.context-item > strong,
.context-item > span,
.next-step small,
.next-step a {
  display: block;
}

.context-item > strong {
  font-size: 0.86rem;
  margin-bottom: 0.3rem;
}

.context-item > span,
.next-step small {
  color: var(--mu);
  font-size: 0.9rem;
}

.context-item {
  background: var(--soft);
}

.issue {
  border-inline-start: 0.25rem solid var(--issue-color);
  scroll-margin-top: 1rem;
  padding: clamp(0.95rem, 2vw, 1.25rem);
}

.issue:target,
.issue:focus {
  outline: 2px solid var(--mu);
  outline-offset: 2px;
}

.issue-top {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.issue-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--bd);
  border-radius: 0.4rem;
  background: var(--soft);
  color: var(--tx);
  font-size: 0.85rem;
  font-weight: 650;
}

.issue-area {
  color: var(--mu);
  font-size: 0.85rem;
}

.issue h4 {
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0.2rem 0 0;
}

.next-step h4,
.opportunity h4 {
  font-size: 1rem;
  line-height: 1.25;
  margin: 0.15rem 0 0.35rem;
}

.next-step p,
.opportunity p {
  margin: 0.45rem 0;
  font-size: 0.93rem;
}

.issue-action {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.issue-outcome {
  margin: 0;
  color: var(--mu);
  font-size: 0.92rem;
}

.issue-outcome strong,
.issue-detail strong {
  display: block;
  color: var(--tx);
  font-weight: 650;
}

.issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.issue-tags .tg {
  margin: 0;
}

.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin: 0.9rem 0;
  padding: 0.7rem 0;
  border-block: 1px solid var(--bd);
  font-size: 0.88rem;
}

.issue-meta dt {
  color: var(--mu);
  font-weight: 500;
  font-size: 0.8rem;
}

.issue-meta dd {
  margin: 0;
  font-weight: 600;
  white-space: normal;
}

#rp summary {
  cursor: pointer;
  width: fit-content;
  font-size: 0.88rem;
  font-weight: 650;
}

.issue-detail p,
.score-method p {
  font-size: 0.88rem;
  color: var(--mu);
}

.score-method {
  margin-top: 0.7rem;
}

.next-step {
  border-top: 3px solid var(--lv);
}

.next-step a {
  width: fit-content;
  margin-top: 0.55rem;
  color: var(--lv);
  font-size: 0.85rem;
}

.opportunity {
  margin-bottom: 0.75rem;
  background: color-mix(in srgb, var(--c2) 9%, var(--sf));
  border-color: var(--c2);
}

.contact-report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-report p {
  margin: 0;
}

.report-link {
  display: inline-flex;
  align-items: center;
  border-radius: 0.4rem;
  padding: 0.5rem 0.75rem;
  color: var(--ink);
  background: var(--ac);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.contact-example {
  color: var(--mu);
  background: var(--soft);
  border: 1px solid var(--bd);
}

.local-market-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.local-market-header .gp {
  margin: 0;
  overflow-wrap: anywhere;
}

.local-market-criteria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.65rem;
  padding: 0;
  list-style: none;
}
.local-market-criteria li {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  background: var(--soft);
  border: 1px solid var(--bd);
  border-inline-start: 3px solid var(--c2);
  border-radius: 0.45rem;
}
.local-market-criteria span {
  color: var(--mu);
  font-size: 0.875rem;
}

@media (max-width: 600px) {
  .context-grid,
  .issues-grid {
    grid-template-columns: 1fr;
  }
}
.report-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.9rem;
}

.report-meta dt,
.report-meta dd {
  display: inline;
}

.report-meta dt {
  color: var(--mu);
  font-weight: 650;
}

.report-meta dd {
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.matrix-point {
  cursor: pointer;
  text-decoration: none;
}

.matrix-point text {
  fill: #fff;
  font-weight: 700;
  pointer-events: none;
}

.matrix-point:hover circle,
.matrix-point:focus-visible circle {
  stroke: var(--tx);
  stroke-width: 2;
}

.matrix-point:active circle {
  fill: var(--c3);
}

.report-identification {
  margin-top: 0.55rem;
}

.report-meta dt {
  font-weight: 700;
  color: var(--mu);
}

.report-brand {
  color: var(--tx);
  width: clamp(5.5rem, 14vw, 7rem);
  margin-bottom: 0.6rem;
}

.report-brand svg {
  width: 100%;
  height: auto;
}

.report-brand svg [fill=white] {
  fill: currentColor;
}

.score-benchmark {
  border-top: 1px solid var(--bd);
  padding-top: 0.8rem;
  margin-top: 0.9rem;
}

.score-benchmark p {
  margin: 0.35rem 0 0.6rem;
}

.admin-login {
  max-width: 470px;
}

.admin-login .field {
  margin: 0.75rem 0;
}

.submission {
  border-top: 1px solid var(--bd);
  padding: 0.8rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.submission span,
dd {
  overflow-wrap: anywhere;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-back {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--bd);
  border-radius: 0.4rem;
  color: var(--tx);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-heading {
  margin-bottom: 1.2rem;
}

.admin-heading h1:focus {
  outline: none;
}

.submission small {
  display: block;
  color: var(--mu);
  overflow-wrap: anywhere;
}

.submission:first-child {
  border-top: 0;
  padding-top: 0;
}

.submission:last-child {
  padding-bottom: 0;
}

.admin-answer-section h2 {
  font-size: 1.23rem;
}

.admin-answer-section dl {
  margin: 0.65rem 0 0;
}

.admin-answer {
  padding: 0.75rem 0;
}

.admin-answer + .admin-answer {
  border-top: 1px solid var(--bd);
}

.admin-answer dt {
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.admin-answer dd {
  margin: 0;
  line-height: 1.55;
}

.admin-answer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: normal;
}

.admin-answer-options li {
  margin: 0;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--bd);
  border-radius: 0.4rem;
  background: var(--soft);
  font-size: 0.88rem;
}

.deep-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.85rem;
}

.deep-field {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.deep-notes {
  grid-column: 1/-1;
}

.deep-chart {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0;
}

.deep-bar-row {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(2.25rem, 1.4fr) minmax(4.6rem, 1fr);
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.deep-bar-row b {
  text-align: right;
  overflow-wrap: anywhere;
}

.deep-bar.revenue {
  background: var(--c1);
}

.deep-bar.costs {
  background: var(--c4);
}

.deep-summary h2 {
  margin: 1.2rem 0 0.75rem;
}

.deep-summary .metric strong {
  font-size: clamp(0.95rem, 2.5vw, 1.6rem);
  overflow-wrap: anywhere;
}

.assistant-prompts,
.assistant-input {
  display: flex;
  gap: 0.45rem;
}

.assistant-prompts {
  flex-wrap: wrap;
}

.assistant-input {
  margin-top: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.assistant-input input {
  flex: 1 1 14rem;
  min-width: 0;
}

#assistant-voice-status:empty {
  display: none;
}

.assistant-log {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  max-height: min(40rem, 62dvh);
  overflow: auto;
  overflow-anchor: none;
  margin: 0.7rem 0;
}

.assistant-turn {
  border: 1px solid var(--bd);
  padding: 0.8rem 0.95rem;
  border-radius: 0.55rem;
  background: var(--soft);
  min-width: 0;
  overflow-wrap: anywhere;
}

.assistant-question {
  margin: 0 0 0.65rem;
}

.assistant-speaker {
  display: block;
  font-size: 0.82rem;
  color: var(--mu);
}

.assistant-opt-in {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
  font-size: 0.87rem;
}

.assistant-reply {
  line-height: 1.55;
}
.assistant-reply p, .assistant-reply ul, .assistant-reply ol, .assistant-reply pre, .assistant-reply blockquote, .assistant-reply h1, .assistant-reply h2, .assistant-reply h3, .assistant-reply h4, .assistant-reply h5, .assistant-reply h6 {
  margin: 0.5rem 0;
}
.assistant-reply h1, .assistant-reply h2, .assistant-reply h3, .assistant-reply h4, .assistant-reply h5, .assistant-reply h6 {
  font-size: 1rem;
}
.assistant-reply ul, .assistant-reply ol {
  padding-inline-start: 1.4rem;
}
.assistant-reply li + li {
  margin-top: 0.25rem;
}
.assistant-reply pre {
  white-space: pre-wrap;
}
.assistant-reply table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.deep-net {
  position: relative;
  height: 0.85rem;
  background: var(--soft);
  border-radius: 2rem;
  overflow: hidden;
}

.deep-net::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 50%;
  border-inline-start: 1px solid var(--mu);
}

.deep-net i {
  position: absolute;
  inset-block: 0;
  border-radius: 1rem;
}

.deep-net .positive {
  inset-inline-start: 50%;
  background: var(--ok);
}

.deep-net .negative {
  inset-inline-end: 50%;
  background: var(--bad);
}

#deep-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(1rem, 4vh, 2.5rem) 0;
}

#deep-page-title:focus {
  outline: none;
}

#deep-purpose {
  margin: 0.4rem 0 0.9rem;
}

.deep-trend {
  margin: 1rem 0;
}

#rp .deep-trend svg {
  max-width: 580px;
}

.deep-legend {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.87rem;
  color: var(--mu);
}

.deep-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.deep-legend i {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 0.2rem;
}

.deep-table {
  overflow: auto;
  margin: 0.5rem 0;
}

.deep-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.86rem;
}

.deep-table th,
.deep-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--bd);
}

.deep-summary .metrics:empty {
  display: none;
}

@media (max-width: 480px) {
  .shell {
    width: calc(100% - 1.25rem);
  }
  .form-card {
    padding: 1rem;
  }
  .step-title {
    margin-bottom: 0.75rem;
  }
  progress {
    margin-bottom: 1rem;
  }
  #st .grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .op label {
    font-size: 0.84rem;
  }
  .metric {
    padding: 0.55rem;
    font-size: 0.83rem;
  }
  .row {
    font-size: 0.8rem;
  }
}
@media (max-width: 350px) {
  .op {
    grid-template-columns: 1fr;
  }
}
@media print {
  :root,
  :root[data-theme=dark] {
    color-scheme: light;
    --bg: #fff;
    --sf: #fff;
    --soft: #fff;
    --tx: #111;
    --mu: #444;
    --bd: #ccc;
    --ac: #171717;
    --ink: #fff;
    --lv: #383838;
    --ok: #303030;
    --wa: #494949;
    --bad: #171717;
    --c1: #151515;
    --c2: #454545;
    --c3: #686868;
    --c4: #8a8a8a;
    --c5: #aaa;
  }
  * {
    print-color-adjust: exact;
  }
  .nav,
  .report-actions,
  #wizard,
  #admin,
  #theme-home {
    display: none !important;
  }
  .shell {
    width: 100%;
  }
  #rp {
    padding: 0;
  }
  .is,
  .metric,
  .cg,
  .g3 > div,
  .chart-layout {
    break-inside: avoid;
  }
  h2,
  h3 {
    break-after: avoid;
  }
}
@media print {
  #intro {
    display: none !important;
  }
}
@media print {
  .issue,
  .next-step {
    break-inside: avoid;
  }
  .issues-grid {
    display: block;
  }
  .issue {
    margin-bottom: 0.65rem;
  }
}
@media print {
  .report-interactive {
    display: none !important;
  }
}
@media print {
  #deep-page {
    display: none !important;
  }
  .deep-trend {
    break-inside: avoid;
  }
}
