/* Themelio DDI — demo console stylesheet.
   Mirrors web/src/theme/tokens.css so the demo reads like the real product.
   Self-contained: no CDN, no network calls. Fonts are the site's own
   self-hosted woff2 files (see the "Fonts are self-hosted" rule in CLAUDE.md). */

@import url('../../fonts/fonts.css');

:root {
  --vera-primary: #2563eb;
  --vera-primary-hover: #1d4ed8;
  --vera-primary-soft: #dbeafe;

  --vera-bg: #f5f7fa;
  --vera-bg-deep: #ffffff;
  --vera-surface: #ffffff;
  --vera-surface-2: #f8fafc;
  --vera-border: #e2e8f0;
  --vera-text: #1e293b;
  --vera-text-muted: #64748b;

  --vera-success: #15803d;
  --vera-warning: #b45309;
  --vera-danger: #b91c1c;
  --vera-info: #1d4ed8;
  --vera-dhcp: #7c3aed;
  --on-primary: #ffffff;

  --chart-1: #2563eb;
  --chart-2: #6366f1;
  --chart-3: #29a9e0;
  --chart-4: #f59e0b;
  --chart-5: #94a3b8;

  --radius: 8px;
  --radius-card: 12px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 2px 6px rgba(15, 23, 42, 0.07), 0 16px 34px rgba(15, 23, 42, 0.12);
  --shadow-glow-primary: 0 6px 22px rgba(37, 99, 235, 0.16);

  --font-sans: 'Segoe UI', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Mono', 'Consolas', 'Courier New', monospace;

  --topbar-h: 74px;
  --sider-w: 248px;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--font-sans);
  background: var(--vera-bg);
  background-image: radial-gradient(1100px 620px at 100% -12%, var(--vera-primary-soft) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--vera-text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--vera-primary); text-decoration: none; }
a:hover { color: var(--vera-primary-hover); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--vera-text-muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }

/* ---------------------------------------------------------------- shell */

.shell { display: flex; flex-direction: column; height: 100vh; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  height: var(--topbar-h); flex: 0 0 var(--topbar-h);
  padding-inline: 16px;
  background: var(--vera-bg-deep);
  border-bottom: 1px solid var(--vera-primary);
  position: relative; z-index: 30;
}
.topbar .logo { height: 30px; width: auto; display: block; }
.icon-btn {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--vera-border); background: var(--vera-surface);
  color: var(--vera-text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative;
}
.icon-btn:hover { border-color: var(--vera-primary); color: var(--vera-primary); }
.icon-btn .dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--vera-danger); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.deploy-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--vera-warning); cursor: pointer;
  background: rgba(245, 158, 11, .12); color: var(--vera-warning);
  font-size: 12px; font-weight: 600;
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--vera-primary-soft); color: var(--vera-primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600;
}
.spacer { flex: 1; }

.body-row { display: flex; flex: 1; min-height: 0; }

.sider {
  width: var(--sider-w); flex: 0 0 var(--sider-w);
  background: var(--vera-surface);
  border-right: 1px solid var(--vera-primary);
  overflow-y: auto; overflow-x: hidden;
  padding: 6px 8px 40px;
  scrollbar-width: thin; scrollbar-color: var(--vera-border) transparent;
}
.sider::-webkit-scrollbar { width: 6px; }
.sider::-webkit-scrollbar-thumb { background: var(--vera-border); border-radius: 3px; }
.shell.collapsed .sider { width: 64px; flex-basis: 64px; padding-inline: 6px; }
.shell.collapsed .nav-text, .shell.collapsed .nav-group, .shell.collapsed .nav-children, .shell.collapsed .nav-caret { display: none; }
.shell.collapsed .nav-item { justify-content: center; padding-inline: 0; }

