/* Content Factory dashboard. Each brand repaints the same screens (body[data-brand]). */
@font-face { font-family: "Cooper Hewitt"; font-weight: 400; font-display: swap; src: url(/fonts/cooper-hewitt-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cooper Hewitt"; font-weight: 600; font-display: swap; src: url(/fonts/cooper-hewitt-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cooper Hewitt"; font-weight: 700; font-display: swap; src: url(/fonts/cooper-hewitt-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(/fonts/poppins-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(/fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(/fonts/poppins-latin-700-normal.woff2) format("woff2"); }

:root,
body[data-brand="beegraphix"] {
  --gold: #F9B023;
  --honey: #FCC94D;
  --hive: #231F20;
  --hive-lift: #2C2728;
  --ink: #1C1C1C;
  --ink-muted: #5B5657;
  --surface: #FFFFFF;
  --surface-alt: #F5F5F5;
  --line: #E2DFDC;
  --on-hive: #F4F1EA;
  --on-hive-dim: #B9B2A6;
  --font: "Cooper Hewitt", "Helvetica Neue", Helvetica, sans-serif;
}
body[data-brand="rugbee"] {
  --gold: #FFC941;
  --honey: #FFD763;
  --hive: #1D1D1F;
  --hive-lift: #2A2A2D;
  --ink: #1C1C1C;
  --ink-muted: #636363;
  --surface: #FFFFFF;
  --surface-alt: #F4F4F4;
  --line: #E1E1E4;
  --on-hive: #F4F4F4;
  --on-hive-dim: #C9C8CD;
  --font: "Poppins", "Helvetica Neue", Helvetica, sans-serif;
}
:root { --ok: #1E7A3C; --ok-bg: #E6F4EA; --bad: #A12A1C; --bad-bg: #FBE9E6; --shadow: 0 2px 12px rgba(35, 31, 32, 0.10); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--surface-alt); color: var(--ink); font: 400 16px/24px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hive); outline-offset: 2px; }
.topbar :focus-visible, .login :focus-visible { outline-color: var(--gold); }

/* top bar */
.topbar { background: var(--hive); color: var(--on-hive); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar .logo { height: 28px; width: auto; display: block; }
.topbar .home { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.appname { font: 700 13px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.topbar .appname { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { font: 700 13px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--on-hive-dim); padding: 9px 14px; border-radius: 999px; }
.nav a:hover { color: var(--on-hive); background: var(--hive-lift); }
.nav a[aria-current="page"] { color: var(--hive); background: var(--gold); }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--on-hive-dim); white-space: nowrap; }
.who select { background: var(--hive-lift); color: var(--on-hive); border: 1px solid #4A4441; border-radius: 999px; padding: 6px 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--on-hive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* page */
main { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.eyebrow { font: 600 13px/16px var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.title { font: 700 32px/38px var(--font); }
.lead { color: var(--ink-muted); margin: 6px 0 0; max-width: 640px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.card + .card { margin-top: 16px; }
.card h2 { font: 600 20px/26px var(--font); margin-bottom: 4px; }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; }
.empty { text-align: center; padding: 48px 24px; color: var(--ink-muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; background: var(--gold); color: var(--hive); }
.btn:hover { background: var(--honey); }
.btn.dark { background: var(--hive); color: #fff; }
.btn.dark:hover { background: var(--hive-lift); }
.btn.outline { background: transparent; border-color: var(--ink); color: var(--ink); padding: 10px 22px; }
.btn.outline:hover { background: var(--surface-alt); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.outline.small { padding: 6px 12px; }
.btn[disabled] { opacity: .5; cursor: default; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* forms */
label { display: block; font: 600 14px/20px var(--font); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field .hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: 4px; }
input[type="text"], input[type="email"], input[type="password"], select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #BDB7B3; border-radius: 4px; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--hive); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--hive); width: 18px; height: 18px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; font-weight: 400; margin: 0; }
.choice:hover { border-color: var(--gold); }
.choice input { margin-top: 4px; accent-color: var(--hive); }
.choice:has(input:checked) { border-color: var(--hive); box-shadow: inset 0 0 0 1px var(--hive); }
.choice b { display: block; font-weight: 600; }
.error { background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; line-height: 20px; }
.notice { background: var(--surface-alt); border-left: 3px solid var(--gold); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.secret { font: 700 22px/28px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; background: #fff; border: 1px dashed #BDB7B3; border-radius: 8px; padding: 10px 14px; display: inline-block; margin: 8px 0; user-select: all; }

/* login */
.login { min-height: 100vh; background: var(--hive); display: grid; place-items: center; padding: 32px 16px; }
.login-in { width: 100%; max-width: 420px; }
.login .card { padding: 32px; box-shadow: var(--shadow); }
.login .logo { height: 36px; width: auto; display: block; margin: 0 auto 14px; }
.login .appname { text-align: center; font-size: 15px; margin-bottom: 28px; }
.login h1 { font: 700 24px/30px var(--font); margin-bottom: 4px; }
.login .btn { width: 100%; margin-top: 4px; }

/* video list */
.jobs { display: grid; gap: 10px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; }
.job:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.job-title { font: 600 18px/24px var(--font); }
.job-meta { grid-column: 1 / -1; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; transition: width .4s; }
.pill { font: 700 12px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--line); white-space: nowrap; }
.pill.active { background: var(--hive); color: #fff; border-color: var(--hive); }
.pill.done { background: var(--gold); color: var(--hive); border-color: var(--gold); }
.pill.failed { background: var(--bad-bg); color: var(--bad); border-color: #F2C4BD; }
.nav .count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: #1d1d1f; font: 700 11px/18px var(--font); text-align: center; vertical-align: 1px; }
.nav a[aria-current] .count { background: #1d1d1f; color: var(--gold); }
.tag { font: 600 12px/16px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }

/* video detail */
.detail { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 24px; align-items: start; }
.player { background: var(--hive); border-radius: 24px; overflow: hidden; aspect-ratio: 9 / 16; display: grid; place-items: center; color: var(--on-hive-dim); text-align: center; padding: 0; }
.player video { width: 100%; height: 100%; display: block; background: #000; }
.player .wait { padding: 24px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 16px 0 0; font-size: 15px; }
dl.facts dt { color: var(--ink-muted); }
dl.facts dd { margin: 0; }
pre.log { white-space: pre-wrap; word-break: break-word; background: var(--surface-alt); border-radius: 8px; padding: 12px; font-size: 12px; line-height: 18px; max-height: 320px; overflow: auto; }

/* team */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font: 600 12px/16px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr.off td { color: var(--ink-muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; }
  .player { max-width: 360px; width: 100%; margin: 0 auto; }
  .grid2 { grid-template-columns: 1fr; }
  .title { font-size: 26px; line-height: 32px; }
  .table-wrap { overflow-x: auto; }
  .who { width: 100%; justify-content: space-between; }
}

/* new video */
#nv .card { position: relative; }
.step { position: absolute; top: 24px; right: 24px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--hive); font: 700 15px/32px var(--font); text-align: center; }
#nv .card h2 { padding-right: 44px; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choices.three { grid-template-columns: 1fr 1fr 1fr; }
.choice.off { opacity: .55; cursor: default; }
.choice.off:hover { border-color: var(--line); }
.product { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.pnum { font: 700 22px/44px var(--font); color: var(--ink-muted); }
.product.solo, .product.flat { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.product.flat .pnum { font-size: 16px; line-height: 24px; }
.pgrid { display: grid; grid-template-columns: 2fr 1fr; gap: 0 16px; }
.pgrid .wide { grid-column: 1 / -1; }
.pgrid .field { margin-bottom: 12px; }
.slots { display: grid; gap: 8px; }
.slot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px dashed #BDB7B3; border-radius: 8px; padding: 10px 12px; }
.slot.done { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.slot-label { font-weight: 600; min-width: 64px; }
.slot-pick { margin: 0; }
.slot-state { min-width: 0; overflow-wrap: anywhere; }
.scriptpart { border-left: 3px solid var(--gold); padding-left: 16px; margin-bottom: 20px; }
.scriptpart:last-child { margin-bottom: 0; }
.grid2.tight { gap: 8px; margin-top: 8px; }
h3.sub { font: 600 16px/22px var(--font); margin: 8px 0 4px; }
.bad { color: var(--bad); }
.linkbtn.dark { color: var(--ink); margin-left: 8px; }
textarea { resize: vertical; }

@media (max-width: 760px) {
  .choices.two, .choices.three, .pgrid { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 0; }
  .pnum { line-height: 28px; }
  .step { top: 20px; right: 20px; }
}
.slot.over { border-color: var(--hive); border-style: solid; background: var(--surface-alt); }
.slot-thumb { width: 48px; height: 48px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.slot-drop { margin-left: auto; }
.slot.done .slot-drop { display: none; }
@media (max-width: 760px) { .slot-drop { display: none; } }
.colors { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.colors select { width: auto; min-width: 220px; }
.drafts { display: grid; }
.draft { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.draft > a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.draft > .small { grid-column: 1; }
.draft > .row { grid-column: 2; grid-row: 1 / span 2; gap: 8px; }
#drafts .card { margin-bottom: 16px; }
.slugrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slugrow input { flex: 1; min-width: 160px; }
#postCard .notice ul { margin: 6px 0; padding-left: 20px; }
.day { margin-bottom: 18px; }
.dayhead { margin-bottom: 8px; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.post img { width: 100%; display: block; border-radius: 8px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-alt); }
.post img.wide, .noimg.wide { aspect-ratio: 1200 / 627; }
.post img.tall, .noimg.tall { aspect-ratio: 9 / 16; }
.noimg { aspect-ratio: 4 / 5; border-radius: 8px; background: var(--surface-alt); color: var(--ink-muted); display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; font-size: 13px; }
.strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 8px; }
.strip > * { flex: 0 0 88%; scroll-snap-align: start; }
.post { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 10px; background: var(--surface, #fff); min-width: 0; }
.posthead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.post video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: #000; display: block; }
.posttitle { font-weight: 600; margin-top: 8px; }
.postcap { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; margin-top: 8px; max-height: 240px; overflow: auto; }
.postcap .link { color: #1a5fd0; }
.phone { width: 390px; max-width: 100%; height: 720px; border: 1px solid var(--line, #ddd); border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
