:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --panel: #fff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --soft-line: #e8eaed;
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --green: #137333;
  --amber: #b06000;
  --red: #c5221f;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { font-size: 14px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.user-email {
  color: var(--muted);
  font-size: 13px;
}

.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 96px);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  padding: 44px 40px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
}

.app-kicker {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.login-card h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
}

h1, h2, h3, p { margin-top: 0; }
h2 { font-size: 14px; letter-spacing: 0; }
h3 { font-size: 13px; letter-spacing: 0; }

.login-subtitle,
.login-note {
  color: var(--muted);
}

.login-subtitle {
  margin-bottom: 30px;
  font-size: 15px;
}

.login-note {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 13px;
}

button,
select,
input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, border-color .15s;
}

button:hover:not(:disabled) {
  background: #f1f3f4;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

select,
input {
  min-height: 34px;
  padding: 0 12px;
}

input {
  width: 100%;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--ink);
  font: inherit;
}

main {
  min-height: 100vh;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-small {
  min-height: 28px;
  padding: 0 12px;
  font-size: 12px;
}

.btn-outline {
  color: #3c4043;
  background: #fff;
  border: 1px solid var(--line);
}

.btn-login {
  min-height: 42px;
  padding: 0 22px;
  color: #3c4043;
  background: #fff;
  border: 1px solid var(--line);
}

.btn-login:hover:not(:disabled) {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 244px;
  flex-direction: column;
  width: 244px;
  height: 100vh;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--soft-line);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #fff;
  background: #244f3d;
  font-size: 13px;
  font-weight: 750;
}

.brand-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.newsletter-switcher {
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--soft-line);
}

.newsletter-switcher label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.newsletter-switcher select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.side-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  overflow-y: auto;
}

.side-nav button {
  justify-content: flex-start;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #3c4043;
  background: transparent;
  border-color: transparent;
  text-align: left;
}

.side-nav button:hover:not(:disabled) {
  background: #f3f5f4;
}

.side-nav button.active {
  color: #244f3d;
  background: #e8f2ed;
  border-color: transparent;
  font-weight: 700;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-section {
  margin: 12px 10px 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--soft-line);
}

.sidebar-footer .btn {
  justify-self: start;
}

.workspace {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.crumb {
  color: var(--muted);
  font-size: 12px;
}

.workspace-content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px 64px;
}

.workspace-content:has(> .stories-view:not([hidden])),
.workspace-content:has(> .history-view:not([hidden])) {
  max-width: none;
  padding: 0 0 64px;
}

.links, .artifact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.builds-detail {
  margin-top: 8px;
}

.builds-detail summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 650;
}

.builds-detail table {
  margin-top: 8px;
  background: #fafbfc;
}

.panel, .metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  margin-bottom: 16px;
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px;
  margin-bottom: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--soft-line);
}

.section-head > div {
  max-width: 860px;
}

.section-head h2 {
  margin-bottom: 4px;
}

.section-head p {
  margin-bottom: 0;
}

.panel > :not(.section-head):not(.table-wrap) {
  padding: 16px 20px;
}

.panel > .table-wrap {
  padding: 0;
}

.panel.danger {
  border-color: #f2b8b5;
  background: #fff8f7;
  padding: 16px 20px;
}

.app-status {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}

.app-status[data-tone="error"] {
  border-color: #f2b8b5;
  background: #fff8f7;
  color: var(--red);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  min-height: 92px;
  padding: 14px;
  background: #fbfcfd;
}

.metric .label, .muted {
  color: var(--muted);
}

.metric .label {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.metric .value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
}

.metric-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.issue-grid, .model-grid {
  display: grid;
  gap: 10px;
}

.issue-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}

.build-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
}

.build-summary .error-text {
  margin-top: 0;
}

.model-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  margin-bottom: 10px;
}

.label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.artifact-path {
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.edition-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 0 !important;
}

.edition-artifacts .link-button {
  min-height: 38px;
  padding-right: 16px;
  padding-left: 16px;
  border-color: #c9d7f0;
  background: #f6f9ff;
  color: var(--blue);
  font-weight: 700;
}

