/* Documents vault (27 Oct 2026). Same cards and type as the CRM; phone first. No :has(), no runtime custom properties
   (see the 22 Oct perf rules in app.css). */
.crm .dlist { list-style: none; margin: 0; padding: 0; }
.crm .drow { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--rule); min-height: 54px; }
.crm .drow:first-child { border-top: 0; }
.crm .dmain { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 0; }
.crm .dtx { min-width: 0; display: flex; flex-direction: column; }
.crm .dtx .ct { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm .dtx .cs { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm .dpills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }   /* under the subtitle, so titles keep the full width on a phone */
.crm .dpills.top { justify-content: flex-start; max-width: none; margin: -4px 0 10px; }
.dico { flex: none; width: 38px; height: 44px; border-radius: 7px; display: grid; place-items: center; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--rule); }
.dico.k-pdf { background: #fde8e4; color: #b42318; } .dico.k-img { background: #e6f4ea; color: #13744a; }
.dico.k-doc { background: #e3e9fb; color: #2b45e0; } .dico.k-xls { background: #e3f4ea; color: #146c43; }
.dico.k-eml, .dico.k-txt, .dico.k-file { background: var(--notice); color: var(--muted); }
.dico.big { width: 64px; height: 76px; font-size: 14px; margin: 0 auto 8px; }
.crm .pill.p-expired { background: #fde8e4; color: #b42318; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dico.k-pdf { background: #3a1a17; color: #ff9b8f; } :root:not([data-theme="light"]) .dico.k-img, :root:not([data-theme="light"]) .dico.k-xls { background: #12352a; color: #6fd3a5; } :root:not([data-theme="light"]) .dico.k-doc { background: #1d2340; color: #9fb0ff; }
  :root:not([data-theme="light"]) .crm .pill.p-expired { background: #3a1a17; color: #ff9b8f; } }
.crm .pill.p-gate { background: var(--notice); color: var(--muted); font-weight: 500; }
.crm .pill.p-tag { background: var(--notice); color: var(--ink); font-weight: 500; }
.crm .dbar, .kpi .dbar { display: block; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; margin-top: 6px; }
.crm .dbar b { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .2s; }
/* drop zone */
.crm .dz { border: 1.5px dashed var(--rule); border-radius: 12px; padding: 14px 12px; text-align: center; background: var(--bg); margin-top: 10px; }
.crm .dz.over { border-color: var(--accent); background: var(--accent-soft); }
.crm .dz-in b { font-weight: 600; font-size: 15px; }
.crm .dz-or { color: var(--muted); font-size: 14px; }
.crm .dz .cs { margin-top: 6px; }
.crm .dpick { position: relative; overflow: hidden; cursor: pointer; margin-left: 4px; }
.crm .dfile { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; left: 0; top: 0; }
.crm .dq { list-style: none; margin: 8px 0 0; padding: 0; text-align: left; }
.crm .dq li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--rule); }
.crm .dq li:first-child { border-top: 0; }
.crm .dq .dbar { grid-column: 1 / -1; margin-top: 2px; }
.crm .dq li.ok .dqs { color: #13744a; } .crm .dq li.bad .dqs { color: #c2410c; } .crm .dq li.bad .dbar b { background: #c2410c; }
.crm .dqn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crm .dqs { color: var(--muted); text-align: right; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .dq li.ok .dqs { color: #6fd3a5; } }
/* upload options and filters */
.crm .dopts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crm .dopts .fld:first-child { grid-column: 1 / -1; }
.crm .dopts.sm { margin-top: 10px; }
@media (min-width: 640px) { .crm .dopts { grid-template-columns: 2fr 2fr 1.3fr 1.3fr; } .crm .dopts .fld:first-child { grid-column: auto; } .crm .dopts.sm { grid-template-columns: 2fr 1.3fr 1.3fr; } }
.crm .fld select, .crm .fld input, .crm .dfilters input, .crm .dfilters select { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 0 10px; font: inherit; font-size: 15px; }
.crm .dfilters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.crm .dtog { grid-column: 1 / -1; display: flex; gap: 6px; }
.crm .dtog button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: 13.5px; color: var(--muted); }
.crm .dtog button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 640px) { .crm .dfilters { grid-template-columns: 1fr 1fr auto; } .crm .dtog { grid-column: auto; } }
.crm .chips.dfold button small { opacity: .7; margin-left: 2px; }
.crm .dcount { margin: 4px 0 2px; }
.crm .dalert h3 { color: #c2410c; }
.crm .dlinked { margin-top: 8px; }
.crm .btn.dsm { min-height: 36px; padding: 0 12px; font-size: 13.5px; flex: none; }
.crm h3 .dright { float: right; font-family: "Geist", system-ui, sans-serif; }
.crm .dhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.crm .dhead h3 { margin: 0; }
.crm .dbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crm .dbtns .note { flex: 1 1 160px; }
.crm .dfp { margin: 8px 0 0; }
.crm .dsf-lead { margin: 0 0 8px; }
.docs-sheet .viewer-top .dtt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.crm .dmore-opts { margin: 8px 0 0; }
.crm .dmore-opts > summary { cursor: pointer; font-size: 14px; color: var(--accent); padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.crm .dmore-opts[open] > summary { margin-bottom: 4px; }
.crm .dpick { min-height: 44px; }
/* phones: every tap target at least 44px tall */
@media (pointer: coarse) { .crm .btn.dsm, .crm .dtog button, .crm .chips.dfold button { min-height: 44px; } .crm .dmust summary, .crm .dmore summary { padding: 10px 0; } .crm details.dsect > summary { min-height: 44px; display: block; padding: 4px 0; } }
/* required-documents checklist */
.crm .dcheck { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--bg); }
.crm .dch-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 4px; }
.crm .dch-n { font-size: 12.5px; color: var(--muted); }
.crm .dcheck ul { list-style: none; margin: 0; padding: 0; }
.crm .dcheck li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule); }
.crm .dcheck li:first-child { border-top: 0; }
.crm .dmark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.crm .dcheck li.ok .dmark { background: #22a06b; color: #fff; }
.crm .dcheck li.part .dmark { background: #f2b366; color: #3a2a14; }
.crm .dcheck li.miss .dmark { background: #c2410c; color: #fff; }
.crm .dcheck li.opt .dmark { background: var(--notice); color: var(--muted); border: 1px solid var(--rule); }
.crm .dcx { flex: 1; min-width: 0; }
.crm .dcn { font-size: 14px; font-weight: 500; }
.crm .dcheck .cs a, .crm .dlink { color: var(--accent); text-decoration: underline; font-size: inherit; padding: 0; }
/* one document */
.docs-sheet { z-index: 65; }
.docs-detail .dprev { border-radius: 10px; overflow: hidden; }
.docs-detail .dframe { display: block; width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.docs-detail .dimg { display: block; max-width: 100%; max-height: 75vh; margin: 0 auto; border-radius: 10px; }
.docs-detail .dtext { white-space: pre-wrap; word-wrap: break-word; font: 13px/1.5 ui-monospace, Menlo, monospace; max-height: 60vh; overflow: auto; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 10px; margin: 0; }
.docs-detail .dnoprev { text-align: center; padding: 18px 0 6px; }
.docs-detail .dhash { font: 11.5px ui-monospace, Menlo, monospace; overflow-wrap: anywhere; word-break: break-all; }
.docs-detail .dvers { list-style: none; margin: 0 0 4px; padding: 0; }
.docs-detail .dvers li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--rule); padding: 8px 0; font-size: 14px; }
.docs-detail .dvers li:first-child { border-top: 0; }
.docs-detail .dvers li > div { min-width: 0; }
.docs-detail .dform { margin-top: 4px; }
.docs-detail .dpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docs-detail .fields dd .pill { margin-right: 2px; }
.docs-sheet .viewer-top a.share { text-decoration: none; display: flex; align-items: center; font-weight: 600; }
.docs-detail a, .crm .dcheck a { color: var(--accent); }
.docs-detail .card h3 { overflow: hidden; }
.crm .dcheck.flat { border: 0; padding: 0; background: none; margin: 0; }
.crm .dtags { color: #a14b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .dtags { color: #f2b366; } }
.crm .dmust, .crm .dmore { margin-top: 2px; }
.crm .dmust summary, .crm .dmore summary { cursor: pointer; font-size: 12.5px; color: var(--accent); padding: 2px 0; }
.crm .dmore { border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 2px; }
.crm .dmore summary { font-size: 13px; font-weight: 500; }
.crm .dmust ul { list-style: disc; margin: 4px 0 2px; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.crm .dmust li { border: 0; padding: 1px 0; display: list-item; }
/* confidentiality (27 Oct 2026): padlocks, "who can see this", share links, audit, settings */
.dlock { width: 13px; height: 13px; fill: currentColor; vertical-align: -1px; flex: none; }
.crm .dlk, .docs-sheet .dlk { display: inline-flex; color: #a14b00; margin-right: 5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .dlk, :root:not([data-theme="light"]) .docs-sheet .dlk { color: #f2b366; } }
.crm .pill.p-vo { background: #efe7fb; color: #5b2bb5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .pill.p-vo { background: #2a1f40; color: #c4a8ff; } }
.crm .dbanner { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.crm .dbanner.conf, .docs-detail .dwho-card.conf { border-color: #f2c99a; background: #fff8ef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .dbanner.conf, :root:not([data-theme="light"]) .docs-detail .dwho-card.conf { border-color: #5a3d1a; background: #241a0e; } }
.crm .dbanner.warn { display: block; border-color: #f2b3a6; }
.crm .dbanner h3 .dlock { width: 15px; height: 15px; }
.crm .dbico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--rule); color: #a14b00; }
.crm .dbico .dlock { width: 14px; height: 14px; }
.crm .dbanner .dlink { color: var(--accent); }
.crm .chips.dfold button .dlock { width: 11px; height: 11px; }
.crm .dchk { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; padding: 6px 0; min-height: 32px; line-height: 1.35; }
.crm .dchk input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.crm .dopts .dchk { grid-column: 1 / -1; align-items: center; }
.crm .dradio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 14.5px; cursor: pointer; }
.crm .dradio:first-child { border-top: 0; }
.crm .dradio input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.crm .dradio b { font-weight: 500; display: block; }
.crm .dacc { border: 1px solid var(--rule); border-radius: 12px; padding: 4px 12px; background: var(--bg); margin: 8px 0; }
.crm .dwho { border-top: 1px solid var(--rule); padding: 6px 0 4px 28px; }
.crm .dwho .cs { margin-top: 6px; }
.docs-detail .dwho-row { display: flex; gap: 10px; align-items: center; }
.docs-detail .dwho-tx { flex: 1; min-width: 0; font-size: 14.5px; }
.docs-detail .dwho-tx b { font-weight: 500; }
.docs-detail .dmark-note { margin: 10px 0 0; }
.docs-sheet .viewer-top .dvo-tag { font-size: 13px; color: var(--muted); font-weight: 500; }
.docs-sheet .viewer-top .title { display: flex; align-items: center; min-width: 0; }
.crm .dshares { list-style: none; margin: 0; padding: 0; }
.crm .dshares > li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; border-top: 1px solid var(--rule); padding: 10px 0; }
.crm .note.ok { color: #13744a; }
.crm .dshares > li:first-child { border-top: 0; }
.crm .dsh-main { min-width: 0; }
.crm .dsh-to { font-size: 14.5px; } .crm .dsh-to b { font-weight: 500; overflow-wrap: anywhere; }
.crm .dsh-act { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
.crm .dsh-log { grid-column: 1 / -1; }
@media (max-width: 520px) { .crm .dshares > li { grid-template-columns: 1fr; } .crm .dsh-act { justify-content: flex-start; } }
.crm .btn.danger { color: #b42318; border-color: #f2b3a6; }
.crm .dshare-form { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; background: var(--bg); margin: 4px 0 10px; }
.crm .dshare-form .dopts .fld:first-child { grid-column: 1 / -1; }
@media (min-width: 640px) { .crm .dshare-form .dopts { grid-template-columns: 2fr 1fr 1.3fr 1fr; } .crm .dshare-form .dopts .fld:first-child { grid-column: auto; } }
.crm .dshare-ok { border: 1px solid #9ad3b5; background: #effaf4; border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 14.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .dshare-ok { border-color: #1f5a40; background: #10261c; } }
.crm .dlinkbox { display: flex; gap: 6px; margin: 8px 0; }
.crm .dlinkbox input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--rule); border-radius: 8px; padding: 0 8px; font: 12.5px ui-monospace, Menlo, monospace; background: var(--surface); color: var(--ink); }
.crm .dpin { font: 600 20px ui-monospace, Menlo, monospace; letter-spacing: .15em; }
.crm .drestr { display: inline-flex; align-items: center; gap: 4px; color: #a14b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .drestr { color: #f2b366; } }
.crm .hist li.warn > b { color: #b42318; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .hist li.warn > b { color: #ff9b8f; } }
.crm details.dsect > summary { list-style: none; cursor: pointer; }
.crm details.dsect > summary::-webkit-details-marker { display: none; }
.crm details.dsect > summary h3 { margin: 0; }
.crm details.dsect > summary h3::after { content: "Show"; float: right; font: 500 13px "Geist", system-ui, sans-serif; color: var(--accent); }
.crm details.dsect[open] > summary h3::after { content: "Hide"; }
.crm .dsect-in { margin-top: 10px; }
.crm .dfilters.aud { grid-template-columns: 1fr 1fr; align-items: center; }
@media (min-width: 640px) { .crm .dfilters.aud { grid-template-columns: 1.4fr 1.4fr 1.2fr auto; } }
.crm .dset { border-top: 1px solid var(--rule); padding: 10px 0; }
.crm .dset:first-child { border-top: 0; padding-top: 0; }
.crm .dset h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.crm .drow-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.crm .dtypes { display: grid; grid-template-columns: 1fr; gap: 0 12px; margin: 6px 0; }
@media (min-width: 640px) { .crm .dtypes { grid-template-columns: 1fr 1fr; } }
.crm .dfold-set { border-top: 1px solid var(--rule); padding: 8px 0; }
.crm .dfold-set summary { cursor: pointer; font-size: 14.5px; font-weight: 500; }
.crm .dopts .fld.dacc-up { grid-column: span 2; }
.crm .dwho .dchk .cs { margin: 0 0 0 4px; }
@media (max-width: 520px) { .docs-detail .dwho-row { flex-wrap: wrap; } .docs-detail .dwho-row .btn { margin-left: 40px; } }
@media (max-width: 520px) { .docs-detail .dwho-tx { flex: 1 1 calc(100% - 50px); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .crm .note.ok { color: #6fd3a5; } :root:not([data-theme="light"]) .crm .dbanner.warn { border-color: #5a2a22; } :root:not([data-theme="light"]) .crm .btn.danger { border-color: #5a2a22; } }
.crm .kpis button.kpi { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; }
@media (max-width: 520px) { .docs-detail .dframe { height: 58vh; min-height: 360px; } }
.crm .dshare-form.made > :not(#shOut) { display: none; }
.crm .dshare-form.made .dshare-ok { margin-top: 0; }
.crm .dmust .dlaw { margin-top: 6px; }
@media (pointer: coarse) { .crm .dz .dz-drop, .crm .dz .dz-or { display: none; } .crm .dpick { margin-left: 0; } }   /* phones can't drag files: just the button */

/* ───── Desktop (28 Oct 2026): folder tree | file table with real columns; a document opens in a right-hand preview
   drawer. Below 1024px nothing changes: the extra table cells and header exist but stay hidden. ───── */
.crm .dc, .crm .dthead { display: none; }
@media (min-width: 1024px) {
  /* the library: filters + a real table; the folders wrap above it (a laptop) or run down the left (1280px and up) */
  .crm .dlib > .dfold { flex-wrap: wrap; overflow: visible; margin-bottom: 4px; }
  .crm .dlib .dfilters { margin: 6px 0 4px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; }
  .crm .dlib .dtog { grid-column: auto; }
  .crm .dlib .dtog button { min-height: 40px; }
  .crm .dlib .dtog button:not(.on):hover, .crm .dlib > .dfold button:not(.on):hover { color: var(--ink); border-color: var(--muted); }
  /* the table: name, linked to, size, modified (+ type on a wide screen) */
  .crm .dlib .dthead, .crm .dlib .dmain { display: grid; grid-template-columns: 30px minmax(0, 2.4fr) minmax(0, 1.3fr) 64px 96px; column-gap: 14px; align-items: center; }
  .crm .dlib .dthead span:nth-child(3), .crm .dlib .dc.dc-type { display: none; }
  .crm .dlib .dthead { padding: 8px 10px; border-bottom: 1px solid var(--rule); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .crm .dlib .drow { min-height: 0; border-top: 0; border-bottom: 1px solid var(--rule); }
  .crm .dlib .drow:last-child { border-bottom: 0; }
  .crm .dlib .dmain { width: 100%; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
  .crm .dlib .dmain:hover { background: var(--bg); }
  .crm .dlib .dmain:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .crm .dlib .dico { width: 30px; height: 34px; font-size: 8.5px; border-radius: 6px; }
  .crm .dlib .dtx .ct { font-size: 14px; }
  .crm .dlib .dtx .cs { display: none; }
  .crm .dlib .dpills { margin-top: 3px; }
  .crm .dlib .dc { display: block; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .crm .dlib .dc-size, .crm .dlib .dc-mod { font-variant-numeric: tabular-nums; }
  .crm .dlib .dthead span:nth-child(5), .crm .dlib .dc-size { text-align: right; }
  .crm .dcount { margin: 6px 10px 2px; }

  /* every other list of documents (alerts, record cards): hover + pointer */
  .crm .dlist .dmain { cursor: pointer; }
  .crm .dalert .dmain:hover .ct, .crm [data-dpanel] .dmain:hover .ct { color: var(--accent); }

  /* the add / compliance / shared-links cards read better at a comfortable width */
  .crm .dz { padding: 22px 16px; }
  .crm .dz.over { outline: 2px solid var(--accent); outline-offset: -2px; }
  .crm .btn.dsm, .crm .dtog button, .crm .chips.dfold button { min-height: 34px; }
  .crm .dmore-opts > summary, .crm .dpick { min-height: 36px; }
  .crm details.dsect > summary { cursor: pointer; }
  .crm details.dsect > summary:hover h3::after { text-decoration: underline; }

  /* one document: a right-hand preview drawer over the dimmed page (click outside, Esc or ‹ Back closes it) */
  /* (the same drawer as Keystone's record sheet: transparent box, its own ::before is the dim layer, so a click there
     lands on the sheet element and docs.js closes it) */
  .docs-sheet { left: auto; width: min(760px, 62vw); background: transparent; }
  .docs-sheet::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(8, 10, 16, .45); }
  .docs-sheet > .viewer-top, .docs-sheet > .viewer-body { border-left: 1px solid var(--rule); animation: drawer-in .18s ease-out; }
  .docs-sheet > .viewer-body { background: var(--bg); }
  .docs-sheet .viewer-top { padding: 8px 10px; }
  .docs-sheet .viewer-top .back { min-height: 36px; border-radius: 8px; }
  .docs-sheet .viewer-top .back:hover, .docs-sheet .viewer-top .share:hover { background: var(--accent-soft); }
  .docs-sheet .viewer-body { padding: 18px 22px 24px; }
  .docs-detail .dframe { height: calc(100dvh - 260px); min-height: 420px; }
  .docs-detail .dimg { max-height: calc(100dvh - 240px); }
}
@media (min-width: 1280px) {
  /* folders down the left of the library */
  body:not(.chat-docked) .crm .dlib { display: grid; grid-template-columns: 210px minmax(0, 1fr); column-gap: 22px; align-items: start; }
  body:not(.chat-docked) .crm .dlib > h3 { grid-column: 1 / -1; }
  body:not(.chat-docked) .crm .dlib > .dfold { grid-column: 1; grid-row: 2 / span 2; position: sticky; top: 12px; flex-direction: column; flex-wrap: nowrap; gap: 1px; padding: 0; margin: 0; }
  body:not(.chat-docked) .crm .dlib > .dfold button { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 34px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); text-align: left; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body:not(.chat-docked) .crm .dlib > .dfold button small { margin-left: auto; color: var(--muted); opacity: 1; font-size: 12px; font-variant-numeric: tabular-nums; }
  body:not(.chat-docked) .crm .dlib > .dfold button:not(.on):hover { background: var(--notice); color: var(--ink); }
  body:not(.chat-docked) .crm .dlib > .dfold button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  body:not(.chat-docked) .crm .dlib > .dfold button.on small { color: var(--accent); }
  body:not(.chat-docked) .crm .dlib > .dfilters { grid-column: 2; margin: 0 0 4px; }
  body:not(.chat-docked) .crm .dlib > #dList { grid-column: 2; min-width: 0; }
}
@media (min-width: 1440px) {
  body:not(.chat-docked) .crm .dlib { grid-template-columns: 230px minmax(0, 1fr); }
  body:not(.chat-docked) .crm .dlib .dthead, body:not(.chat-docked) .crm .dlib .dmain { grid-template-columns: 30px minmax(0, 2.6fr) minmax(0, 1.1fr) minmax(0, 1.3fr) 64px 96px; }
  body:not(.chat-docked) .crm .dlib .dthead span:nth-child(3), body:not(.chat-docked) .crm .dlib .dc.dc-type { display: block; }
}
