/* The report's .panel, .panel-header, .panel-title, .section-label and .team-btn
   own the appearance. Only the optional right-hand placement is new. */
.marcus-briefing[hidden],.marcus-briefing [hidden]{display:none!important}
.marcus-briefing{position:fixed;z-index:49;top:var(--report-anchor-offset,214px);right:16px;width:min(380px,calc(100vw - 32px));max-height:calc(100dvh - var(--report-anchor-offset,214px) - 24px)}
#pageResults:not(.active) .marcus-briefing{display:none}
.marcus-briefing>.panel{margin:0;max-height:inherit;display:flex;flex-direction:column}
.marcus-briefing .panel-header{flex-shrink:0;gap:8px}
.marcus-briefing .panel-title{font-size:16px;letter-spacing:1px;line-height:1.3}
.marcus-briefing .team-btn{padding:6px 9px;white-space:nowrap}
#marcusBriefingContent{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--yellow) var(--dark)}
.marcus-team-picker{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--border);font-size:11px}
.marcus-team-picker select{min-width:0;flex:1;padding:7px;border:1px solid var(--border);border-radius:4px;background:var(--dark);color:var(--text);font:inherit}
#marcusBriefingBody{font-size:12px;line-height:1.6;padding-top:8px}
#marcusBriefingBody p{margin:6px 0 12px;overflow-wrap:anywhere}
.marcus-section{border-bottom:1px solid var(--border);padding:10px 0}
.marcus-section>summary{cursor:pointer;color:var(--yellow);font-size:12px;font-weight:800;letter-spacing:.6px}
.marcus-section>summary:focus-visible,.marcus-briefing button:focus-visible,.marcus-briefing select:focus-visible{outline:2px solid var(--yellow);outline-offset:3px}
.marcus-section[open]>summary{margin-bottom:12px}
.marcus-fact{margin:10px 0}
.marcus-fact dt{font-size:10px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.marcus-fact dd{margin:4px 0 0}
.marcus-source{font-size:9px;color:var(--muted);display:block;margin-top:4px}
.marcus-links{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.marcus-row{border-top:1px solid var(--border);padding:10px 0}
.marcus-row strong{color:var(--yellow)}
.marcus-scope{font-size:10px;color:var(--muted)}
.marcus-intro{border-left:3px solid var(--yellow);padding:8px 12px;margin:8px 0;background:var(--dark)}
.marcus-intro>strong{font-size:16px}
.marcus-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 0}
.marcus-toolbar [data-brief-download]{background:var(--yellow);color:#111;border-color:var(--yellow)}
.marcus-toolbar button:disabled{opacity:.6;cursor:wait}
.marcus-note{margin:12px 0;padding:10px;border:1px solid var(--border);border-radius:6px}
.marcus-note h4,.marcus-score-chart h4,.marcus-counter h4{font-size:11px;margin:0 0 6px;font-weight:900;letter-spacing:.4px;color:var(--yellow)}
.marcus-note p,.marcus-counter dd{white-space:pre-line}
.marcus-note[data-kind=inference]{border-left:3px solid #ad8af0}
.marcus-note[data-kind=advice]{border-left:3px solid var(--yellow)}
.marcus-table-wrap{overflow-x:auto;max-width:100%;margin:12px 0 4px;border:1px solid var(--border);border-radius:6px}
.marcus-table{width:100%;border-collapse:collapse;font-size:11px;line-height:1.5;text-align:left}
.marcus-table caption{text-align:left;padding:8px;font-weight:bold;background:var(--dark);color:var(--yellow)}
.marcus-table th,.marcus-table td{padding:8px;vertical-align:top;border-bottom:1px solid var(--border);overflow-wrap:anywhere;min-width:54px}
.marcus-table thead th{font-size:9px;color:var(--muted);text-transform:uppercase}
.marcus-table tbody tr:nth-child(even){background:var(--dark)}
.marcus-table tbody th{font-weight:bold;color:var(--text)}
.marcus-table tr:last-child>*{border-bottom:0}
.marcus-score-chart{padding:12px 0}
.marcus-score-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;margin-bottom:12px}
.marcus-score-legend span:before{content:'';display:inline-block;width:8px;height:8px;background:#ab8bea;margin-right:5px;border-radius:2px}
.marcus-score-legend span+span:before{background:var(--yellow)}
.marcus-score-row{display:grid;grid-template-columns:26px minmax(0,1fr) 40px;align-items:center;gap:8px;margin:10px 0}
.marcus-score-row small{color:var(--muted);font-size:9px;text-align:right}
.marcus-bar{background:linear-gradient(to right,#ab8bea var(--bar),var(--dark) var(--bar));height:19px;margin:3px 0;border-radius:3px;text-align:right}
.marcus-bar.ours{background:linear-gradient(to right,var(--yellow) var(--bar),var(--dark) var(--bar))}
.marcus-bar span{display:inline-block;background:var(--dark);color:var(--text);padding:0 4px;font-size:10px;line-height:19px;border-radius:2px}
.marcus-counter{border:1px solid var(--border);border-radius:8px;padding:12px;margin:14px 0;background:var(--dark)}
.marcus-hill{display:inline-block;background:var(--yellow);color:#111;border-radius:4px;padding:3px 8px;margin-right:6px}
.marcus-counter dl{margin:6px 0 0}
.marcus-counter-step{padding:8px 0;border-top:1px solid var(--border)}
.marcus-counter-step dt{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.6px;color:var(--muted)}
.marcus-counter-step dd{margin:4px 0 0;overflow-wrap:anywhere}
.marcus-counter-step[data-step=Action]{border-left:3px solid var(--yellow);padding-left:9px}
.marcus-counter-step[data-step="Success check"]{border-left:3px solid #36ba74;padding-left:9px}
@media(min-width:1680px){.marcus-briefing{left:calc(50% + 500px + 12px);right:16px;width:auto;max-width:400px}}
/* Below the wide layout the closed panel never floats over the report; the
   report header's quick-review button opens it. */
@media(max-width:1679px){.marcus-briefing:not([data-open="true"]){display:none!important}.marcus-briefing[data-open="true"]{z-index:55;box-shadow:0 12px 36px #0008}}
.marcus-quick-btn{background:#111!important;color:var(--yellow)!important;border-color:#111!important}
.marcus-quick-btn[aria-expanded="true"]{box-shadow:inset 0 0 0 2px var(--yellow)}
@media(min-width:1680px){#marcusQuickBtn{display:none!important}}
/* Phones: with Share to Showcase the four buttons form a 2x2 grid and Counter
   Strats sits under Download PDF; without it, Counter Strats spans the last row. */
@media(max-width:820px){.results-actions{align-items:stretch}.results-actions:not(:has(#showcaseShareBtn:not([hidden]))) .marcus-quick-btn{grid-column:1/-1}}
@media print{#marcusQuickBtn{display:none!important}}
@media(max-height:560px){.marcus-briefing[data-open="true"]{top:70px;max-height:calc(100dvh - 90px)}}
@media print{#coachMarcusBriefing{display:none!important}}