.edition-artifacts + .muted {
  padding-top: 0 !important;
}

.edition-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--soft-line);
}

.edition-actions .muted {
  min-width: 220px;
}

.error-text {
  margin-top: 5px;
  color: var(--red);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.scroll-panel {
  max-height: 68vh;
  overflow: auto;
}

.main-workspace {
  min-height: calc(100vh - 68px);
  background: var(--panel);
}

.main-workspace .section-head {
  padding-right: 28px;
  padding-left: 28px;
}

.stories-workspace .section-tabs {
  padding-right: 28px;
  padding-left: 28px;
}

.stories-workspace .story-filter-tabs {
  padding-bottom: 8px;
  border-bottom: 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.health-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--soft-line);
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.health-pill.ok {
  color: var(--green);
  border-color: #d5eadb;
  background: #f3fbf5;
}

.health-pill.blue {
  color: var(--blue);
  border-color: #d2e3fc;
  background: #f4f8ff;
}

.health-pill.warn {
  color: var(--amber);
  border-color: #fde1b3;
  background: #fff8ed;
}

.health-pill.bad {
  color: var(--red);
  border-color: #f4c7c3;
  background: #fff8f7;
}

.run-steps,
.metric-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 520px;
}

.run-steps span,
.metric-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.metric-chips b {
  margin-right: 5px;
  color: #3c4043;
}

.audit-detail {
  margin-top: 6px;
}

