/* 자료실만 다룬다. 글꼴·색은 앱/계정 설정을 그대로 따른다. */
#info-pane-keep .library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
#info-pane-keep .library-toolbar h2{font-size:18px;margin:0}
#info-pane-keep .library-toolbar p{font-size:13px;color:var(--muted);margin:4px 0 0}
#info-pane-keep #keep-add{flex:0 0 44px;width:44px;min-width:44px;height:44px}
#info-pane-keep #keep-add::after{inset:0}
.library-tools{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:8px;margin-bottom:8px}
.library-tools input,.library-tools select{width:100%;min-width:0;font-size:14px}
.library-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:13px;color:var(--muted)}
#keep-list{border:1px solid var(--grid);border-radius:12px;background:var(--surface-1);overflow:hidden}
#keep-list .keep-row{display:grid;grid-template-columns:minmax(0,1fr) 16px;gap:12px;width:100%;padding:16px;text-align:left;border:0;border-bottom:1px solid var(--grid);border-radius:0;background:transparent;font:inherit;color:var(--text-primary);margin:0;box-shadow:none;min-width:0}
#keep-list .keep-row:last-child{border-bottom:0}
#keep-list .kc{display:flex;flex-direction:column;min-width:0;gap:5px}
#keep-list .kt{font-size:15px;font-weight:650;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
#keep-list .km,#keep-list .kb{font-size:12px;color:var(--muted);line-height:1.5}
#keep-list .kb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.keep-chevron{align-self:center;font-size:23px;color:var(--muted)}
#keep-dlg,#keep-view-dlg{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px}
#keep-dlg h3,#keep-view-dlg h3{font-size:18px;line-height:1.5;overflow-wrap:anywhere;margin:0 0 12px}
#keep-dlg .field{margin-bottom:14px}
#keep-dlg input,#keep-dlg textarea,#keep-dlg select{box-sizing:border-box;width:100%;min-width:0;font-size:16px}
#keep-dlg label{font-size:13px}
.library-upload-note{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0}
.library-selected{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--grid);padding:10px 0}
.library-selected>span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px}
.library-selected small{display:block;color:var(--muted);margin-top:3px}
.library-selected button{flex-shrink:0}
.library-file{border:1px solid var(--grid);border-radius:10px;padding:14px;margin-top:10px}
.library-file-heading{display:flex;gap:10px;align-items:flex-start;min-width:0}
.library-file-heading>div{min-width:0;flex:1}
.library-file-heading strong{font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;display:block}
.library-file-heading .sub{font-size:12px;display:block;margin-top:4px}
.library-file-kind{flex-shrink:0;border:1px solid var(--grid);border-radius:6px;padding:6px;font-size:11px;color:var(--muted)}
.library-file-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.library-file-actions button,.library-action{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;font-family:inherit;font-size:13px;line-height:1.5;border:1px solid var(--grid);border-radius:8px;box-sizing:border-box;text-decoration:none;color:var(--text-primary);background:var(--surface-1)}
.library-file-actions .primary{background:var(--accent);color:#fff;border-color:var(--accent)}
.library-file .msg{margin:8px 0 0;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
#keep-f-msg{white-space:pre-line;font-size:13px}
#kv-body{font-size:14px;line-height:1.7}
#kv-offline-state{font-size:12px;line-height:1.6}

/* popover는 열린 첨부창 위에도 보인다. 폰 OS 알림과 별도로 상태를 놓치지 않게 한다. */
#library-download-status{position:fixed;inset:auto;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);margin:0;box-sizing:border-box;width:min(440px,calc(100vw - 24px));padding:14px;display:flex;gap:12px;background:var(--surface-1,#fff);color:var(--text-primary,#172738);border:1px solid var(--grid,#d5dce3);border-radius:12px;box-shadow:0 4px 24px #142b4630;z-index:10000;font-family:inherit}
#library-download-status[hidden]{display:none}
#library-download-status .library-download-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
#library-download-status strong{font-size:14px;line-height:1.4;font-weight:650}
#library-download-status .library-download-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#library-download-status small{font-size:12px;line-height:1.5;color:var(--muted,#566274);overflow-wrap:anywhere}
#library-download-status progress{width:100%;height:7px;accent-color:var(--accent,#3679d4)}
#library-download-status .library-download-buttons{display:flex;flex-direction:column;justify-content:center;gap:6px}
#library-download-status button{font-family:inherit;font-size:13px;line-height:1.4;min-width:52px;min-height:40px;padding:6px 10px;border-radius:8px;background:var(--surface-1,#fff);border:1px solid var(--grid,#d5dce3);color:var(--accent,#3679d4);white-space:nowrap}
