/* Report-only Premier Martial Arts visual system. */
.pma-a3-sheet .pma-icon {
  width:27px;
  height:27px;
  flex-shrink:0
}
.pma-logo {
  width:220px;
  height:144px;
  overflow:hidden;
  position:relative;
  align-self:start;
  margin-top:-10px;
  margin-bottom:-40px;
  z-index:1
}
.pma-logo img {
  position:absolute;
  max-width:none;
  width:875px;
  height:auto;
  left:-25px;
  top:-13px
}
.pma-body {
  padding:22px 20px 15px;
  display:flex;
  flex-direction:column;
  gap:17px
}
.pma-muted {
  font-size:13px;
  color:#596c5f;
  line-height:1.55
}
.pma-review-tools {
  margin:16px 0;
  background:#f7faf7;
  border:1px solid #d6e2d7;
  border-radius:10px;
  padding:17px;
  color:#183b24
}
.pma-review-tools summary {
  font-weight:650;
  cursor:pointer
}
.pma-review-tools form {
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:16px
}
.pma-review-tools label {
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:12px;
  font-weight:600
}
.pma-review-tools input,.pma-review-tools textarea,.pma-review-tools select {
  border:1px solid #c9d8cc;
  border-radius:6px;
  padding:9px;
  font:inherit;
  background:white;
  color:#163a24;
  min-width:0
}
.pma-review-tools textarea {
  min-height:70px;
  resize:vertical
}
.pma-review-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.pma-review-tools button,.pma-report-refresh {
  padding:9px 13px;
  border:1px solid #0b5625;
  background:#075824;
  color:#fff;
  border-radius:7px;
  cursor:pointer
}
.pma-review-tools button:disabled {
  opacity:.5;
  cursor:wait
}
.pma-review-status {
  font-size:12px;
  line-height:1.5
}
.pma-review-item {
  border:1px solid #d8e3da;
  padding:12px;
  border-radius:7px;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:8px
}
.pma-review-item>p {
  font-size:12px
}
.pma-review-item h4 {
  font-size:13px
}
.pma-review-actions {
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap
}
.pma-error,.pma-empty {
  padding:22px;
  border:1px solid #ddded5;
  border-radius:10px;
  background:#f9fbf7;
  color:#405947;
  font-size:13px
}
.pma-export-host {
  position:fixed;
  left:0;
  top:0;
  width:1024px;
  z-index:10000;
  background:white
}
.pma-export-host .pma-body {
  flex:1
}
.pma-export-host .pma-body {
  gap:12px;
  padding-top:18px;
  padding-bottom:12px;
}
.pma-mat-layer {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:6
}
.pma-mat-controls {
  padding:12px;
  background:#fff9df;
  border-top:1px solid #e8d898
}
.pma-mat-controls>p {
  font-size:11px;
  color:#725822;
  margin:5px 0 9px
}
.pma-mat-buttons {
  display:flex;
  gap:7px;
  flex-wrap:wrap
}
.pma-mat-controls label {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  margin-top:9px
}
.pma-mat-status {
  font-size:11px;
  color:#725822;
  display:block;
  margin-top:7px
}
.roi-stage.drawing-mat {
  cursor:crosshair
}
.roi-stage.drawing-mat .roi-handle,.roi-stage.drawing-mat .roi-ignore-handle {
  pointer-events:none
}
.pma-mat-point-list {
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:8px
}
.pma-mat-point-list button {
  font-size:10px;
  padding:3px 6px;
  border:1px solid #d7b853;
  background:#fff;
  border-radius:3px;
  color:#634b0e
}

@media(max-width:560px) {
.pma-review-fields {
  grid-template-columns:1fr
}

}
.pma-review-tools button:focus-visible {
  outline:3px solid #e4ac00;
  outline-offset:3px
}
.pma-logo svg {
  width:100%;
  height:100%;
  display:block;
}
@container pma-report (max-width:900px) {

}

