:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#dce3ef;background:#10141d;font-size:14px;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh}aside{position:fixed;inset:0 auto 0 0;width:218px;background:#151b27;border-right:1px solid #273040;padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:750;letter-spacing:2px}.brandmark{display:grid;place-items:center;width:42px;height:46px;border:1px solid #8d91ff;border-radius:12px;color:#a6a2ff;background:#302e53;font-size:29px;font-style:italic}.brand small{display:block;font-size:11px;font-weight:400;letter-spacing:2px;color:#8994a8;margin-top:4px}.nav-title{font-size:11px;color:#79859b;margin-top:52px;margin-bottom:16px;letter-spacing:2px}.nav{background:transparent;border:0;color:#8d9ab2;text-align:left;padding:13px 15px;border-radius:8px;margin:3px 0;font-size:14px}.nav.active{color:#c0baff;background:#2c2c48}.side-bottom{margin-top:auto;font-size:12px;color:#a2acc0}.side-bottom small{display:block;color:#68778f;font-size:10px;margin:12px 0}.dot{display:inline-block;width:7px;height:7px;background:#6ad4ad;border-radius:100%;margin-right:6px}main{margin-left:218px;padding:32px 36px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:20px}.eyebrow{font-size:10px;letter-spacing:2px;color:#818da4}h1{margin:10px 0 0;font-size:27px;font-weight:600}h2{font-size:17px;font-weight:600;margin:0 0 9px}p{font-size:12px;color:#91a0b7;line-height:1.8;margin:6px 0 18px}.header-right{display:flex;gap:15px;align-items:center;font-size:12px}.pill{display:inline-block;border:1px solid #384353;color:#a5b0c5;border-radius:20px;padding:6px 11px;font-size:11px;white-space:nowrap}.amber{color:#e8c58a;background:#30291d;border-color:#5b4830}.green{color:#7cdbb5;border-color:#315446;background:#20382e}.notice{border:1px solid #354054;border-radius:9px;background:#1b2331;padding:12px 16px;color:#aebdd3;font-size:12px;line-height:1.7;margin-bottom:24px}.panel{border:1px solid #2a3445;border-radius:12px;background:#191f2b;padding:24px;margin-bottom:22px;box-shadow:0 8px 18px #080b1215}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.metric{min-height:132px}.metric span{color:#8c9ab1;font-size:12px}.metric strong{display:block;font-size:26px;font-weight:550;margin:17px 0 10px}.metric small{color:#7b89a1;font-size:11px}.metric .subdued{font-size:21px;color:#8a96aa}.section-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.section-head p{margin-bottom:22px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}label{display:block;color:#9facc2;font-size:12px}input{display:block;width:100%;background:#111722;border:1px solid #344055;border-radius:7px;color:#e0e7f2;font-size:13px;padding:11px 12px;margin-top:9px;outline:none}input:focus{border-color:#9690fa;box-shadow:0 0 0 2px #7066ef1f}input:disabled{opacity:.5}button{cursor:pointer;font:inherit;transition:.15s}button:disabled{cursor:wait;opacity:.5}.primary{background:#a49bff;color:#151229;border:0;border-radius:7px;font-weight:600;padding:12px 20px;white-space:nowrap}.primary:hover{background:#b8b1ff}.ghost{background:transparent;border:1px solid #39455c;color:#abb9cf;padding:7px 11px;border-radius:6px;font-size:12px}.ghost:hover{background:#293247}.danger{color:#efa0a0;border-color:#603b43}.wallet-form{display:flex;gap:14px;align-items:end;margin-bottom:24px}.grow{flex:1}.create-grid{display:grid;grid-template-columns:1.2fr 1.3fr .6fr .6fr auto;gap:15px;align-items:end}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:11px;color:#78879f;font-weight:500;padding:14px 10px;background:#151b26}td{padding:16px 10px;border-bottom:1px solid #293243;font-size:12px}td small{display:block;margin-top:5px;color:#77869f}td input{display:inline-block;width:65px;margin:0 5px 0 0;padding:7px}td button{margin:3px}td.address{font-family:ui-monospace,SFMono-Regular,monospace;color:#bdc9dd;font-size:11px}.empty{padding:36px;text-align:center;color:#73839e}.settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}.logs{height:190px;overflow:auto;background:#121924;border:1px solid #2c3749;border-radius:7px;padding:12px;font-family:ui-monospace,monospace;font-size:11px;color:#92a3be;line-height:2}.logs div{border-bottom:1px solid #232d3d;padding:4px 0}.muted{color:#708199;font-size:11px;margin-bottom:0}.auth-panel{max-width:440px;margin:60px auto;padding:36px}.auth-panel h2{font-size:23px;margin-top:18px}.auth-panel label{margin:20px 0}.auth-panel button{width:100%;margin:4px 0 12px}footer{display:flex;justify-content:space-between;border-top:1px solid #273143;padding-top:20px;font-size:10px;color:#65758e;margin-top:20px}#message{border:1px solid #74494b;color:#f0b7b7;background:#342329;padding:12px 16px;border-radius:8px;margin-bottom:20px}#message.success{border-color:#345a4c;color:#9cdec4;background:#1c322a}[hidden]{display:none!important}@media(max-width:1100px){aside{width:175px;padding:26px 14px}main{margin-left:175px;padding:24px}.metrics{grid-template-columns:1fr 1fr}.create-grid{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:auto;padding:15px 20px;flex-direction:row;align-items:center;gap:15px}.brand{font-size:17px}.brand small,.nav-title,.side-bottom{display:none}.brandmark{width:30px;height:34px;font-size:22px}.nav{margin-left:auto}main{margin-left:0;padding:20px 14px}.metrics{gap:10px}.metric{padding:18px}header{align-items:start}.header-right{flex-wrap:wrap;justify-content:end}.create-grid{grid-template-columns:1fr}.wallet-form{flex-wrap:wrap}.wallet-form .grow{min-width:100%}.panel{padding:18px}.auth-panel{margin:20px auto}h1{font-size:23px}footer{gap:20px;line-height:1.7}}

