.deploy-screen { --deploy-edge:#202124; }
.deploy-heading { position:relative;isolation:isolate;margin:8px 0 12px; }
.deploy-heading h1,.deploy-success h1 { font-size:clamp(21px,6vw,29px);line-height:1.08; }
.deploy-heading h2 { margin-top:6px;font-size:15px; }
.deploy-heading p,.deploy-success p { font-size:12px;line-height:1.4; }
.deploy-heading small { margin-bottom:5px; }
.deploy-heading-wide { margin:clamp(12px, 4vw, 20px) 0 clamp(15px, 4.6vw, 23px); }
.deploy-heading-wide h1 { font-size:clamp(24px, 7.25vw, 35px); text-wrap:balance; }
.deploy-heading-wide p { margin-top:8px; font-size:clamp(12px, 3.6vw, 16px); }
.deploy-art { display:block;width:100%;height:auto;margin:0 auto 10px; }
.deploy-node-art { position:relative;aspect-ratio:330 / 171; }
.deploy-node-art img,.deploy-node-art svg { position:absolute;inset:0;display:block;width:100%;height:100%; }
.deploy-node-art img { object-fit:contain; }
.deploy-rail { list-style:none;margin:0;padding:0; }
.deploy-rail li { position:relative;min-height:45px;display:flex;gap:9px;align-items:start; }
.deploy-rail li:not(:last-child)::before { content:"";position:absolute;left:9px;top:20px;height:calc(100% - 20px);border-left:1px dashed #464a4d; }
.deploy-rail i { display:grid;place-items:center;width:19px;height:19px;border:1px solid #4c5254;border-radius:50%;background:#101113;flex:none; }
.deploy-rail .complete i { background:#fff;color:#080909; }
.deploy-rail .complete i::after { content:"✓";font-style:normal;font-size:12px;font-weight:700; }
.deploy-rail .current i { border-color:#fff;box-shadow:inset 0 0 0 3px #151718,0 0 8px #cfdcff7d;background:#fff;animation:deploy-pulse 1.6s ease-in-out infinite; }
@keyframes deploy-pulse { 50% { box-shadow:inset 0 0 0 3px #151718,0 0 13px #cfdcffab; } }
.deploy-rail li strong,.deploy-note strong { font-size:12px; }
.deploy-rail p,.deploy-note p { margin:1px 0 3px;font-size:11px; }
.deploy-columns { display:grid;grid-template-columns:19px minmax(0,1fr);align-items:start;gap:9px; }
.deploy-columns > .deploy-rail { padding-top:4px; }
.deploy-columns h3 { font-size:12px;margin:10px 0 6px; }
.deploy-panel { border:1px solid var(--deploy-edge);border-radius:10px;background:linear-gradient(145deg,#131415,#09090a);padding:8px 10px; }
.deploy-data-row,.deploy-task { display:grid;grid-template-columns:23px minmax(0,1fr);align-items:center;gap:8px;padding:6px 0; }
.deploy-data-row + .deploy-data-row,.deploy-task + .deploy-task { border-top:1px solid #222325; }
.deploy-data-row > .nx-icon,.deploy-task > .nx-icon { display:block;width:23px;height:23px;border-radius:5px;background-color:#1b1c1e; }
.deploy-data-row b { display:block;font-size:12px;margin-top:1px; }
.deploy-task { grid-template-columns:23px minmax(0,1fr) auto;min-height:43px; }
.deploy-task strong { font-size:11px; }
.deploy-task p { font-size:10px;margin:2px 0 0; }
.deploy-check { color:#5a6263;font-size:11px;opacity:.5; }
.deploy-task.done .deploy-check { color:#00ef97;opacity:1; }
.deploy-task.checking .deploy-check { color:white;opacity:1; }
.deploy-task output { font-size:10px; }
.deploy-log-head { display:flex;justify-content:space-between;align-items:center;margin:12px 0 5px; }
.deploy-log-head h3 { font-size:12px; }
.deploy-log-head i { display:inline-block;width:6px;height:6px;border-radius:50%;background:#1fe6a6; }
.deploy-log { list-style:none;margin:0;padding:8px 9px;border:1px solid var(--deploy-edge);border-radius:9px;background:#0c0d0e;min-height:124px;font:9px/1.55 ui-monospace,monospace;color:#b6c4c2; }
.deploy-log li span { color:#25e69d;margin-right:3px; }
.deploy-note { display:flex;align-items:center;gap:9px;margin-top:10px; }
.deploy-note > .nx-icon { width:20px;height:20px;flex:none; }
.deploy-meter { height:4px;border-radius:8px;background:#232629;overflow:hidden;margin-top:9px; }
.deploy-meter > span { display:block;width:100%;height:100%;transform-origin:left;transform:scaleX(0);background:#f5f5f7; }
.deploy-success { text-align:center;margin:clamp(8px, 1.5dvh, 16px) 0 0; }
.deploy-success h1 { font-size:clamp(21px, 6.3vw, 32px); text-wrap:balance; letter-spacing:-.035em; }
.deploy-success p { margin-top:5px; color:#aaa9ad; font-size:clamp(13px, 3.65vw, 18px); text-wrap:balance; }
@media (prefers-reduced-motion:reduce) {
  .deploy-rail .current i { animation:none; }
  .deploy-node-art svg { display:none; }
}

.deploy-screen[data-stage="5"] {
  --deploy-home-height: clamp(43px, 11vw, 51px);
  --deploy-page-inset: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-inline: var(--deploy-page-inset);
  padding-bottom: clamp(24px, 6.9dvh, 66px);
}
@media (max-width: 375px) {
  .deploy-screen[data-stage="5"] { --deploy-page-inset: 12px; }
}
.deploy-final-actions {
  margin-top: auto;
  padding-top: clamp(44px, 11dvh, 104px);
}
.deploy-screen .deploy-home-button { min-height:var(--deploy-home-height); }
.deploy-screen[data-stage="5"] :is(.deploy-success, .deploy-home-button) { translate:0 12px; }
.deploy-wave-scene {
  position: relative;
  width: auto;
  flex: none;
  aspect-ratio: 851 / 455;
  margin: clamp(49px, 13.6dvh, 126px) calc(-1 * var(--deploy-page-inset)) 0;
  pointer-events: none;
}
.deploy-wave-scene svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.deploy-wave-scene svg { overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .deploy-wave-scene svg { display: none; }
}

.app:has(.deploy-shortage) { background: #050607; }
.deploy-shortage {
  --shortage-side: 4.3%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--shortage-side) 0;
  color: #f5f6f7;
}
.deploy-shortage > * { flex: none; }
.shortage-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(106px, 28vw, 136px);
  display: grid;
  grid-template-columns: minmax(0, 52%) minmax(0, 48%);
  align-items: center;
  padding: 24px 0;
}
.shortage-hero > div:first-child { z-index: 1; min-width: 0; }
.shortage-hero .deploy-node-art { width: 112%; margin: 0; justify-self: center; pointer-events: none; }
.shortage-hero h1 { margin: 0; font-size: clamp(18px, 5vw, 25px); line-height: 1.15; }
.shortage-hero h2 { margin: 7px 0; font-size: clamp(12px, 3.1vw, 16px); }
.shortage-hero p { margin: 8px 0 0; color: #bdc1c6; font-size: clamp(10px, 2.6vw, 13px); line-height: 1.35; }
.shortage-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.shortage-metrics.node-gross {
  grid-template-columns: repeat(3,minmax(0,1fr));
  margin: 0;
}
.shortage-metrics.node-gross .node-datum { min-height: 62px; }

.shortage-metrics .nx-icon {
  flex: none;
  width: clamp(13px, 4.5vw, 24px);
  height: clamp(13px, 4.5vw, 24px);
}
.shortage-warning {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: clamp(8px, 2.5vw, 13px);
  border: 1px solid #fd4148;
  border-radius: 15px;
  background: radial-gradient(ellipse at 90% 115%,#752328 0%,transparent 46%), linear-gradient(120deg,#171012,#100b0c);
  box-shadow: inset 0 0 12px #ff3c442b, 0 0 12px #ff3c441f;
}
.shortage-warning::before {
  position: absolute;
  z-index: -1;
  inset: 50% -5% 0 24%;
  background: repeating-radial-gradient(ellipse 53% 62% at 80% 118%,transparent 0 4px,#ff4e5844 5px,transparent 6px);
  mask-image: linear-gradient(165deg,transparent 40%,#000 94%);
  content: "";
}
.shortage-warning > img { display: block; width: 100%; height: auto; }
.shortage-warning > div { border-left: 1px solid #342629; padding-left: 10px; }
.shortage-warning h2 { margin: 0 0 5px; font-size: clamp(13px, 3.6vw, 18px); }
.shortage-warning p { margin: 0; color: #c7cbd0; font-size: clamp(10px, 2.65vw, 14px); line-height: 1.37; }
.shortage-warning strong { color: #ff545d; white-space: nowrap; }




.app > .shortage-funds {
  position: relative;
  flex: none;
  margin-top: auto;
}
.deploy-shortage [hidden], .shortage-funds[hidden] { display: none; }
.shortage-reopen { margin-top: 12px; }
.deploy-shortage > :is(.shortage-metrics, .shortage-warning) { translate: 0 6px; }


.app:has(.deploy-shortage) { container-type: inline-size; }
.app:has(.deploy-shortage) > .top {
  min-height: 12.9cqw;
  padding: 2.7cqw 4.7cqw 1.8cqw;
}
.app:has(.deploy-shortage) .top .brand { font-size: 4.5cqw; }
.deploy-shortage { --shortage-side: 4.4%; }
.shortage-hero {
  min-height: 33.5cqw;
  padding: 3.5cqw .3cqw 1.6cqw;
}
.shortage-hero h1 { font-size: 4.8cqw; white-space: nowrap; }
.shortage-hero h2 { margin: 2.05cqw 0; font-size: 3.2cqw; }
.shortage-hero p { margin: 2.05cqw 0 0; font-size: 2.58cqw; line-height: 1.33; }
.shortage-metrics.node-gross {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.1cqw;
}
.shortage-metrics.node-gross .node-datum {
  min-height: max(45px, 11.8cqw);
  gap: 1.4cqw;
  padding: 1.6cqw 2cqw;
}
.shortage-metrics.node-gross .nx-icon { width: 5.4cqw; height: 5.4cqw; }
.shortage-metrics.node-gross small { font-size: 2.45cqw; }
.shortage-metrics.node-gross b { margin-top: .45cqw; font-size: 2.8cqw; }
.shortage-warning {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.18fr);
  min-height: 27.5cqw;
  margin: 12px 0;
  gap: 2.7cqw;
  padding: 2.4cqw 3cqw;
  border-radius: 3.8cqw;
}
.shortage-warning > img { max-height: 18.6cqw; object-fit: contain; }
.shortage-warning > div { padding-left: 3.1cqw; }
.shortage-warning h2 { margin-bottom: 1.2cqw; font-size: 3.75cqw; }
.shortage-warning p { font-size: 2.75cqw; line-height: 1.36; }



.deploy-shortage:has(+ .shortage-funds:not([hidden])) > .shortage-metrics { flex-grow: 0; max-height: none; }

.app > .shortage-funds {
  padding: 2.8cqw 5.5cqw max(15.9cqw, env(safe-area-inset-bottom));
  border-radius: 6.4cqw 6.4cqw 0 0;
  border-inline: 0;
  border-bottom: 0;
  max-height: none;
}
.shortage-funds .handle { width: 8cqw; height: 1cqw; margin-bottom: 3cqw; }
.shortage-funds h2 { font-size: 4.5cqw; }
.shortage-funds .funds-lead { margin: 1.8cqw 0 2.4cqw; font-size: 2.85cqw; }
.shortage-funds .funds-token { min-height: 11cqw; padding: 1.45cqw 2.3cqw; gap: 2.35cqw; border-radius: 2.3cqw; font-size: 2.85cqw; }
.shortage-funds .funds-token .coin { --funds-icon-size: 7.7cqw; }
.shortage-funds .funds-amount-label { margin: 2.75cqw 0 1.4cqw; font-size: 2.4cqw; }
.shortage-funds .funds-input-wrap { padding-inline: 2.9cqw 2.2cqw; border-radius: 2cqw; }
.shortage-funds .funds-input-wrap input { min-height: max(30px,7.45cqw); font-size: max(16px,3.75cqw); }
.shortage-funds .funds-input-wrap span { font-size: 2.6cqw; }
.shortage-funds .funds-presets { gap: 1.1cqw; }
.shortage-funds .funds-presets button { min-height: 7cqw; border-radius: 1.4cqw; font-size: 2.7cqw; }
.shortage-funds .funds-summary { margin: 2.7cqw 0 1.6cqw; padding: 2cqw 0; border-radius: 2cqw; }
.shortage-funds .funds-summary div { padding-inline: 2.65cqw; }
.shortage-funds .funds-summary dt, .shortage-funds .funds-info p { font-size: 2.4cqw; }
.shortage-funds .funds-summary dd { font-size: 2.85cqw; }
.shortage-funds .funds-info { gap: 2.5cqw; padding: 1.6cqw 2.55cqw; border-radius: 2.2cqw; }
.shortage-funds .funds-info .nx-icon { width: 3.7cqw; height: 3.7cqw; flex: none; }
.shortage-funds .funds-submit { margin-top: 3.2cqw; min-height: 9.6cqw; font-size: 3.35cqw; }

@media (min-aspect-ratio: 10/21) {
  .app > .shortage-funds { padding-bottom: max(3.1cqw,env(safe-area-inset-bottom)); }
}
@media (min-aspect-ratio: 9/17) {
  .deploy-shortage { zoom: .88; }
}
@media (min-aspect-ratio: 5/9) {
  .deploy-shortage { zoom: .76; }
}

.deploy-heading .deploy-node-version,
.shortage-hero .deploy-node-version {
  margin: 2px 0;
  color: #a4abb4;
  font-size: clamp(9px, 2.35vw, 11px);
}
