/* v72.65: file status, the file window and team chat (js/file-view.js) */
.fv-pill { font: inherit; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.fv-pill.sm { font-size: 11.5px; padding: 5px 9px; }
.fv-pill.none { background: transparent; color: var(--muted); border: 1px dashed var(--line2, rgba(0,0,0,.2)); }
.fv-pill:disabled { cursor: default; opacity: .85; }
.fv-pill:focus-visible, .fv-chatbtn:focus-visible, .fv-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fv-chatbtn { display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 12px; font-weight: 600; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line2, rgba(0,0,0,.16)); background: var(--surface, #fff); color: var(--ink); cursor: pointer; }
.fv-chatbtn .jjs-ico { width: 15px; height: 15px; }
.fv-name { cursor: pointer; }
.fv-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.fv-menu { max-height: calc(100vh - 16px); overflow-y: auto; position: fixed; z-index: 1000; min-width: 200px; background: var(--surface, #fff); border: 1px solid var(--panel-border, rgba(0,0,0,.1)); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.16); padding: 5px; display: flex; flex-direction: column; }
.fv-menu button { display: flex; align-items: center; gap: 9px; text-align: left; font: inherit; font-size: 13.5px; background: none; border: 0; padding: 8px 10px; border-radius: 7px; color: var(--ink); cursor: pointer; }
.fv-menu button:hover, .fv-menu button:focus-visible { background: rgba(22,22,26,.06); outline: none; }
.fv-menu button.on { font-weight: 700; }
.fv-menu hr { border: 0; border-top: 1px solid var(--line, rgba(0,0,0,.09)); margin: 4px 0; }
.fv-menu .fv-mng { color: var(--muted); }
.fv-menu .fv-mng .jjs-ico { width: 14px; height: 14px; }
.fv-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; display: inline-block; }
.fv-dot.empty { border: 1.5px dashed var(--muted); }
.fv-dot.big { width: 16px; height: 16px; }
/* statuses list */
.fv-strows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.fv-strow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fv-strow input { flex: 1 1 150px; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2, rgba(0,0,0,.16)); }
.fv-swatches { display: flex; gap: 4px; flex-wrap: wrap; }
.fv-sw { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.fv-sw.on { border-color: var(--surface, #fff); box-shadow: 0 0 0 2px var(--ink); }
.fv-used { color: var(--muted); font-size: 12px; }
/* the file window */
.jjs-modal.fv-modal { width: min(1040px, calc(100vw - 32px)); max-width: none; padding: 0; overflow: hidden; }
.fv { display: flex; flex-direction: column; max-height: calc(100vh - 64px); }
.fv-top { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--line, rgba(0,0,0,.09)); }
.fv-top h3 { margin: 0; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.fv-x { flex: 0 0 auto; }
.fv-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 0; flex: 1 1 auto; }
.fv-info { padding: 16px 22px 20px; overflow-y: auto; border-right: 1px solid var(--line, rgba(0,0,0,.09)); }
.fv-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 0; align-items: center; border-bottom: 1px solid var(--line, rgba(0,0,0,.06)); }
.fv-lab { font-size: 12.5px; color: var(--muted); }
.fv-val { font-size: 14px; overflow-wrap: anywhere; }
.fv-note { white-space: pre-wrap; font-size: 13.5px; }
.fv-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fv-chat { display: flex; flex-direction: column; min-height: 420px; max-height: calc(100vh - 140px); background: rgba(22,22,26,.02); }
.fv-chathead { display: flex; align-items: baseline; gap: 8px; padding: 14px 20px 8px; }
.fv-chathead small { color: var(--muted); font-size: 12px; }
.fv-msgs { flex: 1 1 auto; overflow-y: auto; padding: 4px 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.fv-empty { color: var(--muted); font-size: 13.5px; margin: 24px 0; text-align: center; }
.fv-msg { display: flex; gap: 10px; align-items: flex-start; }
.fv-msg .tm-av { flex: 0 0 auto; }
.fv-body { min-width: 0; flex: 1 1 auto; }
.fv-meta { display: flex; align-items: baseline; gap: 8px; }
.fv-meta b { font-size: 13.5px; }
.fv-meta small { color: var(--muted); font-size: 12px; }
.fv-text { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; margin-top: 2px; }
.fv-msg.forme .fv-text { background: rgba(242,113,28,.08); border-radius: 8px; padding: 4px 8px; margin-left: -8px; }
.fv-at { color: #2f7cf6; font-weight: 600; }
.fv-at.me { background: rgba(47,124,246,.12); border-radius: 4px; padding: 0 3px; }
.fv-del { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; line-height: 1; padding: 0 4px; }
.fv-send { position: relative; display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 14px; border-top: 1px solid var(--line, rgba(0,0,0,.09)); background: var(--surface, #fff); }
.fv-send textarea { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 14px; line-height: 20px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line2, rgba(0,0,0,.16)); resize: none; max-height: 140px; }
.fv-suggest { position: absolute; left: 16px; bottom: calc(100% - 4px); width: min(320px, calc(100% - 32px)); background: var(--surface, #fff); border: 1px solid var(--panel-border, rgba(0,0,0,.1)); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 4px; display: flex; flex-direction: column; z-index: 5; }
.fv-suggest[hidden] { display: none; }
.fv-suggest button { display: flex; align-items: center; gap: 8px; text-align: left; font: inherit; background: none; border: 0; padding: 7px 8px; border-radius: 7px; cursor: pointer; color: var(--ink); }
.fv-suggest button.on, .fv-suggest button:hover { background: rgba(22,22,26,.06); }
.fv-suggest span { display: flex; flex-direction: column; line-height: 1.2; }
.fv-suggest small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px){
  .jjs-modal.fv-modal { width: 100vw; height: 100%; max-height: none; border-radius: 0; }
  .fv { max-height: 100vh; max-height: 100dvh; height: 100vh; height: 100dvh; }
  .fv-send { position: sticky; bottom: 0; z-index: 2; }
  .jjs-modal-bg:has(.fv-modal) { padding: 0; }
  .fv-grid { grid-template-columns: 1fr; overflow-y: auto; }
  .fv-info { border-right: 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.09)); overflow: visible; }
  .fv-chat { min-height: 360px; max-height: none; }
  .fv-send textarea { font-size: 16px; }
  .fv-pill, .fv-chatbtn { padding: 8px 11px; }
  .fv-row { grid-template-columns: 96px minmax(0, 1fr); }
}

/* v72.65: to-dos made from the team chat */
.fv-taskfile { display: inline-flex; align-items: center; gap: 4px; }
.fv-taskfile .jjs-ico { width: 12px; height: 12px; }
.jjs-btn.fv-taskopen { margin: -4px 0 12px; }
/* v72.69: files in the team chat */
.fv-clip { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line2, rgba(0,0,0,.16)); background: var(--surface, #fff); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fv-clip .jjs-ico { width: 18px; height: 18px; }
.fv-clip:hover:not(:disabled), .fv-clip:focus-visible { background: rgba(22,22,26,.06); }
.fv-clip:disabled { opacity: .45; cursor: default; }
.fv-clipmenu { min-width: 220px; max-width: min(340px, calc(100vw - 16px)); }
.fv-clipmenu button .jjs-ico { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.fv-clipmenu button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fv-pending { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 16px 0; background: var(--surface, #fff); border-top: 1px solid var(--line, rgba(0,0,0,.09)); }
.fv-pending + .fv-send { border-top: 0; }
.fv-pend { position: relative; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; border: 1px solid var(--line2, rgba(0,0,0,.16)); border-radius: 10px; padding: 6px 8px 8px; font-size: 12.5px; overflow: hidden; }
.fv-pend .fv-picon .jjs-ico { width: 15px; height: 15px; color: var(--muted); }
.fv-pend .fv-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; font-weight: 600; }
.fv-pend small { color: var(--muted); white-space: nowrap; }
.fv-pend.error { border-color: #e5484d; }
.fv-pend.error small { color: #c62d32; white-space: normal; }
.fv-pend .fv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.fv-pend .fv-bar b { display: block; height: 100%; width: 0; background: var(--ink, #0b0b0b); transition: width .2s; }
.fv-pend.ready .fv-bar b, .fv-pend.ref .fv-bar b { display: none; }
.fv-unpend { background: none; border: 0; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; padding: 0 2px; }
.fv-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fv-thumb { padding: 0; border: 1px solid var(--line, rgba(0,0,0,.09)); border-radius: 10px; overflow: hidden; background: rgba(22,22,26,.04); cursor: zoom-in; width: 160px; height: 120px; }
.fv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fv-thumb.broken { cursor: pointer; }
.fv-thumb.broken img { visibility: hidden; }
.fv-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; text-align: left; font: inherit; font-size: 13px; color: var(--ink); background: var(--surface, #fff); border: 1px solid var(--line2, rgba(0,0,0,.16)); border-radius: 10px; padding: 7px 10px; cursor: pointer; min-width: 0; }
.fv-file .jjs-ico { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.fv-file .fv-fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 600; }
.fv-file small { color: var(--muted); white-space: nowrap; }
.fv-file:hover:not(:disabled), .fv-thumb:hover { border-color: var(--ink, #0b0b0b); }
.fv-file:disabled { cursor: default; opacity: .6; }
.fv-chat { position: relative; }
.fv-chat.fv-drop::after { content: 'Drop to attach'; position: absolute; inset: 8px; border: 2px dashed var(--ink, #0b0b0b); border-radius: 14px; background: rgba(255,255,255,.88); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; z-index: 5; pointer-events: none; }
@media (max-width: 760px) { .fv-thumb { width: 130px; height: 100px; } .fv-pend .fv-fname { max-width: 120px; } }
