:root {
    color-scheme: dark;
    --bg: #08110f;
    --surface: #0c1714;
    --surface-2: #101e1a;
    --surface-3: #13241f;
    --line: rgba(197, 231, 219, .13);
    --line-strong: rgba(197, 231, 219, .22);
    --text: #f1f7f4;
    --muted: #91a59e;
    --green: #40e58e;
    --green-soft: #a9f8ca;
    --cyan: #39c7c2;
    --yellow: #f0c766;
    --red: #ff6b68;
    --shadow: 0 22px 70px rgba(0, 0, 0, .34);
    --radius: 6px;
    font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar { height: 72px; padding: 0 clamp(20px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8, 17, 15, .9); position: relative; z-index: 30; backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand small { color: var(--green); font-size: 10px; margin-left: 4px; font-weight: 800; }
.brand-mark, .brand-image { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); font-family: Consolas, monospace; font-weight: 900; position: relative; flex: 0 0 32px; }
.brand-image { overflow: hidden; background: var(--surface); }
.brand-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--bg); }
.brand-mark::before { width: 7px; height: 1px; left: -4px; top: 7px; }
.brand-mark::after { width: 1px; height: 7px; right: 6px; bottom: -4px; }
.topnav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); font-size: 13px; color: var(--muted); }
.topnav a:hover, .topnav a.active { color: var(--text); }
.customer-shell { width: min(1800px, 100%); min-height: calc(100vh - 72px); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.customer-sidebar { min-height: calc(100vh - 72px); padding: 28px 18px 26px; border-right: 1px solid var(--line); background: #091310; display: flex; flex-direction: column; }
.customer-sidebar-head { display: flex; align-items: center; gap: 11px; padding: 0 10px 25px; border-bottom: 1px solid var(--line); }
.customer-sidebar-head > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.customer-sidebar-head b { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.customer-sidebar-head small { color: var(--muted); font-size: 10px; }
.customer-console-nav { display: grid; gap: 6px; padding-top: 22px; }
.customer-console-nav > a { min-height: 62px; padding: 10px 12px; border: 1px solid transparent; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); }
.customer-console-nav > a > span { width: 28px; height: 28px; display: grid; place-items: center; color: #71867e; font: 16px Consolas, monospace; }
.customer-console-nav > a > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.customer-console-nav b { color: #bdcbc6; font-size: 12px; }
.customer-console-nav small { overflow: hidden; color: #60736b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.customer-console-nav > a:hover { border-color: var(--line-strong); background: rgba(64, 229, 142, .025); }
.customer-console-nav > a.active { border-color: rgba(64, 229, 142, .2); background: rgba(64, 229, 142, .07); }
.customer-console-nav > a.active span, .customer-console-nav > a.active b { color: var(--green); }
.customer-sidebar-foot { margin-top: auto; padding: 20px 10px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.customer-workspace { min-width: 0; }
.nav-action { border: 1px solid var(--line-strong); color: var(--text) !important; padding: 9px 15px; }
.nav-action:hover { border-color: var(--green); }
.user-chip { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.user-chip i, .signal-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }

.notice { width: min(760px, calc(100% - 32px)); position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 100; padding: 13px 18px; border: 1px solid; background: #10221c; box-shadow: var(--shadow); font-size: 14px; animation: notice-in .25s ease both; }
.notice-success { color: var(--green-soft); border-color: rgba(64, 229, 142, .35); }
.notice-error { color: #ffb2b0; border-color: rgba(255, 107, 104, .4); }
@keyframes notice-in { from { transform: translate(-50%, -10px); opacity: 0; } }

.eyebrow { color: var(--green); font: 700 11px/1.4 Consolas, monospace; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 22px; height: 1px; background: var(--green); vertical-align: middle; margin-right: 8px; }
.muted { color: var(--muted); }
.button { min-height: 44px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 20px; color: var(--text); cursor: pointer; transition: .18s ease; font-weight: 650; font-size: 13px; border-radius: 2px; }
.button span { font-size: 18px; line-height: 0; }
.button.primary { color: #06110c; background: var(--green); border-color: var(--green); }
.button.primary:hover { background: #67f3a5; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(64, 229, 142, .16); }
.button.secondary { background: rgba(8, 17, 15, .55); border-color: var(--line-strong); }
.button.secondary:hover, .button.tertiary:hover { border-color: var(--green); color: var(--green-soft); }
.button.tertiary { background: transparent; border-color: var(--line-strong); }
.button.danger { background: rgba(255,107,104,.07); border-color: rgba(255,107,104,.38); color: #ffaaa8; }
.button.danger:hover { background: rgba(255,107,104,.13); border-color: var(--red); color: #ffd0cf; }
.button.compact { min-height: 38px; padding: 7px 15px; }
.button.full { width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.hero { min-height: min(760px, calc(100vh - 72px)); height: calc(100vh - 72px); max-height: 880px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
#network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(157, 203, 186, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(157, 203, 186, .055) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 82%); }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,17,15,.98) 0%, rgba(8,17,15,.88) 36%, rgba(8,17,15,.15) 74%, rgba(8,17,15,.62) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; width: min(650px, calc(100% - 40px)); margin-left: clamp(20px, 8vw, 124px); padding-bottom: 38px; }
.hero h1 { font-size: clamp(46px, 6.3vw, 92px); line-height: 1.03; margin: 22px 0 28px; font-weight: 500; }
.hero h1 strong { color: var(--green); font-weight: 730; }
.hero-content > p { max-width: 570px; color: #a7b8b2; line-height: 1.85; font-size: 16px; margin: 0; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.network-readout { position: absolute; z-index: 3; right: clamp(30px, 8vw, 128px); top: 19%; display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-family: Consolas, monospace; }
.network-readout > span { font-size: 10px; display: flex; align-items: center; gap: 8px; }
.network-readout b { color: var(--text); font-size: 31px; margin-top: 8px; }
.network-readout b small { font-size: 11px; color: var(--green); margin-left: 5px; }
.network-readout em { font-size: 9px; font-style: normal; }
.hero-stats { position: absolute; z-index: 4; bottom: 0; right: 0; display: grid; grid-template-columns: repeat(2, minmax(145px, 190px)); background: rgba(8, 17, 15, .78); border-top: 1px solid var(--line); border-left: 1px solid var(--line); backdrop-filter: blur(12px); }
.hero-stats div { padding: 21px 25px; border-right: 1px solid var(--line); }
.hero-stats b, .hero-stats span { display: block; }
.hero-stats b { font: 600 20px Consolas, monospace; color: var(--green-soft); }
.hero-stats span { margin-top: 5px; font-size: 11px; color: var(--muted); }

.capabilities { padding: 94px clamp(20px, 8vw, 124px) 110px; background: #0a1412; }
.section-heading { max-width: 660px; margin-bottom: 48px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(28px, 3.2vw, 44px); font-weight: 520; line-height: 1.24; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid article { min-height: 300px; position: relative; padding: 42px 38px; border-right: 1px solid var(--line); }
.capability-grid article:last-child { border-right: 0; }
.capability-grid .index { position: absolute; right: 20px; top: 18px; font: 11px Consolas, monospace; color: #52635d; }
.capability-grid h3 { margin: 28px 0 12px; font-size: 20px; }
.capability-grid p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 14px; }
.line-icon { width: 54px; height: 48px; position: relative; }
.nodes-icon i { width: 8px; height: 8px; position: absolute; border: 1px solid var(--green); background: var(--surface); }
.nodes-icon i:nth-child(1) { top: 2px; left: 22px; }.nodes-icon i:nth-child(2) { left: 3px; bottom: 3px; }.nodes-icon i:nth-child(3) { right: 3px; bottom: 3px; }
.nodes-icon::before, .nodes-icon::after { content: ""; position: absolute; width: 31px; height: 1px; top: 25px; background: var(--green); transform-origin: center; opacity: .65; }
.nodes-icon::before { left: 2px; transform: rotate(-50deg); }.nodes-icon::after { right: 2px; transform: rotate(50deg); }
.chart-icon { display: flex; align-items: flex-end; gap: 5px; padding: 5px; border-left: 1px solid #5b7068; border-bottom: 1px solid #5b7068; }
.chart-icon i { width: 8px; background: var(--green); opacity: .72; }.chart-icon i:nth-child(1) { height: 14px; }.chart-icon i:nth-child(2) { height: 30px; }.chart-icon i:nth-child(3) { height: 21px; }
.shield-icon { border: 1px solid var(--green); width: 40px; height: 46px; clip-path: polygon(50% 0, 100% 16%, 92% 75%, 50% 100%, 8% 75%, 0 16%); display: grid; place-items: center; }
.shield-icon i { width: 8px; height: 15px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg) translate(-2px, -2px); }

.auth-page { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(360px, 48%) 1fr; }
.auth-visual { min-height: 690px; position: relative; overflow: hidden; padding: clamp(40px, 7vw, 100px); display: flex; align-items: flex-end; background: #0a1512; border-right: 1px solid var(--line); }
.auth-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(135,194,172,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(135,194,172,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent); }
.auth-visual > div:last-child { position: relative; z-index: 2; }
.auth-visual h2 { font-size: clamp(37px, 4.2vw, 64px); line-height: 1.08; margin: 16px 0 18px; font-weight: 520; }
.auth-visual p { color: var(--muted); font: 12px Consolas, monospace; }
.auth-network span { position: absolute; width: 9px; height: 9px; border: 1px solid var(--green); box-shadow: 0 0 20px rgba(64,229,142,.5); }
.auth-network span:nth-child(1) { left: 18%; top: 19%; }.auth-network span:nth-child(2) { left: 63%; top: 24%; }.auth-network span:nth-child(3) { left: 78%; top: 50%; }.auth-network span:nth-child(4) { left: 38%; top: 43%; }.auth-network span:nth-child(5) { left: 12%; top: 59%; }
.auth-network::before, .auth-network::after { content: ""; position: absolute; background: rgba(64,229,142,.34); height: 1px; transform-origin: left; }
.auth-network::before { width: 49%; left: 19%; top: 20%; transform: rotate(30deg); }.auth-network::after { width: 67%; left: 13%; top: 59%; transform: rotate(-27deg); }
.auth-panel { display: grid; place-items: center; padding: 52px 28px; }
.auth-card { width: min(440px, 100%); }
.auth-card h1 { margin: 12px 0 8px; font-size: 38px; font-weight: 560; }
.auth-card > p { margin: 0 0 30px; line-height: 1.7; }
form label { display: block; color: #bac8c3; font-size: 13px; margin-bottom: 19px; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 2px; background: #0b1613; color: var(--text); outline: 0; padding: 0 14px; margin-top: 8px; transition: border-color .18s, box-shadow .18s; }
input, select { height: 48px; }
textarea { min-height: 108px; padding-top: 12px; resize: vertical; line-height: 1.6; }
input::placeholder { color: #53645e; }
textarea::placeholder { color: #53645e; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(64,229,142,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0 0 !important; }
.form-foot a { color: var(--green); }
.inline-error { padding: 12px 14px; margin-bottom: 22px; border: 1px solid rgba(255,107,104,.4); background: rgba(255,107,104,.07); color: #ffb2b0; font-size: 13px; line-height: 1.6; }
.inline-error ul { margin: 0; padding-left: 18px; }
.install-card code { color: var(--green); }
.setup-note { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.setup-note b { color: var(--text); }

.console-page, .admin-page { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 62px 0 90px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(32px, 4vw, 48px); margin: 9px 0 8px; font-weight: 540; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; font-size: 11px; padding: 6px 9px; border: 1px solid; border-radius: 20px; }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; }
.status-active { color: var(--green-soft); border-color: rgba(64,229,142,.28); background: rgba(64,229,142,.06); }.status-active i { background: var(--green); }
.status-banned { color: #ffaaa8; border-color: rgba(255,107,104,.3); background: rgba(255,107,104,.06); }.status-banned i { background: var(--red); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 24px; }
.metric { min-height: 148px; padding: 26px 28px; border-right: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.metric:last-child { border-right: 0; }
.metric > span { color: var(--muted); font-size: 12px; }
.metric strong { font: 560 30px/1.2 Consolas, "Microsoft YaHei", sans-serif; margin: 14px 0 8px; }
.metric strong em { font-size: 13px; font-style: normal; color: var(--muted); }
.metric small { margin-top: auto; color: #687a73; font-size: 11px; }
.metric small i { display: inline-block; width: 5px; height: 5px; background: var(--yellow); border-radius: 50%; }
.primary-metric strong { color: var(--yellow); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .75fr); gap: 24px; }
.panel { background: var(--surface); border: 1px solid var(--line); }
.panel-heading { min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .customer-toolbar h2 { margin: 0 0 5px; font-size: 17px; }
.panel-heading p, .customer-toolbar p { color: var(--muted); margin: 0; font-size: 11px; }
.tiny-badge { font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 5px 8px; }
.empty-state { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px 20px; }
.empty-state h3 { margin: 26px 0 8px; font-size: 18px; }.empty-state p { color: var(--muted); line-height: 1.7; font-size: 13px; max-width: 420px; margin: 0 0 22px; }
.radar { width: 92px; height: 92px; border: 1px solid rgba(64,229,142,.13); border-radius: 50%; position: relative; }
.radar::before, .radar::after { content: ""; position: absolute; border: 1px solid rgba(64,229,142,.15); border-radius: 50%; inset: 15px; }.radar::after { inset: 31px; }
.radar span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--green); top: 24px; right: 26px; box-shadow: 0 0 11px var(--green); }
.radar i { position: absolute; background: rgba(64,229,142,.13); }.radar i:nth-child(1) { width: 1px; height: 100%; left: 50%; }.radar i:nth-child(2) { height: 1px; width: 100%; top: 50%; }.radar i:nth-child(3) { width: 45px; height: 1px; left: 50%; top: 50%; transform-origin: left; transform: rotate(-42deg); background: var(--green); opacity: .4; }
.account-panel { text-align: center; padding-bottom: 24px; }
.account-panel .panel-heading { text-align: left; }
.avatar-large, .avatar-small { display: grid; place-items: center; background: #173127; color: var(--green-soft); border: 1px solid rgba(64,229,142,.25); font-family: Consolas, monospace; }
.avatar-large { width: 62px; height: 62px; margin: 31px auto 14px; font-size: 24px; }
.account-panel > h3 { margin: 0 0 5px; }.account-email { color: var(--muted); font-size: 12px; margin: 0 0 26px; }
.details { margin: 0 24px; border-top: 1px solid var(--line); }
.details > div { padding: 14px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); font-size: 12px; text-align: right; }
.details dt { color: var(--muted); text-align: left; }.details dd { margin: 0; }
.green-text { color: var(--green) !important; }.red-text { color: var(--red) !important; }
.project-placeholder { width: 116px; height: 76px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; padding: 13px; border: 1px solid var(--line-strong); }
.project-placeholder span { display: block; border: 1px solid rgba(64, 229, 142, .4); background: rgba(64, 229, 142, .08); }
.project-placeholder span:nth-child(1) { height: 28px; }.project-placeholder span:nth-child(2) { height: 48px; }.project-placeholder span:nth-child(3) { height: 37px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.project-card { min-height: 450px; padding: 25px; display: flex; flex-direction: column; }
.project-card header { min-height: 74px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.project-card h2 { margin: 13px 0 0; font-size: 21px; font-weight: 560; }
.project-card > p { min-height: 68px; margin: 20px 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.project-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.project-card dl > div { min-height: 62px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.project-card dl > div:nth-child(odd) { padding-right: 14px; border-right: 1px solid var(--line); }
.project-card dl > div:nth-child(even) { padding-left: 14px; }
.project-card dt { color: var(--muted); font-size: 10px; }
.project-card dd { margin: 6px 0 0; color: var(--text); font: 600 13px Consolas, "Microsoft YaHei", sans-serif; }
.project-card > .button { margin-top: auto; }

.admin-identity { display: flex; align-items: center; gap: 11px; border-left: 1px solid var(--line); padding-left: 22px; }
.avatar-small { width: 34px; height: 34px; flex: 0 0 34px; }
.admin-identity div, .customer-cell div { display: flex; flex-direction: column; gap: 3px; }
.admin-identity small, .customer-cell small { color: var(--muted); font-size: 10px; }
.security-warning { margin-bottom: 24px; padding: 16px 20px; border: 1px solid rgba(240,199,102,.32); background: rgba(240,199,102,.06); display: flex; align-items: center; gap: 14px; }
.security-warning > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 50%; font-weight: 800; }
.security-warning b { font-size: 13px; }.security-warning p { color: var(--muted); font-size: 11px; margin: 4px 0 0; }.security-warning a { margin-left: auto; color: var(--yellow); font-size: 12px; white-space: nowrap; }
.customer-toolbar { min-height: 90px; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.filters { display: flex; align-items: center; gap: 10px; }
.filters input, .filters select { height: 38px; margin: 0; }
.filters select { width: 124px; }
.search-field { position: relative; }.search-field span { position: absolute; left: 12px; top: 8px; color: var(--muted); }.search-field input { width: 240px; padding-left: 34px; }
.reset-link { color: var(--muted); font-size: 12px; }.reset-link:hover { color: var(--text); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th { color: #71867e; font-size: 10px; text-align: left; font-weight: 600; text-transform: uppercase; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #0a1512; }
td { padding: 15px 20px; border-bottom: 1px solid var(--line); color: #b4c3be; font-size: 12px; }
tbody tr:hover td { background: rgba(255,255,255,.012); }
.customer-cell { display: flex; align-items: center; gap: 11px; }.customer-cell b { color: var(--text); font-size: 12px; }
.mono { font-family: Consolas, monospace; }.align-right { text-align: right; }
.actions-cell { display: flex; justify-content: flex-end; gap: 7px; }
.actions-cell form { margin: 0; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); color: var(--muted); cursor: pointer; border-radius: 2px; font-size: 16px; }
.icon-button.warning:hover { color: var(--yellow); border-color: var(--yellow); }.icon-button.success:hover { color: var(--green); border-color: var(--green); }.icon-button.danger:hover { color: var(--red); border-color: var(--red); }
.table-empty { text-align: center; padding: 70px; color: var(--muted); }
.pagination { display: flex; justify-content: flex-end; gap: 6px; padding: 16px 20px; }
.pagination a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }.pagination a.active, .pagination a:hover { color: #06110c; border-color: var(--green); background: var(--green); }
.narrow-page { max-width: 900px; }.security-panel { padding: 28px; }.security-panel form { max-width: 520px; }

.admin-shell { width: min(1600px, 100%); min-height: calc(100vh - 72px); margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.admin-sidebar { border-right: 1px solid var(--line); background: #091310; padding: 28px 18px 26px; display: flex; flex-direction: column; }
.admin-sidebar-head { display: flex; align-items: center; gap: 11px; padding: 0 10px 25px; border-bottom: 1px solid var(--line); }
.admin-sidebar-head > div { display: flex; flex-direction: column; gap: 3px; }
.admin-sidebar-head b { font-size: 13px; }.admin-sidebar-head small { font-size: 10px; color: var(--muted); }
.admin-menu { display: grid; gap: 6px; padding-top: 22px; }
.admin-menu > a { min-height: 62px; display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid transparent; color: var(--muted); }
.admin-menu > a > span { width: 28px; height: 28px; display: grid; place-items: center; color: #71867e; font: 16px Consolas, monospace; }
.admin-menu > a > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.admin-menu b { font-size: 12px; color: #bdcbc6; }.admin-menu small { font-size: 9px; color: #60736b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-menu > a:hover { border-color: var(--line); background: var(--surface); }.admin-menu > a.active { border-color: rgba(64,229,142,.24); background: rgba(64,229,142,.07); }.admin-menu > a.active b, .admin-menu > a.active > span { color: var(--green); }
.admin-sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 10px 0; color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 9px; }
.admin-workspace { min-width: 0; padding: 52px clamp(24px, 4vw, 58px) 88px; }
.admin-content-heading { min-height: 90px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-content-heading h1 { margin: 8px 0 8px; font-size: clamp(30px, 3vw, 43px); font-weight: 540; }.admin-content-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 24px; }
.text-link { color: var(--green); font-size: 11px; }.compact-empty { min-height: 250px; display: grid; place-content: center; text-align: center; padding: 30px; }.compact-empty b { font-size: 15px; }.compact-empty p { color: var(--muted); font-size: 12px; }
.recent-list { display: grid; }.recent-customer { min-height: 72px; padding: 12px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; }.recent-customer:last-child { border-bottom: 0; }.recent-customer > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.recent-customer b { font-size: 12px; }.recent-customer small { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-links { display: grid; padding: 8px 18px 18px; }.quick-links a { min-height: 72px; padding: 12px 5px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; }.quick-links a:last-child { border-bottom: 0; }.quick-links a > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--green); font: 16px Consolas, monospace; }.quick-links a > div { display: flex; flex-direction: column; gap: 4px; }.quick-links b { font-size: 12px; }.quick-links small { color: var(--muted); font-size: 10px; }.quick-links a:hover b { color: var(--green); }
.form-panel { max-width: 930px; }.panel-form-body { padding: 28px; }.panel-form-body > form { max-width: 760px; }.form-actions { display: flex; gap: 10px; margin-top: 8px; }.security-form-panel { max-width: 800px; }.security-form-panel .panel-form-body > form { max-width: 620px; }
.settings-error { margin-bottom: 22px; }.settings-panel { margin-bottom: 24px; scroll-margin-top: 20px; }.settings-section-head { min-height: 92px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }.settings-section-head h2 { margin: 0 0 7px; font-size: 18px; }.settings-section-head p { margin: 0; color: var(--muted); font-size: 11px; }.settings-tag { padding: 6px 9px; border: 1px solid var(--line-strong); color: var(--muted); font: 9px Consolas, monospace; white-space: nowrap; }.settings-tag.configured { color: var(--green); border-color: rgba(64,229,142,.3); }
.settings-form { display: block; }.settings-grid { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: clamp(25px, 5vw, 70px); padding: 30px 24px; }.settings-divider { border-top: 1px solid var(--line); }.settings-copy h3 { margin: 0 0 9px; font-size: 14px; }.settings-copy p { margin: 0; max-width: 280px; color: var(--muted); font-size: 11px; line-height: 1.7; }.settings-fields { min-width: 0; }.settings-fields > label:last-child { margin-bottom: 0; }.settings-actions { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; background: #0a1512; }
.logo-setting-row { display: grid; grid-template-columns: 68px minmax(0, 1fr); align-items: center; gap: 16px; margin: 2px 0 18px; }.logo-preview { width: 68px; height: 68px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line-strong); background: #091310; color: var(--green); font: 700 24px Consolas, monospace; }.logo-preview img { width: 100%; height: 100%; object-fit: contain; }.logo-setting-row label { margin: 0; }.logo-setting-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }.file-input { height: auto; min-height: 42px; padding: 8px; }.file-input::file-selector-button { height: 26px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); margin-right: 10px; cursor: pointer; }

.account-action { margin: 10px 24px 0; }
.yellow-text { color: var(--yellow) !important; }
.review-section { margin-top: 24px; }
.review-section:first-of-type { margin-top: 0; }
.review-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.review-actions form { margin: 0; }
.review-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.status-pending { color: #ffe2a0; border-color: rgba(240,199,102,.32); background: rgba(240,199,102,.06); }
.status-pending i { background: var(--yellow); }
.money-cell { color: var(--yellow); font: 600 13px Consolas, monospace; white-space: nowrap; }
.withdrawal-summary { grid-template-columns: repeat(5, 1fr); margin-bottom: 24px; }
.withdrawal-list-panel .compact-empty .button { margin: 18px auto 0; }
.withdrawal-table { min-width: 1080px; }
.withdrawal-create-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.withdrawal-form-panel .panel-form-body > form { max-width: none; }
.balance-warning { margin-bottom: 22px; padding: 14px 16px; border: 1px solid rgba(240, 199, 102, .3); background: rgba(240, 199, 102, .06); }
.token-result { margin-bottom: 20px; padding: 16px; border: 1px solid rgba(64,229,142,.3); background: rgba(64,229,142,.05); }
.token-result b, .token-result code, .token-result p { display: block; }
.token-result b { color: var(--green); font-size: 13px; }
.token-result code { margin: 12px 0; padding: 12px; border: 1px solid var(--line); background: #07100d; color: var(--green-soft); overflow-wrap: anywhere; user-select: all; }
.token-result p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.balance-warning b { color: var(--yellow); font-size: 13px; }
.balance-warning p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.withdrawal-balance-panel { padding: 28px 24px; position: sticky; top: 24px; }
.withdrawal-balance-panel > span { color: var(--muted); font-size: 12px; }
.withdrawal-balance-panel > strong { display: block; color: var(--yellow); font: 650 30px Consolas, monospace; margin: 12px 0 22px; }
.withdrawal-balance-panel .details { margin: 0; }
.method-fieldset, .toggle-fieldset, .confirmation-check { border: 0; padding: 0; margin: 0 0 20px; }
.method-fieldset legend, .toggle-fieldset legend { color: #bac8c3; font-size: 13px; margin-bottom: 10px; }
.method-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.method-options label { margin: 0; cursor: pointer; }
.method-options input { position: absolute; opacity: 0; pointer-events: none; }
.method-options span { min-height: 78px; padding: 14px; border: 1px solid var(--line-strong); display: flex; flex-direction: column; justify-content: center; gap: 6px; background: #0b1613; }
.method-options b { color: var(--text); font-size: 13px; }
.method-options small, .field-help { color: var(--muted); font-size: 10px; }
.method-options input:checked + span { border-color: var(--green); background: rgba(64,229,142,.07); box-shadow: 0 0 0 2px rgba(64,229,142,.07); }
.method-fields[hidden] { display: none !important; }
.balance-warning { padding: 13px 15px; border: 1px solid rgba(240,199,102,.28); background: rgba(240,199,102,.06); color: #d7c28e; font-size: 12px; line-height: 1.65; margin: 0 0 20px; }
.toggle-fieldset { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 20px; }
.toggle-row { min-height: 64px; margin: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.toggle-row > span { display: flex; flex-direction: column; gap: 4px; }
.toggle-row b { color: var(--text); font-size: 13px; }
.toggle-row small { color: var(--muted); font-size: 10px; }
.toggle-row input { width: 42px; height: 23px; margin: 0; accent-color: var(--green); }
.stacked-cell { display: flex; flex-direction: column; gap: 4px; }
.stacked-cell b { color: var(--text); }
.stacked-cell small { color: var(--muted); font-size: 10px; }
.withdrawal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.detail-list { margin: 0; }
.detail-list > div { min-height: 58px; padding: 14px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); font-size: 11px; }
.detail-list dd { margin: 0; text-align: right; font-size: 13px; overflow-wrap: anywhere; }
.detail-amount { color: var(--yellow); font: 650 22px Consolas, monospace !important; }
.copy-value { user-select: all; }
.uuid-cell { max-width: 230px; overflow-wrap: anywhere; color: #9db2aa; }
.project-admin-table { min-width: 1160px; }
.node-table { min-width: 1100px; }
.node-report-table { min-width: 980px; }
.table-time { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.metric-date { font-size: 17px !important; line-height: 1.45 !important; }
.project-url { max-width: 420px; }
.project-url a { color: var(--green); overflow-wrap: anywhere; }
.detail-list dd small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.project-metrics { margin-bottom: 24px; }
.project-form-panel { max-width: 980px; }
.region-limit-fieldset { border: 0; border-top: 1px solid var(--line); margin: 8px 0 24px; padding: 22px 0 0; }
.region-limit-fieldset legend { color: #bac8c3; font-size: 13px; padding: 0 10px 0 0; }
.region-limit-help { margin: 3px 0 16px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.region-limit-head, .region-limit-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) 130px 34px; gap: 10px; align-items: end; }
.region-limit-head { margin: 4px 0 8px; color: var(--muted); font-size: 10px; }
.region-limit-head span:last-child { width: 34px; }
.region-limit-row { padding: 9px 0; border-bottom: 1px solid var(--line); }
.region-limit-row label { margin: 0; }
.region-limit-row label > span { display: none; }
.region-limit-row input { margin: 0; height: 42px; }
.region-limit-row .icon-button { margin-bottom: 4px; }
.region-limit-fieldset > .button { margin-top: 14px; }
.region-limit-panel { margin-bottom: 24px; }
.region-limit-table { min-width: 620px; }
.project-region-availability { margin: 0 0 20px; border-top: 1px solid var(--line); }
.project-region-head { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-region-availability h3 { margin: 16px 0 9px; font-size: 12px; }
.project-region-head label { width: min(190px, 58%); margin: 10px 0 0; }
.project-region-head label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.project-region-head input { height: 34px; margin: 0; padding: 0 10px; font-size: 11px; }
.project-region-availability > p { color: var(--muted); font-size: 11px; }
.project-region-availability [data-region-results] { display: grid; gap: 7px; max-height: 230px; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.project-region-availability span { min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-region-availability b { font-size: 11px; font-weight: 500; }
.project-region-availability strong { font: 600 11px Consolas, "Microsoft YaHei", sans-serif; white-space: nowrap; }
.project-region-availability [hidden] { display: none !important; }
.region-search-empty { padding: 11px 0; margin: 0 !important; }
.admin-region-availability { margin-top: 18px; margin-bottom: 0; }
.qr-detail { align-items: flex-start !important; }
.qr-detail dd { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.qr-detail img { width: min(240px, 100%); aspect-ratio: 1; object-fit: contain; background: white; padding: 8px; border: 1px solid var(--line-strong); }
.qr-detail small { color: var(--muted); font-size: 10px; }
.withdrawal-action-panel { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.success-total-panel { margin-bottom: 24px; padding: 22px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.success-total-value { display: flex; flex-direction: column; gap: 6px; }
.success-total-value > span, .success-total-value > small { color: var(--muted); font-size: 11px; }
.success-total-value > strong { color: var(--green); font: 650 30px Consolas, monospace; }
.success-range-form { display: flex; align-items: flex-end; gap: 10px; }
.success-range-form label { margin: 0; color: var(--muted); font-size: 10px; }
.success-range-form input { width: 150px; height: 38px; margin: 6px 0 0; }
.success-range-form .button { height: 38px; }
.withdrawal-action-panel h2 { margin: 0 0 8px; font-size: 17px; }
.withdrawal-action-panel p { margin: 0 0 8px; max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.withdrawal-action-panel > form { min-width: 300px; }
.confirmation-check label { display: flex; align-items: flex-start; gap: 9px; margin: 0; cursor: pointer; }
.confirmation-check input { width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0; accent-color: var(--green); }
.confirmation-check span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.withdrawal-action-panel .button { width: 100%; }

.footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); color: #586b64; font-size: 10px; font-family: Consolas, monospace; }

@media (max-width: 980px) {
    .network-readout { display: none; }
    .hero-stats { left: 0; right: auto; width: 100%; grid-template-columns: repeat(2, 1fr); }
    .capability-grid { grid-template-columns: 1fr; }.capability-grid article { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }.capability-grid article:last-child { border-bottom: 0; }
    .auth-page { grid-template-columns: 1fr; }.auth-visual { display: none; }.auth-panel { min-height: calc(100vh - 72px); }
    .metric-grid { grid-template-columns: 1fr 1fr; }.metric:nth-child(2) { border-right: 0; }.metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .withdrawal-summary .metric:nth-child(even) { border-right: 0; }.withdrawal-summary .metric:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
    .workspace-grid { grid-template-columns: 1fr; }.customer-toolbar { align-items: flex-start; flex-direction: column; }.filters { width: 100%; }.search-field, .search-field input { width: 100%; }
    .customer-shell { grid-template-columns: 205px minmax(0, 1fr); }
    .admin-shell { grid-template-columns: 205px minmax(0, 1fr); }.admin-workspace { padding-left: 26px; padding-right: 26px; }.admin-overview-grid { grid-template-columns: 1fr; }.settings-grid { grid-template-columns: 1fr; gap: 22px; }.settings-copy p { max-width: 540px; }
}

@media (max-width: 640px) {
    .topbar { height: 62px; padding: 0 16px; }.topnav { gap: 10px; }.topnav > a:not(.nav-action), .user-chip { display: none; }.nav-action { padding: 8px 11px; }
    .customer-shell { min-height: calc(100vh - 62px); display: block; }
    .customer-sidebar { min-height: 0; padding: 10px 8px 0; border-right: 0; border-bottom: 1px solid var(--line); display: block; }
    .customer-sidebar-head, .customer-sidebar-foot { display: none; }
    .customer-console-nav { width: 100%; padding: 0; display: flex; gap: 2px; }
    .customer-console-nav > a { min-width: 0; min-height: 52px; padding: 8px 3px; flex: 1 1 25%; display: flex; justify-content: center; text-align: center; }
    .customer-console-nav > a > span, .customer-console-nav small { display: none; }
    .customer-console-nav > a > div { display: block; }
    .customer-console-nav b { font-size: 11px; white-space: nowrap; }
    .hero { height: 680px; min-height: 680px; }.hero-content { margin: 0 20px; padding-bottom: 118px; }.hero h1 { font-size: 44px; }.hero-content > p { font-size: 14px; }.hero-actions .button { width: 100%; }
    .hero-stats div { padding: 14px 11px; }.hero-stats b { font-size: 14px; }.hero-stats span { font-size: 9px; }
    .capabilities { padding: 70px 20px; }.capability-grid article { padding: 32px 22px; }
    .auth-panel { min-height: calc(100vh - 62px); padding: 40px 20px; place-items: start center; }.auth-card h1 { font-size: 32px; }.form-grid { grid-template-columns: 1fr; gap: 0; }
    .console-page, .admin-page { width: calc(100% - 28px); padding: 42px 0 70px; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading h1 { font-size: 34px; }
    .metric-grid { grid-template-columns: 1fr; }.metric { min-height: 130px; border-right: 0 !important; border-bottom: 1px solid var(--line); }.metric:last-child { border-bottom: 0; }
    .workspace-grid { gap: 14px; }.empty-state { min-height: 340px; }.panel-heading { padding: 16px; }.details { margin: 0 16px; }
    .admin-identity { border-left: 0; padding-left: 0; }.security-warning { align-items: flex-start; flex-wrap: wrap; }.security-warning a { margin-left: 42px; }
    .filters { flex-wrap: wrap; }.filters select { flex: 1; }.filters .button { flex: 0 0 auto; }.search-field { flex: 1 0 100%; }.footer { padding: 0 16px; }
    .admin-shell { min-height: calc(100vh - 62px); display: block; }.admin-sidebar { padding: 10px 8px 0; border-right: 0; border-bottom: 1px solid var(--line); display: block; overflow-x: auto; scrollbar-width: thin; }.admin-sidebar-head, .admin-sidebar-foot { display: none; }.admin-menu { display: flex; width: max-content; min-width: 100%; padding: 0; gap: 2px; }.admin-menu > a { width: 88px; min-width: 88px; min-height: 52px; flex: 0 0 88px; display: flex; justify-content: center; padding: 8px 3px; text-align: center; }.admin-menu > a > span { display: none; }.admin-menu > a > div { display: block; min-width: 0; }.admin-menu b { font-size: 11px; white-space: nowrap; }.admin-menu small { display: none; }.admin-workspace { padding: 34px 14px 68px; }.admin-content-heading { align-items: flex-start; flex-direction: column; min-height: 0; margin-bottom: 24px; }.admin-content-heading h1 { font-size: 32px; }.admin-content-heading > .button { width: 100%; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1 1 140px; }.admin-overview-grid { gap: 14px; }.recent-customer { padding-left: 14px; padding-right: 14px; }.customer-toolbar { padding: 16px; }.form-panel { max-width: none; }.panel-form-body { padding: 20px 16px; }.form-actions { flex-direction: column; }.form-actions .button { width: 100%; }.settings-section-head { padding: 18px 16px; }.settings-grid { padding: 24px 16px; }.settings-actions { padding: 16px; }.settings-actions .button { width: 100%; }.logo-setting-row { grid-template-columns: 58px minmax(0, 1fr); }.logo-preview { width: 58px; height: 58px; }.project-card { min-height: 0; padding: 20px 16px; }.project-card > p { min-height: 0; }.project-detail-grid, .node-detail-grid { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 980px) {
    .withdrawal-create-grid, .withdrawal-detail-grid { grid-template-columns: 1fr; }
    .withdrawal-balance-panel { position: static; }
    .success-total-panel, .withdrawal-action-panel { align-items: flex-start; flex-direction: column; }
    .success-range-form { width: 100%; flex-wrap: wrap; }.success-range-form label { flex: 1 1 140px; }.success-range-form input { width: 100%; }
    .withdrawal-action-panel > form { width: 100%; min-width: 0; }
}

@media (max-width: 640px) {
    .admin-menu > a { padding-left: 2px; padding-right: 2px; }
    .admin-menu b { font-size: 10px; }
    .method-options { grid-template-columns: 1fr; }
    .withdrawal-action-panel { padding: 18px 16px; }
    .detail-list > div { padding: 14px 16px; }
    .topnav { gap: 7px; }
    .region-limit-head { display: none; }
    .region-limit-row { grid-template-columns: 1fr 1fr 72px 34px; gap: 7px; }
    .region-limit-row label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; }
    .region-limit-row input { padding: 0 8px; }
    .project-region-availability span { align-items: flex-start; flex-direction: column; gap: 4px; }
    .project-region-head { align-items: flex-start; flex-direction: column; gap: 2px; padding-bottom: 10px; }
    .project-region-head label { width: 100%; margin-top: 0; }
}
