/* ══════════════════════════════════════════════════════════════
   HERMES riadiace centrum — premium OLED Ember (v2 redesign)
   čierna · žiariaca oranžovo-červená · glass · aurora · glow
   ══════════════════════════════════════════════════════════════ */
:root {
  color-scheme: dark;
  --bg: #050506;
  --bg-2: #08080a;
  --surface: rgba(22, 22, 26, 0.55);
  --surface-solid: #121216;
  --elevated: rgba(30, 30, 36, 0.7);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hot: rgba(255, 90, 60, 0.28);
  --line: rgba(255, 255, 255, 0.06);
  --ac: #ff5236;
  --ac-hot: #ff7a52;
  --ac-bright: #ff9066;
  --ember: #ffb27a;
  --ac-soft: rgba(255, 82, 54, 0.14);
  --ac-faint: rgba(255, 82, 54, 0.06);
  --tx: #f6f2ef;
  --tx-2: #a49b95;
  --tx-3: #66605c;
  --ok: #35d69a;
  --warn: #f5b544;
  --err: #f56b5c;
  --r-sm: 0.55rem;
  --r: 0.85rem;
  --r-lg: 1.15rem;
  --r-xl: 1.5rem;
  --glow: 0 0 0 1px rgba(255, 82, 54, 0.35), 0 0 22px rgba(255, 82, 54, 0.28), 0 0 60px rgba(255, 82, 54, 0.14);
  --glow-soft: 0 0 40px rgba(255, 82, 54, 0.1);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 82, 54, 0.06);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  font-size: 15px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* aurora mesh pozadie — jemné plávajúce žiary */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38rem 30rem at 78% -8%, rgba(255, 82, 54, 0.12), transparent 60%),
    radial-gradient(34rem 26rem at 8% 108%, rgba(255, 90, 40, 0.07), transparent 60%),
    radial-gradient(28rem 24rem at 92% 82%, rgba(210, 60, 120, 0.05), transparent 60%);
  filter: blur(8px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -1%, 0) scale(1.02); }
}
/* jemná zrnitosť pre hĺbku */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hidden { display: none !important; }
.muted { color: var(--tx-2); }
small { color: var(--tx-3); }
a { color: var(--ac-hot); text-decoration: none; }
::selection { background: rgba(255, 82, 54, 0.32); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 82, 54, 0.3); background-clip: padding-box; }

/* ── login ─────────────────────────────────────────────── */
.login { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; }
.login-card {
  width: 360px; padding: 40px 34px; display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, rgba(28, 20, 18, 0.6), rgba(12, 12, 14, 0.75));
  backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), var(--glow-soft);
}
.login-logo { margin: 0 auto 6px; }
.login-card h1 { font-size: 23px; text-align: center; font-weight: 640; letter-spacing: -0.03em; }
.login-card h1 span { color: var(--tx-2); font-weight: 400; font-size: 14px; letter-spacing: 0; }
.login-card p { text-align: center; font-size: 13px; }
.login-card input {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); border-radius: var(--r);
  padding: 12px 15px; color: var(--tx); font-size: 14.5px; outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
}
.login-card input:focus { border-color: var(--ac); box-shadow: 0 0 0 4px var(--ac-faint); background: rgba(0, 0, 0, 0.5); }

/* ── maskot ────────────────────────────────────────────── */
.spark { position: relative; display: grid; place-items: center; }
.spark svg { position: relative; z-index: 1; filter: drop-shadow(0 10px 34px rgba(255, 82, 54, 0.45)); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.orbit { position: absolute; border: 1px solid rgba(255, 82, 54, 0.16); border-radius: 50%; }
.orbit.o1 { width: 170%; height: 122%; transform: rotate(-14deg); animation: spin 16s linear infinite; }
.orbit.o2 { width: 210%; height: 152%; transform: rotate(9deg); border-color: rgba(255, 82, 54, 0.09); animation: spin 24s linear infinite reverse; }
@keyframes spin { to { transform: rotate(346deg); } }
.orbit i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ac); }

