:root {
  --bg: #0f1220; --card: #181c2e; --line: #2a3050; --text: #e7e9f3;
  --muted: #9aa0bd; --accent: #6c8cff; --ok: #3ecf8e; --bad: #ff6b6b; --pill: #232842;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; background: #12152400; border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 700; color: var(--text); }
.topbar nav a { margin-left: 16px; color: var(--muted); }

.container { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 380px; margin: 60px auto; }
h1, h2 { margin-top: 0; }
h2 { font-size: 18px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.platform { border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.platform-head { display: flex; justify-content: space-between; align-items: center; }
.caveat { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }

.btn, button { background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 14px; font-size: 14px; cursor: pointer; }
.btn:hover, button:hover { filter: brightness(1.08); text-decoration: none; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn.danger, button.danger { background: #3a2740; color: var(--bad); }

.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--pill);
  font-size: 12px; color: var(--muted); }
.pill.muted { color: var(--muted); }
.status-published { background: #123a2c; color: var(--ok); }
.status-failed { background: #3a1f24; color: var(--bad); }
.status-partial { background: #3a3320; color: #e7c34a; }
.status-scheduled { background: #1f2b3a; color: #6cc0ff; }
.status-publishing { background: #2a2340; color: #b79bff; }
.status-draft { background: var(--pill); }

table.list { width: 100%; border-collapse: collapse; margin-top: 12px; }
.list th, .list td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
.list th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 12.5px; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.error { color: var(--bad); }
.mono { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-word; }

form.compose label, .card.narrow label { display: block; margin-bottom: 12px; }
textarea, input[type=text], input[type=password], input[name=title], input[name=username],
input[name=password], input[type=datetime-local] {
  width: 100%; margin-top: 4px; padding: 9px; border-radius: 8px;
  border: 1px solid var(--line); background: #10142a; color: var(--text); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; }
legend { color: var(--muted); padding: 0 6px; }
label.check { display: block; margin: 6px 0; font-weight: normal; }
label.check input { width: auto; margin-right: 6px; }
.post-text { max-width: 320px; }
.result { margin-top: 3px; }
