/* New Beginnings Social: brand teal #005465 and gold #EAB339, Inter and Barlow, pill buttons */
:root {
  --teal: #005465;
  --teal-dark: #003d4a;
  --gold: #eab339;
  --ink: #1d2b30;
  --muted: #5d6b70;
  --line: #dde5e7;
  --bg: #f4f7f8;
  --white: #fff;
  --red: #b3261e;
  --green: #1e7a46;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2 { font-family: Barlow, Inter, sans-serif; color: var(--teal); line-height: 1.2; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
a { color: var(--teal); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 28px; padding-bottom: 40px; }

.topbar { background: var(--teal); color: var(--white); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { color: var(--white); text-decoration: none; font-family: Barlow, sans-serif; font-weight: 700; font-size: 1.2rem; }
.brand span { color: var(--gold); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
.nav a, .nav .link { color: #d7eaee; text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a.active, .nav .link:hover { color: var(--white); }
.nav a.active { box-shadow: inset 0 -2px 0 var(--gold); }

.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; margin: 0 0 .25rem; }
.hint { color: var(--muted); font-size: .9rem; font-weight: 400; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; }
.card.muted { background: transparent; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.small { gap: 8px; margin: 8px 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=file], textarea, select {
  font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
.account-choice { padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-choice:last-child { border-bottom: 0; }
label.check { flex-direction: row; align-items: center; gap: 10px; }
details summary { cursor: pointer; color: var(--teal); font-size: .9rem; margin-top: 6px; }
details textarea { margin-top: 8px; }

/* Platform options and preview */
.platform-options { margin: 10px 0 4px 28px; padding: 14px 16px; background: var(--bg); border-radius: 10px; display: flex; flex-direction: column; gap: 12px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.indent { margin-left: 28px; display: flex; flex-direction: column; gap: 8px; }
label.check.disabled { color: var(--muted); }
.declaration { font-size: .9rem; margin: 0; }
.preview video { max-height: 360px; max-width: 100%; border-radius: 10px; background: #000; }
.preview p { margin: 6px 0 0; }

/* Buttons: always pill-shaped */
.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  background: var(--teal); color: var(--white); border: 2px solid var(--teal);
  border-radius: 999px; padding: 10px 26px; align-self: flex-start;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-small { padding: 6px 16px; font-size: .9rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--red); }
form.inline { display: inline; }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 20px; }
.flash-success { background: #e5f4ea; color: var(--green); }
.flash-error { background: #fbe9e7; color: var(--red); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.link-cell { text-align: right; white-space: nowrap; }
.caption-cell { color: var(--muted); max-width: 320px; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: capitalize; padding: 2px 10px; border-radius: 999px; background: #e8eef0; color: var(--ink); margin-right: 4px; }
.badge-facebook { background: #e7effd; color: #1a4fb4; }
.badge-instagram { background: #fbe7f1; color: #a3195b; }
.badge-tiktok { background: #e6f7f6; color: #0f6f69; }
.badge-youtube { background: #fde8e8; color: #b3261e; }
.badge-threads { background: #ececec; color: #222; }
.badge.status-failed { text-decoration: line-through; opacity: .7; }
.badge.status-pending, .badge.status-processing { opacity: .6; }

.status { text-transform: capitalize; font-weight: 600; }
.status-published { color: var(--green); }
.status-failed { color: var(--red); }
.status-processing, .status-pending { color: var(--muted); }
.error-text { font-weight: 400; text-transform: none; font-size: .85rem; color: var(--red); margin-top: 4px; }

.prose { max-width: 760px; }
.prose ul { padding-left: 1.2rem; }

.foot { color: var(--muted); font-size: .85rem; padding-bottom: 30px; }

@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  .card { padding: 18px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}

.yt-note { display: inline-block; margin-top: 6px; }
.yt-badge { display: inline-block; background: #ff0000; color: #fff; font-weight: 700; font-size: .75rem; padding: 1px 8px; border-radius: 999px; margin-right: 4px; }
