/* Shared construction review workspace refinements */
:root { color-scheme: light; --background: #f3f5f7; --foreground: #263442; --border: #d9e0e6; }
html { background: #f3f5f7; }
body { min-width: 320px; margin: 0; background: #f3f5f7; color: #263442; }
.workbench-module-nav { min-height: 52px; padding: 7px clamp(14px,3vw,36px); gap: 4px; background: #fff; color: #263442; border-bottom: 1px solid #d9e0e6; font: 14px/1.4 system-ui,-apple-system,"Microsoft YaHei",sans-serif; }
.workbench-module-nav .workbench-brand { margin-right: auto; color: #263b4e; font-weight: 700; white-space: nowrap; }
.workbench-module-nav a:not(.workbench-brand) { min-height: 38px; display: inline-flex; align-items: center; padding: 7px 11px; border: 1px solid transparent; border-radius: 5px; color: #526273; }
.workbench-module-nav a[aria-current=page] { color: #205a83; background: #eaf1f7; border-color: #c6d8e6; }
.workbench-module-nav a:hover { color: #205a83; background: #f2f5f8; }
.workbench-module-nav a:focus-visible { outline: 2px solid #639ac2; outline-offset: 1px; }
.workbench-version-badge { display: none; }
.topbar { position: relative; top: auto; z-index: 2; padding: 13px clamp(14px,3vw,36px); gap: 14px; background: #fff; border-bottom: 1px solid #d9e0e6; box-shadow: none; }
.brandmark { width: 38px; height: 38px; border-radius: 6px; background: #eaf1f7; color: #24638f; }
.brand h1 { color: #26384a; font-size: 20px; line-height: 1.35; }
.subline { margin-top: 3px; color: #63717f; font-size: 12px; }
.subline b { margin-inline: 5px; color: #405a70; }
.actions { gap: 7px; }
.actions button, .road-source-links button, .filterbar button { min-height: 40px; border: 1px solid #cbd6df; border-radius: 5px; background: #fff; color: #33485b; }
.actions button:hover, .road-source-links button:hover, .filterbar button:hover { background: #f1f5f8; border-color: #aebfcd; }
.actions button:focus-visible, .filterbar button:focus-visible, .profession-list button:focus-visible { outline: 2px solid #639ac2; outline-offset: 2px; }
.actions button:disabled { color: #8b96a0; background: #f0f2f4; border-color: #d8dee4; cursor: not-allowed; }
.save-state { color: #64717d; font-size: 12px; }
.workspace { width: min(1480px,100%); max-width: 1480px; margin: 0 auto; padding: 20px clamp(12px,2.5vw,32px) 32px; }
.summary-grid { gap: 10px; margin: 0 0 15px; }
.summary-grid article, .panel { min-width: 0; border: 1px solid #d9e0e6; border-radius: 6px; background: #fff; box-shadow: none; }
.summary-grid article { padding: 14px 16px; }
.summary-grid article>span, .summary-grid strong small { color: #667583; }
.summary-grid strong { color: #233b50; font-variant-numeric: tabular-nums; }
.section-heading { margin: 16px 0 10px; }
.navigation { margin: 0 0 15px; }
.navigation [data-slot=tabs-list] { justify-content: flex-start; gap: 4px; padding: 4px; border: 1px solid #d9e0e6; border-radius: 6px; background: #fff; }
.navigation [data-slot=tabs-trigger] { min-height: 40px; border-radius: 4px; color: #526273; }
.road-title { padding: 15px 17px; gap: 16px; background: #f8f9fa; border-bottom: 1px solid #e1e6eb; }
.road-title h3 { color: #293e51; font-size: 16px; }
.road-title p { color: #657482; }
.road-panel { overflow: hidden; }
.area-inputs input { min-height: 42px; border: 1px solid #cbd6df; border-radius: 5px; background: #fff; }
.area-inputs input:focus, .filterbar input:focus, .notes-panel textarea:focus-visible { outline: 2px solid #24638f; outline-offset: 1px; }
.road-subtotals { background: #f3f6f8; border-top-color: #dbe2e8; color: #536678; }
.road-subtotals b, .volume { color: #245d84; }
.panel-heading { border-bottom-color: #dfe5ea; }
.relative.w-full.overflow-x-auto { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.panel [data-slot=table] { min-width: 720px; }
.panel [data-slot=table-head] { color: #5f6f7d; background: #f3f5f7; font-weight: 600; }
.panel [data-slot=table-cell] { padding: 9px 12px; }
.notes-panel textarea { min-height: 94px; border: 1px solid #ccd6df; border-radius: 5px; background: #fff; }
.diagram-panel { overflow: hidden; }
.diagram-toolbar, .diagram-foot { padding: 11px 14px; color: #62717e; background: #f7f8f9; }
.diagram-wrap { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
.diagram-wrap svg { min-width: 740px; }
.pipe-layout { gap: 15px; }
.profession-list { max-height: calc(100vh - 140px); overflow-y: auto; border-color: #d9e0e6; border-radius: 6px; background: #fff; }
.profession-list button { min-height: 42px; border-radius: 4px; color: #485b6c; }
.profession-list button.active { background: #eaf1f7; color: #205a83; }
.filterbar { margin: 12px 0; padding: 10px; border: 1px solid #dfe5ea; border-radius: 6px; background: #f8f9fa; }
.filterbar input { min-height: 42px; background: #fff; }
.source-card, .notes-panel { margin-top: 14px; }
.source-thumbnails button { min-height: 40px; border-radius: 4px; }
.source-large { overscroll-behavior: contain; }
.source-large img { width: auto; min-width: min(100%,900px); max-width: none; }
.edit-dialog input, .edit-dialog textarea { min-height: 42px; border: 1px solid #cbd6df; border-radius: 5px; background: #fff; }
.edit-dialog button:disabled { opacity: .65; cursor: not-allowed; }
.edit-mode-label { color: #526273; font-size: 12px; white-space: nowrap; }
@media(max-width:760px) {
  .workbench-module-nav { min-height: 0; padding: 6px 10px; gap: 4px; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; justify-content: flex-start; scrollbar-width: thin; }
  .workbench-module-nav .workbench-brand { display: none; }
  .workbench-module-nav a:not(.workbench-brand) { min-height: 42px; flex: 0 0 auto; padding-inline: 14px; }
  .topbar { padding: 10px 12px; }
  .brandmark { width: 34px; height: 34px; }
  .brand h1 { font-size: 17px; }
  .subline { font-size: 11px; }
  .topbar .actions { margin-top: 9px; gap: 6px; }
  .topbar .actions button { min-height: 42px; padding: 8px 10px; }
  .workspace { width: 100%; padding: 13px 10px 24px; }
  .summary-grid { gap: 7px; margin-bottom: 12px; }
  .summary-grid article { min-width: 0; padding: 10px 9px; }
  .summary-grid strong { font-size: 20px; overflow-wrap: anywhere; }
  .summary-grid article>span { line-height: 1.4; }
  .navigation { overflow: hidden; }
  .navigation [data-slot=tabs-list] { width: 100%; overflow-x: auto; }
  .navigation [data-slot=tabs-trigger] { flex: 0 0 auto; padding-inline: 11px; }
  .section-heading { margin: 11px 0 8px; }
  .road-title { padding: 12px; display: block; }
  .road-title p { margin-top: 4px; }
  .area-inputs { gap: 8px; margin-top: 10px; }
  .area-inputs label { min-width: 0; }
  .area-inputs input { width: 100%; min-width: 0; }
  .road-subtotals { gap: 7px; padding: 10px 12px; font-size: 12px; }
  .road-plan { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
  .road-plan svg { min-width: 680px; }
  .pipe-layout { display: block; }
  .profession-list { display: flex; gap: 4px; max-height: none; margin: 0 0 11px; padding: 5px; position: relative; top: auto; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
  .profession-list button { flex: 0 0 auto; width: auto; min-height: 42px; gap: 7px; margin: 0; padding: 7px 10px; white-space: nowrap; }
  .profession-list button span { white-space: nowrap; }
  .profession-list button i { width: 4px; height: 15px; }
  .profession-list p, .profession-list small { display: none; }
  .filterbar { gap: 7px; padding: 8px; }
  .filterbar input { flex-basis: 100%; min-width: 0; width: 100%; }
  .filterbar button { min-height: 42px; }
  .diagram-toolbar, .diagram-foot { padding: 9px 11px; }
  .diagram-wrap svg { min-width: 720px; }
  .panel [data-slot=table] { min-width: 720px; }
  .source-grid { gap: 10px; }
  .source-thumbnails { gap: 7px; padding-inline: 10px; }
  .source-thumbnails img { height: 104px; }
  .shared-map-scroll { max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
  .shared-map { min-width: 900px; }
  .notes-panel, .shared-heading { padding: 13px; }
}
