@import "../../www/css/tokens.css?v=21";
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; color: #fff; font-family: var(--font); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
input, select, textarea { background: #1c1c1e; border: 0; border-radius: 14px; padding: 12px 14px; width: 100%; outline: none; }
#app { display: flex; min-height: 100%; width: 100%; }
.nav { width: 240px; flex-shrink: 0; padding: 28px 16px; border-right: 1px solid rgba(255,255,255,.08); background: #050505; }
.nav h1 { font-size: 18px; margin: 0 0 20px; }
.nav a { display: block; padding: 12px 14px; border-radius: 14px; color: #8e8e93; font-weight: 650; }
.nav a.on { background: #1c1c1e; color: #fff; }
.main { flex: 1; min-width: 0; padding: 28px 32px; width: 100%; }
h2 { margin: 0 0 18px; font-size: 28px; }
.card { background: #1c1c1e; border-radius: 20px; padding: 16px 18px; margin-bottom: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stat { background: #1c1c1e; border-radius: 20px; padding: 16px; min-width: 0; }
.stat b { display: block; font-size: 28px; overflow-wrap: anywhere; }
.stat span { color: #8e8e93; font-size: 13px; }
.btn { height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 800; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 14px; }
.login { max-width: 380px; margin: 12vh auto; }
.muted { color: #8e8e93; font-size: 13px; }
#overlay { position: fixed; inset: 0; pointer-events: none; }
#overlay:not(:empty) { pointer-events: auto; }
.tour-bar {
  position: fixed; left: 260px; right: 24px; bottom: 24px;
  background: #1c1c1e; border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  padding: 14px 16px; z-index: 30;
}
.tour-k { color: #8e8e93; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.tour-c { font-size: 14px; line-height: 1.45; }
.tour-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.tour-actions button, .dialog .btn { color: #0a84ff; font-weight: 700; }
.tour-check { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: #8e8e93; font-size: 13px; }
.tour-check input { width: 18px; height: 18px; }
.dialog { position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(420px,90vw); background: #1c1c1e; border-radius: 22px; padding: 22px; z-index: 40; }
.dlg-mask { position: fixed; inset: 0; background: rgba(0,0,0,.55); }
.nav .tiny { margin-top: 16px; font-size: 13px; }
@media (max-width: 800px) {
  #app { display: flex; flex-direction: column; }
  .nav {
    width: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 16px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  }
  .nav h1 { width: 100%; margin: 0 0 8px; font-size: 16px; }
  .nav a { padding: 8px 12px; font-size: 13px; }
  .main { padding: 20px 16px 40px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 22px; }
  .table { display: block; overflow-x: auto; }
  .row { flex-wrap: wrap; }
  .tour-bar { left: 16px; right: 16px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav { width: 260px; }
}
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
