/* Outcome decision controls: shared by Classic Studio and Coach Edition. */
.outcome-bar{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:6px 3px;border-bottom:1px solid var(--line);min-height:38px}
.outcome-bar button{font-size:12px;padding:6px 11px;min-height:32px}
.outcome-bar #createOutcomes{border:1px dashed var(--accent);color:var(--accent);background:transparent;font-weight:700}
.outcome-bar #outcomeControls{display:flex;flex:1 1 auto;gap:7px;flex-wrap:wrap;align-items:center;min-width:0}
.outcome-bar #outcomeControls[hidden],.outcome-bar button[hidden]{display:none!important}
.outcome-bar #outcomeQuestion{font-size:12px;font-weight:700;max-width:400px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;color:var(--accent);margin-right:5px}
.outcome-bar #outcomeControls button.selected{box-shadow:inset 0 -3px 0 var(--accent);border-color:var(--accent);font-weight:800}
.outcome-dialog{width:min(610px,95vw);max-height:89dvh;overflow:auto}
.outcome-dialog>p{font-size:13px;color:var(--muted);line-height:1.5;margin:12px 0}
.outcome-dialog>label{display:grid;gap:6px;font-size:12px;font-weight:700;margin:14px 0}
.outcome-dialog>small{display:block;line-height:1.5;margin:12px 0}
.outcome-dialog-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin-top:15px}
.outcome-dialog-actions button{width:auto}
#outcomeRemove{margin-right:auto}
#outcomeError:not(:empty){color:#ffb3a6;margin-top:10px}
.branch-player{padding:11px 15px;margin:10px 0;background:var(--panel,#18241e);border:1px solid var(--accent,#c9f07c);border-radius:9px;display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,290px);gap:7px 14px;align-items:center}
.branch-player[hidden]{display:none!important}
.branch-player strong{font-size:13px}
.branch-player p{font-size:12px;line-height:1.45;color:var(--muted,#b4bfb4);margin:3px 0}
.branch-player label{font-size:12px}
.branch-player select{width:100%;min-height:40px}
.print-branch-heading{break-after:page;padding:30px;display:grid;align-content:center;min-height:70vh;border:4px double #555}
.print-branch-heading small{letter-spacing:2px}
.print-branch-heading h2{font-size:30px;margin:15px 0}
.print-branch-heading p{font-size:18px;line-height:1.5;max-width:650px}
@media(max-width:760px){.outcome-bar{padding:5px 1px}.outcome-bar #outcomeQuestion{flex-basis:100%;max-width:100%}.outcome-bar #outcomeControls button{flex:1 1 auto;white-space:normal;line-height:1.25}.branch-player{grid-template-columns:minmax(0,1fr)}}

body.presentation-mode .outcome-bar{display:none}

/* Real outcome diagrams: shared by editors, player and coaching sheets. */
.branch-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.branch-preview-card{display:flex;flex-direction:column;gap:9px;padding:13px;border:2px solid #536b63;background:#1d3029;color:#eff6ed;border-radius:12px;text-align:left;min-width:0;width:100%;min-height:0}
button.branch-preview-card{cursor:pointer}
button.branch-preview-card:hover,button.branch-preview-card:focus-visible{border-color:#f3df95;outline:2px solid #f3df95;outline-offset:2px}
.branch-preview-card.is-active{border-color:#b3e3b2}
.branch-preview-title{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;font-size:13px;line-height:1.35}
.branch-preview-title strong{overflow-wrap:anywhere;flex:1 1 190px}
.branch-preview-title small{color:#c6d9ca}
.branch-preview-pitch{display:block;border:1px solid #4f6b5d;border-radius:8px;overflow:hidden;width:100%;background:#21482d}
.branch-preview-pitch svg{display:block;width:100%;height:auto}
.branch-preview-summary{font-size:12px;line-height:1.55;color:#e0e9df;overflow-wrap:anywhere}
.branch-preview-action{margin-top:auto;color:#ffe6ae;font-size:12px;font-weight:750;border-top:1px solid #4a6255;padding-top:9px}
.branch-preview-legend{margin:8px 0 0;font-size:11px;color:#b5cbbc;line-height:1.5}
.branch-legend-attack{color:#73d5ff}.branch-legend-defence{color:#ffbc7d}.branch-legend-ball{color:#ffe27e}
.branch-decision-panel{padding:14px;margin:12px 0;border:2px solid #ad9a68;border-radius:13px;background:#13271f;color:#f4f8ee;box-shadow:0 6px 20px #0004}
.branch-decision-panel[hidden]{display:none!important}
.branch-decision-head,.outcome-map-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:13px}
.branch-decision-head h2,.outcome-map-head h2{font-size:19px;line-height:1.3;margin:5px 0}
.branch-decision-head small,.outcome-map-head small{color:#f2d99e;letter-spacing:1.3px;font-weight:750;font-size:10px}
.branch-decision-head p,.outcome-map-head p{color:#c8d9cb;font-size:12px;line-height:1.5}
.branch-decision-head button,.outcome-map-head button{flex:0 0 auto;min-width:33px}
.branch-compare-button{margin-top:8px;font-weight:750}
.outcome-map-dialog{width:min(1140px,98vw);max-height:90dvh;overflow:auto;padding:20px;background:#172c24;border-color:#a7946d;color:#f7f8ef}
#outcomeMapCards{margin-top:12px}
.outcome-bar #tryDecisionDemo{color:var(--accent);border:1px solid var(--accent);font-weight:750;background:transparent}
body>.timeline:has(.outcome-bar){grid-template-rows:auto auto auto minmax(58px,auto) minmax(58px,1fr);height:max(265px,var(--user-timeline-height,190px))}
body>.timeline:has(.outcome-bar) .scenes{min-height:58px;align-items:stretch;overflow-y:auto}
body>.timeline:has(.outcome-bar) .scene{min-height:48px;align-self:stretch;display:flex;flex-direction:column;justify-content:center}
body.hide-tracks>.timeline:has(.outcome-bar),body.presentation-mode>.timeline:has(.outcome-bar){grid-template-rows:auto auto auto auto;height:auto}
@media(max-width:760px){
 .branch-preview-grid,.outcome-map-dialog .branch-preview-grid{grid-template-columns:1fr;gap:11px}
 .branch-preview-card{padding:10px}
 .outcome-map-dialog{padding:12px;width:calc(100vw - 12px);max-height:92dvh}
 .branch-decision-panel{padding:10px;margin:8px 0}
 body>.timeline:has(.outcome-bar){grid-template-rows:auto auto auto minmax(58px,auto) minmax(44px,1fr);height:clamp(265px,40dvh,330px)}
 .branch-decision-head h2{font-size:16px}
}
@media print{
 .branch-preview-grid{grid-template-columns:1fr 1fr!important;gap:10px}
 .branch-preview-card{background:white!important;color:black!important;border-color:#888!important;padding:5px;break-inside:avoid}
 .branch-preview-title small,.branch-preview-summary,.branch-preview-legend{color:#222!important}
 .branch-preview-pitch svg{max-height:205px}
 .branch-preview-legend{color:black!important}
}

/* Explain the difference between a drawn annotation and real playable branches. */
.decision-live-help{background:#f7edd6;color:#342822;border:1px solid #bba56c;padding:11px 12px;border-radius:10px;display:grid;gap:7px;margin:9px 0}
.decision-live-help strong{color:#5d3727;font-size:13px}
.decision-live-help p{margin:0;font-size:12px;line-height:1.5}
.decision-live-help button{background:#7c3035;color:white;border:1px solid #7c3035;padding:9px;font-size:12px;font-weight:750;border-radius:7px}
.decision-live-help button:hover{background:#64242a}
#outcomeDialogHint{line-height:1.5}

/* Decision-on-run creation: one simple confirmation, not two separate editors. */
.outcome-actions-simple{display:grid;gap:10px;padding:10px 12px;border:1px solid var(--line,#718675);border-radius:10px;margin:10px 0}
.outcome-actions-simple[hidden],.outcome-action-choice label[hidden]{display:none!important}
.outcome-actions-simple .outcome-action-intro{font-size:12px;line-height:1.5;margin:0 0 2px;color:var(--muted,#c4d0c3)}
.outcome-action-choice{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:10px}
.outcome-action-choice label{display:grid;gap:5px;margin:0!important;font-size:12px}
.outcome-action-choice select{min-height:38px;max-width:100%;width:100%}
@media(max-width:600px){.outcome-action-choice{grid-template-columns:minmax(0,1fr)}}
