/* ============================================================
   Sentinel Docs — FILES: tree, drive, details, inbox.
   Loaded after clm.css and uses its tokens.
============================================================ */

.dx .is-drop { background: color-mix(in srgb, var(--blue) 12%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--blue) 45%, transparent); }

/* layout: folders pane · content · details */
.dx .fx { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100%; }
.dx .fx.has-panel { grid-template-columns: minmax(0, 1fr) 340px; }
.dx .fx-main { min-width: 0; container: fxm / inline-size; }
.dx .pg-files { max-width: 1160px; padding: 32px 40px 112px; }

.dx .fx-head { margin-bottom: 20px; }
.dx .fx-path { display: flex; align-items: center; gap: 4px; min-height: 30px; font-size: 13px; color: var(--ink-3); margin: 0 0 10px -4px; flex-wrap: wrap; }
.dx .fx-path a { padding: 2px 4px; border-radius: 5px; }
.dx .fx-path a:hover { color: var(--ink); background: var(--hover); }
.dx .fx-path .is-now { color: var(--ink); font-weight: 500; }
.dx .fx-path .cr-sep { padding: 0 2px; }
.dx .fx-crumb { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-4); display: grid; place-items: center; cursor: pointer; }
.dx .fx-crumb:hover { background: var(--hover); color: var(--ink); }
.dx .menu-pick a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.dx .menu-pick a:hover { background: var(--hover); }
.dx .fx-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dx .fx-title h1 { display: flex; align-items: center; gap: 14px; margin: 0; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.022em; min-width: 0; }
.dx .fx-sub { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.dx .fx-head .tabs { margin: 22px 0 0; gap: 22px; }
.dx .fx-head .tabs a { height: 36px; }
.dx .seg-ic button { padding: 0 8px; display: inline-grid; place-items: center; }
.dx.dx .icon-btn.is-on { background: var(--hover-2); color: var(--ink); }

/* search + chips */
.dx .fx-find { position: relative; margin-bottom: 10px; }
.dx .fx-q { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--canvas); color: var(--ink-3); transition: border-color .12s, box-shadow .12s; }
.dx .fx-q:focus-within { border-color: var(--ink-4); box-shadow: 0 0 0 4px var(--hover); }
.dx .fx-q input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px var(--font-ui); color: var(--ink); }
.dx .fx-q input::placeholder { color: var(--ink-3); }
.dx .fx-scope { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; border: 0; border-radius: 7px; background: var(--hover); font: 500 12.5px var(--font-ui); color: var(--ink-2); cursor: pointer; }
.dx .fx-scope:hover { background: var(--hover-2); }
.dx .fx-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); display: none; }
.dx .fx-sugg.is-on { display: block; animation: dx-pop .14s var(--ease) both; }
.dx .fx-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin-bottom: 30px; }
.dx .chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--canvas); font: 500 12.5px var(--font-ui); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: border-color .12s, background .12s; }
.dx button.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.dx .chip .ic { color: var(--ink-4); }
.dx .chip.is-on { background: var(--hover-2); border-color: transparent; color: var(--ink); }
.dx .chip.is-on button { display: grid; place-items: center; width: 16px; height: 16px; padding: 0; margin-right: -3px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-3); cursor: pointer; }
.dx .chip.is-on button:hover { background: var(--line-2); color: var(--ink); }
.dx .chip-ai { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 12.5px; font-weight: 500; color: var(--blue); cursor: help; }
.dx .fx-clearall { margin-left: 8px; font-size: 12.5px; border: 0; background: none; cursor: pointer; }
.dx .fx-count { margin: -8px 0 16px; font-size: 13px; color: var(--ink-3); }
.dx .fx-sec + .fx-sec { margin-top: 44px; }
.dx .fx-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dx .fx-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 52px 24px; border: 1.5px dashed var(--line-2); border-radius: 14px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
.dx .fx-empty b { color: var(--ink); font-size: 14.5px; margin-top: 6px; }
.dx .fx-empty.is-done .ic { color: var(--green); }

