/* Reports */
.rep { padding-top: 28px; padding-bottom: 60px; }
.rep-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.rep-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .1em 0 .2em; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.filters .input { border-radius: var(--radius); }
.back { font-weight: 800; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.rep-list { display: grid; gap: 10px; }
.rep-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center; background: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); }
.rep-row:hover, .rep-row:focus-visible { box-shadow: 0 0 0 3px var(--mint), var(--shadow); }
.rep-row h2 { margin: 0 0 .2rem; font-size: 1.12rem; }
.rep-row .sub { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
.rep-row .num { text-align: center; font-weight: 800; font-size: 1.15rem; min-width: 80px; }
.rep-row .num small { display: block; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge.live { background: var(--mint-50); color: var(--teal-700); }
.badge.open { background: #E6F0FB; color: #1D5FA8; }
.badge.closed, .badge.interrupted, .badge.ended_early { background: var(--cream-200); color: #5A4A30; }
.badge.brand { background: var(--navy); color: #fff; }
.badge.sample { background: #FFE2A8; color: #5A3D00; }

.sample-banner { background: #FFF6E0; color: #5A3D00; border-radius: var(--radius); padding: .9em 1.1em; font-weight: 600; margin-bottom: 14px; display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; }
.anon-banner { background: var(--mint-50); color: var(--teal-700); border-radius: var(--radius); padding: .8em 1em; font-weight: 600; }
.challenge-box { background: var(--mint); border-radius: var(--radius-lg); padding: 1rem 1.3rem; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-weight: 700; }
.challenge-box .code { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 800; letter-spacing: 2px; }
.challenge-box .input { flex: 1; min-width: 220px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.stat b { display: block; font-family: 'Fraunces', serif; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stat > span { color: var(--navy); font-weight: 800; font-size: .9rem; display: block; }
.stat small { color: var(--muted); font-weight: 600; display: block; margin-top: .2em; line-height: 1.35; }

.next-steps { background: var(--navy); color: var(--cream); border-radius: var(--radius-lg); padding: 1.1rem 1.3rem; margin-bottom: 20px; }
.next-steps h2 { color: var(--mint); font-size: 1.25rem; margin-bottom: .5em; }
.next-steps ul { margin: 0; padding-left: 1.2em; display: grid; gap: .5em; line-height: 1.5; }
.next-steps a { color: var(--mint); }
.next-steps:empty { display: none; }

.tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: .5em 1.1em; font-weight: 800; cursor: pointer; font-family: inherit; color: var(--navy); min-height: 44px; }
.tab.on { background: var(--navy); color: #fff; border-color: var(--navy); }

.qgroup { margin-bottom: 22px; }
.qgroup > h2 { font-size: 1.15rem; font-family: var(--font-body); font-variation-settings: normal; font-weight: 800; margin: 0 0 .2em; }
.qgroup > p { margin: 0 0 .8em; color: var(--muted); font-size: .9rem; }
.qcards { display: grid; gap: 10px; }
.qc { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem 1.2rem; display: grid; gap: .5rem; }
.qc.flag { box-shadow: inset 5px 0 0 var(--coral), var(--shadow); }
.qc .top { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.qc h3 { font-size: 1.05rem; margin: 0; font-family: var(--font-body); font-variation-settings: normal; font-weight: 800; }
.qc .qn { color: var(--muted); font-weight: 800; margin-right: .4em; }
.qc .facts { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .88rem; color: var(--navy-500); font-weight: 600; }
.acc { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.acc .bar { flex: 1; max-width: 340px; height: 12px; border-radius: 99px; background: var(--cream-200); overflow: hidden; }
.acc .bar i { display: block; height: 100%; border-radius: inherit; }
.dist { display: grid; gap: 6px; }
.dist .row { display: grid; grid-template-columns: minmax(80px, 220px) 1fr 70px; gap: 10px; align-items: center; font-size: .9rem; font-weight: 600; }
.dist .row .bar { height: 12px; border-radius: 99px; background: var(--cream-200); overflow: hidden; }
.dist .row .bar i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--mint-50); border-radius: 99px; padding: .2em .7em; font-size: .82rem; font-weight: 700; }
.resp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.resp-list li { background: var(--cream); border-radius: var(--radius); padding: .5em .8em; font-size: .9rem; line-height: 1.45; }
.flag-note { color: #9A3A1C; font-weight: 800; font-size: .85rem; }

.data .cell { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-weight: 800; font-size: .8rem; }
.data .cell.ok { background: #DCF2E3; color: #2C6B40; }
.data .cell.no { background: #FBE1DC; color: #9A2B1C; }
.data .cell.na { background: var(--cream-200); color: var(--muted); }
.pfilter { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.defs { margin-top: 26px; font-size: .85rem; line-height: 1.55; }

/* Challenge invitations, LMS export menu */
.invitees { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1rem 1.2rem; margin-bottom: 16px; }
.inv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-head h2 { font-size: 1.15rem; margin: 0; }
.inv-status { font-weight: 800; font-size: .85rem; }
.inv-status.completed { color: #2C6B40; } .inv-status.started { color: #8A5A00; } .inv-status.not_started { color: var(--muted); }
.lms-menu { position: relative; }
.lms-panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 300px; padding: .9rem; display: grid; gap: 8px; }
.lms-panel .hint { margin: 0; }
#repShare { margin: -6px 0 14px; }

/* Row labels (a person, a topic, a session) read as normal text, not as column headings */
.data tbody th { text-transform: none; letter-spacing: normal; font-size: .95rem; color: var(--navy); white-space: normal; font-weight: 800; }

/* Progress */
.spark { display: block; overflow: visible; }
.spark-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-ref { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.spark-dot { fill: var(--teal); stroke: #fff; stroke-width: 2; }
.spark-dot.last { fill: var(--navy); }
.spark circle { cursor: default; }
.tag-pill { display: inline-block; background: var(--mint-50); color: var(--teal-700); border-radius: 99px; padding: .15em .7em; font-weight: 800; font-size: .85rem; }
.chg { font-weight: 800; white-space: nowrap; }
.chg.up { color: #2C6B40; } .chg.down { color: #B23A1E; } .chg.flat { color: var(--muted); }

@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > div:first-child { grid-column: 1 / -1; }
  .rep-row { grid-template-columns: 1fr auto; }
  .rep-row .hide-sm { display: none; }
  .dist .row { grid-template-columns: 1fr 1fr 60px; }
}
@media print {
  .topnav, .site-footer, .head-actions, .tabs, .back, #filters, .skip-link { display: none !important; }
  [data-pane] { display: block !important; }
  .qc, .stat, .rep-row { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  body { background: #fff; }
}
