:root {
  color-scheme: light;
  --marine: #06384b;
  --ink: #082e3e;
  --muted: #526d77;
  --cyan: #20c3da;
  --green: #22ad78;
  --coral: #f26757;
  --field: #f1f7f8;
  --cyan-field: #dcf8fb;
  --green-field: #dcf7e9;
  --coral-field: #ffebe7;
  --line: #bad1d6;
  --white: #ffffff;
  --focus: #006b7c;
  --shadow: 0 18px 48px rgba(6, 56, 75, 0.11);
  --font-display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --shell: 1480px;
  --route-progress: 6.25%;
}

* { box-sizing: border-box; }

html {
  background: var(--field);
  color: var(--ink);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0 6.5%, rgba(32, 195, 218, 0.05) 6.5% 6.58%, transparent 6.58% 100%),
    linear-gradient(180deg, #ffffff 0, #f8fbfb 36rem, var(--field) 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 0;
  top: 0;
  left: max(24px, calc((100vw - var(--shell)) / 2 + 26px));
  bottom: 0;
  width: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(32, 195, 218, 0.48) 12%, rgba(34, 173, 120, 0.2) 74%, transparent);
}

button,
select,
a { font: inherit; }

button,
select { color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

img,
iframe { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--white);
  background: var(--marine);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.eyebrow,
.micro-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: normal; word-break: normal; }

h1,
h2,
h3 {
  margin-block: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

p { line-height: 1.55; }

.prototype-notice {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 1px solid #de6f62;
  border-radius: 999px;
  color: #7d2d25;
  background: var(--coral-field);
  font-size: 0.78rem;
  font-weight: 700;
}

.prototype-notice::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--coral);
}

.language-control,
.segment-control,
.decision-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.language-control button,
.segment-control button,
.decision-control button {
  min-height: 36px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

.language-control button[aria-pressed="true"],
.segment-control button[aria-pressed="true"],
.decision-control button[aria-pressed="true"] {
  color: var(--white);
  background: var(--marine);
}

.button,
.text-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--marine);
  border-radius: 999px;
  color: var(--white);
  background: var(--marine);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.text-button:hover { background: #0d5267; }

.button.secondary,
.text-button.secondary {
  color: var(--marine);
  background: var(--white);
}

.button.secondary:hover,
.text-button.secondary:hover { background: var(--cyan-field); }

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--marine);
  background: var(--white);
  font-size: 1.15rem;
  font-weight: 800;
}

.icon-button:hover { background: var(--cyan-field); }

/* Hub */
.hub-header {
  padding-block: 24px 0;
}

.hub-bar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--marine);
  font-weight: 800;
  text-decoration: none;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.brand span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.hub-actions,
.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: clamp(40px, 8vw, 120px);
  padding-block: 76px 64px;
}

.hub-intro h1 {
  max-width: 850px;
  margin-top: 16px;
  color: var(--marine);
  font-size: clamp(3rem, 5.3rem, 5.3rem);
  line-height: 0.96;
}

.hub-intro .lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.baseline-panel {
  align-self: end;
  padding: 24px 0 4px 24px;
  border-left: 2px solid var(--cyan);
}

.baseline-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--marine);
  font-size: 1.28rem;
}

.baseline-panel p {
  margin: 10px 0 20px;
  color: var(--muted);
}

.baseline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.review-sequence {
  position: relative;
  padding-block: 24px;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--cyan-field), rgba(220, 247, 233, 0.7));
}

.review-sequence .shell {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  gap: 24px;
}

.review-sequence strong { color: var(--marine); }
.review-sequence p { margin: 0; color: var(--muted); }

.section-index { padding-block: 60px 90px; }

.group-block + .group-block { margin-top: 54px; }

.group-heading {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--marine);
}

.group-heading h2 {
  color: var(--marine);
  font-size: 1.7rem;
}

.section-row {
  display: grid;
  grid-template-columns: 150px minmax(220px, 0.72fr) minmax(280px, 1.28fr) 190px 48px;
  min-height: 92px;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}

