/* ---------------- files (Bundle 9, split 2026-10-16) ----------------
 * The Files browser (project tab + Main Files), share dialogs,
 * the branded QR sheet, the Settings Backup & access card, and
 * the "coming soon" placeholder dress that was appended beside
 * them. Split out of styles.css by the fluid-width pass —
 * styles.css had reached the per-file upload ceiling (TOOLS.md)
 * — the way notifications.css and emails.css were split before
 * it. These rules load right after styles.css, exactly where
 * they stood at its tail; nothing changed but the address. */


/* ---------- Bundle 9 Files + Mirror M0 (2026-10-14) ----------
 * The Files browser (project tab + Main Files), share dialogs, the
 * branded QR sheet, and the Settings Backup & access card. */
.btn.fx-sm { padding: 6px 11px; font-size: 13px; }
/* wave483: the Files TOOLBAR reads at the standard button size — fx-sm's
 * 13px is right for dialogs and cards, small for the page's main toolbar
 * (Micheal's note). Scoped to .fx-actions so nothing else grows; the
 * Billdr skin's half of this bump lives in design-system.css. */
.fx-actions .btn.fx-sm { font-size: 14px; }
.btn.fx-dangerbtn { background: var(--danger); color: #fff; }
.btn.fx-dangerbtn:hover { filter: brightness(1.08); }
.danger-text { color: var(--danger) !important; }

.fx-zone { padding: 4px 2px 10px; }
.fx-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fx-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.fx-note { border: 1px solid var(--line); background: #fbf7ec; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.fx-note p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.fx-crumb { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fx-crumb-link { background: none; border: 0; color: var(--royal); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 2px 0; }
.fx-crumb-here { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
/* The Files Back bar (screen-fit pass, 2026-10-16): the owner's
 * "proper back button" — a full-size button at the very top of
 * the folder browser whenever a folder is open, labelled with
 * its destination ("Back to Files"), carrying the folder's
 * name and its Link / QR action. It replaces the small crumb
 * link above (files.js), whose rules now match nothing. */
.fx-backbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.fx-backbtn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.fx-backhere { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.fx-selbar { display: flex; align-items: center; gap: 10px; background: #eef3f9; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; margin-bottom: 10px; font-size: 13.5px; }
.fx-newfolder { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.fx-newfolder.hidden { display: none; }
.fx-newfolder input { flex: 1; min-width: 200px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.fx-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fx-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.fx-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.fx-table tr:last-child td { border-bottom: 0; }
.fx-table .fx-tick { width: 30px; }
.fx-table td.fx-tick input, .fx-table th.fx-tick input { width: 16px; height: 16px; }
.fx-filelink { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.fx-filelink:hover { color: var(--royal); }
.fx-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.fx-empty { color: var(--muted); text-align: center; padding: 26px 12px !important; }
.fx-menu-cell { width: 44px; text-align: right; }
.fx-foot { margin-top: 10px; font-size: 12.5px; }
.fx-switch { position: relative; display: inline-block; }
.fx-switch input { opacity: 0; width: 0; height: 0; }
.fx-switch span { position: absolute; inset: 0; transition: .15s; cursor: pointer; }
.fx-switch span:before { content: ""; position: absolute; background: #fff; border-radius: 50%; transition: .15s; }

.fx-menu { position: absolute; z-index: 1350; /* DW3 (B3): above the dialog layer — menus opened inside a dialog */ background: var(--card); border: 1px solid var(--line); min-width: 230px; }
.fx-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; cursor: pointer; color: var(--ink); text-align: left; }
.fx-menu-item:disabled { opacity: .45; cursor: default; }
.fx-menu-hint { margin-left: auto; font-size: 11.5px; color: var(--muted); }
.fx-menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }

.fx-overlay { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-start; justify-content: center; padding: 46px 14px; overflow-y: auto; }
.fx-dialog { background: var(--card); width: 100%; max-width: 480px; }
.fx-dialog.wide { max-width: 620px; }
.fx-dialog.sheet { max-width: 860px; }
.fx-dlg-head { display: flex; align-items: flex-start; gap: 10px; }
.fx-dlg-head h3 { margin: 0; }
.fx-dlg-head p { margin: 2px 0 0; }
.fx-form input[type="text"] { width: 100%; padding: 9px 11px; border: 1px solid var(--line); font-size: 14px; }
.fx-dlg-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; }
.fx-dlg-actions.start { justify-content: flex-start; }
.fx-warn { background: #fbf7ec; border: 1px solid #e7d9ae; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; }
.fx-target { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 1px solid var(--line); padding: 9px 12px; font-size: 14px; cursor: pointer; margin-bottom: 7px; text-align: left; }
.fx-share-live { display: flex; gap: 16px; flex-wrap: wrap; }
.fx-share-qr svg { width: 168px; height: 168px; }
.fx-share-qrcap { margin: 6px 0 0; font-size: 12.5px; color: var(--muted, #68707d); text-align: center; max-width: 200px; }
.fx-share-state { font-weight: 600; margin: 0 0 6px; }
.fx-share-url { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; word-break: break-all; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; margin: 0 0 10px; }

/* The branded QR sheet — print family with the report covers. */
.fx-sheet-scroll { max-height: 62vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.fx-sheet { background: #fff; padding: 26px 30px; color: var(--ink); }
.fx-sheet-head { display: flex; align-items: center; gap: 16px; background: var(--navy); border-bottom: 3px solid var(--gold); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.fx-sheet-head img { height: 46px; width: auto; }
.fx-sheet-brand { color: #fff; font-weight: 700; letter-spacing: .14em; margin: 0; font-size: 15px; }
.fx-sheet-tag { color: #c9d4de; margin: 2px 0 0; font-size: 12.5px; }
.fx-sheet h2 { margin: 0 0 4px; font-size: 20px; }
.fx-sheet-meta { color: var(--muted); margin: 0 0 2px; font-size: 13px; }
.fx-sheet-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 20px 0; }
.fx-sheet-grid.multi { grid-template-columns: 1fr 1fr; }
.fx-sheet-card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; text-align: center; page-break-inside: avoid; }
.fx-sheet-qr svg { width: 250px; height: 250px; }
.fx-sheet-grid.multi .fx-sheet-qr svg { width: 165px; height: 165px; }
.fx-sheet-folder { font-size: 18px; font-weight: 700; margin: 10px 0 2px; }
.fx-sheet-cap { color: var(--muted); font-size: 13px; margin: 0 0 6px; }
.fx-sheet-link { font-family: ui-monospace, Menlo, monospace; font-size: 11px; word-break: break-all; margin: 0; color: var(--muted); }
.fx-sheet-foot { border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
#fx-print-sheet { display: none; }
@media print {
  body.fx-printing > *:not(#fx-print-sheet) { display: none !important; }
  body.fx-printing #fx-print-sheet { display: block !important; }
  body.fx-printing .fx-sheet { padding: 0; }
}

/* Main Files picker */
.mf-pick { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.mf-search { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; background: var(--card); flex: 1; min-width: 200px; }
.mf-search input { border: 0; outline: none; font-size: 14px; flex: 1; background: transparent; }
.mf-select { padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: var(--card); flex: 2; min-width: 240px; }

/* Backup & access card (backup.js) */
.bk-banner { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; background: #f2f7fd; }
.bk-banner.ok { background: #edf7ee; border-color: #bfe0c3; }
.bk-banner.bad { background: #fbeeea; border-color: #efc4ba; }
.bk-statusline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; margin-bottom: 6px; }
.bk-pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7edf3; color: var(--accent); }
.bk-pill.ok { background: #dff2e1; color: #1e6b2a; }
.bk-pill.warn { background: #fbf0d2; color: #7c5a06; }
.bk-pill.bad { background: #f9dcd4; color: var(--danger); }
.bk-pill.busy { background: #dbe9fb; color: var(--royal); }
.bk-note { background: #fbf7ec; border: 1px solid #e7d9ae; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; }
.bk-stuck { border: 1px solid #efc4ba; background: #fdf3f0; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 10px 0; }
.bk-stuck ul { margin: 6px 0 2px; padding-left: 18px; }
.bk-provider { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
/* wave643-setspace: the Disconnect door sits in its own zone under the
 * Sync/Test actions — give it breathing room instead of crowding them. */
[data-bk-disc-zone] { margin-top: 12px; }
.bk-provider select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; }
.bk-confirm { font-size: 13.5px; line-height: 1.5; }
.bk-foot { margin-top: 14px; }

/* ---------- Wave 22: layout — Summary KPI row, placeholder and
 * support pages, and the wide-table scroll wrappers (plan L2,
 * extended here to the Clients, Quotes and Files tables the way
 * Wave 20 wrapped the money tables: the table scrolls inside its
 * card, the page never clips). ---------- */
.sum-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.sum-kpis:empty { display: none; }
.sum-kpi-label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.sum-kpi-value { margin: 6px 0 0; font-size: 21px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sum-kpi-value.gold { color: #7c5e10; }
.sum-kpi-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.soon-card { max-width: 720px; }
.soon-card-tagrow { margin: 0 0 12px; }
.soon-card-tagrow .soon-tag { margin-left: 0; }
.soon-body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.soon-body p:last-child { margin-bottom: 0; }
.soon-body a { color: var(--navy); font-weight: 600; }
.soon-door { margin-top: 4px; }
.fx-table-wrap { overflow-x: auto; }


/* ---------- Parity 4 (2026-10-16): folder mechanics — the
 * drop-on-folder highlight, the Add-file dialog's tabs + browse
 * list + target row, and the share row the dialogs carry. ------- */
.fx-table tr.fx-drop-on td { background: #e3edfb; }
.fx-table tr.fx-drop-on td:first-child { box-shadow: inset 3px 0 0 var(--royal); }
.fx-add-target { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13.5px; }
.fx-add-target label { font-weight: 600; color: var(--muted); }
.fx-add-target select { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 14px; }
.fx-target-fixed { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.fx-share-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 9px 0; margin: 0 0 6px; }
p.fx-share-row { color: var(--muted); font-size: 13px; }
.fx-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.fx-tab { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.fx-tab.on { color: var(--ink); border-bottom-color: var(--navy, #12283f); }   /* parity pass: active tab navy, not gold */
.fx-dropwell { border: 1.5px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; }
.fx-dropwell p { margin: 10px 0 0; font-size: 13px; }
.fx-browse { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.fx-browse-row { display: flex; align-items: center; gap: 9px; padding: 8px 12px; font-size: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.fx-browse-row:last-child { border-bottom: 0; }
.fx-browse-row:hover { background: #f4f7fb; }
.fx-browse-row input { width: 16px; height: 16px; }
.fx-browse-row .grow { flex: 1; }

/* ======================= DW1 · Files / Library (design wave, 2026-10-17) ======================= */
/* Capture rules 2, 4, 5, 8, 10 on the Files browser (Main Files "The
 * Rookery Archive" + the project Files tab — one renderer, fxPaint)
 * and the project Media tab's Library. This sheet loads BEFORE
 * design-system.css, so every rule here carries the #app/#view id
 * prefix to win its ties. Photos are evidence: frames and chrome
 * change, the images themselves get no filter or transform. */

/* -- Main Files job picker → Billdr's filter row: search first (one
 *    magnifier — the input's own, as every search box), then the job
 *    dropdown at filter width. The label's duplicate magnifier is a
 *    decorative aria-hidden svg and is hidden. -- */
body.skin-billdr #app #view-mainfiles .mf-pick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0 0 20px;
}
body.skin-billdr #app #view-mainfiles .mf-search {
  flex: 1 1 320px; max-width: 520px; min-height: 0; padding: 0; gap: 0; border: 0; border-radius: 0; background: transparent;
}
body.skin-billdr #app #view-mainfiles .mf-search > svg { display: none; }
body.skin-billdr #app #view-mainfiles .mf-search input {
  flex: 1; width: 100%; min-height: var(--ds-ctl); padding: 0 14px 0 38px; font-size: var(--ds-fs-sm);
  border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); outline: none;
}
body.skin-billdr #app #view-mainfiles .mf-search input:focus { border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
body.skin-billdr #app #view-mainfiles .mf-select { flex: 0 1 420px; min-width: 260px; }
body.skin-billdr #app #mainfiles-body > p.muted { font-size: var(--ds-fs-sm); }

/* -- actions row: secondaries as gold text-links with their icons
 *    (Billdr's "Export" manner), the one primary "Add file" pinned
 *    right (rule 2). Disabled "Print QR codes" reads disabled. -- */
body.skin-billdr #app .fx-zone { padding: 0; }
body.skin-billdr #app .fx-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; }
body.skin-billdr #app .fx-actions > .btn.btn-ghost.fx-sm,
body.skin-billdr #app .fx-backbar > .btn.btn-ghost.fx-sm {
  min-height: var(--ds-ctl-sm); padding: 0 2px; background: none; border: 0; box-shadow: none;
  color: var(--ds-navy); font-size: var(--ds-fs-sm); font-weight: 600; gap: 6px;
}
body.skin-billdr #app .fx-actions > .btn.btn-ghost.fx-sm:hover:not(:disabled),
body.skin-billdr #app .fx-backbar > .btn.btn-ghost.fx-sm:hover:not(:disabled) {
  background: none; color: var(--ds-navy); text-decoration: underline; text-underline-offset: 3px;
}
body.skin-billdr #app .fx-actions > .btn.btn-ghost.fx-sm:disabled { color: var(--ds-faint); background: none; opacity: 1; cursor: default; }
body.skin-billdr #app .fx-actions > .btn.btn-primary.fx-sm {
  order: 9; margin-left: auto; min-height: var(--ds-ctl); padding: 0 16px; font-size: var(--ds-fs); border-radius: var(--ds-r-ctl);
}
/* the Back bar keeps its full-size outline Back button (owner's ask) */
body.skin-billdr #app .fx-backbar { gap: 12px 16px; margin: 0 0 16px; }
body.skin-billdr #app .fx-backhere { font-size: var(--ds-fs-md); color: var(--ds-navy); }
body.skin-billdr #app .fx-backhere .ico { color: var(--ds-muted); }

/* -- selection bar + new-folder row: quiet white strips -- */
body.skin-billdr #app .fx-selbar { border-radius: var(--ds-r-ctl); padding: 8px 14px; margin-bottom: 12px; color: var(--ds-ink); }
body.skin-billdr #app .fx-newfolder { margin-bottom: 14px; }
body.skin-billdr #app .fx-newfolder input { border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); padding: 0 12px; font-size: var(--ds-fs); }

/* -- the table (rule 5): card wrapper, sentence-case grey heads (the
 *    old uppercase rule above, .fx-table th, is overridden here),
 *    two-line name cell = bold navy over grey, gold ⋮ at the edge. -- */
body.skin-billdr #app .fx-table-wrap { overflow-x: auto; background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r); }
body.skin-billdr #app .fx-table-wrap > table.fx-table { border: 0; border-radius: 0; }
body.skin-billdr #app table.fx-table th { text-transform: none; letter-spacing: 0; font-size: var(--ds-fs-xs); font-weight: 500; color: var(--ds-muted); background: var(--ds-card); }
body.skin-billdr #app table.fx-table td { padding-top: 20px; padding-bottom: 20px; }
body.skin-billdr #app table.fx-table :is(th, td).fx-tick { width: 52px; padding-left: 20px; padding-right: 8px; }
body.skin-billdr #app .fx-name .fx-filelink { color: var(--ds-navy); font-weight: 700; font-size: var(--ds-fs); gap: 10px; }
body.skin-billdr #app .fx-name .fx-filelink:hover { color: var(--ds-navy); }
body.skin-billdr #app .fx-name .fx-filelink .ico { color: var(--ds-muted); flex: none; }
body.skin-billdr #app .fx-name .fx-sub { font-size: var(--ds-fs-sm); color: var(--ds-muted); margin: 3px 0 0 27px; }
body.skin-billdr #app .fx-menu-cell { width: 56px; padding-right: 16px; }
body.skin-billdr #app .fx-menu-cell .btn { color: var(--ds-navy); }
body.skin-billdr #app .fx-menu-cell .btn .ico { width: 20px; height: 20px; stroke-width: 3; }
body.skin-billdr #app table.fx-table td.fx-empty { text-align: left; color: var(--ds-muted); font-size: var(--ds-fs-sm); padding: 22px 20px !important; }
/* a folder lit as a drop target: gold tint + gold edge (was blue) */
body.skin-billdr #app .fx-table tr.fx-drop-on td { background: var(--ds-gold-tint); }
body.skin-billdr #app .fx-table tr.fx-drop-on td:first-child { box-shadow: inset 3px 0 0 var(--ds-gold); }
/* footers: small grey lines under the card, left (Billdr's "Showing …" seat) */
body.skin-billdr #app .fx-foot { margin: 12px 4px 0; font-size: var(--ds-fs-sm); color: var(--ds-muted); }
body.skin-billdr #app .fx-zone > .up-hint { margin: 6px 4px 0; color: var(--ds-faint); }
body.skin-billdr #app .fx-zone > .fx-note { border-radius: var(--ds-r); padding: 14px 16px; }
body.skin-billdr #app .fx-zone > .list .ric { color: var(--ds-muted); }
/* "Shared with employees" — the shared switch (design-system §12) sits
 *  centred in its cell */
body.skin-billdr #app .fx-table .fx-switch { vertical-align: middle; }

/* -- Add-file dialog: Upload | Browse existing → segmented control
 *    (rule 8: grey track, white active pill) -- */
body.skin-billdr .fx-overlay .fx-tabs {
  display: inline-flex; gap: 2px; padding: 3px; margin: 8px 0 14px; border: 0;
  background: var(--ds-neutral-bg); border-radius: var(--ds-r-ctl);
}
body.skin-billdr .fx-overlay .fx-tab {
  border: 0; border-radius: var(--ds-r-sm); padding: 7px 14px; margin: 0;
  font-size: var(--ds-fs-sm); font-weight: 500; color: var(--ds-muted);
}
body.skin-billdr .fx-overlay .fx-tab:hover { color: var(--ds-navy); }
body.skin-billdr .fx-overlay .fx-tab.on { background: var(--ds-card); color: var(--ds-navy); font-weight: 600; box-shadow: 0 1px 3px rgba(15, 34, 51, .14); }
body.skin-billdr .fx-overlay .fx-tab:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr .fx-overlay .fx-add-target select {
  min-height: var(--ds-ctl); padding: 0 34px 0 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); font-size: var(--ds-fs-sm);
  -webkit-appearance: none; appearance: none;
  background: var(--ds-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366717f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px 16px;
}
body.skin-billdr .fx-overlay .fx-add-target select:focus { outline: none; border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
body.skin-billdr .fx-overlay .fx-add-target label { font-size: var(--ds-fs-sm); color: var(--ds-navy); }
body.skin-billdr .fx-overlay .fx-dropwell { border: 1.5px dashed var(--ds-line-strong); border-radius: var(--ds-r); padding: 22px; background: var(--ds-tint); }
body.skin-billdr .fx-overlay .fx-browse { border-color: var(--ds-line); border-radius: var(--ds-r); }
body.skin-billdr .fx-overlay .fx-browse-row { border-bottom-color: var(--ds-hair); padding: 10px 14px; font-size: var(--ds-fs-sm); }
body.skin-billdr .fx-overlay .fx-browse-row:hover { background: var(--ds-tint); }
body.skin-billdr .fx-overlay .fx-browse-row input { accent-color: var(--ds-gold-strong); }

/* -- Library (project Media tab, library.js renderLibraryView) -- */
/* Upload is the tab's one primary: pinned right; the count line left */
body.skin-billdr #app .up-zone:has([data-lib-stream]) > .actions-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
body.skin-billdr #app .up-zone:has([data-lib-stream]) > .actions-bar > [data-up-btn] { order: 3; }
body.skin-billdr #app .up-zone:has([data-lib-stream]) > .actions-bar > #proj-zip { order: 2; margin-left: auto; }
body.skin-billdr #app .up-zone:has([data-lib-stream]) > .actions-bar > .muted { order: 1; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .up-zone:has([data-lib-stream]) > .actions-bar:not(:has(#proj-zip)) > [data-up-btn] { margin-left: auto; }
/* filter row: shared .lib-filterbar look; the count sits as grey meta */
body.skin-billdr #app .lib-filterbar [data-lib-count] { font-size: var(--ds-fs-sm); color: var(--ds-muted); }
/* date heads: Billdr's small-caps grey timeline heads */
body.skin-billdr #app [data-lib-stream] .tl-day,
body.skin-billdr #app [data-lib-session-body] .tl-day {
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ds-muted);
  background: var(--ds-bg); border-bottom: 0; margin: 24px 0 10px; padding: 6px 2px;
}
body.skin-billdr #app [data-lib-stream] > .tl-day:first-child { margin-top: 4px; }
/* document rows: two-line bold navy / grey; Open + Download as gold text-links */
body.skin-billdr #app .lib-doclist { margin-top: 12px; }
body.skin-billdr #app .lib-doclist > .row { align-items: center; }
body.skin-billdr #app .lib-doclist .kind-ico { color: var(--ds-muted); }
body.skin-billdr #app .lib-doclist > .row > .btn.btn-ghost {
  min-height: var(--ds-ctl-sm); padding: 0 4px; background: none; border: 0; color: var(--ds-navy); font-size: var(--ds-fs-sm); font-weight: 600;
}
body.skin-billdr #app .lib-doclist > .row > .btn.btn-ghost:hover { background: none; color: var(--ds-navy); text-decoration: underline; text-underline-offset: 3px; }
/* selection bar: a white strip, count grey */
body.skin-billdr #app .actions-bar.lib-selbar { align-items: center; margin: 0 0 14px; }

@media (max-width: 760px) {
  body.skin-billdr #app #view-mainfiles .mf-search,
  body.skin-billdr #app #view-mainfiles .mf-select { flex: 1 1 100%; max-width: none; min-width: 0; }
  body.skin-billdr #app .fx-actions > .btn.btn-primary.fx-sm { margin-left: 0; min-height: 44px; }
  body.skin-billdr #app .fx-actions > .btn.btn-ghost.fx-sm,
  body.skin-billdr #app .lib-doclist > .row > .btn.btn-ghost { min-height: 44px; }
}

/* ======================================================================
 * DW2 P09 — Files: search inside the browser, per-file actions, and the
 * share dialog's link list. Structure first (works in Navy too), then
 * the light skin.
 * ====================================================================== */
.fx-actions .fx-search { flex: 1 1 220px; max-width: 340px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 13.5px; border: 1px solid var(--line, #e3e7ee); border-radius: 8px; background: var(--card, #fff); }
.fx-search-note { margin: 0 0 10px; font-size: 13px; color: var(--muted, #66707c); }
.fx-search-note .linkbtn { font-size: 13px; }
.fx-linkhist { margin-top: 16px; border-top: 1px solid var(--line, #e3e7ee); padding-top: 12px; }
.fx-linkhist-h { margin: 0 0 6px; font-size: 13px; font-weight: 700; }
.fx-linkhist-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line, #eef1f5); }
.fx-linkhist-row:last-child { border-bottom: 0; }
.fx-linkhist-row .grow { flex: 1; min-width: 0; }
.fx-linkhist-tok { color: var(--muted, #66707c); font-size: 12px; margin-left: 6px; font-variant-numeric: tabular-nums; }
.fx-linkpill { flex: none; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
body.skin-billdr #app .fx-actions .fx-search { min-height: var(--ds-ctl); border-color: var(--ds-line); border-radius: var(--ds-r-ctl); font-size: var(--ds-fs-sm); }
/* wave483: the toolbar search matches its buttons at the standard size. */
body.skin-billdr #app .fx-actions .fx-search { font-size: var(--ds-fs); }
body.skin-billdr #app .fx-search-note { color: var(--ds-muted); font-size: var(--ds-fs-sm); }
body.skin-billdr .fx-linkhist { border-top-color: var(--ds-hair); }
body.skin-billdr .fx-linkhist-h { color: var(--ds-navy); }
body.skin-billdr .fx-linkhist-row { border-bottom-color: var(--ds-hair); font-size: var(--ds-fs-sm); }
body.skin-billdr .fx-linkpill.fx-pill-on { background: var(--ds-ok-bg); color: var(--ds-ok-ink); }
body.skin-billdr .fx-linkpill.fx-pill-off { background: var(--ds-neutral-bg); color: var(--ds-neutral-ink); }
@media (max-width: 760px) { .fx-actions .fx-search { max-width: none; flex-basis: 100%; } }

/* ======================= DW3 B7 · share-link details + Library flags (2026-10-18) ======================= */
.fx-linkdet { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ds-hair, #eef1f5); }
.fx-linkdet-f { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ds-ink, #1f2a37); flex: 1 1 200px; }
.fx-linkdet-f .muted { font-weight: 400; }
.fx-linkdet .error { flex-basis: 100%; margin: 0; }
.fx-linkdet-wait { margin: 12px 0 0; font-size: 12.5px; }
.fx-linklabel { color: var(--ds-navy, #0f2233); }
.photogrid .lib-flagbadge {
  position: absolute; left: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.5;
  background: rgba(255, 255, 255, .94); color: var(--ds-orange-ink, #9a5b13); box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}
.photogrid .lib-flagbadge .ico { width: 12px; height: 12px; }
.photogrid .lib-flagbadge.is-reviewed { color: var(--ds-ok-ink, #2f6b3a); }
.photogrid .ph:has(.ph-cap) .lib-flagbadge { bottom: 34px; }
.lib-flagfilter.hidden { display: none; }
.lib-reviewnote { margin: -4px 0 10px; font-size: 12.5px; }

/* wave243: clickable column headers (Explorer-style sorting) */
.fx-thsort { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.fx-thsort:hover { color: var(--navy); }
.fx-thsort.on { color: var(--navy); font-weight: 700; }

/* wave273 — the Details table in the Explorer manner (look only): a
 * white header with thin column dividers so the columns read apart,
 * soft hairlines between rows, and the row hover / selected colours
 * (files-explorer.css) washing the whole row. Columns, widths, the
 * sort headers and the tick-all are untouched. */
.fx-table th { background: #fff; border-bottom-color: #e6e9ee; }
.fx-table th + th:not(.fx-menu-cell) { box-shadow: inset 1px 0 0 #e6e9ee; }
.fx-table th:hover:not(.fx-tick) { background: #f3f8fd; }
.fx-table tr.fx-row > td { border-bottom-color: #eef0f4; transition: background-color .08s; }
