/* Read-only proof playback is isolated from the live game and its viewport. */
.bot-review .br-post-analysis{display:grid;gap:6px;padding:10px;margin:0 0 13px;border:1px solid #7895c1;border-radius:9px;background:#eaf2ff;color:#173a65;font-size:.75rem;line-height:1.4}
.bot-review .br-post-analysis[hidden]{display:none}
.bot-review .br-post-title{font-size:.82rem}
.bot-review .br-post-metrics,.bot-review .br-post-note{margin:0}
.bot-review .br-post-note{font-size:.68rem;color:#425a77}
.bot-review .br-post-button{min-height:36px;padding:6px 8px;font-size:.76rem;background:var(--surface);color:var(--foreground)}
:root[data-theme="dark"] .bot-review .br-post-analysis{background:#1a304b;color:#d8eaff;border-color:#709aca}
:root[data-theme="dark"] .bot-review .br-post-note{color:#b7cee8}
.bot-review{width:min(1080px,calc(100vw - 24px));height:min(820px,calc(100dvh - 24px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--edge);border-radius:17px;background:var(--surface);color:var(--foreground);box-shadow:0 24px 85px #04112877;overflow:clip;overscroll-behavior:none}
.bot-review[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.bot-review::backdrop{background:#061328c4}
.bot-review .br-header{position:relative;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px 17px;border-bottom:1px solid var(--panel-edge)}
.bot-review .br-eyebrow{display:block;margin-bottom:3px;color:var(--muted-foreground);font-size:.65rem;font-weight:800;letter-spacing:.13em}
.bot-review h2{margin:0;font-size:1.35rem;line-height:1.25;letter-spacing:-.03em}
.bot-review .br-close{flex:none;min-height:40px;font-size:.82rem}
.bot-review .br-progress{position:absolute;bottom:-1px;left:0;right:0;display:block;height:4px;overflow:hidden;background:var(--muted)}
.bot-review .br-progress-fill{display:block;width:100%;height:100%;background:#2b9b82;transform-origin:left;transition:transform .18s linear}
.bot-review .br-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,285px);gap:18px;min-height:0;min-width:0;padding:16px;overflow:hidden}
.bot-review .br-board-pane{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px;min-width:0;min-height:0}
.bot-review .br-board-canvas{position:relative;display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;border:1px solid var(--panel-edge);border-radius:12px;background:var(--background);padding:3px}
.bot-review .br-board{display:grid;gap:2px;flex:none;min-width:0;max-width:none;margin:0}
.bot-review .br-tile{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;overflow:hidden;border:1px solid #8fa2ba;border-radius:3px;background:var(--surface);color:var(--foreground);font-size:clamp(7px,calc(var(--br-cell,30px) * .36),17px);font-weight:800;line-height:1}
.bot-review .br-blocked{border-color:#71809966;background:repeating-linear-gradient(135deg,transparent 0 4px,#6f7d932b 4px 6px),var(--muted);opacity:.65}
.bot-review .br-outside{visibility:hidden}
.bot-review .br-board-hex{gap:0;grid-auto-rows:calc(var(--br-hex-cell) * .8660254);padding-bottom:calc(var(--br-hex-cell) * .288675)}
.bot-review .br-board-hex .br-tile{width:var(--br-hex-cell);height:calc(var(--br-hex-cell) * 1.1547);aspect-ratio:auto;border:0;border-radius:0;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.bot-review .br-board-hex .br-tile::before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:center/100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 115'%3E%3Cpolygon points='50,1 99,29 99,86 50,114 1,86 1,29' fill='none' stroke='%2397abc1' stroke-width='1.4'/%3E%3C/svg%3E")}
.bot-review .br-board-hex .br-hex-shift{margin-left:calc(var(--br-hex-cell) / 2)}
.bot-review .br-marker{position:absolute;z-index:3;display:grid;place-items:center;width:70%;aspect-ratio:1;border:2px solid #26354c;border-radius:50%;box-shadow:0 1px 2px #0005;font-size:inherit;line-height:1}
.bot-review .br-marker-new{border-style:dashed;outline:1px solid #fff9;outline-offset:-4px}
.bot-review .br-route-letter{position:relative;z-index:2;font-size:inherit}
.bot-review .br-junction{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%}
.bot-review .br-tile.br-reachable{background-image:repeating-linear-gradient(135deg,#269e7f35 0 4px,#269e7f12 4px 8px);box-shadow:inset 0 0 0 1px #38a98c}
.bot-review .br-tile.br-problem{box-shadow:inset 0 0 0 3px #e75b6f}
.bot-review .br-tile.br-blocker{box-shadow:inset 0 0 0 3px #c99419}
.bot-review .br-tile.br-blocker::after{content:'';position:absolute;inset:0;z-index:4;background:repeating-linear-gradient(135deg,transparent 0 6px,#d79c184d 6px 9px);pointer-events:none}
.bot-review .br-tile.br-active{box-shadow:inset 0 0 0 3px #f4c542}
.bot-review .br-tile.br-active .br-marker{outline:2px solid #f4c542;outline-offset:2px}
.bot-review .br-tile.br-other-region{background-image:repeating-linear-gradient(45deg,#427fce30 0 5px,#427fce12 5px 9px);box-shadow:inset 0 0 0 1px #6c9bd9}
.bot-review .br-tile.br-focused-cell{box-shadow:inset 0 0 0 3px #e2ac27}
.bot-review .br-tile.br-excluded{background-image:repeating-linear-gradient(135deg,#66768c36 0 3px,#66768c0a 3px 7px);box-shadow:inset 0 0 0 1px #7c8a9c;opacity:.6}
.bot-review .br-tile.br-parity-cell::after{content:'';position:absolute;top:6%;right:6%;z-index:1;width:17%;height:17%;border-radius:50%;background:#8d54c7;box-shadow:0 0 0 1px #fff9;pointer-events:none}
.bot-review .br-deduction-chord{stroke-dasharray:7 5;stroke-linecap:round;opacity:.8;filter:drop-shadow(0 1px 1px var(--surface))}
.bot-review .br-logic-overlay{position:absolute;inset:0;z-index:6;width:100%;height:100%;overflow:visible;pointer-events:none;isolation:isolate}
.bot-review .br-logic-edge{stroke-linecap:round;opacity:.82}
.bot-review .br-edge-required{opacity:.94;filter:drop-shadow(0 1px 1px #fff9)}
.bot-review .br-edge-blocked{stroke-dasharray:3 3}
.bot-review .br-logic-arrow{opacity:.95}
.bot-review .br-logic-cut path{fill:none;stroke:#c52c48;stroke-width:2.4;stroke-linecap:round}
.bot-review .br-cut-back{fill:var(--surface);stroke:#e27e8e;stroke-width:1}
.bot-review .br-logic-focus{fill:none;stroke:#e7ab17;stroke-width:2.6;filter:drop-shadow(0 0 2px #fff)}
.bot-review .br-logic-badge circle{stroke:var(--surface);stroke-width:2}
.bot-review .br-logic-badge text{font-family:inherit;font-weight:850}
.bot-review .br-logic-stages{position:sticky;top:-1px;z-index:4;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;list-style:none;margin:0 0 13px;padding:0 0 7px;background:var(--surface)}
.bot-review .br-logic-stages li{display:grid;justify-items:center;align-content:start;gap:5px;min-width:0;padding:6px 1px;border-bottom:2px solid var(--panel-edge);color:var(--muted-foreground);font-size:.65rem;line-height:1.25;text-align:center;white-space:nowrap}
.bot-review .br-logic-stages b{display:grid;place-items:center;width:21px;height:21px;border:1px solid var(--panel-edge);border-radius:50%;font-size:.69rem}
.bot-review .br-logic-stages li.is-current{border-color:#236b94;color:#174f73;font-weight:800}
.bot-review .br-logic-stages li.is-current b{border-color:#236b94;background:#236b94;color:#fff}
.bot-review .br-logic-stages li.is-done{border-color:#58a58a;color:#286d56}
.bot-review .br-logic-conclusion{display:inline-flex;margin:0 0 8px;padding:5px 8px;border:1px solid #df9ba8;border-radius:6px;background:#fff0f3;color:#9d2541;font-size:.75rem;line-height:1.3}
.bot-review.br-has-logic .br-step-counter{display:inline-block;margin-right:7px;vertical-align:middle}
.bot-review .br-logic-conclusion{vertical-align:middle}
.bot-review .br-comparison{display:grid;gap:10px;margin-top:14px;padding:12px 10px;border:1px solid var(--panel-edge);border-radius:10px;background:var(--background)}
.bot-review .br-compare-title{font-size:.76rem;font-weight:800;line-height:1.4}
.bot-review .br-compare-section{display:grid;gap:6px}
.bot-review .br-compare-label{font-size:.73rem;font-variant-numeric:tabular-nums}
.bot-review .br-demand-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px}
.bot-review .br-demand-group{display:flex;align-items:center;gap:5px;min-width:0}
.bot-review .br-group-color{display:grid;place-items:center;flex:none;width:17px;height:17px;border:1px solid #72839a;border-radius:50%;font-size:.6rem;font-weight:800}
.bot-review .br-six-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;flex:1;min-width:0}
.bot-review .br-slot{display:block;min-width:0;height:12px;border:1px solid #92a6be;border-radius:2px;background:var(--surface)}
.bot-review .br-demand-slot{border-color:var(--br-demand-color,#527599);background:var(--br-demand-color,#527599);opacity:.78}
.bot-review .br-supply-slots{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px}
.bot-review .br-slot.is-available{border-color:#368d72;background:#51ab8b}
.bot-review .br-slot.is-extra{border-color:#9c713c;background:repeating-linear-gradient(90deg,#c49557 0 3px,#e2c28b 3px 5px)}
.bot-review .br-slot.is-missing{border:1px dashed #ce3e5c;background:#f7c7d226}
.bot-review .br-slot.is-unseen{border:1px dashed #8b9db4;background:transparent;opacity:.65}
.bot-review .br-compare-detail{color:var(--muted-foreground);font-size:.65rem;line-height:1.4}
.bot-review .br-shortage{margin:0;color:#ae2947;font-size:.77rem;font-weight:800;line-height:1.4}
.bot-review .br-bridge-tokens{display:flex;align-items:center;gap:6px;min-height:32px}
.bot-review .br-bridge-token{display:grid;place-items:center;flex:none;width:42px;height:34px;border:1px solid #c49a67;border-radius:6px;color:#92632b;background:#f2dfc0}
.bot-review .br-bridge-token svg{display:block;width:32px;height:28px}
.bot-review .br-bridge-token.is-missing{border:1px dashed #c83959;color:#c83959;background:#f7c7d21a}
.bot-review .br-compare-more{font-size:.7rem;font-weight:750}
.bot-review .br-comparison[data-unit="bridge"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px}
.bot-review .br-comparison[data-unit="bridge"] .br-compare-title{display:none}
.bot-review .br-comparison[data-unit="bridge"] .br-shortage{grid-column:1/-1}
.bot-review .br-comparison[data-unit="bridge"] .br-bridge-tokens{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;min-height:28px}
.bot-review .br-comparison[data-unit="bridge"] .br-bridge-token{width:100%;max-width:34px;height:28px;min-width:0}
.bot-review .br-comparison[data-unit="bridge"] .br-bridge-token svg{width:calc(100% - 4px);height:24px}
.bot-review .br-comparison[data-mode="capacity"]{gap:4px;padding:7px 8px}
.bot-review .br-comparison[data-mode="capacity"] .br-compare-title{display:none}
.bot-review .br-comparison[data-mode="capacity"] .br-compare-section{gap:3px}
.bot-review .br-comparison[data-mode="capacity"] .br-compare-label{font-size:.66rem;line-height:1.2}
.bot-review .br-capacity-demand{display:grid;gap:1px;min-width:0}
.bot-review .br-mini-group{display:grid;gap:2px;min-width:0;text-align:center}
.bot-review .br-mini-group b{font-size:8px;line-height:9px;font-weight:800}
.bot-review .br-mini-six{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:1px;min-width:0}
.bot-review .br-mini-six i{display:block;min-width:0;height:10px;border-radius:1px;opacity:.85}
.bot-review .br-comparison[data-mode="capacity"] .br-supply-slots{gap:1px}
.bot-review .br-comparison[data-mode="capacity"] .br-slot{height:10px}
.bot-review .br-comparison[data-mode="capacity"] .br-shortage{font-size:.68rem;line-height:1.2}
.bot-review .br-comparison[data-mode="capacity"]>.br-shortage{display:none}
.bot-review .br-inline-shortage{color:#ae2947;font-weight:800}
:root[data-theme="dark"] .bot-review .br-inline-shortage{color:#ffacbf}
.bot-review .br-comparison[data-mode="capacity"] .br-compare-detail{font-size:.6rem;line-height:1.2}
.bot-review .br-capacity-details{margin:0;border-top:1px solid var(--panel-edge);font-size:.64rem}
.bot-review .br-capacity-details summary{padding:5px 0;cursor:pointer;font-weight:700}
.bot-review .br-capacity-details .br-demand-groups{padding:4px 0}
.bot-review .br-search-summary{display:grid;gap:9px;margin:12px 0;padding:10px;border:1px solid var(--panel-edge);border-radius:9px;background:var(--background);font-variant-numeric:tabular-nums}
.bot-review .br-search-elapsed,.bot-review .br-search-final-checks,.bot-review .br-search-stopped-stats{margin:0;color:var(--muted-foreground);font-size:.7rem;line-height:1.45}
.bot-review .br-search-time{display:inline-block;margin:0 6px 8px 0;vertical-align:middle;color:var(--muted-foreground);font-size:.66rem;font-variant-numeric:tabular-nums}
.bot-review .br-search-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.bot-review .br-search-flow-item{position:relative;display:grid;gap:6px;align-content:center;min-width:0;min-height:62px;padding:6px 3px;border:1px solid var(--panel-edge);border-radius:7px;background:var(--surface);text-align:center}
.bot-review .br-search-flow-item>span{font-size:.6rem;line-height:1.3;word-break:keep-all}
.bot-review .br-search-flow-item>strong{min-width:0;font-size:.85rem;line-height:1.25;overflow-wrap:anywhere}
.bot-review .br-search-flow-item.is-result{border-color:#d38397;background:#fff0f3;color:#9d2541}
.bot-review .br-search-pruned{display:grid;gap:5px;margin:0;font-size:.69rem}
.bot-review .br-search-pruned>div{display:flex;justify-content:space-between;align-items:baseline;gap:9px}
.bot-review .br-search-pruned dt{color:var(--muted-foreground)}
.bot-review .br-search-pruned dd{margin:0;font-weight:750}
.bot-review .br-search-color-details{margin:0;padding-top:3px;border-top:1px solid var(--panel-edge);font-size:.68rem}
.bot-review .br-search-color-details summary{padding:5px 0;cursor:pointer;font-weight:750}
.bot-review .br-search-color-details table{width:100%;border-collapse:collapse;font-size:.66rem;text-align:right}
.bot-review .br-search-color-details :is(th,td){padding:5px 3px;border-bottom:1px solid var(--panel-edge)}
.bot-review .br-search-color-details th:first-child{text-align:left}
:root[data-theme="dark"] .bot-review .br-search-flow-item.is-result{border-color:#b2687b;background:#502536;color:#ffd6e0}
.bot-review .br-board-legend{margin:0;text-align:center;font-size:.7rem;line-height:1.35;color:var(--muted-foreground)}
.bot-review .br-narrative{position:relative;min-width:0;min-height:0;align-self:stretch;overflow:auto;padding:15px 3px 10px 0;scrollbar-width:thin;overscroll-behavior:contain}
.bot-review .br-step-counter{display:block;margin-bottom:14px;color:var(--muted-foreground);font-size:.74rem;font-weight:750;font-variant-numeric:tabular-nums}
.bot-review h3{margin:0 0 12px;font-size:1.25rem;line-height:1.45;letter-spacing:-.025em;word-break:keep-all}
.bot-review .br-step-message{margin:0;font-size:.95rem;line-height:1.7;word-break:keep-all}
.bot-review .br-formula{display:block;margin-top:18px;padding:13px 10px;border:1px solid var(--panel-edge);border-radius:9px;background:var(--background);font-size:1.2rem;line-height:1.35;text-align:center;font-variant-numeric:tabular-nums}
.bot-review .br-step-note{margin:16px 0 0;color:var(--muted-foreground);font-size:.79rem;line-height:1.6;word-break:keep-all}
.bot-review .br-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 16px;border-top:1px solid var(--panel-edge);background:var(--surface)}
.bot-review .br-transport,.bot-review .br-actions,.bot-review .br-nav{display:flex;align-items:center;gap:7px;min-width:0}
.bot-review .br-transport{justify-content:space-between;gap:12px}
.bot-review .br-nav .btn{min-height:44px}
.bot-review .br-icon{min-width:44px;padding:4px 8px;font-size:1.8rem;line-height:1}
.bot-review .br-play{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:102px;font-size:.8rem;white-space:nowrap}
.bot-review .br-play-symbol{display:block;font-size:1rem;line-height:1}
.bot-review .br-speed{display:flex;align-items:center;gap:6px;font-size:.75rem;white-space:nowrap}
.bot-review .br-speed select{width:86px;min-width:0;min-height:42px;padding:6px;font-size:.78rem}
.bot-review .br-replay{font-size:.8rem;white-space:nowrap}
.bot-review .br-continue{font-size:.86rem;font-weight:800;white-space:nowrap}
.bot-review :is(button,select):focus-visible{outline:3px solid #e9b424;outline-offset:2px}
.bot-review .br-sr-only{position:absolute;top:0;left:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:root[data-theme="dark"] .bot-review .br-tile{border-color:#9bb2cc}
:root[data-theme="dark"] .bot-review .br-marker{border-color:#d6e2f0}
:root[data-theme="dark"] .bot-review .br-route-letter{color:#fff;text-shadow:0 1px 2px #000}
:root[data-theme="dark"] .bot-review .br-logic-stages li.is-current{border-color:#96c4ff;color:#b6d7ff}
:root[data-theme="dark"] .bot-review .br-logic-stages li.is-current b{border-color:#79adf2;background:#315a8f;color:#fff}
:root[data-theme="dark"] .bot-review .br-logic-stages li.is-done{color:#9ddabb;border-color:#71b994}
:root[data-theme="dark"] .bot-review .br-logic-conclusion{border-color:#b2687b;background:#502536;color:#ffd6e0}
:root[data-theme="dark"] .bot-review .br-shortage{color:#ffacbf}
:root[data-theme="dark"] .bot-review .br-edge-required{filter:drop-shadow(0 1px 1px #07142e)}
:root[data-theme="dark"] .bot-review .br-logic-focus{filter:drop-shadow(0 0 2px #07142e)}
:root[data-theme="dark"] .bot-review .br-bridge-token{border-color:#bc965b;background:#543f28;color:#f0cb8e}
:root[data-theme="dark"] .bot-review .br-bridge-token.is-missing{border-color:#ed8fa7;background:#592e3d;color:#ffacc0}
@media(max-width:720px) and (min-height:521px){
 .bot-review{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:13px}
 .bot-review .br-header{padding:12px 13px 14px}
 .bot-review h2{font-size:1.1rem}
 .bot-review .br-eyebrow{font-size:.57rem}
 .bot-review .br-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:9px;padding:10px}
 .bot-review .br-board-pane{gap:5px}
 .bot-review .br-board-legend{font-size:.62rem}
 .bot-review .br-narrative{max-height:140px;overflow:auto;padding:0 3px}
 .bot-review.br-has-logic .br-narrative{max-height:clamp(145px,28dvh,205px)}
 .bot-review .br-logic-stages{margin-bottom:6px;padding-bottom:4px}
 .bot-review .br-logic-stages li{display:flex;justify-content:center;align-items:center;gap:4px;padding:5px 1px;font-size:.59rem}
 .bot-review .br-logic-stages b{width:17px;height:17px;font-size:.6rem}
 .bot-review .br-comparison{margin-top:8px;padding:9px;gap:8px}
 .bot-review .br-logic-conclusion{font-size:.65rem;padding:3px 6px;margin-bottom:5px}
 .bot-review .br-search-summary{gap:7px;margin:8px 0;padding:8px}
 .bot-review .br-search-flow-item{min-height:52px;gap:4px}
 .bot-review .br-search-flow-item>strong{font-size:.8rem}
 .bot-review .br-step-counter{margin-bottom:4px;font-size:.68rem}
 .bot-review h3{margin-bottom:5px;font-size:.98rem;line-height:1.35}
 .bot-review .br-step-message{font-size:.8rem;line-height:1.5}
 .bot-review .br-step-note{margin-top:6px;font-size:.68rem;line-height:1.45}
 .bot-review .br-formula{margin-top:7px;padding:7px;font-size:1rem}
 .bot-review .br-footer{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px}
 .bot-review .br-play{min-width:44px;width:44px;padding:4px}
 .bot-review .br-play-label{display:none}
 .bot-review .br-actions{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
 .bot-review .br-actions .btn{min-height:43px}
}
@media(max-height:520px){
 .bot-review{width:calc(100vw - 16px);height:calc(100dvh - 12px);border-radius:11px}
 .bot-review .br-header{padding:8px 13px 10px}
 .bot-review h2{font-size:1.05rem}
 .bot-review .br-eyebrow{font-size:.55rem;margin-bottom:2px}
 .bot-review .br-close{min-height:34px;font-size:.74rem;padding:4px 9px}
 .bot-review .br-body{grid-template-columns:minmax(0,1fr) minmax(210px,.75fr);gap:12px;padding:8px 11px}
 .bot-review .br-board-pane{gap:3px}
 .bot-review .br-board-legend{font-size:.59rem}
 .bot-review .br-narrative{padding:4px 2px;font-size:.8rem}
 .bot-review .br-logic-stages{margin-bottom:5px;padding-bottom:3px}
 .bot-review .br-logic-stages li{display:grid;justify-content:center;justify-items:center;align-items:center;gap:3px;padding:4px 0;font-size:.56rem}
 .bot-review .br-logic-stages b{width:16px;height:16px;font-size:.57rem}
 .bot-review .br-comparison{margin-top:8px;padding:8px;gap:8px}
 .bot-review .br-logic-conclusion{margin-bottom:5px;padding:4px 6px;font-size:.66rem}
 .bot-review .br-step-counter{margin-bottom:5px;font-size:.65rem}
 .bot-review h3{margin-bottom:7px;font-size:.96rem;line-height:1.35}
 .bot-review .br-step-message{font-size:.78rem;line-height:1.5}
 .bot-review .br-step-note{font-size:.65rem;margin-top:7px;line-height:1.45}
 .bot-review .br-formula{margin-top:8px;padding:7px;font-size:1rem}
 .bot-review .br-footer{gap:10px;padding:8px 11px}
 .bot-review .br-nav .btn,.bot-review .br-actions .btn{min-height:36px}
 .bot-review .br-play{min-width:44px;width:44px;padding:4px}
 .bot-review .br-play-label{display:none}
 .bot-review .br-icon{min-width:36px;font-size:1.5rem}
 .bot-review .br-speed select{min-height:36px;font-size:.73rem;width:80px}
 .bot-review .br-actions .btn{font-size:.74rem;padding:5px 9px}
}
@media(max-width:600px) and (max-height:520px){.bot-review .br-body{grid-template-columns:minmax(0,1fr) minmax(170px,.8fr)}}
@media(max-width:520px) and (max-height:520px){.bot-review .br-footer{grid-template-columns:minmax(0,1fr);gap:5px}.bot-review .br-actions{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){.bot-review .br-progress-fill{transition:none}}
.bot-review .br-painter-host[hidden]{display:none}
.bot-review.br-has-painter .br-logic-stages,.bot-review.br-has-painter .br-conflict-colors{display:none}
.bot-review.br-has-painter .br-step-message,.bot-review.br-draft-editing .br-step-note{display:none}
@media(max-width:720px) and (min-height:521px){.bot-review.br-has-painter .br-body{grid-template-rows:minmax(0,1fr) clamp(270px,40dvh,340px)}.bot-review.br-has-conflict.br-has-painter .br-narrative{max-height:none}.bot-review.br-has-painter .br-narrative>h3{display:none}.bot-review.br-has-painter .br-step-counter{margin-bottom:3px}}
.bot-review .br-post-analysis.is-result-view{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:6px 8px}
.bot-review .br-post-analysis.is-result-view .br-post-title{font-size:.72rem;line-height:1.35}
.bot-review .br-post-analysis.is-result-view .br-post-metrics,.bot-review .br-post-analysis.is-result-view .br-post-note{display:none}
.bot-review .br-post-analysis.is-result-view .br-post-button{width:auto;max-width:145px;min-height:32px;margin:0;padding:5px 7px;font-size:.65rem;line-height:1.3}
.bot-review .br-conflict-analysis{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;margin:0 0 10px;padding:9px;border:1px solid #8c79c0;border-radius:9px;background:#f2edfc;font-size:.74rem;line-height:1.4}
.bot-review .br-conflict-analysis[hidden],.bot-review .br-conflict-colors[hidden],.bot-review .br-conflict-scenarios[hidden],.bot-review .br-conflict-button[hidden]{display:none}
.bot-review .br-conflict-status{font-size:.77rem;color:#533884}
.bot-review .br-conflict-note{margin:0;color:#68577e;font-size:.68rem}
.bot-review .br-conflict-button{min-height:36px;padding:6px 9px;font-size:.75rem}
.bot-review .br-global-button{min-height:38px;padding:7px 9px;font-size:.78rem;font-weight:800}
.bot-review .br-global-button[hidden]{display:none}
.bot-review .br-branch-panel{display:grid;gap:5px;margin:7px 0;padding:7px;border:1px solid var(--panel-edge);border-radius:8px;background:var(--background)}
.bot-review .br-branch-panel[hidden]{display:none}
.bot-review .br-branch-trail,.bot-review .br-branch-note{margin:0;font-size:.65rem;line-height:1.4;color:var(--muted-foreground)}
.bot-review .br-branch-controls{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:4px}
.bot-review .br-branch-controls .btn,.bot-review .br-branch-extend{min-height:32px;padding:3px 6px;font-size:.68rem}
.bot-review .br-branch-select{min-width:0;width:100%;min-height:32px;padding:3px;font-size:.64rem}
.bot-review.br-has-branch .br-conflict-colors,.bot-review.br-has-branch .br-logic-stages{display:none}
.bot-review.br-has-branch .br-step-note{font-size:.63rem;line-height:1.35}
.bot-review.br-branch-exploring .br-step-note{display:none}
.bot-review .br-tile.br-global-separator{background:#e8b74750!important;box-shadow:inset 0 0 0 3px #c58b17!important}
.bot-review .br-tile.br-global-boundary{outline:2px solid #5599c7;outline-offset:-3px}
.bot-review.br-has-global .br-conflict-analysis{border-color:#c59a42;background:#fcf4df}
.bot-review.br-has-global .br-conflict-colors{margin-bottom:5px}
:root[data-theme="dark"] .bot-review.br-has-global .br-conflict-analysis{border-color:#c59a42;background:#3b321f}
.bot-review .br-conflict-analysis.is-showing{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;padding:6px 8px}
.bot-review .br-conflict-analysis.is-showing .br-conflict-status{display:none}
.bot-review .br-conflict-analysis.is-showing .br-conflict-note{display:none}
.bot-review .br-conflict-analysis.is-showing .br-conflict-button{grid-column:2;grid-row:1;min-height:34px;padding:4px 6px;font-size:.65rem}
.bot-review .br-conflict-analysis.is-showing .br-conflict-scenarios{grid-column:1;grid-row:1}
.bot-review .br-conflict-scenarios{grid-column:1/-1;min-width:0;width:100%;min-height:34px;padding:5px 7px;font-size:.72rem}
.bot-review .br-conflict-colors{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 9px}
.bot-review .br-conflict-chip{display:inline-flex;align-items:center;gap:4px;min-height:27px;padding:2px 6px 2px 3px;border:1px solid var(--panel-edge);border-radius:20px;font-size:.62rem;color:var(--muted-foreground);white-space:nowrap}
.bot-review .br-conflict-chip .br-marker{position:relative;width:21px;min-width:21px;border-width:1px;font-size:.65rem}
.bot-review .br-conflict-chip.is-checking{border:2px solid var(--br-chip-color);color:var(--foreground);font-weight:800}
.bot-review .br-conflict-chip.is-blocking{border-color:#bd8b1b;background:#dca52b18;color:var(--foreground)}
.bot-review .br-tile.br-wave-cell{background-image:repeating-linear-gradient(135deg,var(--br-wave-wash) 0 4px,transparent 4px 8px)!important;box-shadow:inset 0 0 0 2px var(--br-wave-ink)}
.bot-review .br-tile.br-wave-cell.br-problem{box-shadow:inset 0 0 0 3px #e75b6f}
.bot-review.br-has-conflict .br-logic-stages{margin-bottom:7px;padding-bottom:4px}
.bot-review.br-has-conflict .br-step-counter{margin-bottom:6px;font-size:.7rem}
.bot-review.br-has-conflict h3{margin-bottom:7px;font-size:1.03rem;line-height:1.35}
.bot-review.br-has-conflict .br-step-message{font-size:.84rem;line-height:1.5}
.bot-review.br-has-conflict .br-step-note{margin-top:8px;font-size:.7rem;line-height:1.45}
.bot-review.br-has-conflict .br-formula{margin-top:8px;padding:8px;font-size:.92rem;line-height:1.35}
.bot-review.br-has-conflict .br-conflict-colors{margin-bottom:7px;gap:4px}
:root[data-theme="dark"] .bot-review .br-conflict-analysis{background:#2c2540;border-color:#9d86cf}
:root[data-theme="dark"] .bot-review .br-conflict-status{color:#ddc7ff}
:root[data-theme="dark"] .bot-review .br-conflict-note{color:#c6b9d9}
@media(max-width:720px) and (min-height:521px){
 .bot-review .br-conflict-analysis{margin-bottom:6px;padding:6px;gap:4px}
 .bot-review .br-conflict-status{font-size:.7rem}
 .bot-review .br-conflict-note{font-size:.63rem}
 .bot-review .br-conflict-button{min-height:34px;font-size:.7rem}
 .bot-review .br-conflict-colors{gap:4px;margin-bottom:6px}
 .bot-review .br-conflict-chip{min-height:24px;font-size:.57rem;padding-right:5px}
 .bot-review .br-conflict-chip .br-marker{width:19px;min-width:19px;font-size:.6rem}
 .bot-review.br-has-conflict .br-narrative{max-height:clamp(280px,35dvh,300px)}
 .bot-review.br-has-conflict .br-logic-stages{display:none}
 .bot-review.br-has-conflict .br-conflict-analysis.is-showing{padding:4px 6px;margin-bottom:6px}
 .bot-review.br-has-conflict .br-conflict-scenarios{min-height:32px;padding:4px 5px;font-size:.68rem}
 .bot-review.br-has-conflict .br-conflict-analysis.is-showing .br-conflict-button{min-height:32px;font-size:.61rem}
 .bot-review.br-has-conflict .br-conflict-colors{margin-bottom:6px;gap:3px}
 .bot-review.br-has-conflict .br-conflict-chip{min-height:22px;padding:1px 4px 1px 2px;gap:3px;font-size:.55rem}
 .bot-review.br-has-conflict .br-conflict-chip .br-marker{width:18px;min-width:18px;font-size:.58rem}
 .bot-review.br-has-conflict .br-step-counter{margin-bottom:4px;font-size:.64rem}
 .bot-review.br-has-conflict h3{margin-bottom:5px;font-size:.9rem;line-height:1.3}
 .bot-review.br-has-conflict .br-step-message{font-size:.77rem;line-height:1.43}
 .bot-review.br-has-conflict .br-step-note{margin-top:5px;font-size:.63rem;line-height:1.4}
 .bot-review.br-has-conflict .br-formula{margin-top:6px;padding:6px;font-size:.85rem;line-height:1.35}
}

/* Clash cells: pulse so the eye finds where colors collide. */
@keyframes br-clash-pulse{0%,100%{box-shadow:inset 0 0 0 3px #e2ac27,0 0 0 0 #e2ac2700}50%{box-shadow:inset 0 0 0 4px #e2ac27,0 0 0 7px #e2ac2770}}
@keyframes br-clash-pulse-red{0%,100%{box-shadow:inset 0 0 0 3px #e75b6f,0 0 0 0 #e75b6f00}50%{box-shadow:inset 0 0 0 4px #e75b6f,0 0 0 7px #e75b6f77}}
.bot-review .br-tile.br-clash-cell{position:relative;z-index:2;animation:br-clash-pulse 1.2s ease-in-out infinite}
.bot-review .br-tile.br-clash-cell.br-problem{animation-name:br-clash-pulse-red}
@media (prefers-reduced-motion:reduce){.bot-review .br-tile.br-clash-cell{animation:none;box-shadow:inset 0 0 0 4px #e2ac27}.bot-review .br-tile.br-clash-cell.br-problem{box-shadow:inset 0 0 0 4px #e75b6f}}