:root{
  --bg:#0b1020;
  --card:#121a33;
  --card2:#0f1730;
  --text:#e7ebff;
  --muted:#aab3d6;
  --line:#23305a;
  --btn:#2b6bff;
  --danger:#ff3b52;
  --ok:#17c964;
  --warn:#f5a524;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% 0%, #16214a, var(--bg));
  color:var(--text);
}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:22px;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

h1{ margin:0 0 4px 0; font-size:28px; }
h2{ margin:0 0 10px 0; font-size:18px; }
p{ margin:0; }

.muted{ color:var(--muted); }
.small{ font-size:12px; }

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: linear-gradient(180deg, var(--card), var(--card2));
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:12px 0 8px;
}

label{ display:flex; flex-direction:column; gap:6px; color:var(--muted); }
input{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#0a1026;
  color:var(--text);
  outline:none;
}
input:focus{ border-color:#3a63ff; }

.row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin:8px 0;
}

.btn{
  background:var(--btn);
  border:none;
  border-radius:10px;
  color:white;
  padding:10px 12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ filter:brightness(1.05); }
.btn:active{ transform: translateY(1px); }

.btn.ghost{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
}
.btn.danger{ background:var(--danger); }

.btn.mini{
  padding:6px 10px;
  border-radius:9px;
  font-weight:800;
}

.note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
  color:var(--muted);
  min-height:22px;
  white-space:pre-wrap;
}
.note.ok{ border-color: rgba(23,201,100,.35); color: #baf3d0; }
.note.warn{ border-color: rgba(245,165,36,.35); color: #ffe2b3; }
.note.err{ border-color: rgba(255,59,82,.35); color: #ffc2c9; }

.pre{
  background:#070c1e;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px;
  overflow:auto;
  min-height:120px;
}

.tableWrap{ overflow:auto; }
.tbl{
  width:100%;
  border-collapse: collapse;
  margin-top:10px;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
}
.tbl th, .tbl td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.tbl th{
  text-align:left;
  color:var(--muted);
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  background:rgba(0,0,0,.18);
}
.tbl tr:hover td{ background:rgba(255,255,255,.03); }
.actions{ white-space:nowrap; }

.foot{
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  justify-content:flex-end;
}

code{
  background: rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.08);
}

/* ✅ DŮLEŽITÉ: používá app.js */
.hidden{ display:none !important; }
