/* Common desktop rhythm. Font sizing is scaled once by the app shell. */
.content:has(> :is(.change-workspace,.dc-workspace,.fmea,.hw-workspace)) {
  padding: 24px clamp(22px, 2vw, 40px) 32px;
}
:is(.change-workspace,.dc-workspace,.fmea,.hw-workspace) {
  font-family: var(--font-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 14px;
  line-height: 1.65;
  min-width: 0;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
}
:is(.change-workspace,.dc-workspace,.fmea,.hw-workspace) :is(h1,h2,h3,p,summary,dd) { overflow-wrap: anywhere; }
:is(.cw-heading,.dc-header,.fmea-page-head) { gap: 16px 24px; align-items: flex-start; }
:is(.cw-heading,.dc-header,.fmea-page-head) :is(h1,h2) { font-size: 1.72em; line-height: 1.35; margin: 4px 0 10px; }
:is(.cw-heading,.dc-header,.fmea-page-head) p { font-size: .93em; line-height: 1.65; }
:is(.cw-panel,.cw-detail-panel,.dc-card,.fmea-card,.cw-field-group,.cw-import-preview) { min-width: 0; }
:is(.cw-field,.cw-compact-fields .cw-field,.dc-form-grid>label,.fmea-form-grid>label) { font-size: 1em; line-height: 1.6; min-width: 0; }
:is(.change-workspace,.dc-workspace,.fmea,.hw-workspace) :is(input,select,textarea) { font-family: inherit; line-height: 1.5; min-width: 0; }
:is(.cw-fields,.cw-compact-fields,.dc-form-grid,.fmea-form-grid) :is(input,select,textarea) { font-size: 1em; }
:is(.cw-fields,.cw-compact-fields,.dc-form-grid,.fmea-form-grid) { gap: 16px 20px; }
.cw-import-panel { padding: 24px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cw-panel-body { padding: 20px; }
.cw-panel-body>p:first-child { margin-top: 0; }
.cw-panel-body>p:last-child { margin-bottom: 0; }
.cw-import-panel h2 { font-size: 1.2em; margin: 0 0 12px; }
.cw-import-panel>p { margin: 0 0 18px; max-width: 80em; }
.cw-import-preview { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.cw-import-preview :is(td,th) { white-space: pre-wrap; overflow-wrap: anywhere; }
.cw-import-preview .cw-table-wrap { max-height: 48vh; overflow: auto; }
.cw-filter-panel>.cw-actions { display: flex; flex-wrap: wrap; align-items: center; }
.cw-filter-panel>.cw-actions>select { width: auto; flex: 1 1 200px; max-width: 28em; }
.cw-form-footer { gap: 12px; flex-wrap: wrap; }
.cw-person-help { margin: 0; font-size: .93em; color: var(--ink-soft); }
.fmea-dialog { box-sizing: border-box; max-height: calc(100dvh - 64px); overflow: auto; }
.fmea-dialog-head { gap: 20px; }
.fmea-dialog-actions { flex-wrap: wrap; }
.dc-delete-dialog { max-height: calc(100dvh - 64px); overflow: auto; }
@media (max-width: 1400px) {
  .content:has(> :is(.change-workspace,.dc-workspace,.fmea,.hw-workspace)) { padding: 20px 22px 28px; }
  .cw-import-panel { padding: 20px; }
  .cw-validation-card>summary { grid-template-columns: 24px minmax(120px,1fr) repeat(2,minmax(80px,auto)); }
  .cw-validation-card>summary>span { white-space: normal; }
}
@media print { .content:has(> :is(.change-workspace,.dc-workspace,.fmea,.hw-workspace)) { padding: 0; } }

/* Form labels otherwise inherit the shell's 12px label rule and shrink twice. */
.hw-workspace :is(.hr-field,.hw-field) { font-size: 1em; line-height: 1.6; }
.hw-workspace :is(.hr-field,.hw-field)>span { font-size: .93em; }
.hw-workspace :is(.hr-form-grid,.hw-grid) { gap: 16px 20px; }
