/* Velora Server Control – helles, blaues Design mit dezenten Animationen */
:root {
  --bg: #f3f6fb;
  --bg2: #eaf0fa;
  --card: #ffffff;
  --line: #e3e9f3;
  --line2: #d3dcea;
  --text: #0f1b2d;
  --muted: #64748b;
  --soft: #94a3b8;
  --blue: #2563eb;
  --blue2: #1d4ed8;
  --blue-l: #e8f0ff;
  --blue-ll: #f3f7ff;
  --green: #16a34a;
  --green-l: #e7f8ee;
  --red: #dc2626;
  --red-l: #fdecec;
  --amber: #d97706;
  --amber-l: #fff4e0;
  --violet: #7c3aed;
  --violet-l: #f1eafe;
  --shadow-s: 0 1px 2px rgba(15, 27, 45, .05), 0 1px 3px rgba(15, 27, 45, .06);
  --shadow: 0 4px 18px rgba(30, 64, 140, .08), 0 1px 3px rgba(15, 27, 45, .05);
  --shadow-l: 0 24px 60px rgba(30, 64, 140, .18);
  --r: 14px;
  --r-s: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
.hidden { display: none !important; }
.noscript { padding: 24px; }
::selection { background: #c7dbff; }

/* ---------- Laden ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--muted); }
.boot-logo { display: flex; gap: 6px; }
.boot-logo span { width: 12px; height: 12px; border-radius: 4px; background: var(--blue); animation: bounce 1s var(--ease) infinite; }
.boot-logo span:nth-child(2) { animation-delay: .12s; opacity: .75; }
.boot-logo span:nth-child(3) { animation-delay: .24s; opacity: .5; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }

/* ---------- Anmeldung ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, #dfe9ff 0, transparent 60%), radial-gradient(900px 500px at 110% 110%, #e3edff 0, transparent 55%), var(--bg); }
.auth .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; pointer-events: none; }
.auth .blob.b1 { width: 420px; height: 420px; background: #bcd3ff; top: -120px; left: -80px; }
.auth .blob.b2 { width: 360px; height: 360px; background: #cfe0ff; bottom: -120px; right: -60px; animation-delay: -6s; }
.auth .blob.b3 { width: 220px; height: 220px; background: #dbe7ff; top: 40%; left: 60%; animation-delay: -10s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
.auth-card { position: relative; width: 100%; max-width: 420px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-l); padding: 34px 32px 28px; animation: cardIn .7s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.logo { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #1d4ed8); display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35); flex: none; }
.logo svg { width: 22px; height: 22px; }
.auth-brand b { display: block; font-size: 17px; }
.auth-brand small { color: var(--muted); }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card p.lead { color: var(--muted); margin: 0 0 20px; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--soft); font-size: 12px; }
.qr { display: grid; place-items: center; padding: 14px; border: 1px dashed var(--line2); border-radius: var(--r-s); margin: 10px 0 14px; background: #fff; }
.qr img { width: 200px; height: 200px; animation: fadeIn .6s ease both; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .08em; word-break: break-all; background: var(--blue-ll); padding: 8px 10px; border-radius: 8px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, Consolas, monospace; margin: 12px 0; }
.codes span { background: var(--blue-ll); border: 1px solid var(--line); border-radius: 8px; padding: 6px; text-align: center; animation: popIn .4s var(--ease) both; }
.otp { display: flex; gap: 8px; justify-content: space-between; margin: 6px 0 4px; }
.otp input { width: 100%; max-width: 52px; height: 56px; text-align: center; font-size: 22px; font-weight: 600; border-radius: 12px; }

/* ---------- Formular ---------- */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; }
label.f > small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid var(--line2); background: #fff; border-radius: var(--r-s); padding: 10px 12px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .13); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--blue); }
.check { display: flex; align-items: center; gap: 8px; margin: 4px 0; cursor: pointer; }
.err { color: var(--red); background: var(--red-l); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; font-size: 13px; animation: shake .4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: #fff; color: var(--text);
  border-radius: var(--r-s); padding: 9px 14px; font-weight: 600; cursor: pointer; position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn:hover { border-color: #b8c6dc; box-shadow: var(--shadow-s); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: linear-gradient(180deg, #3b82f6, var(--blue)); border-color: var(--blue2); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.btn.primary:hover { background: linear-gradient(180deg, #2f76f0, var(--blue2)); box-shadow: 0 8px 22px rgba(37, 99, 235, .32); }
.btn.danger { background: var(--red); border-color: #b91c1c; color: #fff; }
.btn.danger:hover { background: #c81e1e; }
.btn.warn { background: var(--amber-l); border-color: #f3d19c; color: #92400e; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--blue-ll); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; padding: 12px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .55); animation: ripple .6s linear; pointer-events: none; }
.btn:not(.primary):not(.danger) .ripple { background: rgba(37, 99, 235, .18); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn:not(.primary):not(.danger).loading::after { border-color: rgba(37, 99, 235, .25); border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Grundgerüst ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; z-index: 30;
  transition: transform .35s var(--ease); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.side-brand b { display: block; font-size: 16px; }
.side-brand small { color: var(--muted); font-size: 12px; }
.side nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; position: relative; }
.nav-group { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; color: #334155; font-weight: 500; position: relative;
  transition: background .2s, color .2s, transform .2s var(--ease); animation: slideIn .45s var(--ease) both; }
.nav-item svg { width: 18px; height: 18px; color: var(--soft); transition: color .2s, transform .3s var(--ease); flex: none; }
.nav-item:hover { background: var(--blue-ll); color: var(--blue2); transform: translateX(2px); }
.nav-item:hover svg { color: var(--blue); transform: scale(1.1); }
.nav-item.active { background: var(--blue-l); color: var(--blue2); font-weight: 600; }
.nav-item.active svg { color: var(--blue); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--blue); animation: grow .35s var(--ease); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.nav-item .count { margin-left: auto; background: var(--blue); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 7px; animation: popIn .4s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.side-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #93c5fd, #2563eb); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(243, 246, 251, .85); backdrop-filter: blur(10px); border-bottom: 1px solid transparent;
  display: flex; align-items: center; gap: 12px; padding: 14px 28px; transition: border-color .2s, box-shadow .2s; }
.top.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(15, 27, 45, .04); }
.top h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top select { width: auto; padding: 7px 10px; }
.menu-btn { display: none; }
.badge-demo { background: var(--amber-l); color: #92400e; border: 1px solid #f3d19c; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.badge-env { background: var(--violet-l); color: var(--violet); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.content { padding: 8px 28px 40px; }
.view { animation: viewIn .5s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

/* ---------- Karten ---------- */
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-s); padding: 18px 20px; min-width: 0;
  animation: rise .55s var(--ease) both; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.card.hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d6e2f5; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { font-size: 15px; flex: 1; }
.card-h .sub { color: var(--muted); font-size: 12px; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; transition: transform .4s var(--ease); }
.card:hover .stat .ic { transform: rotate(-6deg) scale(1.06); }
.stat .ic svg { width: 22px; height: 22px; }
.ic.blue { background: var(--blue-l); color: var(--blue); }
.ic.green { background: var(--green-l); color: var(--green); }
.ic.red { background: var(--red-l); color: var(--red); }
.ic.amber { background: var(--amber-l); color: var(--amber); }
.ic.violet { background: var(--violet-l); color: var(--violet); }
.stat small { color: var(--muted); display: block; font-size: 12px; font-weight: 600; }
.stat b { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.stat em { font-style: normal; color: var(--muted); font-size: 12px; display: block; }

/* Status */
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--soft); position: relative; flex: none; }
.dot.on { background: var(--green); }
.dot.on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); animation: pulse 1.8s ease-out infinite; }
.dot.off { background: var(--red); }
.dot.warn { background: var(--amber); }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 2px 10px; font-size: 12px; font-weight: 600; background: #eef2f7; color: #475569; white-space: nowrap; }
.pill.green { background: var(--green-l); color: #15803d; }
.pill.red { background: var(--red-l); color: #b91c1c; }
.pill.amber { background: var(--amber-l); color: #b45309; }
.pill.blue { background: var(--blue-l); color: var(--blue2); }
.pill.violet { background: var(--violet-l); color: var(--violet); }
.pill.run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }

/* ---------- Tabellen ---------- */
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tools .search { flex: 1; min-width: 200px; position: relative; }
.tools .search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--soft); }
.tools .search input { padding-left: 36px; }
.tools select { width: auto; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-s); }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fafcff; }
td { padding: 11px 12px; border-bottom: 1px solid #eef2f8; vertical-align: middle; }
tbody tr { animation: rowIn .4s var(--ease) both; transition: background .15s; }
tbody tr[data-href] { cursor: pointer; }
tbody tr[data-href]:hover { background: var(--blue-ll); }
tbody tr:last-child td { border-bottom: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.empty svg { width: 40px; height: 40px; color: #c5d3ea; display: block; margin: 0 auto 8px; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--muted); font-size: 13px; }

.skel { background: linear-gradient(90deg, #edf2f9 25%, #f7f9fd 37%, #edf2f9 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; height: 14px; margin: 10px 0; }
.skel.h { height: 90px; }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 0; }
.kv div { padding: 8px 0; border-bottom: 1px dashed #edf1f7; min-width: 0; overflow-wrap: anywhere; }
.kv div:nth-child(odd) { color: var(--muted); font-size: 13px; }
.kv div:nth-last-child(-n+2) { border-bottom: 0; }

.hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.hero .big { width: 58px; height: 58px; border-radius: 16px; font-size: 22px; }
.hero h2 { font-size: 22px; }
.hero .meta { color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.hero .actions { margin-left: auto; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; position: relative; }
.tab { padding: 10px 14px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; white-space: nowrap; position: relative; transition: color .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); }
.tab.active::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); animation: tabLine .35s var(--ease); }
@keyframes tabLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.note { background: var(--blue-ll); border: 1px solid #d9e5fb; color: #1e3a8a; border-radius: var(--r-s); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; display: flex; gap: 10px; }
.note.warn { background: var(--amber-l); border-color: #f3d19c; color: #7c2d12; }
.note.red { background: var(--red-l); border-color: #f6c9c9; color: #7f1d1d; }
.note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Diagramm */
.chart { width: 100%; height: 190px; display: block; }
.chart .area { fill: url(#chartFill); opacity: 0; animation: fadeIn .8s .5s ease forwards; }
.chart .line { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.6s var(--ease) forwards; }
.chart .gl { stroke: #edf1f8; }
.chart .mline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; animation: fadeIn .6s ease forwards; }
.badbar { fill: var(--red); opacity: .13; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.actions.seg { margin-bottom: 10px; }
.chart text { fill: var(--soft); font-size: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; animation: rowIn .4s var(--ease) both; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-l); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline small { color: var(--muted); display: block; }

.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.perm-grid fieldset { border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; margin: 0; }
.perm-grid legend { font-weight: 700; font-size: 13px; padding: 0 6px; }

/* ---------- Dialog ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 27, 45, .38); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; z-index: 100; animation: fadeIn .25s ease both; }
.overlay.out { animation: fadeOut .2s ease forwards; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 18px; box-shadow: var(--shadow-l); padding: 22px 24px; animation: modalIn .4s var(--ease) both; }
.modal.wide { max-width: 760px; }
.overlay.out .modal { animation: modalOut .2s ease forwards; }
.modal h3 { font-size: 18px; margin-bottom: 4px; }
.modal .lead { color: var(--muted); margin: 0 0 16px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

/* ---------- Meldungen ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; width: min(380px, calc(100vw - 32px)); }
.toast { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px;
  animation: toastIn .45s var(--ease) both; position: relative; overflow: hidden; }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast.out { animation: toastOut .3s ease forwards; }
.toast b { display: block; }
.toast p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 3px; background: currentColor; opacity: .18; animation: bar linear forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@keyframes bar { from { width: 100%; } to { width: 0; } }

.backdrop { display: none; }
.still .card, .still tbody tr, .still .timeline li { animation: none; }
.neg { color: var(--red); }
pre.mono { margin: 0; white-space: pre-wrap; word-break: break-word; background: var(--blue-ll); border-radius: 8px; padding: 8px 10px; }
.pill svg { width: 12px; height: 12px; }
.hero .ic.big { display: grid; place-items: center; }
.hero .ic.big svg { width: 26px; height: 26px; }
a.card { color: inherit; display: block; }
.secret + .foot { margin-top: 14px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-105%); box-shadow: var(--shadow-l); }
  .shell.open .side { transform: none; }
  .shell.open .backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 27, 45, .3); z-index: 25; animation: fadeIn .25s; }
  .menu-btn { display: inline-flex; }
  .top { padding: 12px 16px; }
  .content { padding: 8px 16px 32px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .hero .actions { margin-left: 0; }
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .auth-card { padding: 26px 20px; } .top h1 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
