:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --panel: #111111;
  --panel-2: #161616;
  --line: #262626;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --dim: #6d6d6d;
  --white: #ffffff;
  --danger: #ff5c5c;
  --warn: #f2c14e;
  --ok: #78d99a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { display: flex; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sidebar { width: 248px; min-height: 100vh; background: #050505; border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 0 10px 24px; }
.brand-mark { font-weight: 800; letter-spacing: -.04em; font-size: 24px; }
.brand-sub { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .18em; margin-top: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 3px 0; color: var(--muted); text-decoration: none; border-radius: 10px; font-size: 14px; transition: .15s ease; }
.nav a:hover { color: var(--white); background: #111; }
.nav a.active { color: #050505; background: var(--white); font-weight: 650; }
.nav .icon { width: 20px; text-align: center; font-size: 15px; }
.main { flex: 1; min-width: 0; }
.topbar { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(7,7,7,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 17px; font-weight: 650; margin: 0; letter-spacing: -.01em; }
.user { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #222; object-fit: cover; border: 1px solid #333; }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; border: 1px solid #333; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.content { padding: 34px; max-width: 1500px; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2, .card h3 { margin: 0 0 6px; letter-spacing: -.02em; }
.card h2 { font-size: 20px; }
.card h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.stat-value { font-size: 34px; font-weight: 750; letter-spacing: -.05em; margin-top: 10px; }
.stat-label { color: var(--muted); text-transform: uppercase; letter-spacing: .13em; font-size: 11px; }
.btn { border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 9px; padding: 9px 14px; font-size: 13px; font-weight: 600; transition: .15s ease; }
.btn:hover { background: #202020; border-color: #3a3a3a; }
.btn-primary { background: var(--white); color: #050505; border-color: var(--white); }
.btn-primary:hover { background: #d8d8d8; border-color: #d8d8d8; }
.btn-danger { color: #ffb3b3; border-color: #5a2626; background: #1a0c0c; }
.btn-danger:hover { background: #2a1010; }
.btn-small { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input, select, textarea { width: 100%; background: #0a0a0a; color: var(--text); border: 1px solid #2d2d2d; border-radius: 9px; padding: 10px 12px; outline: none; transition: .15s ease; }
input:focus, select:focus, textarea:focus { border-color: #6b6b6b; }
textarea { min-height: 100px; resize: vertical; }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; letter-spacing: .02em; }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 0 0 auto; }
.row .grow { flex: 1 1 auto; }
.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-bottom: 1px solid #1a1a1a; font-size: 13px; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #0e0e0e; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: #1b1b1b; color: var(--muted); font-size: 11px; }
.pill.ok { color: var(--ok); background: #0f1f16; }
.pill.warn { color: var(--warn); background: #211c0d; }
.pill.bad { color: var(--danger); background: #230f0f; }
.toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.section-title { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .15em; margin: 26px 0 12px; }
.details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #0c0c0c; }
.details summary { padding: 15px 17px; cursor: pointer; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.details-body { border-top: 1px solid var(--line); padding: 18px; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: 420px; background: #f5f5f5; color: #080808; padding: 13px 17px; border-radius: 11px; font-size: 13px; font-weight: 600; box-shadow: 0 14px 40px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); transition: .2s ease; z-index: 100; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #2a1010; color: #ffb3b3; border: 1px solid #5a2626; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: none; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal.show { display: flex; }
.modal-box { background: #101010; border: 1px solid #333; border-radius: 16px; width: min(760px, 100%); max-height: 88vh; overflow: auto; padding: 26px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.notice { background: #131313; border: 1px solid #2c2c2c; border-left: 3px solid #777; border-radius: 9px; padding: 13px 15px; font-size: 13px; color: #c9c9c9; }
.notice.danger { border-left-color: var(--danger); }
.notice.warn { border-left-color: var(--warn); }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 13px; }
.check input { width: 16px; height: 16px; }
.preview { background: #0a0a0a; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.preview-embed { border-left: 4px solid #fff; background: #151515; border-radius: 6px; padding: 16px 18px; max-width: 560px; }
.preview-embed img { max-width: 100%; border-radius: 6px; margin-top: 12px; }
.code-box { background: #080808; border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, monospace; font-size: 12px; }
.list-item { padding: 12px 0; border-bottom: 1px solid #1d1d1d; }
.list-item:last-child { border-bottom: 0; }
.setup-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: #0c0c0c; }
.setup-num { width: 30px; height: 30px; border-radius: 50%; background: #1e1e1e; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.mobile-menu { display: none; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .split { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  body { display: block; }
  .sidebar { position: fixed; z-index: 40; left: -260px; transition: .2s ease; }
  .sidebar.open { left: 0; }
  .mobile-menu { display: inline-flex; }
  .content { padding: 20px; }
  .topbar { padding: 0 20px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}
