:root {
  --brand: #0e3b5c; --brand-2: #164e78; --accent: #4f46e5; --accent-ink: #fff; --brass: #b5832a;
  --bg: #f3f5f8; --surface: #fff; --ink: #0f1b2a; --muted: #5b6b7d; --line: #dfe5ec; --field: #fff;
  --err: #b42318; --err-bg: #fef3f2; --ok: #067647;
  --f-ui: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-display: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --brand: #0b2c45; --brand-2: #123d5e; --accent: #8b85ff; --accent-ink: #0c1218; --brass: #d8a64c;
    --bg: #0c1218; --surface: #131c25; --ink: #e8eef5; --muted: #93a3b5; --line: #243241; --field: #0f171f;
    --err: #ff8a80; --err-bg: #2a1414; --ok: #6ce9a6; color-scheme: dark; }
}
.admin { --brand: #3b2a63; --brand-2: #4c3780; }
@media (prefers-color-scheme: dark) { .admin { --brand: #2a1f47; --brand-2: #37295c; } }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--f-ui); min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.side { background: linear-gradient(160deg, var(--brand), var(--brand-2)); color: #fff; padding: 48px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.side::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(255,255,255,.06); }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo b { font: 600 22px/1.1 var(--f-display); display: block; }
.logo span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.side h2 { font: 600 clamp(28px, 3.4vw, 40px)/1.15 var(--f-display); margin: 0 0 12px; max-width: 14ch; }
.side p { margin: 0; opacity: .85; max-width: 38ch; }
.side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.side li { display: flex; gap: 10px; align-items: flex-start; opacity: .9; font-size: 15px; }
.side li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.side small { opacity: .65; font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; width: max-content; }
main { display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 10px 40px rgba(15, 27, 42, .08); display: flex; flex-direction: column; gap: 18px; }
.wide { max-width: 560px; }
h1 { font: 600 28px/1.2 var(--f-display); margin: 0; }
.sub { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=date] { width: 100%; font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; border-color: var(--accent); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--accent); font: 600 13px var(--f-ui); padding: 8px; cursor: pointer; }
.hint { font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 16px var(--f-ui); border-radius: 10px; padding: 12px 18px; min-height: 48px; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .6; cursor: progress; }
.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.err { color: var(--err); background: var(--err-bg); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.err:empty { display: none; }
.foot { text-align: center; font-size: 15px; color: var(--muted); }
.foot a { color: var(--accent); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-weight: 400; }
.opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.opt b { display: block; }
.opt span span { color: var(--muted); font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps span { font-size: 12px; font-weight: 600; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
.steps span.on { color: var(--accent); border-color: var(--accent); }
.review { margin: 0; display: grid; gap: 8px; }
.review div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; }
.meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.meter i { height: 4px; border-radius: 2px; background: var(--line); }
.meter.s1 i:nth-child(-n+1) { background: #d92d20; } .meter.s2 i:nth-child(-n+2) { background: #f79009; }
.meter.s3 i:nth-child(-n+3) { background: #12b76a; } .meter.s4 i { background: #067647; }
.actions { display: flex; gap: 10px; }
.actions .primary { flex: 1; }
[hidden] { display: none !important; }
@media (max-width: 860px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 24px 16px; gap: 16px; }
  .side .more { display: none; }
  .side::after { display: none; }
  main { padding: 24px 16px 40px; align-items: flex-start; }
  .card { padding: 24px 20px; }
}
@media (max-width: 420px) { .row2, .row3 { grid-template-columns: minmax(0, 1fr); } }