.section-row:hover,
.section-row:focus-visible {
  padding-inline: 14px;
  background: var(--white);
}

.section-number {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.section-number::before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--cyan);
}

.section-row h3 {
  color: var(--marine);
  font-size: 1.15rem;
}

.section-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.row-meta { color: var(--muted); font-size: 0.8rem; }

.row-meta strong {
  display: block;
  color: var(--marine);
  font-size: 0.95rem;
}

.row-arrow {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  font-size: 1.2rem;
}

.hub-footer {
  padding-block: 28px;
  color: var(--muted);
  background: var(--marine);
}

.hub-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hub-footer strong { color: var(--white); }

/* Section workbench */
.workbench-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.workbench-bar {
  display: grid;
  min-height: 72px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--marine);
  font-weight: 750;
  text-decoration: none;
}

.current-section {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.current-section strong {
  display: block;
  overflow: hidden;
  color: var(--marine);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-section span { color: var(--muted); font-size: 0.74rem; }

.route-progress {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: #e0ecee;
}

.route-progress::after {
  display: block;
  width: var(--route-progress);
  height: 100%;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.section-nav-band {
  position: relative;
  z-index: 10;
  background: var(--marine);
}

.section-nav-scroll {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.section-nav-scroll a {
  display: inline-flex;
  min-width: 42px;
  min-height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #c6dadd;
  font-size: 0.75rem;
  font-weight: 750;
  text-decoration: none;
}

.section-nav-scroll a:hover { color: var(--white); border-color: #5f8390; }

.section-nav-scroll a[aria-current="page"] {
  color: var(--marine);
  background: var(--cyan-field);
}

.workbench-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding-block: 48px 30px;
}

.workbench-intro h1 {
  margin-top: 10px;
  color: var(--marine);
  font-size: 2.65rem;
  line-height: 1.04;
}

.workbench-intro p {
  max-width: 800px;
  margin: 16px 0 0;
  color: var(--muted);
}

.decision-summary {
  min-width: 190px;
  padding-left: 20px;
  border-left: 2px solid var(--green);
}

.decision-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--marine);
}

.workbench-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 74px;
}

.candidate-panel,
.preview-workspace,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.candidate-panel {
  position: sticky;
  top: 144px;
  align-self: start;
  max-height: calc(100vh - 166px);
  overflow: hidden;
}

.candidate-panel-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--field);
}

.candidate-panel-head strong {
  display: block;
  margin-top: 4px;
  color: var(--marine);
}

.candidate-list {
  max-height: calc(100vh - 260px);
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.candidate-button {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  align-items: start;
  gap: 10px;
  padding: 15px 14px;
  border: 0;
  border-bottom: 1px solid #dde8ea;
  text-align: left;
  background: var(--white);
}

.candidate-button:hover { background: var(--field); }

.candidate-button[aria-current="true"] {
  background: var(--cyan-field);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.direction-chip {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--marine);
  background: var(--field);
  font-size: 0.7rem;
  font-weight: 800;
}

.candidate-button[aria-current="true"] .direction-chip { background: var(--white); }

.candidate-button strong {
  display: block;
  color: var(--marine);
  font-size: 0.86rem;
  line-height: 1.3;
}

.candidate-button small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border: 1px solid #7d969e;
  border-radius: 50%;
  background: var(--white);
}

.status-dot[data-status="shortlist"] { border-color: #127c55; background: var(--green); }
.status-dot[data-status="reject"] { border-color: #a13c31; background: var(--coral); }

.workspace-stack { min-width: 0; }

.preview-workspace { overflow: hidden; }

.preview-toolbar {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--field);
}

.preview-title {
  min-width: 0;
}

.preview-title strong {
  display: block;
  overflow: hidden;
  color: var(--marine);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-title span { color: var(--muted); font-size: 0.72rem; }

.preview-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.segment-control.viewport button { min-width: 42px; padding-inline: 10px; }

.preview-stage {
  position: relative;
  min-height: 720px;
  padding: 22px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(6, 56, 75, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(6, 56, 75, 0.035) 1px, transparent 1px),
    #e8f0f2;
  background-size: 24px 24px;
}

.preview-stage::before,
.preview-stage::after {
  position: absolute;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
}

.preview-stage::before {
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateY(220px);
}

.preview-stage::after {
  top: 0;
  left: 60px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--green), transparent);
  transform: translateX(260px);
}