/* ── shell ─────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; padding: 24px 0 16px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(12, 10, 11, 0.6), rgba(6, 6, 8, 0.4));
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 22px 22px; }
.brand svg { filter: drop-shadow(0 4px 14px rgba(255, 82, 54, 0.4)); }
.brand b { font-size: 16px; letter-spacing: -0.02em; font-weight: 660; }
.brand small { display: block; font-size: 10.5px; color: var(--tx-3); letter-spacing: 0.04em; text-transform: uppercase; }
nav { flex: 1; overflow-y: auto; position: relative; padding: 4px 12px; }
nav::-webkit-scrollbar { display: none; }
nav::before { content: ""; position: absolute; left: 34px; top: 12px; bottom: 12px; width: 1px; background: linear-gradient(180deg, transparent, var(--line) 10%, var(--line) 90%, transparent); }
nav a {
  position: relative; display: flex; align-items: center; gap: 13px; padding: 5px 10px; margin: 2px 0;
  color: var(--tx-2); font-size: 14px; border-radius: var(--r); transition: color 0.2s var(--ease);
}
nav a .ic {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #0a0a0c; border: 1px solid var(--glass-border); font-size: 14.5px;
  transition: 0.32s var(--ease-spring); position: relative; z-index: 1; box-shadow: 0 0 0 5px var(--bg);
}
nav a:hover { color: var(--tx); }
nav a:hover .ic { border-color: rgba(255, 255, 255, 0.16); transform: scale(1.05); }
nav a.on { color: var(--ac-hot); font-weight: 640; }
nav a.on .ic {
  width: 44px; height: 44px; font-size: 18px; border-color: var(--ac);
  background: radial-gradient(circle at 40% 35%, rgba(255, 82, 54, 0.22), #0a0a0c 70%);
  box-shadow: 0 0 0 5px var(--bg), var(--glow);
}
nav a.on .ic::before { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 82, 54, 0.32), transparent 66%); filter: blur(6px); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.94); } 50% { opacity: 0.9; transform: scale(1.08); } }
.side-foot { padding: 14px 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.gw { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--tx-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-3); transition: 0.3s; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.err { background: var(--err); box-shadow: 0 0 10px var(--err); }

main { padding: 24px clamp(1rem, 2.6vw, 2.6rem) 72px; max-width: 1260px; width: 100%; margin: 0 auto; animation: pageIn 0.4s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── topbar ────────────────────────────────────────────── */
.topbar { display: flex; align-items: center; gap: 12px; margin: -4px 0 20px; }
.search-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 15px; font-size: 12.5px; cursor: pointer;
  background: var(--surface); backdrop-filter: blur(14px); border: 1px solid var(--glass-border);
  border-radius: 99px; transition: 0.2s var(--ease);
}
.search-pill:hover { border-color: var(--glass-border-hot); box-shadow: var(--glow-soft); }
.search-pill kbd { font-family: var(--mono); font-size: 10px; color: var(--tx-3); border: 1px solid var(--glass-border); border-radius: 5px; padding: 1.5px 5px; margin-left: 4px; }
.ver { font-size: 11px; color: var(--tx-3); font-family: var(--mono); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 680; color: #fff; background: linear-gradient(135deg, var(--ac-hot), #c8280e); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px rgba(255, 82, 54, 0.3), 0 6px 18px rgba(255, 82, 54, 0.3); }

/* ── hlavičky ──────────────────────────────────────────── */
.eyebrow { font-family: var(--mono); color: color-mix(in srgb, var(--ac) 72%, var(--tx-2)); font-size: 0.64rem; font-weight: 680; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.7rem; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h2 { font-size: clamp(2.1rem, 1.6rem + 1.3vw, 3rem); font-weight: 640; letter-spacing: -0.05em; line-height: 0.98; background: linear-gradient(180deg, #fff, #cfc6c1); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-h .sub { color: var(--tx-2); font-size: 0.85rem; line-height: 1.6; margin-top: 0.8rem; max-width: 44rem; }

/* ── hero ──────────────────────────────────────────────── */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(210px, 0.5fr) 1.5fr auto; gap: 26px;
  align-items: center; min-height: 15rem; padding: 30px 34px; overflow: clip;
  background: linear-gradient(135deg, rgba(30, 18, 15, 0.5), rgba(12, 12, 14, 0.4));
  backdrop-filter: blur(16px); border: 1px solid var(--glass-border); border-radius: var(--r-xl);
  box-shadow: var(--shadow);
}
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(24rem 20rem at 20% 50%, rgba(255, 82, 54, 0.1), transparent 60%); pointer-events: none; }
.hero-mid { position: relative; z-index: 1; }
.hero-mid h1 { font-size: 28px; font-weight: 660; letter-spacing: -0.04em; display: flex; align-items: baseline; gap: 12px; }
.hero-mid h1 small { color: var(--tx-3); font-size: 15px; font-weight: 500; font-family: var(--mono); }
.hero-svc { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.svc { display: flex; align-items: center; gap: 13px; font-size: 13.5px; }
.svc .ic { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-border-hot); display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 82, 54, 0.12), transparent 68%); color: var(--ac); font-size: 17px; box-shadow: var(--glow-soft); }
.svc b { display: block; font-size: 13.5px; font-weight: 620; }
.svc .act { color: var(--tx-2); font-size: 12px; cursor: pointer; transition: color 0.15s; }
.svc .act:hover { color: var(--ac-hot); }

