:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(17, 17, 17, .86);
  --line: #2a2a2a;
  --muted: #919191;
  --white: #f5f5f2;
  --green: #73f2a7;
  --amber: #ffcb69;
  --red: #ff6b6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 0%, #191919 0, var(--bg) 34rem); color: var(--white); }
button, input { font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); }
.topbar { height: 78px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; background: rgba(5,5,5,.78); }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 14px; }
.logo-blend { display: block; object-fit: contain; mix-blend-mode: screen; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; }
.brand-copy { display: grid; gap: 2px; }
.brand-wordmark { width: 92px; height: 22px; object-position: left center; }
.brand small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .2em; }
.top-status { font: 600 11px ui-monospace, monospace; letter-spacing: .15em; display: flex; gap: 9px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 12px currentColor; }
.dot.live { background: var(--green); color: var(--green); }
main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 80px; }
.login-view { max-width: 790px; min-height: calc(100vh - 210px); display: flex; flex-direction: column; justify-content: center; }
.hero-brand { width: min(100%, 370px); display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.hero-mark { width: 112px; height: 112px; flex: 0 0 auto; }
.hero-wordmark { width: min(230px, calc(100% - 134px)); height: 86px; object-position: left center; }
.eyebrow { margin: 0 0 9px; color: var(--muted); letter-spacing: .2em; font: 700 10px ui-monospace, monospace; }
h1 { font-size: clamp(44px, 7vw, 88px); line-height: .92; letter-spacing: -.055em; margin: 0; }
.lead { max-width: 640px; color: #b8b8b8; font-size: 18px; line-height: 1.55; margin: 28px 0; }
.login-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.login-actions span, .panel-note { color: var(--muted); font-size: 12px; }
.primary, .ghost { border-radius: 999px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); transition: .2s ease; }
.primary { color: #050505; background: var(--white); border-color: var(--white); font-weight: 750; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(255,255,255,.14); }
.ghost { color: var(--white); background: transparent; }
.ghost:hover { border-color: #707070; }
button:disabled { opacity: .4; cursor: wait; transform: none !important; }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 20px 0 38px; }
.page-title h1 { font-size: clamp(48px, 7vw, 76px); }
.toolbar { display: flex; gap: 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 18px; background: var(--panel); }
.metrics article { min-width: 0; padding: 20px; border-right: 1px solid var(--line); }
.metrics article:last-child { border: 0; }
.metrics span, .metrics small { display: block; color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .17em; }
.metrics strong { display: block; font-size: clamp(22px, 3vw, 36px); margin: 10px 0 3px; font-weight: 600; }
.metrics .hash { font: 600 15px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; }
.grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); backdrop-filter: blur(12px); }
.validators-panel { position: relative; z-index: 2; }
.panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.panel h2, dialog h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.secure-badge { border: 1px solid #3c3c3c; border-radius: 999px; padding: 5px 9px; color: var(--muted); font: 700 9px ui-monospace, monospace; letter-spacing: .12em; }
.validator-list { display: grid; gap: 8px; }
.validator { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.validator .state { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.validator.ready .state { background: var(--green); box-shadow: 0 0 14px rgba(115,242,167,.55); }
.validator.reachable .state { background: var(--amber); }
.validator strong { font-size: 13px; }
.validator small { color: var(--muted); display: block; margin-top: 2px; }
.validator code { color: #ccc; font-size: 11px; }
.validator button { padding: 7px 11px; min-height: 0; font-size: 11px; }
.panel-note { line-height: 1.5; margin: 16px 0 0; }
.ota-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.ota-box summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.ota-box p { color: var(--muted); font-size: 11px; line-height: 1.5; }
.wallet-line { padding: 13px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.wallet-line span { display: block; color: var(--muted); font: 10px ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; }
.wallet-line strong { display: block; margin-top: 7px; }
label { display: grid; gap: 7px; margin: 0 0 14px; color: var(--muted); font-size: 11px; }
input { width: 100%; color: var(--white); background: #090909; border: 1px solid #343434; border-radius: 10px; padding: 12px 13px; outline: none; }
input:focus { border-color: #aaa; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.as1-select { position: relative; min-width: 0; }
.as1-select-trigger { width: 100%; min-height: 44px; color: var(--white); background: linear-gradient(135deg, #111, #080808); border: 1px solid #343434; border-radius: 11px; padding: 7px 12px 7px 8px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.as1-select-trigger:hover, .as1-select.open .as1-select-trigger { border-color: #777; box-shadow: 0 0 0 3px rgba(255,255,255,.045), 0 10px 32px rgba(0,0,0,.35); }
.as1-select.open .as1-select-trigger { transform: translateY(-1px); }
.target-token { min-width: 34px; height: 28px; padding: 0 7px; border: 1px solid #3b3b3b; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #ddd; background: #171717; font: 750 9px ui-monospace, monospace; letter-spacing: .06em; }
.target-copy { min-width: 0; display: grid; gap: 1px; }
.target-copy strong, .as1-select-option strong { color: var(--white); font-size: 12px; }
.target-copy small, .as1-select-option small { color: var(--muted); font-size: 9px; }
.select-chevron { width: 8px; height: 8px; border-right: 1px solid #bbb; border-bottom: 1px solid #bbb; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; }
.as1-select.open .select-chevron { transform: rotate(225deg) translate(-1px, -1px); }
.as1-select-menu { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; padding: 6px; display: grid; gap: 3px; background: rgba(10,10,10,.98); border: 1px solid #404040; border-radius: 13px; box-shadow: 0 24px 70px rgba(0,0,0,.78), inset 0 1px rgba(255,255,255,.035); backdrop-filter: blur(18px); }
.as1-select-menu[hidden] { display: none; }
.as1-select-option { width: 100%; min-height: 48px; padding: 7px 9px; color: var(--white); border: 1px solid transparent; border-radius: 9px; background: transparent; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; }
.as1-select-option > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.as1-select-option:hover, .as1-select-option:focus-visible { background: #181818; border-color: #333; outline: none; }
.as1-select-option.selected { background: linear-gradient(90deg, rgba(115,242,167,.11), rgba(255,255,255,.025)); border-color: #31513e; }
.as1-select-option.display-option { margin-top: 3px; border-top-color: #292929; }
.target-live { width: 7px; height: 7px; border-radius: 50%; background: #4a4a4a; box-shadow: 0 0 0 3px rgba(255,255,255,.025); }
.as1-select-option.online .target-live { background: var(--green); box-shadow: 0 0 12px rgba(115,242,167,.55); }
.as1-select-option.reachable:not(.online) .target-live { background: var(--amber); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.transaction-panel .primary { width: 100%; }
.message { margin-top: 14px; border: 1px solid #31513e; color: var(--green); background: rgba(115,242,167,.06); border-radius: 10px; padding: 11px; font-size: 12px; line-height: 1.45; }
.message.error { color: var(--red); border-color: #5c3030; background: rgba(255,107,107,.06); }
.activity-panel { margin-top: 18px; }
.maintenance-panel { margin-top: 18px; }
.display-device { border-color: #353f39; background: linear-gradient(90deg, rgba(115,242,167,.035), transparent 58%); }
.device-kind { min-width: 58px; text-align: center; border: 1px solid #3e4942; border-radius: 999px; padding: 6px 8px; color: #b9d7c4; font: 700 9px ui-monospace, monospace; letter-spacing: .08em; }
.command-list { display: grid; gap: 8px; }
.command-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; }
.command-item strong { display: block; font-size: 13px; }
.command-item small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.command-item code { color: #c7c7c7; font-size: 10px; }
.command-state { min-width: 92px; text-align: center; border: 1px solid #424242; border-radius: 999px; padding: 6px 9px; font: 700 9px ui-monospace, monospace; letter-spacing: .06em; }
.command-verified .command-state { color: var(--green); border-color: #31513e; background: rgba(115,242,167,.06); }
.command-failed .command-state, .command-expired .command-state { color: var(--red); border-color: #5c3030; background: rgba(255,107,107,.06); }
.command-delivered .command-state, .command-acknowledged .command-state { color: var(--amber); border-color: #5e4b27; background: rgba(255,203,105,.06); }
.empty-state { color: var(--muted); margin: 0; font-size: 12px; }
.activity-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.activity-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; font: 12px ui-monospace, monospace; }
.activity-item span { color: var(--muted); display: block; margin-top: 4px; }
dialog { width: min(430px, calc(100% - 30px)); color: var(--white); background: #101010; border: 1px solid #3a3a3a; border-radius: 18px; padding: 26px; box-shadow: 0 30px 120px #000; }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(9px); }
.dialog-mark { width: 54px; height: 54px; margin-bottom: 20px; }
dialog p:not(.eyebrow) { color: var(--muted); line-height: 1.5; font-size: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@media (max-width: 850px) { .metrics { grid-template-columns: 1fr 1fr; } .metrics article:nth-child(2) { border-right: 0; } .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .grid { grid-template-columns: 1fr; } .activity-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { main { width: min(100% - 24px, 1240px); padding-top: 30px; } .topbar { padding: 0 14px; } .brand small { display: none; } .brand-copy { gap: 0; } .brand-wordmark { width: 82px; } .hero-brand { gap: 14px; } .hero-mark { width: 82px; height: 82px; } .hero-wordmark { width: min(210px, calc(100% - 96px)); height: 70px; } .page-title { align-items: flex-start; flex-direction: column; } .metrics { grid-template-columns: 1fr; } .metrics article { border-right: 0; border-bottom: 1px solid var(--line); } .activity-list, .form-row { grid-template-columns: 1fr; } .validator { grid-template-columns: auto 1fr auto; } .validator code { display: none; } .command-item { grid-template-columns: 1fr auto; } .command-item code { grid-column: 1 / -1; grid-row: 2; } }
