.project-brief {
  width: min(920px, calc(100vw - 40px));
  max-height: min(88dvh, 840px);
  border: 0;
  background: var(--cream);
}

.brief-shell {
  display: grid;
  grid-template-columns: minmax(210px, 30%) minmax(0, 1fr);
  min-height: 530px;
}

.brief-sidebar {
  position: relative;
  overflow: hidden;
  padding: 38px 30px 158px;
  background: var(--ink);
  color: var(--cream);
}

.brief-sidebar .eyebrow { color: var(--pink); }
.brief-sidebar h2 { margin: 25px 0 32px; font-size: clamp(41px, 5vw, 65px); }

.brief-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brief-steps li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #efd8d7;
  font-size: 14px;
  font-weight: 600;
}

.brief-steps li span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #fff8ed66;
  border-radius: 50%;
  line-height: 1;
}

.brief-steps li[aria-current="step"] { color: var(--cream); }
.brief-steps li[aria-current="step"] span { border-color: var(--pink); background: var(--pink); color: var(--ink); }
.brief-steps li.is-done span { border-color: #fff8ed22; background: #fff8ed22; }

.brief-illustration {
  --angle: -16deg;
  --float-cycle: 7.2s;
  position: absolute;
  right: -7px;
  bottom: -27px;
  width: 185px;
}

.brief-main { position: relative; padding: 64px 38px 30px; min-width: 0; }
.brief-close { position: absolute; top: 16px; right: 19px; }
.brief-panel { min-width: 0; margin: 0; padding: 0; border: 0; }
.brief-panel legend, .brief-draft h3 {
  padding: 0;
  margin-bottom: 17px;
  font-family: var(--display);
  font-size: clamp(29px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
}
.brief-panel legend:focus, .brief-draft h3:focus { outline: none; }
.brief-hint { margin: 0 0 15px; font-size: 15px; }

.brief-options, .brief-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.brief-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 9px 12px;
  border: 1px solid #491a2640;
  border-radius: 16px;
  background: #fffefa;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: background .22s, border-color .22s, transform .22s;
}
.brief-option:hover { border-color: var(--ink); transform: translateY(-1px); }
.brief-option:has(:checked) { border-color: var(--ink); background: var(--pink); }
.brief-option:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.brief-option input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--ink); }
.brief-option-wide { grid-column: 1 / -1; }

.brief-panel label:not(.brief-option) {
  display: block;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}
.brief-panel > label, .brief-panel > .brief-fields { margin-bottom: 16px; }
.brief-panel input:not([type="checkbox"]), .brief-panel textarea, .brief-panel select, .brief-draft textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid #491a265c;
  border-radius: 13px;
  background: #fffefa;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}
.brief-panel textarea { min-height: 97px; resize: vertical; }
.brief-panel small, .brief-optional { color: #66404a; font-size: 12px; font-weight: 500; }
.brief-required { color: #a62d1e; }
.brief-privacy { font-size: 13px; line-height: 1.45; }

.brief-summary { margin-bottom: 16px; }
.brief-summary p { font-size: 12px; font-weight: 700; }
.brief-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.brief-selection li { padding: 4px 9px; border-radius: var(--round-control); background: var(--pink); font-size: 12px; font-weight: 700; }

.brief-status { color: #8d291d; font-size: 14px; }
.brief-status:empty { margin: 0; }
.brief-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.brief-actions .button { min-height: 48px; padding: 10px 20px; }
.brief-next, .brief-send { margin-left: auto; }
.brief-back { padding: 10px 4px; background: none; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.brief-draft p { font-size: 15px; line-height: 1.5; }
.brief-email-address { text-decoration: underline; overflow-wrap: anywhere; }
.brief-draft label { display: block; margin-top: 16px; font-size: 14px; font-weight: 700; }
.brief-draft textarea { resize: vertical; }
.brief-draft-actions { justify-content: flex-start; flex-wrap: wrap; }
.brief-draft-actions .brief-edit { margin-right: auto; }

@media (max-width: 660px) {
  .project-brief { width: calc(100vw - 24px); max-height: 92dvh; }
  .brief-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .brief-sidebar { padding: 19px 19px 17px; }
  .brief-sidebar h2 { margin: 8px 0 12px; font-size: 36px; }
  .brief-sidebar h2 br { display: none; }
  .brief-steps { display: flex; gap: 11px; flex-wrap: wrap; }
  .brief-steps li { gap: 4px; font-size: 12px; }
  .brief-steps li span { width: 22px; height: 22px; }
  .brief-illustration { right: 9px; bottom: 19px; width: 66px; }
  .brief-main { padding: 46px 18px 22px; }
  .brief-close { top: 7px; right: 10px; }
}

@media (max-width: 365px) {
  .brief-option { padding-inline: 8px; font-size: 13px; }
  .brief-illustration { width: 49px; }
}

@media (prefers-reduced-motion: no-preference) {
  .brief-panel:not([hidden]), .brief-draft:not([hidden]) { animation: brief-step-in .34s var(--ease-out) both; }
  @keyframes brief-step-in {
    from { opacity: 0; transform: translateY(9px); }
  }
}
