/* Cases recovery app: opt-in resource adapter, no layout/data/JS changes.
 * Original c8aaf stylesheet owns grid, state visibility and print.
 */
@media screen {
  body.am-community-resource[data-resource-kind="cases"] {
    --raised:var(--panel2); --magenta:var(--pink); --focus:var(--cyan);
    line-height:1.45;
  }
  /* This document forbids all font downloads via its own meta CSP. */
  body.am-community-resource[data-resource-kind="cases"] .brand { font-family:var(--display); }
  body.am-community-resource[data-resource-kind="cases"] button { min-block-size:44px; line-height:1.45; }
  body.am-community-resource[data-resource-kind="cases"] .scenario-buttons button { font-size:.87rem; }
  body.am-community-resource[data-resource-kind="cases"] .exports button { font-size:.86rem; }
  body.am-community-resource[data-resource-kind="cases"] .recovery-actions button { font-size:.875rem; }
  body.am-community-resource[data-resource-kind="cases"] .text-button { font-size:.82rem; }
  body.am-community-resource[data-resource-kind="cases"] .scenario-buttons button[aria-pressed="true"] {
    background:var(--panel2); color:var(--text); border-color:var(--cyan);
  }
  body.am-community-resource[data-resource-kind="cases"] textarea { background:var(--field); color:var(--text); }
  body.am-community-resource[data-resource-kind="cases"] textarea[aria-invalid="true"] { border-color:var(--danger); }
  body.am-community-resource[data-resource-kind="cases"] :where(.chip,.memory) {
    background:var(--panel2); color:var(--text); border-color:var(--cyan);
  }
  body.am-community-resource[data-resource-kind="cases"] .caveat { background:var(--panel); border-color:var(--pink); }
  body.am-community-resource[data-resource-kind="cases"] :where(.status,.record h3) { color:var(--cyan); }
  body.am-community-resource[data-resource-kind="cases"] .empty-value { color:var(--pink); }
  body.am-community-resource[data-resource-kind="cases"] .fatal { color:var(--danger); }
}
@media screen and (max-width:760px) {
  body.am-community-resource[data-resource-kind="cases"] .scenario-buttons button { font-size:.8rem; }
}
@media screen and (forced-colors:active) {
  body.am-community-resource[data-resource-kind="cases"] .scenario-buttons button[aria-pressed="true"] {
    background:Highlight; color:HighlightText; border-color:Highlight;
  }
  body.am-community-resource[data-resource-kind="cases"] .caveat { border-color:CanvasText; }
  body.am-community-resource[data-resource-kind="cases"] textarea[aria-invalid="true"] { border-color:CanvasText; border-style:double; }
  body.am-community-resource[data-resource-kind="cases"] button:is(:disabled,[aria-disabled="true"]),
  body.am-community-resource[data-resource-kind="cases"] .scenario-buttons button:is(:disabled,[aria-disabled="true"]) {
    background:ButtonFace; color:GrayText; border-color:GrayText; opacity:1;
  }
}
@media print {
  body.am-community-resource[data-resource-kind="cases"] .brand { font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
}