/* =====================================================================
   DATA ROOM — stylesheet
   1. Tokens  2. Base  3. Buttons & forms  4. Auth pages  5. Shell
   6. Cards & tables  7. Files  8. Pop-ups  9. Viewer  10. Admin  11. Responsive
   ===================================================================== */

/* 1. Tokens ------------------------------------------------------------ */
:root {
  --bg: #f5f6f8; --surface: #fff; --surface-2: #f0f2f5; --border: #e3e6eb;
  --text: #16181d; --text-2: #5c6370; --text-3: #8a919c;
  --accent: #1f4fd8; --accent-soft: #e8eefc;
  --side: #0f1420; --side-2: #1a2131; --side-text: #c9d0dc;
  --good: #0a7a35; --good-bg: #e6f4ec; --warn: #9a6200; --warn-bg: #fdf3e0; --bad: #b42323; --bad-bg: #fbe9e9;
  --series-1: #257de0; --series-2: #f47230; --series-3: #00b894;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}

/* 2. Base -------------------------------------------------------------- */
* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }
body { margin: 0; line-height: 1.45; }
a { color: var(--accent); }
h1, h2 { margin: 0; }
h2 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
button, input, select { font: inherit; color: inherit; }
.ico { flex: none; vertical-align: -3px; }
.muted { color: var(--text-2); } .small { font-size: 12px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.spacer { flex: 1; } .grow { flex: 1; min-width: 0; }
.hint { font-weight: 400; font-size: 12px; color: var(--text-3); }
[hidden] { display: none !important; }

/* 3. Buttons & forms ---------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; height: 40px; }
.btn.dark { background: #1d2433; border-color: #2e3747; color: #fff; }
.btn:focus-visible, .input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.input { height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); min-width: 0; max-width: 100%; }
.field { display: grid; gap: 6px; font-weight: 500; font-size: 13px; }
.field .input { width: 100%; }
.field.inline { max-width: 520px; }
.field-label { font-weight: 500; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.stack { display: grid; gap: 14px; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.flash { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; background: var(--good-bg); color: var(--good); border: 1px solid #cde9d8; }
.flash-bad { background: var(--bad-bg); color: var(--bad); border-color: #f3cccc; }
.flash-warn { background: var(--warn-bg); color: var(--warn); border-color: #f2dfb5; }
.flash-x { margin-left: auto; border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.secret { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); padding: 4px 6px 4px 10px; border-radius: 8px; }
.secret code { font-size: 14px; letter-spacing: .02em; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.good { background: var(--good-bg); color: var(--good); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); } .badge.accent { background: var(--accent-soft); color: var(--accent); }

/* 4. Auth pages --------------------------------------------------------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, #24345e 0%, var(--side) 60%); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 14px; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.auth-card.wide { max-width: 520px; }
.auth-card h1 { margin: 12px 0 4px; font-size: 22px; }
.auth-card .stack { margin-top: 20px; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; flex: none; }
.logo.lg { width: 40px; height: 40px; border-radius: 10px; }
.secure-note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 12px; color: var(--text-3); }
.checks { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; font-size: 13px; }
.checks li small { grid-column: 2; color: var(--text-3); word-break: break-all; }
.checks li.ok span { color: var(--good); font-weight: 700; } .checks li.bad span, .checks li.bad b { color: var(--bad); font-weight: 700; }

/* 5. Shell -------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: #fff; font-weight: 650; font-size: 15px; text-decoration: none; }
.nav-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6f7a8e; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; border-top: 1px solid #222b3d; padding-top: 12px; display: grid; gap: 6px; }
.side-foot form { margin: 0; }
.me { display: flex; gap: 10px; align-items: center; padding: 6px 8px; }
.me-name { color: #fff; font-weight: 500; font-size: 13px; } .me-role { font-size: 11px; color: #8590a3; }
.side-btn { width: 100%; background: transparent; border-color: #2a3346; color: var(--side-text); }
.side-btn:hover, .side-btn.active { background: var(--side-2); color: #fff; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; background: #2a3550; color: #fff; font-weight: 600; font-size: 12px; flex: none; }
.avatar.soft { background: var(--accent-soft); color: var(--accent); }
main { min-width: 0; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.topbar h1 { font-size: 17px; font-weight: 650; }
.top-actions { display: flex; gap: 8px; }
.page { padding: 24px 28px 48px; }

/* 6. Cards & tables ---------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.narrow { max-width: 480px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-h.wrap { flex-wrap: wrap; }
.card-b { padding: 16px 18px; }
.card-sub { padding: 12px 18px 6px; }
.card-foot { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--border); }
.empty { padding: 32px; text-align: center; color: var(--text-2); margin: 0; }
.empty-state { padding: 48px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.table-wrap { overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; }
.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-2); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: #fafbfc; }
.t tr.changed { background: var(--warn-bg) !important; }
.t tr.dim { opacity: .6; }
.wrap-cell { min-width: 180px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.actions form { margin: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.count { font-size: 12px; color: var(--text-3); }

/* 7. Files ------------------------------------------------------------- */
.files-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.tree-card .card-h { border-top: 1px solid var(--border); } .tree-card .card-h:first-child { border-top: 0; }
.tree { padding: 6px 8px 10px; }
.tree-empty { font-size: 12px; color: var(--text-2); padding: 6px 8px; margin: 0; }
.tree-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px 6px calc(8px + var(--depth, 0) * 16px); border-radius: 6px; text-decoration: none; color: var(--text); }
.tree-item:hover { background: var(--surface-2); }
.tree-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.tree-item.locked { color: var(--text-3); }
.tree-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tree-name small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; }
.tree-tag { color: var(--text-3); display: inline-flex; }
.tree-count { font-size: 11px; color: var(--text-3); }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.crumbs a { color: inherit; text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.crumbs .sep { color: var(--text-3); font-weight: 400; }
.card-h form { margin: 0; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 10px; color: var(--text-3); }
.search .input { padding-left: 32px; width: 210px; }
.file-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.file-name span:last-child { overflow-wrap: anywhere; }
.ficon { width: 32px; height: 32px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex: none; letter-spacing: .02em; background: #5c6370; }
.ficon.sm { width: 24px; height: 24px; font-size: 7px; }
.ficon-pdf { background: #d63c3c; } .ficon-doc { background: #2b5cd6; } .ficon-xls { background: #178a4a; } .ficon-ppt { background: #d2691e; }
.ficon-zip { background: #6b6b7b; } .ficon-img { background: #8a4fd6; } .ficon-vid { background: #c2367a; }
.folder-ref { display: inline-flex; align-items: center; gap: 6px; }
.dropzone { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; border: 2px dashed var(--border); border-radius: var(--radius); padding: 18px; color: var(--text-2); margin: 0 0 16px; transition: .15s; }
.dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone .small { flex-basis: 100%; text-align: center; }
.file-input { max-width: 260px; font-size: 13px; }

/* 8. Pop-ups (CSS :target — no JS needed) ------------------------------ */
.modal { display: none; position: fixed; inset: 0; z-index: 40; place-items: center; padding: 20px; }
.modal:target { display: grid; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,20,32,.5); }
.modal-box { position: relative; background: var(--surface); width: 100%; max-width: 480px; border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.3); max-height: 90vh; overflow: auto; padding: 20px 22px; display: grid; gap: 14px; margin: 0; }
.modal-box.wide { max-width: 640px; }
.modal-box h2 { font-size: 16px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 6px; }
.grant-list { border: 1px solid var(--border); border-radius: 8px; max-height: 220px; overflow: auto; }
.grant-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.grant-row:last-child { border-bottom: 0; }
.grant-row .input { width: 190px; }
details.menu { position: relative; }
details.menu > summary { list-style: none; } details.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 6px; min-width: 240px; z-index: 20; }
.menu-pop form { margin: 0; }
.menu-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.menu-item:hover { background: var(--surface-2); } .menu-item.danger { color: var(--bad); }

/* 9. Viewer ------------------------------------------------------------ */
.viewer-body { margin: 0; height: 100vh; display: flex; flex-direction: column; background: #0b0e15; color: #fff; }
.viewer-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.viewer-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-note { color: #9aa3b2; }
.viewer-stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; margin: 0 18px 18px; border-radius: 10px; background: #1a1f2b; }
.protect .viewer-stage { user-select: none; -webkit-user-select: none; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-stage iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-text { width: 100%; height: 100%; margin: 0; overflow: auto; padding: 20px; background: #fff; color: #111; white-space: pre-wrap; font-size: 13px; }
.watermark { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.watermark div { position: absolute; inset: -50%; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 90px 70px; transform: rotate(-28deg); padding: 40px; }
.watermark span { font-size: 15px; font-weight: 600; color: rgba(120,120,140,.24); white-space: nowrap; }
@media print { .viewer-stage { display: none; } }

/* 10. Admin ------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; text-decoration: none; color: inherit; display: block; }
a.stat:hover { border-color: #c9d3ea; }
.stat .k { font-size: 12px; color: var(--text-2); }
.stat .v { font-size: 26px; font-weight: 650; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12px; color: var(--text-3); margin-top: 2px; min-height: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 20px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .grid { stroke: #e9ecf0; } .chart .base { stroke: #c9ced6; }
.chart .axis { font-size: 11px; fill: #8a919c; }
.chart .hit { fill: transparent; } .chart .day:hover .hit { fill: rgba(31,79,216,.06); }
.chart-table { margin-top: 10px; font-size: 13px; } .chart-table summary { cursor: pointer; color: var(--text-2); }
.bar-list { display: grid; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.bar-row:last-child { border-bottom: 0; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; display: block; }
.track span { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); }
.log td { white-space: nowrap; } .log td.wrap-cell { white-space: normal; }
.legend-box { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.legend-box .card { padding: 12px 14px; font-size: 12px; }
.legend-box b { display: block; font-size: 13px; margin-bottom: 2px; }
.access-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.user-pick { padding: 6px; max-height: 70vh; overflow: auto; display: grid; gap: 2px; }
.user-pick a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: inherit; text-decoration: none; }
.user-pick a:hover { background: var(--surface-2); } .user-pick a.active { background: var(--accent-soft); }
.user-pick small { display: block; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.folder-cell { display: flex; gap: 8px; align-items: flex-start; padding-left: calc(var(--depth, 0) * 20px); }
.folder-cell .ico { color: var(--text-3); margin-top: 2px; }
.share-card .t select { min-width: 220px; }
.share-everyone { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 18px 6px; padding: 12px 14px; background: var(--surface-2); border-radius: 8px; }
.share-everyone .input { min-width: 260px; }

/* 11. Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .files-layout, .access-layout, .grid-2 { grid-template-columns: 1fr; }
  .legend-box { grid-template-columns: 1fr 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .page { padding: 16px; } .topbar { padding: 0 16px; }
}

/* keep wide tables inside their grid column */
.grid-2 > *, .files-layout > *, .access-layout > * { min-width: 0; }
.filters .grow { min-width: 220px; }

/* =====================================================================
   12. Access dropdown, upload box, versions (v2)
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.input.sm { height: 30px; font-size: 13px; padding: 0 8px; }
.avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.avatar.team { background: var(--surface-2); color: var(--text-2); }

/* <details> dropdowns open as a centred panel with a click-away backdrop (pure CSS) */
.access-dd, details.menu { position: static; display: inline-block; }
.access-dd > summary, details.menu > summary { list-style: none; cursor: pointer; }
.access-dd > summary::-webkit-details-marker, details.menu > summary::-webkit-details-marker { display: none; }
.access-dd[open] > summary::before, details.menu[open] > summary::before {
  content: ""; position: fixed; inset: 0; background: rgba(15,20,32,.35); z-index: 30; cursor: default; }
.access-pop, .menu-pop {
  position: fixed; z-index: 31; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 40px)); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 25px 60px rgba(0,0,0,.25);
  padding: 16px 18px; display: grid; gap: 12px; margin: 0; right: auto; min-width: 0; }
.menu-pop { width: min(300px, calc(100vw - 32px)); padding: 8px; gap: 4px; }
.menu-pop.wide { width: min(380px, calc(100vw - 32px)); padding: 14px; gap: 14px; }
.menu-form { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.menu-form b { font-size: 13px; }

.access-btn { max-width: 240px; }
.access-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-btn.inherit { color: var(--text-2); border-style: dashed; }
.ap-title { font-size: 15px; }
.ap-modes { display: grid; gap: 6px; font-size: 13px; }
.ap-modes label, .upload-access > label { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ap-modes small, .upload-access small { color: var(--text-3); }
.ap-list { border: 1px solid var(--border); border-radius: 10px; padding: 0; margin: 0; min-width: 0; transition: opacity .15s; }
/* "Same as folder" selected → the list is just a preview of what you'd set */
.access-pop:has(input[data-ap-mode][value="inherit"]:checked) .ap-list,
.upload-access:has(input[name="up_mode"][value="inherit"]:checked) .ap-list,
.modal-box:has(input[name="mode"][value="inherit"]:checked) .ap-list { opacity: .4; pointer-events: none; }
.ap-people { display: grid; max-height: 320px; overflow: auto; }
.ap-search { margin: 8px; width: calc(100% - 16px); }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--border); }
.ap-row:last-child { border-bottom: 0; }
.ap-row select { width: 190px; flex: none; }
.ap-row:not(:has(input:checked)) select { opacity: .45; }
.ap-row:has(input:checked) { background: #f7f9ff; }
.ap-everyone { background: var(--surface-2); }
.ap-who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; cursor: pointer; }
.ap-who small { display: block; color: var(--text-3); font-size: 11px; }
.ap-who input { width: 16px; height: 16px; flex: none; }
.ap-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.upload-box { border: 2px dashed var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 0 0 16px; display: grid; gap: 12px; transition: .15s; }
.upload-box.over { border-color: var(--accent); background: var(--accent-soft); }
.upload-box.busy { opacity: .6; pointer-events: none; }
.upload-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-2); }
.upload-pick label.btn { position: relative; }
.upload-access { display: grid; gap: 6px; font-size: 13px; border-top: 1px solid var(--border); padding-top: 10px; }
.upload-access .ap-people { max-height: 200px; }
.upload-access p { margin: 0; }
.upload-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ficon-folder { background: #e9eefb; color: var(--accent); }
.folder-row .file-name { color: inherit; text-decoration: none; }
.folder-row .file-name:hover span { text-decoration: underline; }
.tree-item.partial { color: var(--text-2); }
.files-t td { vertical-align: middle; }
.viewer-versions { margin: 0 18px 10px; color: #c9d0dc; font-size: 13px; }
.viewer-versions summary { cursor: pointer; }
.viewer-versions ul { margin: 6px 0 0; padding-left: 18px; }
.viewer-versions a { color: #9cc0ff; }
.who-list { display: flex; flex-wrap: wrap; gap: 4px; }
.files-t td:first-child { min-width: 230px; }
/* hide the people list until "Choose people" is picked (upload box and new sub-folder) */
.upload-access:has(input[name="up_mode"][value="inherit"]:checked) .ap-list,
.modal-box:has(input[name="mode"][value="inherit"]:checked) .ap-list { display: none; }
.file-name .meta { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 2px; }
.file-name .meta a { color: inherit; }
.files-t td:first-child { width: 55%; }
