:root { color-scheme: only light; }

.catalog-purpose { color: var(--muted); font-size: 16px; margin: -12px 0 24px; }
body:has(.form-catalog.has-output) { background: #f4f7fb; }
.form-catalog.has-output { max-width: 1000px; padding-top: 24px; }
.output-context { font-size: 15px; font-weight: 650; color: var(--blue); margin: 12px 0 6px; }
.output-summary h1 { font-size: clamp(25px, 5vw, 38px); line-height: 1.3; margin: 0 0 8px; }
.prep-intro { color: var(--muted); margin: 0 0 20px; }

.prep-layout { display: grid; grid-template-columns: minmax(0, 0.77fr) minmax(0, 1.28fr); align-items: start; gap: 20px; }
.prep-places { display: grid; gap: 8px; }
.prep-place {
  display: flex; gap: 11px; align-items: center; min-width: 0; min-height: 62px; width: 100%;
  padding: 9px 12px; text-align: start; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 12px; line-height: 1.4; overflow-wrap: anywhere;
}
.prep-place[aria-pressed="true"] { border-color: var(--blue); background: #eaf2ff; color: var(--blue); }
.prep-place strong, .prep-place small { display: block; }
.prep-place small { margin-top: 3px; font-size: 14px; color: var(--muted); }
.prep-icon {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px;
  background: #eaf2ff; color: var(--blue); border-radius: 10px;
}
.prep-icon svg { width: 24px; height: 24px; }
.prep-progress { margin-top: 15px; font-size: 15px; font-weight: 650; color: var(--blue); }
.prep-progress output { margin-inline-start: 6px; font-variant-numeric: tabular-nums; }
.prep-progress progress { margin: 6px 0 0; height: 7px; }
.prep-progress progress, .prep-progress progress::-webkit-progress-bar { background: #dbe4f1; }

.prep-panel { min-width: 0; min-height: 240px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.prep-panel h2 { margin: 0 0 4px; overflow-wrap: anywhere; }
.prep-documents { list-style: none; padding: 0; margin: 0; }
.prep-row + .prep-row { border-top: 1px solid var(--line); }
.prep-row-content { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
label.prep-row-content { cursor: pointer; }
.prep-details { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.output-summary:lang(ko) .prep-details { word-break: keep-all; }
.prep-details strong { display: block; font-size: 17px; }
.prep-details small { display: block; margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.prep-details .prep-condition { color: #224c84; }
.prep-row input { width: 21px; height: 21px; margin: 10px 0 0; accent-color: var(--blue); flex: none; cursor: pointer; }
.prep-row:has(input:checked) .prep-icon { color: var(--green); background: #e0f6ed; }
.prep-row:has(input:checked) strong { color: var(--green); }
.prep-form-preview { margin-top: 8px; }
.prep-form-preview summary { min-height: 44px; padding-block: 8px; cursor: pointer; color: var(--blue); }
.prep-form-preview img { display: block; width: min(100%, 440px); height: auto; border: 1px solid var(--line); }
.prep-zip { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }

.prep-start {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-top: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.prep-start p { margin: 0; color: var(--muted); font-size: 15px; }
.prep-start .output-start { text-align: center; }
.prep-extra { margin-top: 8px; }
.prep-extra + .prep-extra { border-top: 1px solid var(--line); }
.prep-extra summary { min-height: 44px; padding: 10px 0; font-size: 16px; font-weight: 650; cursor: pointer; }
.prep-extra > .prep-documents { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.prep-extra > .route-overview > h2 { display: none; }

@media (max-width: 680px) {
  .form-catalog.has-output { padding-inline: 16px; }
  .prep-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .prep-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prep-places:has(> .prep-place:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-place { min-height: 76px; display: grid; gap: 5px; justify-items: start; align-content: start; padding: 7px; font-size: 14px; }
  .prep-place .prep-icon { width: 32px; height: 32px; }
  .prep-place .prep-icon svg { width: 21px; height: 21px; }
  .prep-place small { font-size: 13px; }
  .prep-panel { min-height: 0; padding: 13px; }
  .prep-row-content { gap: 8px; }
  .prep-row .prep-icon { width: 34px; height: 34px; }
  .prep-row .prep-icon svg { width: 22px; height: 22px; }
  .prep-start { align-items: stretch; flex-direction: column; }
}