/* Two reviewed incident rows share the fixed portrait page without reducing text. */

/* ---- Stage 5: v2 Studio Owner Report (A3 landscape) ---- */
.pma-a3-report {
  display:flex;
  flex-direction:column;
  gap:20px
}
.pma-a3-sheet {
  --pma-ink:#072f18;
  --pma-green:#086324;
  --pma-gold:#e7a300;
  --pma-line:#dce4dd;
  color:#102318;
  background:#fff;
  font-family:Inter,Arial,sans-serif;
  width:100%;
  max-width:1587px;
  margin:0 auto;
  box-shadow:0 8px 40px #092d1314;
  line-height:1.45;
  box-sizing:border-box;
  position:relative
}
.pma-a3-sheet * {
  box-sizing:border-box
}
.pma-a3-sheet h1,.pma-a3-sheet h2,.pma-a3-sheet h3,.pma-a3-sheet h4,.pma-a3-sheet p {
  margin:0
}
.pma-ck-state-completed,.pma-ck-state-scored,.pma-ck-state-confirmed {
  background:#0b5625;
  color:#fff
}
.pma-ck-state-reference_missing,.pma-ck-state-review,.pma-ck-state-in_progress {
  background:#b58a00;
  color:#fff
}
.pma-ck-state-conflicting_evidence,.pma-ck-state-open {
  background:#b42232;
  color:#fff
}
.pma-ck-state-not_observable,.pma-ck-state-not_applicable,.pma-ck-state-unavailable {
  background:#6b7a6f;
  color:#fff
}
.pma-ck-item {
  border:1px solid var(--pma-line);
  border-radius:9px;
  padding:10px 12px;
  background:linear-gradient(145deg,#fff,#f8faf8)
}
.pma-ck-item-head {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.pma-ck-item-head strong {
  font-size:13px;
  color:#17241b
}
.pma-ck-explanation {
  font-size:11px;
  line-height:1.5;
  color:#3f5145;
  margin-top:6px
}
.pma-ck-evidence {
  flex-wrap:wrap;
  margin-top:6px
}
.pma-ck-state {
  font-size:9px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
  padding:2px 8px;
  border-radius:9px;
  color:#fff;
  white-space:nowrap
}
/* D6: full-text export incident/pending/follow-up blocks. Whole blocks are
   paginated by the measured-overflow engine, so these rows never truncate. */
/* M5 FINDING #9: evidence appendix rows and plain-text audio timestamps */
.ev-chip-static {
  font-family:Inter,Arial,sans-serif;
  font-size:10px;
  font-weight:700;
  color:#5a6b5f;
  white-space:nowrap;
  line-height:1.4
}
.pma-ck-lone .pma-body {
  flex:1
}
.pma-export-host.pma-export-a3 {
  width:1587px
}
.pma-export-host .pma-a3-sheet {
  width:1587px;
  max-width:none;
  box-shadow:none;
  display:flex;
  flex-direction:column;
  height:auto
}
.pma-export-host .pma-a3-sheet .pma-body {
  flex:1
}

@media(max-width:850px) {
  .pma-a3-sheet:not(.pma-export-host .pma-a3-sheet) .pma-logo {
    width:145px;
    height:105px
  }
  .pma-a3-sheet:not(.pma-export-host .pma-a3-sheet) .pma-logo img {
    width:590px;
    left:-17px;
    top:-8px
  }
}

@media(max-width:560px) {
  .pma-a3-sheet:not(.pma-export-host .pma-a3-sheet) .pma-body {
    padding:15px 10px;
    gap:13px
  }
  .pma-a3-sheet:not(.pma-export-host .pma-a3-sheet) .pma-logo {
    width:117px;
    height:90px
  }
  .pma-a3-sheet:not(.pma-export-host .pma-a3-sheet) .pma-logo img {
    width:480px;
    left:-14px;
    top:-7px
  }
}

/* ---- Phase C: binary 1/0/N/A presentation (rubric-v2 Brain owner report) ---- */
.pma-ck-binary {
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:2px 9px;
  border-radius:9px;
  font-family:'Barlow Condensed','Arial Narrow',Arial,sans-serif;
  white-space:nowrap;
  flex-shrink:0
}
.pma-ck-binary b {
  font-size:19px;
  font-weight:700;
  line-height:1
}
.pma-ck-binary small {
  font-family:Inter,Arial,sans-serif;
  font-size:8px;
  font-weight:700;
  letter-spacing:.3px;
  text-transform:uppercase
}
.pma-ck-binary-met {
  background:#0b5625;
  color:#fff
}
.pma-ck-binary-not {
  background:#b42232;
  color:#fff
}
.pma-ck-binary-na {
  background:#6b7a6f;
  color:#fff
}
/* GR-05/GR-06 camera-blocked badge (rubric camera_blocked metadata) */
.pma-ck-state-camera {
  background:#35474f;
  color:#fff
}
/* Phase C all-intervals dropdown: expandable "N timestamps" label; every
   interval is a .ev-chip data-sec button handled by the global seek wiring. */
.pma-ck-intervals {
  margin-top:6px
}
.pma-ck-intervals summary {
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.3px;
  color:#175c30;
  padding:2px 8px;
  border:1px solid #c5d6c7;
  border-radius:4px;
  background:#f0f7f0;
  width:fit-content;
  user-select:none;
  list-style:none
}
.pma-ck-intervals summary::-webkit-details-marker {
  display:none
}
.pma-ck-intervals summary::before {
  content:'▸';
  font-size:9px;
  transition:transform .12s ease
}
.pma-ck-intervals[open] summary::before {
  transform:rotate(90deg)
}
.pma-ck-intervals .pma-ck-interval-list {
  margin-top:5px;
  flex-wrap:wrap
}
/* Phase C repeat-incident "portal" grouping: same dedup_group (the same
   event observed in multiple clips) renders under a ×N occurrences header
   with every occurrence individually clickable/timestamped. */

/* PMA individual-class reference: compact owner document, evidence on demand. */
.pma-focus-report { color:#121a14; }
.pma-focus-sheet { background:#fff; width:1587px; min-height:1123px; height:auto; font:15px/1.35 Arial,sans-serif; display:flex; flex-direction:column; }
.pma-focus-sheet * { box-sizing:border-box; }
.pma-focus-sheet h1,.pma-focus-sheet h2,.pma-focus-sheet h3,.pma-focus-sheet p { margin:0; }
.pma-focus-header { background:#050706; color:white; display:flex; align-items:center; gap:24px; padding:16px 25px; min-height:116px; border-bottom:3px solid #dfae27; }
.pma-focus-header .pma-logo { width:200px; flex:none; height:110px; }
.pma-focus-header .pma-logo svg { width:100%; height:100%; }
.pma-focus-header h1 { font:700 40px/1.05 'Barlow Condensed','Arial Narrow',sans-serif; text-transform:uppercase; }
.pma-focus-header p { color:#edb925; font:500 22px/1.25 'Barlow Condensed','Arial Narrow',sans-serif; text-transform:uppercase; margin-top:8px; }
.pma-focus-meta { margin-left:auto; display:flex; gap:22px; border:1px solid #9a7513; border-radius:6px; padding:14px; max-width:445px; font-size:13px; }
.pma-focus-meta>div { display:flex; align-items:center; gap:10px; flex:1; }
.pma-focus-meta>div+div { border-left:1px solid #9a7513; padding-left:18px; }
.pma-focus-meta strong,.pma-focus-meta small { display:block; margin-top:4px; }
.pma-focus-meta .pma-icon { width:35px; height:35px; flex:none; color:#edb925; }
.pma-focus-body { padding:18px 16px 10px; flex:1; }
.pma-focus-cards { display:grid; grid-template-columns:repeat(5,1fr); gap:14px; margin-bottom:20px; }
.pma-focus-card { padding:0 14px 8px; border-right:1px solid #ddcaa6; }
.pma-focus-card:last-child { border:0; }
.pma-focus-card h2 { display:flex; align-items:center; gap:12px; height:56px; font:600 19px/1.15 'Barlow Condensed',sans-serif; text-transform:uppercase; }
.pma-focus-card .pma-icon { width:39px; height:39px; flex:none; color:#00411c; }
.pma-focus-card-middle { display:flex; align-items:center; gap:14px; padding:12px 0; }
.pma-focus-card-middle>b { color:#005323; font:500 16px/1.25 'Barlow Condensed',sans-serif; text-transform:uppercase; }
.pma-focus-ring { width:105px; height:105px; border-radius:50%; background:conic-gradient(var(--ring) calc(var(--pct)*1%),#d6d8d6 0); display:grid; place-items:center; flex:none; }
.pma-focus-ring strong { display:grid; place-content:center; grid-auto-flow:column; align-items:baseline; width:84px; height:84px; background:white; border-radius:50%; font:600 34px 'Barlow Condensed',sans-serif; }
.pma-focus-ring small { font-size:21px; }
.pma-focus-ring.unavailable strong { font-size:27px; color:#7e8580; }
.pma-focus-card>p { text-align:center; text-transform:uppercase; font:500 18px 'Barlow Condensed',sans-serif; }
.pma-focus-grid { display:grid; grid-template-columns:1.05fr 1fr 1.12fr .85fr 1.32fr; gap:12px; align-items:stretch; }
.pma-focus-checklist,.pma-focus-incidents { border:1px solid #e0e4e0; border-radius:7px; overflow:hidden; display:flex; flex-direction:column; background:#fcfdfc; }
.pma-focus-grid h3 { background:#003716; color:white; font:500 17px/1.2 'Barlow Condensed',sans-serif; text-transform:uppercase; min-height:43px; padding:10px 11px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.pma-focus-grid h3 small { font:400 12px Arial,sans-serif; }
.pma-focus-check-rows { flex:1; }
.pma-focus-row { display:grid; grid-template-columns:1fr 43px; min-height:40px; border-bottom:1px solid #eceeed; font-size:13px; }
.pma-focus-row button { border:0; background:none; text-align:left; color:inherit; font:inherit; padding:9px 9px; cursor:pointer; }
.pma-focus-row button:hover { background:#eef5ef; text-decoration:underline; }
.pma-focus-row b { border-left:1px solid #eceeed; display:grid; place-items:center; font-size:15px; font-weight:500; }
.score-met { color:#067330; }.score-not { color:#e31625; }.score-na { color:#8a8f8a; }
.pma-focus-checklist footer { padding:13px 8px; text-transform:uppercase; background:#f0f2ef; display:flex; justify-content:space-between; gap:6px; font:500 15px 'Barlow Condensed',sans-serif; }
.pma-focus-checklist footer b { color:#de611d; }
.pma-focus-incidents h3 { background:#90080f; }
.pma-focus-incidents h3 .pma-icon { width:24px; height:24px; flex:none; }
.pma-focus-counts { display:grid; grid-template-columns:repeat(3,1fr); padding:15px 10px; gap:8px; }
.pma-focus-counts>div { border:1px solid #ecc1c4; text-align:center; text-transform:uppercase; padding:7px 3px; font-size:11px; }
.pma-focus-counts b { display:block; font:600 28px 'Barlow Condensed',sans-serif; }
.pma-focus-incidents table { width:100%; border-collapse:collapse; font-size:11px; table-layout:fixed; }
.pma-focus-incidents th { background:#f8e5e6; padding:7px 3px; text-transform:uppercase; font-size:10px; }
.pma-focus-incidents td { padding:10px 4px; vertical-align:top; overflow-wrap:anywhere; border-bottom:1px solid #eee; }
.pma-focus-incidents th:nth-child(3) { width:32%; }
.pma-focus-incidents>p { padding:12px; font-size:12px; }
.pma-focus-incidents .pma-focus-review { margin-top:auto; background:#fff1f1; border-top:1px solid #efc8c8; }
.pma-focus-bottom { margin-top:20px; display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:20px; }
.pma-focus-findings,.pma-focus-legend { border:1px solid #d6dad5; border-radius:7px; padding:13px 16px; min-height:156px; }
.pma-focus-findings.positive { border-color:#156338; }.pma-focus-findings.focus { border-color:#e46b23; }
.pma-focus-bottom h3 { font:600 21px 'Barlow Condensed',sans-serif; text-transform:uppercase; margin:0 0 8px; }
.pma-focus-findings.positive h3 { color:#075629; }.pma-focus-findings.focus h3 { color:#d85c12; }
.pma-focus-findings ul { padding-left:17px; margin:0; font-size:13px; line-height:1.6; }
.pma-focus-legend>div { display:grid; grid-template-columns:1fr 1fr; gap:15px; font-size:12px; line-height:1.8; }
.pma-focus-note { padding-top:10px; font-size:11px; color:#68706b; }
.pma-focus-footer { color:white; background:#050706; padding:16px; text-align:center; font:400 18px 'Barlow Condensed',sans-serif; }
.pma-focus-warning { background:#fff3d8; border-left:3px solid #d19520; padding:10px; margin-bottom:12px!important; font-size:13px; }
.pma-focus-basis { background:#f3f8f4; border-left:3px solid #003716; padding:8px 10px; margin-bottom:12px!important; font-size:13px; }
.pma-focus-evidence { margin:16px 0; padding:16px; background:#fff; border:1px solid #dfe5df; border-radius:8px; max-width:1587px; }
.pma-focus-evidence>summary { cursor:pointer; font-weight:600; }
.pma-focus-evidence section { padding:15px 0; border-top:1px solid #eee; }
.pma-focus-report button:focus-visible { outline:3px solid #b2851d; outline-offset:2px; }
.pma-focus-sheet .ev-chip { font-size:11px; padding:2px 4px; white-space:nowrap; }
.pma-export-host .pma-focus-sheet { min-height:1123px; }

.pma-focus-row { min-height:30px; line-height:1.25; }
.pma-focus-row button { padding:6px 9px; }
.pma-focus-grid h3 { min-height:38px; padding:8px 10px; }
.pma-focus-card h2 { height:48px; }
.pma-focus-cards { margin-bottom:16px; }
.pma-focus-card-middle { padding:7px 0; }
.pma-focus-header { min-height:110px; padding:12px 22px; }
.pma-focus-header .pma-logo { height:90px; width:185px; }
.pma-focus-bottom { margin-top:16px; }
.pma-focus-findings,.pma-focus-legend { min-height:140px; }
.pma-focus-footer { padding:12px; }

.pma-focus-ring { position:relative; background:none; }
.pma-focus-ring>svg { position:absolute; inset:0; width:100%; height:100%; }
.pma-focus-ring strong { position:relative; }
.pma-focus-sheet .ev-chip { background:#f3f8f4; color:#245637; border:1px solid #b6ccbc; border-radius:3px; font-family:Arial,sans-serif; margin-left:4px; text-decoration:none; }

.pma-focus-report .pma-focus-header .pma-logo { margin:0; align-self:center; }

.pma-focus-incident-appendix { min-height:1123px; }
.pma-focus-incident-text { padding:12px 0; border-bottom:1px solid #d6dad5; font:15px/1.4 Arial,sans-serif; }
.pma-focus-incident-text p { white-space:pre-wrap; overflow-wrap:anywhere; }

.pma-focus-cell { display:block; min-width:0; }
.pma-focus-reason { display:block; padding:0 9px 6px; color:#66706a; font-size:11px; line-height:1.3; }

.pma-focus-legend-labels { margin:8px 0 0; font-size:11px; line-height:1.45; color:#4d5650; }
