.header-link { display: inline-flex; align-items: center; text-decoration: none; }
.report-shell { width: min(1380px, calc(100% - 40px)); margin: 0 auto; padding: clamp(40px, 6vw, 76px) 0; }
.report-login { max-width: 540px; margin: 5vh auto; }
.report-login h1, .report-heading h1 { font-size: clamp(34px, 5vw, 56px); }
.report-login > p:not(.eyebrow), .report-heading p:last-child { color: var(--muted); line-height: 1.55; }
.login-panel { display: grid; gap: 12px; margin-top: 28px; padding: 28px; border-top: 5px solid var(--yellow); background: var(--white); box-shadow: 0 16px 40px rgba(21,35,30,.1); }
.login-panel .field-error { margin: 0; }
.report-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.report-actions { display: flex; gap: 10px; }
.report-summary { margin-top: 32px; }
.report-section { margin-top: 48px; }
.report-section h2 { margin: 0 0 18px; font-size: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; }
.section-heading p { margin: -10px 0 18px; color: var(--muted); }
.report-filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(200px, 1fr) minmax(130px, .6fr) minmax(150px, .7fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; }
.report-filters label { font-size: 13px; }
.report-filters select, .report-filters input { width: 100%; height: 44px; border: 1px solid #9aaba4; border-radius: 5px; padding: 0 10px; background: var(--white); color: var(--ink); }
.report-filters .header-button { height: 44px; }
.activity-table td:nth-child(6) { min-width: 300px; max-width: 480px; }
.answer-detail { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.empty-report { padding: 28px 18px; color: var(--muted); text-align: center; }
.subscription-table td:nth-child(2) { overflow-wrap: anywhere; }
.subscription-status { font-weight: 800; }
.subscription-status--active { color: var(--green); }
.subscription-status--lifetime { color: var(--green-dark); }
.subscription-status--expired, .subscription-status--invalid { color: var(--danger); }
.subscription-status--upcoming { color: #7a5a00; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 190px; }
.subscription-actions .header-button, .subscription-actions .danger-button { min-height: 38px; padding: 0 10px; font-size: 12px; }
footer a { color: var(--green); font-weight: 750; }
@media (max-width: 900px) {
  .report-filters { grid-template-columns: 1fr 1fr; }
  .activity-table td:nth-child(6) { min-width: 250px; }
}
@media (max-width: 560px) {
  .site-header .brand { gap: 7px; font-size: 14px; white-space: nowrap; }
  .header-link { min-height: 40px; padding: 0 9px; font-size: 13px; white-space: nowrap; }
  .report-shell { width: calc(100% - 32px); padding: 36px 0; }
  .report-heading { align-items: center; }
  .report-actions { flex-direction: column; }
  .report-heading h1 { font-size: 34px; }
  .report-filters { grid-template-columns: 1fr; }
}
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  :root, body { background: #fff; color: #000; }
  body { display: block; font-size: 9pt; }
  .site-header, .report-actions, .report-filters, footer { display: none !important; }
  .report-shell { width: 100%; margin: 0; padding: 0; }
  .report-heading { display: block; }
  .report-heading h1 { font-size: 24pt; }
  .report-heading p:last-child { color: #333; }
  .report-summary { margin: 7mm 0; grid-template-columns: repeat(3, 1fr); }
  .summary-item { padding: 4mm; border: 1px solid #999; }
  .summary-item strong { font-size: 18pt; }
  .report-section { margin-top: 9mm; break-before: auto; }
  .report-section h2 { margin-bottom: 4mm; font-size: 15pt; }
  .section-heading p { margin-bottom: 4mm; color: #333; }
  .table-wrap { overflow: visible; border-color: #999; }
  table { min-width: 0; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: 2.5mm; border-color: #bbb; vertical-align: top; }
  th { color: #222; font-size: 7.5pt; }
  .activity-table { table-layout: fixed; font-size: 7.5pt; }
  .activity-table td:nth-child(6) { min-width: 0; max-width: none; overflow-wrap: anywhere; }
  .answer-detail { color: #333; font-size: 7pt; }
  .mark-correct, .mark-wrong { color: #000; }
}
