/* Scoped layout fixes; retain the existing MillFlow palette and typography. */
.historian-workspace { min-width: 0; overflow-wrap: anywhere; }
.historian-workspace .form-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; }
.historian-workspace label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.historian-workspace input, .historian-workspace select, .historian-workspace textarea { box-sizing: border-box; max-width: 100%; min-width: 0; width: 100%; }
.historian-workspace form { display: grid; gap: 12px; margin-block: 16px; }
.historian-workspace .btn { white-space: normal; overflow-wrap: anywhere; min-height: 44px; }
.historian-workspace summary { cursor: pointer; padding-block: 10px; }
.historian-workspace table { min-width: 600px; }
.historian-workspace th, .historian-workspace td { padding: 8px; text-align: left; }
.historian-workspace svg { min-width: 0; }
@media (max-width: 600px) {
 .historian-workspace .fi-page-head { flex-direction: column; align-items: stretch; }
 .historian-workspace input, .historian-workspace select, .historian-workspace textarea { font-size: 16px; }
 .historian-workspace .panel-body { padding: 14px; }
}
