.dk-inclusions-prototype,
#willow-60-brochure-modal {
  --proto-ink: #0d1b2a;
  --proto-navy-deep: #0b2231;
  --proto-navy: #123047;
  --proto-green: #2e7d62;
  --proto-green-dark: #1f654f;
  --proto-gold: #c4933f;
  --proto-white: #ffffff;
  --proto-warm: #f9f7f4;
  --proto-sage: #f0f7f1;
  --proto-border: rgba(13, 27, 42, 0.12);
  --proto-muted: #526978;
  margin: 0;
  color: var(--proto-ink);
  background: var(--proto-warm);
  font-family: "Manrope", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.dk-inclusions-prototype *,
.dk-inclusions-prototype *::before,
.dk-inclusions-prototype *::after,
#willow-60-brochure-modal *,
#willow-60-brochure-modal *::before,
#willow-60-brochure-modal *::after {
  box-sizing: border-box;
}

.dk-inclusions-prototype button,
.dk-inclusions-prototype input,
.dk-inclusions-prototype select,
.dk-inclusions-prototype textarea,
#willow-60-brochure-modal button,
#willow-60-brochure-modal input,
#willow-60-brochure-modal select,
#willow-60-brochure-modal textarea {
  font: inherit;
}

.dk-inclusions-prototype button,
#willow-60-brochure-modal button {
  cursor: pointer;
}

.dk-inclusions-prototype button:focus-visible,
.dk-inclusions-prototype input:focus-visible,
.dk-inclusions-prototype select:focus-visible,
.dk-inclusions-prototype textarea:focus-visible,
#willow-60-brochure-modal button:focus-visible,
#willow-60-brochure-modal input:focus-visible,
#willow-60-brochure-modal select:focus-visible,
#willow-60-brochure-modal textarea:focus-visible {
  outline: 3px solid rgba(46, 125, 98, 0.28);
  outline-offset: 3px;
}

.dk-inclusions-prototype [hidden],
#willow-60-brochure-modal[hidden],
#willow-60-brochure-modal [hidden] {
  display: none !important;
}

.proto-page {
  min-height: 100vh;
  padding: 32px clamp(20px, 5vw, 72px) 80px;
  background:
    radial-gradient(circle at 92% 4%, rgba(46, 125, 98, 0.12), transparent 28rem),
    var(--proto-warm);
}

.proto-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 12px 18px;
  color: #684b16;
  background: #fff7e8;
  border: 1px solid rgba(196, 147, 63, 0.34);
  border-radius: 10px;
  font-size: 13px;
}

.proto-design-context,
.proto-entry {
  max-width: 1240px;
  margin-inline: auto;
}

.proto-design-context {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  align-items: end;
  gap: 48px;
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--proto-border);
}

