:root {
  --bg: #07111d;
  --bg2: #091827;
  --panel: rgba(13, 29, 45, .92);
  --panel2: rgba(16, 37, 56, .9);
  --line: rgba(144, 177, 205, .16);
  --line-strong: rgba(79, 162, 255, .36);
  --text: #eef6ff;
  --muted: #91a6ba;
  --blue: #2c8cff;
  --cyan: #39c6ff;
  --green: #50d890;
  --yellow: #f0c54b;
  --orange: #f29b4b;
  --red: #ff5d68;
  --purple: #996bff;
  --shadow: 0 20px 60px rgba(0, 0, 0, .25);
  --radius: 14px;
  --sidebar: 225px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 75% -10%, rgba(44, 140, 255, .13), transparent 34%),
    radial-gradient(circle at 10% 100%, rgba(57, 198, 255, .06), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}

button, input, select { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(6,15,26,.98), rgba(7,18,30,.96));
  border-right: 1px solid var(--line);
  z-index: 5;
}
.brand { display: flex; gap: 11px; align-items: center; padding: 6px 8px 19px; border-bottom: 1px solid var(--line); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #0f4b8e, #2d90ff); box-shadow: 0 0 30px rgba(44,140,255,.25); font-weight: 800;
}
.brand strong { display: block; font-size: 14px; }
.brand span { color: var(--muted); font-size: 12px; }
.nav { display: grid; gap: 6px; padding-top: 18px; }
.nav-item {
  width: 100%; border: 1px solid transparent; background: transparent; padding: 10px 11px;
  border-radius: 10px; display: flex; align-items: center; gap: 10px; color: #b7c7d6; cursor: pointer; text-align: left;
}
.nav-item span { width: 20px; text-align: center; color: #8eb1d0; }
.nav-item:hover { background: rgba(255,255,255,.035); color: white; }
.nav-item.active { color: white; background: rgba(44,140,255,.15); border-color: rgba(44,140,255,.24); }
.nav-item.active span { color: #5da8ff; }
.nav-badge { margin-left: auto; min-width: 21px; padding: 2px 6px; border-radius: 999px; background: rgba(255,93,104,.18); color: #ff7a83; font-size: 11px; text-align: center; }
.sidebar-spacer { flex: 1; }
.source-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: rgba(255,255,255,.018); }
.source-card h3 { margin: 0 0 10px; font-size: 12px; color: #c9d7e4; font-weight: 700; }
.source-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.04); }
.source-row:first-of-type { border-top: 0; }
.source-row strong, .source-row small { display: block; }
.source-row strong { font-size: 12px; }
.source-row small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.system-status { margin: 14px 5px 2px; color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.dot.ok { background: var(--green); box-shadow: 0 0 14px rgba(80,216,144,.45); }
.dot.warn { background: var(--yellow); }
.dot.bad { background: var(--red); }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(80,216,144,.35)} 50%{box-shadow:0 0 0 7px rgba(80,216,144,0)} }

