/* BEL Feedback Studio — recorder window and shared modals.
   Colours follow the CRM tokens (crm-admin.css); purple is reserved for marks. */
:root {
  --fs-primary: #177a44;
  --fs-primary-hover: #156d3e;
  --fs-primary-light: #f0fdf4;
  --fs-bg: #f5f7f9;
  --fs-surface: #ffffff;
  --fs-text: #1e293b;
  --fs-muted: #5b6b73;
  --fs-border: #e2e8f0;
  --fs-mark: #7058a7;
  --fs-mark-light: #f0ebfb;
  --fs-warn-bg: #fff8e7;
  --fs-warn-text: #92400e;
  --fs-danger: #dc2626;
  --fs-danger-bg: #fef2f2;
  --fs-rec: #d93a4f;
  --fs-radius: 10px;
  --fs-focus: 2px solid #1d4ed8;
}

.fs-recorder *, .fs-crm *, .fs-modal * { box-sizing: border-box; }
.fs-recorder [hidden], .fs-crm [hidden] { display: none !important; }

.fs-recorder {
  margin: 0;
  min-height: 100vh;
  background: var(--fs-bg);
  color: var(--fs-text);
  font: 15px/1.5 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
}

.fs-recorder h1 { font-size: 22px; line-height: 1.3; margin: 0 0 4px; letter-spacing: -0.3px; }
.fs-recorder h2 { font-size: 15px; margin: 0; }
.fs-muted { color: var(--fs-muted); }
.fs-small { font-size: 13px; }
.fs-warn-text { color: var(--fs-warn-text); }
.fs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.fs-header {
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fs-surface);
  border-bottom: 1px solid var(--fs-border);
}
.fs-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--fs-primary); font-size: 18px; }
.fs-brandmark { width: 26px; height: 26px; border: 2px solid var(--fs-primary); border-radius: 7px; display: inline-grid; place-items: center; font-size: 16px; }
.fs-brand-sub { color: var(--fs-text); font-weight: 500; font-size: 14px; margin-left: 4px; }
.fs-header-note { font-size: 12px; color: var(--fs-muted); }

.fs-main { max-width: 760px; margin: 0 auto; padding: 24px 20px 48px; }

