:root{
  --bg:#0b0f16; --panel:#111827; --card:#0f172a;
  --text:#e5e7eb; --muted:#a1a1aa; --line:rgba(255,255,255,.12);
  --accent:#60a5fa; --ok:#34d399; --warn:#fbbf24; --err:#fb7185;
  --shadow:0 12px 30px rgba(0,0,0,.35); --r:18px; --font:16px; --lineh:1.6;
}
:root[data-font="l"]{ --font:18px; --lineh:1.7; }
:root[data-font="xl"]{ --font:20px; --lineh:1.75; }
:root[data-calm="1"] * { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
*{ box-sizing:border-box; } html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  font-size: var(--font); line-height: var(--lineh);
  background:
    radial-gradient(1000px 700px at 10% 0%, rgba(96,165,250,.12), transparent 60%),
    radial-gradient(800px 600px at 90% 10%, rgba(52,211,153,.10), transparent 55%),
    var(--bg);
  color: var(--text);
}
a{ color:inherit; text-underline-offset:3px; }
a:hover{ color: var(--accent); }
.wrap{ max-width:1100px; margin:0 auto; padding:0 18px; }
.skip{ position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip:focus{
  left:18px; top:18px; width:auto; height:auto;
  padding:10px 12px; background:var(--panel);
  border:1px solid var(--line); border-radius:10px; z-index:999;
}
.topbar{
  position: sticky; top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,22,.7);
  border-bottom:1px solid var(--line);
  z-index:10;
}
.topbar__inner{ display:flex; gap:18px; align-items:center; justify-content:space-between; padding:14px 0; }
.brand{ display:flex; gap:12px; align-items:center; }
.brand__logo{
  width:38px; height:38px; display:grid; place-items:center;
  border-radius:14px; border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  color: var(--accent); font-weight:800;
}
.brand__name{ font-weight:900; letter-spacing:.2px; }
.brand__tag{ color: var(--muted); font-size:.9em; }
.nav{ display:flex; flex-wrap:wrap; gap:10px; }
.nav__link{ padding:8px 10px; border-radius:12px; border:1px solid transparent; text-decoration:none; }
.nav__link:hover{ border-color: var(--line); background: rgba(255,255,255,.03); }
.nav__link.danger:hover{ border-color: rgba(251,113,133,.35); color:#fecdd3; }
.main{ display:grid; grid-template-columns: 1.8fr 1fr; gap:18px; padding:18px 0 26px; }
@media (max-width: 900px){ .main{ grid-template-columns:1fr; } }
.panel{
  border-radius: var(--r);
  border:1px solid var(--line);
  background: rgba(17,24,39,.75);
  box-shadow: var(--shadow);
  padding:18px;
}
.side{ display:flex; flex-direction:column; gap:14px; }
.card{
  border-radius: var(--r);
  border:1px solid var(--line);
  background: rgba(15,23,42,.75);
  padding:14px;
}
h1,h2{ margin:0 0 10px; letter-spacing:.2px; }
h1{ font-size:1.55em; }
h2{ font-size:1.1em; }
.muted{ color: var(--muted); }
.small{ font-size:.92em; }
hr.sep{ border:0; border-top:1px solid var(--line); margin:16px 0; }
.flash{
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  margin:0 0 14px;
  background: rgba(255,255,255,.03);
}
.flash.ok{ border-color: rgba(52,211,153,.35); color:#d1fae5; }
.flash.warn{ border-color: rgba(251,191,36,.35); color:#fef3c7; }
.flash.err{ border-color: rgba(251,113,133,.35); color:#ffe4e6; }
.row{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
label{ font-weight:700; }
input[type="text"], input[type="password"], textarea, select{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline:none;
}
textarea{ min-height:130px; resize:vertical; }
input:focus, textarea:focus, select:focus{
  border-color: rgba(96,165,250,.55);
  box-shadow: 0 0 0 3px rgba(96,165,250,.15);
}
.check{ font-weight:600; display:flex; gap:10px; align-items:center; }
.check input{ width:18px; height:18px; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  text-decoration:none;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{ border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.10); }
.btn.primary{ border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.14); }
.btn.danger{ border-color: rgba(251,113,133,.40); background: rgba(251,113,133,.10); }
.grid2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 650px){ .grid2{ grid-template-columns:1fr; } }
.bullets{ margin:0; padding-left:18px; }
.bullets li{ margin:6px 0; }
.table{
  width:100%;
  border-collapse: separate;
  border-spacing:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
}
.table th, .table td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align: top;
}
.table th{
  font-size:.92em;
  color: var(--muted);
  background: rgba(255,255,255,.03);
}
.table tr:last-child td{ border-bottom:0; }
.code-pill{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono";
  font-weight:900;
  letter-spacing:.6px;
}
.post{
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
  background: rgba(255,255,255,.02);
  margin:10px 0;
}
.post__meta{
  display:flex; flex-wrap:wrap; gap:10px; align-items:baseline;
  color: var(--muted);
  font-size:.92em;
  margin-bottom:8px;
}
.post__body{ white-space: pre-wrap; word-break: break-word; }
.files{ margin-top:10px; display:flex; flex-direction:column; gap:6px; }
.file{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:8px 10px; border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.footer{ padding:8px 0 26px; }
