.data-workspace { width: 100%; }
.data-workspace button, .data-workspace input, .data-workspace select { min-height: 40px; }
.source-head { margin-bottom: 28px; align-items: center; }
.source-head h1 { margin-bottom: 6px; }
.source-head p { margin: 0; color: var(--muted); font-size: 13px; }
.source-head .actions { margin-top: 0; gap: 12px; }
.source-collection-action { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 14px; border: 1px solid var(--ink); color: var(--ink); background: #fff; font: inherit; font-weight: 500; text-decoration: none; white-space: nowrap; }
.source-collection-action:hover { background: var(--soft); color: var(--ink); }
.source-summary { color: var(--muted); font-size: 13px; padding-top: 5px; }
.source-summary span { margin: 0 12px; }
.data-workspace .source-drop { width: 100%; display: flex; gap: 20px; align-items: center; text-align: left; padding: 24px 28px; height: auto; min-height: 112px; border: 1px dashed var(--line-2); background: var(--soft); margin-bottom: 36px; }
.source-drop strong { font: 500 19px/1.5 var(--font-display); }
.source-drop small { margin-top: 5px; }
.source-drop .upload-icon { font: 400 32px/1 var(--font-sans); color: var(--red); }
.upload-formats { margin-left: auto; color: var(--muted); font-size: 12px; }
.data-workspace .source-drop:hover, .data-workspace .source-drop.over { border-color: var(--red); background: var(--red-soft); }
.source-tabs { margin-bottom: 14px; }
.source-tabs button { font-size: 16px; }
.source-table-wrap { overflow-x: auto; width: 100%; }
.source-table { width: 100%; font-size: 13px; }
.source-table th { font-size: 12px; padding: 10px 12px; white-space: nowrap; }
.source-table td { padding: 17px 12px; vertical-align: middle; white-space: normal; }
.source-table td.source-time, .source-table td.source-category { white-space: nowrap; }
.source-table th:first-child, .source-table td:first-child { padding-left: 0; }
.source-table th:last-child, .source-table td:last-child { padding-right: 0; }
.source-table a { text-decoration: none; }
.source-table td:last-child a { color: var(--muted); font-size: 12px; }
.source-table tbody tr:hover { background: var(--soft); }
.source-category { min-width: 170px; white-space: nowrap; }
.source-category > a { font-weight: 500; display: inline-flex; align-items: center; min-height: 40px; }
.source-index { font-size: 11px; color: var(--muted); min-width: 30px; font-weight: 400; }
.source-category small { margin-left: 30px; margin-top: -4px; font-size: 11px; }
.source-sites { max-width: 290px; min-width: 170px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.source-sites .source-scope { margin-top: 5px; color: var(--ink); font-size: 12px; }
.source-guide-intro { font-size: 14px; line-height: 1.8; margin: 24px 0 8px; }
.source-guide-intro strong { display: inline-block; margin-right: 16px; font-weight: 500; color: var(--red); }
.source-guide-table { table-layout: fixed; margin-top: 22px; }
.source-guide-table th:first-child { width: 26%; }
.source-guide-table th:nth-child(2) { width: 38%; }
.source-guide-table td { white-space: normal; vertical-align: top; padding: 20px 16px; line-height: 1.9; overflow-wrap: anywhere; }
.source-guide-table td:first-child { padding-left: 0; }
.source-guide-table small { margin-top: 5px; font-size: 11px; }
.source-evidence { margin: 12px 0 0; font-size: 11px; }
.source-evidence a { color: var(--muted); }
.source-time { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.source-name { min-width: 220px; max-width: 350px; overflow-wrap: anywhere; }
.source-name a { display: inline-block; padding: 5px 0; }
.source-name small { margin-top: 3px; font-size: 11px; }
.source-origin { min-width: 140px; max-width: 250px; overflow-wrap: anywhere; }
.source-origin small { font-size: 11px; margin-top: 3px; }
.source-status { font-size: 12px; color: var(--muted); white-space: nowrap; }
.source-status::before { content: ''; display: inline-block; width: 5px; height: 5px; border: 1px solid var(--line-2); margin-right: 7px; vertical-align: 1px; }
.source-status.needs-attention { color: var(--red); }
.source-status.needs-attention::before { background: var(--red); border-color: var(--red); }
.source-tools { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; }
.source-tools summary { color: var(--muted); font-size: 12px; cursor: pointer; }
.source-tools .actions { gap: 20px; }
.source-definition { display: grid; grid-template-columns: 110px 1fr; gap: 8px 20px; padding: 18px 0 24px; border-top: 1px solid var(--ink); margin-bottom: 28px; }
.source-definition > span { font-size: 12px; color: var(--muted); padding-top: 2px; }
.source-definition b { font-weight: 400; }
.source-definition details { grid-column: 2; color: var(--muted); font-size: 12px; }
.source-definition summary { cursor: pointer; }
.source-definition p { margin: 8px 0 0; line-height: 1.8; }
.source-filter { margin-bottom: 14px; gap: 12px; }
.source-filter select { max-width: 360px; }
.source-empty { padding: 55px 20px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; }
.source-upload-form { padding: 22px 26px; border: 1px solid var(--line-2); margin-bottom: 32px; background: var(--soft); }
.upload-selection { display: flex; align-items: center; justify-content: space-between; }
.upload-selection strong { font-weight: 500; }
.upload-selection button { border: 0; background: transparent; color: var(--muted); }
.selected-files { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 10px 0 24px; font-size: 12px; }
.selected-files span { overflow-wrap: anywhere; }
.selected-files small { display: inline; margin-left: 8px; font-size: 11px; }
.source-upload-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.upload-fields { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; }
.upload-fields label { font-size: 12px; }
.upload-fields input, .upload-fields select, .upload-more input { display: block; width: 100%; font: inherit; font-size: 13px; padding: 9px 10px; margin-top: 7px; border: 1px solid var(--line-2); border-radius: 0; background: #fff; color: var(--ink); }
.upload-more { margin-top: 18px; font-size: 12px; color: var(--muted); }
.upload-more summary { cursor: pointer; }
.upload-submit { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.upload-submit small { font-size: 11px; line-height: 1.8; }
.upload-submit button { flex: none; }
.source-fields { display: grid; grid-template-columns: 150px minmax(0,1fr); margin: 22px 0 32px; border-top: 1px solid var(--line); font-size: 13px; }
.source-fields dt, .source-fields dd { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; overflow-wrap: anywhere; }
.source-fields dt { color: var(--muted); padding-right: 16px; }
.source-fields dd { white-space: pre-wrap; }
.source-file-title { font-size: 24px; overflow-wrap: anywhere; }
.source-head > div { min-width: 0; }
.source-head > button { flex: none; }
.source-related { margin: -12px 0 22px; font-size: 13px; }
.source-alert, .source-message { padding: 14px 18px; margin-bottom: 24px; background: var(--red-soft); font-size: 13px; overflow-wrap: anywhere; }
.source-alert { color: var(--red); }
.source-message { background: var(--soft); }
.source-history-note { margin-bottom: 24px; }
.source-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.8 var(--font-sans); background: var(--soft); padding: 20px; max-height: 600px; overflow: auto; }
.snapshot-scroll { max-height: 520px; }
.snapshot-table { width: max-content; min-width: 100%; font-size: 12px; }
.snapshot-table th { position: sticky; top: 0; background: var(--soft); white-space: nowrap; }
.snapshot-table td { min-width: 100px; max-width: 300px; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 1100px) { .source-catalog { min-width: 900px; } .upload-formats { display: none; } }
@media (max-width: 600px) {
  .source-guide-table { min-width: 820px; }
  .data-workspace .source-head { align-items: flex-start; gap: 12px; }
  .source-summary { font-size: 12px; }
  .data-workspace .source-drop { padding: 22px 18px; gap: 16px; }
  .source-table { min-width: 780px; }
  .source-catalog { min-width: 900px; }
  .upload-fields { grid-template-columns: 1fr; }
  .source-upload-form { padding: 18px; }
  .upload-submit { align-items: stretch; flex-direction: column; }
  .source-definition { grid-template-columns: 1fr; gap: 6px; }
  .source-definition details { grid-column: 1; margin-top: 8px; }
  .source-fields { grid-template-columns: 90px minmax(0,1fr); }
  .source-filter > * { width: 100%; max-width: 100%; }
  .data-workspace .pager { gap: 10px; flex-wrap: wrap; }
  .data-workspace .pager-nav { gap: 8px; }
}