.proto-design-context h1,
.proto-entry h2,
.proto-explorer__header h2,
.proto-results__header h3,
.proto-upgrade-paths h3,
.proto-detail-drawer h3,
.proto-form-sheet h3 {
  margin: 0;
  color: var(--proto-navy-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.proto-design-context h1 {
  font-size: clamp(58px, 7vw, 92px);
}

.proto-design-context > p,
.proto-entry__header p,
.proto-upgrade-paths p {
  margin: 0;
  color: var(--proto-muted);
  max-width: 700px;
}

.proto-kicker {
  margin: 0 0 8px;
  color: var(--proto-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.proto-collection {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 7px 12px;
  color: var(--proto-green-dark);
  background: var(--proto-sage);
  border: 1px solid rgba(46, 125, 98, 0.2);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proto-entry {
  padding-top: 64px;
}

.proto-entry__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.proto-entry h2 {
  margin-bottom: 14px;
  font-size: clamp(40px, 4vw, 58px);
}

.proto-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--proto-ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.proto-button--primary {
  color: var(--proto-white);
  background: var(--proto-green);
  border-color: var(--proto-green);
}

.proto-button--primary:hover {
  background: var(--proto-green-dark);
  transform: translateY(-1px);
}

.proto-button--outline {
  color: var(--proto-green-dark);
  background: var(--proto-white);
  border-color: var(--proto-green);
}

.proto-button--outline-light {
  color: var(--proto-white);
  border-color: rgba(255, 255, 255, 0.55);
}

.proto-button--gold {
  color: var(--proto-ink);
  background: var(--proto-gold);
  border-color: var(--proto-gold);
}

.proto-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--proto-border);
  border-left: 1px solid var(--proto-border);
}

.proto-summary-grid article {
  min-height: 180px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.56);
  border-right: 1px solid var(--proto-border);
  border-bottom: 1px solid var(--proto-border);
}

.proto-summary-grid h3 {
  margin: 18px 0 6px;
  color: var(--proto-navy-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.2;
}

.proto-summary-grid p {
  margin: 0;
  color: var(--proto-muted);
  font-size: 14px;
  line-height: 1.55;
}

.proto-summary-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  color: var(--proto-green-dark);
}

.proto-summary-icon svg,
.proto-icon-button svg,
.proto-status-shape {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.proto-explorer {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  color: var(--proto-ink);
  background: #f7faf7;
  overflow: hidden;
}

.proto-explorer[hidden] {
  display: none !important;
}

.proto-explorer__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 120px;
  padding: 22px clamp(24px, 4vw, 58px);
  background: var(--proto-white);
  border-bottom: 1px solid var(--proto-border);
}

.proto-explorer__header h2 {
  margin-bottom: 8px;
  font-size: clamp(34px, 3.2vw, 50px);
}

.proto-explorer__header p:last-child {
  margin: 0;
  max-width: 760px;
  color: var(--proto-muted);
  font-size: 14px;
}

.proto-explorer__identity {
  display: grid;
  gap: 4px;
  padding-left: 26px;
  border-left: 1px solid var(--proto-border);
  font-size: 13px;
}

.proto-explorer__identity span:first-child {
  color: var(--proto-navy-deep);
  font-weight: 700;
}

.proto-explorer__identity span:last-child {
  color: var(--proto-green-dark);
}

.proto-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  color: var(--proto-navy-deep);
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(13, 27, 42, 0.08);
}

.proto-explorer__warning {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  padding: 8px clamp(24px, 4vw, 58px);
  color: #6b511e;
  background: #fff8eb;
  border-bottom: 1px solid rgba(196, 147, 63, 0.25);
  font-size: 12px;
}

.proto-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 36px;
  align-items: end;
  padding: 14px clamp(24px, 4vw, 58px);
  background: var(--proto-sage);
  border-bottom: 1px solid var(--proto-border);
}

