

.vault-head { display: grid; grid-template-columns: 240px 1fr; gap: 48px; margin-bottom: 30px; }
.vault-head h2 { margin: 0; font-family: var(--font-jost), sans-serif; font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.06; letter-spacing: -0.02em; }
.vault-head p { margin-top: 14px; max-width: 62ch; color: var(--ink-dim); font-size: 16px; }
.vault-head .crypto { margin-top: 14px; padding: 12px 14px; border-left: 2px solid var(--accent); background: var(--accent-soft); color: var(--ink); font-size: 15px; max-width: 62ch; }

.vault { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.vault > div { background: var(--bg-2); min-width: 0; }




.vault-scene { position: relative; padding: 28px 22px 22px; display: grid; grid-template-columns: 1fr 64px 1.05fr 64px 1fr; grid-template-rows: auto auto auto; align-items: center; align-content: start; column-gap: 0; row-gap: 10px; }
.v-node { position: relative; border: 1px solid var(--line-2); background: var(--bg); padding: 14px 12px; text-align: center; min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; }
.v-node .v-ico { width: 44px; height: 44px; color: var(--ink-dim); }
.v-node .v-t { font-size: 14px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.v-node .v-s { font-size: 12px; color: var(--ink-mute); line-height: 1.35; }
.v-node .v-slot { margin-top: auto; width: 34px; height: 34px; }
.v-safe { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.v-safe .v-ico { color: var(--accent); width: 56px; height: 62px; }
.v-safe .v-state { font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.v-safe .v-shackle { transition: transform .5s ease, opacity .5s ease; transform-origin: 70px 60px; }
.v-safe.is-open .v-shackle { transform: translateY(-9px) rotate(18deg); opacity: 0.55; }
.v-sigs { display: flex; gap: 5px; justify-content: center; }
.v-sigs i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); display: block; transition: background .2s, border-color .2s; }
.v-sigs i.on { background: var(--accent); border-color: var(--accent); }

.v-path { position: relative; height: 2px; background: var(--line-2); align-self: center; }
.v-path::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--line-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.v-path span { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); white-space: nowrap; }
.v-path.is-live { background: var(--accent); }
.v-path.is-live::after { border-left-color: var(--accent); }
.v-path.is-live span { color: var(--accent); }


.v-back { grid-column: 1 / 4; grid-row: 2; height: 22px; margin: 0 17% 0 17%; border: 1px dashed var(--line-2); border-top: 0; position: relative; }
.v-back::before { content: ""; position: absolute; left: -6px; top: -6px; border-bottom: 8px solid var(--line-2); border-left: 5px solid transparent; border-right: 5px solid transparent; }
.v-back.is-live { border-color: var(--accent); }
.v-back.is-live::before { border-bottom-color: var(--accent); }

.v-exits { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.v-exit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-dim); line-height: 1.3; }
.v-exit b { font-family: var(--font-mono), monospace; color: var(--ink); font-weight: 500; }
.v-exit.fwd.is-live, .v-exit.back.is-live { border-color: var(--accent); color: var(--ink); }
.v-exit.fwd.is-live b, .v-exit.back.is-live b { color: var(--accent); }
.v-exit.side { border-color: color-mix(in oklab, var(--danger) 55%, transparent); }
.v-exit.side b { color: var(--danger); }
.v-exit.side.is-hit { background: color-mix(in oklab, var(--danger) 14%, transparent); animation: vshake .35s linear 1; }
@keyframes vshake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.v-coin { position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #1a0f02; display: grid; place-items: center; font-family: var(--font-mono), monospace; font-weight: 500; font-size: 15px; box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 18px rgba(0, 0, 0, 0.5); transition: transform .9s cubic-bezier(.5, 0, .2, 1); will-change: transform; z-index: 2; pointer-events: none; }


.vault-controls { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.vc-title { font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.vc-keys { display: grid; gap: 8px; }
.vc-key, .vc-switch, .vc-btn { appearance: none; text-align: left; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 12px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-dim); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.vc-key:hover, .vc-switch:hover, .vc-btn:hover { border-color: var(--ink-dim); color: var(--ink); }
.vc-key .mark, .vc-switch .mark { flex: none; width: 18px; height: 18px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 12px; color: transparent; }
.vc-key[aria-pressed="true"], .vc-switch[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.vc-key[aria-pressed="true"] .mark, .vc-switch[aria-pressed="true"] .mark { background: var(--accent); border-color: var(--accent); color: #1a0f02; }
.vc-key small, .vc-switch small { display: block; font-size: 12px; color: var(--ink-mute); }
.vc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vc-btn { justify-content: center; text-align: center; }
.vc-btn.primary { background: var(--accent); border-color: var(--accent); color: #1a0f02; font-weight: 500; }
.vc-btn.primary:hover { background: #ffcf6a; color: #1a0f02; }
.vc-btn[disabled], .vc-key[disabled], .vc-switch[disabled] { opacity: 0.45; cursor: default; }
.vc-status { padding: 12px 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14.5px; line-height: 1.5; color: var(--ink); min-height: 78px; }
.vc-status.ok { border-color: var(--accent); }
.vc-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.vc-presets button { appearance: none; font: inherit; font-size: 12.5px; padding: 7px 10px; min-height: 36px; background: transparent; border: 1px dashed var(--line-2); color: var(--ink-dim); cursor: pointer; }
.vc-presets button:hover { border-color: var(--accent); color: var(--accent); }


.vault-two { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vault-card { border: 1px solid var(--line-2); background: var(--bg-2); padding: 20px; min-width: 0; }
.vault-card h3 { margin: 0 0 4px; font-family: var(--font-jost), sans-serif; font-weight: 400; font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; }
.vault-card .when { font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.vault-card .kv li { font-family: var(--font-inter), system-ui, sans-serif; font-size: 13.5px; align-items: baseline; }
.vault-card .kv li > :first-child { color: var(--ink-mute); flex: none; width: 34%; }
.vault-card .kv li > :last-child { text-align: left; flex: 1; }
.vault-card .src { margin-top: 10px; font-size: 12px; color: var(--ink-mute); }
.vault-limits { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line-2); background: var(--bg); }
.vault-limits h3 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.vault-limits p { font-size: 14.5px; color: var(--ink-dim); max-width: 86ch; line-height: 1.6; }

@media (max-width: 1000px) {
  .vault { grid-template-columns: 1fr; }
  .vault-two { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vault-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
}
@media (max-width: 640px) {

  .vault-scene { grid-template-columns: 1fr; grid-template-rows: none; padding: 18px 14px 16px; row-gap: 0; }
  .v-node { min-height: 0; flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 9px 12px; }
  .vault-scene { position: sticky; top: calc(var(--plate-h) + 56px); z-index: 3; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
  .v-node .v-s { display: none; }
  .v-exits { display: none; }
  .v-path { height: 20px !important; }
  .v-node .v-ico { flex: none; width: 36px; height: 36px; }
  .v-safe .v-ico { width: 40px; height: 44px; }
  .v-node .v-txt { flex: 1; min-width: 0; }
  .v-node .v-slot { margin: 0; flex: none; }
  .v-sigs { justify-content: flex-start; margin-top: 4px; }
  .v-path { width: 2px; height: 34px; justify-self: center; }
  .v-path::after { right: auto; left: -4px; top: auto; bottom: -1px; border-top: 8px solid var(--line-2); border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 0; }
  .v-path.is-live::after { border-top-color: var(--accent); border-left-color: transparent; }
  .v-path span { left: 14px; bottom: auto; top: 50%; transform: translateY(-50%); }
  .v-back { display: none; }
  .v-exits { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .v-exit { width: 100%; }
  .vault-controls { padding: 16px 14px; }
  .vc-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .v-coin { transition: none; } .v-exit.side.is-hit { animation: none; } }

.vault-legend { display: none; }
@media (max-width: 640px) {
  .vault-legend { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
  .vault-legend .v-exit { width: 100%; }
}

.vault-cap { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-mute); max-width: 86ch; }




.vf .vf-signers { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vf .vc-key { align-items: flex-start; }
.vf .vc-key .mark { margin-top: 1px; }

.vf .v-sigs { gap: 6px; }
.vf .vc-status { min-height: 96px; }


.vf .vf-msg { grid-column: 1 / -1; grid-row: 3; min-height: 44px; margin-top: 4px; display: flex; align-items: center; }
.vf .vf-msg .v-exit { animation: vfin .25s ease-out 1; max-width: 100%; }
.vf .vf-msg .v-exit.side.is-hit { animation: vfin .25s ease-out 1, vshake .35s linear .1s 1; }
.vf .vf-msg .v-exit.hint { border-style: dashed; color: var(--ink); }
.vf .vf-msg .v-exit.hint b { color: var(--accent); }
@keyframes vfin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.vf-tabs { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vf-tabs-b { display: inline-flex; border: 1px solid var(--line-2); }
.vf-tabs-b button { appearance: none; font: inherit; font-size: 13.5px; min-height: 40px; padding: 8px 14px; background: transparent; border: 0; border-right: 1px solid var(--line-2); color: var(--ink-dim); cursor: pointer; }
.vf-tabs-b button:last-child { border-right: 0; }
.vf-tabs-b button:hover { color: var(--ink); }
.vf-tabs-b button[aria-pressed="true"] { background: var(--accent); color: #1a0f02; }

.vf-two-part .v-coin { width: 28px; height: 28px; font-size: 13px; }

.vf .vf-row3 { grid-template-columns: repeat(3, 1fr); }
.vf .vf-row3 .vc-btn { padding: 9px 8px; line-height: 1.25; }


.vw { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line-2); }
.vw > div { background: var(--bg-2); min-width: 0; }
.vw-pic { padding: 26px 22px 22px; display: grid; grid-template-columns: 1fr 36px 1.1fr 36px 1fr; align-items: stretch; align-content: start; row-gap: 16px; }
.vw-node { border: 1px solid var(--line-2); background: var(--bg); padding: 14px 10px 10px; text-align: center; min-height: 196px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vw-node .v-ico { width: 40px; height: 40px; color: var(--ink-dim); flex: none; }
.vw-safe { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vw-safe .v-ico { color: var(--accent); width: 46px; height: 50px; }
.vw-safe.is-empty .v-shackle { transform: translateY(-9px) rotate(18deg); opacity: 0.55; }
.vw-safe .v-shackle { transition: transform .5s ease, opacity .5s ease; transform-origin: 70px 60px; }
.vw-t { font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.25; overflow-wrap: anywhere; }
.vw-t small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--ink-mute); }
.vw-arrow { position: relative; align-self: center; height: 2px; background: var(--line-2); margin: 0 6px; }
.vw-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border-left: 8px solid var(--line-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.vw-tray { margin-top: auto; width: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.vw-bar { display: grid; place-items: center; background: var(--accent); color: #1a0f02; font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1; padding: 2px 4px; box-shadow: 0 0 0 3px var(--accent-soft); transition: transform .7s cubic-bezier(.5, 0, .2, 1); will-change: transform; overflow-wrap: anywhere; }
.vw-bar.part { order: 1; min-height: 24px; }
.vw-bar.rest { order: 2; min-height: 34px; }
.vw-lights { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.vw-light { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-mute); line-height: 1.3; transition: border-color .2s, color .2s; }
.vw-light i { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .2s, border-color .2s; }
.vw-light.on { border-color: var(--accent); color: var(--ink); }
.vw-light.on i { background: var(--accent); border-color: var(--accent); }
.vw-side { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.vw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vw-steps button { appearance: none; width: 100%; display: flex; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 12px; text-align: left; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink-dim); font: inherit; font-size: 14px; line-height: 1.35; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.vw-steps button:hover { border-color: var(--ink-dim); color: var(--ink); }
.vw-steps .n { flex: none; font-family: var(--font-mono), monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); }
.vw-steps button.done .n { color: var(--accent); }
.vw-steps button[aria-current="step"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.vw-steps button[aria-current="step"] .n { color: var(--accent); }
.vw-text { padding: 12px 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 14.5px; line-height: 1.5; color: var(--ink); min-height: 92px; }
.vw-text.is-dead { border-color: var(--accent); }
.vw-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vw-nav .vw-dead { grid-column: 1 / -1; }


.vf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vf-two .vault-limits { margin-top: 0; background: var(--bg-2); }
.vf-two .vault-limits p + .checklist { margin-top: 10px; }
.vf-two .checklist li { font-size: 14px; }

@media (max-width: 1000px) {
  .vw { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .vf-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .vf .vf-signers { grid-template-columns: 1fr 1fr; gap: 6px; }
  .vf .vc-key { padding: 8px 10px; font-size: 13.5px; gap: 8px; }


  .vault.vf .vc-manual { display: contents; }
  .vf .vault-controls > div:nth-child(2) { order: 1; }
  .vf .vc-manual > .vc-title { order: 2; }
  .vf .vc-manual > [data-act="dep"] { order: 3; }
  .vf .vc-manual > .vf-sigwrap { order: 4; }
  .vf .vc-status { order: 5; min-height: 74px; font-size: 14px; }
  .vf .vc-manual > .vc-row { order: 6; }
  .vf-tabs { gap: 8px; }
  .vf-tabs-b { display: flex; width: 100%; }
  .vf-tabs-b button { flex: 1; padding: 8px 8px; font-size: 13px; line-height: 1.25; }

  .vf .vf-msg { grid-column: 1; grid-row: auto; margin-top: 10px; min-height: 50px; }
  .vf .vf-msg .v-exit { width: 100%; }

  .vf .vf-row3 { grid-template-columns: 1fr 1fr; }
  .vf .vf-row3 .vf-rel { grid-column: 1 / -1; }

  .vw-pic { position: sticky; top: calc(var(--plate-h) + 56px); z-index: 3; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
  .vw-lights { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .vw-pic { padding: 18px 12px 14px; grid-template-columns: 1fr 14px 1fr 14px 1fr; row-gap: 12px; }
  .vw-node { padding: 10px 6px 6px; }
  .vw-node .v-ico { width: 30px; height: 30px; }
  .vw-safe .v-ico { width: 34px; height: 38px; }
  .vw-t { font-size: 12px; }
  .vw-t small { display: none; }
  .vw-arrow { margin: 0 2px; }
  .vw-arrow::after { border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; top: -3px; }
  .vw-bar { font-size: 10px; letter-spacing: 0.02em; }
  .vw-light { font-size: 11.5px; padding: 5px 7px; gap: 6px; }
  .vw-node { min-height: 136px; }
  .vw-tray { min-height: 58px; }
  .vw-side { padding: 16px 14px; }
}
@media (prefers-reduced-motion: reduce) { .vw-bar, .vw-safe .v-shackle { transition: none; } .vf .vf-msg .v-exit, .vf .vf-msg .v-exit.side.is-hit { animation: none; } }



@media (pointer: coarse) {
  .v-safe .v-state, .v-path span, .vc-title, .vault-card .when, .vw-t small, .vw-bar, .vw-steps .n { font-size: 12px; }
  .vc-presets button { min-height: 40px; }
}
@media (pointer: coarse) and (max-width: 640px) {
  .vw-light { font-size: 12px; }
}



@media (pointer: coarse) and (min-width: 641px) and (max-width: 1000px) {
  .vf .vault-scene { position: sticky; top: calc(var(--plate-h) + 56px); z-index: 3; background: var(--bg-2); border-bottom: 1px solid var(--line-2); }
}
@media (pointer: coarse) and (min-width: 769px) and (max-width: 1000px) {
  .vf .vault-scene { top: calc(var(--plate-h) + 64px); }
}


@media (max-width: 640px) and (max-height: 640px) {
  .vault-scene { padding-top: 10px; padding-bottom: 10px; }
  .v-node { padding-top: 5px; padding-bottom: 5px; }
  .v-node .v-ico { width: 28px; height: 28px; }
  .v-safe .v-ico { width: 32px; height: 36px; }
  .v-path { height: 16px !important; }
  .vf .vf-msg { margin-top: 6px; min-height: 44px; }
}
