[hidden] { display: none !important; }
:root {
  --bg: #14101f; --card: #1e1830; --line: #332a4d; --text: #f1edf9; --muted: #a79cc2;
  --accent: #a855f7; --accent2: #6366f1; --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text);
  padding-bottom: env(safe-area-inset-bottom); }
a { color: #c4a3ff; }
main { max-width: 720px; margin: 0 auto; padding: 12px; display: grid; gap: 14px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(20,16,31,.92); backdrop-filter: blur(8px); z-index: 5; }
.brand { font-weight: 700; font-size: 18px; }
.logo { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
h2 { margin: 0 0 12px; font-size: 16px; }
label { display: block; margin: 10px 0 4px; font-size: 14px; }
input, select, textarea { width: 100%; background: #120e1d; color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
button, .button { background: #2a2242; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary { width: 100%; margin-top: 14px; padding: 14px; font-weight: 700; font-size: 16px; border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.ghost { background: transparent; }
.small { font-size: 13px; padding: 6px 10px; }
.muted { color: var(--muted); }
.small.muted, .muted.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.gap { gap: 12px; margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.check input, .toggle input { width: auto; accent-color: var(--accent); }
.check.disabled { opacity: .5; }
.checks-row { display: flex; gap: 14px; flex-wrap: wrap; }
.indent { padding-left: 24px; }
.req { color: var(--warn); font-size: 12px; }

.accounts { display: grid; gap: 8px; }
.acct { display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; }
.acct.on { border-color: rgba(34,197,94,.45); }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 110px;
  border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; padding: 14px; margin: 0 0 10px; }
.drop.hover { border-color: var(--accent); }
.drop input { display: none; }
progress { width: 100%; accent-color: var(--accent); }
video { width: 100%; max-height: 420px; background: #000; border-radius: 12px; }
.checks { display: grid; gap: 6px; margin: 8px 0; }
.chk { font-size: 13px; padding: 6px 10px; border-radius: 8px; border-left: 4px solid; background: #160f26; }
.chk.ok { border-color: var(--ok); } .chk.warn { border-color: var(--warn); } .chk.bad { border-color: var(--bad); }

.platforms { display: grid; gap: 10px; margin-top: 12px; }
.plat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.plat .toggle { font-weight: 600; margin: 0; display: flex; gap: 8px; align-items: center; }
.plat.off .opts { display: none; }
.plat.off { opacity: .6; }
.when { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.when input[type=datetime-local] { width: auto; flex: 1; min-width: 200px; }
.errors { margin-top: 10px; font-size: 13px; color: #fca5a5; }

.posts { display: grid; gap: 8px; }
.post { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cap { font-size: 13px; margin-top: 4px; white-space: pre-wrap; }
.err { color: #fca5a5; margin-top: 4px; }
.pill { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: #2a2242; }
.pill.published { background: rgba(34,197,94,.2); color: #86efac; }
.pill.failed { background: rgba(239,68,68,.2); color: #fca5a5; }
.pill.publishing { background: rgba(99,102,241,.25); color: #c7d2fe; }
.pill.queued { background: rgba(245,158,11,.2); color: #fcd34d; }

.notice, .banner { max-width: 720px; margin: 10px auto 0; padding: 10px 14px; border-radius: 10px; background: #2a2242; }
.notice.error { background: rgba(239,68,68,.2); } .notice.ok { background: rgba(34,197,94,.2); }
.banner { background: rgba(245,158,11,.18); font-size: 14px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } .acct { grid-template-columns: 80px 1fr auto; } }
.modes { display: grid; gap: 2px; margin-bottom: 6px; }
.modes .check { align-items: flex-start; }
.modes .check input { margin-top: 4px; }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(168,85,247,.25); color: #e9d5ff; white-space: nowrap; }
.pill.needs_you { background: rgba(168,85,247,.3); color: #f3e8ff; }
.post.needs_you { border-color: var(--accent); }
.youturn { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: rgba(168,85,247,.12); }
.note { color: var(--muted); margin-top: 4px; }
.primary-mini { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; font-weight: 600; }
.navlink { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.navlink.active { color: var(--text); background: #2a2242; }