.preview-stage.is-aligning::before {
  animation: align-row 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.preview-stage.is-aligning::after {
  animation: align-column 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes align-row {
  0% { opacity: 0; transform: translateY(220px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(0); }
}

@keyframes align-column {
  0% { opacity: 0; transform: translateX(260px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; transform: translateX(0); }
}

.preview-device {
  position: relative;
  z-index: 1;
  width: 1280px;
  min-width: 320px;
  height: 674px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #9cb6bd;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: width 260ms ease, height 260ms ease;
}

.preview-device[data-viewport="desktop"] { width: 1280px; height: 674px; }
.preview-device[data-viewport="tablet"] { width: 768px; height: 720px; }
.preview-device[data-viewport="mobile390"] { width: 390px; height: 760px; }
.preview-device[data-viewport="mobile320"] { width: 320px; height: 720px; }

.preview-device iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.preview-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  color: var(--muted);
  background: var(--white);
  font-size: 0.85rem;
}

.preview-device.is-loaded .preview-loading { display: none; }

.candidate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.candidate-pager { display: flex; gap: 8px; }

.detail-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
}

.detail-main { padding: 26px; }

.detail-main h2 {
  margin-top: 8px;
  color: var(--marine);
  font-size: 1.65rem;
}

.detail-main .summary {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-item {
  min-width: 0;
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-item:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.detail-item dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.detail-item dd {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.48;
}

.detail-aside {
  padding: 26px;
  border-left: 1px solid var(--line);
  background: var(--field);
}

.source-record {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.source-record li {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.source-record span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.source-record strong,
.source-record code {
  display: block;
  margin-top: 5px;
  color: var(--marine);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.evidence-notice {
  margin-top: 20px;
  padding: 14px;
  border-left: 3px solid var(--coral);
  color: #713028;
  background: var(--coral-field);
  font-size: 0.8rem;
  line-height: 1.45;
}

.section-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.section-pager a {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
}

.section-pager a:hover { border-color: var(--cyan); background: var(--cyan-field); }

.section-pager span { color: var(--muted); font-size: 0.74rem; }
.section-pager strong { display: block; margin-top: 3px; color: var(--marine); }

.toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: 20px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--marine);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible { opacity: 1; transform: translateY(0); }

[hidden] { display: none !important; }

@media (max-width: 1120px) {
  .hub-intro { grid-template-columns: 1fr; }
  .baseline-panel { max-width: 720px; }
  .section-row { grid-template-columns: 110px minmax(200px, 0.8fr) minmax(240px, 1.2fr) 130px 44px; gap: 16px; }
  .workbench-layout { grid-template-columns: 248px minmax(0, 1fr); }
  .candidate-button { grid-template-columns: 30px minmax(0, 1fr) 10px; padding-inline: 11px; }
  .preview-toolbar { align-items: flex-start; }
  .preview-controls { flex-wrap: wrap; justify-content: flex-end; }
  .detail-panel { grid-template-columns: 1fr; }
  .detail-aside { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 860px) {
  .shell { width: min(calc(100% - 30px), var(--shell)); }
  body::before { left: 14px; }
  .hub-bar { align-items: center; padding-block: 14px; }
  [data-export-decisions] {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }
  [data-export-decisions]::before {
    content: "\2193";
    font-size: 1.15rem;
    line-height: 1;
  }
  .hub-intro { padding-block: 54px 44px; }
  .hub-intro h1 { font-size: 3.4rem; }
  .review-sequence .shell { grid-template-columns: 1fr auto; }
  .review-sequence p { grid-column: 1 / -1; grid-row: 2; }
  .group-heading { grid-template-columns: 80px 1fr; }
  .section-row { grid-template-columns: 70px minmax(0, 1fr) 44px; min-height: 105px; }
  .section-row p { grid-column: 2; }
  .row-meta { grid-column: 2; }
  .row-arrow { grid-column: 3; grid-row: 1 / span 3; }
  .workbench-bar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .workbench-intro { grid-template-columns: 1fr; gap: 22px; }
  .decision-summary { max-width: 360px; }
  .workbench-layout { display: block; }
  .candidate-panel { position: relative; top: auto; max-height: none; margin-bottom: 16px; }
  .candidate-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
  .candidate-list li { flex: 0 0 235px; }
  .candidate-button { height: 100%; min-height: 104px; border-right: 1px solid var(--line); border-bottom: 0; }
  .candidate-button[aria-current="true"] { box-shadow: inset 0 3px 0 var(--cyan); }
  .preview-stage { min-height: 690px; padding: 14px; }
  .preview-device[data-viewport="desktop"] { height: 640px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item,
  .detail-item:nth-child(even) { padding: 16px 0; border-left: 0; }
}

@media (max-width: 620px) {
  .brand span { display: none; }
  .brand { min-width: 0; }
  .brand strong { font-size: 1.08rem; white-space: nowrap; }
  .hub-bar { gap: 8px; padding-block: 10px; }
  .hub-actions { flex: 0 0 auto; gap: 6px; }
  .hub-actions .prototype-notice { display: none; }
  .language-control { flex: 0 0 auto; padding: 2px; }
  .language-control button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
  }
  .hub-intro h1 {
    max-width: 100%;
    font-size: 2.65rem;
    line-height: 1;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hub-intro .lead { font-size: 1rem; }
  .baseline-panel { padding-left: 16px; }
  .review-sequence .shell { grid-template-columns: 1fr; }
  .review-sequence .button { justify-self: start; }
  .section-index { padding-block: 44px 60px; }
  .group-heading { grid-template-columns: 1fr; gap: 4px; }
  .section-row { grid-template-columns: 52px minmax(0, 1fr) 38px; gap: 10px; padding-block: 12px; }
  .section-row:hover,
  .section-row:focus-visible { padding-inline: 6px; }
  .section-number { gap: 6px; }
  .section-number::before { width: 16px; }
  .section-row p { font-size: 0.82rem; }
  .hub-footer .shell { align-items: flex-start; flex-direction: column; }
  .workbench-bar { min-height: 64px; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; }
  .back-link {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
  }
  .back-link:hover { background: var(--cyan-field); }
  .back-link span:last-child { display: none; }
  .current-section { padding-left: 8px; }
  .current-section span { display: none; }
  .section-actions { gap: 5px; }
  .section-actions .prototype-notice { display: none; }
  .workbench-intro { padding-block: 36px 22px; }
  .workbench-intro h1 { font-size: 2.1rem; }
  .preview-toolbar { display: block; }
  .preview-controls { margin-top: 12px; justify-content: flex-start; }
  .segment-control.viewport { max-width: 100%; overflow-x: auto; }
  .segment-control.viewport button { min-width: 48px; }
  .preview-stage { min-height: 620px; }
  .preview-device[data-viewport="desktop"],
  .preview-device[data-viewport="tablet"] { height: 570px; }
  .preview-device[data-viewport="mobile390"],
  .preview-device[data-viewport="mobile320"] { height: 650px; }
  .candidate-actions { align-items: flex-start; flex-direction: column; }
  .decision-control { width: 100%; justify-content: space-between; }
  .decision-control button { flex: 1; padding-inline: 7px; }
  .detail-main,
  .detail-aside { padding: 20px; }
  .section-pager { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .shell { width: calc(100% - 22px); }
  body::before { left: 10px; }
  .hub-intro h1 { font-size: 2.2rem; }
  .workbench-bar { gap: 6px; }
  .current-section { padding-left: 6px; }
  .section-row { grid-template-columns: 46px minmax(0, 1fr) 36px; }
  .candidate-list li { flex-basis: 218px; }
  .preview-stage { padding: 10px; }
  .detail-main h2 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .preview-stage.is-aligning::before,
  .preview-stage.is-aligning::after { animation: none; opacity: 0; }
}
