/* Editorial A throughout the application. Compact desktop, touch-sized mobile.
   Loaded after module styles; existing office colors and functional states stay authoritative. */
.editorial-system { --field-height: 36px; --field-border: var(--editorial-line-strong); --field-radius: 6px; line-height: 1.5; }
.editorial-system .content { max-width: 1600px; padding: 24px 28px 32px; min-width: 0; }
.editorial-system .content:has(.editorial-topline) { padding-top: 0; }
.editorial-system .sidebar { padding: 20px 14px 14px; }
.editorial-system .brand { padding-bottom: 20px; }
.editorial-system .desktop-nav { gap: 8px; padding-bottom: 18px; }
.editorial-system .nav-group a { min-height: 36px; padding: 7px 10px; line-height: 1.5; }
.editorial-system .nav-fold > summary { padding-block: 8px; min-height: 36px; }
.editorial-system .editorial-topline { min-height: 44px; padding: 10px 28px; margin: 0 -28px 20px; }
.editorial-system :is(.workspace-header,.record-header,.central-heading) { gap: 16px; margin-bottom: 18px; }
.editorial-system h1 { font-size: clamp(25px,2vw,29px); line-height: 1.25; margin-bottom: 6px; }
.editorial-system h2 { font-size: 17px; line-height: 1.4; margin-bottom: 10px; }
.editorial-system h3 { font-size: 14px; }
.editorial-system :is(.workspace-header,.record-header) p { margin-block: 4px; font-size: 13px; line-height: 1.55; }
.editorial-system .context-note { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 450; letter-spacing: 0; text-transform: none; }
.editorial-system .button { min-height: 36px; padding: 7px 12px; font-size: 13px; line-height: 1.5; }
.editorial-system :is(.control,.field input:not([type=checkbox]):not([type=radio]),.field select,.field textarea,.people-search input) {
  min-height: 36px; padding: 7px 10px; font-size: 14px; line-height: 1.4;
  border-color: var(--field-border); border-radius: 6px;
}
.editorial-system .field { gap: 4px; margin-bottom: 14px; }
.editorial-system .field > label { font-size: 12px; line-height: 1.5; font-weight: 550; }
.editorial-system .field small { line-height: 1.45; }
.editorial-system .field textarea, .editorial-system textarea.control { height: 80px; min-height: 64px; resize: vertical; }
.editorial-system .field select[multiple] { min-height: 100px; }
.editorial-system .field .ts-wrapper.single .ts-control { min-height: 36px; padding: 7px 30px 7px 10px; }
.editorial-system .field .ts-wrapper .ts-control > input { min-height: 20px; }
.editorial-system .field-row { gap: 14px; }
.editorial-system :is(.form-card,form.task-workspace,.document-template-setup) { max-width: 980px; padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
.editorial-system .form-card, .editorial-system .form-panel > form, .editorial-system form.meeting-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; align-items: start; }
.editorial-system :is(.form-card,.form-panel > form,form.meeting-form) > :not(.field) { grid-column: 1/-1; }
.editorial-system :is(.form-card,.form-panel > form,form.meeting-form) > .field:has(textarea,[type=checkbox],[type=file],select[multiple],#id_name,#id_title,#id_subject) { grid-column: 1/-1; }
.editorial-system .form-section { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.editorial-system form.task-workspace > .form-section { padding: 0; border: 0; }
.editorial-system .form-section-heading { margin-bottom: 16px; }
.editorial-system .form-section-heading h2 { font-size: 16px; }
.editorial-system .form-section-heading p { font-size: 12px; }
.editorial-system .form-action-bar { margin-top: 16px; padding-top: 14px; gap: 8px; }
.editorial-system .form-action-hint { font-size: 12px; }
.editorial-system .form-panel { max-width: 980px; }
.editorial-system .case-form-grid { grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr); gap: 20px; }
.editorial-system .case-form-main { gap: 16px; }
.editorial-system .people-options { max-height: 240px; }
.editorial-system .person-choice { padding: 9px 10px; min-height: 36px; }
.editorial-system :is(.participant-disclosure,.task-more-details) { margin-top: 14px; padding-block: 10px; }
.editorial-system :is(.participant-disclosure,.task-more-details) > summary { min-height: 36px; }
.editorial-system .task-more-details-body { margin-top: 12px; }
.editorial-system .task-access-summary { margin-block: 12px; }
.editorial-system :is(.panel,.card) { box-shadow: none; border-color: var(--line); }
.editorial-system .panel { padding: 18px 20px; }
.editorial-system :is(.form-errors,.read-only-note,.message,.lease-notice) { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; margin-bottom: 14px; font-size: 13px; }
.editorial-system :is(.form-errors,.message.error) { border-color: var(--danger); }
.editorial-system .empty { max-width: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0; background: transparent; }
.editorial-system .empty h2 { font-size: 20px; }
.editorial-system .empty p { max-width: 70ch; }
.editorial-system .filter-bar { padding: 14px 0; margin-bottom: 0; gap: 12px; border: 0; border-block: 1px solid var(--line); border-radius: 0; background: transparent; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); }
.editorial-system .filter-bar :is(.filter-search,.filter-field,.filter-actions) { min-width: 0; grid-column: auto; }
.editorial-system .filter-bar label { font-size: 12px; font-weight: 500; }
.editorial-system .filter-actions { align-self: end; flex-wrap: wrap; }
.editorial-system .table-wrap { border: 0; border-radius: 0; background: transparent; }
.editorial-system .data-table th { padding: 10px; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; background: transparent; }
.editorial-system .data-table td { padding: 12px 10px; font-size: 13px; overflow-wrap: anywhere; }
.editorial-system .data-table :is(th,td):first-child { padding-left: 0; }
.editorial-system .data-table :is(th,td):last-child { padding-right: 0; }
.editorial-system .data-table tbody tr:hover { background: var(--soft); }
.editorial-system .data-table .row-action a { min-height: 32px; }
.editorial-system .record-link strong { font-size: 14px; font-weight: 550; }
.editorial-system .pagination { padding: 12px 0; margin-top: 0; font-size: 12px; }
.editorial-system :is(.record-list,.task-record-list,.focus-list,.recent-cases) li { padding-block: 13px; }
.editorial-system .task-filters { padding-block: 14px 6px; }
.editorial-system .view-switch a { padding-block: 12px; }
.editorial-system .advanced-filters summary { min-height: 36px; padding-block: 8px; }
.editorial-system .status,.editorial-system .priority { border-radius: 4px; font-size: 11px; padding: 2px 6px; font-weight: 500; }
.editorial-system .detail-grid { grid-template-columns: minmax(0,1fr) 280px; gap: 24px; }
.editorial-system .detail-main { padding: 0; background: transparent; border: 0; min-height: 0; }
.editorial-system .detail-side { padding: 0 0 0 20px; border: 0; border-left: 1px solid var(--line); background: transparent; border-radius: 0; }
.editorial-system .metadata > div { padding-block: 10px; }
.editorial-system .metadata dt { font-size: 12px; }
.editorial-system .metadata dd { font-size: 13px; }
.editorial-system .section-heading { margin-bottom: 12px; }
.editorial-system .task-documents { padding: 18px 0; border: 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; }
.editorial-system .document-row { padding-block: 16px; gap: 14px; }
.editorial-system .document-template-field { padding-block: 16px; }
.editorial-system .document-template-field legend { font-size: 15px; }
.editorial-system .document-template-field .field textarea { height: 64px; }
.editorial-system .document-template-field details > summary { min-height: 32px; }
.editorial-system .document-create-form,.editorial-system .document-context-form { gap: 24px; grid-template-columns: minmax(0,1fr) 280px; }
.editorial-system .document-create-main { padding-inline: 20px; }
.editorial-system .document-create-section { padding-block: 20px; }
.editorial-system .document-data-sheet,.editorial-system .document-context-form > .source-selection { padding: 20px; }
.editorial-system .document-create-actions,.editorial-system .context-save-panel { padding-left: 20px; }
.editorial-system .document-create-actions .button { min-height: 36px; }
.editorial-system .document-chosen-sources li { padding-block: 8px; }
.editorial-system .source-option { padding-block: 10px; }
.editorial-system .source-group { margin-bottom: 20px; }
.editorial-system .document-full-sheet { margin-top: 16px; }
.editorial-system .document-inspector { padding-left: 20px; }
.editorial-system .document-inspector .panel { padding: 14px 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.editorial-system .document-inspector .field textarea { height: 64px; }
.editorial-system .document-preview pre { padding: 28px; }
.editorial-system .document-history { padding: 16px 0; margin-top: 20px; border: 0; border-top: 1px solid var(--line); background: transparent; }
/* Preserve useful editing room for actual prose rather than metadata. */
.editorial-system .document-form #id_body,.editorial-system .meeting-summary-review textarea { height: 240px; }
.editorial-system .meeting-segment textarea { height: 100px; }
.editorial-system .meeting-area { max-width: none; }
.editorial-system .meeting-form { max-width: 980px; }
.editorial-system .meeting-section,.editorial-system .meeting-segment { padding-block: 16px; }
.editorial-system .meeting-segment .field { margin-bottom: 10px; }
.editorial-system .meeting-review-actions { position: static; margin-top: 16px; }
.editorial-system .provider-section { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 20px 0; }
.editorial-system .provider-settings-list { gap: 0; }
.editorial-system .provider-section-nav { margin-bottom: 20px; }
.editorial-system .provider-profile-fields { gap: 14px; }
.editorial-system .insight-card { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0; }
.editorial-system .insight-grid { gap: 24px; }
.editorial-system .insight-value { font-size: 28px; }
.editorial-system .inbox-shell { border-color: var(--line); border-radius: 12px; }
.editorial-system .conversation-queue { background: var(--paper); }
.editorial-system .thread-placeholder { background: transparent; }
.editorial-system .central-heading { margin-bottom: 16px; }
.editorial-system .connection-panel { gap: 20px; }
.editorial-system .auth-card { border-radius: 12px; padding: 24px; }
.editorial-system.auth-page { background: var(--canvas); }
.editorial-system .auth-card h1 { margin-top: 14px; font-size: 26px; }
.editorial-system .auth-card .editorial-file-icon { width: 28px; height: 28px; color: var(--accent-ink); }
.editorial-system .release-identity { margin-top: 24px; }
@media(max-width:1100px) {
  .editorial-system .case-form-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:1050px) {
  .editorial-system :is(.detail-grid,.document-create-form,.document-context-form) { grid-template-columns: minmax(0,1fr); }
  .editorial-system :is(.detail-side,.document-create-actions,.context-save-panel,.document-inspector) { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media(max-width:760px) {
  .editorial-system { --field-height: 44px; }
  .editorial-system .content { padding: 20px 16px 28px; }
  .editorial-system .content:has(.editorial-topline) { padding-top: 0; }
  .editorial-system .sidebar { padding: 12px 16px 6px; }
  .editorial-system .brand { padding-bottom: 8px; }
  .editorial-system .editorial-topline { min-height: 44px; padding: 10px 16px; margin: 0 -16px 18px; }
  .editorial-system :is(.workspace-header,.record-header) { gap: 12px; margin-bottom: 16px; }
  .editorial-system h1 { font-size: 25px; }
  .editorial-system .button,.editorial-system .nav-group a { min-height: 44px; }
  .editorial-system .control,.editorial-system .field input:not([type=checkbox]):not([type=radio]),.editorial-system .field select,.editorial-system .field textarea { min-height: 44px; font-size: 16px; }
  .editorial-system .field textarea { min-height: 80px; }
  .editorial-system .field .ts-wrapper.single .ts-control { min-height: 44px; padding-block: 10px; }
  .editorial-system .field .ts-wrapper .ts-control > input { min-height: 20px; }
  .editorial-system :is(.form-card,.form-panel > form,form.meeting-form) { grid-template-columns: minmax(0,1fr); }
  .editorial-system :is(.form-card,form.task-workspace,.document-template-setup,.form-section,.panel) { padding: 16px; }
  .editorial-system .detail-main { padding: 0; }
  .editorial-system .detail-side { padding: 18px 0 0; }
  .editorial-system .filter-bar { grid-template-columns: minmax(0,1fr); }
  .editorial-system .filter-bar > * { grid-column: 1/-1; }
  .editorial-system .data-table tr { border: 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; padding-block: 10px; margin: 0; }
  .editorial-system .data-table td { padding: 7px 0; grid-template-columns: 92px minmax(0,1fr); gap: 12px; }
  .editorial-system .data-table td:first-child { display: block; padding-bottom: 10px; }
  .editorial-system .data-table td:first-child:before { display: none; }
  .editorial-system .data-table .row-action a { margin-left: 0; min-height: 44px; }
  .editorial-system .document-create-main,.editorial-system .document-data-sheet,.editorial-system .document-context-form > .source-selection { padding-inline: 16px; }
  .editorial-system .document-create-actions { padding-left: 0; }
  .editorial-system .document-row { gap: 12px; }
  .editorial-system .provider-section,.editorial-system .insight-card { padding: 18px 0; }
}