.nav-group {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vera-text-muted); padding: 16px 12px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin: 2px 0; border-radius: 8px;
  color: var(--vera-text-muted); font-weight: 600; cursor: pointer; user-select: none;
}
.nav-item:hover { background: var(--vera-bg); color: var(--vera-text); }
.nav-item .nav-ico { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.nav-item .nav-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nav-item .nav-label { font-size: 14px; }
.nav-item .nav-meta { font-size: 10px; font-weight: 500; margin-top: 1px; color: var(--vera-text-muted); }
.nav-item .nav-caret { margin-left: auto; font-size: 10px; opacity: .6; transition: transform .15s ease; }
.nav-item.open .nav-caret { transform: rotate(90deg); }
.nav-item.active { background: var(--vera-primary-soft); color: var(--vera-primary); box-shadow: inset 3px 0 0 var(--vera-primary); }
.nav-item.active .nav-meta { color: var(--vera-primary); }
.nav-children { display: none; padding-left: 12px; }
.nav-children.open { display: block; }
.nav-child {
  display: block; padding: 7px 12px 7px 28px; margin: 1px 0; border-radius: 8px;
  color: var(--vera-text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.nav-child:hover { background: var(--vera-bg); color: var(--vera-text); }
.nav-child.active { background: var(--vera-primary-soft); color: var(--vera-primary); box-shadow: inset 3px 0 0 var(--vera-primary); }

.content { flex: 1; min-width: 0; overflow-y: auto; padding: 24px; }

.demo-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 12.5px;
  background: rgba(37, 99, 235, .07);
  border-bottom: 1px solid var(--vera-border);
  color: var(--vera-text);
}
.demo-bar b { color: var(--vera-primary); }
.demo-bar .x { margin-left: auto; cursor: pointer; color: var(--vera-text-muted); font-size: 14px; }

/* ---------------------------------------------------------------- page */

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-head .eyebrow { font-size: 12px; color: var(--vera-text-muted); font-weight: 500; margin-bottom: 5px; }
.page-head h1 { font-size: 22px; }
.page-head p { margin: 5px 0 0; font-size: 13px; color: var(--vera-text-muted); }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
.g12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 1180px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g12, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .g2, .g4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- card */

.card {
  background: var(--vera-surface); border: 1px solid var(--vera-border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card.hoverable:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.card.accent { border-top: 3px solid var(--vera-primary); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--vera-border);
  background: var(--vera-surface-2);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  font-weight: 600; font-size: 14px;
}
.card-body { padding: 16px; }
.card-body.flush { padding: 0; }
.panel-title { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.panel-sub { font-size: 12px; color: var(--vera-text-muted); margin-top: 2px; font-weight: 400; }

/* stat card */
.stat { padding: 16px; }
.stat .lbl { font-size: 12px; color: var(--vera-text-muted); font-weight: 500; }
.stat .val { font-family: var(--font-mono); font-size: 26px; font-weight: 600; margin-top: 10px; letter-spacing: -.02em; }
.stat .sub { font-size: 12px; margin-top: 5px; font-weight: 500; color: var(--vera-text-muted); }

/* ---------------------------------------------------------------- bits */

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border-radius: var(--radius);
  border: 1px solid var(--vera-border); background: var(--vera-surface);
  color: var(--vera-text); font-size: 13px; font-family: inherit; font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.btn-ico { flex: none; }
.btn:hover { border-color: var(--vera-primary); color: var(--vera-primary); }
.btn.primary { background: var(--vera-primary); border-color: var(--vera-primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--vera-primary-hover); border-color: var(--vera-primary-hover); color: #fff; }
.btn.danger { color: var(--vera-danger); border-color: #fecaca; }
.btn.danger:hover { background: var(--vera-danger); border-color: var(--vera-danger); color: #fff; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn.lg { height: 40px; padding: 0 20px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { background: none; border: none; color: var(--vera-primary); cursor: pointer; font: inherit; font-size: 13px; padding: 0; }

.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px;
  background: var(--vera-surface-2); color: var(--vera-text-muted); border: 1px solid var(--vera-border);
}
.tag.ok { color: var(--vera-success); background: #dcfce7; border-color: #bbf7d0; }
.tag.warn { color: var(--vera-warning); background: #fef3c7; border-color: #fde68a; }
.tag.err { color: var(--vera-danger); background: #fee2e2; border-color: #fecaca; }
.tag.info { color: var(--vera-primary); background: var(--vera-primary-soft); border-color: #bfdbfe; }
.tag.violet { color: var(--vera-dhcp); background: #ede9fe; border-color: #ddd6fe; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border-radius: 6px; font-size: 12px; font-weight: 600;
  color: var(--vera-text-muted); background: var(--vera-bg);
}
.chip.ok { color: var(--vera-success); background: #dcfce7; }
.chip.err { color: var(--vera-danger); background: #fee2e2; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.edition {
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  line-height: 1.6; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  color: #7c3aed; background: rgba(124, 58, 237, .12);
  border: 1px solid #7c3aed; box-shadow: 0 0 0 3px rgba(124, 58, 237, .14);
}

input, select, textarea {
  height: 32px; padding: 0 10px; border-radius: var(--radius);
  border: 1px solid var(--vera-border); background: var(--vera-surface);
  color: var(--vera-text); font: inherit; font-size: 13px; outline: none; width: 100%;
}
textarea { height: auto; padding: 8px 10px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--vera-primary); box-shadow: 0 0 0 3px var(--vera-primary-soft); }
input:disabled, select:disabled { background: var(--vera-surface-2); color: var(--vera-text-muted); }
label.fld { display: block; margin-bottom: 12px; }
label.fld > span.lbl { display: block; font-size: 12px; font-weight: 600; margin-bottom: 5px; }
label.fld > span.hint { display: block; font-size: 11.5px; color: var(--vera-text-muted); margin-top: 4px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.search-box { max-width: 300px; }

.switch {
  position: relative; display: inline-block; width: 44px; height: 24px;
  border-radius: 999px; background: #cbd5e1; cursor: pointer; transition: background .15s ease; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch.on { background: var(--vera-primary); }
.switch.on::after { transform: translateX(20px); }
.switch.on.green { background: var(--vera-success); }

/* ---------------------------------------------------------------- table */

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--vera-text-muted);
  background: var(--vera-surface-2); padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--vera-border);
}
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--vera-border); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl tbody tr.clickable { cursor: pointer; }
table.tbl tbody tr.clickable:hover { background: var(--vera-surface-2); }
table.tbl tbody tr.sel { background: var(--vera-primary-soft); }
table.tbl td.act { white-space: nowrap; text-align: right; }
table.tbl td.act .btn { margin-left: 6px; }
.tbl-foot { padding: 10px 14px; font-size: 12px; color: var(--vera-text-muted); border-top: 1px solid var(--vera-border); }
.empty { padding: 36px; text-align: center; color: var(--vera-text-muted); font-size: 13px; }

/* ---------------------------------------------------------------- tabs */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--vera-border); margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  padding: 9px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  color: var(--vera-text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--vera-text); }
.tab.active { color: var(--vera-primary); border-bottom-color: var(--vera-primary); }
.subtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.subtab {
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--vera-text-muted); background: var(--vera-surface-2); border: 1px solid var(--vera-border);
}
.subtab.active { color: var(--vera-primary); background: var(--vera-primary-soft); border-color: #bfdbfe; }

/* ---------------------------------------------------------------- bars */

.bar { height: 8px; border-radius: 4px; background: var(--vera-border); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--vera-primary); border-radius: 4px; }
.bar.thin { height: 6px; }

.kv { display: grid; grid-template-columns: minmax(140px, 34%) 1fr; gap: 0; font-size: 13px; }
.kv > dt { padding: 9px 0; color: var(--vera-text-muted); border-bottom: 1px solid var(--vera-border); }
.kv > dd { padding: 9px 0; margin: 0; border-bottom: 1px solid var(--vera-border); }
.kv > dt:last-of-type, .kv > dd:last-of-type { border-bottom: none; }

pre.code {
  margin: 0; padding: 12px 14px; background: #0f172a; color: #e2e8f0;
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 12px;
  line-height: 1.6; overflow-x: auto; white-space: pre;
}
pre.code.light { background: var(--vera-surface-2); color: var(--vera-text); border: 1px solid var(--vera-border); }
.code .k { color: #7dd3fc; }
.code .s { color: #86efac; }
.code .n { color: #fca5a5; }
.code .c { color: #64748b; }

.alert {
  display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius);
  font-size: 13px; line-height: 1.5; border: 1px solid;
}
.alert.info { background: var(--vera-primary-soft); border-color: #bfdbfe; color: #1e3a8a; }
.alert.warn { background: #fef3c7; border-color: #fde68a; color: #78350f; }
.alert.err { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.alert.ok { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }

/* --------------------------------------------------------- modal/drawer */

.mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  display: flex; align-items: flex-start; justify-content: center;
  z-index: 100; padding: 60px 16px; overflow-y: auto;
  animation: fade .15s ease;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: var(--vera-surface); border-radius: var(--radius-card);
  width: 100%; max-width: 560px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  animation: pop .16s ease;
}
@keyframes pop { from { transform: translateY(-8px); opacity: 0 } to { transform: none; opacity: 1 } }
.modal.wide { max-width: 860px; }
.modal.xwide { max-width: 1080px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--vera-border); font-weight: 600; font-size: 15px;
}
.modal-head .x { cursor: pointer; color: var(--vera-text-muted); font-size: 18px; line-height: 1; }
.modal-body { padding: 18px; max-height: calc(100vh - 240px); overflow-y: auto; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid var(--vera-border);
}
.drawer-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 96vw;
  background: var(--vera-surface); box-shadow: -12px 0 40px rgba(15, 23, 42, .2);
  z-index: 101; display: flex; flex-direction: column; animation: slide .2s ease;
}
.drawer.wide { width: 760px; }
@keyframes slide { from { transform: translateX(30px); opacity: .4 } to { transform: none; opacity: 1 } }
.drawer-head { padding: 16px 20px; border-bottom: 1px solid var(--vera-border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-foot { padding: 12px 20px; border-top: 1px solid var(--vera-border); display: flex; justify-content: flex-end; gap: 8px; }

/* toast */
#toasts { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--vera-surface); border: 1px solid var(--vera-border);
  box-shadow: var(--shadow-card-hover); border-radius: var(--radius);
  padding: 10px 16px; font-size: 13px; display: flex; align-items: center; gap: 9px;
  animation: pop .16s ease; max-width: 520px;
}
.toast.ok { border-left: 3px solid var(--vera-success); }
.toast.info { border-left: 3px solid var(--vera-primary); }
.toast.warn { border-left: 3px solid var(--vera-warning); }

/* dropdown */
.menu {
  position: absolute; z-index: 120; min-width: 180px; padding: 5px;
  background: var(--vera-surface); border: 1px solid var(--vera-border);
  border-radius: var(--radius); box-shadow: var(--shadow-card-hover); animation: pop .12s ease;
}
.menu .mi { padding: 8px 11px; border-radius: 6px; font-size: 13px; cursor: pointer; display: flex; gap: 9px; align-items: center; }
.menu .mi:hover { background: var(--vera-surface-2); }
.menu .sep { height: 1px; background: var(--vera-border); margin: 4px 0; }

/* misc */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.donut-lbl { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--vera-text-muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--vera-text-muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.timeline-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--vera-border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-item .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tile {
  display: block; padding: 14px; border-radius: var(--radius-card);
  border: 1px solid var(--vera-border); background: var(--vera-surface);
  box-shadow: var(--shadow-card); transition: box-shadow .18s ease, transform .18s ease;
  color: inherit;
}
.tile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); color: inherit; border-color: var(--vera-primary); }
.tile .t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tile .d { font-size: 12px; color: var(--vera-text-muted); margin-top: 5px; line-height: 1.45; }
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 3px; }
.ip-cell {
  height: 26px; border-radius: 4px; font-size: 10px; font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: var(--vera-surface-2); color: var(--vera-text-muted); border: 1px solid var(--vera-border);
}
.ip-cell:hover { outline: 2px solid var(--vera-primary); }
.ip-cell.active { background: var(--vera-primary); color: #fff; border-color: var(--vera-primary); }
.ip-cell.dhcp { background: var(--vera-dhcp); color: #fff; border-color: var(--vera-dhcp); }
.ip-cell.reserved { background: var(--chart-4); color: #fff; border-color: var(--chart-4); }
.ip-cell.gateway { background: var(--vera-success); color: #fff; border-color: var(--vera-success); }
.ip-cell.conflict { background: var(--vera-danger); color: #fff; border-color: var(--vera-danger); }
.tree-node { padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.tree-node:hover { background: var(--vera-surface-2); }
.tree-node.active { background: var(--vera-primary-soft); color: var(--vera-primary); font-weight: 600; }

/* login */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none; } }
.login-art {
  background: linear-gradient(150deg, #0b1e3d 0%, #12336b 45%, #1d4ed8 100%);
  color: #e2e8f0; padding: 56px; display: flex; flex-direction: column; justify-content: center; gap: 26px;
  position: relative; overflow: hidden;
}
.login-art::after {
  content: ''; position: absolute; inset: auto -120px -220px auto; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(41,169,224,.35), transparent 62%);
}
.login-art h2 { font-size: 32px; line-height: 1.25; color: #fff; }
.login-art .feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; position: relative; z-index: 1; }
.login-art .feat b { color: #fff; display: block; margin-bottom: 3px; }
.login-art .feat-ico {
  width: 21px; height: 21px; flex: none; margin-top: 1px;
  fill: none; stroke: currentColor; color: #7dd3fc;
}
.back-site {
  display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; color: var(--vera-text-muted);
}
.back-site:hover { color: var(--vera-primary); }
.back-site .feat-ico { fill: none; stroke: currentColor; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 400px; }
