:root { --fg: #1d1d1f; --muted: #6b6b70; --line: #ddd; --bg: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--fg); background: var(--bg); }
.env-band { padding: 6px 16px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.env-band-staging { background: #ffd60a; color: #1d1d1f; }
.env-band-prod { background: #d70015; color: #fff; }
.topbar { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.topbar .brand { font-weight: 600; }
.topbar nav { flex: 1; }
.topbar .logout { display: flex; gap: 8px; align-items: center; margin: 0; }
.who { color: var(--muted); }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
h1 { font-size: 1.4rem; }
.count { color: var(--muted); font-weight: 400; }
.login { display: grid; gap: 12px; max-width: 320px; }
.login label { display: grid; gap: 4px; }
input, button { font: inherit; padding: 6px 8px; }
.error { color: #b00020; }
.empty { color: var(--muted); }
table.hold { width: 100%; border-collapse: collapse; }
table.hold th, table.hold td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
table.hold .id { color: var(--muted); font-size: .8rem; font-family: ui-monospace, monospace; }
.reasons { margin: 0; padding-left: 18px; }
/* Article detail (Story 5.3) */
.back { margin: 0 0 4px; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta .id { font-family: ui-monospace, monospace; font-size: .85rem; }
.status { display: inline-block; padding: 0 8px; border-radius: 10px; background: #eee; font-size: .85rem; }
.status-hold { background: #ffe8b3; }
.status-published { background: #d6f5dd; }
.status-rejected { background: #f8d7da; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs .tab { padding: 8px 14px; border: 1px solid transparent; border-bottom: none; text-decoration: none; color: var(--fg); border-radius: 6px 6px 0 0; }
.tabs .tab.active { border-color: var(--line); background: var(--bg); font-weight: 600; margin-bottom: -1px; }
.media { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.illustration { margin: 0; max-width: 360px; }
.illustration img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); }
.audio h2, .col h2 { font-size: 1.05rem; margin: 0 0 8px; }
table.metrics { border-collapse: collapse; margin-bottom: 16px; }
table.metrics th, table.metrics td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--line); }
table.metrics tr.pass td:last-child { color: #1a7f37; font-weight: 600; }
table.metrics tr.fail td:last-child { color: #b00020; font-weight: 600; }
table.metrics tr.na td:last-child { color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare .col { min-width: 0; }
.compare .col p { margin: 0 0 10px; }
.level-title { font-size: 1.1rem; margin: 0 0 10px; }
mark { background: #ffd966; color: inherit; padding: 0 1px; }
@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }
.tabs .tab.missing { color: var(--muted); font-style: italic; }
/* Actions on a Bài Hold, history, flash (Story 5.4) */
.flash { padding: 10px 14px; border-radius: 6px; margin: 0 0 16px; border: 1px solid; }
.flash-success { background: #e6f6ea; border-color: #9fd8ad; color: #14532d; }
.flash-error { background: #fdecee; border-color: #f1a7af; color: #8a0012; }
.flash-warning { background: #fff6dc; border-color: #f0d27a; color: #5c4400; }
.actions, .takedown, .history { margin: 0 0 20px; }
.actions h2, .takedown h2, .history h2 { font-size: 1.1rem; margin: 0 0 8px; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.action { display: grid; gap: 8px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.action h3 { font-size: 1rem; margin: 0; }
.action .hint, .disabled-reason { margin: 0; color: var(--muted); font-size: .9rem; }
.disabled-reason { color: #8a0012; }
.action .reason { display: grid; gap: 4px; font-size: .9rem; }
.action textarea { font: inherit; padding: 6px 8px; width: 100%; resize: vertical; }
.action .confirm { font-size: .9rem; }
button.danger { background: #b00020; color: #fff; border: 1px solid #8a0012; }
button[disabled] { opacity: .5; cursor: not-allowed; }
table.events { width: 100%; border-collapse: collapse; }
table.events th, table.events td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
/* Published list, Unpublish (Story 5.5) */
.topbar nav a { margin-right: 12px; }
.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.search input[type="search"] { min-width: 280px; }
.action-unpublish { max-width: 560px; border-color: #f1a7af; }
/* Batches (Story 5.6) */
.budget { margin: 0 0 24px; }
.budget h2 { font-size: 1.1rem; margin: 0 0 8px; }
.budget-table { max-width: 760px; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num.short { color: #8a0012; font-weight: 600; }
.badge { display: inline-block; padding: 0 8px; border-radius: 10px; font-size: .85rem; }
.badge-ok { background: #d6f5dd; color: #14532d; }
.badge-warn { background: #fff6dc; color: #5c4400; border: 1px solid #f0d27a; }
.badge-over { background: #fdecee; color: #8a0012; border: 1px solid #f1a7af; font-weight: 600; }
.table-scroll { overflow-x: auto; }
table.batches th { font-size: .85rem; }
table.batches td.failed a { white-space: nowrap; }
.error-text { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: .85rem; }
/* Marketing videos (/videos) */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.filters select, .filters input { font: inherit; padding: 6px 8px; }
.status-pending_review, .status-approved { background: #ffe8b3; }
.status-posted { background: #d6f5dd; }
.status-failed, .status-withdrawn, .status-rejected { background: #f8d7da; }
.status-rendering { background: #e3ecfa; }
.nav-count { margin-left: 2px; font-weight: 600; }
.video-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 16px; }
.video-frame { width: 300px; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; overflow: hidden; }
.video-frame-landscape { width: 640px; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-info { flex: 1; min-width: 280px; }
.caption-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 16px; }
/* Costs page (/costs) */
p.hint, ul.hint, td.hint { color: var(--muted); font-size: .9rem; }
.est { color: #8a5a00; font-weight: 600; margin-left: 2px; }
