/* Shared office-work presentation. No business calculations or permission overrides. */
:root { --workspace-control-height: 40px; }
body { line-height: var(--line-normal); }
button, input, select, textarea { font: inherit; }
.skip-link { position: fixed; left: var(--space-200); top: var(--space-100); z-index: 30; transform: translateY(-180%); padding: var(--space-100) var(--space-200); background: var(--surface); color: var(--color-text-selected); border: 2px solid var(--border-focused); border-radius: var(--radius-medium); }
.skip-link:focus { transform: none; }
.nav-group { margin: var(--space-050) 0 var(--space-100); }
.nav-group-toggle { min-height: var(--workspace-control-height); }
.nav-group > summary { display: flex; align-items: center; gap: var(--space-100); min-height: var(--workspace-control-height); padding: var(--space-100) var(--space-150); color: var(--color-text-subtle); cursor: pointer; font-weight: var(--font-weight-semibold); list-style: none; border-radius: var(--radius-medium); }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::before { content: "›"; font-size: var(--font-size-300); width: 12px; text-align: center; }
.nav-group[open] > summary::before { content: "⌄"; }
.nav-group > summary:hover { background: var(--surface-hovered); }
.nav-group > a { margin-left: var(--space-100); }
.sidebar nav a { min-height: var(--workspace-control-height); }
.sidebar nav a span { overflow-wrap: anywhere; }
.sidebar-footer a { padding-block: var(--space-100); }
.page-header h2 { font-size: var(--font-size-400); line-height: var(--line-tight); letter-spacing: -.025em; }
.page-header p { max-width: 80ch; line-height: var(--line-normal); }
.button:not(.small), .search-field input, .search-field select, .record-explorer-filter input, .record-explorer-filter select { min-height: var(--workspace-control-height); }
.button.small { min-height: 32px; }
.button:disabled { cursor: not-allowed; }
.button, input, select, textarea { border-radius: var(--radius-medium); }
.panel { border-radius: var(--radius-large); }
table { font-size: var(--font-size-100); font-variant-numeric: tabular-nums; }
th, td { line-height: var(--line-normal); }
.section-message { line-height: var(--line-normal); }
.lozenge { font-size: var(--font-size-050); }
.workspace-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-100); margin-bottom: var(--space-300); }
.workspace-link { display: flex; align-items: center; justify-content: space-between; gap: var(--space-100); padding: var(--space-150) var(--space-200); background: var(--surface); color: var(--color-text); border: 1px solid var(--border); border-radius: var(--radius-medium); text-decoration: none; font-weight: var(--font-weight-medium); min-height: 48px; }
.workspace-link::after { content: "→"; color: var(--color-text-selected); }
.workspace-link:hover { border-color: var(--border-focused); background: var(--background-selected); }
.overview-evidence { margin-top: var(--space-300); }
.overview-evidence > summary { cursor: pointer; min-height: var(--workspace-control-height); color: var(--color-text-subtle); font-weight: var(--font-weight-semibold); }
.tab-group-picker { display: flex; flex-wrap: wrap; gap: var(--space-100); width: 100%; padding: var(--space-100) 0; }
.tab-group-picker button { min-height: var(--workspace-control-height); padding: var(--space-100) var(--space-200); background: var(--surface); color: var(--color-text-subtle); border: 1px solid var(--border); border-radius: var(--radius-medium); font-weight: var(--font-weight-semibold); cursor: pointer; }
.tab-group-picker button[aria-pressed="true"] { background: var(--background-brand-bold); color: var(--color-text-inverse); border-color: var(--background-brand-bold); }
.tab-group-pages { display: flex; flex-wrap: wrap; gap: var(--space-050); width: 100%; }
.tab-group-pages .tab { min-height: var(--workspace-control-height); text-align: left; }
.tabs-note { max-width: 90ch; color: var(--color-text-subtle); line-height: var(--line-normal); }
.workspace-extra-filters { flex: 1 1 100%; min-width: 0; padding: var(--space-100) 0; }
.workspace-extra-filters > summary { cursor: pointer; min-height: 32px; color: var(--color-text-selected); font-weight: var(--font-weight-medium); }
.workspace-extra-filters > .record-explorer-filters { padding-top: var(--space-100); }
.cash-form-sheet { grid-template-columns: minmax(0, 1fr); }
.cash-form-sheet > *, .cash-form-pivots > * { min-width: 0; }
.cash-form-provenance-coverage summary { overflow-wrap: anywhere; }
.record-inline-input { min-height: var(--workspace-control-height); }
.editable-cell-button { border: 1px dashed var(--border); border-radius: var(--radius-small); min-height: 32px; padding: var(--space-050); }
.editable-cell-button:hover, .editable-cell-button:focus-visible { border-color: var(--border-focused); background: var(--background-selected); }
.editable-cell-button small { color: var(--color-text-selected); font-size: var(--font-size-050); }
.workbench-data-tools { gap: var(--space-100); }
.record-pagination .button { min-width: 64px; }
dialog input, dialog select, dialog textarea { font-size: var(--font-size-200); }
dialog [role="alert"] { line-height: var(--line-normal); }
/* Author display rules must not reveal a closed native dialog. */
dialog:not([open]) { display: none; }
@media (min-width: 761px) {
  .sidebar { flex-basis: 248px; }
  .content { padding: var(--space-300); }
  .panel-header { gap: var(--space-200); }
  .table-tools { flex-wrap: wrap; }
  .table-tools > div { min-width: 0; }
  .cash-form-filters .record-explorer-filters { gap: var(--space-150); }
  .cash-form-filters .filter-value-group { display: flex; flex-wrap: wrap; gap: var(--space-050); max-width: 480px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; }
  .workspace-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-link { padding: var(--space-100); }
}
@media print {
  .skip-link, .workspace-links, .tab-group-picker { display: none; }
  .overview-evidence > .layout-two { display: grid; }
}

/* Evidence and visible warnings share the full width when the evidence table is collapsed. */
.layout-two:has(> .overview-evidence) { grid-template-columns: minmax(0, 1fr); }
.attention-panel .attention-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-items: start; }
.mobile-nav-trigger { display: none; }
@media (max-width: 760px) { .mobile-nav-trigger { display: inline-flex; } }
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: stretch; gap: var(--space-100); padding: var(--space-100) var(--space-150); }
  .topbar-actions { justify-content: space-between; }
  .topbar-actions .button { white-space: nowrap; flex-shrink: 0; }
}