.proto-filter-bar fieldset {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.proto-filter-bar legend {
  float: left;
  margin-right: 4px;
  color: var(--proto-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proto-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proto-filter-group button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--proto-navy);
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.proto-filter-group button[aria-pressed="true"] {
  color: var(--proto-white);
  background: var(--proto-green);
  border-color: var(--proto-green);
}

.proto-explorer__workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.proto-category-rail {
  padding: 24px 18px;
  background: var(--proto-white);
  border-right: 1px solid var(--proto-border);
  overflow-y: auto;
}

.proto-category-rail > p,
.proto-category-select-wrap label {
  margin: 0 10px 10px;
  color: var(--proto-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proto-category-rail button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--proto-navy);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.proto-category-rail button[aria-current="true"] {
  color: var(--proto-white);
  background: var(--proto-green);
}

.proto-category-rail button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.proto-category-rail button .proto-category-count {
  display: inline-flex;
  justify-content: center;
  min-width: 24px;
  color: inherit;
  opacity: 0.78;
}

.proto-category-select-wrap {
  display: none;
}

.proto-results {
  padding: 30px clamp(24px, 4vw, 54px) 150px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.proto-results__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--proto-border);
}

.proto-results__header h3 {
  margin-bottom: 10px;
  font-size: clamp(34px, 3vw, 48px);
}

.proto-results__header p {
  margin: 0;
  max-width: 760px;
  color: var(--proto-muted);
  font-size: 14px;
}

#result-summary {
  white-space: nowrap;
}

.proto-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.proto-inclusion-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 22px;
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 12px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.proto-inclusion-card[data-selected="true"] {
  border-color: var(--proto-gold);
  box-shadow: inset 0 0 0 2px rgba(196, 147, 63, 0.18);
}

.proto-inclusion-card__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 7px;
  min-height: 28px;
  padding: 0 10px;
  color: var(--proto-green-dark);
  background: var(--proto-sage);
  border: 1px solid rgba(46, 125, 98, 0.26);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proto-inclusion-card__status .proto-status-shape {
  width: 10px;
  height: 10px;
}

.proto-inclusion-card[data-status="upgrade"] .proto-inclusion-card__status {
  color: #7b5512;
  background: #fff8e9;
  border-color: rgba(196, 147, 63, 0.38);
}

.proto-inclusion-card[data-status="site-dependent"] .proto-inclusion-card__status {
  color: #225f86;
  background: #eff8fc;
  border-color: rgba(34, 95, 134, 0.3);
}

.proto-inclusion-card[data-status="excluded"] .proto-inclusion-card__status,
.proto-inclusion-card[data-status="not-applicable"] .proto-inclusion-card__status {
  color: #795b63;
  background: #faf2f4;
  border-color: rgba(121, 91, 99, 0.28);
}

.proto-inclusion-card h4 {
  margin: 18px 0 8px;
  color: var(--proto-navy-deep);
  font-size: 17px;
  line-height: 1.35;
}

.proto-inclusion-card p {
  margin: 0;
  color: var(--proto-muted);
  font-size: 13px;
  line-height: 1.55;
}

.proto-inclusion-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}

.proto-inclusion-card footer span {
  color: var(--proto-muted);
  font-size: 10px;
}

.proto-text-button {
  padding: 0;
  color: var(--proto-green-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.proto-empty-state {
  margin-top: 24px;
  padding: 40px;
  text-align: center;
  background: var(--proto-white);
  border: 1px dashed rgba(13, 27, 42, 0.2);
  border-radius: 12px;
}

.proto-empty-state h4 {
  margin: 0 0 6px;
  font-size: 20px;
}

.proto-empty-state p {
  margin: 0 0 20px;
  color: var(--proto-muted);
}

.proto-upgrade-paths {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.5fr);
  gap: 36px;
  margin-top: 48px;
  padding: 30px;
  background: var(--proto-navy-deep);
  border-radius: 14px;
}

.proto-upgrade-paths h3 {
  margin-bottom: 12px;
  color: var(--proto-white);
  font-size: 36px;
}

.proto-upgrade-paths p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.proto-upgrade-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proto-upgrade-routes button {
  min-height: 64px;
  padding: 12px 16px;
  color: var(--proto-white);
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.proto-upgrade-routes button:hover,
.proto-upgrade-routes button[aria-pressed="true"] {
  color: var(--proto-ink);
  background: var(--proto-gold);
  border-color: var(--proto-gold);
}

.proto-sticky-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px clamp(24px, 4vw, 58px);
  color: var(--proto-white);
  background: var(--proto-navy-deep);
  box-shadow: 0 -12px 28px rgba(13, 27, 42, 0.16);
}

.proto-sticky-bar > div {
  display: grid;
}

.proto-sticky-bar strong {
  font-size: 14px;
}

.proto-sticky-bar span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
}

.proto-detail-drawer,
.proto-form-sheet {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(480px, 100%);
  height: 100%;
  padding: 28px;
  background: var(--proto-white);
  border-left: 1px solid var(--proto-border);
  box-shadow: -24px 0 46px rgba(13, 27, 42, 0.18);
  overflow-y: auto;
}

.proto-detail-drawer > header,
.proto-form-sheet > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--proto-border);
}

