:root {
  --ink: #1d2433;
  --muted: #5a6275;
  --navy: #1f3a68;
  --gold: #b48a3c;
  --line: #d9dde5;
  --paper: #fbfaf7;
  --card: #ffffff;
  --error-bg: #fdf0ee;
  --error-ink: #8a2416;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
.masthead { background: var(--navy); color: #fff; padding: 14px 0; }
.masthead .wrap { display: flex; align-items: center; gap: 12px; }
.mark { font-family: Georgia, serif; font-size: 22px; color: var(--gold); letter-spacing: 1px; }
.org { font-size: 15px; letter-spacing: .3px; }
h1 { font-family: Georgia, serif; font-weight: normal; font-size: 32px; margin: 32px 0 8px; }
.lede { color: var(--muted); margin: 0 0 24px; }
fieldset {
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 8px 20px 20px; margin: 0 0 20px;
}
legend { font-weight: 600; padding: 0 6px; }
label { display: block; font-weight: 500; margin: 16px 0 6px; }
.opt { color: var(--muted); font-weight: normal; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
input[type=text], input[type=email], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: 3px solid color-mix(in srgb, var(--navy) 35%, transparent); outline-offset: 1px;
}
input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.release {
  background: var(--paper); border-left: 3px solid var(--gold); padding: 4px 14px;
  margin-top: 16px; font-size: 15px; color: var(--muted);
}
.release-label { font-weight: 600; color: var(--ink); margin-bottom: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: normal; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
button {
  background: var(--navy); color: #fff; border: 0; border-radius: 8px;
  padding: 14px 28px; font: inherit; font-weight: 600; cursor: pointer; margin-bottom: 48px;
}
button:hover { background: #172d52; }
.errors {
  background: var(--error-bg); color: var(--error-ink); border-radius: 8px;
  padding: 4px 18px; margin-bottom: 20px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- VOJD pages: legal, editor dashboard, TikTok posting ---------------------------- */
.wrap.wide { max-width: 1040px; }
.masthead.vojd .wrap { flex-wrap: wrap; }
.vojd-home { display: inline-flex; }
.masthead .who { margin-left: auto; font-size: 14px; opacity: .85; }
h2 { font-family: Georgia, serif; font-weight: normal; font-size: 23px; margin: 28px 0 8px; }
h3 { font-size: 17px; margin: 20px 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.legal { padding-bottom: 48px; }
.legal li { margin: 4px 0; }
.draft-banner {
  background: #fff6e0; border: 1px solid #ecd59a; color: #6b4e0f; border-radius: 8px;
  padding: 8px 14px; margin: 20px 0 0; font-size: 15px;
}
.legal-footer { border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted);
  font-size: 14px; }
.notice { background: #eef3fb; border-left: 3px solid var(--navy); border-radius: 6px;
  padding: 10px 14px; }
.warn { background: #fff6e0; border-left: 3px solid var(--gold); border-radius: 6px;
  padding: 8px 12px; font-size: 15px; margin: 8px 0 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 20px 16px; margin: 0 0 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; }
a.button, button.small, a.button.small {
  display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff;
  border-radius: 8px; padding: 10px 18px; font-weight: 600; text-decoration: none;
}
a.button.small { padding: 7px 14px; font-size: 15px; margin: 4px 6px 0 0; }
a.button:hover { background: #172d52; }
button:disabled { background: #9aa3b5; cursor: not-allowed; }
.link-button { background: none; color: var(--error-ink); padding: 0; margin: 0;
  font-weight: 500; text-decoration: underline; }
.link-button:hover { background: none; }
form.inline { display: inline; margin-left: auto; }
.accounts, .reels { list-style: none; padding: 0; margin: 8px 0 0; }
.accounts li { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-top: 1px solid var(--line); flex-wrap: wrap; }
.avatar { border-radius: 50%; object-fit: cover; background: var(--line); }
.acct-name { font-weight: 600; margin: 0; }
.reels li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0;
  border-top: 1px solid var(--line); }
.reels video { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px;
  background: #000; }
.reel-title { font-weight: 600; margin: 0; }
.reels .hint { margin: 2px 0 6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: var(--navy); background: #eef3fb; border-radius: 4px;
  padding: 2px 8px; margin: 0 0 6px; }
.posts { width: 100%; border-collapse: collapse; font-size: 15px; }
.posts th, .posts td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); }
.posts-wrap { overflow-x: auto; }
.status { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
  background: #eef0f4; }
.status-published { background: #e5f4ea; color: #1d6b35; }
.status-failed { background: var(--error-bg); color: var(--error-ink); }
.crumbs { margin: 20px 0 0; font-size: 15px; }
.poster { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.poster .hint { margin: 0; }
.post-form { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px;
  align-items: start; }
.preview { position: sticky; top: 16px; }
.preview video { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.settings fieldset { padding-top: 4px; }
.settings select { margin-top: 8px; }
label.check.off { color: var(--muted); }
.sub { border-left: 2px solid var(--line); margin: 4px 0 0 8px; padding-left: 14px; }
.consent { margin: 4px 0 18px; }
.settings button { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.caption-block { white-space: pre-wrap; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px 14px; }
@media (max-width: 720px) {
  .post-form { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 300px; }
  .masthead .who { margin-left: 0; width: 100%; }
}
