/* Crowd Reactions (AgentSociety) inside the Digital Lab.
   The Lab's own theme.css (assets/lab, copied unchanged) gives every colour, the type, the stickers, the buttons, the
   chips and the dark/light roles. This file keeps layout only and names no colour: role tokens only (--text, --surface,
   --edge, ...), so the page changes with the Lab's one switch. The parts other files draw (the course bar, the case
   bar, the helper) are given the same look here. */

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
p { margin: 0; }

/* The way back: one quiet line above the header (the Lab's bar replaces it when a step is opened from the Lab). */
.lab-bar { padding: 6px max(16px, calc((100% - 1312px) / 2)) 0; }
.lab-bar-link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  color: var(--text-dim); font: 700 max(12px, 0.76rem)/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
}
.lab-bar-link:hover { color: var(--text); text-decoration: underline 3px var(--link-line); text-underline-offset: 0.3em; }

/* The header: the app's tile and two-word name, the Lab's switch. */
.site-header {
  position: sticky; z-index: 20; top: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
  min-height: 4.65rem; padding: 0 max(16px, calc((100% - 1312px) / 2));
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 2.75rem; }
.wordmark strong { display: block; white-space: nowrap; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

/* One column, as the Lab's guided start. */
.soc { width: min(40rem, 100% - 32px); margin: 0 auto; padding: 24px 0 72px; }

/* Your check: one quiet card, the case in a line. */
.soc-context { margin: 0 0 22px; padding: 12px 16px; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); background: var(--surface); }
.soc-context-line { margin: 4px 0 2px; font-size: 1.05rem; overflow-wrap: anywhere; }
.soc-context-line strong { font-weight: 800; }
.soc-context-sep { color: var(--text-dim); }
#connected-area { color: var(--text); }
.soc-context-state { color: var(--text-dim); font-size: 0.9rem; line-height: 1.45; }
#workflow-state { color: var(--text); font-weight: 700; }

/* The steps: numbered tabs; the one you are on is the picked sticker. */
.soc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.soc-steps:has(> [data-stage="findings"]:not([hidden])) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.soc-steps button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 6px 10px;
  border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r);
  color: var(--text); background: var(--surface); box-shadow: var(--pop-sm) var(--pop-sm) 0 var(--edge);
  font: 700 0.95rem/1.2 var(--display); text-align: left; cursor: pointer;
  transition: transform var(--t-press) var(--ease), box-shadow var(--t-press) var(--ease);
}
.soc-steps .workflow-question-n { width: 1.7em; height: 1.7em; font-size: 0.85rem; transform: none; box-shadow: none; }
.soc-steps button[aria-current="step"] { border-color: var(--edge); color: var(--on-picked); background: var(--picked); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); font-weight: 800; }
.soc-steps button[aria-current="step"] .workflow-question-n { border-color: var(--on-picked); color: var(--on-picked); background: transparent; }
@media (hover: hover) {
  .soc-steps button:not([aria-current="step"]):hover { transform: translate(-1px, -1px); box-shadow: calc(var(--pop-sm) + 1px) calc(var(--pop-sm) + 1px) 0 var(--edge); }
}

/* A step: kicker and its "i", the question, one line, the fields, one lime action. */
#run-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.soc-kicker-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.soc-title { margin: 6px 0 10px; font: 800 clamp(2rem, 4.4vw, 3.1rem)/1.04 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.soc-title:focus, .soc-title:focus-visible { outline: none; }
.soc-line { margin: 0 0 24px; color: var(--text-dim); font-size: 1.1rem; line-height: 1.45; }
.soc-truth { margin: 22px 0 6px; color: var(--text-dim); }

