/* Inherit the live report's type size, line height and ink. Never scale report text. */
.live-finding{display:flow-root;overflow-wrap:anywhere}
.live-screen{float:right;width:calc((100% - 24px)/3);margin:0 0 20px 24px}
.live-finding:has(.live-screen) .live-finding-copy{width:calc(2 * (100% - 24px)/3)}
button.live-screen-open{display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--ink);text-align:left;font-weight:400}
button.live-screen-open:hover{filter:none;border-color:var(--muted)}
.live-screen-open img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;background:var(--bg)}
.live-screen-caption{display:flex;justify-content:space-between;gap:8px;padding:12px;color:var(--ink);background:var(--surface);font-size:13px}
.live-screen figcaption{color:var(--ink);font-size:13px;line-height:1.6}
.live-screen-mobile-label{display:none}
.live-screen-unavailable{display:block;margin-top:12px;color:var(--ink)}
.live-screen-unavailable[hidden],.live-screen-open img[hidden]{display:none}
.live-screen-dialog{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:12px;width:min(1200px,calc(100% - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0}
.live-screen-dialog::backdrop{background:rgb(0 0 0 / .78)}
.live-screen-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1;background:var(--bg)}
.live-screen-dialog-header .fine{margin:4px 0 0}
.live-screen-dialog-header button{min-height:44px;flex-shrink:0;background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.live-screen-dialog-content{padding:24px}
.live-screen-dialog-content img{display:block;width:100%;height:auto;object-fit:contain}
@media(max-width:700px){
 .live-screen{float:none;width:auto;display:flex;align-items:center;gap:14px;margin:0 0 24px}
 .live-finding:has(.live-screen) .live-finding-copy{width:auto}
 button.live-screen-open{width:104px;flex:0 0 104px}
 .live-screen-open img{height:78px;object-fit:contain}
 .live-screen-caption{display:none}
 .live-screen-mobile-label{display:inline}
 .live-screen-dialog{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0}
 .live-screen-dialog-header{padding:16px;padding-top:max(16px,env(safe-area-inset-top))}
 .live-screen-dialog-content{padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom))}
}


/* Saved history and shared summary keep live typography at all breakpoints. */
.live-history-actions{margin:24px 0 32px}.live-history-results{display:grid;gap:16px}
.live-history-report{display:flex;justify-content:space-between;align-items:center;gap:24px;min-width:0}.live-history-report>div{min-width:0}.live-history-report h2{margin:16px 0 10px;overflow-wrap:anywhere}.live-history-report h2 a{text-decoration:none;color:var(--ink)}.live-history-report h2 a:hover{text-decoration:underline;text-underline-offset:4px}.live-history-report>.live-review-text{flex-shrink:0}
.heuristic-report{font-size:16px;line-height:1.6;color:var(--ink);min-width:0}.heuristic-report p{font-size:16px;line-height:1.6;color:var(--ink)}.heuristic-report .fine{font-size:12px;color:var(--muted)}.heuristic-report-label{padding:18px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:13px}
.heuristic-report .flow-report-hero{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:center;gap:32px;padding:36px 0}.heuristic-report .flow-report-hero h1{font-size:clamp(30px,3.4vw,48px);line-height:1.15}.heuristic-report .flow-report-hero img{display:block;width:100%;height:auto;max-width:320px;mix-blend-mode:lighten}.heuristic-report .flow-report-hero .row{margin-top:24px}
.heuristic-report-context{padding:24px 0;border-top:1px solid var(--line)}.heuristic-report .report-outcomes p{font-size:16px}.heuristic-report .report-outcomes a span{font-size:12px;color:var(--ink)}.heuristic-report .live-finding{margin:20px 0;padding:24px}.heuristic-report .flow-findings h3{font-size:24px;max-width:none;line-height:1.35}.heuristic-report h4{font-size:16px;margin:20px 0 6px}.heuristic-report h4:first-child{margin-top:0}.heuristic-report-next{padding:28px 0;border-top:1px solid var(--line);margin-top:32px}.heuristic-report .report-outcomes{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.heuristic-report .report-outcomes>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:900px){.heuristic-report .report-outcomes{grid-template-columns:1fr 1fr}.heuristic-report .report-outcomes>div{grid-column:1/-1}}
@media(max-width:700px){.live-history-report{flex-direction:column;align-items:stretch;gap:8px}.live-history-actions{align-items:stretch}.heuristic-report .flow-report-hero{grid-template-columns:1fr;gap:20px}.heuristic-report .flow-report-hero figure{max-width:220px;justify-self:center}.heuristic-report .report-outcomes{grid-template-columns:1fr}.heuristic-report .live-finding{padding:20px}.heuristic-report .flow-findings h3{font-size:22px}}

