:root {
  --bg: #090b0a;
  --panel: #111412;
  --panel-2: #151916;
  --line: #252b27;
  --line-bright: #384139;
  --text: #eff4ef;
  --muted: #89938b;
  --green: #b7ff59;
  --green-2: #70d632;
  --orange: #ffad4d;
  --red: #ff6c69;
  --blue: #89c9ff;
  --radius: 18px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: var(--sans); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -20%, #1d2c1b 0, transparent 32rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .08; }
.ambient-a { width: 28rem; height: 28rem; background: var(--green); right: -15rem; top: 18%; }
.ambient-b { width: 20rem; height: 20rem; background: #3b8c57; left: 10%; bottom: -12rem; }
.eyebrow, .step { margin: 0 0 .55rem; color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-card { position: relative; width: min(100%, 430px); padding: 3rem; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(145deg, rgba(22,27,23,.96), rgba(12,15,13,.98)); box-shadow: 0 30px 100px #0009; overflow: hidden; }
.login-card::after { content: ""; position: absolute; width: 12rem; height: 12rem; right: -6rem; top: -6rem; border: 1px solid #b7ff5922; border-radius: 50%; box-shadow: 0 0 70px #b7ff5910 inset; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 30px; height: 30px; padding: 5px; border: 1px solid #b7ff5940; border-radius: 8px; background: #b7ff590c; }
.brand-mark span { display: block; width: 5px; background: var(--green); border-radius: 2px; }
.brand-mark span:nth-child(1) { height: 8px; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 12px; }
.login-card .brand-mark { margin-bottom: 2rem; }
h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.2rem); letter-spacing: -.055em; }
.lede { color: var(--muted); line-height: 1.6; margin: .75rem 0 2rem; }
label { display: grid; gap: .5rem; margin: 0 0 1rem; color: #c4ccc5; font-size: .78rem; font-weight: 650; }
label > span { color: var(--muted); font-weight: 450; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .82rem .9rem; color: var(--text); background: #090c0a; outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #b7ff5970; box-shadow: 0 0 0 3px #b7ff590c; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green); }
.mono, code { font-family: var(--mono); }
.form-error { min-height: 1.2rem; color: var(--red); font-size: .8rem; }
.button { border: 1px solid transparent; border-radius: 10px; padding: .78rem 1rem; cursor: pointer; font-weight: 760; font-size: .78rem; transition: transform .15s, opacity .15s, border-color .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .45; transform: none; }
.button.primary { background: var(--green); color: #10160b; box-shadow: 0 8px 24px #b7ff5914; }
.button.secondary { border-color: var(--line-bright); background: #171b18; color: var(--text); }
.button.danger { border-color: #ff6c6955; background: #351817; color: #ffaaa7; }
.button.wide { width: 100%; }
.text-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; padding: 0; font-size: .75rem; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.5rem 1rem; border-right: 1px solid var(--line); background: #0c0f0dcc; backdrop-filter: blur(20px); z-index: 5; }
.brand.compact { display: flex; align-items: center; gap: .75rem; padding: 0 .55rem 1.8rem; }
.brand.compact strong, .brand.compact small { display: block; }.brand.compact strong { font-size: .88rem; }.brand.compact small { color: var(--muted); font-size: .66rem; margin-top: .15rem; }
nav { display: grid; gap: .35rem; }
.nav-item { display: flex; gap: .9rem; align-items: center; border: 1px solid transparent; padding: .78rem .8rem; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: .79rem; font-weight: 650; }
.nav-item span { font: .62rem var(--mono); color: #59635b; }
.nav-item.active { border-color: var(--line); background: var(--panel-2); color: var(--text); }.nav-item.active span { color: var(--green); }
.sidebar-foot { margin-top: auto; padding: 1rem .55rem; display: grid; gap: 1rem; }
.security-chip { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .66rem; }.security-chip i, .runtime-status i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 10px var(--green); }
.content-shell { min-width: 0; padding: 0 clamp(1rem, 4vw, 4rem) 4rem; }
.topbar { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.topbar h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.035em; }
.status-cluster { display: flex; gap: .65rem; align-items: center; }
.runtime-status, .count-chip { display: inline-flex; gap: .5rem; align-items: center; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #0d100e; font-size: .68rem; }
.runtime-status.busy { color: var(--orange); }.runtime-status.busy i { background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.view, .mode-panel { display: none; }.view.active, .mode-panel.active { display: block; }
.mode-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 720px; margin-bottom: 1.25rem; padding: .35rem; border: 1px solid var(--line); border-radius: 13px; background: #0e110f; }
.mode-tab { display: grid; gap: .15rem; border: 0; border-radius: 9px; padding: .72rem 1rem; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }.mode-tab span { font-size: .8rem; font-weight: 760; }.mode-tab small { font-size: .64rem; }.mode-tab.active { background: #20261f; color: var(--text); box-shadow: 0 3px 12px #0005; }.mode-tab.active span { color: var(--green); }
.operation-grid, .page-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 1.2rem; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 1.7rem); background: linear-gradient(145deg, rgba(20,24,21,.96), rgba(14,17,15,.97)); box-shadow: 0 16px 50px #0003; }
.guard-panel { position: sticky; top: 1.2rem; }
.panel-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: 1.3rem; }
.panel h3 { margin: 0 0 1.1rem; font-size: 1.15rem; letter-spacing: -.025em; }.panel-heading h3 { margin: 0; }.panel h4 { margin: 1rem 0; font-size: .8rem; }
.badge { display: inline-flex; padding: .33rem .5rem; border: 1px solid var(--line-bright); border-radius: 999px; color: var(--muted); font-size: .61rem; text-transform: uppercase; letter-spacing: .08em; }.badge.recommended { border-color: #b7ff5945; color: var(--green); }.badge.warn { border-color: #ffad4d55; color: var(--orange); }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }.hero-field input { font-size: .9rem; }
.drop-preview { min-height: 80px; padding: 1rem; border: 1px solid #283129; border-radius: 12px; background: #0a0d0b; color: #c3cbc4; font-size: .75rem; line-height: 1.6; }.drop-preview.empty { color: var(--muted); }.drop-preview strong { color: var(--green); }.phase-chips { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .6rem; }.phase-chip { border: 1px solid var(--line); border-radius: 999px; padding: .28rem .45rem; color: var(--muted); font-size: .62rem; }
.divider { height: 1px; background: var(--line); margin: 1.5rem 0; }
.hint, .risk-note { color: var(--muted); font-size: .72rem; line-height: 1.55; }.risk-note { margin: 1rem 0 0; }
.wallet-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem; max-height: 310px; overflow: auto; padding-right: .25rem; }
.wallet-picker.dense { max-height: 390px; }
.wallet-option { display: flex; align-items: center; gap: .65rem; margin: 0; padding: .72rem; border: 1px solid var(--line); border-radius: 10px; background: #0d100e; cursor: pointer; }.wallet-option:has(input:checked) { border-color: #b7ff5955; background: #172014; }.wallet-option strong, .wallet-option small { display: block; overflow: hidden; text-overflow: ellipsis; }.wallet-option strong { font-size: .73rem; }.wallet-option small { margin-top: .2rem; color: var(--muted); font: .61rem var(--mono); }
.empty-state { padding: 1.25rem; border: 1px dashed var(--line-bright); border-radius: 10px; color: var(--muted); text-align: center; font-size: .72rem; }
.guard-list { margin: 0 0 1.3rem; }.guard-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .73rem; }.guard-list dt { color: var(--muted); }.guard-list dd { margin: 0; color: var(--text); text-align: right; }
.compact-list { margin-top: .4rem; }.exposure-note { margin: .9rem 0; padding: .75rem; border: 1px solid #b7ff5928; border-radius: 9px; background: #b7ff5908; color: #b7c2b9; font-size: .68rem; line-height: 1.5; }
.confirm-field { margin-top: 1.2rem; padding: .9rem; border: 1px solid #ffad4d38; border-radius: 10px; background: #ffad4d08; }.confirm-field strong { color: var(--orange); }
.field-grid { display: grid; gap: .8rem; }.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }.field-grid label strong { display: block; font-size: 1.6rem; color: var(--green); padding-top: .45rem; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; }
details { margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; background: #0d100e; }summary { cursor: pointer; padding: .85rem 1rem; color: #c7cec8; font-size: .74rem; font-weight: 650; }.details-body { padding: .3rem 1rem 1rem; }
.button-stack { display: grid; gap: .55rem; }
.table-list, .job-list { display: grid; gap: .55rem; }
.table-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(110px, .7fr) auto; gap: 1rem; align-items: center; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; background: #0d100e; }.table-row strong, .table-row small { display: block; }.table-row strong { font-size: .76rem; }.table-row small { color: var(--muted); font: .62rem var(--mono); margin-top: .2rem; }.kind-chip { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.icon-button { border: 1px solid var(--line); background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; padding: .42rem .55rem; font-size: .65rem; }
.job-card { border: 1px solid var(--line); border-radius: 12px; background: #0d100e; overflow: hidden; }.job-summary { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1rem; cursor: pointer; }.job-title { display: flex; gap: .6rem; align-items: center; }.job-title strong { font-size: .78rem; }.job-meta { color: var(--muted); font-size: .66rem; margin-top: .35rem; }.status-pill { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .48rem; color: var(--muted); font-size: .6rem; text-transform: uppercase; }.status-pill.running, .status-pill.cancelling, .status-pill.pending, .status-pill.partial { color: var(--orange); border-color: #ffad4d55; }.status-pill.completed { color: var(--green); border-color: #b7ff5940; }.status-pill.not-minted, .status-pill.aborted, .status-pill.failed, .status-pill.cancelled, .status-pill.interrupted { color: var(--red); border-color: #ff6c6945; }.job-detail { padding: 0 1rem 1rem; }.result-banner { display: grid; gap: .28rem; margin-bottom: .7rem; padding: .78rem .85rem; border: 1px solid var(--line); border-radius: 9px; background: #111512; font-size: .7rem; line-height: 1.45; }.result-banner strong { font-size: .73rem; }.result-banner span { color: #bbc3bd; }.result-banner.completed { border-color: #b7ff5938; background: #b7ff5908; }.result-banner.completed strong { color: var(--green); }.result-banner.pending, .result-banner.partial { border-color: #ffad4d40; background: #ffad4d08; }.result-banner.pending strong, .result-banner.partial strong { color: var(--orange); }.result-banner.not-minted, .result-banner.aborted, .result-banner.failed, .result-banner.cancelled, .result-banner.interrupted { border-color: #ff6c6945; background: #ff6c6909; }.result-banner.not-minted strong, .result-banner.aborted strong, .result-banner.failed strong, .result-banner.cancelled strong, .result-banner.interrupted strong { color: var(--red); }.log-box { max-height: 320px; overflow: auto; padding: .8rem; border-radius: 8px; background: #070908; color: #aeb8b0; font: .67rem/1.55 var(--mono); white-space: pre-wrap; word-break: break-word; }.job-actions { display: flex; justify-content: end; margin-bottom: .7rem; }
#gas-settings { display: grid; gap: .85rem; margin-bottom: 1rem; }.gas-row { display: grid; grid-template-columns: 1fr 100px 100px; gap: .5rem; align-items: end; }.gas-row strong { font-size: .7rem; padding-bottom: .9rem; }
.toast-region { position: fixed; z-index: 50; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; width: min(360px, calc(100vw - 2rem)); }.toast { padding: .85rem 1rem; border: 1px solid var(--line-bright); border-radius: 10px; background: #171b18; box-shadow: 0 15px 50px #000a; font-size: .74rem; animation: toast-in .2s ease-out; }.toast.error { border-color: #ff6c6960; color: #ffc0be; }.toast.success { border-color: #b7ff5950; color: #d9ffab; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 980px) { .app-shell { grid-template-columns: 74px minmax(0, 1fr); }.sidebar { padding-inline: .6rem; }.brand.compact > div:last-child, .nav-item:not(.active) { font-size: 0; }.nav-item { justify-content: center; gap: 0; }.nav-item span { font-size: .62rem; }.sidebar-foot .security-chip { display: none; }.text-button { font-size: .62rem; }.operation-grid, .page-grid { grid-template-columns: 1fr; }.guard-panel { position: static; } }
@media (max-width: 680px) { .app-shell { display: block; padding-bottom: 72px; }.sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 64px; padding: .45rem; border: 1px solid var(--line); border-radius: 16px 16px 0 0; }.brand.compact, .sidebar-foot { display: none; }.sidebar nav { grid-template-columns: repeat(4, 1fr); }.nav-item, .nav-item:not(.active) { display: grid; gap: .2rem; justify-items: center; padding: .55rem; font-size: .61rem; }.nav-item span { font-size: .55rem; }.content-shell { padding: 0 .8rem 2rem; }.topbar { min-height: 86px; margin-bottom: 1rem; }.topbar .eyebrow, .count-chip { display: none; }.mode-switch { position: sticky; top: 0; z-index: 4; background: #0e110ff2; backdrop-filter: blur(16px); }.mode-tab { padding: .65rem .5rem; text-align: center; }.mode-tab small { display: none; }.panel { border-radius: 14px; padding: 1rem; }.field-grid.two, .field-grid.three { grid-template-columns: 1fr; }.wallet-picker { grid-template-columns: 1fr; }.input-action { grid-template-columns: 1fr; }.table-row { grid-template-columns: 1fr auto; }.table-row .kind-chip { display: none; }.login-card { padding: 2rem 1.4rem; }.gas-row { grid-template-columns: 1fr 80px 80px; } }