/* The "i": one tap away, never inline (the Lab's compact case-page form). */
.soc-info { position: relative; }
.soc-info > summary { list-style: none; }
.soc-info > summary::-webkit-details-marker { display: none; }
.lab-info-open { display: grid; flex: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.soc-info-text {
  position: absolute; z-index: 5; right: 0; width: min(24rem, calc(100vw - 32px)); margin-top: 6px; padding: 14px 16px;
  border: var(--ol) solid var(--edge); border-radius: var(--r); color: var(--text); background: var(--surface);
  box-shadow: var(--pop-lg) var(--pop-lg) 0 var(--edge); font-size: 0.95rem; line-height: 1.5;
}
.soc-info-text p + p, .soc-info-text p + dl, .soc-info-text dl + p { margin-top: 0.6rem; }
.soc-info-text ol { margin: 0; padding-left: 1.2rem; }

/* Fields: the Lab's (theme.css section 14), drawn with its roles. */
.soc-field { margin: 0 0 18px; }
.soc-field > label { display: block; margin: 0 0 8px; font-weight: 800; font-size: 1rem; }
.soc-field :is(input, textarea, select) {
  display: block; width: 100%; min-height: 3rem; padding: 10px 14px;
  border: var(--ol) solid var(--control-edge); border-radius: var(--r);
  color: var(--text); background-color: var(--surface); box-shadow: var(--pop) var(--pop) 0 var(--edge);
  font: 600 1rem/1.4 var(--display);
}
.soc-field textarea { min-height: 7.5rem; resize: vertical; }
.soc-field :is(input, textarea)::placeholder { color: var(--text-dim); opacity: 1; }
.soc-field select {
  appearance: none; padding-right: 44px;
  background:
    linear-gradient(45deg, transparent 50%, var(--text) 50%) right 22px center / 7px 7px no-repeat,
    linear-gradient(135deg, var(--text) 50%, transparent 50%) right 15px center / 7px 7px no-repeat,
    var(--surface);
}
.soc-field :is(input, textarea, select):user-invalid, .soc-field [aria-invalid="true"] { border-color: var(--danger); }
.soc-field :is(input, select):disabled { border-style: dashed; color: var(--text-dim); box-shadow: none; }
.soc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.soc-hint { margin: 8px 0 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }
.soc-field .soc-hint { margin-top: 10px; }

/* Actions: back on the left, the one lime action on the right. */
.soc-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.primary-action, .quiet-action, .back-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 3rem; padding: 0 1.25rem; font-size: 1rem; cursor: pointer; }
.primary-action { padding: 0 24px; font-size: 1.05rem; }
.back-action { min-height: 44px; padding: 0 0.25rem; }
.lead-text { display: inline-flex; align-items: center; gap: 0.3em; min-height: 44px; padding: 0 0.35rem; font-size: 0.95rem; cursor: pointer; }
.soc-hint .lead-text { padding: 0; }
#use-suggested-sample { margin-top: 14px; }

/* Optional depth: a text link that opens. */
.soc-more { margin: 18px 0 0; }
.soc-more > summary {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; list-style: none; cursor: pointer;
  color: var(--text); font-weight: 700; text-decoration: underline 3px var(--link-line); text-underline-offset: 0.3em;
}
.soc-more > summary::-webkit-details-marker { display: none; }
.soc-more > summary::after { content: "+"; display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border: var(--ol-thin) solid var(--control-edge); border-radius: 50%; font-weight: 800; line-height: 1; text-decoration: none; }
.soc-more[open] > summary::after { content: "–"; }
.soc-more > summary:hover { text-decoration-thickness: 5px; }
.soc-more-body { margin-top: 12px; padding: 16px; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); background: var(--surface); }
.soc-more-body > :last-child { margin-bottom: 0; }

