:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #09060c;
  color: #f8f7f9;
  --muted: #c3bfc8;
  --line: #55515b;
  --panel: #1d1a22;
  line-height: 1.48;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.release-shell {
  max-width: 54rem;
  margin: auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
    max(36px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.release-brand img {
  display: block;
  width: clamp(76px, 17vw, 116px);
  height: auto;
  margin: 0 auto clamp(24px, 5vw, 42px);
}
.definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}
h1, h2, p, legend { margin: 0; }
h1, h2 { line-height: 1.16; }
h1 { display: flex; align-items: center; gap: .45em; font-size: clamp(1.65rem, 5.4vw, 2.7rem); margin-bottom: 12px; }
h1 .icon { width: 1.2em; height: 1.2em; }
h2 { font-size: clamp(1.15rem, 3.8vw, 1.5rem); }
.screen > p + p { margin-top: 12px; }
.screen { animation: appear .2s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }
.steps { display: grid; gap: 12px; margin-top: 22px; }
.step, .notice, .check-panel, .review-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(13px, 3.4vw, 21px);
}
.step, .notice, .check-panel { display: flex; align-items: flex-start; gap: clamp(10px, 3vw, 20px); }
.step { align-items: center; }
.step > .icon { width: clamp(31px, 6vw, 48px); height: clamp(31px, 6vw, 48px); }
.step > div { border-left: 1px solid var(--line); padding-left: clamp(10px, 3vw, 20px); }
.step h2 { margin: 3px 0 4px; }
.step p, .muted, small { color: var(--muted); }
.step.skipped > .icon, .step.skipped small, .step.skipped p { opacity: .65; }
.step.skipped h2 { text-decoration: line-through; color: var(--muted); }
.skip-note { color: #a0e8b7; display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.notice { background: var(--panel); margin: 18px 0; border-color: #3c3542; }
.notice > .icon { font-size: 1.3rem; }
.warning > .icon { color: #ffc057; }
.notice strong { display: block; margin-bottom: 4px; font-size: 1.12rem; }
.notice p + p { margin-top: 7px; }
.check-panel { margin: 16px 0; cursor: pointer; }
.check-panel small { display: block; margin-top: 4px; }
input[type=checkbox], input[type=radio] { accent-color: #f8f7f9; width: 20px; height: 20px; flex: none; margin: .12em 0 0; }
.progress { margin-bottom: 22px; }
.progress > div { display: flex; justify-content: space-between; gap: 8px; }
.progress > div:first-child { margin-bottom: 8px; }
.progress span { color: var(--muted); }
.progress i { flex: 1; height: 7px; border-radius: 99px; background: #f8f7f9; }
.progress .pending { background: #49444e; }
.field, .choice { margin: 0 0 17px; min-width: 0; }
fieldset.field, .choice { padding: 0; border: 0; }
.field > label, legend { display: block; font-weight: 680; margin-bottom: 5px; }
.required { color: #ffc793; }
small { display: block; font-size: .87rem; }
.field small { margin-top: 4px; }
input:not([type=checkbox], [type=radio]), textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #736d79;
  border-radius: 11px;
  background: #1a171e;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}
input::placeholder, textarea::placeholder { color: #aaa4af; opacity: 1; }
input[type=date] { display: block; max-width: 100%; }
textarea { display: block; resize: vertical; }
.pair { display: grid; align-items: end; gap: 10px; }
.pair label { color: var(--muted); }
.pair input { display: block; margin-top: 4px; }
.pair.time { grid-template-columns: minmax(0, 120px) auto minmax(0, 120px); justify-content: start; }
.pair.time > span { padding-bottom: 11px; }
.pair.passport { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.options { display: flex; gap: 10px; margin-top: 5px; }
.options label, .confirm { display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 44px; }
.options label { padding: 5px 15px; border: 1px solid var(--line); border-radius: 11px; }
.group { padding: 17px 0 2px; }
.group + .group { border-top: 1px solid var(--line); }
.group h2 { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.required-note { font-size: .9rem; color: var(--muted); margin: 12px 0; }
.controls { display: grid; gap: 13px; margin-top: 20px; }
.controls:has(> .glass-button), .glass-controls {
  display: grid;
  width: min(100%, 76.5vw, 300px);
  margin-inline: auto;
  container-type: inline-size;
}
.glass-label > span { font-family: system-ui, sans-serif; margin-inline: .35em; }
.primary, .secondary, .edit {
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid #f8f7f9;
  border-radius: 12px;
  font: inherit;
  font-weight: 680;
  text-align: center;
  cursor: pointer;
}
.primary, .secondary { width: 100%; }
.primary { display: block; background: #f8f7f9; color: #09060c; text-decoration: none; }
.secondary, .edit { background: transparent; color: inherit; }
.primary span, .secondary span { margin-inline: .32em; }
:focus-visible { outline: 2px solid #d9c9ee; outline-offset: 3px; }
.review-card { margin-top: 14px; }
.review-card header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.review-card dl { margin-bottom: 0; }
.review-card dl > div { padding: 8px 0; border-top: 1px solid #403a45; }
.review-card dt { color: var(--muted); font-size: .9rem; }
.review-card dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.complete {
  max-width: 37rem;
  margin-inline: auto;
  padding: clamp(26px, 7vw, 45px) clamp(16px, 5vw, 36px);
  border: 1px solid #58738a;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 0%, #173958, transparent 66%), #10141e;
  box-shadow: 0 16px 42px #0007;
  text-align: center;
}
.complete-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  border: 1px solid #83ccff85;
  border-radius: 50%;
  background: #61b8ff14;
  color: #b9eaff;
  box-shadow: 0 0 22px #329dff35;
}
.complete-mark .icon { width: 34px; height: 34px; }
.complete h1 { justify-content: center; }
.complete > p { max-width: 40ch; margin-inline: auto; }
.complete-status { color: var(--muted); font-size: .9rem; }
.complete .glass-controls { width: min(100%, 270px); margin-block-start: 24px; }
@media (min-width: 700px) {
  .documents-form .field { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
  .documents-form .field > label { padding-top: 10px; }
  .documents-form fieldset.field { display: block; }
  .documents-form fieldset.field .pair { width: 60%; margin-left: auto; }
}

.options { flex-wrap: wrap; }
