/* Primary tools are normal document pages. Details and confirmations remain dialogs. */
section.workbench-page { flex: 1; min-width: 0; width: auto; max-width: none; max-height: none; height: 100%; margin: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
section.workbench-page[hidden], #chat-main[hidden], #public-workbench[hidden] { display: none !important; }
section.workbench-page .product-scroll, section.workbench-page .product-body { flex: 1; min-height: 0; overflow-y: auto; }
section.workbench-page .product-header { flex-shrink: 0; }
section.workbench-page .product-header > div { flex: 1; min-width: 0; }
section.workbench-page .product-header h2 { overflow-wrap: anywhere; }
section.workbench-page .product-tabs { flex-wrap: wrap; }
#public-workbench { height: 100dvh; max-width: 1100px; margin: auto; }
.task-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.file-details-grid { display: grid; grid-template-columns: minmax(100px, .3fr) minmax(0, 1fr); gap: 12px; margin: 20px 0; line-height: 1.8; }
.file-details-grid dt { color: var(--muted); } .file-details-grid dd { margin: 0; overflow-wrap: anywhere; }
.file-details-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.file-details-actions .button { min-height: 44px; }
.file-details-summary { padding: 14px; background: var(--teal-soft); border-radius: 12px; line-height: 1.8; }
@media(max-width:600px) {
  section.workbench-page { width: 100%; max-height: none; border-radius: 0; }
  section.workbench-page .product-header { gap: 10px; padding: 16px 12px; }
  section.workbench-page .product-header h2 { font-size: 20px; }
  section.workbench-page .product-tabs { flex-wrap: nowrap; }
  .file-details-grid { grid-template-columns: 1fr; gap: 3px; }
  .file-details-grid dd { margin-bottom: 10px; }
}