.proto-detail-drawer h3,
.proto-form-sheet h3 {
  font-size: 36px;
}

#detail-content {
  display: grid;
  gap: 0;
  padding: 8px 0 24px;
}

.proto-detail-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--proto-border);
}

.proto-detail-section h4 {
  margin: 0 0 6px;
  color: var(--proto-green-dark);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proto-detail-section p,
.proto-detail-section li {
  color: var(--proto-muted);
  font-size: 13px;
}

.proto-detail-section p,
.proto-detail-section ul {
  margin: 0;
}

.proto-detail-section ul {
  padding-left: 18px;
}

.proto-form-sheet {
  width: min(700px, 100%);
}

.proto-form-sheet form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
}

.proto-form-sheet label {
  display: grid;
  gap: 7px;
  color: var(--proto-navy-deep);
  font-size: 12px;
  font-weight: 700;
}

.proto-form-sheet input,
.proto-form-sheet select,
.proto-form-sheet textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--proto-ink);
  background: var(--proto-white);
  border: 1px solid rgba(13, 27, 42, 0.22);
  border-radius: 6px;
}

.proto-form-sheet textarea {
  min-height: 90px;
  resize: vertical;
}

.proto-form-wide {
  grid-column: 1 / -1;
}

.proto-checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.proto-checkbox input {
  width: 18px;
  min-height: 18px;
}

.proto-upload-preview,
.proto-selection-preview {
  display: grid;
  gap: 4px;
  padding: 16px;
  color: var(--proto-muted);
  background: var(--proto-sage);
  border: 1px dashed rgba(46, 125, 98, 0.35);
  border-radius: 8px;
  font-size: 12px;
}

.proto-upload-preview strong {
  color: var(--proto-navy-deep);
}

.proto-form-result {
  margin-top: 22px;
  padding: 18px;
  color: var(--proto-green-dark);
  background: var(--proto-sage);
  border: 1px solid rgba(46, 125, 98, 0.28);
  border-radius: 8px;
  font-size: 13px;
}

.proto-state-preview {
  position: absolute;
  right: 18px;
  bottom: 96px;
  z-index: 35;
  width: 240px;
  padding: 14px;
  background: #fff8e9;
  border: 1px solid rgba(196, 147, 63, 0.4);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.12);
}

.proto-state-preview h3,
.proto-state-preview p {
  margin: 0;
  font-size: 12px;
}

.proto-state-preview > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.proto-state-preview button {
  padding: 5px 7px;
  background: var(--proto-white);
  border: 1px solid var(--proto-border);
  border-radius: 4px;
  font-size: 10px;
}

.proto-error {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 1200;
  display: grid;
  padding: 18px;
  color: #751b26;
  background: #fff0f2;
  border: 1px solid rgba(117, 27, 38, 0.3);
  border-radius: 8px;
}

/* Phase 3A.1 — isolated prototype visual and conversion refinement */
.proto-explorer__header {
  min-height: 0;
  padding-block: 16px;
}

.proto-explorer__header h2 {
  margin-bottom: 6px;
  font-size: clamp(32px, 2.7vw, 44px);
}

.proto-explorer__warning {
  justify-content: center;
  min-height: 30px;
  padding-block: 5px;
  color: #5f5037;
  background: #fbf7ef;
  font-size: 11px;
  text-align: center;
}

.proto-filter-bar {
  gap: clamp(22px, 3vw, 44px);
  padding-block: 10px;
}

.proto-filter-bar fieldset {
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(13, 27, 42, 0.08);
  border-radius: 9px;
}

.proto-filter-group button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.proto-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 21px;
  padding-inline: 5px;
  color: var(--proto-muted);
  background: #eef3ef;
  border-radius: 999px;
  font-size: 9px;
}

.proto-filter-group button[aria-pressed="true"] .proto-filter-count {
  color: var(--proto-green-dark);
  background: var(--proto-white);
}

.proto-category-rail {
  padding-block: 18px;
}