/* home: inbox banner, suggested, folders */
.dx .fx-inbox { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; padding: 14px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line)); background: color-mix(in srgb, var(--blue) 5%, var(--canvas)); transition: border-color .12s; }
.dx .fx-inbox:hover { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.dx .fx-inbox > .ic { color: var(--blue); }
.dx .fx-inbox div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dx .fx-inbox b { font-size: 14px; }
.dx .fx-inbox div span { font-size: 13px; color: var(--ink-3); }
.dx .sugg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dx .sg { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .12s, box-shadow .15s; min-width: 0; }
.dx .sg:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.dx .sg b { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dx .sg > span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); margin-top: auto; }
.dx .sg > span.red { color: var(--red); }
.dx .sg > span.amber { color: var(--amber); }
.dx .dot-s { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.dx .ftiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.dx .ftile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; transition: background .1s, border-color .12s; }
.dx .ftile:hover { background: var(--hover); }
.dx .ftile > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dx .ftile b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .ftile span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .ftile em { font-style: normal; }
.dx .ftile em.red { color: var(--red); } .dx .ftile em.amber { color: var(--amber); }
.dx .fold { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--hover); color: var(--ink-3); display: grid; place-items: center; }
.dx .fold-lg { width: 40px; height: 40px; border-radius: 10px; }

/* file glyphs + thumbnails */
.dx .fi { position: relative; flex: none; width: 24px; height: 30px; border: 1px solid var(--line-2); border-radius: 3px 8px 3px 3px; background: var(--canvas); }
.dx .fi i { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); font: 700 6.5px/1 var(--font-mono); letter-spacing: .02em; font-style: normal; color: var(--ink-3); }
.dx .fi-lg { width: 34px; height: 42px; border-radius: 4px 10px 4px 4px; }
.dx .fi-lg i { font-size: 8.5px; bottom: 6px; }
.dx .fi-pdf i { color: var(--red); } .dx .fi-docx i { color: var(--blue); } .dx .fi-xlsx i { color: var(--green); } .dx .fi-pptx i { color: var(--amber); }
.dx .th { display: flex; flex-direction: column; gap: 7%; width: 62%; height: 100%; padding: 12% 10% 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0; background: var(--canvas); box-shadow: 0 6px 18px -8px rgba(16, 20, 26, .18); }
.dx .th i { display: block; height: 3px; border-radius: 1.5px; background: var(--line-2); }
.dx .th i:nth-child(1) { width: 55%; height: 5px; background: var(--ink-4); margin-bottom: 6%; }
.dx .th i:nth-child(3) { width: 92%; } .dx .th i:nth-child(5) { width: 78%; } .dx .th i:nth-child(6) { width: 60%; }
.dx .th-xlsx { background: repeating-linear-gradient(0deg, transparent 0 11px, var(--line) 11px 12px), repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 23px), var(--canvas); }
.dx .th-xlsx i { display: none; }
.dx .th-eml i:nth-child(1) { width: 70%; } .dx .th-eml i:nth-child(2) { width: 40%; }