/* ── ikonový rail (nastavenia taby) ────────────────────── */
.tabs { position: relative; display: flex; gap: 6px; align-items: flex-start; margin: 26px 0 22px; overflow-x: auto; padding: 20px 8px 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs::before { content: ""; position: absolute; top: 47px; left: 46px; right: 46px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 82, 54, 0.3) 5%, rgba(255, 82, 54, 0.18) 95%, transparent); }
.tab { position: relative; z-index: 1; display: flex; min-width: 100px; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 11px; cursor: pointer; color: var(--tx-2); font-size: 0.78rem; transition: 0.28s var(--ease); }
.tab:hover { color: var(--tx); transform: translateY(-3px); }
.tab .ic { position: relative; display: grid; width: 56px; height: 56px; place-items: center; border: 1px solid var(--glass-border); border-radius: 50%; background: #0a0a0c; font-size: 20px; box-shadow: 0 0 0 6px var(--bg), inset 0 1px rgba(255, 255, 255, 0.03); transition: 0.32s var(--ease-spring); }
.tab.on { color: var(--ac-hot); font-weight: 640; }
.tab.on .ic { border-color: var(--ac); background: radial-gradient(circle, rgba(255, 82, 54, 0.18), #0a0a0c 68%); box-shadow: 0 0 0 6px var(--bg), var(--glow); transform: scale(1.12); }
.tab.on .ic::before { content: ""; position: absolute; inset: -16px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 82, 54, 0.3), transparent 66%); filter: blur(6px); animation: breathe 3s ease-in-out infinite; }

/* ── karty a riadky ────────────────────────────────────── */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card {
  background: var(--surface); backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--glass-border); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease), transform 0.28s var(--ease);
}
.card:hover { border-color: rgba(255, 255, 255, 0.12); }
.card.pad { padding: 20px 24px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 17px 22px 13px; font-size: 16px; font-weight: 640; letter-spacing: -0.02em; }
.card-h .ic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-border-hot); background: radial-gradient(circle, rgba(255, 82, 54, 0.1), transparent 68%); display: grid; place-items: center; font-size: 15px; color: var(--ac); }
.card-h .spacer { flex: 1; }
.rowi { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; transition: background 0.15s var(--ease); }
.rowi:hover { background: rgba(255, 255, 255, 0.025); }
.rowi .ic { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--glass-border); background: #0a0a0c; display: grid; place-items: center; font-size: 15px; }
.rowi .t { flex: 1; min-width: 0; }
.rowi .t b { display: block; font-weight: 620; font-size: 13.8px; }
.rowi .t small { display: block; margin-top: 3px; font-size: 12.3px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowi .act { display: flex; align-items: center; gap: 8px; flex: none; }
.stat-card {
  position: relative; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 18px 21px; overflow: hidden; box-shadow: var(--shadow); transition: 0.28s var(--ease);
}
.stat-card::after { content: ""; position: absolute; right: -30px; top: -40px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(255, 82, 54, 0.08), transparent 65%); pointer-events: none; }
.stat-card:hover { border-color: var(--glass-border-hot); transform: translateY(-2px); }
.stat-card h3 { font-family: var(--mono); font-size: 0.62rem; color: var(--tx-2); font-weight: 680; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 9px; }
.stat { font-size: 27px; font-weight: 660; letter-spacing: -0.045em; }
.stat small { font-size: 12.5px; color: var(--tx-3); font-weight: 400; letter-spacing: 0; }