.proto-category-rail button {
  min-height: 44px;
}

.proto-results {
  padding-top: 22px;
}

.proto-results__header {
  padding-bottom: 18px;
}

.proto-results__header h3 {
  font-size: clamp(32px, 2.7vw, 44px);
}

.proto-card-grid {
  grid-auto-rows: 1fr;
  gap: 14px;
  padding-top: 18px;
}

.proto-inclusion-card {
  min-height: 226px;
  padding: 20px;
  border-color: rgba(13, 27, 42, 0.1);
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.035);
}

.proto-inclusion-card:hover {
  border-color: rgba(46, 125, 98, 0.34);
  box-shadow: 0 14px 34px rgba(13, 27, 42, 0.08);
  transform: translateY(-2px);
}

.proto-upgrade-paths {
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.5fr);
  gap: 28px;
  margin-top: 38px;
  padding: 24px 26px;
}

.proto-upgrade-paths h3 {
  font-size: 32px;
}

.proto-upgrade-routes button {
  min-height: 54px;
}

.proto-sticky-bar {
  min-height: 76px;
}

.proto-sticky-bar > div {
  gap: 2px;
}

.proto-sticky-bar span {
  max-width: 720px;
  font-size: 11.5px;
}

.proto-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(8, 25, 37, 0.34);
  backdrop-filter: blur(1px);
}

#willow-60-brochure-scrim {
  z-index: 100100;
}

#willow-60-brochure-modal {
  z-index: 100101;
}

.proto-detail-drawer,
.proto-form-sheet {
  position: fixed;
  z-index: 40;
  height: 100dvh;
  max-height: 100dvh;
}

.proto-detail-drawer {
  width: min(540px, 100%);
  padding: 28px 30px;
}

.proto-detail-drawer > header,
.proto-form-sheet > header {
  align-items: center;
  padding-bottom: 18px;
}

.proto-detail-drawer .proto-icon-button,
.proto-form-sheet .proto-icon-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 14px;
  box-shadow: none;
}

.proto-form-sheet > header p:last-child {
  max-width: 500px;
  margin: 8px 0 0;
  color: var(--proto-muted);
  font-size: 13px;
  line-height: 1.55;
}

.proto-selection-context {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 15px 17px;
  background: var(--proto-sage);
  border: 1px solid rgba(46, 125, 98, 0.18);
  border-left: 3px solid var(--proto-green);
  border-radius: 8px;
}

