:root { color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0b0f14; color: #e8eef6; font-family: "Segoe UI", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.card { border: 1px solid rgba(255,255,255,.1); background: #171e28; border-radius: 16px; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 14px; border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(17,22,29,.92); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.nav { display: none; gap: 6px; }
.nav a, .bottom a { position: relative; padding: 8px 12px; border-radius: 10px; color: #cbd5e1; font-size: 14px; }
.nav a.active, .bottom a.active { color: #ff8a65; }
.page { max-width: 1100px; margin: 0 auto; padding: 16px 14px 92px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn { border: 0; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.btn.primary { background: #ff6a3d; color: #fff; }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.12); color: #e8eef6; }
input, select { width: 100%; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #0b0f14; color: #e8eef6; padding: 10px; }
.grid { display: grid; gap: 14px; }
.hero { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); min-height: 140px; }
.hero img { width: 100%; height: 160px; object-fit: cover; display: block; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(90deg, #0b0f14, rgba(11,15,20,.55), transparent); padding: 18px; }
.canvas { position: relative; overflow: auto; height: 62vh; min-height: 380px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: #0e141c; }
.node { position: absolute; min-width: 170px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: #1e2733; font-size: 13px; }
.bottom { position: fixed; inset: auto 0 0 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.1); background: rgba(17,22,29,.96); padding: 6px 4px; }
.bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; padding: 6px 4px; }
.login { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 16px; }
.login img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login .mask { position: absolute; inset: 0; background: rgba(11,15,20,.8); }
.muted { color: #94a3b8; font-size: 13px; }
.err { color: #f87171; font-size: 13px; }
.ok { color: #6ee7b7; }
img.icon { width: 18px; height: 18px; filter: invert(92%) sepia(8%) saturate(250%) hue-rotate(180deg) brightness(105%); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .bottom { display: none; }
  .page { padding-bottom: 32px; }
  .grid.two { grid-template-columns: 1fr 1fr; }
}
