/* v67: Notes — personal/team Kanban board. */
.notes-tabs{flex:0 0 auto}
.notes-kanban{
  flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(260px,1fr));gap:14px;overflow:auto;padding:1px 2px 3px;
}
.notes-kanban-column{min-width:0;display:flex;flex-direction:column;min-height:0;padding:0 2px}
.notes-kanban-column-head{flex:0 0 auto;display:flex;align-items:center;min-height:34px;padding:0 4px 7px;border-bottom:1px solid rgba(82,87,120,.10)}
.notes-kanban-column-head h3{margin:0;color:#6a6d7b;font-size:12px;font-weight:720}
.notes-kanban-list{display:grid;align-content:start;gap:9px;min-height:0;padding:10px 1px 3px}
.note-card{
  overflow:hidden;border:1px solid rgba(82,87,120,.10);border-radius:14px;background:rgba(255,255,255,.78);
  box-shadow:0 4px 14px rgba(73,75,110,.045);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.note-card:hover{transform:translateY(-1px);border-color:rgba(110,95,231,.20);background:#fff;box-shadow:0 9px 24px rgba(76,71,128,.08)}
.note-card.pinned{box-shadow:0 6px 18px rgba(103,89,229,.07)}
.note-card-main{
  display:grid;gap:8px;width:100%;margin:0;padding:13px 14px 10px;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;box-shadow:none;cursor:pointer;
}
.note-card-main:hover,.note-card-main:focus-visible{background:transparent;transform:none;box-shadow:none;filter:none;outline:none}
.note-card-main:focus-visible{box-shadow:inset 0 0 0 2px rgba(103,89,229,.18)}
.note-card-main strong{overflow:hidden;color:#303341;font-size:13px;font-weight:760;text-overflow:ellipsis;white-space:nowrap}
.note-card-main p{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4;margin:0;color:#676a79;font-size:11px;line-height:1.48;white-space:pre-wrap}
.note-card-context,.note-card-author{display:flex;align-items:center;gap:6px;min-width:0;color:#8a8d9a;font-size:10px}
.note-card-context svg{flex:0 0 13px;width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.note-card footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:7px 9px 8px 14px;border-top:1px solid rgba(82,87,120,.07)}
.note-card footer>span:first-child{overflow:hidden;color:#9a9ca8;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.note-card-actions{display:flex;align-items:center;gap:2px}
.note-icon-button{
  display:grid;place-items:center;width:28px;height:28px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;color:#9294a1;box-shadow:none;
}
.note-icon-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.note-icon-button:hover,.note-icon-button:focus-visible{background:rgba(103,89,229,.08);color:#6255d3;transform:none;box-shadow:none;outline:none}
.note-icon-button.active{color:#6558df}
.note-icon-button.danger{background:transparent;color:#a07a80}
.note-icon-button.danger:hover,.note-icon-button.danger:focus-visible{background:rgba(169,81,96,.08);color:#a95160}
.notes-kanban-empty{margin:0;padding:28px 12px;color:#a0a2ae;font-size:11px;text-align:center}
.note-dialog{width:min(620px,calc(100% - 24px))}
.note-dialog form{display:grid;gap:11px}
.note-dialog textarea{min-height:210px;resize:vertical}
#noteDialogMeta{display:block;margin-top:3px;color:#999ca8;font-size:10px}
.note-pin-field{display:flex;align-items:center;gap:9px;width:max-content;cursor:pointer}
.note-pin-field input{width:16px;height:16px;margin:0;padding:0;accent-color:#6e5fe7}
.note-dialog-actions{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px}
.note-dialog-actions>span{min-width:0}

html[data-theme="dark"] .notes-kanban-column-head{border-bottom-color:rgba(176,145,255,.10)}
html[data-theme="dark"] .notes-kanban-column-head h3{color:#9691a5}
html[data-theme="dark"] .note-card{border-color:rgba(176,145,255,.10);background:rgba(14,13,38,.72);box-shadow:0 5px 16px rgba(0,0,18,.20)}
html[data-theme="dark"] .note-card:hover{border-color:rgba(176,145,255,.19);background:rgba(18,16,47,.88);box-shadow:0 10px 25px rgba(0,0,18,.28)}
html[data-theme="dark"] .note-card-main strong{color:#ebe7f3}
html[data-theme="dark"] .note-card-main p{color:#a29dac}
html[data-theme="dark"] .note-card-context,html[data-theme="dark"] .note-card-author{color:#858092}
html[data-theme="dark"] .note-card footer{border-top-color:rgba(176,145,255,.07)}
html[data-theme="dark"] .note-card footer>span:first-child{color:#777284}
html[data-theme="dark"] .note-icon-button{color:#817c90}
html[data-theme="dark"] .note-icon-button:hover,html[data-theme="dark"] .note-icon-button:focus-visible{background:rgba(176,145,255,.09);color:#b996ff}
html[data-theme="dark"] .note-icon-button.active{color:#b996ff}
html[data-theme="dark"] .note-icon-button.danger{color:#9b727d}
html[data-theme="dark"] .note-icon-button.danger:hover,html[data-theme="dark"] .note-icon-button.danger:focus-visible{background:rgba(193,91,112,.10);color:#cf8091}
html[data-theme="dark"] .notes-kanban-empty{color:#777284}
html[data-theme="dark"] #noteDialogMeta{color:#817c90}

@media(max-width:760px){
  .notes-kanban{grid-template-columns:1fr;gap:18px;overflow:auto}
  .notes-kanban-column{min-height:auto}
  .notes-kanban-list{overflow:visible}
  .note-dialog textarea{min-height:180px}
}
@media(max-width:560px){
  #notes .section-head{align-items:flex-start}
  #notes .section-head-actions{max-width:72%}
  .notes-kanban{padding-bottom:10px}
  .note-dialog-actions{grid-template-columns:1fr 1fr}
  .note-dialog-actions>span{display:none}
  #noteDeleteFromDialog{grid-column:1/-1;justify-self:start}
}

/* v68: Notes dark-theme actions stay neutral until hover. */
html[data-theme="dark"] #notes #addNote{
  background:#171437;
  color:#d8d4e4;
  box-shadow:none;
}
html[data-theme="dark"] #notes #addNote:hover,
html[data-theme="dark"] #notes #addNote:focus-visible{
  background:linear-gradient(135deg,#7449df,#8d5aed);
  color:#fff;
  box-shadow:0 9px 25px rgba(111,55,225,.27);
}
html[data-theme="dark"] .note-icon-button.active{
  background:#171437;
  color:#9a95a8;
}
html[data-theme="dark"] .note-icon-button.active:hover,
html[data-theme="dark"] .note-icon-button.active:focus-visible{
  background:linear-gradient(135deg,#7449df,#8d5aed);
  color:#fff;
  box-shadow:none;
}
html[data-theme="dark"] .note-pin-field input{accent-color:#312c4f}
html[data-theme="dark"] .note-pin-field:hover input,
html[data-theme="dark"] .note-pin-field:focus-within input{accent-color:#8b5cf6}

/* v69: Notes dark-theme card/pin hover stays neutral in both personal and team views. */
html[data-theme="dark"] .note-card:hover{
  border-color:rgba(255,255,255,.12);
  background:rgba(18,18,28,.88);
}
html[data-theme="dark"] .note-icon-button:not(.danger):hover,
html[data-theme="dark"] .note-icon-button:not(.danger):focus-visible{
  background:rgba(255,255,255,.06);
  color:#cbc7d3;
  box-shadow:none;
}
html[data-theme="dark"] .note-icon-button.active,
html[data-theme="dark"] .note-icon-button.active:hover,
html[data-theme="dark"] .note-icon-button.active:focus-visible{
  background:#171720;
  color:#b2aeba;
  box-shadow:none;
}
html[data-theme="dark"] .note-pin-field input,
html[data-theme="dark"] .note-pin-field:hover input,
html[data-theme="dark"] .note-pin-field:focus-within input{
  accent-color:#5f5b69;
}


/* v70: Notes dark theme uses neutral interaction colors; no purple on cards or pin controls. */
html[data-theme="dark"] #notes .note-card,
html[data-theme="dark"] #notes .note-card.pinned{
  border-color:rgba(255,255,255,.09);
  box-shadow:0 5px 16px rgba(0,0,18,.20);
}
html[data-theme="dark"] #notes .note-card:hover,
html[data-theme="dark"] #notes .note-card.pinned:hover{
  border-color:rgba(255,255,255,.14);
  background:rgba(18,18,28,.88);
  box-shadow:0 10px 25px rgba(0,0,18,.28);
}
html[data-theme="dark"] #notes .note-card-main:focus-visible{
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.13);
}
html[data-theme="dark"] #notes .note-icon-button:not(.danger),
html[data-theme="dark"] #notes .note-icon-button:not(.danger).active,
html[data-theme="dark"] #notes .note-icon-button:not(.danger):hover,
html[data-theme="dark"] #notes .note-icon-button:not(.danger):focus-visible,
html[data-theme="dark"] #notes .note-icon-button:not(.danger).active:hover,
html[data-theme="dark"] #notes .note-icon-button:not(.danger).active:focus-visible{
  background:transparent;
  color:#aaa6b1;
  box-shadow:none;
  filter:none;
}
html[data-theme="dark"] #notes .note-icon-button:not(.danger):hover,
html[data-theme="dark"] #notes .note-icon-button:not(.danger):focus-visible{
  background:rgba(255,255,255,.06);
  color:#d0ccd6;
}
html[data-theme="dark"] #noteDialog .note-pin-field input,
html[data-theme="dark"] #noteDialog .note-pin-field:hover input,
html[data-theme="dark"] #noteDialog .note-pin-field:focus-within input{
  accent-color:#77737f;
}

/* v71: Notes dark-theme cards use a neutral base surface. */
html[data-theme="dark"] #notes .note-card,
html[data-theme="dark"] #notes .note-card.pinned{
  background:rgba(18,18,28,.82);
  border-color:rgba(255,255,255,.09);
}
html[data-theme="dark"] #notes .note-card:hover,
html[data-theme="dark"] #notes .note-card.pinned:hover{
  background:rgba(23,23,34,.92);
  border-color:rgba(255,255,255,.14);
}
html[data-theme="dark"] #notes .note-card footer{
  border-top-color:rgba(255,255,255,.07);
}

/* v72: Prevent the global dark-theme button gradient from coloring note card content. */
html[data-theme="dark"] #notes .note-card,
html[data-theme="dark"] #notes .note-card.pinned,
html[data-theme="dark"] #notes .note-card:hover,
html[data-theme="dark"] #notes .note-card.pinned:hover{
  background:rgba(23,23,34,.92);
  border-color:rgba(255,255,255,.14);
}
html[data-theme="dark"] #notes .note-card-main,
html[data-theme="dark"] #notes .note-card-main:hover,
html[data-theme="dark"] #notes .note-card-main:focus,
html[data-theme="dark"] #notes .note-card-main:focus-visible,
html[data-theme="dark"] #notes .note-card-main:active{
  background:transparent!important;
  background-image:none!important;
  box-shadow:none;
  filter:none;
}
html[data-theme="dark"] #notes .note-card-main:focus-visible{
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.13);
}


/* v73: Note background colors and compact color picker. */
#notes .note-card{--note-main-bg:transparent}
#notes .note-card[data-note-color="red"]{--note-main-bg:#f9dddd}
#notes .note-card[data-note-color="orange"]{--note-main-bg:#fde9d2}
#notes .note-card[data-note-color="yellow"]{--note-main-bg:#fff4c7}
#notes .note-card[data-note-color="green"]{--note-main-bg:#dff2e4}
#notes .note-card[data-note-color="blue"]{--note-main-bg:#dfeff8}
#notes .note-card-main,
#notes .note-card-main:hover,
#notes .note-card-main:focus,
#notes .note-card-main:focus-visible,
#notes .note-card-main:active{
  background:var(--note-main-bg)!important;
  background-image:none!important;
}
html[data-theme="dark"] #notes .note-card{--note-main-bg:transparent}
html[data-theme="dark"] #notes .note-card[data-note-color="red"]{--note-main-bg:#4a242a}
html[data-theme="dark"] #notes .note-card[data-note-color="orange"]{--note-main-bg:#4a3322}
html[data-theme="dark"] #notes .note-card[data-note-color="yellow"]{--note-main-bg:#443d20}
html[data-theme="dark"] #notes .note-card[data-note-color="green"]{--note-main-bg:#233d2d}
html[data-theme="dark"] #notes .note-card[data-note-color="blue"]{--note-main-bg:#22394a}
html[data-theme="dark"] #notes .note-card-main,
html[data-theme="dark"] #notes .note-card-main:hover,
html[data-theme="dark"] #notes .note-card-main:focus,
html[data-theme="dark"] #notes .note-card-main:focus-visible,
html[data-theme="dark"] #notes .note-card-main:active{
  background:var(--note-main-bg)!important;
  background-image:none!important;
}
html[data-theme="dark"] #notes .note-card[data-note-color]:not([data-note-color="none"]) .note-card-main strong{color:#f2eef6}
html[data-theme="dark"] #notes .note-card[data-note-color]:not([data-note-color="none"]) .note-card-main p{color:#cbc4d0}
.note-color-button svg{width:16px;height:16px}
.note-color-picker{
  position:fixed;z-index:2200;display:flex;align-items:center;gap:8px;padding:9px;border:1px solid rgba(78,82,112,.13);border-radius:13px;background:rgba(255,255,255,.98);box-shadow:0 12px 34px rgba(46,48,76,.18);backdrop-filter:blur(12px)
}
.note-color-swatch{
  position:relative;width:24px;height:24px;min-width:24px;padding:0;border:1px solid rgba(60,64,90,.14);border-radius:50%;box-shadow:none;transform:none
}
.note-color-swatch:hover,.note-color-swatch:focus-visible{transform:scale(1.08);box-shadow:0 0 0 2px rgba(87,91,120,.12);outline:none}
.note-color-swatch.active{box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(80,83,108,.45)}
.note-color-swatch[data-note-color="none"]{background:transparent}
.note-color-swatch[data-note-color="none"]::after{content:"";position:absolute;left:4px;right:4px;top:11px;height:1.5px;background:#9b9daa;transform:rotate(-45deg);transform-origin:center}
.note-color-swatch[data-note-color="red"]{background:#e26767}
.note-color-swatch[data-note-color="orange"]{background:#e99545}
.note-color-swatch[data-note-color="yellow"]{background:#e5c64b}
.note-color-swatch[data-note-color="green"]{background:#66aa78}
.note-color-swatch[data-note-color="blue"]{background:#5ca7d4}
html[data-theme="dark"] .note-color-picker{border-color:rgba(255,255,255,.10);background:rgba(24,24,34,.98);box-shadow:0 14px 36px rgba(0,0,0,.36)}
html[data-theme="dark"] .note-color-swatch{border-color:rgba(255,255,255,.14);box-shadow:none}
html[data-theme="dark"] .note-color-swatch:hover,html[data-theme="dark"] .note-color-swatch:focus-visible{box-shadow:0 0 0 2px rgba(255,255,255,.10)}
html[data-theme="dark"] .note-color-swatch.active{box-shadow:0 0 0 2px #181822,0 0 0 4px rgba(255,255,255,.42)}
html[data-theme="dark"] .note-color-swatch[data-note-color="none"]::after{background:#aaa6b1}

/* v74: Notes visual Markdown editor with selection-only formatting toolbar. */
.note-rich-field{position:relative;display:grid;gap:6px;min-width:0}
.note-rich-field>span{color:#6d7080;font-size:12px;font-weight:400}
.note-rich-editor{
  min-height:210px;max-height:46vh;overflow:auto;width:100%;padding:11px 12px;border:1px solid rgba(79,84,117,.16);border-radius:10px;
  background:rgba(255,255,255,.92);color:#303341;font:inherit;line-height:1.5;white-space:pre-wrap;word-break:break-word;outline:none;
}
.note-rich-editor:focus{border-color:rgba(101,88,220,.36);box-shadow:0 0 0 3px rgba(101,88,220,.08)}
.note-rich-editor:empty::before{content:attr(data-placeholder);color:#a0a2ad;pointer-events:none}
.note-rich-editor strong,.note-card-main p strong{font-weight:760}
.note-rich-editor em,.note-card-main p em{font-style:italic}
.note-rich-editor del,.note-card-main p del{text-decoration:line-through}
.note-rich-editor u,.note-card-main p u,.knowledge-article u{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.note-rich-editor code,.note-card-main p code{
  padding:.08em .34em;border-radius:5px;background:rgba(78,82,112,.08);font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:.92em
}
.note-rich-editor a,.note-inline-link{color:#6255d3;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.note-format-toolbar{
  position:absolute;z-index:2600;display:flex;align-items:center;gap:2px;padding:4px;border:1px solid rgba(76,80,108,.14);border-radius:10px;
  background:rgba(255,255,255,.98);box-shadow:0 9px 28px rgba(45,48,75,.18);backdrop-filter:blur(12px)
}
.note-format-toolbar[hidden]{display:none!important}
.note-format-toolbar button,
.note-format-toolbar button:hover,
.note-format-toolbar button:focus-visible,
.note-format-toolbar button:active{
  display:grid;place-items:center;width:30px;height:28px;min-width:30px;margin:0;padding:0;border:0;border-radius:7px;background:transparent!important;background-image:none!important;
  color:#606371;box-shadow:none!important;filter:none!important;transform:none!important;font:600 12px/1 ui-sans-serif,system-ui,sans-serif;outline:none
}
.note-format-toolbar button:hover,.note-format-toolbar button:focus-visible{background:rgba(75,79,107,.08)!important;color:#2f3240}
.note-format-toolbar button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.note-format-toolbar button strong{font-size:14px}.note-format-toolbar button em{font-size:14px}.note-format-toolbar button u{font-size:14px;text-underline-offset:2px}.note-format-toolbar button s{font-size:14px}
html[data-theme="dark"] .note-rich-field>span{color:#aaa6ba}
html[data-theme="dark"] .note-rich-editor{
  border-color:rgba(255,255,255,.10);background:rgba(18,18,28,.94);color:#e7e2ef;box-shadow:none
}
html[data-theme="dark"] .note-rich-editor:focus{border-color:rgba(255,255,255,.18);box-shadow:0 0 0 3px rgba(255,255,255,.04)}
html[data-theme="dark"] .note-rich-editor:empty::before{color:#777284}
html[data-theme="dark"] .note-rich-editor code,
html[data-theme="dark"] .note-card-main p code{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .note-rich-editor a,
html[data-theme="dark"] .note-inline-link{color:#bcb7c8}
html[data-theme="dark"] .note-format-toolbar{border-color:rgba(255,255,255,.10);background:rgba(24,24,34,.98);box-shadow:0 11px 30px rgba(0,0,0,.34)}
html[data-theme="dark"] #noteDialog .note-format-toolbar button,
html[data-theme="dark"] #noteDialog .note-format-toolbar button:hover,
html[data-theme="dark"] #noteDialog .note-format-toolbar button:focus-visible,
html[data-theme="dark"] #noteDialog .note-format-toolbar button:active{
  background:transparent!important;background-image:none!important;color:#aaa6b1;box-shadow:none!important;filter:none!important
}
html[data-theme="dark"] #noteDialog .note-format-toolbar button:hover,
html[data-theme="dark"] #noteDialog .note-format-toolbar button:focus-visible{background:rgba(255,255,255,.07)!important;color:#e3dfe8}
@media(max-width:760px){.note-rich-editor{min-height:180px;max-height:42vh}.note-format-toolbar{gap:1px;padding:4px 3px}.note-format-toolbar button{width:29px;min-width:29px}}

.note-card-author .note-team-edit-icon{flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.note-team-edit-field[hidden]{display:none}
.note-team-edit-field input:disabled,.note-team-edit-field input:disabled+span{cursor:default;opacity:.6}


/* v78: Realtime note presence and single-editor state. */
.note-realtime-status{display:inline-flex;align-items:center;gap:6px;margin-top:3px;color:#777a88;font-size:11px;font-weight:500;line-height:1.2}
.note-realtime-status[hidden]{display:none!important}
.note-realtime-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#9ca0ad;box-shadow:none}
.note-realtime-status[data-state="editing"]::before{background:#5d9c70}
.note-realtime-status[data-state="busy"]::before{background:#b58a55}
.note-realtime-status[data-state="watching"]::before{background:#7f8491}
#noteDialog .note-rich-editor[contenteditable="false"]{cursor:default;user-select:text}
#noteDialog input[readonly]{cursor:default}
html[data-theme="dark"] .note-realtime-status{color:#9f9baa}
html[data-theme="dark"] .note-realtime-status[data-state="editing"]::before{background:#6fa982}
html[data-theme="dark"] .note-realtime-status[data-state="busy"]::before{background:#b99667}

/* v79: Knowledge base — searchable, flat material list with underline categories. */
.knowledge-tabs{flex:0 0 auto}
.knowledge-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 2px}
.knowledge-row,
.knowledge-row:hover,
.knowledge-row:focus-visible,
.knowledge-row:active{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;gap:14px;width:100%;min-height:72px;margin:0;padding:13px 8px;border:0;border-bottom:1px solid rgba(81,84,112,.11);border-radius:0;background:transparent;color:#2c2f3c;text-align:left;box-shadow:none;filter:none;transform:none;outline:none}
.knowledge-row{cursor:pointer;transition:background-color .16s ease,border-color .16s ease}
.knowledge-row:hover,.knowledge-row:focus-visible{background:rgba(102,91,210,.045);border-bottom-color:rgba(102,91,210,.15)}
.knowledge-row-copy{display:grid;min-width:0;gap:4px}
.knowledge-row strong{overflow:hidden;color:#2b2e3b;font-size:14px;font-weight:720;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.knowledge-row small{overflow:hidden;color:#858897;font-size:11px;font-weight:500;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}
.knowledge-row-arrow{width:17px;height:17px;justify-self:end;fill:none;stroke:#a0a2ad;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease,stroke .16s ease}
.knowledge-row:hover .knowledge-row-arrow,.knowledge-row:focus-visible .knowledge-row-arrow{stroke:#6e5fe7;transform:translateX(2px)}
.knowledge-empty{display:grid;place-items:center;min-height:170px;margin:0;padding:28px;border:0;color:#8b8e9d;font-size:12px;text-align:center}
.knowledge-empty-error{color:#a14e59}
.knowledge-dialog{width:min(880px,calc(100% - 24px));padding:0!important;overflow:hidden!important}
.knowledge-dialog[open]{display:flex;flex-direction:column}
.knowledge-dialog-head{flex:0 0 auto;position:relative!important;top:auto!important;z-index:2;margin:0!important;padding:18px 20px 14px;background:rgba(255,255,255,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.knowledge-dialog-head>div{min-width:0;padding-right:12px}
.knowledge-dialog-head h2{margin:0;color:#292c39;font-size:21px;line-height:1.25;overflow-wrap:anywhere}
.knowledge-dialog-head>button{align-self:flex-start;flex:0 0 auto}
.knowledge-article{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px 28px;color:#393c49;font-size:13px;line-height:1.62;scrollbar-gutter:stable}
.knowledge-article h3{margin:24px 0 9px;color:#282b38;font-size:15px;font-weight:760;line-height:1.35}
.knowledge-article h3:first-child{margin-top:2px}
.knowledge-article p{margin:0 0 9px;color:#4e5160;font-size:13px;line-height:1.62}
.knowledge-article code{white-space:pre-wrap}
.knowledge-article ul,.knowledge-article ol{margin:4px 0 14px;padding-left:23px;color:#4e5160}
.knowledge-article li{margin:5px 0;padding-left:2px}
.knowledge-article hr{height:1px;margin:20px 0;border:0;background:rgba(81,84,112,.12)}
.knowledge-plain-link{overflow-wrap:anywhere;color:#7167c9!important}
.knowledge-inline-table{display:grid;margin:12px 0 18px;border-top:1px solid rgba(81,84,112,.12);border-bottom:1px solid rgba(81,84,112,.12)}
.knowledge-inline-table-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid rgba(81,84,112,.08)}
.knowledge-inline-table-row:last-child{border-bottom:0}
.knowledge-inline-table-row span{min-width:0;padding:8px 10px;color:#525563;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.knowledge-inline-table-row span+span{border-left:1px solid rgba(81,84,112,.08)}
.knowledge-inline-table-head span{color:#343744;font-weight:700;background:rgba(245,245,249,.7)}
html[data-theme="dark"] .knowledge-row,
html[data-theme="dark"] .knowledge-row:hover,
html[data-theme="dark"] .knowledge-row:focus-visible,
html[data-theme="dark"] .knowledge-row:active{border-bottom-color:rgba(176,145,255,.09);background:transparent;color:#e6e1ee}
html[data-theme="dark"] .knowledge-row:hover,html[data-theme="dark"] .knowledge-row:focus-visible{background:rgba(139,92,246,.055);border-bottom-color:rgba(176,145,255,.16)}
html[data-theme="dark"] .knowledge-row strong{color:#e8e4ef}
html[data-theme="dark"] .knowledge-row small{color:#9691a2}
html[data-theme="dark"] .knowledge-row-arrow{stroke:#706b7d}
html[data-theme="dark"] .knowledge-row:hover .knowledge-row-arrow,html[data-theme="dark"] .knowledge-row:focus-visible .knowledge-row-arrow{stroke:#bb9aff}
html[data-theme="dark"] .knowledge-empty{color:#8d889a}
html[data-theme="dark"] .knowledge-empty-error{color:#d78b94}
html[data-theme="dark"] .knowledge-dialog-head{background:rgba(14,13,39,.96);border-bottom-color:rgba(176,145,255,.09)}
html[data-theme="dark"] .knowledge-dialog-head h2{color:#ece8f3}
html[data-theme="dark"] .knowledge-article{color:#cbc6d2;background:#0d0c27}
html[data-theme="dark"] .knowledge-article h3{color:#ebe6f2}
html[data-theme="dark"] .knowledge-article p,html[data-theme="dark"] .knowledge-article ul,html[data-theme="dark"] .knowledge-article ol{color:#c2bdca}
html[data-theme="dark"] .knowledge-article hr{background:rgba(176,145,255,.11)}
html[data-theme="dark"] .knowledge-plain-link{color:#b59aff!important}
html[data-theme="dark"] .knowledge-inline-table{border-color:rgba(176,145,255,.12)}
html[data-theme="dark"] .knowledge-inline-table-row{border-bottom-color:rgba(176,145,255,.08)}
html[data-theme="dark"] .knowledge-inline-table-row span{color:#c3becb}
html[data-theme="dark"] .knowledge-inline-table-row span+span{border-left-color:rgba(176,145,255,.08)}
html[data-theme="dark"] .knowledge-inline-table-head span{color:#e4dfee;background:rgba(139,92,246,.06)}
@media(max-width:760px){
  .knowledge-list{padding:0}
  .knowledge-row,.knowledge-row:hover,.knowledge-row:focus-visible,.knowledge-row:active{grid-template-columns:minmax(0,1fr) 20px;min-height:66px;gap:8px;padding:11px 3px}
  .knowledge-row strong{font-size:12px}.knowledge-row small{font-size:10px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .knowledge-row-arrow{width:15px;height:15px}
  .knowledge-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px)}
  .knowledge-dialog-head{padding:14px 14px 11px}
  .knowledge-dialog-head h2{font-size:17px}
  .knowledge-article{padding:14px 14px 24px;font-size:12px;line-height:1.58}
  .knowledge-article h3{margin:20px 0 7px;font-size:14px}.knowledge-article p{font-size:12px;line-height:1.58}
  .knowledge-article ul,.knowledge-article ol{padding-left:21px}
  .knowledge-inline-table{overflow-x:auto}.knowledge-inline-table-row{min-width:420px}.knowledge-inline-table-row span{font-size:11px;padding:7px 8px}
}

/* Knowledge base editing */
.knowledge-read-actions{flex:0 0 auto;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:8px;margin:0;padding:12px 22px 18px;border-top:1px solid rgba(81,84,112,.10)}
.knowledge-read-actions[hidden]{display:none!important}
.knowledge-read-actions>span{min-width:0}
html[data-theme="dark"] .knowledge-read-actions{border-top-color:rgba(176,145,255,.09);background:#0d0c27}
.knowledge-editor-form{flex:1 1 auto;min-height:0;display:grid;gap:14px;overflow:auto;overscroll-behavior:contain;padding:18px 22px 24px;scrollbar-gutter:stable}
.knowledge-editor-form[hidden]{display:none!important}
.knowledge-editor-form .knowledge-rich-editor{min-height:300px;max-height:none}
.knowledge-editor-actions{margin-top:2px}
.knowledge-editor-actions>span{flex:1}
#knowledgeDialog .note-rich-editor[contenteditable="false"]{cursor:default;user-select:text}
html[data-theme="dark"] .knowledge-editor-form{background:#0d0c27}
@media(max-width:760px){
  .knowledge-read-actions{grid-template-columns:1fr 1fr;padding:10px 14px 14px}
  .knowledge-read-actions>span{display:none}
  .knowledge-read-actions button{width:100%}
  .knowledge-editor-form{padding:13px 14px 18px;gap:12px}
  .knowledge-editor-form .knowledge-rich-editor{min-height:44vh;max-height:none}
}

/* Candidate edit ownership status. */
.candidate-edit-status{display:inline-flex;align-items:center;gap:6px;margin-top:3px;color:#777a88;font-size:11px;font-weight:500;line-height:1.2}
.candidate-edit-status[hidden]{display:none!important}
.candidate-edit-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#9ca0ad}
.candidate-edit-status[data-state="editing"]::before{background:#5d9c70}
.candidate-edit-status[data-state="busy"]::before{background:#b58a55}
html[data-theme="dark"] .candidate-edit-status{color:#9f9baa}
html[data-theme="dark"] .candidate-edit-status[data-state="editing"]::before{background:#6fa982}
html[data-theme="dark"] .candidate-edit-status[data-state="busy"]::before{background:#b99667}

