:root {
  --black: #111;
  --ink: #181818;
  --muted: #717171;
  --line: #e8e8e5;
  --paper: #f7f7f4;
  --white: #fff;
  --red: #e32329;
  --red-dark: #be1117;
  --soft-red: #fff1f1;
  --green: #20865b;
  --shadow: 0 24px 70px rgba(20, 20, 18, 0.09);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}
.ambient-a {
  width: 320px;
  height: 320px;
  background: var(--red);
  right: -130px;
  top: 20%;
}
.ambient-b {
  width: 300px;
  height: 300px;
  background: #d8be87;
  left: 22%;
  bottom: -170px;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 38px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  background: rgba(247, 247, 244, 0.86);
  backdrop-filter: blur(18px);
}
.brand img {
  width: 118px;
  display: block;
}
.draft-state {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.draft-dot {
  width: 7px;
  height: 7px;
  background: #51a576;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(81, 165, 118, 0.12);
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  margin-left: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
}
.icon-button:hover {
  background: #ecece8;
}
.icon-button svg {
  width: 18px;
  fill: none;
  stroke: #777;
  stroke-width: 1.7;
}
.app-shell {
  min-height: 100vh;
  padding-top: 76px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.sidebar {
  position: fixed;
  top: 76px;
  bottom: 0;
  width: 300px;
  padding: 42px 34px 24px;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.eyebrow,
.step-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
}
.side-intro h1 {
  font:
    700 37px/1.02 "Manrope",
    sans-serif;
  letter-spacing: -0.055em;
  margin: 12px 0 6px;
}
.side-intro h1 em,
.step-heading h2 em,
.report-hero h2 em {
  font-style: normal;
  color: var(--red);
}
.side-intro p {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 9px;
  color: #999;
  margin: 0;
}
.progress-ring {
  --p: 10;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 28px 0;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), #e5e5e1 0);
  position: relative;
}
.progress-ring:before {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--paper);
  border-radius: 50%;
}
.progress-ring div {
  position: relative;
  text-align: center;
}
.progress-ring strong {
  font: 700 17px "Manrope";
  display: block;
}
.progress-ring span {
  font-size: 8px;
  color: #999;
  text-transform: uppercase;
}
.step-nav {
  display: grid;
  gap: 2px;
}
.nav-step {
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 9px;
  border-radius: 8px;
  color: #aaa;
  font: 500 11px "DM Sans";
  cursor: pointer;
}
.nav-step span {
  width: 20px;
  font-size: 9px;
}
.nav-step.active {
  background: #ecece8;
  color: var(--ink);
  font-weight: 700;
}
.nav-step.active span {
  color: var(--red);
}
.nav-step.complete {
  color: #666;
}
.side-footer {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.workspace {
  grid-column: 2;
  width: min(880px, calc(100% - 56px));
  margin: 0 auto;
  padding: 70px 0 120px;
}
.mobile-progress {
  display: none;
}
.form-step {
  display: none;
  animation: stepIn 0.38s ease;
}
.form-step.active {
  display: block;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.step-heading {
  margin-bottom: 48px;
}
.step-heading h2 {
  font: 700 clamp(35px, 4.5vw, 55px)/1.02 "Manrope";
  letter-spacing: -0.055em;
  margin: 13px 0 17px;
}
.step-heading p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}
.field-grid {
  display: grid;
  gap: 22px;
}
.field-grid.two {
  grid-template-columns: 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.field > span,
fieldset > legend,
.metric-field > span {
  font-size: 12px;
  font-weight: 700;
  color: #444;
}
.field b,
legend b {
  color: var(--red);
}
input,
textarea,
select {
  font: 500 15px "DM Sans";
  color: var(--ink);
  border: 1px solid #deded9;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 15px 16px;
  width: 100%;
  outline: none;
  transition: 0.2s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}
input::placeholder,
textarea::placeholder {
  color: #b5b5b0;
}
.invalid input,
.invalid textarea,
[data-required-group].invalid {
  border-color: var(--red);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 34px 0 0;
}
fieldset > legend {
  margin-bottom: 13px;
}
legend small {
  font-weight: 400;
  color: #999;
  margin-left: 5px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.choice-grid.compact {
  grid-template-columns: repeat(2, minmax(120px, 200px));
}
.choice input,
.opportunity-grid input,
.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  min-height: 48px;
  border: 1px solid #deded9;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: 0.2s;
}
.choice span:before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1px solid #bbb;
  border-radius: 4px;
  margin-right: 10px;
  transition: 0.2s;
  flex: none;
}
.choice input[type="radio"] + span:before {
  border-radius: 50%;
}
.choice input:checked + span {
  border-color: var(--red);
  background: var(--soft-red);
  color: #a51217;
}
.choice input:checked + span:before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: inset 0 0 0 3px var(--soft-red);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.metric-field {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px;
}
.metric-field div {
  display: flex;
  align-items: end;
  margin-top: 8px;
}
.metric-field input {
  border: 0;
  background: transparent;
  font: 700 31px "Manrope";
  padding: 0;
  box-shadow: none;
}
.metric-field small {
  font-size: 10px;
  color: #999;
  white-space: nowrap;
  padding-bottom: 6px;
}
.highlight-field {
  background: var(--soft-red);
  padding: 20px;
  border-radius: 13px;
}
.highlight-field textarea {
  background: #fff;
}
.ratings {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.rating-row {
  min-height: 67px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.rating-row:last-child {
  border: 0;
}
.rating-row > span {
  font-size: 13px;
  font-weight: 600;
}
.stars {
  display: flex;
  gap: 5px;
}
.stars label {
  cursor: pointer;
}
.stars input {
  position: absolute;
  opacity: 0;
}
.stars span {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #f0f0ed;
  display: grid;
  place-items: center;
  color: #b5b5b0;
  font-size: 12px;
  font-weight: 700;
  transition: 0.15s;
}
.stars label:hover span,
.stars label.selected span {
  background: var(--red);
  color: #fff;
}
.binary-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 22px;
}
.binary-list fieldset {
  margin: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.binary-list fieldset:last-child {
  border: 0;
}
.binary-list legend {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  text-align: left;
}
.segmented {
  display: flex;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
.segmented span {
  display: grid;
  place-items: center;
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  min-height: 38px;
  line-height: 1.2;
}
.segmented label + label span {
  border-left: 1px solid var(--line);
}
.segmented input:checked + span {
  background: var(--red);
  color: #fff;
}
.opportunity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}
.opportunity-grid span {
  height: 70px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.opportunity-grid b {
  font: 500 10px "Manrope";
  color: #bbb;
}
.opportunity-grid input:checked + span {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
}
.opportunity-grid input:checked + span b {
  color: var(--red);
}
.notes-field textarea {
  min-height: 310px;
}
.notes-field small {
  text-align: right;
  color: #aaa;
  font-size: 10px;
}
.priority-list {
  display: grid;
  gap: 11px;
}
.priority-list label {
  display: grid;
  grid-template-columns: 45px 160px 1fr;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
}
.priority-list b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 12px "Manrope";
}
.priority-list span {
  font-size: 11px;
  font-weight: 700;
}
.priority-list input {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.form-actions {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 300px;
  z-index: 20;
  padding: 18px max(28px, calc((100vw - 300px - 880px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 247, 244, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(16px);
}
.btn {
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  font: 700 11px "DM Sans";
  cursor: pointer;
  transition: 0.2s;
}
.btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 35, 41, 0.18);
}
.btn.primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.btn.secondary {
  background: #e9e9e5;
  color: #555;
}
.btn.danger {
  background: var(--red);
  color: #fff;
}
.btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}
.btn span {
  margin: 0 5px;
}
.step-position {
  font: 600 10px "Manrope";
  color: #999;
  letter-spacing: 0.12em;
}
.toast {
  position: fixed;
  z-index: 100;
  top: 92px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 90;
  display: none;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.modal-backdrop.show {
  display: grid;
}
.modal {
  width: min(390px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 31px;
  text-align: center;
  box-shadow: var(--shadow);
}
.modal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft-red);
  color: var(--red);
  font-weight: 800;
  margin: auto;
}
.modal h3 {
  font: 700 21px "Manrope";
  margin: 17px 0 8px;
}
.modal p {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}
.modal > div {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.report {
  display: none;
  min-height: 100vh;
  background: #e8e8e4;
  padding: 110px 20px 60px;
}
.report.visible {
  display: block;
}
.report-toolbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: rgba(247, 247, 244, 0.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid #ddd;
}
.report-toolbar > div {
  display: flex;
  gap: 8px;
}
.report-page {
  width: min(1040px, 100%);
  margin: auto;
  background: #fff;
  box-shadow: var(--shadow);
}
.report-hero {
  height: 440px;
  background: #141414;
  color: #fff;
  padding: 52px 62px;
  position: relative;
  overflow: hidden;
}
.report-hero:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border: 110px solid var(--red);
  border-radius: 50%;
  right: -260px;
  bottom: -260px;
}
.report-hero > img {
  width: 120px;
  filter: brightness(0) invert(1);
  margin-bottom: 58px;
}
.report-hero > div:nth-child(2) span {
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #aaa;
}
.report-hero h2 {
  font: 700 60px/0.96 "Manrope";
  letter-spacing: -0.06em;
  margin: 10px 0 18px;
}
.report-hero p {
  font-size: 17px;
  margin: 0;
  color: #ccc;
}
.report-meta {
  position: absolute;
  right: 62px;
  top: 52px;
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #888;
  gap: 6px;
}
.report-content {
  padding: 70px 62px 0;
}
.report-summary {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.report-summary h3 {
  font: 700 35px/1.05 "Manrope";
  letter-spacing: -0.045em;
  margin: 12px 0 18px;
}
.report-summary > div > p {
  color: #777;
  font-size: 12px;
  line-height: 1.7;
  max-width: 480px;
}
.score-card {
  background: var(--paper);
  border-radius: 15px;
  padding: 25px;
}
.score-card > span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
}
.score-card strong {
  font: 800 58px "Manrope";
  display: inline-block;
  margin-top: 9px;
}
.score-card small {
  color: #999;
}
.score-track {
  height: 5px;
  background: #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.score-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
  transition: 1s;
}
.score-card > p {
  font-weight: 700 !important;
  color: var(--red) !important;
  margin-bottom: 0 !important;
}
.report-section {
  padding: 55px 0;
  border-top: 1px solid var(--line);
  margin-top: 55px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.section-title span {
  font: 700 9px "Manrope";
  color: var(--red);
}
.section-title h3 {
  font: 700 20px "Manrope";
  letter-spacing: -0.03em;
  margin: 0;
}
.chart-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  gap: 35px;
}
#radarChart {
  max-width: 100%;
  height: auto;
}
.area-scores {
  display: grid;
  gap: 8px;
}
.area-score {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 10px;
}
.area-score div {
  grid-column: 1/3;
  background: #eee;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}
.area-score i {
  display: block;
  height: 100%;
  background: var(--red);
}
.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.report-tags span {
  border: 1px solid #ddd;
  border-radius: 99px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 600;
}
.action-plan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.action-item {
  background: var(--paper);
  padding: 22px;
  border-radius: 12px;
  min-height: 140px;
}
.action-item b {
  color: var(--red);
  font: 700 10px "Manrope";
}
.action-item h4 {
  font: 700 14px/1.4 "Manrope";
  margin: 15px 0 7px;
}
.action-item p {
  font-size: 10px;
  color: #888;
  line-height: 1.5;
}
.report-details {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
}
.report-details > div > .section-title {
  margin-bottom: 18px;
}
.report-details dl {
  margin: 0;
}
.report-details dt {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-top: 18px;
}
.report-details dd {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.5;
}
.next-step-card {
  border-left: 3px solid var(--red);
  background: var(--soft-red);
  padding: 22px;
}
.next-step-card strong {
  display: block;
  font: 700 15px/1.4 "Manrope";
}
.next-step-card span {
  font-size: 10px;
  color: #888;
  display: block;
  margin-top: 9px;
}
.report-footer {
  margin: 50px -62px 0;
  background: #141414;
  color: #fff;
  padding: 35px 62px;
  display: flex;
  align-items: center;
}
.report-footer img {
  width: 95px;
  filter: brightness(0) invert(1);
}
.report-footer p {
  margin: 0 0 0 40px;
  font-size: 9px;
  color: #999;
  line-height: 1.5;
}
.report-footer span {
  margin-left: auto;
  font-size: 9px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 800px) {
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .brand img {
    width: 100px;
  }
  .app-shell {
    padding-top: 64px;
    display: block;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    width: 100%;
    padding: 25px 20px 105px;
  }
  .mobile-progress {
    display: block;
    margin-bottom: 38px;
  }
  .mobile-progress > div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    margin-bottom: 9px;
  }
  .bar {
    height: 3px;
    background: #e0e0dc;
    border-radius: 2px;
  }
  .bar i {
    display: block;
    background: var(--red);
    height: 100%;
    width: 10%;
    transition: 0.3s;
  }
  .step-heading {
    margin-bottom: 35px;
  }
  .step-heading h2 {
    font-size: 38px;
  }
  .field-grid.two,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-actions {
    left: 0;
    padding: 14px 20px;
  }
  .step-position {
    display: none;
  }
  .rating-row {
    padding: 12px 13px;
  }
  .rating-row > span {
    font-size: 11px;
  }
  .stars {
    gap: 3px;
  }
  .stars span {
    width: 30px;
    height: 30px;
  }
  .binary-list fieldset {
    display: block;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom:1px solid var(--line);
  }
  .binary-list fieldset:last-child{border-bottom:0}
  .binary-list legend {
    float: none;
    margin-bottom: 12px;
    font-size:13px;
    text-align:left;
  }
  .segmented {
    width: 100%;
  }
  .segmented label {
    flex: 1;
  }
  .segmented span {
    text-align: center;
    padding: 11px 6px;
    min-height:42px;
    display:grid;
    place-items:center;
  }
  .segmented.three span {
    font-size:10px;
  }
  .opportunity-grid {
    grid-template-columns: 1fr;
  }
  .priority-list label {
    grid-template-columns: 44px 1fr;
  }
  .priority-list span {
    grid-column: 2;
  }
  .priority-list input {
    grid-column: 1/3;
    margin-top: 4px;
  }
  .report {
    padding: 90px 0 0;
  }
  .report-toolbar {
    height: 72px;
    padding: 0 10px;
  }
  .report-toolbar .btn {
    padding: 11px 12px;
  }
  .report-hero {
    height: 390px;
    padding: 35px 25px;
  }
  .report-hero h2 {
    font-size: 49px;
  }
  .report-hero > img {
    margin-bottom: 68px;
  }
  .report-meta {
    right: 25px;
    top: 37px;
  }
  .report-content {
    padding: 45px 24px 0;
  }
  .report-summary,
  .chart-wrap,
  .report-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .action-plan {
    grid-template-columns: 1fr;
  }
  .report-footer {
    margin: 40px -24px 0;
    padding: 30px 24px;
  }
  .report-footer p {
    display: none;
  }
}
@media (max-width: 430px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice-grid.compact {
    grid-template-columns: 1fr 1fr;
  }
  .draft-state {
    font-size: 0;
  }
  .step-heading h2 {
    font-size: 34px;
  }
  .rating-row {
    grid-template-columns: 1fr;
  }
  .stars {
    margin-top: 9px;
  }
  .stars span {
    width: 42px;
  }
  .report-toolbar #exportBtn {
    display: none;
  }
}
@media print {
  body {
    background: #fff;
  }
  .topbar,
  .report-toolbar,
  .ambient,
  .toast {
    display: none !important;
  }
  .report {
    display: block !important;
    padding: 0;
  }
  .report-page {
    width: 100%;
    box-shadow: none;
  }
  .report-hero {
    break-after: avoid;
  }
  .report-section {
    break-inside: avoid;
  }
  .report-content {
    padding-top: 40px;
  }
  @page {
    margin: 0;
    size: A4;
  }
}


/* Camada de correções responsivas e de acessibilidade. */
html{scroll-padding-top:90px;overflow-x:clip}
body{min-height:100dvh;overflow-x:hidden}
button,input,textarea,select{font-family:inherit}
button{-webkit-tap-highlight-color:transparent}
button:focus-visible,input:focus-visible,textarea:focus-visible,label:has(input:focus-visible) span{outline:3px solid rgba(227,35,41,.22);outline-offset:2px}
.field b,fieldset legend b{color:var(--red)}
.rating-row.invalid>span{color:inherit}
.multiple-hint{display:inline-block;margin-left:8px;color:#888;font-weight:400}
.multiple-hint:before{content:'•';margin-right:8px;color:#bbb}
.report-mode>.topbar,.report-mode>.app-shell{display:none!important}
.topbar{padding-left:max(38px,env(safe-area-inset-left));padding-right:max(38px,env(safe-area-inset-right))}
.workspace{min-width:0}
.form-step{min-width:0}
.step-heading h2{overflow-wrap:break-word}
.field-grid.two{align-items:start}
.choice-grid.invalid{outline:2px solid var(--red);outline-offset:5px;border-radius:8px}
.rating-row.invalid{background:var(--soft-red);box-shadow:inset 3px 0 var(--red)}
.rating-row.invalid>span{color:var(--red-dark)}
.ratings,.binary-list,.metric-field,.opportunity-grid span,.priority-list label{box-shadow:0 1px 0 rgba(0,0,0,.02)}
.priority-list input{width:auto;max-width:100%;min-width:0}
.form-actions{padding-bottom:max(18px,env(safe-area-inset-bottom))}
.btn{min-height:44px;white-space:nowrap}
.report-hero>img,.report-hero>div{position:relative;z-index:1}
.report-hero:after{z-index:0;pointer-events:none}
.report-toolbar{padding-left:max(4vw,env(safe-area-inset-left));padding-right:max(4vw,env(safe-area-inset-right))}
.report-page{overflow:hidden}
.area-score span{min-width:0;overflow-wrap:anywhere}
.next-step-card span{overflow-wrap:anywhere}

@media (hover:hover){
  .choice span:hover{border-color:#aaa;background:#fff}
  .opportunity-grid span:hover{border-color:#bbb;transform:translateY(-1px)}
  .nav-step:hover{background:#efefeb;color:#555}
}

@media (max-width:1040px){
  .topbar{height:64px;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
  .brand img{width:100px}
  .app-shell{display:block;padding-top:64px}
  .sidebar{display:none}
  .workspace{width:100%;max-width:760px;padding:28px clamp(20px,5vw,44px) calc(104px + env(safe-area-inset-bottom));margin:auto}
  .mobile-progress{display:block;margin-bottom:38px}
  .mobile-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;font-weight:700;color:#888;margin-bottom:9px}
  .bar{height:3px;background:#e0e0dc;border-radius:2px;overflow:hidden}
  .bar i{display:block;background:var(--red);height:100%;width:10%;transition:.3s}
  .form-actions{left:0;padding:14px max(20px,calc((100vw - 760px)/2 + 44px)) max(14px,env(safe-area-inset-bottom));gap:12px}
  .step-position{display:none}
  .opportunity-grid span{min-height:56px;height:auto;font-size:12px}
  .opportunity-grid b{font-size:9px}
}

@media (max-width:700px){
  input,textarea,select{font-size:16px}
  .workspace{padding-top:24px}
  .step-heading{margin-bottom:34px}
  .step-heading h2{font-size:clamp(33px,9.7vw,42px);line-height:1.04}
  .step-heading p{font-size:14px;line-height:1.55}
  .field-grid.two,.metrics-grid{grid-template-columns:1fr}
  .choice-grid{grid-template-columns:1fr 1fr}
  .choice span{min-height:52px;font-size:13px}
  .rating-row{padding:14px;grid-template-columns:1fr auto;gap:12px}
  .stars{gap:4px}
  .stars span{width:38px;height:38px}
  .binary-list{padding:0 12px}
  .binary-list fieldset{display:block;padding:14px 0;margin-bottom:0;min-height:0;border-bottom:1px solid var(--line)}
  .binary-list fieldset:last-child{border-bottom:0}
  .binary-list legend{float:none;margin-bottom:10px;line-height:1.4;font-size:13px;text-align:left}
  .segmented{width:100%}
  .segmented label{flex:1;min-width:0}
  .segmented span{text-align:center;padding:11px 6px;overflow-wrap:anywhere;font-size:11px;min-height:44px;display:grid;place-items:center}
  .segmented.three{width:100%;max-width:100%}
  .segmented.three span{font-size:10px;padding:10px 3px}
  .opportunity-grid{grid-template-columns:1fr}
  .opportunity-grid span{min-height:64px;height:auto}
  .priority-list label{grid-template-columns:44px 1fr}
  .priority-list span{grid-column:2}
  .priority-list input{grid-column:1/3;margin-top:5px}
  .notes-field textarea{min-height:240px}
  .report{padding:84px 0 0}
  .report-toolbar{height:72px;padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}
  .report-toolbar .btn{padding:10px 12px;min-height:42px}
  .report-hero{height:390px;padding:34px 24px}
  .report-hero>img{width:104px;margin-bottom:72px}
  .report-hero h2{font-size:48px}
  .report-meta{right:24px;top:36px}
  .report-content{padding:44px 24px 0}
  .report-summary,.chart-wrap,.report-details{grid-template-columns:1fr;gap:28px}
  .chart-wrap{overflow:hidden}
  #radarChart{width:100%;max-width:560px}
  .action-plan{grid-template-columns:1fr}
  .report-section{padding:42px 0;margin-top:42px}
  .report-footer{margin:40px -24px 0;padding:30px 24px}
  .report-footer p{display:none}
}

@media (max-width:460px){
  .draft-state{font-size:0;margin-left:auto}
  .icon-button{margin-left:10px}
  .workspace{padding-left:18px;padding-right:18px}
  .choice-grid{grid-template-columns:1fr}
  .choice-grid.compact{grid-template-columns:1fr 1fr}
  .rating-row{grid-template-columns:1fr}
  .stars{justify-content:space-between;margin-top:2px}
  .stars label{flex:1}
  .stars span{width:100%;height:42px}
  .segmented.three{display:grid;grid-template-columns:repeat(3,1fr)}
  .segmented.three span{height:100%;display:grid;place-items:center;font-size:9px;padding:8px 2px}
  .form-actions{padding-left:18px;padding-right:18px}
  .form-actions .btn{flex:1;padding-left:12px;padding-right:12px}
  .report-toolbar #exportBtn{display:none}
  .report-toolbar>div{margin-left:auto}
  .report-hero:after{right:-340px;bottom:-310px}
}

@media (max-height:760px) and (min-width:1041px){
  .sidebar{padding-top:24px}
  .side-intro h1{font-size:31px}
  .progress-ring{width:66px;height:66px;margin:16px 0}
  .nav-step{padding-top:6px;padding-bottom:6px}
}

@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body.report-mode{background:#fff}
  .report{padding:0!important;background:#fff}
  .report-page{overflow:visible;box-shadow:none}
  .report-hero{height:270px;padding:28px 42px;background:#fff!important;color:#181818!important;border-top:9px solid var(--red)}
  .report-hero>img{width:112px;margin-bottom:30px;filter:none}
  .report-hero>div:nth-child(2) span{color:#777}
  .report-hero h2{margin:7px 0 9px;font-size:46px;color:#181818!important}
  .report-hero p{color:#555;font-size:14px}
  .report-meta{right:42px;top:31px;color:#555}
  .report-hero:after{width:230px;height:230px;border-width:45px;right:-110px;bottom:-130px}
  .report-content{padding:34px 42px 0}
  .report-summary{grid-template-columns:1.5fr .65fr;gap:34px;align-items:center}
  .report-summary h3{font-size:27px;margin:8px 0 12px}
  .report-summary>div>p{font-size:10px;line-height:1.55;margin-bottom:0}
  .score-card{padding:18px;border:1px solid #ddd;background:#fff}
  .score-card strong{font-size:46px;display:block!important;width:100%;text-align:right!important;margin-top:9px}
  .score-card>p{font-size:10px!important;text-align:right!important}
  .report-section{padding:30px 0;margin-top:28px}
  .section-title{margin-bottom:20px}
  .chart-wrap{gap:25px}
  .action-item{min-height:110px;padding:18px}
  .report-footer{margin-top:30px;background:#fff;color:#181818;border-top:3px solid var(--red)}
  .report-footer img{filter:none}
  .report-section,.score-card,.action-item,.next-step-card{break-inside:avoid}
  .report-footer{break-inside:avoid}
  @page{size:A4;margin:0}
}