/* Pairs: a quiet name beside its value, a hairline between. */
.soc-pairs, .soc-review { margin: 0; }
.soc-pairs > div, .soc-review > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: var(--ol-thin) solid var(--divider); flex-wrap: wrap; }
.soc-pairs > div:last-child, .soc-review > div:last-child { border-bottom: 0; }
.soc-pairs dt { color: var(--text-dim); font-size: 0.9rem; }
.soc-pairs dd { margin: 0; font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Ready to run: your answers, each with Change. */
.soc-review { margin: 0 0 22px; padding: 4px 16px; border: var(--ol) solid var(--edge); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--pop) var(--pop) 0 var(--edge); }
.soc-recovery { margin: 18px 0 26px; padding: 22px; border: var(--ol) solid var(--edge); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--pop) var(--pop) 0 var(--edge); }
.soc-recovery > .soc-hint { margin: 0 0 20px; }
.soc-review > div { align-items: baseline; flex-wrap: nowrap; padding: 12px 0; }
.soc-review dt { flex: none; width: 5.5rem; color: var(--text-dim); font: 700 max(12px, 0.76rem)/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.soc-review dd { display: flex; flex: 1; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.soc-review dd > span { min-width: 0; }
.soc-review dd small { display: block; margin-top: 2px; color: var(--text-dim); font-weight: 500; font-size: 0.9rem; line-height: 1.45; }
.soc-review .lead-text { flex: none; min-height: 44px; margin: -10px 0; font-size: 0.9rem; }
.soc-availability { margin: 0 0 18px; color: var(--text); font-weight: 600; line-height: 1.5; }

/* The place the map sent: a sticker card. */
.area-handoff { margin: 18px 0 0; padding: 14px 16px; border: var(--ol) solid var(--edge); border-radius: var(--r); background: var(--surface); box-shadow: var(--pop) var(--pop) 0 var(--edge); }
.area-handoff__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.area-handoff__badge { margin-left: auto; }
.area-handoff__shape { margin: 6px 0; color: var(--text-dim); font-size: 0.9rem; }
.area-handoff__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0; }
.area-handoff__metrics > div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: var(--ol-thin) solid var(--divider); }
.area-handoff__metrics dt { color: var(--text-dim); font-size: 0.85rem; }
.area-handoff__metrics dd { margin: 0; font-weight: 700; font-size: 0.85rem; }

