.signed-in .hero { display: none; }
.signed-in main { padding-top: 28px; }
.signed-in .workspace-heading { border: 0; background: transparent; box-shadow: none; padding: 0 0 24px; border-radius: 0; }
.signed-in .workspace-heading h2 { font-size: 1.2rem; }
.signed-in .workspace-heading .eyebrow { display: none; }
.signed-in .workspace-heading p { font-size: .875rem; }
.national-network-control { display: flex; gap: 12px; align-items: center; margin: 0 0 26px; }
.national-network-control select { width: auto; min-width: 230px; max-width: 100%; margin: 0; }
.national-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.national-heading h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.035em; }
.national-muted { color: var(--muted); font-size: .875rem; }
.national-heading .national-muted { margin: 9px 0 0; }
.national-tabs { display: flex; gap: 28px; margin: 28px 0 0; border-bottom: 1px solid var(--line); }
.national-tabs button { color: var(--muted); background: transparent; border-radius: 0; border-bottom: 3px solid transparent; min-height: 46px; padding: 6px 0 12px; }
.national-tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.national-message { margin: 16px 0; color: var(--muted); }
.national-message:empty { margin: 0; }
.national-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; padding: 24px 0 28px; }
.national-total strong { display: block; font-size: 2rem; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.national-total span { color: var(--muted); font-size: .875rem; }
.national-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 16px; flex-wrap: wrap; }
.national-section-heading h3 { font-size: 1.15rem; }
.national-chapters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 32px; }
.national-chapter { min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 16px; }
.national-chapter-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.national-chapter-heading h4 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.national-chapter-heading p { margin: 4px 0 0; }
.national-abbreviation { padding: 6px 9px; border-radius: 6px; background: var(--surface-soft); color: var(--brand); font-size: .875rem; font-weight: 800; }
.national-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.national-pill { min-height: 36px; padding: 6px 10px; background: var(--surface-soft); color: var(--brand); font-size: .875rem; border-radius: 100px; font-weight: 750; }
.national-pill:hover { background: var(--line); color: var(--ink); }
.national-pill.study { background: var(--warning-soft); color: #765900; }
.national-pill.graded { background: var(--accent-soft); color: #235e2c; }
.national-chapter-meta { display: grid; gap: 7px; font-size: .8125rem; color: var(--muted); }
.national-chapter-meta p { margin: 0; }
.national-open { margin-top: auto; border-radius: 7px; min-height: 44px; background: transparent; color: var(--brand); border: 1px solid var(--line); font-size: .875rem; }
.national-open:hover { color: white; }
.national-filter-label { display: flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--muted); }
.national-filter-label select { width: auto; max-width: 100%; min-height: 40px; padding: 7px 10px; margin: 0; font-weight: 400; }
.national-attention-row { padding: 18px 0; display: grid; grid-template-columns: 155px minmax(0,1fr) auto; gap: 20px; align-items: start; border-bottom: 1px solid var(--line); }
.national-attention-row .national-pill { display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; }
.national-attention-row strong { display: block; }
.national-attention-row p { margin: 5px 0 0; }
.national-text-button { min-height: 44px; padding: 8px 0; background: transparent; border-radius: 0; color: var(--brand); font-size: .875rem; white-space: nowrap; }
.national-text-button:hover { background: transparent; color: var(--brand-dark); text-decoration: underline; }
.national-table-wrap { overflow-x: auto; }
.national-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
.national-table td, .national-table th { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.national-table th { color: var(--muted); font-weight: 700; }
.national-table td:first-child { overflow-wrap: anywhere; }
.national-table td small { display: block; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.national-table td time { white-space: nowrap; }
.national-empty { padding: 22px 0; color: var(--muted); }
.national-updated { margin: 28px 0 0; color: var(--muted); font-size: .8125rem; }
button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 1000px) { .national-chapters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .national-chapters { grid-template-columns: 1fr; }
  .national-totals { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .national-attention-row { grid-template-columns: 1fr; gap: 8px; }
  .national-attention-row .national-pill { justify-self: start; }
  .national-attention-row .national-text-button { justify-self: start; }
  .national-filter-label { flex-wrap: wrap; width: 100%; }
  .national-filter-label select { width: 100%; }
  .national-network-control { align-items: stretch; flex-direction: column; }
  .national-network-control select { min-width: 0; width: 100%; }
  .national-heading { align-items: start; }
}
@media (prefers-color-scheme: dark) {
  .brand img { filter: brightness(0) invert(1); }
  .national-pill.study { color: #f4d77f; }
  .national-pill.graded { color: #aee8b6; }
}