.chain-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px 30px}.chain-grid span{display:block;color:#8796af;font-size:11px;margin-bottom:8px}.chain-grid strong{font-size:14px;font-weight:500;color:#c3cee0}@media(max-width:700px){.chain-grid{grid-template-columns:1fr}}

#client-downloads{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#client-downloads a{text-decoration:none}#client-downloads span{font-size:11px;color:#8191aa}

.admin-filter{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:22px 0}.admin-filter label{min-width:180px;flex:1}.admin-filter select{display:block;width:100%;background:#111827;border:1px solid #34415a;color:#d9e4f5;padding:12px;border-radius:8px;margin-top:8px}.web-wallet-placeholder{padding:18px;border:1px dashed #546281;border-radius:10px;margin:20px 0;background:#141c2a}.web-wallet-placeholder p{color:#94a3b8}button:disabled{opacity:.5;cursor:not-allowed}footer span:first-child{color:#b8a6ff;letter-spacing:.07em}.admin-overview{border-color:#4a4267}

.vault-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #334155}.vault-row .address{overflow-wrap:anywhere;flex:1;min-width:200px}.vault-row form{display:flex;gap:8px}.web-wallet-placeholder summary{cursor:pointer;padding:16px 0;color:#c4b5fd}#vault-import{display:grid;gap:16px;margin:14px 0}#vault-import label{display:grid;gap:8px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}input,select,button{min-height:44px}#vault-feedback{overflow-wrap:anywhere}@media(max-width:700px){input,select,textarea{font-size:16px!important}button{min-height:48px}.brand small{display:block;font-size:10px}.header-right{font-size:11px}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:21px;overflow-wrap:anywhere}.section-head{flex-wrap:wrap;gap:12px}.vault-row{display:grid;grid-template-columns:1fr}.vault-row form{display:grid;grid-template-columns:minmax(0,1fr) auto}.vault-row input{width:100%;min-width:0}#vault-import button,.wallet-form button{width:100%}.chain-grid strong{overflow-wrap:anywhere}footer{padding-bottom:env(safe-area-inset-bottom)}.admin-filter label{min-width:100%;margin:0}.table-wrap table{min-width:660px}.nav{white-space:nowrap}.web-wallet-placeholder{padding:14px}h3{margin:0 0 8px}}

@media(max-width:700px){#task-table{min-width:0;width:100%}#task-table thead{display:none}#task-table tbody,#task-table tr,#task-table td{display:block;width:100%}#task-table tr{border:1px solid #334155;border-radius:10px;padding:10px;margin:12px 0}#task-table td{border:0;padding:7px;white-space:normal;overflow-wrap:anywhere}#task-table td:nth-child(2)::before{content:'任务状态：';color:#94a3b8}#task-table td:nth-child(3)::before{content:'启动时间：';color:#94a3b8}#task-table td:last-child{display:flex;gap:10px;flex-wrap:wrap}#task-table td button{flex:1} .logs{overflow-wrap:anywhere} }

/* Web3 visual system */
:root{background:#090c15;color:#e7ebfa}body{background:radial-gradient(ellipse at 84% 10%,#35235945,transparent 45%),radial-gradient(ellipse at 26% 95%,#0a4f5030,transparent 45%),#090c15}body::before{content:'';position:fixed;inset:0;background-image:linear-gradient(#999dff06 1px,transparent 1px),linear-gradient(90deg,#999dff06 1px,transparent 1px);background-size:52px 52px;pointer-events:none;z-index:0}aside,main{position:relative;z-index:1}aside{position:fixed;background:#101421ee;border-color:#55507835;backdrop-filter:blur(18px);padding-top:34px}.brandmark{background:linear-gradient(140deg,#353859,#19162c);border-color:#aba0ff75;box-shadow:0 0 24px #9b78ff20;border-radius:12px}.brand{margin-bottom:44px}.nav.active{background:linear-gradient(100deg,#6f57b22e,#6f57b20c);border:1px solid #9584e63d;box-shadow:inset 3px 0 #ab9aff}.nav{min-height:48px}main{min-height:100dvh;display:flex;flex-direction:column;padding:32px 40px 24px;max-width:none}header{padding-bottom:20px;border-bottom:1px solid #70638e25;margin-bottom:28px}h1{font-size:25px;letter-spacing:-.04em;margin:0}h2,h3{letter-spacing:-.02em}.panel{background:linear-gradient(135deg,#1b2031db,#101522f2);border-color:#8d83b32c;border-radius:18px;box-shadow:0 12px 35px #02040d25}.metric{position:relative;overflow:hidden}.metric::after{content:'';position:absolute;right:-22px;top:-24px;width:95px;height:95px;background:radial-gradient(circle,#a78bfa17,transparent 70%)}.metric strong{color:#e8dcff}.primary{background:linear-gradient(110deg,#afa0ff,#9676ed);border:1px solid #cab8ff45;color:#151027;box-shadow:0 4px 24px #9272e51e;border-radius:10px}.primary:hover{background:linear-gradient(110deg,#c2b6ff,#ab8cf9);box-shadow:0 5px 30px #9e7eff35}.ghost{border-radius:9px;border-color:#7d6d9b50}.pill{background:#aea3ed0b;border-color:#9582bf44}.amber{background:#cfad5b0c;color:#dcc58e;border-color:#c8a86b35}input{border-radius:10px;background:#0b101dbb;border-color:#9086ae3a;min-height:49px;padding:13px 15px}input:focus{border-color:#b09bff;box-shadow:0 0 0 3px #a788ff13}.logs{background:#080e1bb3;border-color:#7b6b9a38;border-radius:12px}.web-wallet-placeholder{border-style:solid;border-color:#8370b84d;border-radius:14px;background:linear-gradient(135deg,#25203b66,#11252c44)}footer{margin-top:auto;padding-top:22px;min-height:64px;border-color:#74638d30;align-items:center}.developer-logo{display:inline-flex;align-items:center;gap:10px;font-size:13px!important;font-weight:550;letter-spacing:.06em;color:#d4b7eb!important;white-space:nowrap}.developer-logo svg{width:24px;height:24px;filter:drop-shadow(0 0 8px #db9de737)}
#auth.auth-panel{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);width:min(1160px,100%);max-width:none;min-height:560px;padding:0;margin:auto;overflow:hidden;border-color:#9b83ce50;box-shadow:0 25px 95px #03040a66,0 0 70px #8b5cf609}.auth-fields{display:flex;flex-direction:column;justify-content:center;padding:54px clamp(28px,4vw,72px)}.auth-symbol{display:grid;place-items:center;width:50px;height:50px;border:1px solid #a68be06b;border-radius:14px;font-size:31px;color:#cfbdff;background:#9b75f016;box-shadow:0 0 35px #a77bff13;margin-bottom:20px}#auth h2{font-size:29px;margin:0 0 24px;color:#f0eaff}#auth label{font-size:13px;margin:0 0 23px;color:#c4bdd8}#auth button{min-height:50px;margin:6px 0 0}#login-form{width:100%}.auth-art{position:relative;display:flex;flex-direction:column;justify-content:center;padding:30px 34px 0;overflow:hidden;border-left:1px solid #a68bc22e;background:radial-gradient(ellipse at 60% 45%,#63429b45,transparent 65%),linear-gradient(155deg,#23213d88,#101c2d77)}.auth-art::before{content:'';position:absolute;inset:0;background-image:radial-gradient(#c1b0ec26 .8px,transparent .8px);background-size:22px 22px;mask-image:linear-gradient(transparent,#000,transparent);pointer-events:none}.art-top,.art-bottom{position:relative;display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:.2em;color:#aeb0d4}.art-top{margin-bottom:auto}.network-light{width:6px;height:6px;background:#8ef7d7;border-radius:50%;box-shadow:0 0 12px #7ce6c9}.art-diamond{margin-left:auto;font-size:24px;color:#bea2ed}.helix-orbit{display:block;width:100%;max-height:400px;min-height:280px;filter:drop-shadow(0 0 24px #ac8aff21)}.art-bottom{justify-content:center;color:#d6c9e9;font-size:13px;letter-spacing:.24em;margin:0 0 30px}.art-bottom i{height:1px;background:linear-gradient(90deg,#82e5d3,#caa9fa);width:90px;opacity:.5}.art-bars{display:flex;align-items:end;gap:8px;height:60px;opacity:.45;overflow:hidden}.art-bars b{flex:1;height:32%;border:1px solid #9a8ec73d;background:linear-gradient(#af8dfa24,#6ce5c608);border-radius:4px 4px 0 0}.art-bars b:nth-child(3n){height:80%}.art-bars b:nth-child(3n+1){height:55%}.art-bars b:nth-child(4n){height:100%}
@media(min-width:1500px){#auth.auth-panel{min-height:620px}.helix-orbit{max-height:460px}}
@media(max-width:1100px){main{padding:26px 24px 18px}.auth-fields{padding:40px 28px}#auth.auth-panel{grid-template-columns:1fr 1fr;min-height:520px}.auth-art{padding:25px 20px 0}}
@media(max-width:700px){aside{position:relative;padding:18px;border-bottom:1px solid #74638d30;border-right:0;backdrop-filter:none}.brand{margin-bottom:0}.brand small{font-size:9px}.brandmark{width:35px;height:38px}.nav{min-height:44px;font-size:12px;padding:10px}main{min-height:calc(100dvh - 84px);padding:20px 16px 16px}header{padding-bottom:17px;margin-bottom:22px;align-items:center}h1{font-size:22px}.header-right{gap:8px}.panel{border-radius:15px;padding:18px}.metric{min-height:114px}#auth.auth-panel{grid-template-columns:1fr;min-height:0;margin:0 auto 24px;flex-shrink:0}.auth-fields{padding:26px 26px 28px}.auth-symbol{width:40px;height:40px;font-size:26px;margin-bottom:17px}#auth h2{font-size:25px;margin-bottom:22px}#auth label{margin-bottom:19px}#auth input{margin-top:8px}#auth button{margin-top:4px}.auth-art{border-left:0;border-top:1px solid #a68bc22e;padding:18px 24px 0;height:245px}.art-top{font-size:9px;letter-spacing:.18em}.helix-orbit{min-height:0;height:180px;width:100%;position:absolute;top:30px;left:0}.art-bottom{margin-top:auto;margin-bottom:16px;font-size:11px;letter-spacing:.2em}.art-bars{display:none}footer{min-height:54px;padding-top:17px}.developer-logo{font-size:12px!important}.developer-logo svg{width:22px;height:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){.auth-symbol{display:none}.auth-fields{padding:24px}#auth h2{font-size:24px;margin-bottom:20px}#auth label{margin-bottom:16px}.auth-art{height:180px;padding:14px 20px 0}.helix-orbit{height:150px;top:16px}.art-bottom{font-size:10px;margin-bottom:12px}#auth.auth-panel{margin:auto auto 20px}.art-top{font-size:8px}.art-diamond{font-size:19px}}
@media(max-width:700px) and (max-height:760px){.auth-art{height:132px}.helix-orbit{height:120px;top:5px}.art-bottom{margin-bottom:8px}.art-top{opacity:.7}.auth-fields{padding:20px 24px}#auth h2{margin-bottom:15px}#auth label{margin-bottom:12px}header{margin-bottom:16px}}

/* A quiet sakura signature: falling petals, ink and dusky rose. */
.developer-logo{position:relative;font-family:Georgia,'Times New Roman',serif;font-size:15px!important;font-style:italic;font-weight:400;letter-spacing:.055em!important;color:#dfc8de!important;text-shadow:0 0 18px #e8a6d027;isolation:isolate;padding-left:2px}.sakura-petals{position:absolute;left:-14px;bottom:-5px;width:160px;height:118px;pointer-events:none;overflow:hidden;z-index:-1}.sakura-petals i{position:absolute;top:-12px;width:6px;height:10px;background:linear-gradient(135deg,#f5dfeb,#d9a0bf 65%,#a978a9);border-radius:85% 15% 80% 25%;box-shadow:0 0 7px #d99ec31c;opacity:0;animation:sakura-drift 10s linear infinite;transform-origin:50% 30%}.sakura-petals i:nth-child(1){left:13%;animation-delay:-1s;animation-duration:11s}.sakura-petals i:nth-child(2){left:36%;width:5px;height:8px;animation-delay:-6s;animation-duration:13s}.sakura-petals i:nth-child(3){left:58%;width:4px;height:7px;animation-delay:-3s;animation-duration:9s}.sakura-petals i:nth-child(4){left:73%;width:6px;height:9px;animation-delay:-9s;animation-duration:14s}.sakura-petals i:nth-child(5){left:84%;width:4px;height:7px;animation-delay:-5s;animation-duration:12s}@keyframes sakura-drift{0%{opacity:0;transform:translate3d(-8px,-4px,0) rotate(-25deg) rotateY(0)}14%{opacity:.55}45%{transform:translate3d(12px,48px,0) rotate(72deg) rotateY(110deg);opacity:.7}75%{opacity:.45;transform:translate3d(-2px,82px,0) rotate(155deg) rotateY(220deg)}100%{opacity:0;transform:translate3d(16px,126px,0) rotate(225deg) rotateY(330deg)}}footer{overflow:visible;background:radial-gradient(ellipse at 5% 100%,#bc7ca50a,transparent 35%)}.brand{align-items:center}@media(max-width:700px){.developer-logo{font-size:14px!important}.sakura-petals{height:106px;width:146px;left:-10px}}@media(prefers-reduced-motion:reduce){.sakura-petals i{animation:none;opacity:.35;top:24px;transform:rotate(30deg)}.sakura-petals i:nth-child(2){top:51px}.sakura-petals i:nth-child(3){top:72px}.sakura-petals i:nth-child(4){top:39px}.sakura-petals i:nth-child(5){top:85px}}

.primary.stop-action{background:linear-gradient(110deg,#d5a2bd,#b98fae);border-color:#ebc4da50;color:#291d2a}.primary.stop-action:hover{background:linear-gradient(110deg,#e3b7cf,#cba0bd)}
/* Compact status strip */
.metrics{gap:12px;margin-bottom:18px}.metrics .metric{min-height:86px;margin-bottom:0;padding:13px 16px;border-radius:12px}.metrics .metric span{font-size:11px;line-height:1.35}.metrics .metric strong,.metrics .metric .subdued{font-size:20px;line-height:1.2;margin:7px 0 4px;font-weight:550}.metrics .metric small{font-size:10px;line-height:1.35;display:block}.metrics .metric::after{width:65px;height:65px;right:-16px;top:-20px}@media(max-width:700px){.metrics{gap:8px;margin-bottom:14px}.metrics .metric{min-height:78px;padding:10px 12px;border-radius:10px}.metrics .metric strong,.metrics .metric .subdued{font-size:18px;margin:5px 0 3px}.metrics .metric span{font-size:10px}.metrics .metric small{font-size:9px;line-height:1.3}}
/* Compact wallet operation area */
#workspace{margin-top:0}#user-view>section.panel{padding:16px 18px;margin-bottom:14px}#user-view>section.panel>.section-head{align-items:center;gap:10px;margin-bottom:10px}#user-view>section.panel>.section-head h2{margin:0;font-size:16px}.web-wallet-placeholder{margin:10px 0 14px;padding:14px}.web-wallet-placeholder>.section-head{align-items:center;margin-bottom:8px}.web-wallet-placeholder h3{font-size:14px;margin:0}.vault-row{padding:10px 0;gap:9px}.web-wallet-placeholder summary{padding:10px 0;font-size:12px}#vault-import{gap:12px;margin:8px 0}#vault-feedback:empty{display:none}#vault-feedback{margin:8px 0 0}#user-view .wallet-form{margin-bottom:12px;gap:10px}#user-view .wallet-form input{margin-top:6px}#user-view .wallet-form button{margin:0}#user-view .empty{padding:18px}#user-view>div>.panel{padding:16px 18px;margin-bottom:14px}#user-view .logs{height:160px}.vault-row .muted,#vault-list>.muted{margin:5px 0;font-size:11px}
@media(max-width:700px){#user-view>section.panel{padding:13px 14px;margin-bottom:12px}#user-view>section.panel>.section-head{margin-bottom:7px;gap:8px}#user-view>section.panel>.section-head h2{font-size:15px}.web-wallet-placeholder{margin:8px 0 12px;padding:11px 12px;border-radius:11px}.web-wallet-placeholder>.section-head{margin-bottom:6px}.web-wallet-placeholder h3{font-size:13px}.web-wallet-placeholder summary{padding:8px 0}.vault-row{padding:8px 0;gap:7px}#user-view .wallet-form{gap:9px;margin-bottom:10px}#user-view>div>.panel{padding:13px 14px;margin-bottom:12px}#user-view .logs{height:145px}#task-table tr{margin:9px 0;padding:7px}#task-table td{padding:5px}.metrics{margin-bottom:10px}}
.wallet-import-panel{margin-top:10px;border-top:1px solid #8370b825;padding-top:10px}.wallet-import-panel h4{margin:0 0 10px;font-size:12px;font-weight:500;color:#c4b5fd}.wallet-import-panel #vault-import{margin:0;gap:11px}.chain-status-panel{padding:16px 18px;margin-top:0;margin-bottom:12px}.chain-status-panel .section-head{align-items:center;gap:10px;margin-bottom:10px}.chain-status-panel h2{font-size:15px;margin:0}.chain-status-panel #chain-status{margin:5px 0 0;line-height:1.4;font-size:11px}.chain-status-panel .chain-grid{gap:12px 20px}.chain-status-panel .chain-grid span{font-size:10px;margin-bottom:4px;line-height:1.3}.chain-status-panel .chain-grid strong{font-size:12px;line-height:1.4}.chain-status-panel .pill{padding:5px 9px;font-size:10px}
@media(max-width:700px){.wallet-import-panel{margin-top:8px;padding-top:9px}.wallet-import-panel h4{margin-bottom:8px}.chain-status-panel{padding:13px 14px;margin-bottom:10px}.chain-status-panel .section-head{margin-bottom:9px}.chain-status-panel .chain-grid{grid-template-columns:1fr 1fr;gap:11px 12px}.chain-status-panel .chain-grid strong{font-size:11px}.chain-status-panel .chain-grid span{font-size:9px}.chain-status-panel #chain-status{font-size:10px;line-height:1.4}}
/* Remove inherited authentication-form spacing from the operation panel. */
#user-view>section.panel{padding:12px 14px;margin-bottom:8px}#user-view>section.panel>.section-head{margin-bottom:5px}#user-view .web-wallet-placeholder{margin:6px 0 9px;padding:10px 12px}#user-view .web-wallet-placeholder>.section-head{margin-bottom:3px}#user-view .wallet-import-panel{margin-top:6px;padding-top:7px}#user-view .wallet-import-panel h4{margin-bottom:6px}#user-view #vault-import{gap:8px;margin:0}#user-view #vault-import label{gap:4px;margin:0;line-height:1.3}#user-view #vault-import input{margin-top:0;padding:10px 12px;min-height:44px}#user-view #vault-import button{margin:0;min-height:44px;padding:10px 16px}#user-view .wallet-form{margin:0 0 6px;gap:8px}#user-view .wallet-form label{margin:0;line-height:1.3}#user-view .wallet-form input{margin-top:4px;min-height:44px}#user-view .wallet-form button{min-height:44px;padding:10px 16px}#user-view #vault-list>.muted{margin:3px 0;line-height:1.3}#user-view .empty{padding:10px}#user-view>div>.panel{padding:12px 14px;margin:0 0 8px}#user-view>div>.panel .section-head{margin-bottom:6px}#user-view>div>.panel h2{margin:0;font-size:15px}#user-view .logs{height:130px;padding:8px 10px;line-height:1.6}#user-view .logs div{padding:3px 0}#user-view #task-table th{padding:8px}#user-view #task-table td{padding:9px 8px}
@media(max-width:700px){#user-view>section.panel,#user-view>div>.panel{padding:10px 12px}#user-view .web-wallet-placeholder{padding:9px 10px;margin:5px 0 8px}#user-view .wallet-form{gap:7px}#user-view .vault-row{gap:6px;padding:6px 0}#user-view #task-table tr{margin:6px 0;padding:5px}#user-view #task-table td{padding:4px}#user-view .logs{height:120px}}
/* The dashboard needs no duplicated navigation title. */
header>div:first-child:has(#heading[hidden]){display:none}header{justify-content:flex-end;margin-bottom:14px;padding-bottom:12px}aside .brand{margin-bottom:18px}aside:has(#nav-audit:not([hidden])) #nav-main{display:block!important}body:has(#auth:not([hidden])) header{margin-bottom:14px}@media(max-width:700px){aside{padding:14px 18px}aside .brand{margin-bottom:0}header{margin-bottom:12px;padding-bottom:10px;min-height:34px}main{padding-top:12px;min-height:calc(100dvh - 68px)}}
/* Signature is visible only in the authenticated workspace header. */
header{position:relative;justify-content:space-between;min-height:42px}header>.developer-logo{margin-left:auto;margin-right:18px;padding:8px 2px;order:2}header>.header-right{order:1}.developer-logo .sakura-petals{height:80px;bottom:-15px;left:-10px;width:155px}body:has(#auth:not([hidden])) header>.developer-logo{display:none}footer:empty{display:none}footer{min-height:0;padding:0;border:0;margin:0}body:has(#auth:not([hidden])) main{padding-bottom:24px}@media(max-width:700px){header{min-height:38px;gap:8px;padding-bottom:8px;margin-bottom:10px}header>.developer-logo{margin-right:0;margin-left:auto;font-size:13px!important;flex-shrink:0}header>.header-right{font-size:10px;gap:7px;flex-wrap:wrap;justify-content:flex-start;min-width:0}.header-right #account{overflow:hidden;text-overflow:ellipsis;max-width:110px;white-space:nowrap}.developer-logo .sakura-petals{width:130px;height:72px;bottom:-14px}body:has(#auth:not([hidden])) header{justify-content:flex-end}}
/* Brand signature shares HELIX's row; account controls keep their own place. */
aside>.developer-logo{position:absolute;left:calc(100% + 40px);top:41px;margin:0;padding:0;z-index:2}body:has(#auth:not([hidden])) aside>.developer-logo{display:none}header{justify-content:flex-end}header>.header-right{order:initial;justify-content:flex-end}aside>.developer-logo .sakura-petals{bottom:-21px;height:76px}@media(max-width:1100px) and (min-width:701px){aside>.developer-logo{left:calc(100% + 24px);top:37px}}@media(max-width:700px){aside{justify-content:space-between;gap:12px;min-height:66px}aside>.developer-logo{position:relative;left:auto;top:auto;margin-left:auto;font-size:13px!important;padding:0;flex-shrink:0}aside>.developer-logo .sakura-petals{bottom:-22px;height:68px;width:130px}header{justify-content:flex-end}header>.header-right{justify-content:flex-end;flex-wrap:nowrap}aside:has(#nav-audit:not([hidden])){flex-wrap:wrap}aside:has(#nav-audit:not([hidden]))>.developer-logo{margin-left:auto}}
/* Restore the HTTP-only session before displaying the sign-in form. */
.session-restoring #auth,.session-restoring #workspace{display:none!important}#session-loading{flex:1;display:grid;place-items:center;min-height:250px}#session-loading span{width:30px;height:30px;border:1px solid #b9a0ed24;border-top-color:#c9b2ff;border-radius:50%;animation:session-orbit 1s linear infinite}@keyframes session-orbit{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#session-loading span{animation:none}}
.vault-row>.primary,.vault-row>.primary.stop-action,#task-table .primary{background:linear-gradient(110deg,#afa0ff,#9676ed);border:1px solid #cab8ff45;color:#151027;box-shadow:0 4px 24px #9272e51e}.vault-row>.primary:hover,.vault-row>.primary.stop-action:hover,#task-table .primary:hover{background:linear-gradient(110deg,#c2b6ff,#ab8cf9)}
/* Running-state stop action is red; start/account remain violet. */
.vault-row>.primary.stop-action,#wallet-form>.primary.stop-action{background:linear-gradient(110deg,#ed667d,#cc3859);border-color:#ff9ca957;color:#fff5f7;box-shadow:0 4px 22px #d13e5d22}.vault-row>.primary.stop-action:hover,#wallet-form>.primary.stop-action:hover{background:linear-gradient(110deg,#fa7a8e,#df4968)}
#task-table .primary.stop-action{background:linear-gradient(110deg,#ed667d,#cc3859);border-color:#ff9ca957;color:#fff5f7}#task-table .primary.stop-action:hover{background:linear-gradient(110deg,#fa7a8e,#df4968)}
.wallet-grants-editor{display:block;min-width:260px;width:100%;min-height:68px;max-height:200px;resize:vertical;background:#0b101d;border:1px solid #9086ae3a;color:#dce3ef;border-radius:8px;padding:9px;font-family:ui-monospace,monospace;font-size:12px;line-height:1.6;margin-bottom:8px}.wallet-grants-editor:focus{outline:1px solid #b09bff}@media(max-width:700px){.wallet-grants-editor{font-size:16px}}
.granted-wallets{margin-bottom:10px;max-width:360px}.granted-wallet{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #8370b825;white-space:normal}.granted-wallet>.address{font-family:ui-monospace,monospace;font-size:11px;overflow-wrap:anywhere;flex:1;min-width:150px}.granted-wallet>button{flex-shrink:0;font-size:11px}.granted-wallets small{margin-bottom:8px}

.username-line{display:flex;align-items:center;gap:10px;white-space:nowrap}.username-line button{font-size:11px;padding:5px 8px;min-height:32px}.admin-note-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-width:200px;max-height:48px;overflow:hidden;color:#b7a8cc!important}.note-dialog{width:min(500px,calc(100vw - 32px));padding:24px;border:1px solid #8d83b360;border-radius:16px;background:#151a29;color:#e7ebfa;box-shadow:0 20px 100px #0009}.note-dialog::backdrop{background:#050712a8;backdrop-filter:blur(4px)}.note-dialog .section-head{align-items:center;margin-bottom:18px}.note-dialog h2{margin:0;font-size:17px}.note-dialog label{margin-bottom:8px}.note-dialog textarea{display:block;width:100%;resize:vertical;min-height:140px;max-height:360px;background:#0b101d;border:1px solid #9086ae55;border-radius:10px;color:#e7ebfa;padding:12px;font:inherit;line-height:1.6}.note-dialog textarea:focus{outline:1px solid #b09bff}.note-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}#note-feedback{font-size:12px;color:#f0b7b7;margin-top:8px}

.pill.live-mode{background:#6a26372b;border-color:#d8708f77;color:#ffc1d2}

/* Compact authenticated mobile workspace. Long wallet lists and logs scroll inside their own panels. */
@media(max-width:700px){
 body.user-dashboard{height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
 body.user-dashboard aside{position:relative;inset:auto;width:100%;min-height:52px;height:52px;flex:0 0 52px;padding:6px 14px;overflow:hidden}
 body.user-dashboard .brand{font-size:19px;gap:8px;margin:0}
 body.user-dashboard .brandmark{width:34px;height:38px}
 body.user-dashboard main{margin:0;max-width:none;width:100%;padding:4px 12px max(8px,env(safe-area-inset-bottom));min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
 body.user-dashboard header{flex:0 0 auto;min-height:30px;margin:0 0 5px;padding:0 0 4px}
 body.user-dashboard #message:not([hidden]){padding:5px 8px;margin:0 0 4px;font-size:11px;max-height:44px;overflow:auto;flex-shrink:0}
 body.user-dashboard #workspace{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px}
 body.user-dashboard .metrics{flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0}
 body.user-dashboard .metrics .metric{min-height:0;height:65px;padding:6px 9px;margin:0}
 body.user-dashboard .metric span{font-size:10px}
 body.user-dashboard .metric strong{font-size:16px;margin:3px 0;line-height:1.1}
 body.user-dashboard .metric small{font-size:9px;line-height:1.2;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.user-dashboard #user-view{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px}
 body.user-dashboard #user-view>section.panel{flex:0 1 auto;max-height:62%;min-height:90px;overflow:auto}
 body.user-dashboard #user-view>section.panel,body.user-dashboard #user-view>div>.panel{padding:8px 10px;margin:0}
 body.user-dashboard #user-view>div{flex:1;min-height:90px;display:flex;flex-direction:column}
 body.user-dashboard #user-view>div>.panel{flex:1;min-height:0;display:flex;flex-direction:column}
 body.user-dashboard #user-view .section-head{margin:0 0 4px;align-items:center}
 body.user-dashboard #user-view h2{font-size:13px;margin:0;line-height:1.4}
 body.user-dashboard #user-view h3,body.user-dashboard #user-view h4{font-size:11px;margin:3px 0}
 body.user-dashboard #user-view .web-wallet-placeholder{padding:5px 7px;margin:3px 0 0}
 body.user-dashboard #user-view .vault-row{padding:4px 0;gap:5px}
 body.user-dashboard #user-view .vault-row .primary{padding:7px 10px;min-height:32px;font-size:12px}
 body.user-dashboard #user-view #vault-import{margin:0;gap:6px}
 body.user-dashboard #user-view #vault-import input{margin-top:3px;padding:7px 8px;font-size:16px}
 body.user-dashboard #user-view #vault-import .primary{padding:8px 10px;min-height:34px;font-size:12px}
 body.user-dashboard #vault-feedback:empty{display:none}
 body.user-dashboard #vault-feedback{font-size:10px;margin:3px 0;line-height:1.3}
 body.user-dashboard #user-view .logs{flex:1;height:auto;min-height:0;padding:5px 8px;font-size:10px;line-height:1.6;overflow:auto;overscroll-behavior:contain}
 body.user-dashboard #user-view .logs div{padding:2px 0;overflow-wrap:anywhere}
 body.user-dashboard footer{display:none}
}
@media(max-width:700px) and (max-height:650px){body.user-dashboard .metrics .metric{height:53px}body.user-dashboard .metric small{font-size:8px}body.user-dashboard #user-view>section.panel{max-height:64%}body.user-dashboard .metrics{gap:4px}}
/* Smaller log panel with more separation from the start panel. */
body.user-dashboard #user-view{row-gap:20px}
body.user-dashboard #user-view>div{margin-top:12px}
body.user-dashboard #user-view .logs{height:127px}
@media(max-width:700px){
 body.user-dashboard #user-view{gap:18px}
 body.user-dashboard #user-view>div{flex:0.667 1 0;min-height:75px;margin-top:0}
 body.user-dashboard #user-view>section.panel{flex:1 1 0;max-height:none}
 body.user-dashboard #user-view .logs{height:auto;min-height:0}
}