/* The result: three numbers as stickers, the rest one tap away. */
.run-activity { margin: 0 0 22px; padding: 14px 16px; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); background: var(--surface); }
.run-activity__head { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.run-activity__head span { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.run-progress { height: 12px; margin: 12px 0; overflow: hidden; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--pill); background: var(--bg); }
.run-progress span { display: block; width: 0; height: 100%; background: var(--picked); transition: width 0.25s var(--ease); }
#run-activity-line { color: var(--text-dim); font-size: 0.92rem; }
.run-activity__feed { display: grid; gap: 2px; max-height: 8.5rem; margin-top: 8px; overflow: auto; color: var(--text-dim); font: 700 0.78rem/1.5 var(--mono); }
.run-activity__feed div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-summary { overflow-wrap: anywhere; }
.result-summary__intro { margin: 0 0 14px; color: var(--text-dim); }
.result-summary__headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.result-summary__stat { padding: 12px 14px; border: var(--ol) solid var(--edge); border-radius: var(--r); background: var(--surface); box-shadow: var(--pop) var(--pop) 0 var(--edge); }
.result-summary__label { display: block; color: var(--text-dim); font: 700 max(12px, 0.72rem)/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.result-summary__value { display: block; margin-top: 6px; font: 800 1.7rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.result-summary__section { margin-top: 22px; }
.result-summary__section h3 { margin: 0 0 6px; font-size: 1.15rem; }
.result-summary__means { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.result-summary__means > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: var(--ol-thin) solid var(--divider); }
.result-summary__means dt { color: var(--text-dim); font-size: 0.9rem; }
.result-summary__means dd { margin: 0; font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.result-summary__steps { display: grid; gap: 8px; }
.result-summary__step { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); }
.result-summary__step-meta { font-size: 0.9rem; }
/* A state by shape and a word: finished = solid, part = dashed (never a colour alone). */
.result-summary__status { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: var(--pill); font: 700 0.78rem/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase; }
.result-summary__status--complete { border: var(--ol-thin) solid var(--edge); color: var(--on-picked); background: var(--picked); }
.result-summary__status--partial { border: var(--ol-thin) dashed var(--text); color: var(--text); }
.cost-note { margin-top: 12px; }
#observations { max-height: 28rem; margin: 0; overflow: auto; color: var(--text); font: 700 0.75rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.soc-next { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 28px; }
#run-status { margin-bottom: 18px; }

/* The helper ("Help with this check"): a drawer, as the Lab's. */
.soc-helper:empty { display: none; }
.soc-helper { margin-top: 40px; }
#society-lab-assist { margin: 0; padding: 0; border: 0; background: transparent; }
#society-lab-assist > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px;
  border: var(--ol) solid var(--edge); border-radius: var(--r-lg); color: var(--text); background: var(--surface);
  box-shadow: var(--pop) var(--pop) 0 var(--edge); font-weight: 800; font-size: 1.05rem; list-style: none; cursor: pointer;
}
#society-lab-assist > summary::-webkit-details-marker { display: none; }
#society-lab-assist > summary [data-ui-icon] { display: none; }
#society-lab-assist[open] > summary { box-shadow: var(--pop-lg) var(--pop-lg) 0 var(--edge); }
#society-lab-assist > :not(summary) { margin-top: 14px; }
#society-lab-assist pre { color: var(--text); font: 700 0.78rem/1.5 var(--mono); white-space: pre-wrap; }
/* Inside the drawer, the Lab planner's parts (lab-discovery.css); the Ask stays a quiet sticker, the step keeps the lime. */
#society-lab-assist .lab-assist { color: var(--text); background: var(--surface); border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); font: 500 1rem/1.5 var(--display); }
#society-lab-assist .lab-assist .la-eyebrow { color: var(--text-dim); font: 700 max(12px, 0.76rem)/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
#society-lab-assist .lab-assist h3 { font: 800 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
#society-lab-assist .lab-assist :is(input:not([type=checkbox]), textarea, select) { border: var(--ol) solid var(--control-edge); border-radius: var(--r); color: var(--text); background: var(--surface); font-weight: 600; }
#society-lab-assist .lab-assist input[type=checkbox] { accent-color: var(--text); }
#society-lab-assist .lab-assist button { border: var(--ol) solid var(--control-edge); border-radius: var(--pill); color: var(--text); background: var(--surface); box-shadow: var(--pop-sm) var(--pop-sm) 0 var(--edge); font-weight: 800; }
#society-lab-assist .lab-assist button:hover:not(:disabled) { border-color: var(--control-edge); }
#society-lab-assist .lab-assist [type=submit], #society-lab-assist .lab-assist button[type=submit]:is(:hover, :focus-visible):not(:disabled) { border-color: var(--edge); color: var(--text); background: var(--surface); }
#society-lab-assist .lab-assist button:disabled { border-style: dashed; color: var(--text-dim); box-shadow: none; opacity: 1; }
#society-lab-assist .lab-assist :is(details, article) { border-color: var(--divider); }
#society-lab-assist .lab-assist :is(.la-status, .la-confirm) { border-color: var(--control-edge); }
#society-lab-assist :is(.lab-assist, .lab-workspace) :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#society-lab-assist .lab-workspace { --lw-blue: var(--text-dim); --lw-ink: var(--text); --lw-bg: var(--surface); border-color: var(--control-edge); border-top-color: var(--control-edge); border-radius: var(--r-lg); font-family: var(--display); }
#society-lab-assist .lab-workspace :is(input, textarea, select) { border: var(--ol) solid var(--control-edge); border-radius: var(--r); color: var(--text); background: var(--surface); }
#society-lab-assist .lab-workspace :is(button, .lw-link) { border: var(--ol) solid var(--control-edge); border-radius: var(--pill); color: var(--text); background: var(--surface); box-shadow: var(--pop-sm) var(--pop-sm) 0 var(--edge); font-family: var(--display); font-weight: 800; }
#society-lab-assist .lab-workspace :is([data-lw-review], [data-lw-active]) { border-left-color: var(--picked); background: var(--bg); }
#society-lab-assist .lab-workspace [data-lw-status] { color: var(--text-dim); }
#society-lab-assist .lab-workspace :is(details, article, .lw-result-grid article, [data-lw-note-options] label) { border-color: var(--divider); background: transparent; }
#society-lab-assist .lab-workspace :is(small, .lw-result-grid dt) { color: var(--text-dim); }

/* The Lab's course bar (course-handoff.css draws it in an older look): the Lab's card, its "i" and its way back. */
#society .course-task-guide {
  margin: 0 0 22px; padding: 4px 8px 4px 16px;
  border: var(--ol) solid var(--edge); border-radius: var(--r); color: var(--text); background: var(--surface);
  box-shadow: var(--pop) var(--pop) 0 var(--edge); font: 500 0.95rem/1.45 var(--display);
}
#society .course-task-guide__heading { background: transparent; }
#society .course-task-guide__line strong { color: var(--text); font-weight: 800; }
#society .course-task-guide__title, #society .course-task-guide--lab .course-task-guide__line .course-task-guide__title { color: var(--text-dim); font-weight: 600; }
#society .course-task-guide__back {
  min-height: 44px; padding: 0 0.6rem; border: 0; color: var(--text); background: transparent;
  font: 700 0.95rem/1.2 var(--display); text-decoration: none;
}
#society .course-task-guide__back:hover { text-decoration: underline 3px var(--link-line); text-underline-offset: 0.3em; background: transparent; }
#society .course-task-guide__back:focus-visible, #society .course-task-guide__more:focus-visible, #society .course-task-guide__toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; background: transparent; }
#society .course-task-guide__more { color: var(--text); }
#society .course-task-guide__more > span {
  width: 32px; height: 32px; border: var(--ol-thin) solid var(--control-edge); color: var(--text); background: var(--surface);
  box-shadow: var(--pop-sm) var(--pop-sm) 0 var(--edge); font: 800 1rem/1 var(--display); font-style: normal;
}
#society .course-task-guide__more[aria-expanded="true"] > span { border-color: var(--edge); color: var(--on-picked); background: var(--picked); }
#society .course-task-guide__body, #society .course-task-guide--lab .course-task-guide__body { border-top: var(--ol-thin) solid var(--divider); color: var(--text); }
#society :is(.course-task-guide__detail, .course-task-guide__count, .course-task-guide__audience, .course-task-guide__label) { color: var(--text-dim); font-size: 0.9rem; }
#society :is(.course-task-guide__testing, .course-task-guide__note, .course-task-guide--lab .course-task-guide__note, .course-task-guide__notes label) { color: var(--text); font-size: 0.95rem; }
#society .course-task-guide__status { color: var(--text); font-weight: 700; }
#society .course-task-guide__notes summary, #society .course-task-guide__toggle { color: var(--text); background: transparent; border-color: var(--control-edge); }
#society .course-task-guide textarea {
  border: var(--ol-thin) solid var(--control-edge); border-radius: var(--r); color: var(--text); background: var(--bg); font: 600 0.95rem/1.4 var(--display);
}
#society .course-task-guide a:not(.course-task-guide__back) { color: var(--text); }

