@font-face {
  font-family: Heebo;
  src: url("./heebo-hebrew.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: Heebo;
  src: url("./heebo-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #171529;
  --muted: #535168;
  --subtle: #645e78;
  --surface: #fff;
  --soft: #f6f4fb;
  --border: #ddd8e8;
  --field-border: #8b82a2;
  --purple: #7132f5;
  --purple-hover: #5c22d8;
  --purple-ink: #4e249d;
  --purple-wash: #f3edff;
  --purple-border: #9c7bdf;
  --focus: #7132f5;
  --error: #a92d3b;
  --error-border: #b83e4a;
  --error-surface: #fff0f2;
  --radius: 18px;
  --mono: Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: Heebo, Arial, sans-serif; font-size: 1rem; line-height: 1.55; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden], .symbols { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
ol, ul { padding: 0; margin: 0; list-style: none; }
code { font-family: var(--mono); }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
#configuration { padding-block-end: 28px; }
.icon { width: 20px; height: 20px; display: block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2; background: var(--surface); color: var(--purple-ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:not(:focus) { clip-path: inset(50%); }

.masthead {
  --focus: #bb9dff;
  color-scheme: dark;
  overflow: hidden;
  color: #f7f5ff;
  background:
    radial-gradient(ellipse at 24% 72%, #7132f536, transparent 43%),
    linear-gradient(111deg, #100e28 0%, #000612 63%);
  border-block-end: 1px solid #282040;
}
.hero { min-height: 244px; position: relative; display: flex; align-items: center; }
.hero-copy { padding-block: 35px 42px; position: relative; z-index: 1; max-width: 640px; }
.hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .16em .25em; font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 820; line-height: 1.08; letter-spacing: -.035em; }
.hero-wordmark { display: block; flex: none; width: clamp(132px, 19vw, 240px); height: auto; }
.hero p { color: #c5cce0; margin-block-start: 14px; max-width: 480px; font-size: 1.0625rem; }

.hero-art { --connection-cycle: 4.8s; --lock-feedback: connection-lock; direction: ltr; position: absolute; z-index: 2; inset: 50% auto auto 12.5%; width: 298px; height: 232px; transform: translate(-16%, -50%); color: #ddd1ff; pointer-events: none; }
.hero-art::before { content: ""; position: absolute; inset: -10px -55px; background: radial-gradient(ellipse, #7132f54a, #7132f517 42%, transparent 68%); }
.orbit, .orbit-axis, .orbit-node, .orbit-point, .orbit-core { position: absolute; }
.orbit, .orbit-axis, .orbit-core { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.orbit { border: 1px solid #c2afff39; border-radius: 50%; aspect-ratio: 1; }
.orbit-outer { width: 224px; border-style: dashed; }
.orbit-middle { width: 179px; }
.orbit-inner { width: 127px; border-color: #c2afff62; }
.axis-horizontal { width: 284px; height: 1px; background: linear-gradient(90deg, transparent, #c2afff54, transparent); }
.axis-vertical { height: 226px; width: 1px; background: linear-gradient(0deg, transparent, #c2afff54, transparent); }
.orbit-point { width: 5px; height: 5px; border-radius: 50%; background: #dfd2ff; box-shadow: 0 0 12px #a977ff, 0 0 4px #c2afff; }
.point-one { left: 35px; top: 114px; }
.point-two { left: 170px; top: 6px; }
.point-three { left: 232px; top: 144px; }
.orbit-core, .orbit-node { display: grid; place-items: center; }
.orbit-core { width: 94px; height: 94px; padding: 6px; border: 1px solid #c2afff97; border-radius: 26px; background: linear-gradient(145deg, #422675, #17112f); box-shadow: 0 0 44px #7132f56e, 0 12px 26px #00061294, inset 0 1px #ffffff24; }
.orbit-core img { display: block; width: 100%; height: auto; }
.orbit-node { width: 38px; height: 38px; border-radius: 11px; border: 1px solid #c2afff50; background: #1d1539; box-shadow: 0 8px 18px #00061265; }
.orbit-node .icon { width: 18px; height: 18px; }
.node-key { left: 66px; bottom: 30px; }
.node-lock { right: 62px; top: 27px; z-index: 1; padding: 0; color: inherit; pointer-events: auto; }
.node-lock:hover, .node-lock:focus-visible { border-color: var(--focus); }

.connection-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.connection-path-compact { display: none; }
.connection-track { stroke: #b497ff; stroke-width: 1.7; opacity: .49; }
.connection-signal {
  stroke: #f6edff;
  stroke-width: 3.7;
  stroke-linecap: round;
  stroke-dasharray: 24 100;
  stroke-dashoffset: 24;
  opacity: 0;
  filter: drop-shadow(0 0 3px #e8d6ff) drop-shadow(0 0 7px #a36aff);
}
.orbit-core::after, .node-lock::after { content: ""; position: absolute; inset: -2px; border: 1px solid #d5baff; border-radius: inherit; opacity: 0; pointer-events: none; }
.lock-shackle { transform-box: view-box; transform-origin: 16px 10px; }
.is-connecting .connection-signal { animation: connection-flow var(--connection-cycle) linear infinite; }
.is-connecting .orbit-core::after { animation: connection-core var(--connection-cycle) ease-out infinite; }
.is-connecting .node-lock { animation: var(--lock-feedback) var(--connection-cycle) ease-in-out infinite; }
.is-connecting .node-lock::after { animation: connection-lock-ring var(--connection-cycle) ease-out infinite; }
.is-connecting .lock-shackle { animation: connection-shackle var(--connection-cycle) ease-in-out infinite; }

@keyframes connection-flow {
  0%, 5% { stroke-dashoffset: 24; opacity: 0; }
  8% { stroke-dashoffset: 24; opacity: 1; }
  52% { stroke-dashoffset: -76; opacity: 1; }
  58%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
@keyframes connection-core {
  0%, 28%, 47%, 100% { opacity: 0; transform: scale(1); }
  36% { opacity: .75; transform: scale(1.08); }
  46% { opacity: 0; transform: scale(1.22); }
}
@keyframes connection-shackle {
  0%, 39% { transform: rotate(0); }
  46%, 49% { transform: rotate(22deg); }
  52%, 100% { transform: rotate(0); }
}
@keyframes connection-lock {
  0%, 49%, 65%, 100% { transform: scale(1); border-color: #c2afff50; background: #1d1539; box-shadow: 0 8px 18px #00061265; }
  53% { transform: scale(1.11); border-color: #ece0ff; background: #6034b6; box-shadow: 0 0 24px #a779ffbe; }
  57% { transform: scale(.98); }
}
@keyframes connection-lock-color {
  0%, 49%, 65%, 100% { border-color: #c2afff50; background: #1d1539; }
  53% { border-color: #ece0ff; background: #6034b6; }
}
@keyframes connection-lock-ring {
  0%, 50% { opacity: 0; transform: scale(.97); }
  54% { opacity: .8; }
  71%, 100% { opacity: 0; transform: scale(1.65); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art { --lock-feedback: connection-lock-color; }
  .is-connecting :is(.orbit-core, .node-lock)::after { animation: none; }
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-block: 20px 24px; padding: 5px; border: 1px solid var(--border); border-radius: 15px; }
.step { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 6px 11px; border: 1px solid transparent; border-radius: 10px; color: var(--muted); font-weight: 650; font-size: .94rem; text-decoration: none; }
.step-number { flex: none; color: var(--subtle); font-size: .8rem; font-variant-numeric: tabular-nums; font-weight: 750; }
.step:hover { color: var(--ink); background: var(--soft); }
.step[aria-current="step"] { color: var(--purple-ink); background: var(--purple-wash); border-color: #d8c6fd; font-weight: 800; }
.step[aria-current="step"] .step-number, .step.is-done { color: var(--purple-ink); }

.layout { display: grid; grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.form-stack { display: grid; gap: 16px; min-width: 0; }
.card { min-width: 0; padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 16px #29174a0a; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-block-end: 15px; }
.section-art { flex: none; width: 74px; height: 74px; background-image: url("./section-illustrations.png"); background-size: 200% 200%; background-repeat: no-repeat; }
.art-credentials { background-position: left top; }
.art-limits { background-position: right top; }
.art-destination { background-position: left bottom; }
.art-review { background-position: right bottom; }
.section-heading h2 { font-size: 1.32rem; line-height: 1.25; font-weight: 800; scroll-margin-block-start: 24px; }
.section-heading p { margin-block-start: 3px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.permissions, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.permissions { margin-block-end: 18px; }
.permissions li { display: grid; align-content: center; gap: 3px; padding: 8px 12px; min-height: 53px; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.permissions strong, .permissions small { display: block; line-height: 1.38; }
.permissions strong { font-size: .875rem; font-weight: 750; }
.permissions small { color: var(--muted); font-size: .75rem; text-align: right; }
.field { min-width: 0; }
.field label { display: block; margin-block-end: 5px; font-size: .9rem; font-weight: 700; }
.field input, .field select { display: block; width: 100%; min-width: 0; height: 45px; padding: 0 12px; border: 1px solid var(--field-border); border-radius: 9px; color: var(--ink); background: var(--surface); }
.field input { font-family: var(--mono); font-size: .875rem; }
.field input::placeholder { color: var(--subtle); opacity: 1; }
.key-input-wrap, .secret-wrap, .select-wrap { position: relative; }
.key-input-wrap:has(.clear-key-button:not([hidden])) input,
.secret-wrap input { padding-right: 42px; }
.secret-wrap:has(.clear-key-button:not([hidden])) input { padding-right: 83px; }
.icon-button { position: absolute; right: 2px; top: 2px; width: 41px; height: 41px; display: grid; place-items: center; border: 0; border-radius: 7px; color: var(--purple-ink); background: transparent; }
.icon-button:disabled { color: var(--subtle); }
.icon-button:not(:disabled):hover { background: var(--purple-wash); }
.icon-button .icon { width: 18px; height: 18px; }
.secret-wrap .clear-key-button { right: 43px; }
.clear-key-button { width: 35px; }
.clear-key-button:not(:disabled):hover { color: var(--error); background: var(--error-surface); }
.key-actions { margin-block-start: 13px; }
.outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 11px; min-height: 38px; border: 1px solid var(--purple-border); border-radius: 8px; color: var(--purple-ink); background: var(--purple-wash); font-size: .875rem; font-weight: 750; }
.outline-button .icon { width: 16px; height: 16px; }
.outline-button:not(:disabled):hover { background: #eae0ff; border-color: var(--focus); }
.outline-button:disabled { border-color: var(--border); background: var(--soft); color: var(--muted); }
.select-wrap::after { content: ""; position: absolute; inset-inline-end: 17px; top: calc(50% - 5px); width: 8px; height: 8px; border-right: 2px solid var(--purple-ink); border-bottom: 2px solid var(--purple-ink); transform: rotate(45deg); pointer-events: none; }
.field select { appearance: none; height: 48px; padding-inline: 14px 36px; border-radius: 11px; font-size: .97rem; font-weight: 650; cursor: pointer; }
.field select:not(:disabled):hover { border-color: var(--purple-border); }
.field select option { color: var(--ink); background: var(--surface); }
.field select:has(option[value=""]:checked) { color: var(--muted); font-weight: 500; }
select:disabled { cursor: default; opacity: 1; }

@supports (appearance: base-select) and selector(::picker(select)) {
  .field select, .field select::picker(select) { appearance: base-select; }
  .field select { display: flex; align-items: center; }
  .field select::picker-icon { display: none; }
  .field select:open { border-color: var(--purple); box-shadow: 0 0 0 3px #7132f51a; }
  .field select:open[aria-invalid="true"] { box-shadow: 0 0 0 3px #b83e4a1a; }
  .select-wrap:has(select:open)::after { transform: rotate(225deg); }

  .field select::picker(select) {
    inline-size: anchor-size(width);
    max-block-size: min(19rem, 58dvb);
    padding: 5px;
    margin-block: 6px;
    overflow-y: auto;
    border: 1px solid #ded3ee;
    border-radius: 13px;
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: .94rem;
    font-weight: 550;
    line-height: 1.45;
    box-shadow: 0 10px 26px #28174a24, 0 2px 5px #28174a0d;
  }

  .field select option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-block-size: 42px;
    padding: 9px 11px;
    border-radius: 8px;
    font-weight: 550;
    cursor: pointer;
  }
  .field select option[value=""] { display: none; }
  .field select option:hover, .field select option:focus-visible { background: var(--soft); }
  .field select option:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
  .field select option:checked { background: var(--purple-wash); color: var(--purple-ink); font-weight: 750; }
  .field select option::checkmark { order: 1; margin-inline-start: auto; color: var(--purple); }
}

.custom-limit { margin-block-start: 10px; }
.custom-limit input { text-align: right; }
#custom-limit-hint { margin-block-start: 5px; color: var(--muted); font-size: .875rem; }
.field-error { margin-block-start: 5px; color: var(--error); font-size: .875rem; font-weight: 650; }
.field select[aria-invalid="true"], .field input[aria-invalid="true"], .key-actions button[aria-invalid="true"] { border-color: var(--error-border); background: var(--error-surface); }
.key-actions button[aria-invalid="true"] { color: var(--error); }
[aria-invalid="true"]:focus-visible { outline-color: var(--error-border); }
.destination-box { min-width: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 15px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.destination-label { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.destination-box code { display: block; color: var(--ink); font-size: .99rem; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.locked { display: inline-flex; align-items: center; gap: 4px; color: var(--purple-ink); background: var(--purple-wash); border: 1px solid #e0d4fb; border-radius: 99px; padding: 4px 9px; font-size: .8125rem; font-weight: 750; }

.summary { position: sticky; top: 16px; border-color: #cfc1e9; }
.summary .section-heading { margin-block-end: 14px; }
.summary-list { border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.summary-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: baseline; gap: 8px; padding: 8px 11px; }
.summary-list > div + div { border-block-start: 1px solid var(--border); }
.summary-list dt { font-size: .875rem; color: var(--muted); }
.summary-list dd { font-weight: 725; font-size: .94rem; text-align: end; overflow-wrap: anywhere; }
.platform-wordmark { display: inline-block; width: 91px; height: auto; vertical-align: -.12em; }
.summary-list .pending { color: var(--muted); font-weight: 500; }
.destination-summary code { font-size: .8125rem; letter-spacing: -.035em; }
.approval, .success { margin-block-start: 15px; }
.consent-group { display: grid; gap: 5px; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.consent-group legend { margin-block-end: 8px; padding: 0; font-size: .94rem; font-weight: 750; }
.consent { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: .88rem; line-height: 1.55; cursor: pointer; }
.consent:hover { border-color: var(--purple-border); }
.consent:has(:checked) { border-color: var(--purple-border); background: var(--purple-wash); }
.consent:has(input[aria-invalid="true"]) { border-color: var(--error-border); background: var(--error-surface); color: var(--error); }
.consent input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--purple); cursor: inherit; }
.primary-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 45px; margin-block-start: 11px; padding: 5px 10px; border: 1px solid transparent; border-radius: 9px; background: var(--purple); color: #fff; font-size: .96rem; font-weight: 800; }
.primary-button:not(:disabled):hover { background: var(--purple-hover); }
.primary-button:disabled { border-color: var(--border); background: var(--soft); color: var(--subtle); }
.approval-hint { margin-block-start: 7px; color: var(--muted); font-size: .8125rem; text-align: center; }
.success { padding: 11px; border: 1px solid var(--purple-border); border-radius: 10px; background: var(--purple-wash); }
.success-message { display: flex; gap: 7px; color: var(--purple-ink); }
.success-message h3 { font-size: 1rem; line-height: 1.5; }
.success-message p { font-size: .88rem; color: var(--muted); }
.success .outline-button { margin-block-start: 8px; background: var(--surface); }

.completion-dialog {
  --focus: #c5a9ff;
  --sweep-duration: 535ms;
  --check-delay: 580ms;
  --check-duration: 325ms;
  --impact-delay: calc(var(--check-delay) + var(--check-duration));
  --details-delay: calc(var(--impact-delay) + 40ms);
  width: min(calc(100% - 28px), 454px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: clamp(18px, 5vw, 29px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #9676e37a;
  border-radius: 24px;
  color-scheme: dark;
  color: #f7f3ff;
  background: radial-gradient(ellipse at 50% 14%, #2f1b58 0%, #100e26 52%, #000612 100%);
  box-shadow: 0 24px 90px #00000094, inset 0 1px #ddcaff20;
  text-align: center;
}
.completion-dialog::backdrop { background: #000612ad; backdrop-filter: blur(5px); }
.completion-dialog[open] { animation: completion-arrive 260ms cubic-bezier(.2,.8,.2,1) both; }
.completion-dialog[open]::backdrop { animation: completion-reveal 220ms ease-out both; }
.completion-brand { display: block; width: 112px; height: auto; margin-inline: auto; }
.completion-art { position: relative; isolation: isolate; width: clamp(178px, 54vw, 226px); margin: 6px auto 1px; }
.completion-art::before { content: ""; position: absolute; z-index: -1; inset: -12px -22px; background: radial-gradient(ellipse, #9861ff9c, #7132f52e 44%, transparent 69%); opacity: .25; }
.completion-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.completion-guide { stroke: #c7afff34; }
.completion-orbit { stroke: #c7afff56; stroke-dasharray: 2 5; }
.completion-orbit-inner { stroke: #c7afff39; stroke-dasharray: none; }
.completion-medallion, .completion-ripple, .completion-sparks { transform-box: view-box; transform-origin: 96px 72px; }
.completion-sweep { stroke: #e4d2ff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 6px #c29aff); }
.completion-check { stroke: #fff; stroke-width: 7.8; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; filter: drop-shadow(0 0 7px #e2ceffc0); }
.completion-ripple, .completion-sparks, .completion-bloom { opacity: 0; }
.completion-bloom { fill: #c599ff; }
.completion-ripple { stroke: #e8d5ff; stroke-width: 1.6; }
.completion-ripple-echo { stroke: #ad7bff; stroke-width: 1.25; }
.completion-sparks { fill: #efdcff; filter: drop-shadow(0 0 4px #ac78ff); }
.completion-rays { fill: none; stroke: #dbc1ff; stroke-width: 1.75; stroke-linecap: round; }
.completion-glints { fill: #fbf6ff; }
.completion-dialog[open] .completion-sweep { animation: completion-draw var(--sweep-duration) cubic-bezier(.35,.1,.24,1) 45ms both; }
.completion-dialog[open] .completion-check { animation: completion-draw var(--check-duration) cubic-bezier(.3,.1,.3,1) var(--check-delay) both; }
.completion-dialog[open] .completion-medallion { animation: completion-land 540ms cubic-bezier(.2,.8,.25,1) var(--impact-delay) both; }
.completion-dialog[open] .completion-bloom { animation: completion-bloom 520ms ease-out var(--impact-delay) both; }
.completion-dialog[open] .completion-art::before { animation: completion-aura 850ms ease-out var(--impact-delay) both; }
.completion-dialog[open] .completion-ripple { animation: completion-wave 700ms ease-out var(--impact-delay) both; }
.completion-dialog[open] .completion-ripple-echo { animation-delay: calc(var(--impact-delay) + 105ms); }
.completion-dialog[open] .completion-sparks { animation: completion-burst 720ms cubic-bezier(.2,.75,.3,1) var(--impact-delay) both; }
.completion-dialog h2 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; font-weight: 820; letter-spacing: -.025em; }
.completion-dialog[open] h2 { animation: completion-title-glow 620ms ease-out var(--impact-delay) both; }
.completion-details { margin-block: 17px 14px; padding-inline: 13px; border: 1px solid #b59ae744; border-radius: 13px; text-align: start; background: #07081793; }
.completion-dialog[open] .completion-details { animation: completion-reveal 260ms ease-out var(--details-delay) both; }
.completion-details > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-block: 8px; }
.completion-details > div + div { border-block-start: 1px solid #c6aeff26; }
.completion-details dt { color: #d3cbe3; font-size: .875rem; }
.completion-details dd { color: #fff; font-size: .94rem; font-weight: 720; overflow-wrap: anywhere; }
.completion-details code { font-size: .85rem; }
.completion-dialog .primary-button { margin-block-start: 0; }

@keyframes completion-arrive {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes completion-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes completion-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes completion-land {
  0%, 100% { transform: scale(1); }
  27% { transform: scale(1.13); }
  62% { transform: scale(.985); }
}
@keyframes completion-bloom {
  0%, 100% { opacity: 0; }
  20% { opacity: .48; }
}
@keyframes completion-aura {
  0%, 100% { opacity: .25; }
  20% { opacity: 1; }
}
@keyframes completion-wave {
  0% { opacity: 0; transform: scale(.98); }
  22% { opacity: .9; }
  100% { opacity: 0; transform: scale(1.57); }
}
@keyframes completion-burst {
  0% { opacity: 0; transform: scale(.7); }
  23% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes completion-still-burst {
  0%, 100% { opacity: 0; }
  24% { opacity: .9; }
}
@keyframes completion-title-glow {
  0%, 100% { text-shadow: 0 0 0 #b794ff00; }
  30% { text-shadow: 0 0 22px #b794ffac; }
}

@media (prefers-reduced-motion: reduce) {
  .completion-dialog { --sweep-duration: 375ms; --check-delay: 420ms; --check-duration: 270ms; }
  .completion-dialog[open] { animation: completion-reveal 160ms ease-out both; }
  .completion-dialog[open] :is(.completion-medallion, .completion-ripple) { animation: none; }
  .completion-dialog[open] .completion-sparks { animation-name: completion-still-burst; }
}

.review-toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-block-start: 18px; padding: 14px 16px; border: 1px solid var(--purple-border); border-radius: 12px; background: var(--purple-wash); }
.review-toolbar h2, .review-dialog h2 { font-size: 1.12rem; }
.review-toolbar p { color: var(--muted); font-size: .94rem; }
.review-toolbar .review-status { flex-basis: 100%; font-weight: 650; }
.review-target-button { margin-block-start: 9px; }
.review-selected { outline: 3px solid var(--focus); outline-offset: 3px; }
.review-dialog { width: min(100% - 32px, 470px); padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); background: var(--surface); }
.review-dialog::backdrop { background: #000612a6; }
.review-dialog label { display: block; margin-block: 9px 6px; font-size: .94rem; font-weight: 650; }
.review-dialog textarea, #review-copy-fallback { display: block; width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--field-border); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; }
.review-actions { display: flex; gap: 8px; margin-block-start: 12px; }
.review-actions [value="save"] { color: #fff; background: var(--purple); border-color: var(--purple); }
.review-actions [value="save"]:hover { background: var(--purple-hover); }

@media (max-width: 880px) {
  .shell { width: min(100% - 36px, 690px); }
  .hero-art { left: 2%; transform: translate(-15%, -50%) scale(.74); }
  .hero-copy { max-width: 65%; }
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .summary { position: static; }
}

@media (max-width: 540px) {
  .shell { width: calc(100% - 28px); }
  .hero { min-height: 0; }
  .hero-copy { max-width: 100%; padding-block: 26px 29px; }
  .hero h1 { min-height: 62px; padding-block: 12px; padding-inline-end: 78px; font-size: clamp(1.8rem, 8vw, 2.65rem); }
  .hero-wordmark { width: clamp(105px, 29vw, 144px); }
  .hero p { max-width: 22rem; margin-block-start: 10px; font-size: 1rem; }
  .hero-art { inset: 24px auto auto 0; width: 70px; height: 66px; transform: none; }
  .orbit, .orbit-axis, .node-key, .orbit-point, .connection-path-wide { display: none; }
  .connection-path-compact { display: block; }
  .orbit-core { top: 38px; left: 28px; width: 56px; height: 56px; border-radius: 17px; padding: 4px; }
  .node-lock { right: 0; top: -4px; width: 24px; height: 24px; border-radius: 8px; }
  .node-lock .icon { width: 13px; height: 13px; }
  .steps { gap: 3px; margin-block: 14px 16px; padding: 4px; }
  .step { min-height: 43px; gap: 4px; padding: 4px; font-size: .8rem; line-height: 1.1; text-align: center; border-radius: 8px; }
  .card { padding: 15px; border-radius: 14px; }
  .section-heading { gap: 9px; margin-block-end: 14px; }
  .section-art { width: 59px; height: 59px; }
  .section-heading h2 { font-size: 1.2rem; }
  .field-grid { grid-template-columns: 1fr; }
  .permissions { gap: 6px; margin-block-end: 14px; }
  .permissions li { gap: 5px; padding: 6px; }
  .key-actions { margin-block-start: 11px; }
}

@media (max-width: 345px) {
  .permissions { grid-template-columns: 1fr; }
}
