/* The active commit holds one composed screen; the breadcrumb holds its history. */
.git-flow{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:26px 36px;max-width:1500px;margin:auto;min-width:0}
.flow-screen{display:grid;grid-template-rows:auto minmax(0,1fr);gap:18px;min-height:0;min-width:0;align-content:start}
.flow-screen header{min-width:0}.flow-kicker{display:flex;gap:18px;align-items:center;margin:0 0 12px;color:var(--coral);font:700 12px/1.4 ui-monospace,monospace}.flow-kicker span{color:var(--muted);font-weight:500}
.git-flow h2{font-size:clamp(21px,2.2vw,30px);line-height:1.3;letter-spacing:-.035em;margin:0;max-width:920px;overflow-wrap:anywhere}
.git-flow h2:focus-visible{outline:2px solid var(--accent);outline-offset:5px;border-radius:2px}
.flow-copy{min-width:0;min-height:0;align-self:start;max-width:900px;font-size:16px;line-height:1.55}
.flow-copy p{margin:0 0 14px;white-space:pre-line}.flow-copy p:last-child{margin-bottom:0}.flow-copy code{font:600 .92em/1.4 ui-monospace,monospace;overflow-wrap:anywhere}.flow-copy p code{background:var(--tint);padding:1px 4px;border-radius:3px}
.flow-with-scene{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:22px 40px}.flow-with-scene header,.flow-with-scene .flow-copy{grid-column:1}.flow-scene{grid-column:2;grid-row:1/-1;width:100%;height:100%;min-height:0;background:var(--paper);border-radius:5px}.flow-with-scene:not(:has(.flow-copy p)) .flow-copy{display:none}
.flow-decision{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr);gap:36px}.flow-decision header{padding-top:12px}.flow-decision .flow-copy{align-self:center;width:100%}
.flow-choices{display:grid;gap:10px}.flow-choices button{display:flex;gap:12px;align-items:center;justify-content:flex-start;text-align:left;padding:13px 16px;min-height:48px;font-size:15px;line-height:1.45;background:var(--paper)}
.git-flow kbd{font:600 11px/1.3 ui-monospace,monospace;color:var(--muted);flex-shrink:0}.flow-choices button[aria-pressed=true],.flow-confidence button[aria-pressed=true]{border-color:var(--accent);background:var(--tint);box-shadow:inset 3px 0 var(--accent)}
.flow-confidence{border:0;border-top:1px solid var(--line);padding:14px 0 0;margin:22px 0 0;display:flex;gap:8px}.flow-confidence legend{font-size:12px;padding-right:12px;color:var(--muted)}.flow-confidence button{flex:1;font-size:12px;line-height:1.4;padding:8px}.flow-confidence kbd{margin-right:4px}
.flow-footer{display:flex;align-items:center;gap:12px;min-width:0;border-top:1px solid var(--line);padding-top:12px}.flow-footer button{font-size:13px}.flow-keys{font:11px ui-monospace,monospace;color:var(--muted);margin-right:auto}.flow-footer [data-flow-next]{margin-left:auto;background:var(--accent);color:var(--surface);border-color:var(--accent);font-weight:700;max-width:75%;overflow-wrap:anywhere;line-height:1.3}.flow-footer button:disabled{opacity:.55}
.flow-terminal{background:#142332;color:#f4eddd;border:1px solid #34495a;border-radius:5px;padding:16px 20px;min-width:0}.flow-terminal pre{font:12px/18px ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:0;border:0;background:none;color:inherit;max-height:none}.flow-terminal code{font:inherit}.flow-command{color:#f6ae8b!important}.flow-output{color:#c9d6e0!important;margin-top:12px!important;border-top:1px solid #34495a!important;padding-top:12px!important}
.flow-dots{display:flex;gap:3px;align-items:center;height:14px;max-width:100%;margin-top:3px}.flow-dots i{display:block;flex:1 1 7px;max-width:9px;min-width:2px;height:5px;border:1px solid var(--muted);border-radius:50%;position:relative}.flow-dots i[data-past=true]{background:var(--accent);border-color:var(--accent)}.flow-dots i[aria-current=step]{background:var(--coral);border-color:var(--coral);height:9px}.flow-dots i+ i:before{content:'';position:absolute;right:100%;top:1px;width:4px;height:1px;background:var(--line)}
@media(max-width:1099px),(max-height:699px){.git-flow{padding:18px 24px;gap:10px}.git-flow h2{font-size:24px}.flow-copy{font-size:16px;line-height:1.5}.flow-with-scene{gap:14px 24px}.flow-choices button{font-size:14px;padding:10px 12px}.flow-kicker{margin-bottom:8px}.flow-copy p{margin-bottom:12px}}
@media(max-width:699px){.git-flow{padding:14px 16px;gap:10px}.flow-screen,.flow-decision{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:14px}.flow-decision header{padding:0}.flow-decision .flow-copy{align-self:start}.git-flow h2{font-size:22px}.flow-with-scene{grid-template-rows:auto auto minmax(0,1fr)}.flow-with-scene .flow-scene{grid-column:1;grid-row:3}.flow-with-scene .flow-copy{grid-row:2}.flow-copy{font-size:16px}.flow-choices{gap:8px}.flow-choices button{font-size:14px;min-height:40px;padding:9px 10px}.flow-confidence{margin-top:14px;padding-top:10px}.flow-confidence button{font-size:12px}.flow-footer{gap:8px;padding-top:10px}.flow-footer button{font-size:12px;padding:7px 10px}.flow-keys{display:none}.flow-terminal{padding:12px}.flow-terminal pre{font-size:12px}.flow-kicker{font-size:11px}.flow-dots{height:9px;margin-top:0}.proto-head:has(.flow-dots){line-height:12px;overflow:hidden}}
@media(max-width:360px){.git-flow{padding:7px 12px;gap:8px}.git-flow h2{font-size:18px;line-height:1.3}.flow-screen{gap:10px}.flow-copy{font-size:14px;line-height:1.45}.flow-choices{gap:5px}.flow-choices button{font-size:12px;line-height:1.35;min-height:34px;padding:6px 8px;gap:7px}.flow-confidence{margin-top:10px;padding-top:6px;gap:5px}.flow-confidence button{padding:5px;font-size:11px}.flow-kicker{margin-bottom:6px}.flow-footer{padding-top:8px}.flow-terminal{padding:10px}.flow-output{margin-top:8px!important;padding-top:8px!important}}
@media(max-height:499px) and (min-width:700px){.git-flow{padding:12px 20px;gap:8px}.git-flow h2{font-size:21px}.flow-screen{gap:10px}.flow-decision{gap:28px}.flow-decision header{padding:0}.flow-copy{font-size:14px;line-height:1.45}.flow-choices{gap:5px}.flow-choices button{font-size:12px;line-height:1.3;min-height:30px;padding:5px 9px}.flow-confidence{margin-top:8px;padding-top:4px}.flow-confidence button{font-size:11px;min-height:30px;padding:4px}.flow-footer{padding-top:8px}.flow-footer button{min-height:30px;padding:5px 10px}.flow-terminal{padding:10px 14px}.flow-output{margin-top:6px!important;padding-top:6px!important}}
/* Typing navigation must not take height away from the current beat on a phone. */
@media(max-width:699px),(max-height:499px){.prototype:has(.git-flow):has(.proto-console:focus-within){--console-height:54px}.prototype:has(.git-flow) .proto-console:focus-within{grid-template-rows:42px}.prototype:has(.git-flow) .proto-console:not([data-expanded=true]):focus-within #console-output{display:none}}
/* The step title takes focus so screen readers announce it; it is not a control, so it draws no ring. */
.git-flow h2:focus,.git-flow h2:focus-visible{outline:none}
.flow-evidence{font-size:clamp(15px,1.25vw,18px);line-height:1.6;max-width:68ch;padding:16px 20px;border-left:3px solid var(--accent);background:var(--tint);border-radius:0 10px 10px 0}
.flow-next{margin-top:18px;color:var(--muted);font-size:13px;max-width:68ch}
.flow-aside{float:right;width:min(38%,420px);margin:0 0 12px 24px;padding:12px 16px;border-left:3px solid var(--accent);background:var(--tint);border-radius:0 10px 10px 0;font-size:13px;line-height:1.55}
.flow-terminal+.flow-terminal{margin-top:10px}
/* A packed Terminal step on a wide screen: blocks fill two columns, row by row, in reading order. */
.flow-terminals[data-columns="2"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:start}
.flow-terminals[data-columns="2"] .flow-terminal+.flow-terminal{margin-top:0}