/* The case bar (case-store.mjs writes its look inline): the Lab's colours and type instead. */
#digital-case-banner {
  border-bottom: var(--ol) solid var(--rule) !important; color: var(--text) !important; background: var(--bg) !important;
  font: 600 0.9rem/1.4 var(--display) !important; padding: 0.35rem max(16px, calc((100% - 1312px) / 2)) !important;
}
#digital-case-banner > span { color: var(--text-dim); opacity: 1 !important; }
#digital-case-banner a { color: var(--text) !important; font-weight: 700; text-decoration: underline 3px var(--link-line); text-underline-offset: 0.3em; }
#digital-case-banner summary > span { border: var(--ol-thin) solid var(--control-edge) !important; color: var(--text); background: var(--surface); font: 800 0.85rem/1 var(--display) !important; }

/* The shared app icons, in the Lab's hand: one colour, round strokes, no frame corners (theme.css section 27). */
[data-ui-icon] { color: inherit; }

/* A phone: the tabs keep their numbers and words; pairs stack. */
@media (max-width: 639px) {
  .site-header { min-height: 62px; }
  .soc { padding-top: 16px; }
  .soc-steps { gap: 6px; }
  .soc-steps button { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: 4px 2px; font-size: 0.8rem; text-align: center; }
  .soc-row, .result-summary__means, .area-handoff__metrics { grid-template-columns: 1fr; }
  .result-summary__headline { grid-template-columns: 1fr 1fr; }
  .result-summary__value { font-size: 1.4rem; }
  .soc-actions { flex-wrap: nowrap; }
  .soc-actions .primary-action { flex: 1 1 auto; padding: 0 16px; }
  .soc-review > div { flex-wrap: wrap; gap: 4px 12px; }
  .soc-review dt { width: auto; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .soc-steps button, .run-progress span { transition: none; }
  .soc-steps button { transform: none !important; }
}
