/* Compact literature workspace; unrelated LabDesk pages retain their layout. */
[data-page-panel="literature"] { max-width: none; }
.lit-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lit-button { border: 1px solid #dedee0; background: #f8f8f8; border-radius: 7px; color: #414145; font: inherit; font-size: 11px; padding: 6px 10px; cursor: pointer; }
.lit-button:hover { background: #ededee; }
.lit-button:disabled { opacity: .5; cursor: default; }
.literature-workspace { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.literature-workspace .workspace-toolbar { flex: 0 0 auto; gap: 12px; }
.literature-workspace .workspace-toolbar .search-input { width: min(270px, 45%); }
.lit-status { flex: 0 0 auto; padding: 8px 18px; color: #6e6e73; background: #fafafa; border-bottom: 1px solid #ececee; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.lit-status.is-error { color: #93523b; background: #fbf6f1; }
.lit-filters { padding: 10px 16px; display: flex; gap: 7px; flex-wrap: wrap; border-bottom: 1px solid #ececee; }
.lit-filters select { max-width: 215px; min-width: 90px; font-size: 11px; border: 1px solid #dedee0; border-radius: 7px; background: #fff; padding: 5px 7px; }
.lit-body { display: flex; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.lit-body > .record-list { padding: 0; flex: 1; min-width: 0; overflow: auto; }
.lit-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11px; }
.lit-table th { position: sticky; top: 0; background: #f8f8f9; color: #77777c; font-size: 10px; text-align: left; font-weight: 500; z-index: 1; }
.lit-table th,.lit-table td { padding: 11px 9px; vertical-align: top; border-bottom: 1px solid #ececee; overflow-wrap: anywhere; }
.lit-table th:first-child { width: 40%; padding-left: 16px; }
.lit-table th:nth-child(2) { width: 8%; }
.lit-table th:nth-child(3) { width: 18%; }
.lit-table th:nth-child(4) { width: 7%; }
.lit-table th:nth-child(5) { width: 12%; }
.lit-table th:nth-child(6) { width: 15%; }
.lit-table td:first-child { padding-left: 16px; }
.lit-table tr.selected td { background: #f0f0f2; }
.lit-table tr:hover td { background: #f7f7f8; }
.lit-title { text-align: left; border: 0; background: transparent; color: #232326; font: inherit; font-size: 12px; font-weight: 550; line-height: 1.55; padding: 0; cursor: pointer; }
.lit-table small { display: block; margin-top: 5px; color: #85858a; font-size: 10px; line-height: 1.45; }
.lit-badge,.lit-reading { display: inline-block; font-size: 10px; padding: 2px 5px; border-radius: 4px; background: #efeff1; color: #65656a; white-space: nowrap; }
.lit-reading.reading { background: #f3ecdc; color: #867043; }
.lit-reading.done { background: #e9efea; color: #4d6953; }
.lit-reader-meta { font-variant-numeric: tabular-nums; }
.lit-position-bar { display: block; width: 100%; max-width: 150px; height: 4px; margin-top: 7px; accent-color: #777b74; }
.lit-reader-progress { padding: 11px; margin: 12px 0; border: 1px solid #e2e2e4; border-radius: 8px; background: #f5f5f4; line-height: 1.65; }
.lit-reader-progress h4 { margin: 0 0 5px; font-size: 11px; font-weight: 550; }
.lit-reader-progress p { margin: 5px 0; }
.lit-reader-progress small { display: block; color: #85858a; font-size: 10px; }
.lit-empty { padding: 70px 20px; text-align: center; color: #77777b; font-size: 13px; }
.lit-empty small { display: block; margin-top: 10px; color: #a0a0a4; font-size: 11px; }
.lit-footer { padding: 8px 16px; border-top: 1px solid #ececee; color: #8a8a90; font-size: 10px; overflow-wrap: anywhere; flex: 0 0 auto; }
.literature-workspace.is-dragover { outline: 2px solid #555; outline-offset: -4px; background: #f2f2f3; }
.lit-detail { width: 310px; flex: 0 0 310px; padding: 14px; border-left: 1px solid #e6e6e8; background: #fcfcfc; overflow: auto; font-size: 11px; }
.lit-detail[hidden] { display: none; }
.lit-detail-heading { display: flex; justify-content: space-between; align-items: center; color: #8b8b90; }
.lit-detail h3 { font-size: 13px; line-height: 1.65; margin: 12px 0 5px; }
.lit-original { color: #85858b; line-height: 1.6; overflow-wrap: anywhere; }
.lit-detail dl { display: grid; gap: 4px; line-height: 1.55; }
.lit-detail dt { color: #97979c; margin-top: 9px; font-size: 10px; }
.lit-detail dd { margin: 0; overflow-wrap: anywhere; }
.lit-detail details { padding: 10px 0; border-block: 1px solid #e9e9eb; margin: 12px 0; }
.lit-detail summary { cursor: pointer; }
.lit-abstract { line-height: 1.7; white-space: pre-wrap; }
.lit-fields,.lit-import-item { display: grid; gap: 10px; }
.lit-fields label,.lit-import-item label { display: grid; gap: 5px; color: #66666c; font-size: 11px; }
.lit-fields input,.lit-fields textarea,.lit-fields select,.lit-import-item input,.lit-import-item select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; border: 1px solid #dcdce0; border-radius: 7px; padding: 7px 8px; background: white; color: #333; }
.lit-fields input:focus,.lit-fields textarea:focus,.lit-fields select:focus,.lit-import-item input:focus,.lit-import-item select:focus { outline: 1px solid #737379; outline-offset: 0; }
.lit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lit-write-fields { margin-top: 20px; padding-top: 15px; border-top: 1px solid #e5e5e8; }
.lit-write-fields small { color: #939399; line-height: 1.6; }
.lit-fields fieldset { border: 1px solid #e2e2e5; border-radius: 7px; max-height: 180px; overflow: auto; margin: 0; }
.lit-fields .lit-check { display: flex; flex-direction: row; align-items: flex-start; margin: 8px 0; line-height: 1.5; }
.lit-fields .lit-check input { width: auto; margin-top: 2px; accent-color: #333; }
.lit-dialog { width: min(560px, calc(100vw - 48px)); max-height: calc(100vh - 70px); padding: 0; border: 1px solid #d7d7da; border-radius: 16px; background: #fafafa; box-shadow: 0 16px 60px #0003; color: #333; }
.lit-dialog::backdrop { background: #0003; backdrop-filter: blur(2px); }
.lit-dialog > header { display: flex; justify-content: space-between; align-items: center; padding: 13px 18px; border-bottom: 1px solid #e3e3e5; }
.lit-dialog h2 { font-size: 14px; margin: 0; }
.lit-dialog-content { max-height: calc(100vh - 145px); overflow: auto; padding: 16px 18px; }
.lit-help { font-size: 11px; color: #838389; line-height: 1.7; margin: 0 0 10px; }
.lit-import-item { border: 1px solid #e0e0e4; background: white; border-radius: 10px; padding: 13px; margin: 12px 0; }
.lit-import-item strong { font-size: 12px; overflow-wrap: anywhere; }
.lit-import-item small { color: #999; font-size: 10px; }
#litImportStatus,.lit-dialog pre { white-space: pre-wrap; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.lit-job-list article { padding: 12px 0; border-bottom: 1px solid #e0e0e5; display: grid; gap: 6px; }
.lit-job-list strong { font-size: 12px; }
.lit-job-list small,.lit-job-list p { font-size: 10px; color: #888; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 1100px) {
  .lit-body:has(.lit-detail:not([hidden])) > .record-list { display: none; }
  .lit-body:has(.lit-detail:not([hidden])) > .lit-detail { width: 100%; flex-basis: 100%; border-left: 0; box-sizing: border-box; }
  .lit-filters select { max-width: 180px; }
}
