:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-soft: #fdf7f2;
  --ink: #222529;
  --muted: #66706f;
  --line: #d9dfd9;
  --line-strong: #bcc8c1;
  --accent: #ff481f;
  --accent-dark: #d93411;
  --forest: #176b58;
  --forest-soft: #e8f2ed;
  --sky: #e7f0f7;
  --warning: #a66710;
  --danger: #bd2a2a;
  --shadow: 0 18px 60px rgba(35, 42, 36, 0.12);
  --radius: 8px;
  --control-height: 48px;
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0, rgba(246, 248, 244, 0.95) 360px),
    var(--bg);
  color: var(--ink);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 223, 217, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 84px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 180px;
}

.brand-logo {
  width: 214px;
  max-width: 38vw;
  height: auto;
}

.program-label,
.summary-kicker {
  display: inline-block;
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.notice-link,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.notice-link {
  padding: 8px 13px;
  border: 1px solid rgba(23, 107, 88, 0.22);
  background: var(--forest-soft);
  color: var(--forest);
  text-decoration: none;
}

.status-chip {
  min-width: 82px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 42px auto 80px;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 114px;
  display: grid;
  gap: 20px;
}

.program-card,
.summary-block,
.support-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 10px 28px rgba(24, 32, 24, 0.06);
}

.program-card h1 {
  margin: 6px 0 0;
  font-size: 25px;
  line-height: 1.18;
  letter-spacing: 0;
}

.summary-block strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.24;
}

.summary-block p,
.section-heading p,
.side-panel small,
.field small,
.upload-zone small,
.choice-card small {
  color: var(--muted);
}

.summary-block p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.step-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.step-list li.is-active {
  border-color: rgba(23, 107, 88, 0.22);
  background: var(--forest-soft);
}

.step-list span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--forest);
  font-weight: 900;
}

.step-list strong,
.support-box strong {
  display: block;
}

.step-list small {
  display: block;
  margin-top: 3px;
  line-height: 1.45;
}

.support-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.support-box strong {
  margin: 5px 0;
  font-size: 21px;
}

.support-box a {
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.application-form {
  display: grid;
  gap: 30px;
}

.mobile-start-actions,
.mobile-wizard-nav {
  display: none;
}

.form-section {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.section-heading.with-action {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.heading-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 42px;
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.section-heading h2,
.dialog-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
}

.section-heading p {
  margin: 6px 0 0;
  line-height: 1.58;
}

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

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 96px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.choice-card:has(input:checked) {
  border-color: rgba(255, 72, 31, 0.65);
  box-shadow: 0 12px 32px rgba(255, 72, 31, 0.12);
}

.choice-card:hover {
  transform: translateY(-1px);
}

.choice-card input,
.notice-list input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.choice-card strong {
  display: block;
  font-size: 18px;
}

.choice-card small {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

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

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field span {
  color: #2b312f;
  font-size: 14px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.date-control {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 46px;
}

.phone-control {
  display: grid;
  grid-template-columns: 1fr 46px;
}

.phone-control input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.contact-trigger {
  display: inline-grid;
  min-height: var(--control-height);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--forest-soft);
  color: var(--forest);
}

.contact-trigger svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.contact-trigger:disabled {
  color: #93a09a;
  background: #eef2ee;
  cursor: not-allowed;
}

.field input.is-verified-phone {
  background: #f3f7f5;
  color: var(--forest);
  font-weight: 800;
}

.date-control input {
  border-radius: var(--radius) 0 0 var(--radius);
}

.date-trigger {
  display: inline-grid;
  min-height: var(--control-height);
  place-items: center;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  color: var(--ink);
}

.date-trigger svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.field input,
.field select {
  padding: 0 14px;
}

.field textarea {
  resize: vertical;
  min-height: 138px;
  padding: 14px;
  line-height: 1.62;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(23, 107, 88, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #99a29c;
}

.field small {
  justify-self: end;
  font-size: 12px;
}

.field.full-width,
.field.stacked {
  grid-column: 1 / -1;
}

.date-row,
.proof-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 180px;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.nights-box {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sky);
}

.nights-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.nights-box strong {
  font-size: 21px;
}

.team-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(23, 107, 88, 0.18);
  border-radius: var(--radius);
  background: var(--forest-soft);
}

.team-meter strong {
  color: var(--forest);
}

.team-meter span {
  color: var(--muted);
}

.team-meter.is-warning {
  border-color: rgba(166, 103, 16, 0.34);
  background: #fff5e6;
}

.team-meter.is-warning strong {
  color: var(--warning);
}

.participant-list {
  display: grid;
  gap: 16px;
}

.participant-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(26, 34, 28, 0.05);
}

.participant-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.participant-card h3 {
  margin: 0;
  font-size: 18px;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: var(--control-height);
  padding: 0 18px;
}

.primary-button {
  position: relative;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 72, 31, 0.2);
}