/* ── pills / toggle / buttony ──────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 3.5px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 680; background: rgba(255, 255, 255, 0.05); color: var(--tx-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.pill.ok { background: rgba(53, 214, 154, 0.12); color: var(--ok); }
.pill.warn { background: rgba(245, 181, 68, 0.12); color: var(--warn); }
.pill.err { background: rgba(245, 107, 92, 0.12); color: var(--err); }
.pill.ac { background: var(--ac-soft); color: var(--ac-hot); }
.pill.plain { background: rgba(255, 255, 255, 0.05); }
.pill.plain::before { display: none; }
.tgl { width: 42px; height: 23px; border-radius: 99px; background: rgba(255, 255, 255, 0.13); position: relative; cursor: pointer; transition: 0.25s var(--ease-spring); flex: none; border: none; }
.tgl::after { content: ""; position: absolute; top: 2.5px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfc8c3; transition: 0.25s var(--ease-spring); }
.tgl.on { background: linear-gradient(135deg, var(--ac), #d8300f); box-shadow: 0 0 16px rgba(255, 82, 54, 0.5); }
.tgl.on::after { left: 21px; background: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: rgba(255, 255, 255, 0.055); color: var(--tx); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 8.5px 15px; font-size: 13px; font-weight: 520; line-height: 1; cursor: pointer; font-family: inherit; transition: 0.18s var(--ease); backdrop-filter: blur(10px); white-space: nowrap; }
.btn svg { flex: none; }
.btn:hover { border-color: var(--glass-border-hot); color: var(--ac-hot); background: rgba(255, 82, 54, 0.09); }
.btn:active { transform: translateY(0.5px); }
.btn.primary { background: var(--ac); border: 1px solid var(--ac); color: #fff; font-weight: 620; box-shadow: 0 2px 12px rgba(255, 82, 54, 0.22); }
.btn.primary:hover { background: var(--ac-hot); border-color: var(--ac-hot); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 18px rgba(255, 82, 54, 0.32); }
.btn.danger { color: var(--tx); }
.btn.danger:hover { border-color: rgba(245, 107, 92, 0.6); color: var(--err); background: rgba(245, 107, 92, 0.1); }
.btn.ghost { background: transparent; border-color: var(--glass-border); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.04); }
.btn.sm { padding: 5.5px 11px; font-size: 12.3px; border-radius: var(--r-sm); gap: 5px; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
input, select, textarea { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 9.5px 13px; color: var(--tx); font-size: 13.8px; outline: none; font-family: inherit; transition: border-color 0.16s, box-shadow 0.16s; }
input:focus, select:focus, textarea:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-faint); }
textarea.code { font-family: var(--mono); font-size: 12.3px; line-height: 1.6; white-space: pre; }

/* ── chat ──────────────────────────────────────────────── */
.msgs { display: flex; flex-direction: column; gap: 10px; max-height: 58vh; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: var(--r-lg); font-size: 13.8px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: linear-gradient(135deg, rgba(255, 82, 54, 0.2), rgba(255, 82, 54, 0.08)); border: 1px solid var(--glass-border-hot); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-bottom-left-radius: 5px; }
.msg small { display: block; margin-top: 6px; font-size: 10.5px; opacity: 0.6; }

/* ── kanban ────────────────────────────────────────────── */
.kb { display: grid; grid-auto-flow: column; grid-auto-columns: 270px; gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.kb-col { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.kb-col h4 { font-family: var(--mono); font-size: 0.64rem; color: var(--tx-2); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 11px; display: flex; justify-content: space-between; }
.kb-card { background: var(--surface); border: 1px solid var(--glass-border); border-radius: var(--r); padding: 11px 13px; margin-bottom: 9px; font-size: 13.3px; transition: 0.28s var(--ease); }
.kb-card:hover { border-color: var(--ac); box-shadow: var(--glow-soft); transform: translateY(-2px); }
.kb-card small { display: block; margin-top: 5px; }

/* ── modal / toast ─────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: linear-gradient(160deg, rgba(26, 22, 21, 0.85), rgba(14, 14, 16, 0.9)); backdrop-filter: blur(28px) saturate(1.3); border: 1px solid var(--glass-border); border-radius: var(--r-xl); padding: 28px; width: min(580px, 93vw); max-height: 86vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-lg); animation: modalIn 0.28s var(--ease-spring); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(10px); } to { opacity: 1; transform: none; } }
.modal h3 { font-size: 18px; font-weight: 640; letter-spacing: -0.02em; }
.modal label { font-size: 12px; color: var(--tx-2); margin-bottom: -7px; font-weight: 620; }
.toast { position: fixed; bottom: 26px; right: 26px; background: linear-gradient(135deg, rgba(30, 24, 22, 0.9), rgba(16, 16, 18, 0.92)); backdrop-filter: blur(18px); border: 1px solid var(--ac); color: var(--tx); padding: 13px 19px; border-radius: var(--r); font-size: 13.5px; z-index: 120; box-shadow: var(--shadow-lg), var(--glow-soft); animation: toastIn 0.32s var(--ease-spring); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toast.err { border-color: var(--err); }
.err { color: var(--err); font-size: 13px; text-align: center; }
.qr { background: #fff; padding: 14px; border-radius: var(--r); display: inline-block; margin: 10px auto; box-shadow: 0 0 40px rgba(255, 82, 54, 0.2); }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mono { font-family: var(--mono); font-size: 12.3px; }
.empty { color: var(--tx-3); text-align: center; padding: 40px 16px; font-size: 13.5px; line-height: 1.7; }
.bar { height: 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 9px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ac), var(--ac-bright)); border-radius: 6px; box-shadow: 0 0 10px rgba(255, 82, 54, 0.6); }
table { width: 100%; border-collapse: collapse; font-size: 13.3px; }
th { text-align: left; font-family: var(--mono); color: var(--tx-3); font-weight: 680; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em; padding: 10px 22px; border-bottom: 1px solid var(--line); }
td { padding: 11px 22px; border-top: 1px solid var(--line); vertical-align: middle; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 66px 1fr; }
  .brand b, .brand small, nav a span:last-child, .gw span:last-child, #logout { display: none; }
  nav::before { left: 32px; }
  main { padding: 18px 14px; }
  .hero { grid-template-columns: 1fr; }
}
