:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #24212b; background: white; line-height: 1.5; color-scheme: light;
  --ink: #24212b; --muted: #625b6c; --line: #e3dfe7; --lilac: #f3eef7;
  --purple: #6143b5; --deep: #493477; --green: #256444;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3, legend { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.45rem); letter-spacing: -.04em; font-weight: 660; }
h2, legend { font-size: 1.32rem; letter-spacing: -.025em; font-weight: 650; }
h3 { font-size: 1.07rem; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid #75539b; outline-offset: 3px; }
.skip { position: absolute; top: -5rem; left: 1rem; padding: .6rem 1rem; background: white; z-index: 2; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 64px, 1060px); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); background: white; }
.mast, #account { display: flex; align-items: center; }
.mast { min-height: 76px; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.17rem; letter-spacing: -.025em; line-height: 1.12; }
.brand img { width: 38px; height: 36px; object-fit: contain; }
#account { gap: 15px; font-size: .92rem; }
.account-name { font-weight: 600; }
main { flex: 1; padding-block: clamp(28px, 5vw, 60px) 64px; }
main:focus, h1:focus { outline: none; }
footer { color: var(--muted); font-size: .86rem; border-top: 1px solid var(--line); padding: 20px 0; }
footer span { margin: 0 .35rem; }
.message-wrap:has(#notice[hidden]) { display: none; }
#notice { margin-top: 20px; padding: 14px 18px; background: #fff1ed; color: #733425; border-radius: 12px; }
#notice button { color: inherit; margin-left: .6rem; }
.primary, .secondary, .text-button, .nav-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 43px;
  border-radius: 1.6rem; font-weight: 600; line-height: 1.3; border: 1px solid transparent;
}
.primary, .secondary { padding: 9px 20px; }
.primary { background: var(--purple); color: white; }
.primary:hover:enabled { background: #51349f; }
.secondary { background: white; color: var(--deep); border-color: #d1c7dd; }
.secondary:hover:enabled { background: var(--lilac); }
.text-button, .nav-link { padding: 3px 4px; background: transparent; color: var(--deep); }
.text-button:hover, .nav-link:hover { text-decoration: underline; text-underline-offset: 3px; }
input:not([type=radio]):not([type=checkbox]), select {
  font-size: 1rem; background: white; border: 1px solid #a9a2af; border-radius: 8px;
  padding: 9px 11px; min-height: 45px; width: 100%; max-width: 34rem;
}
select:not([multiple]):not([size]) {
  appearance: none; -webkit-appearance: none; padding-inline-end: 2.1rem;
  background-image: linear-gradient(45deg,transparent 45%,#5c5068 46% 66%,transparent 67%),
    linear-gradient(-45deg,transparent 45%,#5c5068 46% 66%,transparent 67%);
  background-size: .35rem .4rem; background-repeat: no-repeat;
  background-position: right 1.02rem center, right .75rem center;
  min-width: 0;
}
@media (forced-colors: active) {
  select:not([multiple]):not([size]) { appearance: auto; background-image: none; }
}
input[type=radio] { accent-color: var(--purple); width: 18px; height: 18px; margin: 0; }
.login { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(245px, .7fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 16px; background: var(--lilac); padding: clamp(24px, 4vw, 46px); }
.login .hero { min-height: 355px; display: flex; flex-direction: column; justify-content: center; }
.hero-copy { width: 68%; }
.hero p, .intro p, .login-form p, .review-block p { color: var(--muted); margin-top: 9px; max-width: 65ch; }
.edition { display: block; color: #5b496c; font-weight: 620; font-size: .93rem; margin-bottom: 10px; }
.art { position: absolute; z-index: -1; right: 0; bottom: 0; width: 29%; height: 94%; display: flex; align-items: flex-end; justify-content: center; }
.art::before { content: ""; position: absolute; z-index: -1; inset: 25% 6% -10% 0; border-radius: 55% 55% 0 0; background: #e7ddef; }
.art img { height: 91%; width: 86%; object-fit: contain; object-position: center bottom; }
.login-form { padding-block: 12px; }
.login-form h2 { font-size: 1.75rem; }
.login-form label, .field label, .editor-field { display: block; font-weight: 600; }
.login-form label { margin: 22px 0 5px; }
.login-form .primary { margin-top: 18px; }
.login-form .practice-link { display: flex; margin-top: 12px; font-size: .9rem; }
.overview { max-width: 860px; margin: 0 auto; }
.overview .hero { min-height: 198px; display: flex; align-items: center; }
.overview .art { width: 24%; }
.section-title { margin: 28px 0 8px; }
.part { width: 100%; display: flex; gap: 14px; align-items: center; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.part:hover .part-name { color: var(--deep); text-decoration: underline; }
.part-name { font-size: 1.09rem; font-weight: 650; }
.part small { display: block; color: var(--muted); font-size: .93rem; margin-top: 3px; }
.part .status { margin-left: auto; white-space: nowrap; }
.status { font-weight: 600; font-size: .89rem; color: var(--muted); }
.status.complete { color: var(--green); }
.chevron { font-size: 1.45rem; color: var(--deep); }
.nav-link { font-size: .9rem; margin: -8px 0 15px; }
.intro { margin-bottom: 26px; }
.intro h1 { font-size: clamp(2rem, 3.8vw, 2.8rem); }
.form-column, .review-column { max-width: 770px; margin: 0 auto; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.actions { margin-top: 22px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.field { margin: 0 0 23px; }
.field label, .field legend { font-size: 1rem; letter-spacing: 0; font-weight: 620; }
.field input:not([type=radio]), .field select, .editor-field input, .editor-field select { display: block; margin-top: 6px; }
.input-unit.count { max-width: 12rem; }
.field select { max-width: 22rem; }
.hint { color: var(--muted); margin: 3px 0 8px; }
.segments {
  display: inline-flex; margin-top: 9px; border: 1px solid #82768c;
  border-radius: 10px; background: white; vertical-align: top;
}
.segments label { position: relative; display: flex; cursor: pointer; }
.segments label + label { border-inline-start: 1px solid #82768c; }
.segments label:first-child { border-radius: 9px 0 0 9px; }
.segments label:last-child { border-radius: 0 9px 9px 0; }
.segments input[type=radio] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.segments label > span {
  display: flex; align-items: center; justify-content: center; min-width: 6rem; min-height: 44px;
  padding: 8px 23px; border-radius: inherit; font-weight: 580; color: var(--deep);
}
.segments label:hover > span { background: var(--lilac); }
.segments input:checked + span { background: var(--deep); color: white; font-weight: 690; }
.segments input:checked + span::before, .status.complete::before {
  content: ""; width: .55em; height: .29em; border: solid currentColor; border-width: 0 0 2px 2px;
  transform: translateY(-.14em) rotate(-45deg);
}
.segments input:checked + span::before { position: absolute; left: 11px; }
.segments label:has(:focus-visible) { z-index: 2; outline: 3px solid #75539b; outline-offset: 3px; }
.status.complete { display: inline-flex; align-items: center; gap: .4em; }
.input-unit {
  display: flex; align-items: center; min-width: 0; margin-top: 6px;
  background: white; border: 1px solid #a9a2af; border-radius: 8px;
}
.input-unit input:not([type=radio]):not([type=checkbox]) {
  flex: 1; min-width: 0; width: 0; max-width: none; min-height: 43px; margin: 0;
  border: 0; padding: 8px 11px; border-radius: inherit; background: transparent;
  font-weight: 450; font-variant-numeric: tabular-nums; outline: none;
}
.input-unit:focus-within { border-color: var(--purple); outline: 2px solid var(--purple); outline-offset: 1px; }
.input-unit:has([aria-invalid=true]) { border-color: #9a362b; outline: 2px solid #9a362b; outline-offset: 1px; }
.unit-prefix, .unit-suffix { color: var(--muted); font-size: .9rem; font-weight: 500; }
.unit-prefix { padding-left: 11px; }
.input-unit .unit-prefix + input[data-answer] { padding-left: 4px; }
.unit-suffix { padding-right: 11px; }
.region-field { margin-top: 26px; }
.region-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.region-segments { margin-top: 0; max-width: 100%; }
.region-segments label { min-width: 0; }
.region-segments label > span { min-width: 0; width: clamp(4.8rem, 21vw, 6.4rem); }
.region-segments input:checked + span::before { left: 7px; }
.suggestion {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; width: fit-content; max-width: 100%;
  margin: 8px 0 12px; padding: 0 12px; border-radius: 8px; background: var(--lilac); font-size: .93rem;
}
.suggestion strong { margin-inline-start: .25em; font-weight: 650; }
.field-hint { color: var(--muted); }
.suggestion .text-button { min-height: 44px; font-size: .9rem; text-decoration: underline; text-underline-offset: .18em; }
@media (forced-colors: active) {
  .segments input:checked + span { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  .segments label:has(:focus-visible), .input-unit:focus-within { outline-color: Highlight; }
}
.review-block, .role-editor { margin-top: 24px; }
.block-head, .role-heading, .group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.block-head { padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.answers { margin-top: 8px; }
.answers div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 1fr); gap: 14px; padding: 5px 0; }
.answers dt { color: var(--muted); }
.answers dd { font-weight: 590; }
.role-review { margin-top: 14px; }
.role-review ul, .missing { padding-left: 22px; margin: .45rem 0; }
.role-review li + li { margin-top: 5px; }
.review-submit { margin-top: 26px; background: var(--lilac); border-radius: 12px; padding: 20px 24px; }
.review-submit p { margin: 0 0 12px; }
.receipt .hero { background: #eaf3ed; }
.receipt .edition { color: var(--green); }
.receipt dd { overflow-wrap: anywhere; }
.position-choice { margin-bottom: 22px; }
.position-choice legend { font-size: 1rem; letter-spacing: 0; }
.field-hint { margin-top: 4px; }
.pay-group-picker { margin-top: 15px; }
.pay-group-picker legend { font-size: .98rem; letter-spacing: 0; }
.pay-group-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pay-group-options .secondary { gap: 5px; min-height: 44px; border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.pay-group { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.group-heading h4 { margin: 0; }
.pay-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 8px 0 16px; }
.role-list, .role-editor { min-width: 0; }
.role-editor { padding: 18px 20px; background: #f8f6fa; border-radius: 12px; }
.role-heading { margin-bottom: 12px; }
.editor-field { font-weight: 560; }
.role-picker { margin-block: 22px; }
.role-picker legend { font-size: 1rem; letter-spacing: 0; }
.role-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.role-options .secondary { gap: 6px; min-height: 44px; border-radius: 8px; padding: 8px 13px; }
.editor-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px;
  margin-top: 22px; border-top: 1px solid var(--line); padding: 8px 0;
  background: white;
}
.editor-footer .guided-controls { margin: 0; }
.autosave-bar { display: flex; flex-wrap: wrap; gap: 3px 14px; align-items: center; }
@media (min-height: 600px) and (min-width: 650px) {
  .editor-footer { position: sticky; bottom: 0; z-index: 3; }
  #fields :is(input, button) { scroll-margin-block-end: 76px; }
}
.autosave-bar button { font-size: .89rem; }
.autosave-bar button:disabled { visibility: hidden; }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); } .mast { min-height: 65px; }
  .login { grid-template-columns: 1fr; gap: 18px; }
  .login .hero { min-height: 220px; } .login .hero-copy { width: 69%; }
  .login-form { max-width: 34rem; }
  .pay-fields { grid-template-columns: 1fr; gap: 9px; }
}
@media (max-width: 470px) {
  .brand { gap: 7px; font-size: .97rem; max-width: 150px; }
  .brand img { width: 31px; height: 32px; }
  #account { gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 126px; }
  #account .text-button { min-height: 30px; } .account-name { font-size: .8rem; }
  .part { flex-wrap: wrap; gap: 3px 12px; }
  .part .part-copy { width: 90%; } .part .status { margin-left: 0; }
  .chevron { margin-left: auto; }
  .hero { padding: 21px 17px; } .hero-copy { width: 74%; }
  .login .hero-copy { width: 74%; } .login .art { width: 25%; height: 72%; }
  .role-editor { padding: 14px; }
}

.survey-nav { margin: 0 0 26px; }
.survey-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--line); }
.survey-steps button {
  display: inline-flex; gap: 7px; align-items: center; justify-content: flex-start;
  padding: 9px 5px; min-height: 44px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-weight: 600; text-align: left;
}
.survey-steps button:hover { color: var(--deep); }
.survey-steps button[aria-current=step] { border-bottom-color: var(--purple); color: var(--deep); }
.survey-steps .step-count { font-size: .82rem; font-weight: 550; font-variant-numeric: tabular-nums; }
.survey-progress { display: flex; align-items: center; gap: 15px; padding: 9px 0; color: var(--muted); font-size: .91rem; }
.survey-progress progress {
  width: min(135px, 27%); height: 5px; overflow: hidden; border: 0; border-radius: 6px;
  appearance: none; background: var(--line); color: var(--purple); accent-color: var(--purple);
}
.survey-progress progress::-webkit-progress-bar { background: var(--line); }
.survey-progress progress::-webkit-progress-value { background: var(--purple); }
.survey-progress progress::-moz-progress-bar { background: var(--purple); }
.guided-controls, .review-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-block .answers > div, .receipt .answers > div {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 12px; padding: 6px 0;
}
.review-block .answers .optional-answer { color: var(--muted); font-weight: 450; }
.review-block .answers .answer-required { align-items: center; padding-block: 4px; }
.fix-answer {
  display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; min-height: 38px;
  border: 0; border-radius: 7px; background: #fcf2ec; color: #713a2e;
  padding: 7px 10px; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px;
}
.fix-answer:hover { background: #f7e8dd; }
.role-review { margin-top: 19px; }
.review-pay { margin: 8px 0 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.review-pay:last-child { border-bottom: 0; }
.review-pay h4 { margin: 0; font-size: .96rem; }
.review-pay .answers { margin-top: 3px; }
@media (max-width: 480px) {
  .survey-steps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 0 7px; }
  .survey-steps button { flex-direction: column; align-items: flex-start; justify-content: space-between;
    gap: 3px; font-size: .87rem; line-height: 1.25; padding-inline: 2px; }
  .survey-steps .step-count { font-size: .75rem; }
  .survey-progress { display: grid; gap: 4px; }
  .survey-progress progress { width: 100%; height: 4px; }
  .review-block .answers > div, .receipt .answers > div { gap: 0 9px; }
}

.survey-preparation { margin-top: 1.8rem; max-width: 68ch; border-top: 1px solid var(--line); padding-block: .75rem; }
.survey-preparation summary { padding: .5rem 0; cursor: pointer; font-weight: 650; color: var(--deep); }
.survey-preparation h3 { margin: 1rem 0 .25rem; font-size: 1rem; }
.survey-preparation p { margin-bottom: .7rem; }
.handover-form { display: flex; align-items: end; flex-wrap: wrap; gap: .8rem 1rem; padding: .5rem 0; }
.handover-form .field { margin: 0; }
.handover-request { margin: 1rem 0; padding: .85rem 1rem; background: var(--lilac); border-radius: .7rem; overflow-wrap: anywhere; }
.handover-request p { margin: 0; }
.handover-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; }
.handover-actions:not(:empty) { margin-top: .5rem; }
.handover-actions button { max-width: 100%; }
.handover-resolved { background: var(--surface, #f6f5f7); }

.edition-bar { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.25rem; padding-block: .75rem; border-bottom: 1px solid var(--line); }
.edition-picker { display: flex; align-items: center; gap: .65rem; }
.edition-picker label { font-size: .83rem; color: var(--muted); font-weight: 600; }
.edition-picker select { background-color: #f7f5f9; border: 1px solid #dbd5e1; border-radius: 7px; width: auto; min-height: 40px; padding: .4rem .55rem; font-size: .93rem; font-weight: 600; }
.edition-window { min-width: 0; color: var(--muted); font-size: .88rem; }
.edition-window summary { display: flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; }
.edition-window summary:hover .edition-deadline { color: var(--deep); text-decoration: underline; text-underline-offset: .2rem; }
.edition-window [data-window-status] { display: inline-flex; align-items: center; align-self: center; gap: .4rem; padding: .15rem .6rem; border-radius: 20px; font-weight: 650; color: #51475e; background: #f1edf4; }
.edition-window [data-phase=open] { background: #e7f3eb; color: #286244; }
.edition-window [data-window-status]::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.edition-window .edition-date-details { max-width: 35rem; padding: .65rem 1rem; margin-top: .4rem; background: #f7f5f9; border-radius: 9px; }
.edition-date-details .answers { margin: 0; }
.edition-date-details .answers div { padding-block: .25rem; }
.edition-date-details dd { color: var(--ink); }
@media (max-width: 680px) {
  .edition-bar { display: grid; padding-block: .6rem; }
  .edition-window summary { align-items: center; }
  .edition-deadline { line-height: 1.35; }
}


/* Employer survey workspace */
.login { align-items: start; grid-template-columns: minmax(0, 1.12fr) minmax(19rem, .88fr); gap: 3rem; }
.login .hero { min-height: 21rem; }
.login .hero h1, .survey-home .hero h1, .receipt .hero h1 { font-size: 2.65rem; line-height: 1.08; }
.login .hero-copy { width: 72%; }
.login-form { padding: .5rem 0 1rem; }
.login-form h2 { font-size: 1.5rem; }
.login-form label { margin-block: 1.15rem .35rem; }
.login-form .actions { margin-top: 1rem; }
.login-form .actions :is(.primary,.practice-link) { margin: 0; }
.login-access .access-entry { margin: .75rem 0 0; }
.login-access .access-entry details { border-top: 1px solid var(--line); margin: 0; padding-block: .25rem; }
.login-access .access-entry summary { padding-block: .65rem; color: var(--deep); }
.staff-entry .actions { align-items: start; flex-direction: column; }

.survey-home, .receipt { max-width: none; }
.survey-home .hero, .receipt .hero { padding: 1.75rem 2rem; min-height: 12rem; }
.survey-home .hero-copy, .receipt .hero-copy { width: 75%; }
.survey-home .edition { margin-bottom: .4rem; }
.survey-home .art, .receipt .art { width: min(24%, 12.5rem); right: 2rem; }
.survey-home .actions { margin-top: 1rem; }
.overview-work { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(13.5rem, 1fr); align-items: start; gap: 2.25rem; margin-block: 2rem; }
.survey-list-head { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.survey-list h2, .survey-tools h2, .receipt-record h2 { font-size: 1.25rem; }
.survey-list-head .text-button { font-size: .9rem; min-height: 2.75rem; }
.survey-list > .survey-progress { display: grid; gap: .45rem; padding: .15rem 0 1rem; }
.survey-list > .survey-progress progress { width: 100%; }
.survey-list .part { background: transparent; padding: 1rem .25rem; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .75rem; }
.survey-list .part:first-of-type { border-top: 1px solid var(--line); }
.survey-list .part:hover { background: var(--lilac); }
.survey-list .part-copy { width: auto; }
.survey-list .part small, .part-count { font-size: .87rem; color: var(--muted); }
.part-progress { display: grid; justify-items: end; }
.part-count { font-variant-numeric: tabular-nums; }
.survey-tools { background: #f7f5f9; border-radius: .8rem; padding: 1.1rem 1.25rem .65rem; }
.survey-tools h2 { margin-bottom: .6rem; }
.survey-tools .survey-preparation, .receipt-tools .survey-preparation { max-width: none; margin: 0; padding: .1rem 0; }
.survey-tools .survey-preparation summary, .receipt-tools .survey-preparation summary { padding-block: .7rem; }
.survey-tools .portal-home-receipts { justify-content: space-between; width: 100%; padding: .55rem 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); text-align: start; }
.survey-tools .handover-form { align-items: start; flex-direction: column; }
.survey-tools .handover-form .field, .survey-tools .handover-form select { width: 100%; }
.survey-tools .handover-request { padding: .75rem; margin: .4rem 0 .9rem; }

.survey-editor, .survey-review { margin-inline: auto; width: 100%; max-width: 54rem; }
:is(.survey-editor,.survey-review) .nav-link { margin-bottom: .25rem; }
:is(.survey-editor,.survey-review) .intro { margin-bottom: 1.2rem; }
:is(.survey-editor,.survey-review) .intro .edition { margin-bottom: .35rem; }
:is(.survey-editor,.survey-review) .intro h1 { font-size: 2rem; }
.survey-nav { margin-bottom: 1.25rem; }
.survey-steps { gap: .15rem; }
.survey-steps button { padding: .65rem .85rem; min-height: 2.85rem; }
.survey-steps button[aria-current=step] { background: var(--lilac); border-radius: .45rem .45rem 0 0; }
.survey-steps .step-count { padding: .1rem .35rem; border-radius: .4rem; background: #f3f1f4; color: var(--muted); }
.survey-steps [aria-current] .step-count { background: #e4d9ef; color: var(--deep); }
.survey-nav .survey-progress { font-size: .85rem; padding-top: .6rem; }
.survey-editor #fields { background: white; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: .85rem; }
.survey-editor #fields > .field:last-child, .survey-editor #fields > .position-choice { margin-bottom: 0; }
.survey-editor .region-field { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .35rem; }
.survey-editor .region-field legend { padding: 0 .65rem 0 0; }
.survey-editor .role-editor { padding: 1.2rem; }
.survey-editor .pay-group { margin-top: .7rem; }
.survey-editor .role-heading h3 { font-size: 1.2rem; scroll-margin-block-start: 1rem; }
.survey-editor .group-heading h4 { font-size: 1rem; }
.survey-editor .role-picker { margin-bottom: 0; }
.survey-editor .region-segments label > span { padding-inline: .4rem; gap: .3rem; }
.survey-editor .region-segments input:checked + span::before { position: static; flex: none; }
.survey-editor .role-heading button, .survey-editor .group-heading button { color: var(--muted); font-size: .87rem; font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.role-index { margin-top: 1.25rem; padding: .3rem 0; border-block: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0 .8rem; align-items: center; }
.role-index-label { color: var(--muted); font-size: .9rem; }
.role-index button { min-height: 2.75rem; }
.survey-editor .editor-footer { margin-top: .75rem; padding: .6rem 0; }
.entry-error { font-size: .9rem; color: #813323; margin-top: .3rem; }
.review-readiness { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .1rem 1rem; padding: .4rem 1rem; background: #fbf1e7; border-radius: .65rem; }
.review-readiness .text-button { color: #683c25; }
.survey-review .review-block { margin-top: 1.5rem; }
.survey-review .block-head { border-bottom-color: #ccc7d3; }
.survey-review .answers > div, .receipt-record .answers > div { display: grid; grid-template-columns: minmax(9rem, .8fr) minmax(0, 1.2fr); align-items: baseline; gap: .35rem 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.survey-review .review-block .answers .answer-required { padding-block: .45rem; }
.survey-review .review-submit { padding: 1.25rem; }
.survey-review .review-submit h2 { margin-bottom: .3rem; }
.receipt-record { margin-block: 1.5rem; max-width: 48rem; }
.receipt-tools { max-width: 48rem; }
.receipt-record .answers dt { font-weight: 500; }

@media (max-width: 900px) {
  .login { gap: 1.75rem; }
  .overview-work { gap: 1.25rem; }
}
@media (max-width: 720px) {
  .login { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .login .hero { min-height: 10rem; padding: 1.25rem; }
  .login .hero h1, .survey-home .hero h1, .receipt .hero h1 { font-size: 2rem; }
  .login .hero-copy { width: 72%; }
  .overview-work { grid-template-columns: minmax(0,1fr); gap: 1.5rem; margin-block: 1rem; }
  .survey-home .hero, .receipt .hero { padding: 1.25rem; min-height: 10rem; }
  .survey-home .art, .receipt .art { right: .25rem; width: 22%; }
  .survey-editor #fields { padding: 1rem; }
  .survey-editor .role-editor { padding: 1rem; }
}
@media (max-width: 480px) {
  .survey-home .hero-copy { width: 78%; }
  .survey-list .part { grid-template-columns: minmax(0,1fr) auto; gap: .4rem .75rem; }
  .survey-list .part-copy { grid-column: 1; }
  .survey-list .part-progress { grid-column: 1; display: flex; gap: .65rem; align-items: center; }
  .survey-list .chevron { grid-column: 2; grid-row: 1 / span 2; }
  .survey-steps button { padding: .55rem .35rem; }
  .survey-nav .survey-progress { display: flex; gap: .6rem; }
  .survey-nav .survey-progress progress { max-width: 3.5rem; }
  .survey-editor .region-segments label > span { width: 4.65rem; }
  .survey-editor .pay-group-options { gap: .4rem; }
  .survey-editor .pay-group-options .secondary { min-height: 2.75rem; font-size: .88rem; }
  .survey-review .answers > div, .receipt-record .answers > div { grid-template-columns: minmax(0,1fr); gap: .1rem; }
}

.recovery-notice { padding: 1rem 1.25rem; margin: 1rem 0; background: #f4eff8; border-radius: .75rem; }
.recovery-notice h2 { margin: 0; font-size: 1.15rem; }
.recovery-notice details { margin: .75rem 0; }
.recovery-notice button + button { margin-inline-start: .75rem; }

.survey-library { overflow-wrap: anywhere; }
.survey-library > h2, .survey-library > details { margin-top: 2rem; }
.survey-library > h1 + p, .survey-library > h2 + p { margin-top: .5rem; }
.survey-library > .text-button, .survey-library > dl { margin-top: 1.5rem; }
.survey-library dl dt { font-weight: 600; }
.survey-library dl dd { margin-bottom: 1rem; }
.survey-library .import-form { display: grid; justify-items: start; gap: .85rem; margin-block: 1.5rem; padding: clamp(1rem, 3vw, 1.7rem); background: var(--lilac); border-radius: 12px; }
.survey-library .import-form label { display: grid; gap: .35rem; font-weight: 600; width: min(100%, 32rem); margin: 0; }
.survey-library .import-form .hint { margin: 0; }
.survey-library .survey-list-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.survey-library .survey-list-row > div { min-width: 0; }
.survey-library .import-fields { display: grid; gap: 1rem; margin-top: 1.5rem; }
.survey-library .import-fields fieldset label { display: block; margin-block: .35rem; }
.survey-library details li { margin-bottom: .8rem; }

.editor-field textarea { display: block; width: 100%; max-width: 34rem; margin-top: 6px; padding: 9px 11px; font: inherit; font-weight: normal; border: 1px solid #a9a2af; border-radius: 8px; resize: vertical; }

.survey-library .survey-instruction { list-style-type: none; }

.survey-library .collection-settings { margin: 2rem 0; }
.survey-library .organization-deadline { width: 100%; }
.survey-library .organization-deadline .actions { margin-top: .75rem; }
