:root {
  --bg: #12100d;
  --panel: #1b1814;
  --line: #3a332a;
  --text: #f3ead8;
  --mute: #b7a78d;
  --gold: #d4a04a;
  --ok: #7dcea0;
  --bad: #e07a6a;
  --run: #e8c36a;
  --font: "Segoe UI", system-ui, sans-serif;
  --serif: "Palatino Linotype", Palatino, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); min-height: 100%; }
a { color: var(--gold); text-decoration: none; }
.top {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between; padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line); background: #16130f;
}
.brand { display: flex; gap: .7rem; align-items: center; color: inherit; }
.mark { color: var(--gold); font-size: 1.4rem; }
.kicker { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.top h1 { margin: .1rem 0 0; font-size: 1rem; font-weight: 650; }
.tabs { display: flex; gap: .25rem; }
.tab, .ghost, .primary, select, input, textarea, button {
  font: inherit; color: var(--text);
}
.tab, .ghost {
  background: transparent; border: 1px solid var(--line);
  padding: .35rem .7rem; cursor: pointer; border-radius: 6px;
}
.tab.on, .primary { background: var(--gold); color: #1a1408; border-color: var(--gold); font-weight: 650; }
.primary { padding: .45rem .9rem; cursor: pointer; border-radius: 6px; border: 0; }
.tools { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.tools label { font-size: .75rem; color: var(--mute); display: flex; gap: .35rem; align-items: center; }
.tools input { background: var(--panel); border: 1px solid var(--line); padding: .3rem .45rem; width: 11rem; }
.banner { margin: 0; padding: .5rem 1.1rem; background: #3a221c; color: #f3c7bf; }
.pane { display: grid; grid-template-columns: 280px 1fr; min-height: calc(100vh - 4.2rem); }
.pane.wide, #pane-warehouse { display: block; }
.rail { border-right: 1px solid var(--line); padding: 1rem; overflow: auto; }
.rail h2, .work h2, .wide h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.list { display: flex; flex-direction: column; gap: .3rem; margin: 0 0 1.1rem; }
.list button, .jobs button {
  text-align: left; background: var(--panel); border: 1px solid var(--line);
  padding: .45rem .55rem; cursor: pointer; border-radius: 6px; width: 100%;
}
.list button.on, .jobs button.on { border-color: var(--gold); }
.list .meta, .jobs .meta, .lede, .status { color: var(--mute); font-size: .82rem; }
.work, .wide, .doc, .test { padding: 1rem 1.2rem 2rem; }
.job-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.jobs { display: flex; flex-direction: column; gap: .35rem; margin: .8rem 0 1.2rem; }
.pill { display: inline-block; padding: .05rem .4rem; border-radius: 99px; font-size: .72rem; text-transform: uppercase; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .run { color: var(--run); }
.job-detail {
  border: 1px solid var(--gold); border-radius: 10px; padding: .9rem 1rem;
  background: #1a1713;
}
.job-detail h3 { margin: 0 0 .4rem; font-family: var(--serif); font-size: 1.25rem; }
.job-detail video, .job-detail audio, .job-detail img { max-width: 100%; background: #000; }
.intake table { width: 100%; border-collapse: collapse; font-size: .8rem; margin: .6rem 0; }
.intake th { text-align: left; color: var(--mute); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.intake td, .intake th { border-top: 1px solid var(--line); padding: .3rem .25rem; vertical-align: top; }
.intake code { color: var(--gold); font-size: .76rem; }
.brief { white-space: pre-wrap; background: #100e0b; border: 1px solid var(--line); padding: .7rem; border-radius: 8px; }
.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin: .6rem 0 1rem; }
.stat { border: 1px solid var(--line); padding: .6rem .8rem; border-radius: 8px; min-width: 10rem; }
.stat b { display: block; font-size: 1.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.doc { max-width: 48rem; }
.doc h1 { font-family: var(--serif); font-size: 1.8rem; }
.doc h2 { font-family: var(--serif); font-size: 1.25rem; color: var(--text); letter-spacing: 0; text-transform: none; margin-top: 1.4rem; }
.doc table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.doc td, .doc th { border-top: 1px solid var(--line); padding: .35rem; text-align: left; }
.test { max-width: 40rem; display: flex; flex-direction: column; gap: .7rem; }
.test label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--mute); }
.test input, .test select, .test textarea {
  background: var(--panel); border: 1px solid var(--line); padding: .45rem; border-radius: 6px; width: 100%;
}
.row { display: flex; gap: .4rem; }
.row input:first-child { max-width: 8rem; }
@media (max-width: 900px) {
  .pane { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
}