/* list */
.dx .fxt td { height: 54px; padding-top: 8px; padding-bottom: 8px; }
.dx .fxt .fr-name { width: 100%; max-width: 0; }
.dx .fxt td:not(.fr-name), .dx .fxt th { white-space: nowrap; }
.dx .fxt td.opt .holder span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.dx .fxt tbody tr.fr { cursor: default; }
.dx .fr.is-sel td { background: color-mix(in srgb, var(--blue) 7%, var(--canvas)) !important; }
.dx .fname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dx .fname-t { min-width: 0; flex: 1; }
.dx .fname-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dx .fname-l b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dx .fname-s { display: block; margin-top: 1px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .fx-snip { display: flex !important; align-items: center; gap: 8px; }
.dx .fx-snip .ref { height: 18px; font-size: 11px; flex: none; }
.dx .vtag { flex: none; font: 500 11px/16px var(--font-mono); color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; background: var(--canvas); }
.dx .star-on { flex: none; color: #d4a106; }
.dx .star-on .ic path, .dx .fr-act .icon-btn.is-on .ic path { fill: currentColor; }
.dx .fxt .cb .check { opacity: 0; }
.dx .fxt tr:hover .cb .check, .dx .fxt .cb .check.is-on, .dx .fxt tr.is-sel .cb .check { opacity: 1; }
.dx .fr-act { width: 76px; white-space: nowrap; text-align: right; }
.dx .fr-act .icon-btn { width: 28px; height: 28px; opacity: 0; }
.dx .fr:hover .fr-act .icon-btn, .dx .fr-act .icon-btn.is-on { opacity: 1; }
.dx .fr-act .icon-btn.is-on { background: transparent; color: #d4a106; }
.dx .grp-row td { height: auto; padding: 22px 12px 8px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.dx .grp-row:first-child td { padding-top: 6px; }
.dx .grp-row td .muted { margin-left: 10px; font-weight: 400; font-size: 12.5px; }
.dx .tbl tbody tr.grp-row:hover td { background: transparent; }
.dx .fr.is-child .fname { padding-left: 24px; position: relative; }
.dx .fr.is-child .fname::before { content: ""; position: absolute; left: 9px; top: -22px; bottom: 50%; width: 10px; border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); border-bottom-left-radius: 6px; }
.dx .th-sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.dx .th-sort:hover, .dx .th-sort.is-on { color: var(--ink); }

/* grid */
.dx .fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.dx .fcard { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: default; transition: border-color .12s, box-shadow .15s; min-width: 0; }
.dx .fcard:hover { box-shadow: var(--shadow); }
.dx .fcard.is-sel { border-color: color-mix(in srgb, var(--blue) 60%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.dx .fcard-prev { position: relative; height: 124px; padding-top: 18px; display: flex; justify-content: center; background: var(--hover); border-bottom: 1px solid var(--line); }
.dx .fcard-prev .vtag { position: absolute; top: 8px; right: 8px; }
.dx .fcard-b { display: flex; align-items: center; gap: 10px; padding: 12px 12px 2px; min-width: 0; }
.dx .fcard-b .fi { width: 18px; height: 22px; }
.dx .fcard-b .fi i { display: none; }
.dx .fcard-b b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .fcard-m { display: block; padding: 2px 12px 12px 40px; font-size: 12px; color: var(--ink-3); }
.dx .fcard-m .red { color: var(--red); } .dx .fcard-m .amber { color: var(--amber); }

/* details panel */
.dx .fxp { position: sticky; top: 0; align-self: start; height: calc(100vh - 56px); overflow-y: auto; padding: 18px 24px 32px; border-left: 1px solid var(--line); background: var(--canvas); scrollbar-width: thin; }
.dx .fxp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dx .fxp-top .sd-label { padding: 0; }
.dx .fxp-prev { height: 176px; display: flex; justify-content: center; padding-top: 22px; border-radius: 10px; background: var(--hover); overflow: hidden; }
.dx .fxp-prev .th { width: 110px; }
.dx .fxp-name { margin: 18px 0 4px; font-size: 15px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; word-break: break-word; }
.dx .fxp-path { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); }
.dx .fxp-path a:hover { color: var(--ink); }
.dx .fxp-actions { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.dx .fxp-actions .btn-primary { flex: 1; justify-content: center; }
.dx .fxp-flag { margin: 0 0 18px; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--amber) 10%, var(--canvas)); color: var(--ink); font-size: 13px; line-height: 1.5; }
.dx .fxp-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.dx .fxp-sec h4 { margin: 0 0 10px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.dx .fxp-sec .facts dd a { color: var(--ink); }
.dx .fxp-folder h3 { margin: 14px 0 2px; font-size: 16px; font-weight: 600; }
.dx .fxp-folder p { margin: 0 0 16px; }
.dx .fxp-lnk { margin-top: 12px; }
.dx .fxp-hint { margin: 16px 0 0; }
.dx .vers { list-style: none; margin: 0 0 6px; padding: 0; }
.dx .vers li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 13px; }
.dx .vers b { width: 26px; font-variant-numeric: tabular-nums; }
.dx .vers span { flex: 1; font-size: 12.5px; color: var(--ink-3); }
.dx .vers em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.dx .vers .lnk { font-size: 12px; border: 0; background: none; cursor: pointer; }
.dx .fxp-sec > .lnk { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12.5px; }
.dx .acc { display: flex; align-items: center; }
.dx .acc .av { margin-right: -5px; box-shadow: 0 0 0 2px var(--canvas); }
.dx .acc span { margin-left: 14px; }
.dx .mix > div { display: grid; grid-template-columns: 1fr 72px 22px; align-items: center; gap: 10px; padding: 4px 0; font-size: 12.5px; color: var(--ink-2); }
.dx .mix i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(var(--ink-3), var(--ink-3)) 0 0 / var(--w) 100% no-repeat, var(--hover-2); }
.dx .mix b { text-align: right; font-weight: 500; }
.dx .meter { height: 4px; border-radius: 2px; background: var(--hover-2); overflow: hidden; margin-bottom: 8px; }
.dx .meter i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }

/* inbox */
.dx .ib-list { border-top: 1px solid var(--line); }
.dx .ib { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); animation: dx-in .25s var(--ease) both; }
.dx .ib.is-reading { grid-template-columns: 40px minmax(0, 1fr); }
.dx .ib-names { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.dx .ib-names .ic { color: var(--ink-4); }
.dx .ib-orig { color: var(--ink-3); }
.dx .ib-names b { font-weight: 500; }
.dx .ib-dest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.dx .ib-dest .ic { color: var(--ink-3); }
.dx .ib-why { list-style: none; margin: 12px 0 0; padding: 0; }
.dx .ib-why li { position: relative; padding-left: 16px; margin: 4px 0; font-size: 13px; color: var(--ink-2); }
.dx .ib-why li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-4); }
.dx .ib-effect { margin: 14px 0 0; padding: 10px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.dx .ib-good { background: color-mix(in srgb, var(--green) 9%, var(--canvas)); }
.dx .ib-warn { background: color-mix(in srgb, var(--amber) 11%, var(--canvas)); }
.dx .ib-info { background: var(--hover); }
.dx .ib-act { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.dx .ib-act .small { margin-top: 2px; white-space: nowrap; }
.dx .ib-read { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.dx .ib-read .run-i { border-color: var(--ink-3); border-top-color: transparent; animation: dx-spin .7s linear infinite; }

/* menus, bulk bar, drag, drop */
.dx .menu-ctx { width: 240px; }
.dx .menu .menu-ctx button, .dx .menu-ctx button, .dx .menu-pick button { align-items: center; padding: 8px 10px; gap: 10px; }
.dx .menu-ctx b, .dx .menu-pick b { display: inline; font-size: 13px; font-weight: 400; flex: 1; }
.dx .menu-ctx kbd { margin-left: auto; }
.dx .menu-ctx hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.dx .menu-pick { width: 280px; max-height: 380px; overflow-y: auto; }
.dx .menu-pick .pal-sec { padding: 6px 10px 4px; }
.dx .menu-pick b + .ic { margin-left: auto; color: var(--ink); }
.dx .bulk { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 16px; border-radius: 12px; background: var(--ink); color: var(--canvas); box-shadow: var(--shadow); animation: dx-pop .18s var(--ease) both; }
.dx .bulk b { margin-right: 10px; font-size: 13px; }
.dx .bulk button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 13px var(--font-ui); cursor: pointer; }
.dx .bulk button:hover { background: color-mix(in srgb, var(--canvas) 14%, transparent); }
.dx .bulk .bulk-x { padding: 0 8px; margin-left: 4px; }
.dx .drag-ghost { position: fixed; top: -200px; left: 0; padding: 6px 12px; border-radius: 8px; background: var(--text-primary); color: var(--bg-doc); font: 500 13px var(--font-ui); }
.dx .fx-drop { position: fixed; inset: 0; z-index: 140; display: none; align-items: center; justify-content: center; background: rgba(15, 18, 22, .22); pointer-events: none; }
.dx .fx-drop.is-on { display: flex; animation: dx-fade .12s both; }
.dx .fx-drop-in { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 380px; padding: 32px 40px; text-align: center; border-radius: 16px; background: var(--canvas); border: 2px dashed color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: var(--shadow); }
.dx .fx-drop-in .ic { color: var(--blue); }
.dx .fx-drop-in b { font-size: 16px; font-weight: 600; }
.dx .fx-drop-in span { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.dx .toast-act { display: flex; align-items: center; gap: 16px; pointer-events: auto; }
.dx .toast-act button { border: 0; background: transparent; color: inherit; font: 500 13.5px var(--font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .85; }
.dx .fx-rename { width: min(380px, 100%); padding: 3px 7px; border: 1px solid var(--blue); border-radius: 6px; outline: 0; background: var(--canvas); color: var(--ink); font: 500 13.5px var(--font-ui); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 15%, transparent); }

@container main (max-width: 1060px) {
  .dx .fx.has-panel { grid-template-columns: minmax(0, 1fr); }
  .dx .fxp { position: fixed; top: 56px; right: 0; bottom: 0; height: auto; width: min(360px, 92vw); z-index: 60; box-shadow: var(--shadow); animation: dx-in .2s var(--ease) both; }
}
@container main (max-width: 780px) {
  .dx .pg-files { padding: 28px 20px 96px; }
  .dx .sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dx .fx-title .ph-act { flex-wrap: wrap; }
  .dx .ib { grid-template-columns: 34px minmax(0, 1fr); }
  .dx .ib-act { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@container fxm (max-width: 900px) { .dx .fxt .opt { display: none; } }
@container fxm (max-width: 680px) { .dx .fxt .opt2 { display: none; } .dx .sugg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* quick views — one quiet row, only outside folders */
.dx .fx-views { margin: 22px 0 0 !important; gap: 22px; }
.dx .fx-views a { height: 38px; gap: 7px; }
.dx .fx-views a .ic { color: var(--ink-4); }
.dx .fx-views a.is-on .ic { color: var(--ink); }
.dx .fx-views a span.t-new { color: var(--blue); }

/* Columns view — Finder / Explorer browsing, one column per level */
.dx .mcols {
  display: flex; height: min(560px, calc(100vh - 300px)); min-height: 320px;
  border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; overflow-y: hidden;
  background: var(--canvas); scroll-behavior: smooth; scrollbar-width: thin;
}
.dx .mc { flex: 0 0 228px; overflow-y: auto; padding: 6px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.dx .mc:last-child { flex: 1 0 260px; border-right: 0; }
.dx .mc-i {
  display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 8px 0 10px;
  border-radius: 7px; font-size: 13.5px; color: var(--ink-2); cursor: default; white-space: nowrap;
}
.dx a.mc-i { cursor: pointer; }
.dx .mc-i:hover { background: var(--hover); }
.dx .mc-i > .ic { color: var(--ink-3); }
.dx .mc-i > .ic:last-child { color: var(--ink-4); margin-left: 2px; }
.dx .mc-i.is-open { background: var(--hover-2); color: var(--ink); font-weight: 500; }
.dx .mc-i.is-open > .ic:last-child { color: var(--ink-2); }
.dx .mc-i.is-sel { background: color-mix(in srgb, var(--blue) 9%, var(--canvas)); color: var(--ink); }
.dx .mc-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dx .mc-n { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.dx .mc-n.red { color: var(--red); } .dx .mc-n.amber { color: var(--amber); }
.dx .mc-f .fi { width: 16px; height: 20px; border-radius: 2px 5px 2px 2px; }
.dx .mc-f .fi i { display: none; }
.dx .mc-f.mc-f .fi { border-color: var(--line-2); }
.dx .mc-sep { height: 1px; margin: 6px 10px; background: var(--line); }
.dx .mc-empty { padding: 14px 10px; font-size: 13px; color: var(--ink-3); }

/* ============================================================
   Calm pass — less on screen by default. Later rules win.
============================================================ */
.dx .pg-files { max-width: 1040px; padding-top: 40px; }
.dx .fx-head { margin-bottom: 28px; }
.dx .fx-title h1 { font-size: 28px; }
.dx .fx-viewpick { display: inline-flex; align-items: center; gap: 8px; margin-left: -8px; padding: 2px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.dx .fx-viewpick:hover { background: var(--hover); }
.dx .fx-viewpick .ic { color: var(--ink-3); }
.dx .fx-path { gap: 2px; margin-bottom: 8px; }
.dx .fx-crumb { width: 18px; }

/* search: filters are behind one button */
.dx .fx-find { margin-bottom: 40px; }
.dx .fx-find:has(+ .fx-chips.is-on) { margin-bottom: 12px; }
.dx .fx-q { height: 46px; border-color: var(--line); background: var(--hover); }
.dx .fx-q:focus-within { background: var(--canvas); }
.dx .fx-fbtn { position: relative; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); display: grid; place-items: center; cursor: pointer; }
.dx .fx-fbtn:hover { background: var(--hover-2); color: var(--ink); }
.dx .fx-fbtn.is-on { background: var(--canvas); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.dx .fx-fdot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.dx .fx-chips { display: none; }
.dx .fx-chips.is-on { display: flex; margin-bottom: 36px; animation: dx-in .18s var(--ease) both; }

/* sections: quiet labels, generous space */
.dx .fx-sec + .fx-sec { margin-top: 52px; }
.dx .fx-h { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.dx .fx-count { margin: -20px 0 20px; }

.dx .fx-inbox { gap: 12px; margin-bottom: 44px; padding: 12px 16px; font-size: 13.5px; color: var(--ink-2); }
.dx .fx-inbox > span:first-of-type { flex: 1; min-width: 0; }
.dx .fx-inbox b { color: var(--ink); font-size: 13.5px; }

.dx .sugg { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dx .sg { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }
.dx .sg > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dx .sg b { display: block; -webkit-line-clamp: unset; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .sg > div > span { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx .sg > div > span.red { color: var(--red); } .dx .sg > div > span.amber { color: var(--amber); }

.dx .ftiles { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.dx .ftile { gap: 12px; padding: 0 14px; height: 52px; }
.dx .ftile b { flex: 1; min-width: 0; font-weight: 500; }
.dx .ftile .fold { width: 24px; height: 24px; background: transparent; }
.dx .ftile-n { font-size: 12px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* list: name, act-by, modified — nothing else */
.dx .fxt th { height: 36px; }
.dx .fxt td { height: 56px; }
.dx .fxt .fr-date { width: 112px; white-space: nowrap; }
.dx .fxt th.fr-date { width: 112px; }
.dx .fxt .fr-act, .dx .fxt th.fr-act { width: 72px; }
.dx .fname-s { font-size: 12.5px; }
.dx .grp-row td { padding: 24px 12px 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* grid: preview + two lines */
.dx .fgrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.dx .fcard-b { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px 14px; }
.dx .fcard-b b { max-width: 100%; }
.dx .fcard-b > span { font-size: 12px; color: var(--ink-3); }
.dx .fcard-b .red { color: var(--red); } .dx .fcard-b .amber { color: var(--amber); }

/* details: opens with a selection, closes with Esc */
.dx .fx.has-panel { grid-template-columns: minmax(0, 1fr) 320px; }
.dx .fxp { animation: dx-in .2s var(--ease) both; }
.dx .fxp-facts { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); gap: 12px 16px; }
.dx .fxp-facts .lnk { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

.dx .menu-pick hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.dx .menu-pick a .mc-n { margin-left: auto; }
.dx .menu-pick a .ic:last-child:not(:first-child) { margin-left: 8px; }

@container fxm (max-width: 720px) {
  .dx .sugg { grid-template-columns: minmax(0, 1fr); }
}
