:root { --ink: #14121f; --muted: #6b6880; --line: #e6e3f0; --bg: #f7f6fb; --card: #ffffff; --purple: #6d4aff; --purple-d: #5636e0; --ok: #12805c; --bad: #c4271f; --wait: #9a6b00; }
@media (prefers-color-scheme: dark) { :root { --ink: #f1effa; --muted: #a29fb8; --line: #2b2940; --bg: #12111c; --card: #1b1a29; --purple: #8c70ff; --purple-d: #a28cff; --ok: #3ccf9a; --bad: #ff7a72; --wait: #e8b84a; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--purple-d); }
main { width: 100%; max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
main.wide { max-width: 1040px; }
h1 { font-size: 28px; line-height: 1.2; margin: 8px 0 12px; } h2 { font-size: 19px; margin: 0 0 8px; } h3 { font-size: 16px; margin: 18px 0 6px; }
.doc h2 { margin-top: 28px; } .doc ul, .doc ol { padding-inline-start: 22px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .lead { font-size: 18px; color: var(--muted); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #6d4aff, #a24bd8); color: #fff; display: grid; place-items: center; font-weight: 800; }
.links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .links a { color: var(--ink); text-decoration: none; font-size: 14.5px; } .links a.btn { color: #fff; }
.tabs { display: flex; gap: 4px; padding: 0 12px; background: var(--card); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 12px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--purple); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 14px 0; }
.narrow { max-width: 520px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; } .grid .card { margin: 0; } .grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hero { padding: 36px 0 24px; } .hero h1 { font-size: 34px; max-width: 720px; }
.btn { display: inline-block; border: 0; border-radius: 10px; background: var(--purple); color: #fff; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--purple-d); } .btn.small { padding: 7px 12px; font-size: 14px; } .btn[disabled] { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); } .btn.ghost:hover { background: var(--bg); }
.btn.danger { background: var(--bad); color: #fff; } .btn.ghost.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
label { display: block; font-weight: 600; font-size: 14.5px; margin: 12px 0; }
label.check { font-weight: 500; display: flex; gap: 8px; align-items: center; }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; }
input[type=checkbox] { width: auto; margin: 0; } input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; } .row > label { flex: 1 1 160px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: middle; background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge.ok { color: var(--ok); border-color: var(--ok); } .badge.bad { color: var(--bad); border-color: var(--bad); } .badge.wait { color: var(--wait); border-color: var(--wait); }
.tag { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--purple); color: #fff; vertical-align: middle; }
.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--card); }
.flash.ok { border-color: var(--ok); } .flash.error { border-color: var(--bad); color: var(--bad); } .error { color: var(--bad); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; } th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } th { color: var(--muted); font-weight: 600; }
code { background: var(--bg); padding: 1px 6px; border-radius: 6px; font-size: 13.5px; word-break: break-word; }
.profile { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; } .profile > div { flex: 1 1 260px; } .profile img, .avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; display: grid; place-items: center; font-weight: 800; } .avatar.wa { background: #25d366; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 10px 0; } .bar span { display: block; height: 100%; width: 0; background: var(--purple); transition: width .2s; }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; } .tile { color: var(--ink); text-decoration: none; font-size: 12.5px; } .tile img, .tile span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--bg); }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; } .split .card { margin: 0; } @media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.contacts { list-style: none; padding: 0; margin: 0; } .contacts a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; } .contacts a.on, .contacts a:hover { background: var(--bg); } .contacts small { display: block; color: var(--muted); }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px 0 12px; }
.bubble { max-width: 82%; padding: 8px 12px; border-radius: 16px; background: var(--bg); white-space: pre-wrap; word-break: break-word; } .bubble small { display: block; color: var(--muted); font-size: 11.5px; } .bubble.out { align-self: flex-end; background: var(--purple); color: #fff; } .bubble.out small { color: rgba(255,255,255,.8); }
form.tpl { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
footer { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 18px 16px; border-top: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--muted); } footer a { color: var(--muted); }