.main { min-width: 0; }
.topbar {
  min-height: 102px; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--line); background: rgba(7,17,29,.73); backdrop-filter: blur(16px);
}
.eyebrow { margin: 0 0 5px; color: #5fa9ff; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.02em; }
.subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.live-pill, .ghost-button { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 9px; padding: 8px 10px; }
.live-pill { font-size: 11px; display:flex; align-items:center; gap:7px; color:#cfe5d8; }
.ghost-button { cursor: pointer; }
.ghost-button:hover { border-color: var(--line-strong); background: rgba(44,140,255,.08); }
.updated { color: var(--muted); font-size: 10px; line-height: 1.4; min-width: 112px; }
.updated strong { color: #d7e6f4; font-size: 11px; }

.view-root { padding: 18px 20px 30px; }
.grid { display: grid; gap: 12px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.three-grid { grid-template-columns: 1.05fr 1.05fr 1fr; }
.two-grid { grid-template-columns: 1.3fr .7fr; }
.device-grid { grid-template-columns: 1fr 1fr 1.1fr; }
.detail-grid { grid-template-columns: 1fr 1fr 1fr; }
.mt12 { margin-top: 12px; }
.mt16 { margin-top: 16px; }
.panel {
  background: linear-gradient(180deg, rgba(16,34,52,.93), rgba(10,25,40,.95)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0;
}
.panel.pad { padding: 15px; }
.panel-head { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:14px 15px 12px; border-bottom:1px solid var(--line); }
.panel-head h2 { margin:0; font-size:14px; }
.panel-head small { color:var(--muted); }
.panel-body { padding: 14px 15px; }
.kpi { padding: 15px; min-height: 124px; position: relative; overflow: hidden; }
.kpi::after { content:""; position:absolute; width:130px; height:130px; border-radius:50%; right:-54px; top:-64px; background:rgba(44,140,255,.06); }
.kpi-top { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.kpi-label { color:#c2d2df; font-size:12px; }
.icon-tile { width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:rgba(44,140,255,.12); color:#69b0ff; border:1px solid rgba(44,140,255,.15); }
.icon-tile.red { color:#ff7a83; background:rgba(255,93,104,.11); border-color:rgba(255,93,104,.14); }
.icon-tile.purple { color:#b092ff; background:rgba(153,107,255,.11); border-color:rgba(153,107,255,.14); }
.icon-tile.green { color:#72e4a6; background:rgba(80,216,144,.1); border-color:rgba(80,216,144,.14); }
.kpi-value { font-size:29px; font-weight:750; letter-spacing:-.03em; margin:10px 0 4px; }
.kpi-foot { font-size:11px; color:var(--muted); }
.kpi-foot.good { color:#67d99d; }
.kpi-foot.bad { color:#ff7d85; }
.sparkline { width:100%; height:26px; margin-top:7px; opacity:.95; }

.legend { display:flex; gap:12px; flex-wrap:wrap; color:var(--muted); font-size:10px; }
.legend span { display:flex; align-items:center; gap:6px; }
.chart-box { min-height: 225px; }
.bar-chart { height:168px; display:flex; align-items:flex-end; gap:14px; padding:12px 6px 0; border-bottom:1px solid var(--line); }
.bar-col { flex:1; min-width:38px; display:flex; height:100%; flex-direction:column; justify-content:flex-end; align-items:center; gap:5px; }
.bar-value { font-size:10px; color:#c8d6e4; }
.bar { width:min(48px,72%); min-height:5px; border-radius:6px 6px 2px 2px; background:linear-gradient(180deg, rgba(44,140,255,.98), rgba(44,140,255,.45)); box-shadow:0 0 22px rgba(44,140,255,.10); }
.bar.red { background:linear-gradient(180deg,#ff6670,#9f2934); }
.bar.orange { background:linear-gradient(180deg,#f5a052,#9e5924); }
.bar.yellow { background:linear-gradient(180deg,#f2cf5b,#8e7320); }
.bar.green { background:linear-gradient(180deg,#69d99d,#287652); }
.bar.gray { background:linear-gradient(180deg,#8c9cad,#4b5a68); }
.bar-label { font-size:10px; color:var(--muted); white-space:nowrap; }
.line-chart { width:100%; height:178px; display:block; }

.donut-wrap { display:grid; grid-template-columns:150px 1fr; align-items:center; gap:14px; }
.donut { width:140px; aspect-ratio:1; border-radius:50%; background: conic-gradient(var(--green) 0 92%, var(--orange) 92% 97%, var(--red) 97% 98.5%, #6d7c8c 98.5% 100%); display:grid; place-items:center; position:relative; }
.donut::before { content:""; width:92px; aspect-ratio:1; border-radius:50%; background:#0c1d2e; border:1px solid var(--line); }
.donut-label { position:absolute; text-align:center; }
.donut-label strong { display:block; font-size:20px; }
.donut-label small { color:var(--muted); }
.status-list { display:grid; gap:10px; }
.status-row { display:flex; justify-content:space-between; gap:12px; color:#c9d8e5; font-size:11px; }
.status-row span:first-child { display:flex; gap:7px; align-items:center; color:var(--muted); }

.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:680px; }
th, td { text-align:left; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.055); white-space:nowrap; }
th { color:#8fa4b6; font-size:10px; font-weight:650; text-transform:uppercase; letter-spacing:.04em; }
td { color:#d9e5ef; font-size:11px; }
tbody tr { cursor:pointer; }
tbody tr:hover { background:rgba(44,140,255,.055); }
.badge { display:inline-flex; align-items:center; gap:5px; border-radius:999px; padding:4px 7px; font-size:10px; border:1px solid transparent; }
.badge.red { color:#ff8188; background:rgba(255,93,104,.11); border-color:rgba(255,93,104,.16); }
.badge.orange { color:#f5ad67; background:rgba(242,155,75,.11); border-color:rgba(242,155,75,.16); }
.badge.yellow { color:#f4d66f; background:rgba(240,197,75,.11); border-color:rgba(240,197,75,.16); }
.badge.green { color:#78e5ab; background:rgba(80,216,144,.11); border-color:rgba(80,216,144,.16); }
.badge.blue { color:#75b9ff; background:rgba(44,140,255,.11); border-color:rgba(44,140,255,.16); }

.alert-list { display:grid; gap:8px; }
.alert-item { display:grid; grid-template-columns:36px 1fr auto; gap:10px; align-items:start; padding:11px; border-radius:10px; border:1px solid rgba(255,255,255,.055); background:rgba(255,255,255,.018); }
.alert-icon { width:32px; height:32px; border-radius:9px; display:grid; place-items:center; background:rgba(255,93,104,.12); color:#ff6e78; }
.alert-icon.orange { color:#f7a457; background:rgba(242,155,75,.11); }
.alert-icon.yellow { color:#f1cf62; background:rgba(240,197,75,.11); }
.alert-icon.blue { color:#70b7ff; background:rgba(44,140,255,.11); }
.alert-item strong { display:block; font-size:11px; margin-bottom:3px; }
.alert-item p { margin:0; color:var(--muted); font-size:10px; line-height:1.45; }
.alert-time { color:#7f94a8; font-size:9px; padding-top:2px; }

.toolbar { display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.input, .select { background:#0a1a2a; color:#dbe8f2; border:1px solid var(--line); border-radius:9px; padding:9px 10px; outline:none; }
.input { min-width:230px; }
.input:focus, .select:focus { border-color:rgba(44,140,255,.55); box-shadow:0 0 0 3px rgba(44,140,255,.08); }

.device-hero { display:grid; grid-template-columns:1.2fr 1fr 1fr .9fr; gap:0; }
.device-hero > div { padding:15px; border-right:1px solid var(--line); min-width:0; }
.device-hero > div:last-child { border-right:0; }
.device-title { display:flex; gap:11px; align-items:center; }
.device-pc { width:48px; height:48px; border-radius:11px; display:grid; place-items:center; background:rgba(44,140,255,.10); border:1px solid rgba(44,140,255,.16); font-size:20px; }
.device-title h2 { margin:0 0 4px; font-size:20px; }
.device-title p, .hero-meta p { margin:0; color:var(--muted); font-size:10px; }
.hero-meta label { display:block; color:#8ba1b4; text-transform:uppercase; letter-spacing:.05em; font-size:9px; margin-bottom:6px; }
.hero-meta strong { display:block; font-size:13px; margin-bottom:4px; overflow:hidden; text-overflow:ellipsis; }
.risk-score { font-size:28px !important; color:#ff6b74; }

.list { display:grid; }
.list-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.055); }
.list-row:last-child { border-bottom:0; }
.list-row strong { font-size:11px; }
.list-row small { display:block; margin-top:3px; color:var(--muted); font-size:9px; overflow:hidden; text-overflow:ellipsis; }
.config-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.config-row:last-child { border-bottom:0; }
.config-row span:first-child { color:#c9d7e3; font-size:10px; }

.peer-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:12px; }
.peer-box { border:1px solid var(--line); border-radius:9px; padding:9px; }
.peer-box small { color:var(--muted); display:block; font-size:9px; }
.peer-box strong { font-size:18px; display:block; margin-top:3px; }
.peer-box.good strong { color:var(--green); }
.peer-box.warn strong { color:var(--yellow); }
.peer-box.bad strong { color:var(--red); }

.timeline { display:flex; overflow:auto; padding:4px 0 2px; }
.timeline-event { min-width:190px; padding:6px 14px 8px; border-left:1px solid var(--line); position:relative; }
.timeline-event::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--blue); position:absolute; left:-4px; top:11px; box-shadow:0 0 12px rgba(44,140,255,.5); }
.timeline-event time { display:block; color:#7890a5; font-size:9px; margin-bottom:8px; }
.timeline-event strong { font-size:10px; display:block; }
.timeline-event span { color:var(--muted); font-size:9px; }

.action-bar { display:flex; gap:8px; flex-wrap:wrap; }
.action-button { border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:9px; padding:9px 11px; cursor:pointer; font-size:10px; }
.action-button.primary { border-color:rgba(44,140,255,.35); background:rgba(44,140,255,.12); color:#9dccff; }
.action-button.danger { border-color:rgba(255,93,104,.28); background:rgba(255,93,104,.08); color:#ff9aa0; }
.action-button:hover { filter:brightness(1.15); }

.architecture { display:grid; grid-template-columns:1fr 55px 1.2fr 55px 1fr; align-items:stretch; gap:10px; }
.arch-col { display:grid; gap:9px; }
.arch-box { border:1px solid var(--line); border-radius:11px; padding:12px; background:rgba(255,255,255,.018); }
.arch-box strong { display:block; font-size:11px; }
.arch-box small { display:block; color:var(--muted); font-size:9px; margin-top:3px; line-height:1.4; }
.arch-arrow { display:grid; place-items:center; color:#55aaff; font-size:24px; }
.flow-line { height:1px; background:linear-gradient(90deg,transparent,#2c8cff,transparent); margin:4px 0; }
.live-metrics { display:grid; grid-template-columns:repeat(6,1fr); gap:8px; }
.metric-mini { border:1px solid var(--line); border-radius:9px; padding:10px; background:rgba(255,255,255,.014); }
.metric-mini span { color:var(--muted); font-size:9px; display:block; }
.metric-mini strong { font-size:18px; display:block; margin-top:4px; }

.empty { text-align:center; color:var(--muted); padding:40px 20px; }
.toast { position:fixed; right:20px; bottom:20px; max-width:360px; transform:translateY(18px); opacity:0; pointer-events:none; transition:.2s ease; background:#102337; border:1px solid rgba(44,140,255,.30); color:#ddebfa; padding:11px 14px; border-radius:10px; box-shadow:var(--shadow); z-index:20; font-size:11px; }
.toast.show { transform:translateY(0); opacity:1; }

@media (max-width: 1200px) {
  :root { --sidebar: 190px; }
  .kpi-grid { grid-template-columns:repeat(2,1fr); }
  .three-grid, .detail-grid { grid-template-columns:1fr 1fr; }
  .architecture { grid-template-columns:1fr 40px 1fr; }
  .architecture .arch-arrow.second { display:none; }
  .architecture .arch-col:last-child { grid-column:1/-1; grid-template-columns:repeat(3,1fr); }
  .live-metrics { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 820px) {
  :root { --sidebar: 68px; }
  .brand div:last-child, .nav-item:not(.active) > b, .nav-item { font-size:0; }
  .brand { justify-content:center; padding-left:0; padding-right:0; }
  .nav-item { justify-content:center; padding:10px 6px; }
  .nav-item span { font-size:16px; }
  .source-card, .system-status { display:none; }
  .topbar { align-items:flex-start; flex-direction:column; }
  .top-actions { width:100%; }
  .updated { margin-left:auto; }
  .three-grid, .two-grid, .device-grid, .detail-grid { grid-template-columns:1fr; }
  .device-hero { grid-template-columns:1fr 1fr; }
  .device-hero > div:nth-child(2) { border-right:0; }
  .device-hero > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .architecture { grid-template-columns:1fr; }
  .arch-arrow { transform:rotate(90deg); min-height:32px; }
  .architecture .arch-col:last-child { grid-column:auto; grid-template-columns:1fr; }
}

@media (max-width: 560px) {
  .view-root { padding:12px; }
  .topbar { padding:16px; }
  h1 { font-size:21px; }
  .subtitle { font-size:11px; }
  .kpi-grid { grid-template-columns:1fr; }
  .device-hero { grid-template-columns:1fr; }
  .device-hero > div { border-right:0; border-bottom:1px solid var(--line); }
  .device-hero > div:last-child { border-bottom:0; }
  .donut-wrap { grid-template-columns:1fr; justify-items:center; }
  .live-metrics { grid-template-columns:repeat(2,1fr); }
  .input { min-width:100%; }
}

/* V4 real-data additions */
.login-screen{position:fixed;inset:0;z-index:100;background:radial-gradient(circle at 50% 10%,rgba(44,140,255,.16),transparent 38%),#07111d;display:grid;place-items:center;padding:20px}.login-screen.hidden{display:none}.login-card{width:min(430px,100%);padding:28px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(16,34,52,.98),rgba(9,22,36,.98));box-shadow:0 35px 100px rgba(0,0,0,.45)}.login-card h1{font-size:23px}.login-card p{color:var(--muted);line-height:1.6}.login-logo{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:20px;font-weight:800;background:linear-gradient(135deg,#0f4b8e,#2d90ff);margin-bottom:18px}.login-form{display:grid;gap:10px;margin-top:18px}.login-form input{width:100%;padding:12px 13px;border-radius:10px;border:1px solid var(--line);background:#091725;color:var(--text);outline:none}.login-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(44,140,255,.12)}.primary-button{border:1px solid rgba(44,140,255,.42);background:linear-gradient(180deg,#1975d5,#105ba9);border-radius:10px;padding:11px 14px;cursor:pointer;font-weight:700}.primary-button:hover{filter:brightness(1.08)}.primary-button:disabled{opacity:.55;cursor:not-allowed}.login-error{min-height:18px;color:var(--red);font-size:12px}.hidden{display:none!important}

.real-status{display:flex;align-items:center;gap:7px}.status-text{font-size:11px;color:var(--muted)}.source-card .source-row strong{word-break:break-word}.source-card .source-row small{line-height:1.35}.data-empty{padding:34px 20px;text-align:center;color:var(--muted)}.data-empty strong{display:block;color:#d9e9f7;font-size:14px;margin-bottom:7px}.data-empty code{color:#91c5ff;background:rgba(44,140,255,.07);padding:2px 5px;border-radius:5px}

.risk-layout{display:grid;grid-template-columns:1fr;gap:14px}.risk-stack{height:18px;border-radius:999px;overflow:hidden;display:flex;background:rgba(255,255,255,.035);border:1px solid var(--line)}.risk-stack span{height:100%;min-width:0}.risk-stack .critical{background:var(--red)}.risk-stack .high{background:var(--orange)}.risk-stack .medium{background:var(--yellow)}.risk-stack .low{background:var(--green)}.risk-stack .normal{background:#6d8497}.risk-rows{display:grid;gap:7px}.risk-row{display:grid;grid-template-columns:90px 1fr 58px 54px;gap:10px;align-items:center;font-size:11px}.risk-row .track{height:7px;border-radius:999px;background:rgba(255,255,255,.045);overflow:hidden}.risk-row .fill{height:100%;border-radius:inherit}.risk-row .fill.critical{background:var(--red)}.risk-row .fill.high{background:var(--orange)}.risk-row .fill.medium{background:var(--yellow)}.risk-row .fill.low{background:var(--green)}.risk-row .fill.normal{background:#6d8497}.risk-row .count{text-align:right;color:#dce9f5;font-weight:700}.risk-row .pct{text-align:right;color:var(--muted)}

.kpi-note{font-size:10px;color:var(--muted);margin-top:8px}.status-strip{display:flex;gap:8px;flex-wrap:wrap}.mini-stat{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:9px;padding:7px 9px;color:var(--muted);font-size:10px}.mini-stat strong{color:#dceaf6;margin-left:4px}.panel-actions{display:flex;gap:8px;align-items:center}.small-button{border:1px solid var(--line);background:rgba(255,255,255,.025);border-radius:8px;padding:7px 9px;cursor:pointer;font-size:11px}.small-button:hover{border-color:var(--line-strong);background:rgba(44,140,255,.08)}

.device-row-click{cursor:pointer}.device-row-click:hover td{background:rgba(44,140,255,.045)}.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.muted{color:var(--muted)}.nowrap{white-space:nowrap}.wrap{word-break:break-word}.section-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.section-tab{border:1px solid var(--line);background:rgba(255,255,255,.02);border-radius:8px;padding:7px 9px;font-size:11px;cursor:pointer}.section-tab.active{border-color:rgba(44,140,255,.42);background:rgba(44,140,255,.12);color:#dcebff}.detail-table td,.detail-table th{font-size:10px}.detail-table td{vertical-align:top}.detail-table code{font-size:9px;color:#b7cce0;white-space:normal;word-break:break-all}.device-hero .risk-score.critical{color:var(--red)}.device-hero .risk-score.high{color:var(--orange)}.device-hero .risk-score.medium{color:var(--yellow)}.device-hero .risk-score.low{color:var(--green)}

.arch-flow{display:grid;grid-template-columns:1fr 80px 1fr 80px 1fr;gap:10px;align-items:stretch}.arch-node{border:1px solid var(--line);border-radius:12px;padding:16px;background:rgba(255,255,255,.02);min-height:150px}.arch-node h3{margin:0 0 10px;font-size:14px}.arch-node p{margin:6px 0;color:var(--muted);font-size:11px;line-height:1.5}.arch-arrow{display:grid;place-items:center;color:#4fa1ff;font-size:28px}.security-contract{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.contract-card{border:1px solid var(--line);border-radius:11px;padding:13px;background:rgba(255,255,255,.018)}.contract-card strong{display:block;font-size:12px;margin-bottom:5px}.contract-card small{color:var(--muted);line-height:1.45}

.token-box{padding:14px;border:1px solid rgba(80,216,144,.25);background:rgba(80,216,144,.06);border-radius:10px;margin-top:12px}.token-value{display:block;margin:8px 0;padding:10px;border-radius:8px;background:#06101b;border:1px solid var(--line);word-break:break-all;color:#bfead2}.warning-box{padding:12px;border:1px solid rgba(240,197,75,.22);background:rgba(240,197,75,.05);border-radius:10px;color:#d7c486;font-size:11px;line-height:1.5}.success-box{padding:12px;border:1px solid rgba(80,216,144,.22);background:rgba(80,216,144,.05);border-radius:10px;color:#a9e5c3;font-size:11px;line-height:1.5}.error-box{padding:12px;border:1px solid rgba(255,93,104,.22);background:rgba(255,93,104,.05);border-radius:10px;color:#ff9aa1;font-size:11px;line-height:1.5}

.no-action{border:1px solid rgba(80,216,144,.2);background:rgba(80,216,144,.035);border-radius:12px;padding:16px}.no-action strong{display:block;margin-bottom:7px}.codeblock{white-space:pre-wrap;word-break:break-word;background:#050d16;border:1px solid var(--line);border-radius:10px;padding:12px;color:#bed3e6;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:10px;line-height:1.55}.copy-button{float:right;margin-left:10px}

@media (max-width:1100px){.arch-flow{grid-template-columns:1fr}.arch-arrow{transform:rotate(90deg);min-height:30px}.security-contract{grid-template-columns:1fr 1fr}.risk-row{grid-template-columns:78px 1fr 48px 46px}}
@media (max-width:720px){.security-contract{grid-template-columns:1fr}.login-card{padding:22px}.risk-row{grid-template-columns:72px 1fr 42px}.risk-row .pct{display:none}}
