/* Accessible typography, NPC branding and responsive workspace refinements. */
:root { --green: #183f35; --green2: #315d4f; --ink: #26312d; --muted: #62716a; --line: #e2e7e4; --canvas: #f7f8f8; --radius: 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.brand-link { gap: 10px; padding: 0 2px 22px; }
.brand-mark { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.brand { font-size: 1.3rem; }
.brand-caption { font-size: .75rem; letter-spacing: 0; line-height: 1.4; max-width: 122px; }
.sidebar { overflow-y: auto; }
.sidebar > nav, .sidebar > .nav-label, .brand-link { flex-shrink: 0; }
.sidebar-bottom { padding-top: 18px; }
.nav-label, .eyebrow, .hero .eyebrow { font-size: .75rem; }
.nav-label { color: #67776e; }
.workspace-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; padding: 12px 16px; border: 1px solid #dbe5d8; border-radius: 8px; background: #eef4e9; color: #415b44; font-size: .875rem; line-height: 1.5; }
.workspace-notice strong { font-weight: 650; }
.workspace-notice button { font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.mobile-brand { display: none; }
.page-heading p, .hero p, .org-card > p, .help-item p, .knowledge-card p { font-size: 1rem; }
.page-heading p, .panel-heading p, .stat-top, .timeline-text, .table-title .small, .chart-foot, .footer, .form-intro p, .field small, .chart-caption { color: #5d7065; }
.hero p { color: #d7e4db; }
.hero-bottom { font-size: .875rem; flex-wrap: wrap; }
.btn, .btn.text, .select, .panel-select, .workspace-select, .field > label, .field > input, .field > textarea, .field > select, .input, .search-field input, .record-tab, .step-btn, .stream-chip { font-size: .875rem; }
.btn { min-height: 42px; }
.panel-heading h2 { font-size: 1.125rem; }
.panel-heading p, .stat-top, .chart-legend, .donut-key, .review-card p, .table-title strong, .table-link strong, td, .help-item h3, .form-summary strong, .notification-entry strong { font-size: .875rem; }
.stat-caption, .table-title .small, .badge, .badge.large, th, .timeline-text time, .footer, .footer span, .chart-line span, .bar-label, .chart-foot, .chart-source, .chart-caption, .save-status, .field small, .inline-note, .frozen-note, .data-status, .field-error, .notification-entry p, .notice, .pagination, .page-info, .row-notice { font-size: .75rem; line-height: 1.6; }
.badge { font-weight: 600; }
th { color: #5c7062; }
.stat-caption { flex-wrap: wrap; color: #5b6f61; }
.stat-top { gap: 8px; }
.stat-top .stat-icon { flex-shrink: 0; }
.chart { padding-left: 45px; }
.chart-grid { left: 45px; }
.chart-line span { color: #65776a; }
.chart-foot, .timeline-text { font-size: .875rem; }
.bar-label { color: #5d7162; }
.donut-wrap { flex-wrap: wrap; gap: 18px; }
.donut-center span { font-size: .75rem; text-align: center; max-width: 90px; color: #5e715f; }
.donut-key { color: #5d705f; }
.progress-stat, .review-box { font-size: .875rem; line-height: 1.6; }
.quick-action strong, .support-card .support-title, .support-card button, .sidebar-user strong, .search-trigger, .breadcrumb { font-size: .875rem; }
.quick-action span, .support-card p, .sidebar-user span.small, .nav-badge, .kbd { font-size: .75rem; }
.quick-action span, .support-card p { color: #61715c; }
.timeline-text { color: #5d705f; }
.review-card-foot, .review-meta, .allocation, .segment-row { font-size: .875rem; }
.print-logo { width: 45px; height: 45px; object-fit: contain; vertical-align: middle; margin-right: 12px; }
.panel-select { max-width: 165px; }
/* A restrained workspace: clear type, useful controls and consistent surfaces. */
h1, h2, h3, .brand, .stat-value, .combined-steps button, .intake-header strong { font-family: inherit; }
h1 { font-size: 1.625rem; font-weight: 650; letter-spacing: -.5px; }
h2, h3 { font-weight: 600; letter-spacing: -.2px; }
.topbar { height: 70px; padding-inline: 32px; }
.main { padding: 28px 32px; }
.sidebar { padding-top: 24px; }
.brand-link { gap: 11px; padding-bottom: 24px; }
.brand-mark { width: 48px; height: 48px; }
.brand { font-size: 1.25rem; font-weight: 650; letter-spacing: -.5px; }
.brand-caption { text-transform: none; color: var(--muted); max-width: 135px; }
.nav-label { margin: 18px 12px 8px; font-weight: 600; letter-spacing: .08em; }
.nav-item { border-radius: 5px; padding: 10px 12px; min-height: 42px; color: #56635d; }
.nav-item.active { background: #edf2ef; color: var(--green); font-weight: 600; }
.nav-item .icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon { flex-shrink: 0; }
.breadcrumb { color: var(--muted); }
.page-heading { margin-bottom: 24px; }
.page-heading p { font-size: 1rem; line-height: 1.5; margin-top: 6px; color: var(--muted); }
.heading-actions { align-items: center; }
.btn { min-height: 40px; border-radius: 6px; padding: 9px 14px; font-weight: 550; box-shadow: none; }
.btn.secondary { border-color: #d7dfda; color: #40574c; }
.btn:hover { transform: none; }
.workspace-intro { min-height: 0; padding: 22px 24px; margin-bottom: 22px; border-radius: 8px; gap: 24px; }
.workspace-intro .hero-content { max-width: 100%; }
.workspace-intro .eyebrow { margin-bottom: 6px; font-size: .75rem; letter-spacing: .05em; color: #c4d3ca; }
.workspace-intro h2 { font-size: 1.25rem; line-height: 1.4; font-weight: 600; letter-spacing: -.2px; }
.workspace-intro p { font-size: .875rem; max-width: 650px; color: #dce7e0; margin-top: 6px; }
.workspace-intro > .btn { background: transparent; color: white; border: 1px solid #78978b; flex-shrink: 0; }
.workspace-intro > .btn:hover { background: #ffffff0d; }
.stats-grid { gap: 16px; margin-bottom: 22px; }
.stat-card { border-radius: 7px; padding: 20px; min-height: 0; box-shadow: none; }
.stat-top { color: #59685f; font-size: .875rem; }
.stat-icon { background: transparent; width: 24px; height: 24px; color: #708178; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-value { font-size: 1.875rem; line-height: 1.3; font-weight: 600; letter-spacing: -.6px; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }
.stat-caption { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.panel, .org-card, .review-card, .knowledge-card, .quick-action, .collection-explainer > div { border-radius: 7px; box-shadow: none; }
.panel-heading { padding: 22px 22px 0; align-items: flex-start; }
.panel-heading h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.2px; }
.panel-heading p { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.panel-body { padding: 22px; }
.quick-action { padding: 16px; }
.quick-action strong { font-weight: 550; }
.quick-action span { font-size: .8125rem; }
.support-card { border: 0; background: none; border-radius: 0; padding: 12px 7px; }
.support-card p { font-size: .8125rem; }
.empty h3 { color: var(--ink); font-weight: 600; }
.empty p, .audit-empty { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.overview-empty { min-height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-block: 10px; }
.overview-empty > .icon { width: 24px; height: 24px; color: #708178; margin-bottom: 14px; }
.overview-empty h3 { font-size: .875rem; margin-bottom: 7px; }
.overview-empty p { font-size: .875rem; line-height: 1.6; color: var(--muted); max-width: 380px; }
.field > input, .field > textarea, .field > select, .input, .select { border-color: #d8e0db; border-radius: 5px; color: var(--ink); }
.field > label { color: #40564a; font-weight: 500; }
.field small, .draft-caption { font-size: .8125rem; color: var(--muted); }
.notice, .frozen-note { font-size: .875rem; }
.badge { border-radius: 4px; letter-spacing: 0; }
.modal { border-radius: 9px; box-shadow: 0 16px 48px #1b312929; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #477d65; outline-offset: 3px; }
@media (min-width: 761px) and (max-width: 1200px) {
  .brand-mark { width: 48px; height: 48px; }
  .brand { font-size: 1.15rem; }
  .brand-caption { font-size: .75rem; max-width: 113px; }
}
@media (max-width: 1000px) {
  .dashboard-grid > .panel:nth-child(2) { display: block; }
  .donut-wrap { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-heading { align-items: flex-start; }
}
@media (max-width: 760px) {
  .mobile-brand { display: block; width: 34px; height: 34px; object-fit: contain; }
  .breadcrumb { display: none; }
  .topbar { gap: 8px; }
  .topbar { height: 64px; padding-inline: 16px; }
  .main { padding: 22px 16px; }
  .top-actions { margin-left: auto; }
  .workspace-select { max-width: 145px; }
  .workspace-notice { flex-wrap: wrap; font-size: .875rem; padding: 12px; }
  .workspace-notice button { padding: 0; }
  .page-heading p, .hero p { font-size: 1rem; }
  .hero p { max-width: 100%; }
  .hero .eyebrow { font-size: .75rem; line-height: 1.6; }
  .workspace-intro { padding: 20px; align-items: flex-start; flex-direction: column; gap: 16px; }
  .workspace-intro h2 { font-size: 1.125rem; max-width: none; }
  .workspace-intro p { font-size: .875rem; }
  .hero-bottom { font-size: .875rem; }
  .panel-heading { flex-wrap: wrap; }
  .panel-heading p, .stat-top, .step-btn, .record-tab { font-size: .875rem; }
  .bar-label { max-width: 50px; }
  .btn { font-size: .875rem; }
  .quick-action { min-width: 100%; }
  .quick-action:last-child { display: flex; }
  .footer, .footer span { font-size: .75rem; flex-wrap: wrap; }
  .table-wrap { max-width: 100%; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 1.625rem; }
  .stat-caption { font-size: .8125rem; }
  .panel-heading { padding: 20px 16px 0; }
  .panel-body { padding: 20px 16px; }
  .field > input, .field > textarea, .field > select { font-size: 1rem; }
  .form-actions .toolbar-group { gap: 8px; }
}
@media print {
  .workspace-notice, .mobile-brand { display: none !important; }
  .print-logo { width: 34pt; height: 34pt; }
  .btn { display: none !important; }
  td, th, .table-title strong { font-size: 9pt; }
  .footer, .chart-foot, .timeline-text, .badge { font-size: 8pt; }
  .page-heading p, .hero p, .panel-heading p { font-size: 10pt; }
}
