:root {
  color-scheme: dark;
  --bg: #101318;
  --panel: #181d24;
  --panel2: #202731;
  --text: #eef2f7;
  --muted: #9aa7b5;
  --accent: #3b82f6;
  --danger: #ef4444;
  --ok: #22c55e;
  --border: #2e3743;
}
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, sans-serif; background:var(--bg); color:var(--text); }
a { color:#79adff; }
.wrap { max-width:1100px; margin:0 auto; padding:20px; }
.topbar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.brand { font-size:1.25rem; font-weight:700; }
nav { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.panel { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:18px; margin-bottom:18px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; }
label { display:block; margin:0 0 6px; font-weight:600; }
input, textarea, select { width:100%; background:#0f141b; color:var(--text); border:1px solid var(--border); border-radius:8px; padding:10px 12px; }
textarea { min-height:150px; resize:vertical; }
button, .button { display:inline-block; border:0; border-radius:8px; padding:10px 14px; background:var(--accent); color:white; cursor:pointer; text-decoration:none; font-weight:600; }
.button.secondary { background:var(--panel2); }
button.danger { background:var(--danger); }
.muted { color:var(--muted); }
.flash { padding:12px 14px; border-radius:8px; margin-bottom:16px; background:#14351f; border:1px solid #266f3b; }
.flash.error { background:#3a1717; border-color:#7f2c2c; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:11px 8px; border-bottom:1px solid var(--border); vertical-align:top; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; background:var(--panel2); font-size:.85rem; }
.ticket-image { max-width:100%; max-height:620px; border-radius:10px; border:1px solid var(--border); }
.login { max-width:420px; margin:10vh auto 0; }
.actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
@media (max-width:700px) { table, thead, tbody, th, td, tr { display:block; } thead { display:none; } tr { padding:10px 0; border-bottom:1px solid var(--border); } td { border:0; padding:4px 0; } }
