/* Browse the source by month; export settings stay inside the export dialog. */
.upload-section.loaded { grid-template-columns: minmax(0, 1fr); }
.upload-section.loaded:not(:has(#file-status:not([hidden]))) { display: none; }
#processing-view > #upload-error { margin: 0 0 20px; }
.upload-main, #file-status { width: 100%; min-width: 0; }
#file-status .file-info { min-width: 0; }
#file-status .file-meta { overflow-wrap: anywhere; }
#file-status .button { max-width: 100%; }
.journal-toolbar { position: sticky; top: 12px; z-index: 12; display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: 0 0 22px; pointer-events: none; }
.journal-actions { display: flex; align-items: center; flex-shrink: 0; gap: 10px; }
.journal-actions .button { min-height: 38px; pointer-events: auto; }
.journal-actions .button:not(.primary) { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
#journal-upload-toolbar { align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-bottom: 8px; position: static; }
.journal-territory-fields { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; flex: 1 1 280px; min-width: 0; pointer-events: auto; }
.journal-territory-fields label { display: grid; gap: 6px; min-width: 0; flex: 0 1 240px; color: var(--text-secondary); font-size: 12px; }
.journal-territory-fields input, .journal-territory-fields select { width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); color: var(--ink); font: inherit; }
.journal-territory-fields :is(input,select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.journal-territory-fields [aria-invalid="true"] { border-color: var(--error-line); }
.journal-territory-help { margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.journal-update-status { margin: 0 0 18px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--accent-surface); color: var(--accent-ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.journal-update-status strong { display: block; font-size: 13px; }
.journal-update-status p { margin: 3px 0 0; }
.journal-quantity-review { margin: 0 0 20px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--paper); color: var(--ink); }
.journal-quantity-review > summary { font-weight: 600; cursor: pointer; font-size: 13px; }
.journal-quantity-review > p { margin: 10px 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.quantity-review-scroll { max-width: 100%; max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.quantity-review-scroll table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 11px; line-height: 1.5; }
.quantity-review-scroll th, .quantity-review-scroll td { padding: 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: normal; }
.quantity-review-scroll th { color: var(--ink); background: var(--accent-surface); }
.quantity-review-scroll td { color: var(--text-secondary); }
.file-journal-source { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 8px 0; color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.file-journal-source strong { color: var(--ink); }
@media (max-width: 640px) {
  .journal-territory-fields { flex-basis: 100%; }
  .journal-territory-fields label { flex: 1 1 145px; }
  #journal-upload-toolbar .journal-actions { width: 100%; }
  #journal-upload-toolbar .journal-actions .button { flex: 1; }
  .journal-territory-help { margin-bottom: 14px; }
  .journal-update-status { padding: 10px 12px; }
}

.journal-overview { margin: 0; }
.journal-overview-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.journal-overview-heading h2 { color: var(--ink); font-size: 20px; line-height: 1.4; font-weight: 600; }
.journal-overview-heading p, .journal-overview-heading > span, .journal-overview-heading small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.journal-overview-heading p { margin-top: 5px; }
.select-all-months { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; cursor: pointer; }
.select-all-months input { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); }
.month-browser { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); align-items: stretch; gap: 14px; }
.month-folder { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.month-folder:has(input[data-select-month]:checked) { border-color: var(--teal); background: var(--accent-surface); }
.month-folder > label { position: absolute; top: 16px; right: 16px; z-index: 1; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; cursor: pointer; }
.month-folder input[data-select-month], .export-month-list input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--teal); flex-shrink: 0; cursor: pointer; }
.month-folder > input[data-select-month] { position: absolute; top: 17px; right: 16px; z-index: 2; }
.month-folder:has(> input[data-select-month]) > label { right: 41px; }
.month-open { display: block; width: 100%; height: 100%; min-height: 190px; padding: 18px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); text-align: left; }
.month-open:hover { background: var(--surface-hover); }
.month-open:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.month-folder-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-surface); color: var(--accent-ink); vertical-align: middle; }
.month-folder-icon svg { width: 24px; height: 24px; }
.month-folder-year { display: inline-block; margin-left: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; vertical-align: middle; }
.month-open h3 { margin: 14px 0 0; color: var(--ink); font-size: 18px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.month-folder-count { display: block; margin-top: 7px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.month-folder-price { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }

.month-workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.month-workspace-heading > div { min-width: 0; }
#back-to-months.button { min-height: 32px; padding: 5px 0; margin-bottom: 8px; border: 0; background: transparent; color: var(--accent-ink); font-size: 12px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
#back-to-months.button:hover { color: var(--teal); }
#open-month-title { color: var(--ink); font-size: 24px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; }
#open-month-count { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.month-workspace-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.month-workspace-tools label { color: var(--muted); font-size: 12px; }
#month-switch, #saved-price-select { min-height: 38px; min-width: 0; max-width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.5; }
#month-switch { width: 200px; }
.month-settings-note, #month-settings-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
#month-settings-status { margin: -5px 0 16px; }
.month-workspace-heading .inline-error { margin-top: 8px; }
#month-workspace .results-column { min-width: 0; }
#month-workspace .results-column > .preview-panel { margin-top: 0; }
#month-workspace .filter-panel { top: 106px; }
.month-price-panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.month-price-panel h2 { margin-bottom: 12px; color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 600; }
.month-price-panel .price-picker { margin-top: 0; background: var(--surface-soft); }
.month-price-panel .button:not(.primary) { background: var(--paper); color: var(--ink); border: 1px solid var(--line-strong); }
.month-price-panel .button:not(.primary):hover { background: var(--surface-hover); }
#saved-price-select { display: block; width: 100%; margin-top: 8px; }
#attach-saved-price { margin-top: 10px; max-width: 100%; }
#detach-month-price.button.text-button { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.month-price-panel .saved-price-row, .month-price-panel .saved-price-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; margin-top: 14px; }
.month-price-panel .saved-price-row > label, .month-price-panel .saved-price-picker > label { min-width: 0; flex: 1 1 230px; color: var(--muted); font-size: 12px; }
.month-price-panel .saved-price-row > select, .month-price-panel .saved-price-picker > select { flex: 1 1 230px; width: auto; }
.month-price-panel .saved-price-row > button, .month-price-panel .saved-price-picker > button { flex: 0 1 auto; }
.month-price-panel .saved-price-picker > label { flex-basis: 100%; }
.month-price-panel .saved-price-picker > div { display: flex; flex: 1 1 100%; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.month-price-panel .saved-price-picker > div > select { flex: 1 1 230px; width: auto; margin: 0; }
.month-price-panel .saved-price-picker > div > button { margin-top: 0; }
.month-price-panel .task-requisites { margin-top: 16px; }
.month-price-periods { display: grid; gap: 10px; margin-top: 14px; }
.month-price-period { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.month-price-period > strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.price-period-summary { margin-top: 7px; color: var(--text-secondary); font-size: 13px; }
.price-period-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.price-period-fields label { display: grid; gap: 5px; min-width: 0; color: var(--text-secondary); font-size: 12px; }
.price-period-fields input { width: 160px; max-width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; }
.price-period-fields .button { min-height: 38px; padding: 8px 12px; }
.new-price-period { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.new-price-period h4 { color: var(--ink); font-size: 13px; font-weight: 600; }

dialog.export-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog.export-dialog[open] { display: flex; flex-direction: column; }
.export-dialog > header, .export-dialog > .dialog-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.export-dialog > header h2, .export-dialog > .dialog-header h2 { margin: 0; color: var(--ink); font-size: 21px; line-height: 1.35; font-weight: 600; }
.export-dialog .dialog-header p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.export-dialog .export-body { min-height: 0; padding: 18px 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.export-dialog .export-months { min-width: 0; margin: 0; padding: 0; border: 0; }
.export-dialog .export-months legend { margin-bottom: 10px; padding: 0; color: var(--ink); font-size: 13px; font-weight: 600; }
.export-dialog .export-body > .account-note { margin-top: 12px; }
.export-dialog .export-month-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex-shrink: 0; max-height: 180px; margin: 16px 22px; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.export-month-list label { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--text-secondary); font-size: 12px; line-height: 1.45; cursor: pointer; overflow-wrap: anywhere; }
.export-month-list label:has(input:checked) { border-color: var(--teal); background: var(--accent-surface); color: var(--accent-ink); }
.export-dialog #report-mode { align-self: flex-start; flex-shrink: 0; max-width: calc(100% - 44px); margin: 0 22px 16px; }
.export-dialog #report-mode button { white-space: normal; }
.export-dialog #export-config { min-height: 0; padding: 0 22px 20px; overflow-y: auto; overscroll-behavior: contain; }
.export-dialog #task-controls { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.export-dialog .task-stage-heading { margin-bottom: 10px; }
.export-dialog .selection-summary:first-child { margin-top: 0; }
.export-dialog .task-fields { margin-top: 13px; }
.export-dialog .task-requisites { margin-top: 14px; }
.export-dialog .export-footer { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; flex-wrap: wrap; gap: 10px; padding: 15px 22px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.export-dialog .export-footer .button:not(.primary) { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.export-dialog .export-footer .button { min-height: 39px; }
.export-dialog > .inline-error { margin: 0 22px 15px; flex-shrink: 0; }
.export-dialog > p, .export-dialog > .workflow-help { padding: 0 22px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.export-dialog #task-filter-cta { max-width: 100%; }
.export-dialog .export-body .export-month-list { margin: 0; }
.export-dialog .export-body #report-mode { display: inline-flex; max-width: 100%; margin: 18px 0 16px; }
.export-dialog .export-body #export-config { padding: 0; overflow: visible; }
.export-dialog .export-format-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--text-secondary); font-size: 12px; }
.export-dialog #export-format { min-width: 160px; max-width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12px; }
.export-dialog .export-body #task-controls { margin-top: 16px; }
.export-dialog #export-progress { flex: 1 1 170px; margin: 0; }
.export-dialog #export-progress:empty { display: none; }
.export-settings-editor { min-width: 0; margin: 20px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.export-settings-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.export-settings-heading h3 { color: var(--ink); font-size: 15px; font-weight: 600; }
.export-filter-summary { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.export-filter-summary h4 { margin: 0 0 8px; color: var(--ink); font-size: 13px; }
#export-month-filter-summary { list-style: none; margin: 0; padding: 0; }
#export-month-filter-summary li { display: grid; grid-template-columns: minmax(105px,.8fr) minmax(0,1fr) minmax(0,1fr); gap: 6px 14px; align-items: baseline; padding: 9px 8px; border-top: 1px solid var(--line); color: var(--text-secondary); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
#export-month-filter-summary li:first-child { border-top: 0; }
#export-month-filter-summary li[data-current="true"] { background: var(--accent-surface); }
#export-month-filter-summary strong { color: var(--ink); font-weight: 600; }
#export-month-filter-summary span { min-width: 0; }
@media (max-width: 600px) {
  .export-filter-summary { padding: 10px 8px; }
  #export-month-filter-summary li { grid-template-columns: minmax(0,1fr); gap: 3px; }
  #export-month-filter-summary strong { margin-bottom: 2px; }
}
.export-settings-heading > label { display: grid; gap: 5px; min-width: 0; color: var(--text-secondary); font-size: 12px; }
.export-settings-editor input:not([type="checkbox"]), .export-settings-editor select { min-width: 0; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font-family: inherit; font-size: 12px; }
.export-settings-editor #export-settings-scope { max-width: 300px; }
.export-settings-editor input::placeholder { color: var(--muted); opacity: 1; }
.export-settings-editor input[data-mixed="true"], .export-settings-editor select[data-mixed="true"] { border-style: dashed; }
.export-settings-editor input[aria-invalid="true"] { border-color: var(--error-line); }
.export-settings-editor :is(input,select,button,summary):focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.export-settings-editor :is(input,select,button):disabled { cursor: default; opacity: .65; }
.export-editor-help { margin-top: 10px; color: var(--text-secondary); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.export-settings-note { margin-top: 12px; padding: 9px 11px; border-radius: 6px; background: var(--paper); color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.export-settings-note[data-dirty="true"] { color: var(--accent-ink); background: var(--accent-surface); }
.export-filter-settings, .export-task-settings { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.export-settings-editor h4 { margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.export-primary-filters, .export-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.export-primary-filters { align-items: start; }
.export-field-grid { margin-top: 12px; }
.export-setting-field { display: grid; gap: 6px; min-width: 0; align-content: start; margin-top: 12px; }
.export-field-grid > .export-setting-field { margin-top: 0; }
.signer-choice-control { display: grid; grid-template-columns: minmax(0,1fr) 112px; gap: 6px; min-width: 0; }
.signer-choice-control > input, .signer-choice-control > select { width: 100%; min-width: 0; margin: 0; }
.signer-choice-control > select { min-height: 39px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.signer-choice-control > select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.signer-choice-control > select:disabled { cursor: default; opacity: .6; }
.export-setting-field > label { color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.export-field-help { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.export-field-help [data-export-mixed-for] { color: var(--accent-ink); }
.export-field-help button, .export-list-toolbar button { border: 0; padding: 3px 0; border-radius: 2px; background: transparent; color: var(--accent-ink); font: inherit; font-size: 11px; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.export-field-help button { margin-left: auto; }
.export-filter-list { min-width: 0; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--paper); }
.export-filter-list > summary { display: list-item; padding: 10px 12px; color: var(--ink); font-size: 12px; line-height: 1.5; font-weight: 500; cursor: pointer; overflow-wrap: anywhere; }
.export-filter-list > summary span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.export-filter-list > summary span[data-mixed="true"] { color: var(--accent-ink); }
.export-list-body { padding: 0 12px 10px; }
.export-list-toolbar { display: flex; justify-content: flex-end; margin: 6px 0; }
.export-checkbox-options { display: grid; gap: 3px; max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.export-checkbox-options > label { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 6px 2px; color: var(--ink); font-size: 12px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.export-checkbox-options input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--teal); }
.export-checkbox-options input[data-export-missing] + span { color: var(--muted); }
.export-extra-filters { margin-top: 14px; border-top: 1px solid var(--line); }
.export-extra-filters > summary { padding: 12px 0; color: var(--ink); font-size: 12px; cursor: pointer; }
.export-extra-body { display: grid; gap: 12px; }
.export-extra-body > .export-field-grid, .export-extra-body > .export-setting-field { margin-top: 0; }
.export-settings-editor #export-settings-error { margin: 14px 0 0; }

@media (max-width: 1100px) {
  .month-browser { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .month-price-panel { padding: 18px; }
}
@media (max-width: 640px) {
  .price-period-fields label { flex: 1 1 120px; }
  .price-period-fields input { width: 100%; }
  .price-period-fields .button { width: 100%; }
  #file-status { flex-wrap: wrap; }
  #file-status .file-info { min-width: 0 !important; flex: 1 1 calc(100% - 48px); }
  #file-status .button { min-height: 36px; padding: 8px 12px; white-space: normal; }
  .journal-toolbar { top: 8px; gap: 10px; margin-bottom: 18px; }
  .journal-actions { gap: 6px; }
  .journal-actions .button { min-height: 36px; padding: 9px 11px; font-size: 11px; }
  .journal-overview-heading { gap: 6px 12px; margin-bottom: 13px; }
  .journal-overview-heading h2 { font-size: 18px; }
  .journal-overview-heading p, .journal-overview-heading > span, .journal-overview-heading small { font-size: 11px; }
  .select-all-months { font-size: 11px; }
  .month-browser { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .month-open { min-height: 178px; padding: 14px 12px; }
  .month-folder { border-radius: 10px; }
  .month-folder > label { top: 12px; right: 11px; }
  .month-folder > input[data-select-month] { top: 13px; right: 11px; }
  .month-folder:has(> input[data-select-month]) > label { right: 35px; }
  .month-folder-icon { width: 34px; height: 34px; border-radius: 7px; }
  .month-folder-icon svg { width: 21px; height: 21px; }
  .month-folder-year { margin-left: 6px; font-size: 11px; }
  .month-open h3 { margin-top: 12px; font-size: 16px; }
  .month-folder-count { font-size: 12px; }
  .month-folder-price { margin-top: 6px; font-size: 11px; }
  .month-workspace-heading { gap: 12px; margin-bottom: 15px; }
  #open-month-title { font-size: 21px; }
  #open-month-count { font-size: 11px; }
  .month-workspace-tools { width: 100%; justify-content: space-between; }
  #month-switch { flex: 1; max-width: 240px; font-size: 12px; }
  #month-workspace .filter-panel { position: static; }
  .month-price-panel { margin-top: 16px; padding: 16px 14px; border-radius: 12px; }
  .month-price-panel h2 { font-size: 15px; }
  .month-price-panel .saved-price-row, .month-price-panel .saved-price-picker { align-items: stretch; }
  #saved-price-select { font-size: 12px; }
  #attach-saved-price, #detach-month-price.button.text-button { width: 100%; }
  dialog.export-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .export-dialog > header, .export-dialog > .dialog-header { padding: 16px; }
  .export-dialog .export-body { padding: 14px 16px 16px; }
  .export-dialog > header h2, .export-dialog > .dialog-header h2 { font-size: 20px; }
  .export-dialog .export-month-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 155px; margin: 14px 16px; }
  .export-month-list label { gap: 7px; padding: 9px 8px; font-size: 11px; }
  .export-dialog #report-mode { align-self: stretch; max-width: none; margin: 0 16px 14px; }
  .export-dialog .export-body #report-mode { display: flex; margin: 16px 0 14px; }
  .export-dialog #export-config { padding: 0 16px 16px; }
  .export-dialog .selection-summary { padding: 12px 10px; }
  .export-dialog .export-footer { gap: 8px; padding: 13px 16px; }
  .export-dialog .export-footer .button { flex: 1 1 140px; min-width: 140px; padding: 10px; font-size: 12px; }
  .export-dialog #export-progress { flex-basis: 100%; }
  .export-settings-editor { margin-top: 16px; padding: 12px 10px; }
  .export-settings-heading, .export-settings-heading > label { display: grid; width: 100%; }
  .export-settings-editor #export-settings-scope { max-width: none; }
  .export-primary-filters, .export-field-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .export-checkbox-options { max-height: 180px; }
  .export-filter-settings, .export-task-settings { margin-top: 14px; padding-top: 14px; }
  .export-dialog > .inline-error { margin: 0 16px 13px; }
  .export-dialog > p, .export-dialog > .workflow-help { padding: 0 16px; font-size: 11px; }
}
@media (max-width: 350px) {
  .month-browser { grid-template-columns: minmax(0, 1fr); }
  .month-open { min-height: 160px; padding: 16px; }
  .export-dialog .export-month-list { grid-template-columns: minmax(0, 1fr); }
  .month-workspace-tools { align-items: stretch; flex-direction: column; }
  #month-switch { width: 100%; max-width: none; }
}

.task-pricing-status { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.task-pricing-status strong { color: var(--ink); font-size: 13px; }
.task-pricing-status p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.task-pricing-status [data-complete="false"] { border-left: 3px solid var(--accent-ink); padding-left: 10px; }
