:root {
  --bg: #0f1419;
  --panel: #1a222c;
  --panel2: #232d3a;
  --text: #e8eef5;
  --muted: #93a4b8;
  --accent: #f0a202;
  --ok: #3dcc91;
  --warn: #f0a202;
  --bad: #ff6b6b;
  --info: #5b9fd4;
  --border: #2e3a4a;
  --radius: 12px;
  --sidebar-w: 220px;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% -10%, #1c2a22 0%, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.wrap { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 40;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  padding-top: calc(.65rem + env(safe-area-inset-top, 0px));
  padding-left: calc(.85rem + env(safe-area-inset-left, 0px));
  padding-right: calc(.85rem + env(safe-area-inset-right, 0px));
  background: #0c1015;
  border-bottom: 1px solid var(--border);
}
.topbrand { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.topbrand .sub { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem;
  border-radius: 999px; background: var(--bad); color: #111; font-weight: 700; font-size: .8rem;
}
.nav-toggle {
  min-width: 44px; min-height: 44px;
  font-size: 1.25rem; line-height: 1;
  background: var(--panel2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; cursor: pointer;
}
.nav-backdrop {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 45;
}

nav.sidebar {
  background: #0c1015;
  border-right: 1px solid var(--border);
  padding: 1.25rem 1rem;
}
nav.sidebar .brand { font-weight: 700; letter-spacing: .02em; margin-bottom: .25rem; }
nav.sidebar .sub { color: var(--muted); font-size: .8rem; margin-bottom: 1.5rem; }
nav.sidebar a.nav {
  display: block;
  padding: .7rem .75rem;
  border-radius: 8px;
  color: var(--text);
  margin-bottom: .25rem;
  min-height: 44px;
}
nav.sidebar a.nav.active, nav.sidebar a.nav:hover {
  background: var(--panel2);
  text-decoration: none;
}
.reset-form { margin-top: 1.5rem; }
.badge {
  display: inline-block;
  min-width: 1.25rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--bad);
  color: #111;
  font-size: .75rem;
  font-weight: 700;
  margin-left: .35rem;
}

main { padding: 1.5rem 1.75rem 3rem; max-width: 1200px; }
header.page { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1.25rem; flex-wrap: wrap; }
header.page h1 { margin: 0 0 .35rem; font-size: 1.55rem; }
header.page p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 1rem; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.card h2, .card h3 { margin: 0 0 .75rem; font-size: 1rem; }
.card h3 { margin: 0 0 .35rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.metric { font-size: 1.7rem; font-weight: 700; }
.down { color: var(--bad); }
.up { color: var(--ok); }

.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.pill {
  display: inline-block;
  padding: .15rem .5rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: .1rem .15rem .1rem 0;
}
.pill.P0, .pill.pending { background: #5a1d1d; color: #ffb4b4; }
.pill.P1 { background: #5a4010; color: #ffd58a; }
.pill.P2, .pill.draft { background: #1d3a5a; color: #a8d4ff; }
.pill.approved, .pill.executed, .pill.mocked, .pill.connected { background: #143528; color: #8af0c0; }
.pill.rejected, .pill.blocked { background: #3a1520; color: #ff9bb0; }
.pill.planned { background: #2a2a20; color: #d6d09a; }
.pill.awaiting, .pill.urgency { background: #4a3a10; color: #ffe08a; }
.pill.snapshot, .pill.read_only_snapshot { background: #1a3348; color: #9fd0ff; }
.pill.pending { background: #5a4010; color: #ffd58a; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list.tight li { padding: .3rem 0; font-size: .9rem; }

.btnrow { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
button, .btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.touch { min-height: 48px; min-width: 48px; }
button.primary, .btn.primary { background: var(--accent); color: #1a1200; border-color: transparent; }
button.ok { background: #1f6b4a; border-color: transparent; }
button.bad { background: #8b2e3b; border-color: transparent; }
button:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; }

textarea, input[type=text], input[type=password], input[type=email], input[type=file], input:not([type]), select {
  width: 100%;
  background: #0f151c;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .7rem .75rem;
  font: inherit;
  /* >=16px avoids iOS Safari auto-zoom on focus (login + forms) */
  font-size: 16px;
  min-height: 48px;
}
label { display: block; color: var(--muted); font-size: .85rem; margin: .75rem 0 .35rem; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.filters.scroll-x { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .25rem; }
.filters a { color: var(--muted); white-space: nowrap; padding: .35rem 0; }
.filters a.on { color: var(--accent); font-weight: 700; }
.filters-form { margin-bottom: 0; }

.banner {
  background: #2a2410;
  border: 1px solid #6a5a20;
  color: #ffe7a0;
  padding: .65rem .85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.banner.warn { background: #2a2410; border-color: #6a5a20; color: #ffe7a0; }
.banner.bad { background: #2a1218; border-color: #6a2030; color: #ffb0c0; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; white-space: pre-wrap; }
.before-after { font-size: .8rem; line-height: 1.45; }

.brief-list { display: flex; flex-direction: column; gap: .85rem; }
.brief-item {
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem;
}
.brief-head { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin-bottom: .5rem; }
.brief-meta { margin: 0; display: grid; gap: .5rem; }
.brief-meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.brief-meta dd { margin: .15rem 0 0; }

.card-stack { display: none; }
.stack-card {
  display: block;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem;
  margin-bottom: .65rem;
  color: inherit;
}
.stack-card:hover { text-decoration: none; border-color: var(--accent); }
.stack-card.static { cursor: default; }
.stack-card strong { display: block; margin: .35rem 0; }

/* Tablet */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
}

/* Phone ~375px */
@media (max-width: 760px) {
  .wrap { grid-template-columns: 1fr; }
  .topbar { display: flex; }
  nav.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(280px, 86vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow-y: auto;
    box-shadow: 8px 0 24px rgba(0,0,0,.4);
  }
  body.nav-open nav.sidebar { transform: translateX(0); }
  body.nav-open .nav-backdrop { display: block; }
  main { padding: 1rem .9rem 2.5rem; }
  header.page h1 { font-size: 1.25rem; }
  .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .table-wrap { display: none; }
  .card-stack { display: block; }
  .btnrow button, .btnrow .btn { flex: 1 1 100%; }
}

/* Day-3 orchestrator status pills */
.pill.idle, .pill.queued { background: #1d3a5a; color: #a8d4ff; }
.pill.working { background: #4a3a10; color: #ffe08a; }
.pill.awaiting_approval { background: #5a4010; color: #ffd58a; }
.pill.completed { background: #143528; color: #8af0c0; }
.pill.failed, .pill.blocked { background: #3a1520; color: #ff9bb0; }
.pill.running { background: #4a3a10; color: #ffe08a; }
.pill.gate, .pill.awaiting { background: #4a3a10; color: #ffe08a; }

/* Day-4A Cost Governor */
.pill.ok, .pill.warn { }
.pill.ok { background: #143528; color: #8af0c0; }
.pill.warn { background: #5a4010; color: #ffd58a; }
.pill.paused, .pill.bad { background: #5a1d1d; color: #ffb4b4; }
.pill.emergency { background: #4a1a4a; color: #f0b0ff; }
.table-wrap { overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table-wrap th, .table-wrap td { padding: .45rem .55rem; border-bottom: 1px solid var(--border); text-align: left; }
.table-wrap th { color: var(--muted); font-weight: 600; }

/* MVP demo — identity picker + ~390px polish */
.identity-options { display: flex; flex-direction: column; gap: .55rem; }
.identity-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1rem;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.identity-option input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.identity-option.selected, .identity-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pill.mock { background: #143528; color: #8af0c0; }
.pill.MockLocal, .pill.NotConfigured { background: #2a2a20; color: #d6d09a; }
.pill.ReadyButSafeMock { background: #1a3348; color: #9fd0ff; }
.pill.Readyenv { background: #143528; color: #8af0c0; }

@media (max-width: 420px) {
  :root { --sidebar-w: 100%; }
  main { padding: .85rem .75rem 2.25rem; }
  header.page { margin-bottom: .85rem; }
  header.page h1 { font-size: 1.15rem; }
  .metric { font-size: 1.45rem; }
  .btnrow { gap: .45rem; }
  .btnrow .btn, .btnrow button { flex: 1 1 100%; min-height: 44px; }
  nav.sidebar a.nav { padding: .85rem .75rem; font-size: 1rem; }
  .topbar {
    padding: .55rem .7rem;
    padding-top: calc(.55rem + env(safe-area-inset-top, 0px));
    padding-left: calc(.7rem + env(safe-area-inset-left, 0px));
    padding-right: calc(.7rem + env(safe-area-inset-right, 0px));
  }
  .card { padding: .85rem .9rem; }
  .identity-option { min-height: 48px; }
}


.alert { padding: .65rem .85rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert.ok { background: #143528; border: 1px solid #2a6b4a; color: #8af0c0; }
.alert.bad { background: #2a1218; border: 1px solid #6a2030; color: #ffb0c0; }

/* U3 Conversation-First Home */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.converse-primary textarea {
  width: 100%; min-height: 5.5rem; font-size: 1.05rem; resize: vertical;
}
.intent-actions .btn[disabled], .intent-actions button[disabled] {
  opacity: .45; cursor: not-allowed;
}
.converse-turn { display: flex; flex-direction: column; gap: .75rem; }
.bubble {
  padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--panel2);
}
.bubble.user { border-color: #3a3a28; }
.bubble.boss {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(240, 162, 2, 0.25);
}
.bubble-label {
  font-size: .75rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .35rem;
}
.intent-list { list-style: none; padding: 0; margin: 0; }
.intent-list li {
  padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem;
}
.intent-list li:last-child { border-bottom: 0; }
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }

/* Marketing M1 — mobile-first / iPhone Safari */
.marketing-primary .marketing-prompt {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
}
.marketing-actions .btnrow .btn,
.marketing-next .btnrow .btn,
.marketing-form .btnrow .btn,
.marketing-form .btnrow button {
  min-height: 48px;
  min-width: 48px;
}
.marketing-form label {
  display: block;
  margin-bottom: .85rem;
  font-size: .9rem;
  color: var(--muted);
}
.marketing-form input,
.marketing-form textarea,
.marketing-form select,
.marketing-primary textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: .35rem;
  min-height: 48px;
  /* >=16px avoids iOS Safari auto-zoom on focus */
  font-size: 16px;
}
.marketing-form textarea,
.marketing-primary textarea { min-height: 5rem; }
.marketing-form label.check {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--text);
  min-height: 48px;
}
.marketing-form label.check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  min-height: 0;
}
.marketing-ideas ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}
.marketing-ideas li { margin: .35rem 0; }
.marketing-steps .mkt-steps {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}
.marketing-steps .mkt-steps li { margin: .35rem 0; }
.marketing-next { margin-bottom: 1rem; }
/* Prevent horizontal overflow on marketing mobile pages */
main {
  overflow-x: hidden;
  max-width: 100vw;
}
.card, .marketing-form, .btnrow {
  max-width: 100%;
}
@media (max-width: 420px) {
  .marketing-prompt { font-size: 1.05rem; }
  .marketing-actions .btnrow .btn,
  .marketing-next .btnrow .btn { flex: 1 1 100%; }
}

/* Marketing M1.2 — Monday demo polish */
.mkt-section-title { margin: 0 0 .65rem; font-size: 1.05rem; }
.mkt-hint { margin: 0 0 .75rem; font-size: .9rem; }
.mkt-action-grid { gap: .55rem; }
.mkt-steps { margin: 0; padding-left: 1.15rem; line-height: 1.55; }
.mkt-steps li { margin: .4rem 0; }
.mkt-empty { padding: .25rem 0; }
.mkt-demo-banner {
  border: 1px dashed var(--accent);
  background: linear-gradient(135deg, #2a2410 0%, var(--panel) 60%);
}
.mkt-demo-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #5a4010;
  color: #ffd58a;
  margin-bottom: .5rem;
}
.mkt-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 11rem;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel2);
  text-align: center;
  cursor: pointer;
  color: var(--text);
}
.mkt-drop-zone:active, .mkt-drop-zone:focus-within {
  border-color: var(--accent);
  background: #243040;
}
.mkt-drop-zone input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}
.mkt-drop-form { position: relative; }
.mkt-drop-icon { font-size: 2.4rem; line-height: 1; }
.mkt-drop-title { font-size: 1.1rem; font-weight: 650; }
.mkt-drop-sub { font-size: .85rem; color: var(--muted); max-width: 22rem; }
.mkt-optional { margin: .5rem 0 0; }
.mkt-optional summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: .95rem;
}
.mkt-optional[open] summary { margin-bottom: .65rem; }
.mkt-drop-list { list-style: none; padding: 0; margin: 0; }
.mkt-drop-item {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.mkt-drop-item:last-child { border-bottom: 0; }
.mkt-thumb-wrap { flex: 0 0 4.5rem; }
.mkt-thumb {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 8px;
  background: var(--panel2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .15rem;
  font-size: .65rem;
  overflow: hidden;
  text-align: center;
  padding: .25rem;
}
.mkt-thumb-video { color: var(--accent); }
.mkt-thumb-video span:first-child { font-size: 1.1rem; }
.mkt-thumb-empty { color: var(--muted); font-weight: 700; font-size: .75rem; }
.mkt-drop-meta { flex: 1; min-width: 0; }
.mkt-drop-meta .pill { margin-right: .25rem; margin-top: .25rem; }
.mkt-format-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
@media (min-width: 720px) {
  .mkt-format-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.mkt-format-card { margin: 0; }
.mkt-format-skip { opacity: .85; }
.mkt-format-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
}
.mkt-idea-list {
  margin: 0;
  padding-left: 1.1rem;
}
.mkt-idea-list li { margin: .35rem 0; }
.mkt-hook { margin: .35rem 0; font-size: .95rem; }
.mkt-queue-card { margin-bottom: .65rem; }
.pill.fmt-reel { background: #3a1d4a; color: #e0b0ff; }
.pill.fmt-story { background: #1d3a5a; color: #a8d4ff; }
.pill.fmt-feed { background: #143528; color: #8af0c0; }
.pill.fmt-feed-off { background: #2a2a2a; color: #9aa4b0; }
.pill.fmt-demo { background: #5a4010; color: #ffd58a; }
.pill.fmt-photo { background: #1a3348; color: #9fd0ff; }
.pill.fmt-video { background: #3a1d4a; color: #e0b0ff; }
.pill.status-NEEDS_MEDIA, .pill.status-PLANNED { background: #5a4010; color: #ffd58a; }
.pill.status-READY { background: #143528; color: #8af0c0; }
.pill.status-RAW { background: #1d3a5a; color: #a8d4ff; }
.pill.status-UPLOADED { background: #143528; color: #8af0c0; }
.mkt-file-summary { display: block; margin-top: .35rem; font-weight: 600; color: var(--accent); }
.mkt-progress-wrap { margin: .75rem 0 1rem; }
.mkt-progress-label {
  display: flex; justify-content: space-between; gap: .5rem;
  font-size: .9rem; margin-bottom: .35rem;
}
.mkt-progress-bar {
  height: 12px; border-radius: 999px; background: var(--panel2);
  border: 1px solid var(--border); overflow: hidden;
}
.mkt-progress-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, #2a6b4a, #5ee0a0);
  transition: width .15s ease-out;
}
.mkt-progress-files { list-style: none; padding: 0; margin: .65rem 0 0; }
.mkt-progress-file {
  display: flex; justify-content: space-between; gap: .5rem;
  padding: .45rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; min-height: 44px; align-items: center;
}
.mkt-progress-file:last-child { border-bottom: 0; }
.mkt-pf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-pf-status.ok { color: #8af0c0; font-weight: 650; }
.mkt-pf-status.bad { color: #ff8a8a; font-weight: 650; }
.mkt-just-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.mkt-just-list li { padding: .35rem 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.mkt-row-demo td { background: rgba(90, 64, 16, 0.18); }
@media (max-width: 420px) {
  .mkt-drop-zone { min-height: 10rem; }
  .marketing-primary .marketing-prompt { font-size: 1.2rem; }
}


/* M1.4 Fuego Desk — owner summary + queue states */
.mkt-owner-summary { margin-bottom: 1rem; }
.mkt-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
}
@media (min-width: 640px) {
  .mkt-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mkt-sum-pill {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: .65rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.mkt-sum-need { border-color: rgba(255, 180, 80, 0.35); }
.mkt-sum-n { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.mkt-owner-label { font-size: .85rem; margin-top: .2rem; color: var(--muted); }
.mkt-audio-warn {
  color: #ffd58a;
  font-size: .85rem;
  margin-top: .25rem;
  font-weight: 600;
}
.mkt-inline-file input[type=file] {
  display: block;
  width: 100%;
  margin-top: .35rem;
  font-size: 1rem;
}
.pill.status-REVIEWED { background: #1d3a5a; color: #a8d4ff; }
.pill.status-NEEDS_INFO { background: #5a2810; color: #ffb08a; }
.pill.status-PLANNED { background: #5a4010; color: #ffd58a; }
.pill.status-NEEDS_EDIT { background: #3a1d4a; color: #e0b0ff; }
.pill.status-READY { background: #143528; color: #8af0c0; }
.pill.status-NEEDS_PLATFORM_AUDIO { background: #5a4010; color: #ffd58a; }
.pill.status-PUBLISHED { background: #143528; color: #8af0c0; }
.pill.status-MEASURED { background: #1a3348; color: #9fd0ff; }
.pill.status-ARCHIVED { background: #2a2a2a; color: #9aa4b0; }
.pill.status-AUDIO_NATURAL { background: #143528; color: #8af0c0; }
.pill.status-AUDIO_PLATFORM { background: #5a4010; color: #ffd58a; }
.pill.status-AUDIO_AUTO { background: #1d3a5a; color: #a8d4ff; }
.pill.fmt-reel, .pill.fmt-REEL { background: #3a1d4a; color: #e0b0ff; }
.pill.fmt-story, .pill.fmt-STORY { background: #1d3a5a; color: #a8d4ff; }
.pill.fmt-feed, .pill.fmt-FEED { background: #143528; color: #8af0c0; }

/* Mobile login — large tap targets, no iOS zoom quirks */
.login-main {
  max-width: 420px;
  margin: 1.25rem auto;
  padding: 0 1rem 2rem;
}
.login-card .login-input {
  font-size: 16px;
  min-height: 48px;
  padding: .85rem .9rem;
}
.login-card .login-submit {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
}
@media (max-width: 640px) {
  .login-main { margin-top: .75rem; }
  .login-main header.page h1 { font-size: 1.35rem; }
}

/* Finished Reel preview (vertical 9:16, iPhone-friendly) */
.mkt-reel-preview .mkt-reel-player-wrap {
  margin: 0.75rem auto 0;
  max-width: 360px;
  width: 100%;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
}
.mkt-reel-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 0;
}
.mkt-reel-decide label { display: block; }
.mkt-reel-decide input[type="text"] { width: 100%; }
