:root {
  --bg: #faf9f7; --card: #ffffff; --ink: #141414; --muted: #6b6762; --line: #e7e3dd;
  --accent: #141414; --accent-ink: #ffffff; --soft: #f2efea; --danger: #b3261e; --ok: #1f7a4d;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.45; }
.brand { font-family: Georgia, "Times New Roman", serif; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
header .logo { font-size: 22px; letter-spacing: .2px; }
header .logo small { display: block; font-family: inherit; font-size: 12px; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }
.account { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.account img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.connect { max-width: 460px; margin: 48px auto; text-align: center; }
.connect h1 { font-size: 26px; font-weight: normal; margin: 0 0 8px; }
.connect p { color: var(--muted); margin: 0 0 20px; }
.btn { appearance: none; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 11px 20px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } }
.queue h2, .composer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
.queue-list { display: flex; flex-direction: column; gap: 10px; }
.queue-item { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card); text-align: left; width: 100%; font: inherit; color: inherit; }
.queue-item.active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.queue-item video { width: 54px; height: 96px; object-fit: cover; border-radius: 8px; background: #000; flex: none; }
.queue-item .t { font-weight: 600; font-size: 14px; }
.queue-item .s { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.composer-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
@media (max-width: 620px) { .composer-grid { grid-template-columns: 1fr; } }
.preview video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #000; display: block; }
.posting-as { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--soft); border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.posting-as img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.field { margin-bottom: 16px; }
.field > label, .field > .label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
textarea, select { width: 100%; font: inherit; color: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
textarea { min-height: 96px; resize: vertical; }
.count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.checks label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.checks label.disabled { color: var(--muted); }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.toggle-row .help { color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cfcac3; border-radius: 999px; transition: .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--ink); }
.switch input:checked + span::after { transform: translateX(18px); }
.disclose { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.disclose .opt { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.disclose .opt:last-of-type { margin-bottom: 0; }
.disclose .opt small { display: block; color: var(--muted); font-size: 12px; }
.notice { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--soft); margin-top: 10px; }
.notice.warn { background: #fdf0ee; color: var(--danger); }
.declaration { font-size: 13px; color: var(--muted); margin: 14px 0; }
.declaration a { color: var(--ink); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.status { margin-top: 12px; font-size: 14px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; margin-right: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
footer { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 16px; }
footer a { color: var(--muted); }
