.journey { padding: 26px 28px 18px; }
.journey .demo-heading { gap: 20px; }
.journey-scene { position: relative; margin-top: 26px; }
.journey-grid { display: grid; grid-template-columns: minmax(0,1fr) 38px 192px 38px minmax(0,1fr); align-items: center; }
.journey-station { min-width: 0; height: 270px; background: #2b3028; border: 1px solid #49523e; border-radius: 9px; padding: 17px; }
.journey-station-title { display: flex; gap: 11px; align-items: center; }
.journey-station-title > svg { width: 25px; height: 25px; color: #c4d3b0; }
.journey-station h3 { font-size: 16px; font-weight: 500; }
.journey-station-title p { font-size: 11px; color: #a9b59a; margin-top: 4px; }
.board-tabs { display: flex; justify-content: space-between; gap: 4px; margin: 22px 0 15px; font-size: 10px; color: #a5b297; }
.board-tabs span { padding: 5px 7px; border-radius: 4px; transition: background .3s,color .3s; }
.board-tabs .selected { background: #43552f; color: var(--lime); }
.task-dock { width: 174px; height: 87px; max-width: 100%; position: relative; margin-inline: auto; }
.dock-hint { display: grid; place-items: center; height: 100%; border: 1px dashed #526047; border-radius: 7px; color: #a4b495; font-size: 11px; }
.board-body { display: grid; grid-template-columns: minmax(0,1fr) 174px; gap: 10px; align-items: start; }
.board-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; min-width: 0; }
.board-queue li { padding: 8px 10px; border: 1px solid #526047; border-radius: 6px; background: #333a2e; color: #c4d3b0; font-size: 11px; min-width: 0; }
.board-queue li span { display: block; font: 9px var(--mono); color: #a5b297; }
.board-queue li strong { display: block; font-weight: 500; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey-task { width: 174px; height: 87px; max-width: 100%; padding: 12px 14px; background: #d0ff70; color: #253314; border: 1px solid #ddff9c; border-radius: 7px; box-shadow: 0 6px 20px #0003; z-index: 3; }
.task-dock > .journey-task { position: absolute; inset: 0; }
.journey:not(.ready) .journey-controls, .journey:not(.ready) .motion-toggle { display: none; }
.journey.ready .journey-task { position: absolute; left: 0; top: 0; max-width: none; }
.task-eyebrow { display: flex; justify-content: space-between; font: 9px var(--mono); color: #536b35; }
.task-eyebrow > span:first-child { display: flex; align-items: center; gap: 5px; }
.task-eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: #658c2a; }
.journey-task strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.5px; margin-top: 5px; }
.task-state { display: flex; align-items: center; gap: 5px; font-size: 10px; margin-top: 6px; color: #526931; }
.task-state svg { width: 12px; height: 12px; }
.journey-caption { font-size: 11px; color: #b6c5a4; margin-top: 18px; text-align: center; }
.journey-hub { display: flex; flex-direction: column; align-items: center; position: relative; height: 270px; }
/* The ring and tile share a square grid cell, independent of caption wrapping. */
.hub-emblem { width: 106px; height: 106px; aspect-ratio: 1; flex: none; display: grid; place-items: center; }
.journey-hub .autop-core { grid-area: 1 / 1; width: 66px; height: 66px; aspect-ratio: 1; flex: none; border-radius: 18px; animation: none; }
.journey-hub .tower-symbol { display: block; aspect-ratio: 1; }
.journey-hub h3 { font-size: 13px; letter-spacing: 2px; margin-top: 8px; }
.journey-hub p { font-size: 11px; color: #b7c4a8; margin-top: 7px; text-align: center; }
.journey-hub .task-dock { margin-top: 12px; flex-shrink: 0; }
.hub-halo { grid-area: 1 / 1; width: 100%; height: 100%; aspect-ratio: 1; border: 1px solid #53653b; border-radius: 50%; transform-origin: center; }
.journey-link { display: flex; align-items: center; gap: 2px; color: #82996a; }
.journey-link > span { height: 1px; background: #596c43; flex: 1; }
.journey-link svg { width: 15px; height: 15px; }
.runner-home > .task-dock { margin-top: 18px; }
.runner-progress { margin-top: 18px; }
.runner-code { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; padding: 0 8px; }
.runner-code span { height: 4px; background: #7a876b; border-radius: 2px; opacity: .4; }
.runner-code span:nth-child(1) { grid-column: 1/5; background: #c2a9e9; }
.runner-code span:nth-child(2) { grid-column: 2/8; background: #a4d8d4; }
.runner-code span:nth-child(3) { grid-column: 2/6; }
.runner-code span:nth-child(4) { grid-column: 1/4; }
.runner-progress p { font-size: 11px; color: #b7c7a5; text-align: center; margin-top: 10px; }
.runner-checks { display: none; align-items: center; justify-content: center; gap: 14px; }
.runner-checks span { display: flex; gap: 4px; align-items: center; font-size: 11px; color: var(--lime); }
.runner-checks svg { width: 14px; height: 14px; }
.review-return { display: flex; align-items: center; gap: 15px; margin: 17px 30px 0; }
.return-guide { display: flex; align-items: center; color: #788d61; flex: 1; }
.return-guide > span { height: 28px; flex: 1; border: 1px solid #50633d; border-top: 0; border-right: 0; border-radius: 0 0 0 8px; }
.return-guide > svg { width: 16px; height: 16px; transform: rotate(180deg); }
.return-guide:last-child { flex-direction: row-reverse; }
.return-guide:last-child > span { transform: scaleX(-1); }
.review-gate { display: flex; align-items: center; gap: 18px; }
.review-gate-title { display: flex; align-items: center; gap: 7px; color: #a8b899; font-size: 11px; }
.review-gate-title svg { width: 18px; height: 18px; }
.review-placeholder { display: flex; height: 100%; align-items: center; font-size: 11px; line-height: 1.6; color: #90a17f; }
.journey-story { display: flex; align-items: center; gap: 13px; padding-block: 16px; min-height: 64px; border-top: 1px solid #455039; margin-top: 13px; }
.story-number { color: var(--lime); font: 10px var(--mono); white-space: nowrap; }
.journey-story p { font-size: 14px; color: #d2dec6; }
.merged-badge { display: none; align-items: center; gap: 6px; margin-left: auto; color: #d3b7ff; font-size: 12px; }
.merged-badge svg { width: 16px; height: 16px; }
.journey-controls { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.journey-controls button { background: #2b3326; color: #b1c0a0; border: 1px solid #46533a; border-radius: 5px; padding: 10px 6px; font-size: 11px; transition: background .3s; }
.journey-controls button span { color: #7e936a; margin-right: 5px; font: 9px var(--mono); }
.journey-controls button[aria-current="step"] { color: var(--lime); border-color: #879e63; background: #3a4a2b; }
.journey-controls button[aria-current="step"] span { color: var(--lime); }
.journey-controls button:hover { background: #3d4b31; }
.journey-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; color: #9cac8d; font-size: 9px; line-height: 1.5; }
.journey-note > span:first-child { font: 8px/1.5 var(--mono); }
.journey[data-phase="1"] .hub-halo { animation: hub-signal 1.6s ease-out infinite; }
.journey[data-phase="2"] .runner-code span { animation: write-code 1.6s ease-in-out infinite; }
.journey[data-phase="2"] .runner-code span:nth-child(2) { animation-delay: .2s; }
.journey[data-phase="2"] .runner-code span:nth-child(3) { animation-delay: .4s; }
.journey[data-phase="2"] .runner-code span:nth-child(4) { animation-delay: .6s; }
.journey[data-phase="3"] .runner-code,.journey[data-phase="4"] .runner-code,.journey[data-phase="5"] .runner-code { display: none; }
.journey[data-phase="3"] .runner-checks,.journey[data-phase="4"] .runner-checks,.journey[data-phase="5"] .runner-checks { display: flex; }
.journey[data-phase="4"] .review-placeholder { visibility: hidden; }
.journey[data-phase="4"] .review-gate-title { color: var(--lime); }
.journey[data-phase="5"] .journey-task { background: #dfcaff; border-color: #ebdcff; }
.journey[data-phase="5"] .task-eyebrow,.journey[data-phase="5"] .task-state { color: #6c4b92; }
.journey[data-phase="5"] .task-eyebrow i { background: #8d5cb7; }
.journey[data-phase="5"] .merged-badge { display: flex; }
.journey[data-phase="5"] .board-tabs .selected { color: #dfcaff; background: #4b3b60; }
@keyframes hub-signal { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.3); opacity: 0; } }
@keyframes write-code { 0%,100% { opacity: .35; transform: scaleX(.7); transform-origin: left; } 50% { opacity: 1; transform: scaleX(1); } }
@media(max-width:1100px) { .journey-grid { grid-template-columns: minmax(0,1fr) 23px 174px 23px minmax(0,1fr); }.journey-station { padding: 14px 10px; }.board-tabs { font-size: 9px; }.board-tabs span { padding-inline: 4px; }.board-queue li { padding-inline: 7px; }.journey-station h3 { font-size: 14px; }.journey-station-title p { font-size: 10px; }.journey-note > span:last-child { max-width: 240px; text-align: right; } }
@media(max-width:800px) { .journey-grid { grid-template-columns: minmax(0,1fr) 16px 150px 16px minmax(0,1fr); }.task-dock { width: 144px; }.board-body { grid-template-columns: minmax(0,1fr) 144px; }.journey-task { padding-inline: 10px; }.journey-task strong { font-size: 16px; }.journey-station-title { gap: 7px; }.journey-station-title > svg { width: 18px; }.journey-station-title p { font-size: 9px; }.journey-station h3 { font-size: 12px; }.journey-caption { font-size: 10px; }.journey-hub p { font-size: 10px; }.runner-checks { gap: 5px; }.runner-checks span { font-size: 9px; }.runner-checks svg { width: 11px; }.review-return { margin-inline: 0; }.journey-story p { font-size: 12px; }.journey-controls button { font-size: 10px; }.journey-controls button span { display: none; } }
@media(max-width:600px) {
 .hero h1 { font-size: clamp(43px,12.3vw,76px); }
 .journey { padding: 21px 16px 16px; }.journey .demo-heading { gap: 10px; }.journey .demo-heading h2 { max-width: 250px; font-size: 22px; }.journey-scene { margin-top: 23px; }.journey-grid { grid-template-columns: 1fr; gap: 12px; }.journey-station { height: auto; min-height: 214px; padding: 14px; }.journey-station-title > svg { width: 24px; height: 24px; }.journey-station h3 { font-size: 15px; }.journey-station-title p { font-size: 11px; }.board-tabs { font-size: 11px; margin-block: 13px 10px; }.task-dock { width: 174px; }.board-body { grid-template-columns: minmax(0,1fr) 174px; }.journey-caption { margin-top: 11px; font-size: 11px; }.journey-link { display: none; }.journey-hub { display: grid; grid-template-columns: 84px minmax(0,1fr); column-gap: 12px; height: auto; min-height: 148px; align-content: center; justify-items: center; padding: 8px 0; }.hub-emblem { grid-column: 1; grid-row: 1; width: 74px; height: 74px; }.journey-hub .autop-core { width: 52px; height: 52px; border-radius: 14px; }.journey-hub h3 { grid-column: 1; grid-row: 2; margin-top: 6px; font-size: 10px; }.journey-hub p { grid-column: 1; grid-row: 3; margin-top: 5px; font-size: 9px; text-align: center; max-width: 84px; }.journey-hub .task-dock { grid-column: 2; grid-row: 1 / 4; position: relative; align-self: center; margin: 0; width: min(174px,100%); }.runner-home { min-height: 231px; }.runner-home > .task-dock { margin-top: 14px; }.runner-progress { margin-top: 13px; }.runner-code { max-width: 200px; margin: auto; }.runner-checks { gap: 17px; }.runner-checks span { font-size: 11px; }.runner-progress p { font-size: 11px; }.review-return { margin-top: 15px; gap: 6px; }.review-gate { flex-direction: column; gap: 10px; }.review-gate-title { font-size: 11px; }.review-placeholder { justify-content: center; text-align: center; }.return-guide > span { height: 45px; }.review-gate .task-dock { height: 87px; }.journey-story { align-items: start; gap: 8px; min-height: 75px; margin-top: 8px; padding-block: 13px; }.story-number { font-size: 9px; padding-top: 3px; }.journey-story p { font-size: 12px; line-height: 1.5; }.merged-badge { display: none !important; }.journey-controls { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }.journey-controls button { font-size: 11px; padding: 10px 4px; }.journey-controls button span { display: inline; font-size: 8px; margin-right: 3px; }.journey-note { flex-direction: column; gap: 7px; font-size: 9px; }.journey-note > span:last-child { max-width: none; text-align: left; }.journey-note > span:first-child { font-size: 7px; }
}
/* Range syntax keeps the queue breakpoints continuous at fractional widths (e.g. 600.5 px). */
@media(width < 380px) { .board-body { grid-template-columns: 1fr; }.board-queue { order: 2; grid-template-columns: 1fr 1fr; } }
@media(600px < width < 900px) { .board-body { grid-template-columns: 1fr; }.board-queue { order: 2; grid-template-columns: 1fr 1fr; gap: 5px; }.board-queue li { padding-inline: 6px; font-size: 10px; }.github-home { height: auto; min-height: 270px; } }
@media(prefers-reduced-motion:reduce) { .journey * { animation: none !important; transition: none !important; } }

/* Both selectors change this illustrative journey, never a project setting. */
.autonomy-demo-controls { margin-top: 22px; padding-bottom: 16px; border-bottom: 1px solid #455039; }
.autonomy-picker { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.autonomy-picker > span { color: #b3c3a1; font: 9px var(--mono); letter-spacing: .7px; margin-right: 8px; }
.autonomy-picker button { border: 1px solid #566349; border-radius: 5px; padding: 9px 13px; background: #293123; color: #cad6be; font-size: 12px; }
.autonomy-picker button[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: #253314; }
.autonomy-demo-controls > p { margin-top: 10px; font-size: 12px; color: #b6c6a6; line-height: 1.5; }
.journey:not(.ready) .autonomy-demo-controls { display: none; }
.journey-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.journey-story { flex-wrap: wrap; }
.journey-story > p { flex: 1; min-width: 160px; }
.approval-button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #ebc077; border-radius: 5px; background: #ebc077; color: #302310; font-size: 12px; font-weight: 500; }
.approval-button svg { width: 15px; height: 15px; }
.approval-button[hidden] { display: none; }
.journey[data-awaiting-approval="true"] .review-gate-title { color: #ebc077; }
.journey[data-awaiting-approval="true"] .journey-task { background: #f1d49b; border-color: #ffe7bd; }
.journey[data-awaiting-approval="true"] .task-state { color: #725428; }
.journey-controls button:disabled { opacity: .4; cursor: not-allowed; }
.autonomy-row { width: 100%; text-align: left; color: var(--ink); transition: border-color .2s, background .2s; }
.autonomy-row .autonomy-copy { min-width: 0; }
.autonomy-row[aria-pressed="true"] { border-color: #7e9b50; background: #e5ecd9; box-shadow: inset 3px 0 #79974d; }
.autonomy-row:not(:disabled):hover { border-color: #7e9b50; }
.autonomy-watch { display: inline-block; margin-top: 9px; font-size: 12px; color: #536c35; text-decoration: underline; text-underline-offset: 3px; }
.autonomy-watch + .card-footnote { margin-top: 9px; }
.autonomy-selection { min-height: 32px; }
@media(max-width:600px) {
 .autonomy-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
 .autonomy-picker > span { grid-column: 1/-1; margin-bottom: 4px; }
 .autonomy-picker button { padding: 11px 4px; font-size: 11px; min-height: 42px; }
 .autonomy-demo-controls { margin-top: 18px; }
 .autonomy-demo-controls > p { font-size: 11px; }
 .approval-button { margin-left: 0; min-height: 42px; }
 .journey-story > p { min-width: calc(100% - 60px); }
 .autonomy-selection { font-size: 11px; }
}

/* Pulse the escalation without competing with the card's travel transform. */
.journey[data-awaiting-resolution="true"] .journey-task { background: #f1d49b; border-color: #ffe7bd; animation: needs-help 1.8s ease-in-out infinite; }
.journey[data-awaiting-resolution="true"] .review-gate-title { color: #ebc077; }
.journey[data-awaiting-resolution="true"] .task-state, .journey[data-awaiting-resolution="true"] .task-eyebrow { color: #65471f; }
.journey[data-awaiting-resolution="true"] .task-eyebrow i { background: #a06b20; }
@keyframes needs-help { 0%,100% { box-shadow: 0 0 0 0 #ebc07700, 0 6px 20px #0003; } 50% { box-shadow: 0 0 0 7px #ebc07740, 0 0 26px #ebc07755; } }
.resolution-panel { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px; border: 1px solid #907347; border-radius: 7px; background: #383125; color: #f1d49b; }
.resolution-panel[hidden] { display: none; }
.resolution-panel > svg { width: 24px; height: 24px; flex: none; }
.resolution-panel > div { flex: 1; min-width: 0; }
.resolution-label { font: 9px var(--mono); letter-spacing: .6px; }
.resolution-panel h3 { font-size: 16px; font-weight: 500; margin-block: 6px; }
.resolution-panel p { font-size: 12px; line-height: 1.5; color: #d5c7b1; }
.resolution-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 1px solid #ebc077; border-radius: 5px; background: #ebc077; color: #302310; font-size: 12px; font-weight: 500; }
.resolution-button svg { width: 15px; height: 15px; flex: none; }
@media(max-width:800px) { .resolution-panel { flex-wrap: wrap; }.resolution-button { margin-left: 38px; } }
@media(max-width:600px) { .resolution-panel { padding: 13px; gap: 10px; }.resolution-panel > svg { width: 20px; height: 20px; }.resolution-panel h3 { font-size: 15px; }.resolution-button { width: 100%; margin-left: 0; } }
