/* teamworkpnqa: OneNote-style sections on the Files page (see sections.js) */
.fs-new { width: 100%; margin-top: 8px; justify-content: center; }

/* section header: a coloured tab with symbol, bold title and file count */
.fs-head { --c: #8a96a3; display: flex; align-items: center; gap: 4px; margin: 14px 0 6px; padding: 2px 4px 2px 0; border-radius: 9px; background: color-mix(in srgb, var(--c) 13%, transparent); box-shadow: inset 4px 0 0 var(--c); }
.fs-head:first-child { margin-top: 4px; }
.fs-head.fs-loose { --c: #8a96a3; background: none; box-shadow: inset 0 -1px 0 var(--border); border-radius: 0; }
.fs-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: inherit; }
.fs-chev { font-size: 10px; opacity: .6; transition: transform calc(.18s * var(--spd, 1)); }
.fs-toggle[aria-expanded="true"] .fs-chev { transform: rotate(90deg); }
.fs-icon { font-size: 17px; line-height: 1; width: 22px; text-align: center; flex: none; }
.fs-toggle b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-loose .fs-toggle b { font-weight: 600; color: var(--muted); }
.fs-toggle small { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--c) 30%, transparent); font-size: 11px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.fs-edit { flex: none; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 16px; cursor: pointer; opacity: .6; }
.fs-head:hover .fs-edit, .fs-edit:focus-visible { opacity: 1; }
.fs-edit:hover { background: color-mix(in srgb, var(--c) 25%, transparent); color: var(--text); }
.fs-head.fs-over, .file-row.fs-over { outline: 2px dashed var(--c, var(--accent)); outline-offset: 2px; }
.file-row[data-in-section] .file-card[draggable="true"] { cursor: grab; }
.file-card.fs-dragging { opacity: .45; }
.fs-move { opacity: .55; }
.file-row:hover .fs-move, .fs-move:focus-visible { opacity: 1; }

/* "Move to" menu */
.fs-menu { position: fixed; z-index: 95; min-width: 210px; max-width: min(300px, calc(100vw - 16px)); max-height: min(380px, calc(100vh - 16px)); overflow: auto; padding: 6px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 11px; box-shadow: 0 16px 44px rgba(0,0,0,.35); }
.fs-menu[hidden] { display: none; }
.fs-menu p { margin: 4px 8px 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fs-menu button { --c: #8a96a3; display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; box-shadow: inset 3px 0 0 transparent; }
.fs-menu button:hover, .fs-menu button:focus-visible { background: color-mix(in srgb, var(--c) 16%, transparent); outline: none; }
.fs-menu button[aria-checked="true"] { box-shadow: inset 3px 0 0 var(--c); font-weight: 700; }
.fs-menu button span { width: 20px; text-align: center; }
.fs-menu button b { font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-menu .fs-menu-new { margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; color: var(--accent-text, var(--accent)); font-weight: 600; }

/* new / change section window */
.fs-dialog { width: min(440px, calc(100vw - 24px)); }
.fs-dialog form { display: flex; flex-direction: column; gap: 12px; }
.fs-dialog .fs-x { border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; }
.fs-preview { --c: #7c8cff; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 4px 0 0 var(--c); }
.fs-preview .fs-icon { font-size: 22px; width: 28px; }
.fs-preview b { font-size: 15px; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-dialog fieldset { border: 0; margin: 0; padding: 0; }
.fs-dialog legend { padding: 0; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.fs-icons [role=radiogroup] { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; }
.fs-icons [role=radiogroup] button { height: 36px; border: 1px solid transparent; border-radius: 8px; background: color-mix(in srgb, var(--text) 5%, transparent); font-size: 18px; cursor: pointer; }
.fs-icons [role=radiogroup] button:hover { border-color: var(--border); }
.fs-icons [role=radiogroup] button[aria-checked="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.fs-own { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.fs-own input { width: 64px; text-align: center; font-size: 16px; }
.fs-colors [role=radiogroup] { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-colors [role=radiogroup] button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.fs-colors [role=radiogroup] button[aria-checked="true"] { box-shadow: 0 0 0 2px var(--text); }

/* ---------- project files (panel on a project's page, tag on the Files page) ---------- */
.fs-menu p.fs-menu-sub { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.fs-ptag { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--accent-text, var(--accent)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-panel { margin: 18px 0 22px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); animation: pf-in calc(.35s * var(--spd, 1)) cubic-bezier(.2,.8,.2,1); }
@keyframes pf-in { from { opacity: 0; transform: translateY(6px); } }
.pf-panel[hidden] { display: none; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pf-head h2 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pf-actions { display: flex; align-items: center; gap: 12px; }
.pf-link { font-size: 12.5px; color: var(--muted); text-decoration: none; }
.pf-link:hover { color: var(--text); }
.pf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.pf-card { position: relative; display: flex; align-items: center; border: 1px solid var(--border); border-radius: 11px; background: color-mix(in srgb, var(--text) 3%, transparent); transition: border-color calc(.18s * var(--spd, 1)), transform calc(.18s * var(--spd, 1)); }
.pf-card:hover { border-color: color-mix(in srgb, var(--text) 40%, transparent); transform: translateY(-1px); }
.pf-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: inherit; text-decoration: none; }
.pf-open .file-icon { flex: none; }
.pf-info { min-width: 0; display: flex; flex-direction: column; }
.pf-info b { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-info small { font-size: 11px; color: var(--muted); }
.pf-x { flex: none; width: 28px; height: 28px; margin-right: 6px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: 17px; cursor: pointer; opacity: 0; transition: opacity calc(.15s * var(--spd, 1)); }
.pf-card:hover .pf-x, .pf-x:focus-visible { opacity: 1; }
.pf-x:hover { background: color-mix(in srgb, #e5484d 20%, transparent); color: var(--text); }
.pf-empty { margin: 0; font-size: 12.5px; color: var(--muted); }
@media (hover: none) { .pf-x { opacity: 1; } }

/* ---------- project folders: made automatically, hold the project's files and its checklist ---------- */
.fs-head.fs-project { background: color-mix(in srgb, var(--c) 18%, transparent); }
.fs-check { --c: #f5b544; margin: 2px 0 8px 10px; padding: 8px 10px 6px; border-left: 2px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--c) 6%, transparent); }
.fs-check-top { display: flex; align-items: center; gap: 8px; width: 100%; padding: 2px 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.fs-check-top b { font-size: 12.5px; font-weight: 700; }
.fs-check-top small { margin-left: auto; font-size: 11px; color: var(--muted); }
.fs-check-top:hover b { text-decoration: underline; }
.fs-check-ic { color: #22a55b; font-size: 14px; }
.fs-check .pn-cl-bar { margin: 6px 0 4px; }
.fs-check-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border: 0; border-radius: 7px; background: none; color: var(--text); font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: background calc(.15s * var(--spd, 1)); }
.fs-check-row:hover, .fs-check-row:focus-visible { background: color-mix(in srgb, var(--c) 14%, transparent); outline: none; }
.fs-check-row i { flex: none; width: 14px; font-style: normal; text-align: center; color: var(--muted); }
.fs-check-row.done i { color: #22a55b; }
.fs-check-row.done span { color: var(--muted); text-decoration: line-through; }
.fs-check-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-check-row small { flex: none; font-size: 10.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.fs-check-row small.full { color: #22a55b; }
.fs-check-row.more { color: var(--muted); font-size: 11.5px; }
