.submit-page { background: #edf8f5; }
.submit-page .poll-header nav a, .submit-page .poll-header nav button { display: inline-grid; place-items: center; padding: 9px 14px; border: var(--line); border-radius: 999px; background: var(--paper); font-weight: 900; text-align: center; text-decoration: none; }
.submit-page .poll-header nav button[aria-pressed="true"] { background: var(--yellow); }
.submit-hero { margin-inline: 0; padding: clamp(68px, 9vw, 120px) clamp(14px, 4vw, 56px) 76px; background: var(--ink); color: var(--paper); }
.submit-hero h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
.submit-hero > p:last-child { max-width: 760px; margin: 26px 0 0; color: #e5e3f1; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.network-truth { margin-bottom: 0; }
.handoff-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: clamp(22px, 4vw, 44px); padding-block: clamp(64px, 8vw, 110px); }
.handoff-card, .boundary-card { border: var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.handoff-card { min-width: 0; padding: clamp(22px, 4vw, 42px); }
.step-label { display: flex; align-items: center; gap: 14px; }
.step-label > span { display: grid; width: 44px; aspect-ratio: 1; flex: 0 0 auto; place-items: center; border: var(--line); border-radius: 50%; background: var(--yellow); font-weight: 950; }
.step-label p { display: grid; margin: 0; }
.step-label strong { font-size: 1.15rem; }
.step-label small, .file-control small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.file-control { display: grid; gap: 10px; margin: 24px 0 0; padding: 20px; border: 2px dashed var(--ink); border-radius: 17px; background: var(--cream); font-weight: 900; }
.file-control input { width: 100%; min-height: 48px; padding: 8px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); font: inherit; }
.file-control input::file-selector-button { min-height: 38px; margin-right: 12px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--mint); color: var(--ink); font: inherit; font-size: .85rem; font-weight: 900; cursor: pointer; }
.aggregate-preview { margin-top: 28px; padding: 22px; border: var(--line); border-radius: 18px; background: #f1ecff; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.preview-heading h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.preview-total { display: grid; min-width: 100px; padding: 12px; border: var(--line); border-radius: 13px; background: var(--yellow); text-align: center; }
.preview-total strong { font-size: 2.1rem; line-height: 1; }
.preview-total span { font-weight: 900; }
.preview-total small { margin-top: 4px; }
.aggregate-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 22px 0 0; }
.aggregate-preview dl div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #aaa5bf; border-radius: 10px; background: var(--paper); }
.aggregate-preview dt { font-weight: 850; }
.aggregate-preview dd { margin: 0; font: 950 1.1rem ui-monospace, SFMono-Regular, Menlo, monospace; }
#parent-preview-questions { display: grid; gap: 10px; margin-top: 20px; }
#parent-preview-questions section { padding: 12px 14px; border: 1px solid #aaa5bf; border-radius: 10px; background: var(--paper); }
#parent-preview-questions h3, #parent-preview-questions p { margin: 0; }
#parent-preview-questions h3 { font-size: 1rem; }
#parent-preview-questions p { margin-top: 5px; color: var(--muted); font-size: .86rem; }
.confirm-step { margin-top: 34px; }
.adult-confirm { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin-top: 20px; padding: 18px; border: var(--line); border-radius: 15px; background: var(--yellow); font-weight: 800; line-height: 1.45; }
.adult-confirm input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.submit-boundary { margin-top: 24px; padding-top: 24px; border-top: 2px solid #dedce5; }
.submit-boundary p { margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.submit-boundary button { width: 100%; min-height: 54px; padding: 12px 18px; border: var(--line); border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 950; }
.submit-boundary button:disabled { opacity: .45; cursor: not-allowed; }
.form-status { min-height: 28px; margin: 15px 0 0; font-weight: 850; }
.form-status[data-kind="error"] { color: var(--coral-dark); }
.form-status[data-kind="success"] { color: #17684f; }
.boundary-column { display: grid; align-content: start; gap: 18px; }
.boundary-card { padding: 24px; box-shadow: 0 4px 0 var(--ink); }
.boundary-card h2 { font-size: 1.45rem; letter-spacing: -.02em; }
.boundary-card ul { padding-left: 21px; }
.boundary-card li { margin: 8px 0; line-height: 1.4; }
.boundary-card > p:last-child { margin-bottom: 0; }
.boundary-card.sent { background: #e5f8ef; }
.boundary-card.rejected { background: #fff0ee; }
.boundary-card.limitation { background: #fff7d9; }
.mjl-report-bug { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--ink); font: 700 14px system-ui, sans-serif; text-decoration: none; }

@media (max-width: 900px) {
  .handoff-layout { grid-template-columns: 1fr; }
  .boundary-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .submit-page .poll-header { position: relative; }
  .submit-page .poll-header nav { max-width: 190px; }
  .submit-page .poll-header nav a, .submit-page .poll-header nav button { width: 100%; font-size: .72rem; }
  .preview-heading { display: grid; }
  .preview-total { justify-self: start; }
  .aggregate-preview dl, .boundary-column { grid-template-columns: 1fr; }
  .mjl-report-bug { position: relative; right: auto; bottom: auto; margin: 18px 12px 96px auto; width: max-content; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media print {
  .mjl-report-bug { display: none !important; }
}
