:root {
  color-scheme: light;
  --paper: #f7f5f1;
  --surface: #fffefa;
  --raised: #f2f0eb;
  --ink: #19364d;
  --secondary: #394954;
  --muted: #52616b;
  --accent: #914025;
  --line: #d8d5ce;
  --focus: #245781;
  font:
    100%/1.55 system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.bar,
main {
  max-width: 83rem;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.bar,
nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.bar {
  min-height: 64px;
  justify-content: space-between;
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  max-width: 100%;
  height: auto;
}
nav {
  gap: 16px;
}
nav a,
nav .plain {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px;
  text-decoration: none;
  color: var(--secondary);
}
nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--accent);
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.3;
  text-align: start;
  text-decoration: none;
  padding: 8px 16px;
  cursor: pointer;
}
button:hover,
.button:hover {
  background: var(--raised);
  border-color: var(--muted);
}
.login button,
.login .button,
.owner-action[data-action="prepare_candidate"] button,
.owner-action[data-action="promote_candidate"] button {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.login button:hover,
.login .button:hover,
.owner-action[data-action="prepare_candidate"] button:hover,
.owner-action[data-action="promote_candidate"] button:hover {
  background: #74331d;
}
.owner-action[data-action="rollback_release"] button,
.owner-action[data-action="discard_revision"] button {
  color: var(--accent);
}
nav .plain {
  padding-inline: 4px;
  background: none;
  border: 0;
  font-weight: 400;
}
nav .plain:hover,
nav a:hover {
  text-decoration: underline;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--surface);
}
main {
  padding-block: clamp(24px, 4vw, 56px) 64px;
}
main,
.grid > *,
.panel > *,
details,
form,
label {
  min-width: 0;
}
h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}
h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.03em;
}
main > a + h1,
main > p + h1 {
  margin-top: 12px;
}
h2 {
  margin: 0 0 16px;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
}
h3 {
  font-size: 1.125rem;
  margin: 20px 0 8px;
  font-weight: 600;
}
h4 {
  font-size: 1rem;
  margin: 12px 0 4px;
  font-weight: 600;
}
p,
li,
dd {
  overflow-wrap: anywhere;
}
p + p,
.panel > p + dl,
.panel > dl + p {
  margin-top: 8px;
}
p {
  color: var(--secondary);
}
.release,
.panel,
.login {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(16px, 3vw, 32px);
  background: var(--surface);
  margin-bottom: 16px;
}
.release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 3px solid var(--ink);
}
.release h2 {
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--muted);
}
.release-date {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.release details {
  margin-top: 8px;
}
.release summary {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}
.metrics {
  display: flex;
  gap: clamp(24px, 5vw, 64px);
}
.metrics div {
  display: flex;
  flex-direction: column-reverse;
}
.metrics dt,
.details dt,
.muted,
small {
  color: var(--muted);
}
.metrics dd {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 500;
}
small {
  display: block;
  font-size: 0.875rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}
.details {
  display: grid;
  grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.2fr);
  gap: 12px 16px;
}
.attention .notice,
[role="alert"] {
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 12px;
}
.attention .rows {
  margin-block: 12px;
}
.scroll {
  max-width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
td,
th {
  vertical-align: top;
  padding: 12px;
  border-block-end: 1px solid var(--line);
}
thead th {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}
tbody th {
  font-weight: 500;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
.coverage {
  white-space: nowrap;
}
.coverage :is(td, th):nth-child(n + 2):nth-child(-n + 4) {
  text-align: right;
}
caption {
  text-align: left;
  margin: 12px 0 4px;
  font-weight: 600;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}
.rows li > * {
  min-width: 0;
}
.rows li > span {
  color: var(--muted);
}
article + article,
details + details {
  border-top: 1px solid var(--line);
}
details > summary {
  cursor: pointer;
  display: list-item;
  min-height: 44px;
  padding-block: 10px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
details > summary::marker {
  color: var(--accent);
}
details[open] {
  padding-bottom: 12px;
}
details details {
  margin-inline-start: 12px;
}
.panel ul:not(.rows),
.panel ol {
  padding-inline-start: 24px;
}
.panel li + li:not(.rows li) {
  margin-top: 8px;
}
.panel details > p,
.panel details > h3 {
  margin-block-end: 8px;
}
form:not(nav form) {
  margin-block: 12px;
}
form :is(input, textarea, select):not([type="hidden"]) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 1px solid #939991;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  line-height: 1.4;
}
form textarea {
  resize: vertical;
  min-height: 88px;
}
form label {
  display: block;
  max-width: 44rem;
  margin-bottom: 12px;
  font-weight: 500;
}
form button {
  margin-top: 0;
}
.owner-action {
  max-width: 44rem;
}
code,
pre {
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}
pre {
  color: var(--secondary);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  max-inline-size: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}
.login {
  max-width: 32rem;
  margin: 4vh auto;
  padding: clamp(24px, 4vw, 40px);
}
.login h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.login p {
  margin-bottom: 16px;
}
.login form {
  margin-bottom: 0;
}
.login form > input {
  margin-bottom: 16px;
}
.job-state {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}
[data-job-status="needs_reconciliation"],
[data-job-status="failed"] {
  color: var(--accent);
}
@media (max-width: 45rem) {
  .grid {
    grid-template-columns: 1fr;
  }
  .bar,
  nav {
    column-gap: 12px;
    row-gap: 0;
  }
  nav {
    max-width: 100%;
  }
  .details {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .rows li {
    display: block;
  }
  .rows li > span {
    display: block;
  }
  .release {
    align-items: flex-start;
  }
}
/* A stable workspace for the guide ledger, research queue and evidence editors. */
:root {
  --paper: #f3f3ed;
  --surface: #fffefa;
  --raised: #f0efe8;
  --ink: #193247;
  --secondary: #374956;
  --muted: #52616b;
  --accent: #963e23;
  --line: #d5d8cf;
  --focus: #16648b;
  --control-radius: 6px;
}
.owner-app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.owner-rail {
  position: sticky; inset-block-start: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 32px; padding: 32px 16px 20px;
  background: #e9ece5; border: 0; border-inline-end: 1px solid var(--line);
  overflow-y: auto;
}
.rail-brand { padding-inline: 8px; display: grid; gap: 4px; }
.rail-brand .brand { min-height: 32px; }
.rail-brand .brand img { width: 168px; display: block; }
.rail-brand > span { color: var(--muted); font-size: .875rem; }
.owner-rail nav { display: grid; align-content: start; gap: 4px; }
.owner-rail nav a {
  gap: 12px; border-radius: var(--control-radius); padding-inline: 12px;
  color: var(--ink); font-size: .9375rem; font-weight: 500;
}
.owner-rail nav a:hover { background: #dce2d9; text-decoration: none; }
.owner-rail nav [aria-current=page] { color: #fff; background: var(--ink); text-decoration: none; }
.owner-rail nav svg { flex: none; }
.rail-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rail-foot a, .rail-foot button { display: inline-flex; align-items: center; min-height: 44px; color: var(--secondary); font: inherit; font-size: .875rem; }
.rail-foot form { margin: 0; }
.rail-foot button { border: 0; background: transparent; padding: 4px; }
.owner-app main { width: 100%; max-width: 100rem; padding: clamp(24px, 3.5vw, 56px); }
.owner-app h1 { font-size: clamp(2rem, 3.1vw, 3rem); margin-bottom: 24px; letter-spacing: -.035em; }
.owner-app .panel { border-radius: 10px; padding: clamp(16px, 2vw, 28px); }
.desk-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.desk-heading h1 { margin-bottom: 6px; }
.desk-heading p { color: var(--muted); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(232px, .9fr); align-items: start; gap: 20px; }
.desk-grid > *, .desk-main, .desk-tools, .field-pair > * { min-width: 0; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: .875rem; }
.owner-app .work-panel { border-top: 3px solid var(--ink); }
.work-panel .queue-empty { padding: 8px 0 20px; }
.work-list { list-style: none; margin: 0; padding: 0 !important; }
.work-list li, .weekly-work { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); margin: 0 !important; }
.work-name, .weekly-work a, .guide-ledger tbody th a { color: var(--ink); font-weight: 600; }
.work-list small { margin-top: 2px; }
.weekly-work { padding-bottom: 0; }
.state, .stage-label { display: inline-block; font-size: .8125rem; line-height: 1.5; font-weight: 500; }
.state { border-inline-start: 3px solid #8d9699; padding: 2px 8px; background: var(--raised); }
.state-working { border-color: #37668a; color: #204e74; background: #e7eff5; }
.state-warning { border-color: #a24a26; color: #7c361e; background: #f7e9dd; }
.state-done { border-color: #43765d; color: #2e5b46; background: #e5efe6; }
.queue-review { margin-top: 16px; }
.queue-review h3 span { color: var(--muted); font-weight: 400; }
.desk-tools .tool-link, .tool-link { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.tool-link:last-child { border: 0; }
.tool-link:hover { text-decoration: underline; }
.primary, .owner-action button:not(.plain) { border-radius: var(--control-radius); }
.button.primary, .actions .owner-action:first-child button:not(.plain), #plan-city form button { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover, #plan-city form button:hover { background: #78321c; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.login-bar { padding: 16px clamp(20px, 4vw, 56px); }
.sign-in-screen .login { border-top: 3px solid var(--ink); }
.agency-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.agency-toolbar label { flex: 1 1 148px; margin: 0; }
.agency-toolbar button { flex: 0 0 auto; }
.agency-table td, .agency-table th, .guide-ledger :is(td,th) { vertical-align: middle; }
.agency-table a, .guide-ledger a { text-underline-offset: 3px; }
.guide-ledger .count-cell { font-variant-numeric: tabular-nums; }
.editor-actions, .breadcrumbs { justify-content: flex-start; gap: 8px 20px; }
.breadcrumbs { font-size: .875rem; margin-bottom: 12px; }
.editor-actions { margin: 12px 0 20px; border-bottom: 1px solid var(--line); }
.editor-actions a { color: var(--accent); }
.platform-grid { display: grid; gap: 0; }
.platform-evidence { padding-block: 12px; }
.platform-evidence + .platform-evidence { border-top: 1px solid var(--line); }
.platform-evidence h3 { margin-top: 0; }
.field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; }
.source-list { overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-error { background: #f8e8df; padding: 8px 12px; color: #732c16; }
main [id] { scroll-margin-top: 16px; }
@media (max-width: 70rem) {
  .owner-app { grid-template-columns: 184px minmax(0, 1fr); }
  .rail-brand .brand img { width: 144px; }
  .desk-grid { grid-template-columns: 1fr; gap: 0; }
  .desk-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
}
@media (max-width: 48rem) {
  .owner-app { display: block; }
  .owner-rail { position: static; height: auto; gap: 8px; padding: 12px 16px 8px; border: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .rail-brand { display: flex; align-items: center; justify-content: space-between; padding: 0; }
  .owner-rail nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
  .owner-rail nav a { padding: 4px 8px; font-size: .875rem; gap: 6px; }
  .owner-rail nav svg { width: 15px; height: 15px; }
  .rail-foot { justify-content: flex-end; border: 0; gap: 16px; padding: 0; }
  .rail-foot a, .rail-foot button { min-height: 44px; }
  .owner-app main { padding: 24px 16px 40px; }
  .desk-heading { flex-wrap: wrap; margin-bottom: 16px; }
  .desk-tools { display: block; }
  .field-pair { grid-template-columns: 1fr; }
  .guide-ledger :is(th, td), .agency-table :is(td,th) { padding: 8px 6px; }
  .work-list li, .weekly-work { align-items: flex-start; }
}

.desk-overview { display:grid; grid-template-columns:minmax(0,1.85fr) minmax(230px,1fr); gap:16px; align-items:stretch; }
.desk-overview > *, .desk-overview [data-activity-panel] { min-width:0; }
.desk-overview .work-panel { height:100%; margin:0; }
.desk-overview { margin-bottom:16px; }
.desk-overview .desk-evidence { margin:0; }
.owner-app .desk-evidence h2 { margin:0; }
.work-panel #review-work { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.queue-counts { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin:12px 0; }
.queue-count { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; color:var(--ink); text-decoration:none; border-inline-start:1px solid var(--line); padding:4px 10px; }
.queue-count:first-child { padding-inline-start:0; border:0; }
.queue-count strong { font-size:1.55rem; line-height:1.1; font-variant-numeric:tabular-nums; }
.queue-count span { font-size:.8125rem; line-height:1.35; color:var(--secondary); }
.queue-count:hover span { text-decoration:underline; }
.activity-notice:empty { display:none; }
.activity-notice:not(:empty) { border-inline-start:3px solid var(--accent); padding:8px 12px; background:#f7e9dd; margin:8px 0 16px; }
.planned-markets { border-top:1px solid var(--line); padding-top:12px; }
.planned-markets strong { margin-inline-end:12px; }
.ledger .guide-ledger { width:100%; }
.owner-app .ledger, .owner-app .desk-release { margin-top:0; }
@media(max-width:62rem) { .desk-overview { grid-template-columns:minmax(0,1.4fr) minmax(195px,1fr); } }
@media(max-width:48rem) { .desk-overview { grid-template-columns:1fr; } .queue-count {padding-inline:6px;} }

/* One action per city; the same table becomes a set of labelled rows on phones. */
.owner-city-desk .panel-head { gap: 16px; align-items: flex-start; }
.owner-city-desk .panel-head p { color: var(--secondary); margin: 4px 0 12px; }
.owner-city-desk th[scope="row"] { color: var(--ink); font-size: 1rem; }
.owner-city-desk th[scope="row"] small { font-weight: 400; }
.city-desk-table :is(td,th) { text-align: start; }
.city-desk-table td[data-column] { font-variant-numeric: tabular-nums; }
.city-desk-table td time { display: inline-block; max-width: 14ch; }
.city-desk-table .desk-action { display: inline-block; padding-block: 6px; font-weight: 600; }
.city-desk-table .stage-label { white-space: normal; }
@media (max-width: 52rem) {
  .owner-city-desk .city-desk-table, .city-desk-table tbody { display: block; }
  .city-desk-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .city-desk-table tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; border-top: 1px solid var(--line); padding: 12px 0; }
  .city-desk-table tr :is(td,th) { border: 0; padding: 3px 0; }
  .city-desk-table td[data-column="Status"] { justify-self: end; }
  .city-desk-table td:is([data-column="Latest check"],[data-column="Next refresh"])::before {
    content: attr(data-column); display: block; color: var(--secondary); font-size: .78rem; font-weight: 600;
  }
  .city-desk-table td time { max-width: none; }
  .city-desk-action { grid-column: 1 / -1; }
  .city-desk-table .desk-action { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Workspace navigation and page hierarchy. */
.owner-app {
  background: #f6f7f7;
  grid-template-columns: clamp(12.5rem, 17vw, 15rem) minmax(0, 1fr);
}
.owner-pane {
  min-width: 0;
  min-height: calc(100dvh - 16px);
  margin: 8px 8px 8px 0;
  border: 1px solid #dce0e1;
  border-radius: 12px;
  background: #fff;
}
.owner-app .owner-rail,
.owner-app .owner-drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding: 24px 14px 14px;
  color: var(--ink);
  background: #f6f7f7;
  border: 0;
}
.owner-app .owner-rail { display: flex; }
.owner-app .rail-brand { display: grid; gap: 0; padding: 0 8px; }
.owner-app .rail-brand .brand img { width: 148px; }
.owner-app .rail-brand > span { font-size: .75rem; }
:is(.owner-rail, .owner-drawer) nav { display: grid; align-content: start; gap: 20px; }
.rail-group { display: grid; gap: 4px; }
.rail-group-name {
  color: #5d6570;
  padding-inline: 10px;
  font-size: .75rem;
  font-weight: 600;
}
.rail-group ul { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.owner-app :is(.owner-rail, .owner-drawer) nav a {
  display: flex;
  gap: 10px;
  min-height: 38px;
  padding: 7px 10px;
  color: #34424e;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
}
.owner-app :is(.owner-rail, .owner-drawer) nav a:hover { color: #172e40; background: #eaeded; text-decoration: none; }
.owner-app :is(.owner-rail, .owner-drawer) nav a[aria-current] { color: #18374a; background: #e1e8e9; font-weight: 600; text-decoration: none; }
.owner-app .rail-foot { justify-content: space-between; border-top: 1px solid #dce0e1; padding: 8px 4px 0; }
.rail-foot form { margin: 0; }
.owner-app .owner-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 4px 24px;
  position: sticky;
  z-index: 2;
  top: 0;
  border: 0;
  border-bottom: 1px solid #e0e3e4;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.owner-crumbs { display: block; min-width: 0; }
.owner-crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 8px; list-style: none; margin: 0; padding: 0; }
.owner-crumbs li { display: flex; align-items: center; min-width: 0; gap: 8px; overflow-wrap: anywhere; }
.owner-crumbs li + li::before { content: ""; width: 5px; height: 5px; flex: none; border: solid #838b92; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.owner-crumbs :is(a, span) { font-size: .8125rem; line-height: 1.4; }
.owner-crumbs a { display: inline-flex; align-items: center; min-height: 36px; padding: 0; color: #566471; }
.owner-crumbs [aria-current="page"] { color: #273743; font-weight: 600; text-decoration: none; }
.owner-app .owner-pane main { max-width: 100rem; padding: 24px 24px 48px; }
.owner-app .owner-pane main [id] { scroll-margin-top: 68px; }
.owner-app .owner-pane h1 { font-size: clamp(1.65rem, 2.4vw, 2rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 650; }
.owner-app .skip:focus { position: fixed; z-index: 3; }
.rail-trigger, .owner-drawer { display: none; }
@media (max-width: 48rem) {
  .owner-app { display: block; }
  .owner-app .owner-rail { display: none; }
  .owner-pane { border: 0; border-radius: 0; min-height: 100dvh; margin: 0; }
  .owner-app .owner-topbar { min-height: 52px; padding: 4px 16px 4px 8px; border-radius: 0; gap: 4px; }
  .owner-app .owner-pane main { padding: 20px 16px 40px; }
  .rail-trigger {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: none;
  }
  .owner-app .owner-drawer:popover-open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(18rem, calc(100% - 40px));
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: max(16px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
    border-right: 1px solid #dce0e1;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .owner-drawer::backdrop { background: rgb(20 35 50 / 25%); }
  .drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .owner-app .owner-drawer nav a, .owner-crumbs a { min-height: 44px; }
  .owner-crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .owner-crumbs li:nth-last-child(2)::before { display: none; }
}

.review-copy { max-width: 76ch; overflow-wrap: anywhere; }
.review-next { display: inline-block; padding-block: .5rem; font-weight: 650; }
.review-decisions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* The same edition stages accompany the roster, the agency decision and the final proof. */
.edition-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 16px 0 24px;
  padding: 0 0 12px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.edition-steps li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
.edition-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-variant-numeric: tabular-nums; }
.edition-steps li[aria-current] { color: var(--accent); font-weight: 600; }
.edition-steps li[aria-current] > span { color: white; background: var(--accent); border-color: var(--accent); }
.edition-steps .step-complete > span { background: var(--raised); color: var(--ink); }
.edition-overview { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(12rem,1fr); align-items: start; gap: 16px 32px; }
.edition-overview p { max-width: 58ch; color: var(--secondary); }
.edition-overview p:last-child { margin-bottom: 0; }
.edition-count { display: grid; gap: 12px; align-content: start; }
.edition-count progress { width: 100%; height: 8px; border: 0; background: var(--raised); border-radius: 4px; accent-color: var(--accent); }
.edition-count progress::-webkit-progress-bar { background: var(--raised); border-radius: 4px; }
.edition-count progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; }
.edition-count progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.edition-blocker { grid-column: 1/-1; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--paper); }
.edition-blocker ul { margin: 0 0 4px; padding-left: 20px; }
.edition-rank { display: inline-block; min-width: 3ch; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.edition-tools { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 16px; }
.decision-state { font-size: .875rem; color: var(--secondary); }
.decision-state[data-state="needs_changes"] { color: var(--accent); }
.decision-state[data-state="approved"] { color: #285c42; }
.decision-alternative, .advanced-release { margin-top: 16px; }
.decision-alternative summary, .advanced-release summary { font-weight: 600; padding: 8px 0; cursor: pointer; width: fit-content; }
.decision-alternative textarea { max-width: 48rem; }
.owner-action[data-action="publish_city"] button, .owner-action[data-agency-decision] .primary { color: white; border-color: var(--accent); background: var(--accent); }
.edition-context { color: var(--secondary); }
@media (max-width: 44rem) {
  .edition-steps { gap: 8px 12px; }
  .edition-steps li { gap: 4px; }
  .edition-overview { grid-template-columns: 1fr; }
  .edition-count progress { max-width: 28rem; }
}