.proto-selection-context > span {
  color: var(--proto-green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proto-selection-context > strong {
  color: var(--proto-navy-deep);
  font-size: 16px;
}

.proto-selection-context > small {
  color: var(--proto-muted);
  font-size: 11px;
}

.proto-selection-context > button {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 0;
  color: var(--proto-green-dark);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
}

.proto-message-disclosure {
  justify-self: start;
  padding: 0;
  color: var(--proto-green-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 700;
}

.proto-privacy-note {
  margin: -4px 0 0;
  color: var(--proto-muted);
  font-size: 11px;
  line-height: 1.55;
}

.proto-privacy-note a {
  color: inherit;
  text-underline-offset: 2px;
}

.proto-suitability-step {
  display: grid;
  gap: 18px;
}

.proto-step-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--proto-border);
}

.proto-step-heading span {
  color: var(--proto-green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proto-step-heading strong {
  color: var(--proto-navy-deep);
  font-size: 15px;
}

.proto-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.proto-step-grid label small {
  color: var(--proto-muted);
  font-weight: 400;
}

.proto-step-actions {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 12px;
}

#suitability-next {
  width: 100%;
}

body.proto-modal-open {
  overflow: hidden;
}

@media (max-width: 1080px) {
  .proto-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proto-upgrade-paths {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .proto-explorer {
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  }

  .proto-explorer__header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .proto-explorer__identity {
    display: none;
  }

  .proto-explorer__warning {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .proto-filter-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: auto;
  }

  .proto-explorer__workspace {
    display: block;
    overflow-y: auto;
  }

  .proto-category-rail {
    display: none;
  }

  .proto-category-select-wrap {
    display: grid;
    padding: 12px 20px;
    background: var(--proto-white);
    border-bottom: 1px solid var(--proto-border);
  }

  .proto-category-select-wrap label {
    margin: 0 0 5px;
  }

  .proto-category-select-wrap select {
    min-height: 44px;
    padding: 0 12px;
    color: var(--proto-ink);
    background: var(--proto-white);
    border: 1px solid var(--proto-border);
    border-radius: 6px;
  }

  .proto-results {
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .proto-page {
    padding: 18px 18px 54px;
  }

  .proto-warning {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .proto-design-context,
  .proto-entry__header {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .proto-design-context {
    padding: 34px 0;
  }

  .proto-entry {
    padding-top: 42px;
  }

  .proto-entry__header .proto-button {
    width: 100%;
  }

  .proto-summary-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .proto-summary-grid article {
    min-height: 0;
  }

  .proto-explorer__header {
    min-height: 100px;
    padding: 16px 18px;
  }

  .proto-explorer__header h2 {
    font-size: 30px;
  }

  .proto-explorer__header p:last-child {
    display: none;
  }

  .proto-explorer__warning,
  .proto-filter-bar {
    padding-inline: 18px;
  }

  .proto-filter-bar fieldset {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .proto-filter-bar legend {
    margin: 0;
  }

  .proto-filter-group {
    flex-wrap: nowrap;
    width: max-content;
  }

  .proto-results {
    padding: 24px 18px 190px;
  }

  .proto-results__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #result-summary {
    white-space: normal;
  }

  .proto-card-grid {
    grid-template-columns: 1fr;
  }

  .proto-upgrade-paths {
    margin-top: 34px;
    padding: 24px 20px;
  }

  .proto-upgrade-routes {
    grid-template-columns: 1fr;
  }

  .proto-sticky-bar {
    grid-template-columns: 1fr;
    min-height: 150px;
    padding: 12px 18px;
  }

  .proto-sticky-bar > div {
    display: none;
  }

  .proto-sticky-bar .proto-button {
    width: 100%;
  }

  .proto-detail-drawer,
  .proto-form-sheet {
    padding: 22px 18px;
    border-left: 0;
  }

  .proto-form-sheet form {
    grid-template-columns: 1fr;
  }

  .proto-form-wide {
    grid-column: auto;
  }

  .proto-state-preview {
    right: 10px;
    bottom: 166px;
    left: 10px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dk-inclusions-prototype *,
  .dk-inclusions-prototype *::before,
  .dk-inclusions-prototype *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .proto-explorer__warning {
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding-block: 6px;
    line-height: 1.35;
  }

  .proto-filter-bar fieldset {
    min-width: max-content;
  }
}

@media (max-width: 720px) {
  .proto-explorer__header {
    min-height: 0;
    padding-block: 14px;
  }

  .proto-explorer__header h2 {
    font-size: 28px;
  }

  .proto-explorer__warning {
    padding-inline: 18px;
    font-size: 9.5px;
    text-align: left;
  }

  .proto-filter-bar {
    gap: 8px;
    padding-block: 9px;
  }

  .proto-filter-bar fieldset {
    padding: 6px 8px;
  }

  .proto-results {
    padding-bottom: 166px;
  }

  .proto-sticky-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 124px;
    gap: 9px;
  }

  .proto-sticky-bar .proto-button {
    min-width: 0;
    padding-inline: 10px;
    font-size: 11px;
  }

  .proto-detail-drawer,
  .proto-form-sheet {
    width: 100%;
  }

  .proto-form-sheet > header p:last-child {
    display: block;
  }

  .proto-step-grid {
    grid-template-columns: 1fr;
  }

  .proto-step-actions {
    grid-template-columns: 1fr;
  }

  .proto-selection-context > button {
    position: static;
    justify-self: start;
    margin-top: 5px;
  }
}
