.local-literature-panel { flex: 0 0 auto; margin: 4px 0; border: 1px solid #858585; background: #fff; font-size: 13px; }
.local-literature-panel > summary { cursor: pointer; padding: 8px 10px; font-weight: bold; background: #eee; }
.local-literature-panel > summary span { color: #555; font-size: 12px; font-weight: normal; margin-left: 5px; }
.local-literature-panel[open] { max-height: min(55vh, 580px); overflow-y: auto; padding: 0 9px 9px; }
.local-literature-panel[open] > summary { margin: 0 -9px 8px; }
.local-literature-panel p { line-height: 1.45; overflow-wrap: anywhere; }
.local-literature-panel h4 { margin: 0; overflow-wrap: anywhere; }
.local-literature-panel label { display: block; margin: 6px 0; }
.local-literature-panel label input[type=text] { display: block; width: 100%; }
.local-literature-panel textarea { display: block; width: 100%; min-height: 100px; max-height: 200px; }
.local-literature-panel button { margin: 4px 4px 4px 0; }
.local-literature-panel input[type=file] { max-width: 100%; }
.lit-intro { margin: 5px 0 8px; color: #444; }
.lit-source { margin: 7px 0; border: 1px solid #aaa; background: #f7f7f4; }
.lit-source > summary { cursor: pointer; padding: 7px 9px; font-weight: bold; }
.lit-source-content { padding: 0 9px 9px; }
.lit-source-secondary { margin-top: 10px; background: #fff; }
.lit-source-secondary > summary { font-weight: normal; color: #555; }
.lit-cloud-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lit-badge { color: #555; font-size: 12px; }
.lit-hint { margin: 5px 0; color: #555; font-size: 12px; }
.lit-status { min-height: 1em; margin: 5px 0; color: #333; }
.lit-actions { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lit-search { display: flex; gap: 5px; align-items: center; margin-top: 7px; }
.lit-search[hidden] { display: none; }
.lit-search input { flex: 1; min-width: 0; }
.lit-cloud-list { max-height: 190px; overflow-y: auto; }
.local-literature-panel .lit-cloud-row { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 0; border: 0; border-top: 1px solid #ddd; }
.lit-cloud-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lit-cloud-row button { flex: none; }
.lit-file-picker { display: block; margin: 8px 0; }
.lit-selected > section { margin: 8px 0; padding: 8px; border: 1px solid #aaa; background: #fafafa; }
.lit-selected > section p { margin: 5px 0; }
.lit-privacy { margin: 8px 0; color: #444; }
.lit-privacy > summary { cursor: pointer; }
.local-literature-panel .lit-consent { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 2px; }
.local-literature-panel .lit-consent input[type=checkbox] { display: inline-block; flex: none; width: 14px; min-width: 14px; height: 14px; min-height: 14px; margin: 2px 0 0; padding: 0; }

