/* Toolbar, category groups, Favorites and reader reuse Knowledge Library styles.css. */
#team-resources-view{--tr-border:var(--appearance-line,var(--line,#dce3e7));--tr-surface:var(--appearance-surface,#fff);--tr-ink:var(--appearance-ink,var(--ink,#243340));color:var(--tr-ink)}
#team-resources-view .tr-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#team-resources-view .tr-row{flex-direction:column;align-items:stretch;gap:6px;overflow-wrap:anywhere}
#team-resources-view .tr-row span,#team-resources-view .tr-row small{color:var(--muted);font-size:13px;font-weight:400;white-space:normal}
#team-resources-view .tr-url{font-size:12px;overflow-wrap:anywhere}
#team-resources-view .tr-status{min-height:1.5em;overflow-wrap:anywhere}
#team-resources-view>.tr-status:empty{display:none}
#team-resources-view .tr-editor:empty{display:none}
#team-resources-view .tr-editor-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
#team-resources-view .tr-editor-head button{flex:none}
#team-resources-view .tr-fields{display:grid;gap:16px;margin:20px 0}
#team-resources-view .tr-fields>label{display:grid;gap:7px}
#team-resources-view .tr-fields input,#team-resources-view .tr-fields textarea,#team-resources-view .tr-fields select{width:100%;box-sizing:border-box;min-height:46px;padding:10px 12px;border:1px solid var(--tr-border);border-radius:12px;background:var(--tr-surface);color:var(--tr-ink);font:inherit}
#team-resources-view button:focus-visible,#team-resources-view a:focus-visible{outline:3px solid #487ed4;outline-offset:3px}
#team-resources-view .tr-dialog{box-sizing:border-box;width:min(640px,var(--tr-dialog-width,90vw));max-width:var(--tr-dialog-width,90vw);max-height:var(--tr-dialog-height,85vh);padding:0;border:1px solid var(--tr-border);border-radius:18px;background:var(--appearance-surface,#fff);color:var(--tr-ink);box-shadow:0 20px 70px #0005;overflow:hidden}
#team-resources-view .tr-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}#team-resources-view .tr-dialog::backdrop{background:#14223588}
#team-resources-view .tr-dialog>.tr-editor-head{min-width:0;flex-wrap:wrap;padding:20px;border-bottom:1px solid var(--tr-border)}#team-resources-view .tr-dialog>.tr-editor-head h2{min-width:0;flex:1;overflow-wrap:anywhere;margin:0;font-size:22px}
#team-resources-view .tr-dialog>.tr-fields{min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;align-content:start;padding:20px;margin:0}
#team-resources-view .tr-editor-footer{flex:none;position:sticky;bottom:0;padding:16px 20px;border-top:1px solid var(--tr-border);background:var(--appearance-surface,#fff);display:flex;align-items:center;gap:12px;flex-wrap:wrap}#team-resources-view .tr-editor-footer .tr-status{margin:0;flex:1 1 150px;min-width:0}

#team-resources-view .tr-editor-footer button.primary{background:var(--blue,#355777);color:#fff;border-color:var(--blue,#355777)}

/* Keep metadata lookup visibly distinct from the editable fields. */
#team-resources-view .tr-fields>.tr-fetch-title{justify-self:start;width:auto;max-width:100%;background:var(--blue,#165bdd);border-color:var(--blue,#165bdd);color:#fff;font-weight:600}

#team-resources-view .tr-character-count{font-size:12px;color:var(--muted);font-weight:400}
#team-resources-view .tr-character-count-over{color:var(--danger,#b42318)}