.audit-detail summary {
  width: fit-content;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.audit-json {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.audit-json pre {
  max-width: 360px;
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fafbfc;
  color: #3c4043;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--soft-line);
}

.section-tabs button {
  min-height: 34px;
  max-width: 260px;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}

.section-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-tabs button b {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.section-tabs button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.section-tabs button.active b {
  color: #e8f0fe;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th, td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8f9fa;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

td { color: #3c4043; }

tr:last-child td { border-bottom: 0; }
a { color: var(--blue); text-decoration: none; font-weight: 620; }
.link-button {
  min-height: 34px;
  color: var(--blue);
}

.link-button[aria-busy="true"] {
  color: var(--muted);
  cursor: wait;
}

.help-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.row-title { font-weight: 650; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.story-row { cursor: pointer; }
.story-row:hover td { background: #f7faff; }
.story-draft-preview {
  max-width: 680px;
  padding-left: 10px;
  border-left: 3px solid #dfe7f6;
  cursor: default;
}

.story-draft-title {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.story-draft-preview p {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
}

.story-draft-preview a {
  font-size: 12px;
}

.newsletter-fragment ul {
  margin: 0;
}

.newsletter-fragment li,
.newsletter-fragment p,
.newsletter-fragment h3 {
  max-width: 680px;
}

.newsletter-fragment > :first-child {
  margin-top: 0 !important;
}

.newsletter-fragment > :last-child {
  margin-bottom: 0 !important;
}

.story-preview-cell {
  min-width: min(680px, 64vw);
}

.story-actions-cell,
.story-order-cell {
  width: 1%;
  white-space: nowrap;
  vertical-align: top;
}

.story-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.story-meta-line b {
  color: #3c4043;
  font-weight: 650;
}
.story-row.dragging td {
  background: #eef4ff;
  opacity: .72;
}
.story-row.drag-over td {
  background: #e8f0fe;
  box-shadow: inset 0 2px 0 var(--blue);
}
.note-preview {
  max-width: 260px;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-actions, .decision-actions, .order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-actions {
  align-items: center;
  min-width: 132px;
}

.quick-actions button,
.order-actions button {
  padding: 4px 7px;
  font-size: 12px;
  line-height: 1.2;
}

.drag-handle {
  width: 30px;
  min-width: 30px;
  height: 28px;
  padding: 0;
  cursor: grab;
  font-size: 16px;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.quick-actions button.active, .decision-actions button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.quick-actions button:disabled,
.order-actions button:disabled {
  cursor: default;
  opacity: .82;
}

.manual-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.manual-story-grid label {
  display: grid;
  gap: 6px;
}

.manual-story-grid select {
  width: 100%;
}

.manual-story-grid textarea {
  min-height: 280px;
}

.manual-story-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.manual-story-panel {
  width: min(720px, 100%);
}

.event-editor-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .8fr);
}

.event-editor {
  position: sticky;
  top: 16px;
}

.event-editor form {
  display: grid;
  gap: 10px;
}

.event-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-date-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.edition-copy-panel {
  width: min(980px, 100%);
}

.editorial-copy-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, .8fr);
  gap: 18px;
  margin-top: 14px;
}

.editorial-copy-fields {
  display: grid;
  gap: 8px;
}

.editorial-copy-preview {
  min-height: 220px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fff;
}

.decision-box textarea {
  margin-top: 6px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 650;
}

.toggle-row input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  flex: 0 0 16px;
}

.override-box input,
.override-box select,
.override-box textarea {
  margin-top: 6px;
}

.override-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.original-copy {
  margin-top: 12px;
  color: var(--muted);
}

.original-copy summary {
  cursor: pointer;
  color: var(--blue);
  font-weight: 650;
}

.candidate-url {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.candidate-url input {
  margin-top: 3px;
}

.candidate-url.selected {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.note-label {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ok { background: #e8f5ee; color: var(--green); }
.warn { background: #fff3df; color: var(--amber); }
.bad { background: #ffe9e7; color: var(--red); }
.blue { background: #eaf1ff; color: var(--blue); }

.diff-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.diff-item, .detail-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fafbfc;
}

.diff-before { color: var(--red); margin-bottom: 6px; }
.diff-after { color: var(--green); }

.help-flow,
.editor-guide {
  display: grid;
  gap: 12px;
}

.help-step,
.guide-row {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft-line);
}

.help-step {
  grid-template-columns: 28px minmax(0, 1fr);
}

.help-step:last-child,
.guide-row:last-child {
  border-bottom: 0;
}

.help-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.help-step h3,
.guide-row h3 {
  margin-bottom: 3px;
}

.help-step p,
.guide-row p {
  max-width: 840px;
  color: #3c4043;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, .38);
}

.modal[hidden], [hidden] { display: none !important; }

.modal-panel {
  width: min(920px, 100%);
  height: 100%;
  background: var(--panel);
  box-shadow: -18px 0 36px rgba(15, 23, 42, .18);
  display: flex;
  flex-direction: column;
}

.modal-panel.wide {
  width: min(1180px, 100%);
}

.modal-panel.text-changes-panel {
  width: min(760px, 100%);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  padding: 16px;
  overflow: auto;
}

.artifact-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.text-change-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.text-change-list {
  display: grid;
  gap: 12px;
}

.text-change-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.text-change-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.text-change-item p {
  margin-bottom: 0;
}

.text-change-item .diff-before {
  color: var(--red);
}

.text-change-item .diff-after {
  color: var(--green);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 14px;
}

.detail-box {
  margin-top: 10px;
}

.detail-box.full-span {
  grid-column: 1 / -1;
  margin-top: 0;
}

.edition-preview-box {
  background: #fff;
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand,
  .newsletter-switcher,
  .sidebar-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 12px;
  }

  .side-nav button {
    min-width: 0;
  }

  .nav-section {
    grid-column: 1 / -1;
  }

  .topbar {
    position: static;
    align-items: stretch;
    min-height: 58px;
    padding: 10px 16px;
  }

  .workspace-content {
    padding: 12px 10px 48px;
  }

  .session { align-items: stretch; flex-direction: column; }
  .metrics, .split, .detail-grid, .issue-grid, .manual-story-grid, .model-grid, .audit-json, .editorial-copy-grid, .event-date-grid { grid-template-columns: 1fr; }
  .event-editor { position: static; }
  select { width: 100%; }
  .modal-head, .modal-actions, .section-head { align-items: stretch; flex-direction: column; }
}
