.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.editorial-copy { font-size: clamp(16px, 1.5vw, 19px); }
.editorial-copy > * + * { margin-top: 1em; }
#scenarios { scroll-margin-block-start: 20px; }
.studio-scenarios .route-controls button { min-height: 44px; }
.studio-scenarios .route-controls button:hover { box-shadow: inset 0 -3px var(--lime); }
.scenario-panel {
  margin-top: 18px;
  padding: clamp(18px, 3.5vw, 37px);
  border: 1px solid #bbbdaf;
  background: #faf9f3;
  box-shadow: inset 4px 0 var(--lime);
}
.scenario-panel h3 { font-size: clamp(22px, 3vw, 39px); line-height: 1.1; letter-spacing: -.05em; }
.scenario-panel > p { margin-block: 13px 17px; color: #45493d; line-height: 1.65; }
.scenario-hints { margin-block: 8px 0; padding-inline-start: 22px; line-height: 1.6; }
.scenario-hints li + li { margin-top: 6px; }
.scenario-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.scenario-service { display: inline-flex; gap: 6px; padding: 6px 0; font-weight: 800; text-decoration: underline; text-underline-offset: .22em; }
.route-section + #scenarios { border-top: 1px solid #bbbdaf; }

.catalogue-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-block: 0 22px;
  padding: 15px clamp(14px, 2.4vw, 28px);
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--lime);
}
.catalogue-selection p { margin-top: 5px; color: var(--muted); }
.selection-actions, .brief-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.brief-download { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; }
.brief-actions button:disabled { opacity: .55; cursor: default; transform: none; }
[data-brief-https] a { text-decoration: underline; }
.selection-actions button, .brief-route button { min-height: 44px; border: 0; background: none; text-decoration: underline; text-underline-offset: .22em; }
.selection-actions button:disabled { opacity: .5; cursor: default; }
.catalogue-item { display: grid; min-width: 0; }
.pick-service {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.pick-service:hover { border-color: var(--lime); }
.pick-service[aria-pressed="true"] { background: var(--lime); color: var(--ink); }
.pick-symbol { font-size: 20px; line-height: 1; }

.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.stage { padding: 16px; border: 1px solid var(--rule); }
.stage[open] { border-color: var(--lime); }
.stage summary { cursor: pointer; }
.stage summary span { color: var(--lime); font-size: 12px; text-transform: uppercase; }
.stage summary strong { display: block; margin-top: 8px; }
.stage p { margin-top: 14px; color: var(--muted); line-height: 1.65; }

.brief-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.brief-route { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #a4a595; border-inline-start: 4px solid #6a8920; }
.brief-preview { min-width: 0; padding: clamp(18px, 3.1vw, 38px); border: 1px solid var(--rule); scroll-margin-block-start: 20px; }
.brief-preview h2 { margin-block: 12px; font-size: clamp(25px, 3.3vw, 45px); line-height: 1.1; letter-spacing: -.06em; }
.brief-preview > p:last-of-type { color: var(--muted); line-height: 1.55; }
.brief-progress { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin-block: 16px; }
.brief-progress li { padding: 6px 8px; border: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.brief-progress li::before { content: '○'; margin-inline-end: 5px; }
.brief-progress [data-done="true"] { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.brief-progress [data-done="true"]::before { content: '✓'; }
.brief-preview pre {
  max-height: 340px;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0;
  padding: 12px;
  background: #272a21;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 850px) {
  .brief-workspace, .stage-grid { grid-template-columns: minmax(0, 1fr); }
}