.fs-gate { text-align: center; padding: 48px 16px; }
.fs-gate .fs-row { justify-content: center; margin-top: 16px; }
.fs-spinner { width: 28px; height: 28px; margin: 0 auto 16px; border: 3px solid var(--fs-border); border-top-color: var(--fs-primary); border-radius: 50%; animation: fs-spin 0.9s linear infinite; }
body:not([data-screen="gate"]) .fs-spinner, .fs-gate:has(#fs-gate-actions:not(:empty)) .fs-spinner { display: none; }
@keyframes fs-spin { to { transform: rotate(360deg); } }

.fs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; border: 1px solid var(--fs-border);
  background: var(--fs-surface); color: var(--fs-text); font: inherit; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.fs-btn:hover { background: #eef4f1; }
.fs-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.fs-btn:focus-visible, .fs-input:focus-visible, .fs-link:focus-visible, .fs-check input:focus-visible { outline: var(--fs-focus); outline-offset: 2px; }
.fs-btn--primary { background: var(--fs-primary); border-color: var(--fs-primary); color: #fff; }
.fs-btn--primary:hover { background: var(--fs-primary-hover); }
.fs-btn--danger { background: var(--fs-danger); border-color: var(--fs-danger); color: #fff; }
.fs-btn--danger:hover { background: #b91c1c; }
.fs-btn--danger-quiet { color: var(--fs-danger); border-color: transparent; background: transparent; }
.fs-btn--danger-quiet:hover { background: var(--fs-danger-bg); }
.fs-btn--mark { background: var(--fs-mark-light); border-color: #d7c9f3; color: var(--fs-mark); font-weight: 600; }
.fs-btn--mark:hover { background: #e6dcf8; }
.fs-btn--mark.is-marking { background: var(--fs-mark); border-color: var(--fs-mark); color: #fff; box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.22); }
.fs-btn--mark.is-marking:hover { background: #5b21b6; border-color: #5b21b6; }
.fs-btn--mark.is-marking .fs-count { background: rgba(255, 255, 255, 0.25); color: #fff; }
.fs-btn--large { padding: 12px 22px; font-size: 16px; }
.fs-link { background: none; border: 0; padding: 4px 0; color: var(--fs-primary); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 8px; }
.fs-count { background: rgba(112, 88, 167, 0.15); border-radius: 4px; padding: 0 6px; font-size: 12px; }

.fs-input { padding: 9px 11px; border: 1px solid #cfd8e0; border-radius: 7px; font: inherit; background: #fff; color: var(--fs-text); min-width: 0; }
.fs-field { display: grid; gap: 6px; margin: 16px 0; }
.fs-field label { font-size: 13px; font-weight: 600; }
.fs-field .fs-input { width: 100%; }
.fs-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }

.fs-badge { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.fs-badge--neutral { background: #edf2f6; color: #64748b; }
.fs-badge--good { background: var(--fs-primary-light); color: #166534; }
.fs-badge--warn { background: var(--fs-warn-bg); color: var(--fs-warn-text); }

.fs-preview-frame { position: relative; margin: 20px 0; background: #eef2f5; border: 1px solid var(--fs-border); border-radius: var(--fs-radius); overflow: hidden; aspect-ratio: 16 / 9; }
.fs-preview-frame--small { margin: 12px 0; }
.fs-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f1b20; }
.fs-preview-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 20px; background: #f6f9fa; }
.fs-preview-empty p { margin: 2px 0; }

.fs-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fs-steps > li { padding-bottom: 18px; border-bottom: 1px solid var(--fs-border); }
.fs-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.fs-stepnum { width: 24px; height: 24px; border-radius: 50%; background: var(--fs-primary-light); color: var(--fs-primary); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.fs-step-head .fs-badge, .fs-step-head .fs-small { margin-left: auto; }

.fs-meter { display: inline-flex; gap: 3px; align-items: flex-end; height: 22px; }
.fs-meter i { width: 4px; border-radius: 2px; background: var(--fs-primary); opacity: 0.25; }
.fs-meter i:nth-child(1) { height: 6px; } .fs-meter i:nth-child(2) { height: 9px; } .fs-meter i:nth-child(3) { height: 12px; }
.fs-meter i:nth-child(4) { height: 15px; } .fs-meter i:nth-child(5) { height: 18px; } .fs-meter i:nth-child(6) { height: 20px; }
.fs-meter i:nth-child(7) { height: 21px; } .fs-meter i:nth-child(8) { height: 22px; }

.fs-start-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.fs-privacy { margin-top: 16px; color: var(--fs-muted); }

.fs-rec-head { display: flex; align-items: baseline; gap: 12px; }
.fs-rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--fs-rec); align-self: center; animation: fs-pulse 1.4s ease-in-out infinite; }
.is-paused .fs-rec-dot { background: #94a3b8; animation: none; }
@keyframes fs-pulse { 50% { opacity: 0.35; } }
.fs-rec-state { font-weight: 600; }
.fs-timer { font-size: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fs-controls { margin: 8px 0 4px; }
.fs-subhead { margin-top: 20px !important; margin-bottom: 6px !important; }

.fs-banner { border-radius: 8px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.fs-banner--warn { background: var(--fs-warn-bg); color: var(--fs-warn-text); }

.fs-marks { list-style: none; padding: 0; margin: 0; }
.fs-mark { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #edf1f4; }
.fs-stamp { background: var(--fs-mark-light); color: var(--fs-mark); border-radius: 4px; padding: 2px 7px; font-size: 12px; font-variant-numeric: tabular-nums; flex-shrink: 0; white-space: nowrap; }
.fs-mark.is-in-flight .fs-stamp { animation: fs-pulse 1.5s infinite; }
.fs-mark-note { flex: 1; }
.fs-mark-note input { width: 100%; padding: 7px 10px; border: 1px solid #cfd8e0; border-radius: 6px; font: inherit; font-size: 14px; }
.fs-empty-line { color: var(--fs-muted); font-size: 13px; padding: 6px 0; }

.fs-playback { margin: 16px 0 6px; border-radius: var(--fs-radius); aspect-ratio: 16 / 9; }
.fs-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--fs-border); }

/* Modals (in-page, never browser pop-ups) */
.fs-modal {
  border: 1px solid var(--fs-border); border-radius: 14px; padding: 24px; width: min(480px, calc(100vw - 32px));
  color: var(--fs-text); background: var(--fs-surface); box-shadow: 0 18px 48px rgba(15, 40, 50, 0.22);
  font: 15px/1.5 'Be Vietnam Pro', 'Segoe UI', Arial, sans-serif;
}
.fs-modal::backdrop { background: rgba(15, 30, 38, 0.45); }
.fs-modal-title { font-size: 18px; margin: 0 0 8px; }
.fs-modal-text { margin: 0 0 8px; }
.fs-modal-meta { margin: 0; color: var(--fs-muted); font-size: 13px; }
.fs-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.fs-modal--danger .fs-modal-title { color: #991b1b; }
.fs-saving-warning { font-weight: 600; color: var(--fs-warn-text); background: var(--fs-warn-bg); border-radius: 8px; padding: 10px 12px; }
.fs-progress { height: 8px; background: #e1ece6; border-radius: 8px; overflow: hidden; margin: 16px 0 8px; }
.fs-progress span { display: block; height: 100%; width: 0; background: var(--fs-primary); transition: width 0.2s; }
.fs-saving-status { margin: 0; font-size: 14px; color: var(--fs-muted); min-height: 21px; }
.fs-modal--done .fs-modal-title { color: var(--fs-primary); }
.fs-report-id { color: var(--fs-text); font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.fs-copy-box { width: 100%; font: 13px/1.5 Consolas, monospace; padding: 10px; border: 1px solid var(--fs-border); border-radius: 8px; }

.fs-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #18373e; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; max-width: calc(100vw - 32px);
  transition: opacity 0.2s, transform 0.2s; z-index: 2147483000;
}
.fs-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .fs-spinner, .fs-rec-dot { animation: none; }
  .fs-toast, .fs-progress span { transition: none; }
}

/* ---------- CRM Feedback page (inside #crm-feedback-root) ---------- */
.fs-crm { color: var(--fs-text); }
.fs-crm .fs-small { font-size: 13px; }
.fs-crm .fs-muted { color: var(--fs-muted); }
.fs-crm .fs-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fs-crm .fs-input { padding: 9px 11px; border: 1px solid #cfd8e0; border-radius: 7px; font: inherit; background: #fff; color: var(--fs-text); }
.fs-crm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 16px; }
.fs-crm-head h2 { margin: 4px 0; font-size: 24px; }
.fs-crm-head p { margin: 0; max-width: 720px; }
.fs-crm-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--fs-primary-light); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.fs-crm-banner p { margin: 2px 0 0; }
.fs-crm-filters { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; flex-wrap: wrap; }
.fs-crm-filters input { width: 340px; max-width: 100%; }
.fs-crm-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--fs-border); border-radius: 12px; overflow: hidden; }
.fs-crm-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--fs-muted); background: #fafcfd; padding: 12px 16px; }
.fs-crm-table td { padding: 14px 16px; border-top: 1px solid var(--fs-border); font-size: 14px; vertical-align: middle; }
.fs-crm-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--fs-text); cursor: pointer; text-align: left; }
.fs-crm-link:hover { color: var(--fs-primary); text-decoration: underline; }
.fs-crm-empty { padding: 40px 16px; text-align: center; color: var(--fs-muted); }
.fs-crm-empty h3 { color: var(--fs-text); margin: 0 0 6px; }
.fs-crm-more { text-align: center; margin: 16px 0; }
.fs-btn--small { padding: 6px 12px; font-size: 13px; }
.fs-badge--mark { background: var(--fs-mark-light); color: var(--fs-mark); }
.fs-crm-back { background: none; border: 0; padding: 4px 0; margin-bottom: 8px; color: var(--fs-muted); font: inherit; cursor: pointer; }
.fs-crm-back:hover { color: var(--fs-primary); }
.fs-crm-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fs-crm-id { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--fs-muted); font-variant-numeric: tabular-nums; }
.fs-crm-report { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.fs-crm-video { width: 100%; aspect-ratio: 16 / 9; background: #0f1b20; border-radius: 12px; display: block; }
.fs-crm-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--fs-border); margin-top: 16px; }
.fs-crm-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 0; font: inherit; font-size: 14px; color: var(--fs-muted); cursor: pointer; }
.fs-crm-tabs button[aria-selected="true"] { color: var(--fs-primary); border-bottom-color: var(--fs-primary); }
.fs-crm-tabpanel { padding: 16px 0; }
.fs-crm-notes { display: grid; gap: 6px; max-width: 640px; }
.fs-crm-notes label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.fs-crm-kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; margin: 0; }
.fs-crm-kv dt { color: var(--fs-muted); }
.fs-crm-kv dd { margin: 0; overflow-wrap: anywhere; }
.fs-crm-side h3 { font-size: 15px; margin: 0 0 8px; }
.fs-crm-moments { list-style: none; margin: 0 0 16px; padding: 0; }
.fs-crm-moment { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; background: none; border: 0; border-bottom: 1px solid #edf1f4; padding: 10px 4px; text-align: left; font: inherit; cursor: pointer; }
.fs-crm-moment:hover, .fs-crm-moment.is-selected { background: #faf8fd; }
.fs-crm-moment-text { display: grid; gap: 2px; font-size: 13px; }
.fs-crm-thumb { grid-column: 1 / -1; width: 100%; border-radius: 6px; border: 1px solid var(--fs-border); background: #f6f9fa; }
.fs-crm-side-block { border-top: 1px solid var(--fs-border); padding-top: 12px; margin-top: 12px; }
.fs-crm-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Report status: Open, In progress, Resolved, Rejected */
.fs-badge--info { background: #e8f1fd; color: #1d4ed8; }
.fs-badge--bad { background: var(--fs-danger-bg); color: #991b1b; }
.fs-badge--review { background: #f1ebfd; color: #6d28d9; }
/* "x/y fixes verified" under Awaiting review */
.fs-crm-progress { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 600; color: #6d28d9; }
.fs-crm-progress-bar { flex: 0 0 72px; height: 6px; border-radius: 999px; background: #e9e2f8; overflow: hidden; }
.fs-crm-progress-bar > span { display: block; height: 100%; border-radius: inherit; background: #7c3aed; }
.fs-crm-status-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.fs-crm-status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--fs-border); border-radius: 999px; background: #fff; color: var(--fs-text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.fs-crm-status-chip:hover { border-color: #b8c6d1; }
.fs-crm-status-chip[aria-pressed="true"] { background: var(--fs-primary-light); border-color: var(--fs-primary); color: var(--fs-primary); font-weight: 600; }
.fs-crm-status-chip:focus-visible { outline: var(--fs-focus); outline-offset: 2px; }
.fs-crm-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: #edf2f6; color: var(--fs-muted); font-size: 12px; font-variant-numeric: tabular-nums; text-align: center; }
.fs-crm-status-chip[aria-pressed="true"] .fs-crm-count { background: #fff; color: var(--fs-primary); }
.fs-crm-status-line { max-width: 220px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-crm-status-now { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fs-crm-status-note { margin: 0 0 10px; font-size: 13px; overflow-wrap: anywhere; }
.fs-crm-history { margin-top: 12px; font-size: 13px; }
.fs-crm-history summary { cursor: pointer; color: var(--fs-muted); }
.fs-crm-history ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fs-crm-history li { border-left: 2px solid var(--fs-border); padding-left: 10px; overflow-wrap: anywhere; }
.fs-modal-note { width: 100%; margin-top: 6px; resize: vertical; font: inherit; padding: 9px 11px; border: 1px solid #cfd8e0; border-radius: 7px; }
.fs-modal-error { color: #991b1b; margin: 6px 0 0; }

/* Copy prompt buttons */
.fs-crm-head-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.fs-crm-row-actions { display: flex; gap: 6px; justify-content: flex-end; white-space: nowrap; }

/* Fix report ("View ticket"): what was reported next to what changed */
.fs-ticket { width: min(1120px, calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 28px 32px; }
.fs-ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--fs-border); }
.fs-ticket-title { font-size: 22px; margin: 8px 0 4px; }
.fs-ticket-summary { margin: 0 0 4px; max-width: 760px; }
.fs-ticket-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--fs-muted); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.fs-ticket-close:hover { background: #edf2f6; color: var(--fs-text); }
.fs-ticket-issue { padding: 18px 0 20px; border-bottom: 1px solid var(--fs-border); }
.fs-ticket-issue-title { display: flex; align-items: center; gap: 10px; font-size: 16px; margin: 0 0 12px; }
.fs-ticket-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.fs-ticket-side { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; }
.fs-ticket-side--before { background: #f6f7f9; }
.fs-ticket-side--after { background: var(--fs-primary-light); }
.fs-ticket-label { font-size: 12px; font-weight: 600; color: var(--fs-muted); }
.fs-ticket-side--after .fs-ticket-label { color: var(--fs-primary); }
.fs-ticket-imgbtn { padding: 0; border: 1px solid var(--fs-border); border-radius: 8px; background: #fff; cursor: zoom-in; overflow: hidden; display: block; width: 100%; }
.fs-ticket-img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #fff; }
.fs-ticket-noimage { display: grid; place-items: center; min-height: 72px; border: 1px dashed #cfd8e0; border-radius: 8px; color: var(--fs-muted); font-size: 13px; background: rgba(255, 255, 255, 0.6); }
.fs-ticket-video { width: 100%; max-height: 300px; border-radius: 8px; background: #0f1b20; display: block; }
.fs-ticket-play { justify-self: start; }
.fs-ticket-quote { margin: 0; padding: 0 0 0 12px; border-left: 3px solid #cfd8e0; font-style: italic; color: #334155; font-size: 14px; overflow-wrap: anywhere; }
.fs-ticket-changed { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.fs-ticket-steps { margin-top: 14px; }
.fs-ticket-steps ol { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 6px; }
.fs-ticket-step { counter-increment: step; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px; border: 1px solid var(--fs-border); border-radius: 8px; background: #fff; font-size: 14px; }
.fs-ticket-step-text::before { content: counter(step) ". "; color: var(--fs-muted); }
.fs-ticket-step-text { flex: 1; min-width: 0; }
.fs-ticket-start { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.fs-clip { border-radius: 8px; overflow: hidden; background: #0f1b20; }
.fs-clip .fs-ticket-video { border-radius: 0; cursor: pointer; }
.fs-clip-controls { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: #e2e8f0; }
.fs-clip-toggle { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 13px; cursor: pointer; }
.fs-clip-toggle:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); }
.fs-clip-toggle:disabled { opacity: 0.5; cursor: progress; }
.fs-clip-bar { flex: 1; min-width: 0; accent-color: #7c9cff; cursor: pointer; }
.fs-clip-time { font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Full screen for the reported clip (FB-QBJ95W7FZ2). */
.fs-clip-full { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }
.fs-clip-full:hover { background: rgba(255, 255, 255, 0.24); }
.fs-clip-full:focus-visible, .fs-clip-toggle:focus-visible { outline: 2px solid #7c9cff; outline-offset: 2px; }
.fs-clip:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; border-radius: 0; background: #000; }
.fs-clip:fullscreen .fs-ticket-video { flex: 1; min-height: 0; width: 100%; max-height: none; height: auto; object-fit: contain; }
.fs-clip:fullscreen .fs-clip-controls { padding: 10px 18px; background: #0f1b20; }
.fs-lightbox { padding: 0; border: 0; background: transparent; max-width: calc(100vw - 48px); max-height: calc(100vh - 48px); overflow: visible; }
.fs-lightbox::backdrop { background: rgba(10, 20, 26, 0.78); }
.fs-lightbox-img { display: block; max-width: calc(100vw - 48px); max-height: calc(100vh - 110px); border-radius: 10px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.fs-lightbox-caption { margin: 10px 0 0; color: #e2e8f0; font-size: 13px; text-align: center; }
.fs-lightbox-close { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff; color: var(--fs-text); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.fs-ticket-step-text { overflow-wrap: anywhere; }
.fs-ticket-step-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fs-ticket-check { font-size: 13px; font-weight: 600; max-width: 320px; overflow-wrap: anywhere; }
.fs-ticket-check--works { color: #166534; }
.fs-ticket-check--broken { color: #991b1b; }
.fs-ticket-dev { margin-top: 16px; font-size: 13px; }
.fs-ticket-dev summary { cursor: pointer; color: var(--fs-muted); }
.fs-ticket-dev ul { margin: 4px 0 10px; padding-left: 18px; font-family: Consolas, monospace; }
.fs-crm-fixline { margin: 8px 0 0; }
/* Rounds: every recording of one problem, the transcript, earlier fixes */
.fs-crm-thread { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fs-crm-thread-item { padding: 5px 10px; border: 1px solid var(--fs-border); border-radius: 999px; background: #fff; color: var(--fs-text); font: inherit; font-size: 13px; cursor: pointer; }
.fs-crm-thread-item:hover { border-color: #b8c6d1; }
.fs-crm-thread-item[aria-current="true"] { background: var(--fs-primary-light); border-color: var(--fs-primary); color: var(--fs-primary); cursor: default; }
.fs-crm-thread-item:focus-visible { outline: var(--fs-focus); outline-offset: 2px; }
.fs-crm-nofix { margin-top: 4px; color: var(--fs-warn-text); }
/* Decision log: the question waiting for the owner, and the decisions on this screen. */
.fs-crm-decision-needed { margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--fs-warn-text); background: var(--fs-warn-bg); border-radius: 6px; font-size: 13px; }
.fs-crm-decision-needed strong { display: block; color: var(--fs-warn-text); }
.fs-crm-decision-question { margin: 4px 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.fs-crm-decision-needed .fs-small { margin: 0; }
.fs-crm-decision-group { margin-top: 8px; }
.fs-crm-decision-group summary { cursor: pointer; }
.fs-crm-decision-label { margin: 0 0 4px; font-weight: 600; }
.fs-crm-decision-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fs-crm-decision { padding-bottom: 8px; border-bottom: 1px solid var(--fs-border, rgba(0, 0, 0, 0.08)); overflow-wrap: anywhere; }
.fs-crm-decision:last-child { border-bottom: 0; padding-bottom: 0; }
.fs-crm-decision-rule { font-size: 13px; font-weight: 600; }
.fs-crm-decision .fs-crm-badges { margin-top: 4px; }
.fs-crm-transcript { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.fs-crm-transcript-line { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 6px 4px; background: none; border: 0; border-bottom: 1px solid #edf1f4; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.fs-crm-transcript-line:hover { background: #faf8fd; }
.fs-ticket-waiting { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--fs-warn-bg); color: var(--fs-warn-text); font-size: 14px; max-width: 760px; }
.fs-ticket-rounds { margin-top: 16px; font-size: 14px; }
.fs-ticket-rounds summary { cursor: pointer; color: var(--fs-muted); font-weight: 600; }
.fs-ticket-round { padding: 12px 0; border-bottom: 1px solid var(--fs-border); }
.fs-ticket-round ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.fs-ticket-round ul { margin: 4px 0 0; padding-left: 18px; }

/* Sender of each report (the list is shared by all admins). */
.fs-crm-mine { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; user-select: none; }
.fs-crm-mine input { width: auto; margin: 0; }
.fs-crm-reporter { white-space: nowrap; }
.fs-crm-reported-by { margin: 2px 0 0; font-size: 14px; color: inherit; }
.fs-crm-reported-by .fs-crm-reporter-name { font-weight: 600; }

/* Ticket before the fix report: the recording (Open), plus transcript and issues found (In progress). */
.fs-ticket-early { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--fs-border); }
.fs-ticket-early--work { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fs-ticket-early-main { min-width: 0; }
.fs-ticket-recording { display: block; width: 100%; max-height: 54vh; border-radius: 8px; background: #0f1b20; }
.fs-ticket-early-section { min-width: 0; }
.fs-ticket-early-section > .fs-ticket-label { margin: 0 0 8px; }
.fs-ticket-early-moments .fs-crm-moments { max-height: 54vh; overflow: auto; margin: 0; }
.fs-ticket-transcript .fs-crm-transcript { max-height: 480px; }
.fs-ticket-transcript .fs-crm-empty, .fs-findings .fs-crm-empty { padding: 16px 0; text-align: left; }
.fs-markdown { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
.fs-markdown h4 { font-size: 15px; margin: 14px 0 6px; }
.fs-markdown h5 { font-size: 14px; margin: 12px 0 4px; }
.fs-markdown > :first-child { margin-top: 0; }
.fs-markdown p { margin: 0 0 8px; }
.fs-markdown ul, .fs-markdown ol { margin: 0 0 8px; padding-left: 22px; }
.fs-markdown li { margin: 2px 0; }
.fs-markdown code { font-size: 13px; padding: 1px 4px; border-radius: 4px; background: #f1f4f7; }
.fs-markdown-table { border-collapse: collapse; margin: 0 0 8px; font-size: 13px; }
.fs-markdown-table td { border: 1px solid var(--fs-border); padding: 4px 8px; vertical-align: top; }
.fs-markdown-table tr:first-child td { font-weight: 600; background: #f6f7f9; }
.fs-crm-findings-toggle { margin-top: 14px; }
.fs-crm-findings-toggle summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--fs-primary); margin-bottom: 8px; }