.report-display-name{padding:18px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;overflow-wrap:anywhere}
.report-label-editor{margin:8px 0;min-width:0}
.report-label-editor form{padding:16px 0;max-width:600px}
.report-label-editor [hidden]{display:none!important}
.report-label-editor label{display:grid;gap:8px;font-size:16px;color:var(--ink)}
.report-label-editor input{width:100%;min-width:0;font-size:16px}
.report-label-editor .row{gap:12px}
.report-label-editor button{min-height:44px}
@media(max-width:700px){.report-display-name{display:block}}

/* Rename is a quiet tertiary action beside the report-opening action. */
.live-history-report .report-label-editor>[data-label-edit]{font-size:14px;font-weight:400;color:var(--muted);-webkit-text-fill-color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.live-history-report .report-label-editor>[data-label-edit]:hover{color:var(--ink);-webkit-text-fill-color:var(--ink)}

/* Keep report maintenance compact while preserving full-height touch targets. */
.live-history-report-actions{display:flex;align-items:center;flex-wrap:wrap;column-gap:10px;min-width:0}
.live-history-report-actions .report-label-editor{display:contents}
.live-history-report-actions .report-label-editor form{order:1;flex:0 0 100%;box-sizing:border-box}
.live-history-report-actions>.report-action-separator{color:var(--muted)}
.live-history-report-actions:has([data-label-form]:not([hidden]))>.report-action-separator{display:none}


.report-delete-action{font-size:14px!important;color:var(--muted)!important;-webkit-text-fill-color:var(--muted)!important;text-decoration:underline!important;min-height:44px}.report-delete-dialog{background:#1C1E21;color:#EEEDE8;border:1px solid #666;border-radius:12px;width:min(520px,calc(100% - 32px));padding:24px}.report-delete-dialog::backdrop{background:rgba(0,0,0,.7)}.report-delete-dialog p{font-size:16px;line-height:1.6;overflow-wrap:anywhere}.report-delete-dialog .row{gap:16px;flex-wrap:wrap}.report-delete-dialog button{min-height:44px}.report-delete-dialog h2{font-size:24px}.report-retention{max-width:78ch}

.live-screen-placeholder{padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.live-screen-placeholder>span,.live-screen-placeholder>strong{display:block;margin-bottom:12px}
.live-screen-placeholder p{font-size:16px;line-height:1.6;margin:0}
.live-screen-expiry{display:block;margin-top:8px}
.live-retention-notice{font-size:16px;line-height:1.6;color:var(--muted)}
@media(max-width:700px){.live-screen-expired{display:block}.live-screen-placeholder{width:100%}}

/* Heuristic taxonomy uses an informational lavender, separate from severity and action colours. */
.heuristic-report .heuristic-label{margin:18px 0 0}.heuristic-report .heuristic-pill{display:inline-block;box-sizing:border-box;max-width:100%;padding:6px 11px;border:1px solid #716589;border-radius:16px;background:#353141;color:#E1D8F4;font-size:14px;font-weight:500;line-height:1.45;white-space:normal;overflow-wrap:anywhere}

/* Tasks and other user-authored context can contain unbroken URLs or identifiers. */
.heuristic-report{overflow-wrap:anywhere}

/* Keep finding-title editing attached to its heading and visually quiet. */
.live-finding-heading{margin-bottom:16px}
.heuristic-report .live-finding-heading h3{margin-bottom:0}
.live-finding-heading .report-label-editor{margin:0}
.heuristic-report .live-finding-heading button[data-label-edit]{min-height:44px;padding:4px 0;font-size:14px;font-weight:400;color:var(--muted);-webkit-text-fill-color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.heuristic-report .live-finding-heading button[data-label-edit]:hover{color:var(--ink);-webkit-text-fill-color:var(--ink)}
.heuristic-report .live-finding-heading>.fine{margin:0}

/* Protocol outcomes retain the original heuristic numbers and evidence links. */
.heuristic-report .protocol-outcome-groups{display:grid;gap:12px;margin:20px 0}
.heuristic-report .protocol-outcome-group{border:1px solid var(--line);border-radius:8px;padding:0 16px;--protocol-tone:var(--muted)}
.heuristic-report .protocol-outcome--issue_found{--protocol-tone:#e9bb75;border-left:3px solid var(--protocol-tone)}
.heuristic-report .protocol-outcome--no_issue_observed{--protocol-tone:#b8d2b2}
.heuristic-report .protocol-outcome--insufficient_evidence{--protocol-tone:#c4b5e5}
.heuristic-report .protocol-outcome-group>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;cursor:pointer;list-style:none}
.heuristic-report .protocol-outcome-group>summary::-webkit-details-marker,.heuristic-report .protocol-assessment summary::-webkit-details-marker{display:none}
.heuristic-report .protocol-group-title{display:flex;align-items:center;gap:10px;color:var(--protocol-tone)}
.heuristic-report .protocol-group-symbol{display:grid;place-items:center;width:24px;height:24px;flex-shrink:0;border:1px solid currentColor;border-radius:50%;font-weight:600}
.heuristic-report .protocol-group-count{font-size:14px;color:var(--muted);white-space:nowrap}
.heuristic-report .protocol-assessments{list-style:none;padding:0;margin:12px 0}
.heuristic-report .protocol-assessment{border-top:1px solid var(--line);padding:0}
.heuristic-report .protocol-assessment summary{display:flex;align-items:center;gap:10px;min-height:56px;cursor:pointer;list-style:none}
.heuristic-report .protocol-disclosure{color:var(--muted);font-size:24px;line-height:1}
.heuristic-report .protocol-assessment details[open] .protocol-disclosure{transform:rotate(90deg)}
.heuristic-report .protocol-criterion{flex:1;min-width:0}
.heuristic-report .protocol-number{color:var(--muted);font-size:14px}
.heuristic-report .protocol-status{flex-shrink:0;border:1px solid var(--protocol-tone);border-radius:20px;padding:3px 9px;font-size:12px;color:var(--protocol-tone);font-weight:500}
.heuristic-report .protocol-assessment-body{padding:0 0 12px 22px}
.heuristic-report .protocol-outcome-group summary:focus-visible{outline:2px solid var(--citron);outline-offset:3px;border-radius:3px}
@media(max-width:600px){.heuristic-report .protocol-outcome-group{padding:0 12px}.heuristic-report .protocol-assessment summary{flex-wrap:wrap;padding:12px 0}.heuristic-report .protocol-criterion{flex-basis:calc(100% - 32px)}.heuristic-report .protocol-status{margin-left:22px}.heuristic-report .protocol-group-count{font-size:12px}}
@media print{.heuristic-report .protocol-outcome-group{border:0;border-radius:0;padding:0;--protocol-tone:#222}.heuristic-report .protocol-status{color:#222;border-color:#777}.heuristic-report .protocol-outcome-group>summary{display:flex}.heuristic-report .protocol-outcome-group:not([open])>:not(summary),.heuristic-report .protocol-assessment details:not([open])>:not(summary){display:block}}
