/* JoeLearns Labs: opt-in local session recovery */
.jl-recovery-panel{border:1px solid rgba(87,143,170,.34);background:rgba(8,28,44,.68);border-radius:13px;padding:14px;margin-top:17px;min-width:0}
.jl-recovery-top{display:flex;align-items:center;justify-content:space-between;gap:9px}
.jl-recovery-top strong{font-size:13px;font-weight:850;color:#e3f3fc}
.jl-recovery-indicator{font-size:10px;white-space:nowrap;border:1px solid #64798b;padding:3px 9px;color:#adbdc9;border-radius:99px;font-weight:850}
.jl-recovery-indicator.is-on{border-color:#3f997c;color:#a6f0ce;background:#123c33}
.jl-recovery-indicator.is-warning{border-color:#bb9256;color:#ffdba6;background:#482e18}
.jl-recovery-summary{font-size:11px;color:#acc6d8;line-height:1.55;margin:10px 0}
.jl-recovery-options{display:grid;grid-template-columns:1fr 1fr 1.18fr;gap:5px}
.jl-recovery-options button{border:1px solid #3b5c73;border-radius:8px;background:#0c2437;padding:9px 4px;font-size:11px;font-weight:750;color:#c2d9e5;min-width:0}
.jl-recovery-options button:hover{border-color:#61cce0;color:#e7faff}
.jl-recovery-options button.selected{background:#154d5c;border-color:#4bcbe0;color:#e9fcff}
.jl-recovery-help{font-size:11px;color:#9db9ca;line-height:1.55;margin:11px 0}
.jl-recovery-utility,.jl-recovery-learn{border:1px solid #385b73;background:transparent;border-radius:8px;color:#8ad6e9;padding:7px 9px;font-size:11px;font-weight:800}
.jl-recovery-utility{margin:0 0 9px}
.jl-recovery-learn{display:block;width:100%;text-align:left}
.jl-recovery-learn:hover,.jl-recovery-utility:hover{color:#e4faff;background:#12394e}
.jl-recovery-disclosure{padding:12px 10px 3px;border:1px solid #344f68;border-radius:9px;margin-top:8px;background:#0a1d31}
.jl-recovery-disclosure p{font-size:11px;line-height:1.6;color:#adc5d7;margin:0 0 12px}
.jl-recovery-disclosure strong{color:#dbf0fa}
.jl-recovery-disclosure code{color:#8ce8ed;overflow-wrap:anywhere}
.jl-recovery-notice{color:#9ce1c7;font-size:11px;line-height:1.5;margin:10px 0 0}
.jl-recovery-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(1,7,18,.87);backdrop-filter:blur(9px)}
.jl-recovery-dialog{max-width:510px;width:100%;max-height:90dvh;overflow-y:auto;background:linear-gradient(140deg,#152b44,#091729);border:1px solid #4a7389;border-radius:19px;box-shadow:0 26px 80px #000a;padding:28px;color:#f2f8ff}
.jl-recovery-eyebrow{color:#7ae4eb;font-size:10px;font-weight:850;letter-spacing:1.5px}
.jl-recovery-dialog h2{font-size:25px;letter-spacing:-.035em;margin:10px 0 11px;color:#f2fbff}
.jl-recovery-dialog>p{font-size:13px;color:#bdd2e2;line-height:1.65}
.jl-recovery-detail{border:1px solid #35536c;background:#0c2338;border-radius:12px;padding:14px;display:grid;gap:5px;margin:15px 0}
.jl-recovery-detail strong{font-size:14px;color:#d2f6ff}
.jl-recovery-detail small{font-size:12px;color:#a9c4d8}
.jl-recovery-dialog .jl-recovery-caution{color:#f5d8a4;border-left:3px solid #c4a261;padding-left:12px}
.jl-recovery-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.jl-recovery-actions button{border-radius:11px;padding:11px 16px;font-size:12px;font-weight:850;flex:1;min-width:160px}
.jl-recovery-actions button:first-child{border:1px solid #45c6d8;background:linear-gradient(110deg,#146075,#1c4674);color:#ecfcff}
.jl-recovery-actions button:last-child{border:1px solid #466078;background:#14253b;color:#d5e5f2}
.jl-recovery-actions button:hover{filter:brightness(1.16)}
.jl-recovery-options button:focus-visible,.jl-recovery-learn:focus-visible,.jl-recovery-dialog button:focus-visible{outline:2px solid #56d7eb;outline-offset:3px}
html[data-theme="light"] .jl-recovery-panel{background:#f1f8fc;border-color:#c2dce8}
html[data-theme="light"] .jl-recovery-top strong{color:#25455d}
html[data-theme="light"] .jl-recovery-indicator{color:#5c6d79;border-color:#bdccd6}
html[data-theme="light"] .jl-recovery-indicator.is-on{background:#dff5eb;border-color:#8cceb1;color:#167049}
html[data-theme="light"] .jl-recovery-indicator.is-warning{background:#fff0d8;border-color:#deb97d;color:#855722}
html[data-theme="light"] .jl-recovery-summary,html[data-theme="light"] .jl-recovery-help{color:#506d81}
html[data-theme="light"] .jl-recovery-options button{background:#fff;border-color:#c3d9e6;color:#375a70}
html[data-theme="light"] .jl-recovery-options button.selected{background:#d8f0f7;color:#145973;border-color:#6ab8d0}
html[data-theme="light"] .jl-recovery-utility,html[data-theme="light"] .jl-recovery-learn{color:#267b96;border-color:#b4d1e0}
html[data-theme="light"] .jl-recovery-learn:hover,html[data-theme="light"] .jl-recovery-utility:hover{background:#e6f3f8}
html[data-theme="light"] .jl-recovery-disclosure{background:#fff;border-color:#c6dce9}
html[data-theme="light"] .jl-recovery-disclosure p{color:#4c677c}
html[data-theme="light"] .jl-recovery-disclosure strong{color:#254b61}
html[data-theme="light"] .jl-recovery-disclosure code{color:#166f8b}
html[data-theme="light"] .jl-recovery-notice{color:#176c4c}
html[data-theme="light"] .jl-recovery-dialog{background:linear-gradient(145deg,#fff,#f2f9fd);border-color:#99c1d8;box-shadow:0 30px 85px #1115}
html[data-theme="light"] .jl-recovery-dialog h2{color:#1b415b}
html[data-theme="light"] .jl-recovery-dialog>p{color:#4c677c}
html[data-theme="light"] .jl-recovery-eyebrow{color:#197b9c}
html[data-theme="light"] .jl-recovery-detail{background:#e9f5fa;border-color:#bbd4e1}
html[data-theme="light"] .jl-recovery-detail strong{color:#1e5b73}
html[data-theme="light"] .jl-recovery-detail small{color:#506e80}
html[data-theme="light"] .jl-recovery-dialog .jl-recovery-caution{color:#80552a}
@media(max-width:540px){.jl-recovery-panel{padding:11px}.jl-recovery-dialog{padding:19px}.jl-recovery-dialog h2{font-size:21px}.jl-recovery-actions button{width:100%}}

/* Recovery stays visible near the tracker heading on medium layouts. */
.right-pane .pane-inner>.jl-recovery-panel{grid-column:1/-1;margin-top:0;margin-bottom:17px}
.pane-body>.jl-recovery-panel{margin-top:0;margin-bottom:17px}


/* Recovery belongs to the investigation header, not inside the progress tracker. */
.mission-heading,.workspace-top{flex-wrap:wrap;align-items:flex-start;column-gap:20px;row-gap:16px}
.mission-heading>div:first-child,.workspace-top>div:first-child{flex:1 1 360px;min-width:0}
.jl-recovery-hero{flex:0 1 390px;width:min(100%,390px);min-width:290px;align-self:flex-end}
.mission-heading .heading-right,.workspace-top .workspace-status{flex:0 0 auto;align-self:flex-start}
.jl-recovery-hero .jl-recovery-panel{margin:0;padding:13px 15px;border-radius:14px;box-shadow:0 4px 24px rgba(8,43,61,.09)}
.jl-recovery-hero .jl-recovery-summary{margin:5px 0 9px}
.jl-recovery-hero .jl-recovery-options button{min-height:35px}
.jl-recovery-hero .jl-recovery-help{margin:8px 0 7px}
.jl-recovery-hero .jl-recovery-learn{display:inline-block;width:auto;padding:4px 7px;border:0;text-align:left}
.jl-recovery-hero .jl-recovery-disclosure{max-height:220px;overflow-y:auto}
.jl-recovery-back{display:block;margin:13px auto 0;border:0;background:transparent;color:#abd3e6;font-size:12px;font-weight:750;text-decoration:underline;text-underline-offset:3px;padding:8px}
.jl-recovery-back:hover{color:#e7fbff}
html[data-theme="light"] .jl-recovery-back{color:#31748d}
html[data-theme="light"] .jl-recovery-back:hover{color:#165b75}
@media(max-width:1480px){
  .mission-heading .jl-recovery-hero,.workspace-top .jl-recovery-hero{order:3;flex:0 1 520px;width:100%;max-width:520px;margin-left:auto}
}
@media(max-width:900px){
  .mission-heading .jl-recovery-hero,.workspace-top .jl-recovery-hero{order:3;max-width:100%;margin:0;flex:1 1 100%}
}
@media(max-width:550px){
  .jl-recovery-hero{min-width:0}
  .jl-recovery-hero .jl-recovery-panel{padding:12px}
  .jl-recovery-back{font-size:11px}
}


/* Compact, horizontal recovery strip — avoid growing the incident header. */
.jl-recovery-panel{position:relative}
.jl-recovery-compact-row{display:flex;align-items:center;gap:11px;margin:7px 0 5px;min-width:0}
.jl-recovery-compact-row .jl-recovery-options{flex:1 1 auto;min-width:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.jl-recovery-compact-row .jl-recovery-options button{min-height:33px;padding:6px 4px;white-space:nowrap}
.jl-recovery-compact-row .jl-recovery-learn{flex:0 0 auto;white-space:nowrap;font-size:11px;padding:6px 5px}
.jl-recovery-compact-status{font-size:11px;line-height:1.35;margin:4px 0 0;color:#acc6d8}
.jl-recovery-hero{min-width:0;align-self:start}
.jl-recovery-hero .jl-recovery-panel{padding:10px 14px}
.jl-recovery-hero .jl-recovery-disclosure{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:60;max-height:min(340px,55vh);overflow-y:auto;box-shadow:0 18px 38px rgba(4,17,32,.22);margin:0}
html[data-theme="light"] .jl-recovery-compact-status{color:#506d81}

/* Keep title, recovery and severity on the SAME desktop row. */
@media(min-width:1380px){
  .mission-heading,.workspace-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(390px,min(30vw,520px)) max-content;gap:16px;align-items:start}
  .mission-heading>div:first-child,.workspace-top>div:first-child{min-width:0}
  .mission-heading .jl-recovery-hero,.workspace-top .jl-recovery-hero{order:initial;flex:none;width:100%;max-width:none;margin:0}
  .mission-heading .heading-right,.workspace-top .workspace-status{justify-self:end;align-self:start}
}
@media(min-width:900px) and (max-width:1379px){
  .mission-heading .jl-recovery-hero,.workspace-top .jl-recovery-hero{order:3;flex:1 1 100%;width:100%;max-width:none;margin:0}
  .mission-heading .jl-recovery-hero .jl-recovery-panel,.workspace-top .jl-recovery-hero .jl-recovery-panel{max-width:720px;margin-left:auto}
}
@media(max-width:650px){
  .jl-recovery-compact-row{flex-wrap:wrap;gap:5px}
  .jl-recovery-compact-row .jl-recovery-options{flex:1 1 100%}
  .jl-recovery-compact-row .jl-recovery-learn{padding-left:0}
  .jl-recovery-hero .jl-recovery-disclosure{position:static;max-height:260px;box-shadow:none;margin-top:8px}
}


/* Optional, non-blocking access to a successfully completed report. */
.jl-recovery-review{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #399fba;border-radius:10px;
  color:#a4e5f6;background:rgba(22,82,111,.18);
  font-size:11px;font-weight:800;padding:8px 11px;
  cursor:pointer;text-align:left;max-width:100%;
}
.jl-recovery-review:hover{background:rgba(26,108,140,.32);border-color:#5dcce4;color:#e6faff}
.jl-recovery-review:focus-visible{outline:2px solid #5cd3e7;outline-offset:2px}
.jl-recovery-panel .jl-recovery-review{margin-top:7px;display:flex;width:100%}
.hero-actions + .jl-recovery-review{margin-top:12px}
html[data-theme="light"] .jl-recovery-review{color:#176784;border-color:#84c4d6;background:#e2f4fa}
html[data-theme="light"] .jl-recovery-review:hover{background:#cdeaf5;color:#15506c}