.primary-button.is-submitting::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: uploadSpin 0.8s linear infinite;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  white-space: nowrap;
}

.ghost-button {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.icon-button svg,
.upload-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.grow {
  grid-column: span 2;
}

.proof-toolbar {
  grid-template-columns: 1fr 180px;
  align-items: end;
}

.proof-method {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.proof-method > span {
  color: #2b312f;
  font-size: 14px;
  font-weight: 800;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.proof-method.compact {
  grid-column: 1 / -1;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: var(--control-height);
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #eef3ef;
  gap: 4px;
}

.segmented-control label {
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.segmented-control span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.segmented-control input:checked + span {
  background: var(--surface);
  color: var(--forest);
  box-shadow: 0 5px 14px rgba(30, 42, 34, 0.1);
}

.segmented-control.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-sns-box {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.sns-owner-alert {
  position: relative;
  display: none;
  margin: 0;
  overflow: hidden;
  padding: 12px 13px 12px 30px;
  border: 1px solid rgba(166, 103, 16, 0.22);
  border-radius: var(--radius);
  background: #fff8eb;
  color: #73501a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.sns-owner-alert::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(166, 103, 16, 0.65);
  transform: translateY(-50%);
}

.participant-card:not(.has-sns-owner) .sns-owner-alert,
.participant-card.needs-sns-owner .sns-owner-alert {
  display: block;
}

.participant-card.needs-sns-owner .member-sns-box {
  border-color: rgba(166, 103, 16, 0.35);
  box-shadow: 0 0 0 4px rgba(166, 103, 16, 0.08);
}

.member-sns-entry {
  display: grid;
  gap: 12px;
}

.member-sns-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: end;
}

.mini-upload {
  display: grid;
  gap: 6px;
  min-height: 76px;
  align-content: center;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}

.mini-upload.is-processing {
  cursor: wait;
  pointer-events: none;
  opacity: 0.82;
}

.mini-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.mini-upload span {
  color: var(--forest);
  font-size: 14px;
  font-weight: 900;
}

.mini-upload small,
.member-request-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mini-upload .upload-preview {
  width: 96px;
  height: 96px;
}

.mini-upload.has-preview .upload-preview {
  display: block;
}

.member-request-note {
  display: none;
  margin: 0;
  padding: 12px 13px;
  border-radius: var(--radius);
  background: var(--forest-soft);
}

.participant-card.is-member-input .member-sns-entry {
  display: none;
}

.participant-card.is-member-input .member-request-note {
  display: block;
}

.participant-card:not(.has-sns-owner) .member-sns-entry {
  display: none;
}

.participant-card.is-sns-link .member-sns-capture-field {
  display: none;
}

.participant-card.is-sns-capture .member-sns-link-field {
  display: none;
}

.calendar-popover {
  position: absolute;
  z-index: 30;
  width: 310px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-head {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.calendar-selects {
  display: grid;
  grid-template-columns: 1fr 86px;
  gap: 6px;
}

.calendar-selects select {
  min-width: 0;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  outline: none;
}

.calendar-nav {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--forest-soft);
  color: var(--forest);
}

.calendar-nav svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-weekdays {
  margin-bottom: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.calendar-day:hover {
  background: var(--forest-soft);
}

.calendar-day.is-today {
  color: var(--accent);
}

.calendar-day.is-selected {
  background: var(--accent);
  color: #fff;
}

.calendar-day.is-muted {
  color: #a9b2ad;
}

.calendar-day:disabled {
  color: #c3cbc7;
  cursor: not-allowed;
  opacity: 0.55;
}

.upload-zone {
  min-height: 176px;
  display: grid;
  place-items: center;
  gap: 9px;
  padding: 26px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.upload-zone.is-processing,
.document-row.is-processing {
  cursor: wait;
  pointer-events: none;
  opacity: 0.82;
}

.upload-zone.is-processing {
  border-color: rgba(23, 107, 88, 0.3);
  background: #eef5f2;
}

.proof-channel-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(23, 107, 88, 0.18);
  border-radius: var(--radius);
  background: var(--forest-soft);
  color: var(--forest);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.upload-zone strong {
  color: var(--ink);
  font-size: 18px;
}

.upload-zone.is-dragging,
.upload-zone:hover {
  border-color: var(--accent);
  background: #fff1eb;
}

.upload-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(255, 72, 31, 0.12);
}

.upload-zone.is-processing .upload-icon,
.document-row.is-processing .document-action::before {
  animation: uploadSpin 0.8s linear infinite;
}

.upload-zone.is-processing .upload-icon {
  border: 3px solid rgba(23, 107, 88, 0.16);
  border-top-color: var(--forest);
  background: transparent;
  color: transparent;
  box-shadow: none;
}

.upload-zone.is-processing .upload-icon svg {
  opacity: 0;
}

.upload-preview {
  display: none;
  width: 112px;
  height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface);
}

.upload-zone.has-preview .upload-preview {
  display: block;
}

.upload-zone.has-preview .upload-icon {
  display: none;
}

.proof-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.resident-upload-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.resident-upload-options label {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.resident-upload-options label:hover {
  border-color: rgba(23, 107, 88, 0.35);
  transform: translateY(-1px);
}

.resident-upload-options label:has(input:checked) {
  border-color: rgba(23, 107, 88, 0.58);
  background: var(--forest-soft);
  box-shadow: 0 12px 28px rgba(23, 107, 88, 0.1);
}

.resident-upload-options input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--forest);
}

.resident-upload-options strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.resident-upload-options small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.resident-file-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 10px;
}

.resident-file-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.resident-file-item.is-valid {
  border-color: rgba(23, 107, 88, 0.3);
  background: var(--forest-soft);
}

.resident-file-item.is-invalid {
  border-color: rgba(190, 50, 38, 0.28);
  background: #fff5f3;
}

.resident-file-item strong,
.resident-file-item small {
  display: block;
}

.resident-file-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.resident-file-remove {
  min-width: 64px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 72, 31, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.document-row.is-disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.document-row.is-disabled .document-action {
  color: var(--muted);
}

.document-row.is-multiple .document-action::after {
  content: " 여러 개";
}

.proof-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.proof-thumb {
  width: 52px;
  height: 52px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.proof-item small {
  color: var(--muted);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--sky);
  color: #24566f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.upload-zone .upload-preview {
  width: min(100%, 360px);
  max-height: 320px;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: contain;
  box-shadow: 0 10px 28px rgba(25, 31, 28, 0.1);
}

.upload-zone.has-preview .upload-icon {
  display: none;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-list label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  line-height: 1.55;
}

.document-list {
  display: grid;
  gap: 8px;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.document-row.is-document-complete {
  border-color: rgba(42, 111, 216, 0.32);
  background: #f3f8ff;
}

.document-row.is-document-complete .document-main strong {
  color: #1f5fbf;
}

.document-row.is-document-complete .document-main small {
  color: #326ca8;
}

.document-row.is-document-invalid {
  border-color: rgba(190, 50, 38, 0.36);
  background: #fff5f3;
}

.document-row.is-document-invalid .document-main strong {
  color: #b42318;
}

.document-row.is-document-invalid .document-main small {
  color: #9f2f24;
}

.document-row input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.document-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.document-main strong {
  color: var(--ink);
  font-size: 15px;
}

.document-main small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-action,
.slim-button {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 13px;
}

.slim-button.is-complete {
  border-color: rgba(42, 111, 216, 0.28);
  background: #e8f2ff;
  color: #1f5fbf;
}

.document-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 900;
  white-space: nowrap;
}

.document-row.is-processing .document-action {
  background: #eef2f0;
  color: var(--muted);
}

.document-row.is-processing .document-action::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(23, 107, 88, 0.16);
  border-top-color: var(--forest);
  border-radius: 50%;
}

@keyframes uploadSpin {
  to {
    transform: rotate(360deg);
  }
}

.device-log-panel {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 107, 88, 0.22);
  border-radius: 8px;
  background: #f6faf8;
}

.device-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-log-head strong {
  color: var(--forest);
  font-size: 13px;
}

.device-log-copy {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(23, 107, 88, 0.24);
  border-radius: 7px;
  background: #fff;
  color: var(--forest);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.device-log-list {
  display: grid;
  gap: 5px;
  max-height: 180px;
  margin: 0;
  overflow: auto;
  padding: 0 0 0 18px;
  color: #385048;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.review-dialog {
  width: min(720px, calc(100% - 32px));
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.review-dialog::backdrop {
  background: rgba(15, 24, 22, 0.52);
}

.dialog-header,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
}

.dialog-header {
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.dialog-header .section-index {
  margin-bottom: 8px;
}

.dialog-actions {
  border-top: 1px solid var(--line);
  background: #fbfcfa;
}

.review-content {
  max-height: min(60vh, 560px);
  overflow: auto;
  padding: 18px 22px 22px;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.review-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.review-row dt {
  color: var(--muted);
  font-weight: 800;
}

.review-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-self: start;
    margin-bottom: 14px;
  }

  .page-shell {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .side-panel {
    position: static;
  }

  .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  body {
    background: var(--bg);
  }

  .header-inner,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 58px;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand {
    min-width: 0;
    justify-self: start;
  }

  .brand-logo {
    width: 142px;
    max-width: 52vw;
  }

  .header-actions {
    display: none;
  }

  .choice-grid,
  .form-grid,
  .date-row,
  .proof-toolbar {
    grid-template-columns: 1fr;
  }

  .member-sns-fields {
    grid-template-columns: 1fr;
  }

  .segmented-control {
    min-height: 52px;
  }

  .segmented-control span {
    min-height: 42px;
    font-size: 12px;
  }

  .calendar-popover {
    position: fixed;
    left: 12px !important;
    right: 12px;
    bottom: 12px;
    top: auto !important;
    width: auto;
    padding: 16px;
    border-radius: 8px;
  }

  .calendar-day {
    min-height: 42px;
  }

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

  .grow {
    grid-column: auto;
  }

  .section-heading.with-action {
    display: grid;
  }

  .secondary-button {
    justify-self: start;
  }

  .section-heading h2,
  .dialog-header h2 {
    font-size: 21px;
  }

  .form-actions,
  .dialog-actions {
    flex-direction: column-reverse;
  }

  .form-actions button,
  .dialog-actions button {
    width: 100%;
  }

  .proof-item {
    grid-template-columns: 46px 1fr;
  }

  .proof-badge {
    grid-column: 2;
    justify-self: start;
  }

  .review-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  body.mobile-wizard {
    min-height: 100vh;
  }

  body.mobile-wizard .page-shell {
    margin-top: 20px;
    margin-bottom: 108px;
    display: block;
  }

  body.mobile-wizard .side-panel {
    display: grid;
    gap: 16px;
  }

  body.mobile-wizard-active .side-panel {
    display: none;
  }

  body.mobile-wizard-intro .application-form {
    display: none;
  }

  body.mobile-wizard-active .application-form {
    display: block;
  }

  body.mobile-wizard .program-card,
  body.mobile-wizard .summary-block,
  body.mobile-wizard .support-box {
    padding: 20px;
  }

  body.mobile-wizard .program-card h1 {
    font-size: 24px;
  }

  body.mobile-wizard .summary-block strong {
    font-size: 24px;
    line-height: 1.28;
  }

  body.mobile-wizard .step-list li {
    min-height: 88px;
    grid-template-columns: 42px 1fr;
    align-items: center;
    padding: 18px 16px;
    background: var(--surface);
    border-color: var(--line);
  }

  body.mobile-wizard .step-list li.is-active {
    background: var(--forest-soft);
  }

  .mobile-start-actions {
    display: grid;
    gap: 10px;
  }

  .mobile-start-actions button {
    width: 100%;
  }

  body.mobile-wizard .form-section {
    display: none;
    padding: 0;
    border-bottom: 0;
  }

  body.mobile-wizard .form-section.is-mobile-step-active {
    display: block;
  }

  body.mobile-wizard .form-actions {
    display: none;
  }

  body.mobile-wizard .section-heading {
    margin-bottom: 20px;
  }

  body.mobile-wizard .section-heading p {
    font-size: 15px;
  }

  body.mobile-wizard .choice-card {
    min-height: 108px;
    padding: 20px;
  }

  body.mobile-wizard .field {
    gap: 9px;
  }

  body.mobile-wizard .field input,
  body.mobile-wizard .field select {
    min-height: 54px;
    font-size: 16px;
  }

  body.mobile-wizard .field textarea {
    min-height: 170px;
    font-size: 16px;
  }

  body.mobile-wizard .participant-list {
    gap: 18px;
  }

  body.mobile-wizard .participant-card {
    padding: 18px;
  }

  body.mobile-wizard .upload-zone {
    min-height: 190px;
  }

  body.mobile-wizard-active .mobile-wizard-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 104px;
    gap: 9px;
    align-items: center;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 223, 217, 0.9);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 -16px 36px rgba(28, 34, 31, 0.12);
    backdrop-filter: blur(16px);
  }

  .mobile-wizard-nav button {
    min-height: 46px;
    padding: 0 12px;
  }

  .mobile-step-status {
    min-width: 0;
    display: grid;
    gap: 2px;
    justify-items: center;
    text-align: center;
  }

  .mobile-step-status span {
    color: var(--forest);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-step-status strong {
    max-width: 100%;
    color: var(--ink);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .section-heading,
  .heading-main {
    grid-template-columns: 1fr;
  }

  .participant-card {
    padding: 15px;
  }

  .upload-zone {
    min-height: 156px;
    padding: 20px;
  }
}
