:root {
  color-scheme: dark;
  --ink: #f0f6f2;
  --muted: #b5c5bb;
  --accent: #77e7af;
  --mint: #77e7af;
  --line: #43534a;
  --paper: #202124;
}

* { box-sizing: border-box; }
body { margin: 0; background: #0b0e0d; color: #f3f8f5; font: 16px/1.55 "DM Sans", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #339c70; outline-offset: 3px; }

header { border-bottom: 1px solid #2b3931; background: #131b17; }
.nav, .shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nyor-portal-logo { display: block; width: 140px; height: 56px; object-fit: contain; }
.back { font-size: .9rem; color: #d3e1d9; text-decoration: none; padding-block: 12px; }
.back:hover { text-decoration: underline; }
.intro { margin: 46px 0 30px; }
.intro h1 { font: 800 clamp(2.1rem, 5vw, 3.45rem)/1.08 Manrope, sans-serif; letter-spacing: -.045em; margin: 0 0 12px; }
.intro h1 span { color: var(--mint); }
.intro p { margin: 0; color: #bdccc2; }

.layout { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 24px; align-items: start; }
.aside { order: -1; padding: 24px; background: #1a251e; border: 1px solid #34463a; border-radius: 20px; }
.aside h3 { margin: 0; font-size: 1rem; }
.briefing-steps { display: grid; gap: 6px; margin: 16px -8px 20px; padding: 0; list-style: none; }
.briefing-steps li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; color: #c0cec4; }
.briefing-steps b { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 1px solid #516358; border-radius: 50%; font-size: .76rem; }
.briefing-steps strong, .briefing-steps small { display: block; }
.briefing-steps strong { font-size: .85rem; }
.briefing-steps small { font-size: .75rem; color: #adbdaf; }
.briefing-steps .is-current { background: #2a4736; color: #fff; }
.briefing-steps .is-current b { background: var(--mint); border-color: var(--mint); color: #152d20; }
.briefing-steps .is-complete b { color: var(--mint); border-color: #5e9674; }
.side-summary { border-top: 1px solid #425348; padding-top: 16px; }
.side-summary > * { display: block; }
.side-summary small { color: #b7cbbe; font-size: .7rem; letter-spacing: .05em; }
.side-summary strong { margin-block: 3px; }
.sidebar-foot { display: flex; gap: 9px; align-items: center; color: #c1cfc5; font-size: .8rem; margin-top: 18px; }
.sidebar-foot svg { width: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.panel { color-scheme: dark; background: var(--paper); color: var(--ink); border-radius: 22px; padding: clamp(22px, 4vw, 40px); min-width: 0; }
.progress-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .85rem; }
.progress-top strong { color: var(--accent); font-size: .77rem; letter-spacing: .07em; }
.progress { display: flex; gap: 6px; margin: 10px 0 26px; scroll-margin-top: 16px; }
.progress i { flex: 1; height: 4px; background: #3a4940; border-radius: 6px; }
.progress i.done { background: var(--accent); }
.step { display: none; }
.step.active { display: block; }
.step h2, .order-success h2 { font: 800 clamp(1.45rem, 3vw, 2rem)/1.2 Manrope, sans-serif; letter-spacing: -.025em; margin: 0 0 8px; }
.step h2:focus { outline: none; }
.desc { margin: 0 0 20px; color: var(--muted); }
.choices, .fields2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; text-align: left; color: var(--ink); background: #18191c; border: 1px solid var(--line); border-radius: 12px; min-height: 86px; padding: 14px 32px 14px 13px; }
.choice::after { content: ""; position: absolute; top: 17px; right: 12px; width: 12px; height: 12px; border: 1px solid #779286; border-radius: 50%; }
.choice.selected { background: #253e31; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice.selected::after { border: 4px solid var(--accent); background: #18191c; }
.choice:hover { border-color: var(--accent); }
.glyph { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; background: #2d4035; color: var(--accent); border-radius: 9px; }
.glyph svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.choice strong { align-self: end; line-height: 1.3; font-size: .94rem; }
.choice small { color: var(--muted); font-size: .82rem; }

.field { margin-bottom: 17px; min-width: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .91rem; }
.field :is(input, select, textarea) { width: 100%; min-height: 48px; border: 1px solid #586b60; border-radius: 10px; padding: 10px 12px; color: var(--ink); background: #18191c; }
.field textarea { min-height: 110px; resize: vertical; }
.field :is(input, textarea)::placeholder { color: #a9b9af; }
.hint, .note { color: var(--muted); font-size: .87rem; margin-top: 6px; }
.note, #feedback:not(:empty) { padding: 12px 14px; border-radius: 9px; background: #2b3b32; }
.review-title { font-size: 1rem; margin: 6px 0 10px; }
.review { background: #18191c; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 17px; }
.review-row { display: grid; grid-template-columns: minmax(86px, 25%) minmax(0, 1fr); gap: 10px; padding: 9px 0; overflow-wrap: anywhere; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row small { color: var(--muted); }
.review-row strong { font-size: .9rem; font-weight: 600; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; margin-top: 14px; }
.consent input { width: 19px; height: 19px; flex: 0 0 19px; margin: 2px 0 0; accent-color: var(--accent); }
.panel :is(.consent, .legal-inline, .text-link) a { color: var(--accent); }
.actions { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.actions .secondary:disabled { visibility: hidden; }
.btn { min-height: 46px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; background: var(--accent); color: #13251a; font-weight: 700; text-decoration: none; }
.btn:hover:not(:disabled) { background: #a1f2c7; }
.btn:disabled { opacity: .65; }
.btn.secondary { color: var(--ink); border-color: var(--line); background: transparent; }
.btn.secondary:hover:not(:disabled) { background: #2b3b32; }
#feedback { margin: 0; }
#feedback:not(:empty) { margin-top: 14px; }
[hidden] { display: none !important; }
.order-success > p { color: var(--muted); margin: 0; overflow-wrap: anywhere; }
.order-success #receiptEmail { color: var(--ink); }
.receipt-protocol { margin: 24px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #17191a; }
.receipt-protocol code { display: block; margin-top: 6px; color: var(--accent); overflow-wrap: anywhere; }
.receipt-protocol p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.receipt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.receipt-actions a { color: var(--accent); }
#copyFeedback:not(:empty) { margin-top: 10px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 28px 0 14px; color: #b7c8bd; font-size: .82rem; }

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { display: none; }
}
@media (max-width: 540px) {
  .nav, .shell { width: calc(100% - 28px); }
  .nav { min-height: 60px; }
  .nyor-portal-logo { width: 112px; height: 48px; }
  .intro { margin: 25px 0 18px; }
  .intro p { font-size: .92rem; }
  .panel { padding: 15px; border-radius: 15px; }
  .progress { margin-bottom: 18px; }
  .choices, .fields2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .choice { min-height: 64px; padding-block: 9px; }
  .fields2 { gap: 0; }
  .actions { margin-top: 16px; padding-top: 14px; }
  .actions .btn:last-child { flex: 1; }
  .actions .secondary:disabled { display: none; }
}
