/* Index v2: shared visual vocabulary; existing layout and behavior hooks remain authoritative. */
:root {
  --brand-yellow: #f1e200;
  --brand-cyan: #00b8e7;
  --brand-orange: #f49436;
  --background: #f1efe8;
  --surface: #fffefb;
  --surface-raised: #fffefb;
  --surface-subtle: #e7e9e1;
  --surface-hover: #e7e9e1;
  --border: #c7cec5;
  --border-strong: #929e90;
  --row-border: #e7e9e1;
  --text-primary: #202620;
  --text-secondary: #535c51;
  --text-muted: #626860;
  --accent: #066b80;
  --accent-hover: #045465;
  --accent-soft: #dceff3;
  --on-accent: #ffffff;
  --focus: #00758e;
  --success: #286141;
  --success-soft: #e3efdf;
  --warning: #805a21;
  --warning-soft: #eee5d8;
  --danger: #a13736;
  --danger-soft: #fce5e0;
  --decision-relevant: #286141;
  --on-decision-relevant: #ffffff;
  --vertical-jobs: #f1e200;
  --vertical-jobs-soft: #f1efc1;
  --vertical-jobs-ink: #545000;
  --vertical-research: #00b8e7;
  --vertical-research-soft: #dceff3;
  --vertical-research-ink: #066b80;
  --vertical-competitions: #f49436;
  --vertical-competitions-soft: #f9e2cb;
  --vertical-competitions-ink: #814209;
  --action-fill: var(--brand-yellow);
  --action-ink: #202620;
  --category-soft: var(--accent-soft);
  --category-ink: var(--accent);
  --radius-sm: 10px;
  --radius: 16px;
  --sidebar: 216px;
  --glass-surface: var(--surface);
  --sidebar-glass: var(--background);
  --mobile-glass: var(--background);
  --shadow-menu: 0 14px 50px #15211924;
  --font-metadata: 12px;
  --font-view: 13px;
}
html[data-effective-theme="dark"] {
  color-scheme: dark;
  --background: #171a17;
  --surface: #232823;
  --surface-raised: #232823;
  --surface-subtle: #333b32;
  --surface-hover: #333b32;
  --border: #4c584b;
  --border-strong: #82917e;
  --row-border: #333b32;
  --text-primary: #f4f3e9;
  --text-secondary: #cbd1c5;
  --text-muted: #bbc3b6;
  --accent: #88d8eb;
  --accent-hover: #b2e9f3;
  --accent-soft: #294149;
  --on-accent: #182a2c;
  --focus: #88d8eb;
  --success: #9bd1ae;
  --success-soft: #2c3c2c;
  --warning: #edca96;
  --warning-soft: #403a2e;
  --danger: #ffb6af;
  --danger-soft: #492e2b;
  --decision-relevant: #9bd1ae;
  --on-decision-relevant: #173321;
  --vertical-jobs-soft: #3d4029;
  --vertical-jobs-ink: #f1e200;
  --vertical-research-soft: #294149;
  --vertical-research-ink: #88d8eb;
  --vertical-competitions-soft: #403426;
  --vertical-competitions-ink: #ffc184;
  --shadow-menu: 0 14px 50px #0008;
}
body[data-vertical="jobs"] { --action-fill: var(--vertical-jobs); --category-soft: var(--vertical-jobs-soft); --category-ink: var(--vertical-jobs-ink); }
body[data-vertical="research"] { --action-fill: var(--vertical-research); --action-ink: #182a2c; --category-soft: var(--vertical-research-soft); --category-ink: var(--vertical-research-ink); }
body[data-vertical="competitions"] { --action-fill: var(--vertical-competitions); --action-ink: #28231c; --category-soft: var(--vertical-competitions-soft); --category-ink: var(--vertical-competitions-ink); }
html { font-size: 14px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { color: var(--background); }
.workspace { padding: 22px 38px 48px; max-width: 1600px; margin-inline: auto; }
.page-header { margin-bottom: 22px; align-items: center; }
.page-header h1, .detail-header h1, .application-hero h1 { font-size: 36px; font-weight: 800; letter-spacing: -1.4px; line-height: 1.15; overflow-wrap: anywhere; }
.page-header p { font-size: 13px; }
.record-count { border-radius: 9px; padding: 4px 8px; font-size: 12px; }
.button, .button.small { border: 0; border-radius: 10px; min-height: 38px; padding: 9px 14px; font-size: 13px; font-weight: 600; line-height: 1.35; box-shadow: none; }
.button { background: var(--surface-subtle); }
.button:hover { background: var(--surface-hover); }
.button.primary { background: var(--action-fill); color: var(--action-ink); border: 0; }
.button.primary:hover { background: color-mix(in srgb, var(--action-fill) 80%, white); }
.button.secondary, .button.subtle { border: 0; box-shadow: none; background: var(--accent-soft); color: var(--accent); }
.button.secondary:hover, .button.subtle:hover { background: var(--surface-hover); color: var(--text-primary); }
.button.ghost { background: transparent; color: var(--accent); border: 0; }
.button.danger, .button.destructive { background: var(--danger-soft); color: var(--danger); border: 0; }
.button.danger:hover, .button.destructive:hover { background: var(--danger); color: var(--background); }
.button:disabled { opacity: 1; background: var(--surface-subtle); color: var(--text-muted); box-shadow: none; }
.icon-button { min-height: 36px; min-width: 36px; border-radius: 10px; }
.icon-button:hover { background: var(--surface-hover); color: var(--text-primary); }
.view-tabs { border: 0; gap: 5px; min-height: 38px; margin-bottom: 14px; }
.view-tabs a { min-height: 38px; padding: 9px 12px; border-radius: 10px; }
.view-tabs a:hover { background: var(--surface-hover); }
.view-tabs a.active { background: var(--text-primary); color: var(--background); }
.view-tabs a.active::after { display: none; }
.view-tabs a[data-category="jobs"].active { background: var(--vertical-jobs-soft); color: var(--vertical-jobs-ink); }
.view-tabs a[data-category="research"].active { background: var(--vertical-research-soft); color: var(--vertical-research-ink); }
.view-tabs a[data-category="competitions"].active { background: var(--vertical-competitions-soft); color: var(--vertical-competitions-ink); }
.list-toolbar { gap: 12px; margin: 14px 0 20px; }
.search-control { width: auto; flex: 1; background: var(--surface-subtle); border: 0; min-height: 44px; padding: 0 14px; }
input, select, textarea { border-radius: 10px; font-size: 14px; }
.control-popover { background: var(--surface); border: 0; border-radius: 12px; }
.control-popover header, .control-popover footer { border: 0; }
.control-popover label, .modal-form label, .stack-form label, .document-form label { font-size: 12px; letter-spacing: 0; }
.active-filters { flex-wrap: wrap; overflow: visible; }
.active-filters button { background: var(--category-soft); color: var(--category-ink); border: 0; border-radius: 9px; font-size: 12px; min-height: 32px; }
.property-trigger { border: 0; border-radius: 9px; min-height: 34px; padding: 7px 9px; font-size: 12px; }
.property-listbox { background: var(--surface); border: 0; border-radius: 12px; box-shadow: var(--shadow-menu); }
.property-option { min-height: 38px; font-size: 13px; border-radius: 8px; }
.inline-edit [data-inline-feedback] { background: var(--text-primary); color: var(--background); font-size: 11px; }
.inline-edit.error [data-inline-feedback] { background: var(--danger-soft); color: var(--danger); }
.sidebar { border: 0; background: var(--background); backdrop-filter: none; padding: 22px 14px 16px; height: 100dvh; }
.sidebar-head { align-items: center; margin-bottom: 24px; }
.product-mark { padding: 4px 0; gap: 8px; min-height: 44px; }
.product-logo-symbol { width: 34px; height: 34px; }
.product-workspace-label { font-size: 11px; }
.primary-nav, .secondary-nav { gap: 4px; }
.primary-nav a, .secondary-nav a { min-height: 44px; padding: 10px; border-radius: 10px; font-size: 14px; }
.primary-nav a.active, .secondary-nav a.active { background: var(--category-soft); color: var(--category-ink); box-shadow: none; }
.primary-nav a.active svg { color: inherit; }
.sidebar-collapsed { --sidebar: 62px; }
.sidebar-collapsed .sidebar { padding-inline: 6px; }
.global-header { height: 62px; padding: 10px 32px; border: 0; background: var(--background); backdrop-filter: none; }
.theme-lever { position: relative; isolation: isolate; display: flex; width: 72px; height: 44px; gap: 0; padding: 0; border: 0; border-radius: 9px; background: transparent; }
.theme-lever::before { content: ""; position: absolute; inset: 8px 0; border-radius: 9px; background: var(--surface-subtle); pointer-events: none; }
.theme-lever button { position: relative; z-index: 1; width: 24px; min-width: 24px; height: 44px; padding: 0; border: 0; background: transparent; border-radius: 9px; }
.theme-lever button:hover { background: transparent; }
.theme-handle { position: absolute; z-index: 0; left: 2px; top: 11px; width: 20px; height: 22px; background: var(--text-primary); border-radius: 7px; transform: translateX(24px); transition: transform .14s ease; pointer-events: none; }
.theme-lever[data-choice="light"] .theme-handle { transform: translateX(0); }
.theme-lever[data-choice="dark"] .theme-handle { transform: translateX(48px); }
.theme-lever:has(button:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.theme-lever button:focus-visible { outline-offset: -2px; }
.navigation-backdrop { position: fixed; inset: 0; z-index: 25; width: 100%; height: 100%; border: 0; background: rgb(8 14 10 / 68%); }
/* Stage B: exact subjects and compact working records, rather than ruled grids. */
.data-surface { border: 0; background: transparent; box-shadow: none; overflow: visible; }
.dashboard-table { border-collapse: separate; border-spacing: 0 10px; }
.dashboard-table th { background: transparent; border: 0; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; }
.dashboard-table td { background: var(--surface); border: 0; padding: 18px 12px; font-size: 12px; height: auto; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
.dashboard-table td:first-child { border-radius: 16px 0 0 16px; padding-left: 22px; }
.dashboard-table td:last-child { border-radius: 0 16px 16px 0; padding-right: 22px; }
.dashboard-table tr:hover td, .dashboard-table tr.is-selected td { background: var(--surface-hover); }
.dashboard-table tr:focus-visible { outline-offset: 2px; }
.subject-table .cell-title { display: block; overflow: visible; font-size: 18px; font-weight: 750; letter-spacing: -.3px; line-height: 1.32; }
.subject-table .subject-entity { white-space: normal; overflow: visible; margin-top: 6px; font-size: 12px; }
.subject-table th:first-child { width: 33%; }
.subject-table th:nth-child(2) { width: 11%; }
.subject-table th:nth-child(3) { width: 8%; }
.subject-table th:nth-child(4) { width: 9%; }
.subject-table th:nth-child(5), .subject-table th:nth-child(6), .subject-table th:nth-child(7) { width: 10%; }
.subject-table th:nth-child(8) { width: 9%; }
.subject-table td:last-child { padding-inline: 8px; }
.studio-table td b { font-size: 16px; font-weight: 750; }
.dashboard-table td small, .status-indicator, .priority-indicator, .type-label { font-size: 12px; }
.dashboard-table td small.discovery-new { display: inline-block; width: fit-content; margin-top: 6px; }
.application-table .property-trigger { font-size: 12px; }
.status-indicator, .priority-indicator { white-space: normal; overflow-wrap: normal; }
.deadline { display: inline-block; background: var(--surface-subtle); border-radius: 9px; padding: 7px 8px; font-size: 13px; white-space: nowrap; }
.deadline-overdue, .deadline-expired { background: var(--danger-soft); color: var(--danger); }
.pagination { border: 0; background: transparent; padding-inline: 0; font-size: 12px; }
.capability-note { font-size: 12px; margin-block: 8px; color: var(--text-muted); }
.capability-note summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 5px; }
.capability-note summary::before { content: '+'; }
.capability-note[open] summary::before { content: '−'; }
.detail-header, .application-hero { border: 0; padding-bottom: 18px; align-items: start; }
.detail-header .detail-kicker { font-size: 12px; text-transform: none; letter-spacing: 0; color: var(--category-ink); }
.detail-header h1 { max-width: 900px; }
.detail-primary-action { flex-shrink: 0; }
.detail-layout, .application-layout { max-width: none; gap: 28px; }
.document-section { border: 0; padding-block: 24px; }
.document-section h2 { font-size: 24px; letter-spacing: -.6px; font-weight: 750; }
.document-section h3 { font-size: 16px; }
.section-label, .eyebrow, .context-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
.detail-signals { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--text-secondary); font-size: 13px; margin-top: 12px; }
.inline-facts { border: 0; gap: 14px 24px; }
.inline-facts > div { border: 0; }
.inline-facts > div:nth-child(even) { padding-left: 0; }
.inline-facts dt { font-size: 12px; }
.inline-facts .deadline { width: fit-content; }
.context-summary { display: flex; flex-wrap: wrap; gap: 16px 28px; border: 0; padding: 10px 0; }
.context-summary > div { min-height: 0; border: 0; padding: 0; }
.context-summary > div > span:first-child, .inline-facts dt, .hero-facts dt, .drawer-facts dt { font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.context-summary .deadline { width: fit-content; }
.metadata-sidebar { background: var(--surface); border: 0; box-shadow: none; backdrop-filter: none; border-radius: 16px; }
.metadata-group { border: 0; }
.metadata-group dl { font-size: 13px; }
.metadata-group dt { font-size: 12px; }
.job-fit-panel { border: 0; background: var(--surface-subtle); border-radius: 14px; }
.fit-summary-list, .fit-requirements, .fit-coverage, .fit-breakdown { font-size: 13px; }
.fit-requirements li { border: 0; padding: 12px 0; }
.studio-role { border: 0; background: var(--surface); border-radius: 14px; padding: 20px; margin-block: 12px; }
.role-inbox-card { background: var(--surface); border-radius: 14px; padding: 18px; margin-block: 10px; }
.role-heading h4 { font-size: 18px; }
.workflow-stage, .application-scorebar, .workflow-path, .document-list { border: 0; }
.section-block, .phase-divider, .portfolio-configuration, .portfolio-group { border: 0; }
.section-heading h2 { font-size: 24px; font-weight: 750; letter-spacing: -.6px; }
.section-number { display: none; }
.phase-divider span { font-size: 20px; font-weight: 750; letter-spacing: -.4px; }
.section-intro, .workflow-stage p, .preparation-readiness p, .project-copy p { font-size: 13px; }
.research-columns h3, .document-name strong, .project-copy strong { font-size: 16px; }
.project-list > li { border: 0; border-radius: 14px; padding: 16px; background: var(--surface); margin-block: 10px; }
.document-row { border: 0; border-radius: 14px; padding: 18px; background: var(--surface); margin-block: 10px; }
.angle-display { border: 0; gap: 18px; }
.angle-display > div, .angle-display > div:nth-child(even) { border: 0; padding: 0; }
.angle-display span, .process-grid > div > span { font-size: 12px; text-transform: none; letter-spacing: 0; }
.note-list, .note-list li { border: 0; }
.application-side .side-panel { border: 0; border-radius: 16px; background: var(--surface); padding: 20px; }
.quick-drawer { width: min(620px, 100vw); border: 0; background: var(--surface); backdrop-filter: none; box-shadow: var(--shadow-menu); animation-name: index-drawer-in; }
@keyframes index-drawer-in { from { transform: translateX(20px); } }
.drawer-backdrop { background: rgb(8 14 10 / 68%); backdrop-filter: none; }
.drawer-head { border: 0; padding: 26px 28px 16px; flex-shrink: 0; }
.drawer-head .drawer-entity { font-size: 24px; letter-spacing: -.6px; line-height: 1.24; }
.drawer-head .icon-button { background: var(--surface-subtle); flex-shrink: 0; min-width: 44px; min-height: 44px; }
[data-drawer-content] { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.drawer-body { min-height: 0; padding: 0 28px 20px; overscroll-behavior: contain; }
.drawer-overview, .drawer-metrics { border: 0; background: var(--background); border-radius: 12px; padding: 12px; gap: 10px; }
.drawer-overview > div:nth-child(even), .drawer-metrics > div:nth-child(even) { border: 0; }
.drawer-overview .deadline { justify-self: start; }
.drawer-overview > div > span:first-child, .drawer-section h3 { font-size: 12px; letter-spacing: 0; text-transform: none; }
.drawer-section, .drawer-details { border: 0; padding-block: 18px; }
.drawer-section h3 { color: var(--text-primary); font-size: 17px; }
.drawer-section p { font-size: 14px; }
.drawer-body .fit-notice, .drawer-body .guard-note { border: 0; background: transparent; padding: 0; font-size: 12px; }
.drawer-details { background: var(--background); border-radius: 12px; padding: 14px 16px; margin-block: 12px; }
.drawer-actions { position: static; border: 0; background: var(--surface); backdrop-filter: none; flex-shrink: 0; padding: 16px 28px 24px; }
.modal { border: 0; border-radius: 16px; background: var(--surface); }
.modal-head, .modal-tabs { border: 0; }
.modal::backdrop { background: rgb(8 14 10 / 68%); }
/* Stage C: human decisions remain independent of source classification and registration. */
.discovery-feed { padding: 0; margin-top: 24px; display: grid; gap: 12px; }
.discovery-group { border: 0; padding: 10px 0 0; color: var(--text-muted); font-size: 12px; }
.discovery-entry { border: 0; border-radius: 16px; background: var(--surface); padding: 22px; align-items: start; gap: 14px; }
.discovery-entry-main { min-width: 0; }
.discovery-entry-title { font-size: 12px; line-height: 1.5; }
.discovery-entry-title strong { font-size: 18px; letter-spacing: -.3px; line-height: 1.32; margin: 8px 0 4px; }
.discovery-entry p, .discovery-entry-meta, .discovery-source-line { font-size: 12px; }
.discovery-entry p { margin-block: 6px; }
.discovery-source-line { color: var(--text-muted); }
.category-label { display: inline-block; border-radius: 8px; padding: 4px 8px; font-size: 12px; background: var(--surface-subtle); color: var(--text-secondary); }
.category-label[data-category="jobs"] { background: var(--vertical-jobs-soft); color: var(--vertical-jobs-ink); }
.category-label[data-category="research"] { background: var(--vertical-research-soft); color: var(--vertical-research-ink); }
.category-label[data-category="competitions"] { background: var(--vertical-competitions-soft); color: var(--vertical-competitions-ink); }
.discovery-decision { margin-top: 12px; }
.relevance-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.button.decision { background: var(--surface-subtle); color: var(--text-secondary); }
.button.decision:hover { background: var(--surface-hover); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.button.decision[data-decision="RELEVANT"][aria-pressed="true"] { background: var(--decision-relevant); color: var(--on-decision-relevant); }
.button.decision[data-decision="NOT_RELEVANT"][aria-pressed="true"] { background: var(--danger-soft); color: var(--danger); }
.button.decision[data-decision="FOR_LATER"][aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.discovery-open { display: inline-flex; align-items: center; text-decoration: none; border-radius: 10px; padding: 9px 12px; background: var(--accent-soft); color: var(--accent); font-size: 13px; min-height: 38px; }
.discovery-entry-meta { flex-wrap: wrap; gap: 8px 12px; margin-top: 12px; }
.discovery-new { background: var(--surface-subtle); color: var(--text-primary); border-radius: 7px; padding: 4px 7px; }
.discovery-auto { background: transparent; color: var(--text-secondary); }
.discovery-section { border: 0; padding-block: 22px; }
.discovery-section h2 { font-size: 22px; letter-spacing: -.5px; }
.discovery-facts > div, .discovery-matching-sources details { border: 0; }
.discovery-facts { font-size: 13px; }
.discovery-facts dt, .discovery-facts small { font-size: 12px; }
.publication-text, .change-values pre { background: var(--surface); border: 0; border-radius: 12px; padding: 16px; font-size: 13px; }
.discovery-detail-status { flex-wrap: wrap; }
/* Stage D: canonical content, equal-weight collection tiles and usable document versions. */
.core-fields > div { border: 0; padding-block: 10px; }
.core-fields dt, .core-note, .core-record small, .core-output small, .core-provenance { font-size: 12px; }
.core-fields dd { font-size: 14px; }
.core-record, .core-source { border: 0; padding-block: 18px; }
.core-main h3 { font-size: 17px; letter-spacing: -.2px; }
.core-rail { border: 0; background: var(--surface); border-radius: 16px; padding: 22px; align-self: start; font-size: 13px; }
.core-rail h2, .core-rail h3 { font-size: 14px; }
.core-conflict { border-left: 3px solid var(--warning); padding-left: 18px; }
.core-source summary, .core-provenance summary, .core-future summary, .portfolio-upload > summary { min-height: 38px; cursor: pointer; }
.core-future { margin-block: 24px; font-size: 13px; }
.core-filters { gap: 12px; }
.core-filters > div > span { font-size: 12px; }
.core-filters .property-trigger { border: 0; min-height: 38px; background: var(--surface-subtle); }
.core-project-table td:first-child a, .portfolio-library-wrap td:first-child strong { font-size: 18px; font-weight: 750; letter-spacing: -.3px; line-height: 1.3; }
.core-project-table td small, .portfolio-library-wrap td small { display: block; margin-top: 6px; }
.core-table-wrap { overflow-x: auto; }
.project-collection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.project-tile { display: flex; flex-direction: column; min-height: 250px; padding: 24px; border-radius: 16px; background: var(--accent-soft); color: var(--text-primary); overflow-wrap: anywhere; cursor: pointer; }
.project-tile:nth-child(even) { background: var(--brand-yellow); color: #202620; }
.project-tile h2 { font-size: 24px; font-weight: 750; letter-spacing: -.6px; line-height: 1.25; margin: 18px 0 12px; }
.project-tile h2 a { color: inherit; text-decoration: none; }
.project-tile h2 a:hover { text-decoration: underline; }
.project-tile p { font-size: 13px; margin: 4px 0; }
.project-tile small, .project-track { font-size: 12px; }
.project-tile small { margin-top: 12px; }
.project-tile .button.ghost { color: inherit; align-self: start; margin-top: auto; padding-left: 0; padding-top: 16px; }
.project-tile:hover { box-shadow: inset 0 0 0 2px currentColor; }
.portfolio-library-wrap form { min-width: 160px; margin-top: 12px; }
.portfolio-library-wrap form label { font-size: 12px; }
.portfolio-upload > summary { color: var(--accent); font-size: 16px; font-weight: 650; }
.portfolio-upload .stack-form { margin-top: 20px; }
.portfolio-upload + .document-section h2 { font-size: 20px; }
.portfolio-upload + .document-section { margin-top: 20px; }
.source-table-wrap .dashboard-table, .core-table-wrap .dashboard-table, .portfolio-library-wrap .dashboard-table { width: 100%; }
.source-operation-controls, .source-health { font-size: 13px; }
.toast, .guard-note, .fit-notice, .notice, .inline-errors { font-size: 13px; }
.empty-state { border: 0; border-radius: 16px; background: var(--surface); padding: 32px 24px; }
.empty-state h2 { font-size: 24px; letter-spacing: -.6px; }
@media (max-width: 1100px) {
  .project-collection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-project-table, .portfolio-library-wrap table { min-width: 0; }
  .core-table-wrap, .portfolio-library-wrap { overflow: visible; }
  .core-project-table thead, .portfolio-library-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .core-project-table tbody, .portfolio-library-wrap tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .core-project-table tr, .portfolio-library-wrap tr { display: block; padding: 20px; border-radius: 16px; background: var(--surface); min-width: 0; }
  .core-project-table td, .portfolio-library-wrap td { display: grid; grid-template-columns: 1fr; padding: 6px 0; border-radius: 0; min-width: 0; background: transparent; }
  .core-project-table td:first-child, .core-project-table td:last-child, .portfolio-library-wrap td:first-child, .portfolio-library-wrap td:last-child { padding-inline: 0; min-width: 0; border-radius: 0; }
  .core-project-table td:not(:first-child)::before, .portfolio-library-wrap td:not(:first-child)::before { content: attr(data-label); color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
  .core-project-table tr:hover, .portfolio-library-wrap tr:hover { background: var(--surface-hover); }
  .core-project-table tr:hover td, .portfolio-library-wrap tr:hover td { background: transparent; }
  .portfolio-library-wrap form { min-width: 0; }
}
@media (max-width: 1100px) { .workspace { padding-inline: 24px; } }
@media (min-width: 721px) and (max-width: 1100px) {
  .subject-table th:first-child { width: 44%; }
  .subject-table th:nth-child(2) { width: 14%; }
  .subject-table th:nth-child(5), .subject-table th:nth-child(6), .subject-table th:nth-child(8) { width: 14%; }
}
@media (max-width: 720px) {
  .workspace { padding: 20px 14px 32px; }
  .global-header { height: 68px; padding: 10px 14px; gap: 8px; background: var(--background); backdrop-filter: none; }
  .sidebar { background: var(--surface); overflow-y: auto; }
  .page-header { flex-wrap: wrap; gap: 14px; align-items: start; }
  .page-header h1, .detail-header h1, .application-hero h1 { font-size: 31px; letter-spacing: -1.1px; }
  .button, .button.small, .relevance-actions .button, .property-trigger, .property-option, .icon-button { min-height: 44px; }
  .view-tabs { margin-inline: 0; padding-inline: 0; }
  .view-tabs a { min-height: 44px; }
  .mobile-brand img { width: 26px; height: 26px; }
  .mobile-brand .product-workspace-label { display: none; }
  .toolbar-actions .button { min-width: 44px; min-height: 44px; }
  .mobile-opportunity-list { gap: 12px; }
  .mobile-opportunity { border: 0; border-radius: 14px; padding: 18px; gap: 8px; }
  .mobile-opportunity > strong { font-size: 18px; line-height: 1.32; }
  .mobile-opportunity:not(:has(.mobile-opportunity-main)) { padding: 18px; gap: 8px; }
  .mobile-opportunity-main { padding: 0; gap: 8px; }
  .mobile-opportunity-main > strong { font-size: 18px; line-height: 1.32; }
  .mobile-inline-edits { display: flex; flex-wrap: wrap; padding: 0; border: 0; background: transparent; }
  .mobile-inline-edits .inline-edit { width: 132px; }
  .mobile-inline-edits .property-trigger { font-size: 12px; min-height: 44px; }
  .mobile-meta { font-size: 12px; }
  .mobile-opportunity > .discovery-new { justify-self: start; }
  .mobile-row-top, .mobile-row-bottom { flex-wrap: wrap; }
  .mobile-entity { flex: 1; }
  .mobile-row-bottom .deadline { margin-left: 0; }
  .detail-header, .application-hero { flex-wrap: wrap; gap: 16px; }
  .metadata-sidebar, .application-side { order: 0; }
  .metadata-sidebar { margin-top: 20px; }
  .metadata-group dl > div { border: 0; }
  .document-section h2 { font-size: 22px; }
  .quick-drawer { width: 100vw; }
  .drawer-head { padding: 22px 20px 16px; }
  .drawer-head .drawer-entity { font-size: 20px; }
  .drawer-body { padding: 0 20px 20px; }
  .drawer-actions { padding: 16px 20px 20px; }
  .list-toolbar { flex-wrap: wrap; }
  .search-control { min-width: min(200px, 100%); }
  .discovery-entry { display: grid; padding: 18px; grid-template-columns: 8px minmax(0, 1fr); gap: 10px; }
  .discovery-open { grid-column: 2; justify-self: start; min-height: 44px; }
  .discovery-toolbar .search-control { flex-basis: 100%; }
  .project-collection, .core-project-table tbody, .portfolio-library-wrap tbody { grid-template-columns: minmax(0, 1fr); }
  .project-tile { min-height: 230px; padding: 22px; }
  .core-rail { margin-top: 24px; }
  .source-table-wrap tbody tr { border: 0; border-radius: 16px; background: var(--surface); padding: 18px; margin-block: 12px; }
  .source-table-wrap .dashboard-table td, .source-table-wrap .dashboard-table td:first-child, .source-table-wrap .dashboard-table td:last-child { border: 0; border-radius: 0; background: transparent; padding: 10px 0; }
  .core-fields > div { grid-template-columns: 1fr; gap: 5px; }
  .core-section-nav { flex-wrap: nowrap; overflow-x: auto; }
  .core-future summary, .core-provenance summary, .core-source summary, .portfolio-upload > summary { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-handle, .sidebar, .quick-drawer, .button { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
