/* Prototype applications use the same MoKlip tokens and studio shell as Contact and Account. */
.prototype-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 56px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  min-height: calc(100dvh - 230px);
}
.prototype-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-green-dark);
  font: 600 .95rem/1.3 var(--font-display);
  text-decoration: none;
  min-height: 44px;
}
.prototype-brand img { flex: none; }
.prototype-intro, .prototype-application { min-width: 0; }
.prototype-heading .eyebrow { margin: 0 0 12px; }
.prototype-heading h1 {
  color: var(--color-green-dark);
  font: 500 clamp(2.25rem, 3.5vw, 3.15rem)/1.12 var(--font-display);
  letter-spacing: -.045em;
  margin: 0 0 20px;
  max-width: 14ch;
  overflow-wrap: anywhere;
}
.prototype-lead {
  font-size: .88rem;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 40ch;
  margin: 0;
}
.prototype-product { margin: 26px 0 20px; max-width: 380px; }
.prototype-product img { width: 100%; height: auto; border-radius: 22px; }
.prototype-product figcaption { font-size: .68rem; color: var(--color-muted); margin: 9px 2px 0; }
.prototype-program-note { display: flex; align-items: center; gap: 12px; color: var(--color-green-dark); }
.prototype-program-note svg { flex: none; }
.prototype-window { font-size: .8rem; line-height: 1.6; margin: 0; }
.prototype-window strong { display: block; font-weight: 600; }
.prototype-selection { margin-top: 22px; max-width: 44ch; border-top: 1px solid var(--color-border); padding-top: 12px; }
.prototype-selection summary { cursor: pointer; min-height: 36px; align-content: center; font-size: .8rem; font-weight: 600; color: var(--color-green-dark); }
.prototype-selection p { font-size: .78rem; line-height: 1.75; color: var(--color-muted); margin: 8px 0 12px; }
.prototype-card, #prototype-confirmation {
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--color-surface);
  margin: 0 0 20px;
}
.prototype-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.prototype-step { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 11px; background: var(--color-green-soft); color: var(--color-green-dark); font: 500 .72rem/1 var(--font-display); }
.prototype-card h2, #prototype-confirmation h2 { font: 500 1.12rem/1.4 var(--font-display); letter-spacing: -.025em; margin: 0; }
#prototype-confirmation h2 { margin-bottom: 20px; }
.prototype-page fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.prototype-page label { display: block; font-size: .8rem; font-weight: 500; margin-bottom: 20px; line-height: 1.6; }
.prototype-page label > input:not([type=checkbox]), .prototype-page textarea, .prototype-page select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  min-height: 46px;
  padding: 11px 13px;
  background: var(--color-ivory);
  font: 400 1rem/1.5 var(--font-body);
  color: var(--color-text);
  margin-top: 7px;
}
.prototype-page :is(input, textarea)::placeholder { color: var(--color-muted); font-size: .82rem; opacity: 1; }
.prototype-page textarea { resize: vertical; }
.prototype-page :is(input:not([type=checkbox]), textarea, select):hover { border-color: var(--color-green); }
.prototype-page :is(input:not([type=checkbox]), textarea, select):focus { border-color: var(--color-green); background: var(--color-surface); }
.prototype-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; }
.prototype-card > label > span:not(.prototype-check-copy) { font-size: .73rem; font-weight: 400; color: var(--color-muted); }
.prototype-card > label:last-child { margin-bottom: 0; }
.prototype-small { font-size: .74rem; color: var(--color-muted); line-height: 1.75; margin: 12px 0 0; }
.prototype-page .prototype-check { display: flex; align-items: flex-start; gap: 10px; font-size: .78rem; font-weight: 400; margin-bottom: 14px; }
.prototype-page input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--color-green-dark); flex: none; cursor: pointer; }
.prototype-check input { margin: 3px 0 0; }
.prototype-check-copy { min-width: 0; }
.prototype-page .prototype-dimensions { margin: 6px 0 24px; }
.prototype-dimensions legend { font-size: .8rem; font-weight: 500; margin-bottom: 12px; }
.prototype-dimensions legend span { color: var(--color-muted); font-weight: 400; font-size: .73rem; }
.prototype-dimensions > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prototype-dimensions label { display: flex; align-items: center; gap: 9px; margin: 0; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 11px; background: var(--color-ivory); min-height: 46px; cursor: pointer; }
.prototype-dimensions input { margin: 0; }
.prototype-dimensions label > span { font-size: .78rem; color: var(--color-text); }
.prototype-dimensions label:hover { border-color: var(--color-green); }
.prototype-dimensions label:has(input:checked) { background: var(--color-green-soft); border-color: var(--color-green); }
.prototype-dimensions label:has(input:checked) > span { color: var(--color-green-dark); }
.prototype-submit-area { border-top: 1px solid var(--color-border); margin-top: 24px; padding-top: 4px; }
.prototype-application .button { justify-content: center; min-height: 46px; border-radius: 11px; font-size: .83rem; padding: 12px 18px; }
.prototype-application .button-primary { background: var(--color-green-dark); color: var(--color-white); border-color: var(--color-green-dark); }
.prototype-application .button-primary:hover { background: var(--color-green); }
.prototype-page button:disabled { cursor: not-allowed; }
#prototype-submit { width: 100%; margin-top: 20px; }
.prototype-page a { color: var(--color-green-dark); }
.prototype-application p a, .prototype-check-copy a { text-decoration: underline; text-underline-offset: 3px; }
.prototype-page [hidden] { display: none !important; }
#prototype-status, #prototype-confirm-status { font-size: .83rem; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
#prototype-status:not(:empty) { background: var(--color-green-soft); border: 1px solid var(--color-border); border-radius: 14px; padding: 18px 20px; margin: 0 0 20px; }
#prototype-status:empty, #prototype-confirm-status:empty { display: none; }
#prototype-status[data-error=true] { color: #973e29; background: var(--color-surface); border-color: currentColor; }
#prototype-retry { font: inherit; font-size: .82rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 10px; color: var(--color-green-dark); padding: 10px 16px; min-height: 44px; cursor: pointer; }
.prototype-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#prototype-confirm-profile { font-size: .85rem; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
#prototype-confirm-profile details { margin: 16px 0; }
#prototype-confirm-profile summary { cursor: pointer; min-height: 36px; align-content: center; }
.prototype-page :focus-visible { outline: 2px solid var(--color-green-dark); outline-offset: 3px; }
.prototype-page :is(h2, section) { scroll-margin-top: 100px; }
@media (max-width: 960px) {
  .prototype-shell { width: min(720px, calc(100% - 40px)); margin: 36px auto 56px; grid-template-columns: 1fr; gap: 30px; }
  .prototype-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 16px 28px; }
  .prototype-heading h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); max-width: 16ch; }
  .prototype-product { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .prototype-program-note, .prototype-selection { grid-column: 1; }
  .prototype-selection { margin-top: 0; }
}
@media (max-width: 620px) {
  .prototype-shell { width: calc(100% - 32px); margin-top: 28px; gap: 28px; }
  .prototype-intro { grid-template-columns: minmax(0, 1fr) 128px; gap: 18px 16px; }
  .prototype-heading { grid-column: 1 / -1; }
  .prototype-heading h1 { max-width: 17ch; margin-bottom: 16px; font-size: clamp(2rem, 7.5vw, 2.6rem); }
  .prototype-lead { font-size: .83rem; }
  .prototype-product { grid-column: 2; grid-row: 2; max-width: none; margin: 0; }
  .prototype-product img { border-radius: 14px; }
  .prototype-product figcaption { font-size: .62rem; }
  .prototype-program-note { grid-column: 1; grid-row: 2; gap: 8px; }
  .prototype-selection { grid-column: 1 / -1; margin-top: 0; max-width: none; }
  .prototype-grid { grid-template-columns: 1fr; gap: 0; }
  .prototype-card, #prototype-confirmation { padding: 22px 18px; border-radius: 18px; }
  .prototype-card-heading { margin-bottom: 22px; gap: 10px; }
  .prototype-card h2 { font-size: 1.05rem; }
  .prototype-dimensions > div { grid-template-columns: 1fr; }
}
