/* Nico — Salesfloor (nico-salesfloor.js). Tokens only, so dark / light / sierra come from the
   theme. One column on phones and folded duos; rep grid + side column at ≥ 720 px.
   Byte-identical copy at IOS/nico-salesfloor.css. */
html:not(.sf-visible) [data-salesfloor-open] { display: none !important; }
html.sf-open, html.sf-open body { overflow: hidden; }
.sf-page { position: fixed; inset: 0; z-index: 900; background: var(--bg, var(--surface-1)); color: var(--text); font-family: var(--sans, -apple-system, system-ui, sans-serif); display: flex; justify-content: center; }
.sf-page[hidden], html.nico-gated .sf-page { display: none !important; }
.sf-page * { box-sizing: border-box; }
.sf-wrap { width: 100%; max-width: 1240px; display: flex; flex-direction: column; min-height: 0; padding: calc(8px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
.sf-head { display: flex; align-items: center; gap: 10px; padding: 4px 0 2px; flex-wrap: wrap; }
.sf-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.025em; flex: 1; min-width: 120px; outline: none; }
.sf-back { appearance: none; border: 0; background: none; color: var(--accent); font: 500 16px var(--sans, system-ui); min-height: 44px; padding: 0 6px 0 0; cursor: pointer; }
.sf-out, .sf-link { color: var(--accent); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.sf-sub { margin: 0 0 10px; font-size: 13px; color: var(--text-2); min-height: 18px; }
.sf-warn { color: var(--err, #b3261e); }
.sf-tabs { display: flex; gap: 18px; border-bottom: 0.5px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sf-tab { appearance: none; border: 0; background: none; color: var(--text-2); font: 600 14.5px var(--sans, system-ui); padding: 10px 0; min-height: 44px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.sf-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.sf-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 0 calc(28px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.sf-empty { padding: 28px 8px; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.sf-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 0.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-1); }
.sf-total { padding: 12px 14px; border-right: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); min-width: 0; }
.sf-total b { display: block; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-total span, .sf-stats span { font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.sf-floor { display: flex; flex-direction: column; gap: 14px; }
.sf-reps, .sf-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sf-rep, .sf-card, .sf-box { border: 0.5px solid var(--line); background: var(--surface-1); border-radius: 16px; padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sf-rep.live { border-color: var(--err, #b3261e); box-shadow: 0 0 0 1px color-mix(in oklch, var(--err, #b3261e) 40%, transparent) inset; }
.sf-rep-top { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.sf-rep h3, .sf-card h3 { margin: 0; font-size: 16px; font-weight: 650; overflow-wrap: anywhere; }
.sf-box h4, .sf-tp h4 { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); font-weight: 650; }
.sf-you { font-weight: 400; color: var(--text-2); }
.sf-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.sf-st i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3, var(--text-2)); }
.sf-st.on_call { color: var(--err, #b3261e); font-weight: 600; }
.sf-st.on_call i { background: var(--err, #b3261e); }
.sf-st.dialing i, .sf-st.wrap_up i { background: var(--accent); }
.sf-mono { font-family: var(--mono, ui-monospace, monospace); font-weight: 400; }
.sf-callee { font-size: 14.5px; overflow-wrap: anywhere; }
.sf-callee span { color: var(--text-2); }
.sf-meta { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; line-height: 1.45; }
.sf-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 6px 0 4px; border-bottom: 0.5px solid var(--line-soft, var(--line)); }
.sf-stats > div { min-width: 0; }
.sf-stats span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9.5px; letter-spacing: 0.04em; }
.sf-stats b { display: block; font-family: var(--mono, ui-monospace, monospace); font-size: 16px; font-weight: 600; }
.sf-chip { appearance: none; align-self: flex-start; border: 0.5px solid var(--line); background: var(--surface-2, var(--surface-1)); color: var(--text); font: 600 13px var(--sans, system-ui); min-height: 36px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.sf-seg { display: inline-flex; align-self: flex-start; border: 0.5px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface-1); }
.sf-seg button { appearance: none; border: 0; background: none; color: var(--text-2); font: 600 12.5px var(--sans, system-ui); padding: 0 12px; min-height: 34px; border-radius: 999px; cursor: pointer; }
.sf-seg button[aria-pressed="true"] { background: var(--surface-3, var(--surface-2)); color: var(--text); }
.sf-feed { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.sf-feed li { position: relative; padding: 8px 64px 8px 0; border-top: 0.5px solid var(--line-soft, var(--line)); font-size: 13.5px; overflow-wrap: anywhere; }
.sf-feed li:first-child { border-top: 0; }
.sf-time { position: absolute; right: 0; top: 9px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sf-table th, .sf-table td { padding: 8px 6px; text-align: right; border-bottom: 0.5px solid var(--line-soft, var(--line)); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sf-table th:first-child, .sf-table td:first-child { text-align: left; white-space: normal; }
.sf-table thead th { font-weight: 600; color: var(--text-2); font-size: 12px; }
.sf-table tfoot th, .sf-table tfoot td { font-weight: 650; border-bottom: 0; }
.sf-scroll { overflow-x: auto; border: 0.5px solid var(--line); border-radius: 14px; background: var(--surface-1); padding: 0 8px; }
.sf-rank { color: var(--text-2); margin-right: 8px; font-family: var(--mono, ui-monospace, monospace); }
.sf-repbtn { appearance: none; border: 0; background: none; padding: 0; color: var(--accent); font: 600 13px var(--sans, system-ui); text-align: left; cursor: pointer; min-height: 28px; }
.sf-tp { border-top: 0.5px solid var(--line-soft, var(--line)); padding-top: 8px; font-size: 13.5px; line-height: 1.5; }
.sf-tp p { margin: 0 0 4px; }
.sf-tp ul { margin: 0 0 6px; padding-left: 18px; }
.sf-k { font-size: 12px; font-weight: 650; color: var(--text-2); }
.sf-tab:focus-visible, .sf-chip:focus-visible, .sf-seg button:focus-visible, .sf-repbtn:focus-visible, .sf-back:focus-visible, .sf-out:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 560px) { .sf-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) {
  .sf-totals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sf-floor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .sf-side { display: flex; flex-direction: column; gap: 14px; }
  .sf-reps { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .sf-live { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}
@media (max-width: 719px) { .sf-side { display: flex; flex-direction: column; gap: 14px; } }
