:root {
  --bg: #f6f7f9; --panel: #fff; --ink: #1c2330; --muted: #667085; --line: #e4e7ec;
  --brand: #2f5bea; --accent: #0f9d76; --warn: #b54708; --warn-bg: #fff4e5; --err: #b42318; --radius: 12px;
  --proposed: #eef0f4; --proposed-ink: #475467; --queued: #e8eefe; --queued-ink: #2343b5;
  --progress: #fff1d6; --progress-ink: #93590a; --done: #dcf5ea; --done-ink: #0b7354; --dropped: #f2f2f2; --dropped-ink: #8a8f98;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --panel: #1b2029; --ink: #e8eaee; --muted: #99a2b1; --line: #2c333f; --brand: #7c9bff; --accent: #3ccf9f;
    --warn: #f5b768; --warn-bg: #33270f; --err: #ff8a80;
    --proposed: #2a303b; --proposed-ink: #c4cad4; --queued: #1f2c52; --queued-ink: #a9bdff;
    --progress: #3a2c10; --progress-ink: #f5c26b; --done: #113a2c; --done-ink: #6fdcb4; --dropped: #262a31; --dropped-ink: #8a919c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; }
.card h2 { margin: 0; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
p { margin: .25rem 0 .75rem; }
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem;
  padding: .6rem 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.top.client { position: static; }
.brand { font-weight: 650; color: var(--ink); display: inline-flex; align-items: center; gap: .5rem; }
.brand img { max-height: 32px; max-width: 140px; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .85rem; font-size: .92rem; }
.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.head { margin-bottom: .75rem; }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.lede { font-size: 1.02rem; margin: .1rem 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { position: absolute; left: -9999px; }
.card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; color: inherit; }
.card.narrow { max-width: 420px; margin: 8vh auto 0; }
.shown-once { border-color: var(--accent); }
.notice { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: .55rem .75rem; }
.error { color: var(--err); font-weight: 550; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pcard { display: flex; flex-direction: column; padding: 0; margin: 0; overflow: hidden; height: 100%; }
.pcard:hover { text-decoration: none; border-color: var(--brand); }
.pcard.pad { padding: 16px; gap: .35rem; }
.shot { display: block; aspect-ratio: 16 / 9; background: var(--proposed); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot-empty { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 650; color: var(--muted); }
.pbody { display: flex; flex-direction: column; flex: 1; gap: .4rem; padding: 14px 16px 16px; }
.ptitle { font-weight: 650; color: var(--ink); }
.pitch { color: var(--muted); font-size: .92rem; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.pill { display: inline-block; padding: .08rem .55rem; border-radius: 99px; font-size: .76rem; font-weight: 550; white-space: nowrap; background: var(--proposed); color: var(--proposed-ink); }
.pill.faint { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.st-proposed { background: var(--proposed); color: var(--proposed-ink); }
.st-queued { background: var(--queued); color: var(--queued-ink); }
.st-progress { background: var(--progress); color: var(--progress-ink); }
.st-done { background: var(--done); color: var(--done-ink); }
.st-dropped { background: var(--dropped); color: var(--dropped-ink); }
.running { background: var(--accent); color: #fff; }
.bar { display: block; height: 6px; background: var(--proposed); border-radius: 99px; overflow: hidden; margin: .35rem 0; }
.bar.big { height: 10px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.rows { display: flex; flex-direction: column; margin-top: .4rem; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; padding: .65rem 0; border-top: 1px solid var(--line); color: inherit; }
.rows > .row:first-child { border-top: 0; }
a.row:hover { text-decoration: none; background: color-mix(in srgb, var(--brand) 5%, transparent); }
.row.col { flex-direction: column; gap: .3rem; align-items: stretch; }
.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-title { font-weight: 550; overflow-wrap: anywhere; }
.row-sum { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.row-who { color: var(--brand); font-size: .82rem; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex-shrink: 0; }
.phase { margin: 1rem 0 0; }
form.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: .7rem; }
.sep { border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.formgrid { display: grid; grid-template-columns: 1fr; gap: .7rem; align-items: end; }
@media (min-width: 620px) { .formgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
label { display: block; font-size: .88rem; font-weight: 550; }
label.check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 450; }
.choose { display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
input:not([type=checkbox]):not([type=file]), select, textarea { display: block; width: 100%; min-height: 42px; margin-top: .2rem; padding: .5rem .65rem; font: inherit;
  color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
input[type=file] { display: block; margin-top: .3rem; max-width: 100%; font-size: .85rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .45rem 1rem; font: inherit; font-weight: 550; color: #fff;
  background: var(--brand); border: 1px solid var(--brand); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn.small { min-height: 34px; padding: .2rem .7rem; font-size: .85rem; }
.actions { display: flex; gap: .5rem; align-items: center; }
.wrapbtns { flex-wrap: wrap; }
.wrapbtns input { flex: 1 1 200px; margin: 0; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 12px; }
.filters select { margin: 0; }
@media (min-width: 620px) { .filters { display: flex; } .filters select { width: auto; } }
.copyline { display: flex; gap: .5rem; margin-bottom: .6rem; }
.copyline input { margin: 0; min-width: 0; flex: 1; font-size: .85rem; }
.facts { display: grid; grid-template-columns: 1fr; gap: .15rem .9rem; margin: 0; }
@media (min-width: 620px) { .facts { grid-template-columns: 90px 1fr; } }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.job { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); border-radius: 8px; padding: .75rem; font: .88rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 0; max-height: 70vh; overflow-y: auto; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.shots img, .reqshot { width: 100%; border-radius: 8px; display: block; border: 1px solid var(--line); }
.feed, .check-list { list-style: none; margin: 0; padding: 0; }
.feed li, .check-list li { padding: .45rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.feed li:first-child, .check-list li:first-child { border-top: 0; }
.qr { text-align: center; margin: .5rem 0; }
.qr svg { background: #fff; border-radius: 8px; max-width: 100%; height: auto; }
.wrapcode { overflow-wrap: anywhere; font-size: .85rem; }
.access { padding: 0 0 .6rem; }
.right-row { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; padding: .3rem 0; }
.right-row > span { flex: 1 1 100%; font-weight: 550; font-size: .9rem; }
summary { cursor: pointer; color: var(--brand); }
details > form { margin-top: .6rem; }
