/* The founder workspace is intentionally compact; data access stays server gated. */
body { font-family: var(--font); }
body, body * { letter-spacing: 0 !important; }
[hidden] { display: none !important; }
button, input, select, summary { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .5; cursor: default; }
.topbar { padding: 12px max(24px, calc((100% - 1280px) / 2)); background: var(--panel); }
.brand { font-family: var(--font); display: flex; align-items: baseline; font-size: 20px; }
.brand .sub { margin-left: 16px; font-family: var(--font); }
.ghost-btn, .icon-btn { min-height: 44px; min-width: 44px; justify-content: center; }
.wrap { max-width: 1280px; padding: 32px 24px 64px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { font-size: 12px; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.page-title { font-size: 28px; line-height: 1.2; font-weight: 750; }
.privacy-label { color: var(--text2); font-size: 12px; border: 1px solid var(--line); padding: 5px 10px; border-radius: 6px; white-space: nowrap; }
.meta { margin: 10px 0 24px; font-size: 12px; }
.metrics-nav { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.metrics-nav [role="tablist"] { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 0; scroll-padding-inline: 8px; }
.metrics-nav [role="tab"] { border: 0; border-bottom: 3px solid transparent; background: none; color: var(--text2); padding: 12px 14px; min-height: 48px; white-space: nowrap; cursor: pointer; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.metrics-nav [role="tab"]:hover { background: var(--panel); }
.metrics-nav [aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count { font-size: 11px; padding: 1px 6px; background: var(--accent-soft); border-radius: 4px; }
.metrics-panel { min-width: 0; }
.view-title { font-size: 18px; font-weight: 650; margin: 0 0 20px; }
.kpis { gap: 16px; margin-bottom: 24px; }
.kpi { border-radius: 8px; box-shadow: none; padding: 18px; min-width: 0; }
.kpi-top { min-height: 24px; margin-bottom: 14px; }
.ic { width: 28px; height: 28px; border-radius: 6px; }
.kpi .n { font-size: 28px; overflow-wrap: anywhere; line-height: 1.2; }
.kpi .l { font-size: 13px; text-transform: none; color: var(--text2); margin-top: 6px; }
.kpi .s { font-size: 12px; line-height: 1.5; color: var(--muted); }
.attention-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); margin: 0 0 28px; }
.attention-row button { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; text-align: left; background: transparent; border: 0; border-right: 1px solid var(--line); color: var(--text2); padding: 16px; min-height: 72px; cursor: pointer; }
.attention-row button:first-child { padding-left: 0; }
.attention-row button:last-child { border-right: 0; }
.attention-row button:hover { background: var(--panel); }
.attention-row span { font-size: 13px; font-weight: 600; }
.attention-row b { color: var(--accent); font-size: 15px; }
.attention-row small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
.sec { font-family: var(--font); font-size: 13px; text-transform: none; margin-bottom: 12px; }
.strip { gap: 0; margin-bottom: 28px; }
.mini { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 8px 18px; background: transparent; min-width: 0; }
.mini:first-child { border-left: 0; padding-left: 0; }
.mini .ml { font-size: 12px; text-transform: none; }
.mini .mn { font-size: 24px; }
.mini .mrow { flex-wrap: wrap; }
.delta { border-radius: 4px; }
.card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; margin: 0; box-shadow: none; min-width: 0; }
.card-h { gap: 10px; margin-bottom: 16px; }
.card h2 { color: var(--text); font-size: 15px; font-family: var(--font); text-transform: none; font-weight: 650; }
.card .strip { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); }
.pill { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: transparent; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; }
.legend { font-size: 12px; gap: 14px; }
.chart-region { overflow-x: auto; }
.tchart { width: 100%; }
.table-region { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
table { font-size: 13px; line-height: 1.5; }
th, td { padding: 12px 10px; vertical-align: top; }
th { font-size: 11px; text-transform: none; white-space: nowrap; background: var(--panel); }
td:first-child, th:first-child { padding-left: 12px; }
td.email, td .email { overflow-wrap: anywhere; }
#panel-quality th:first-child, #panel-quality td:first-child { min-width: 230px; }
#panel-quality td:nth-child(2), #panel-quality td:nth-child(3) { min-width: 100px; }
.badge { text-transform: none; font-size: 11px; border-radius: 4px; display: inline-block; }
.frow { grid-template-columns: 165px minmax(0, 1fr) 70px; }
.ftrack { height: 24px; border-radius: 4px; }
.ffill { background: var(--accent); border-radius: 3px; }
.credbar { height: 20px; border-radius: 4px; }
.disclosure { border-top: 1px solid var(--line); padding: 12px 0; margin-top: 16px; }
.disclosure summary { min-height: 44px; padding: 10px 2px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text2); }
.metric-definitions dl { display: grid; grid-template-columns: 160px 1fr; gap: 12px 20px; font-size: 13px; margin: 12px 0; }
.metric-definitions dt { font-weight: 600; }
.metric-definitions dd { margin: 0; color: var(--muted); }
.feedback-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.feedback-toolbar label, .table-search, .access-field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text2); min-width: 0; }
.feedback-toolbar label:first-child { flex: 1; }
input, select { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; color: var(--text); background: var(--panel); max-width: 100%; font-size: 14px; }
input::placeholder { color: var(--muted); font-weight: 400; }
.table-search { max-width: 360px; margin: 0 0 12px; }
.table-search select { height: 44px; }
.access-field { flex: 1; min-width: 170px; }
.scope-note { font-size: 12px; margin-bottom: 20px; }
.fb { border-top: 1px solid var(--line); padding: 0; }
.fb summary { padding: 16px 28px 16px 0; cursor: pointer; position: relative; list-style: none; }
.fb summary::-webkit-details-marker { display: none; }
.fb summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 20px; color: var(--muted); }
.fb[open] summary::after { content: '−'; }
.fb-head { margin-bottom: 8px; }
.fb-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text2); font-size: 14px; line-height: 1.6; }
.fb[open] .fb-excerpt { display: none; }
.fb-body { padding: 0 28px 16px 0; overflow-wrap: anywhere; }
.fb-meta { overflow-wrap: anywhere; }
.pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0 0; }
.pager > span { margin-right: auto; font-size: 12px; color: var(--muted); }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-left: 3px solid var(--warn); background: var(--panel); padding: 12px 16px; margin: 12px 0; font-size: 13px; color: var(--text2); }
.notice.error { border-left-color: var(--bad); }
#faculty-mgmt .card > div { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .overview-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .mini:nth-child(odd) { border-left: 0; padding-left: 0; }
  .attention-row { grid-template-columns: minmax(0, 1fr); }
  .attention-row button { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 0; }
  .attention-row button:last-child { border-bottom: 0; }
  .brand .sub { display: none; }
}
@media (max-width: 560px) {
  .topbar { padding: 10px 16px; gap: 10px; position: static; }
  .topbar-actions { gap: 5px; }
  .topbar .ghost-btn { padding: 8px; }
  .wrap { padding: 24px 16px 48px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-title { font-size: 25px; }
  .metrics-nav [role="tab"] { padding-inline: 10px; }
  .kpis { gap: 10px; }
  .kpi { padding: 14px 12px; }
  .kpi .n { font-size: 24px; }
  .kpi .s { font-size: 11px; }
  .frow { grid-template-columns: 1fr auto; gap: 6px; }
  .ftrack { grid-column: 1 / -1; grid-row: 2; }
  .fnum { text-align: right; }
  .metric-definitions dl { grid-template-columns: 1fr; gap: 6px; }
  .metric-definitions dd { margin-bottom: 10px; }
  .feedback-toolbar label { width: 100%; flex: auto; }
  input, select { font-size: 16px; }
  .table-search { max-width: 100%; }
  .overview-columns td span > span { display: none !important; }
  .overview-columns td, .overview-columns th { padding: 10px 6px; }
  .overview-columns td:first-child { min-width: 78px; }
  .tchart text { font-size: 22px; }
  #panel-quality table { min-width: 950px; }
  #faculty-mgmt .access-field { min-width: 100%; }
}
