/* Tasks v2. Scoped to tv2-* so it can sit beside the current Tasks screen.
   Colors come from the app theme (Summit dark is the day-to-day look). */

.tv2-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.tv2-page[hidden],
.tv2-banner[hidden],
.tv2-pop[hidden],
.tv2-suggest[hidden],
.tv2-form-err[hidden],
.tv2-pass[hidden],
.tv2-scrim[hidden],
.tv2-drawer[hidden],
.tv2-bulk[hidden],
.tv2-drawer-task[hidden],
.tv2-drawer-client[hidden],
.tv2-client-tasks[hidden],
.tv2-client-notes[hidden],
.tv2-client-history[hidden] { display: none !important; }

.tv2-titlebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 10px;
}
.tv2-titlebar h1 { margin: 0; font-size: 22px; font-weight: 800; }
.tv2-count { font-size: 13px; color: var(--text-muted); }
.tv2-spacer { flex: 1; }
.tv2-filter-label { flex-direction: row; align-items: center; gap: 8px; }
.tv2-filter { min-width: 240px; }

.tv2-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 20px 10px;
}
.tv2-filters-rule { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }
.tv2-summary { font-size: 12px; color: var(--text-muted); margin-left: 4px; }
.tv2-banner { margin: 0 20px 8px; color: var(--danger); font-size: 13px; }

.tv2-btn, .tv2-chip, .tv2-stab, .tv2-icon, .tv2-sort, .tv2-link, .tv2-done, .tv2-client {
  font-family: inherit;
}
.tv2-btn {
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  padding: 8px 14px;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tv2-btn:hover { border-color: var(--teal); }
.tv2-btn:disabled { opacity: 0.45; cursor: default; }
.tv2-btn[hidden], .tv2-chip[hidden], .tv2-stab[hidden], .tv2-icon[hidden] { display: none !important; }
.tv2-btn-sm { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
.tv2-btn-primary { background: var(--teal); border-color: var(--teal); color: #06182E; }
.tv2-btn-primary:hover { filter: brightness(1.08); }

.tv2-chip {
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tv2-chip:hover { color: var(--text); border-color: var(--teal); }
.tv2-chip.on { background: var(--accent-soft, rgba(43, 179, 184, 0.16)); border-color: var(--teal); color: var(--text); }

.tv2-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 20px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.tv2-table { min-width: 860px; }
.tv2-grid {
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--border);
  min-height: 42px;
  font-size: 13px;
}
.tv2-row { cursor: pointer; }
.tv2-row:hover { background: var(--hover, var(--bg-alt)); }
.tv2-row-sel { background: var(--accent-soft, rgba(43, 179, 184, 0.18)); }
.tv2-head {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-alt);
  position: sticky;
  top: 0;
  z-index: 1;
  cursor: default;
}
.tv2-cell { padding: 6px 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv2-hcell { display: flex; align-items: center; gap: 4px; }
.tv2-sort {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.tv2-sort:hover { color: var(--text); }
.tv2-drag { cursor: grab; color: var(--text-muted); user-select: none; font-size: 12px; letter-spacing: -1px; }
.tv2-drag:active { cursor: grabbing; }
.tv2-empty { padding: 40px; text-align: center; color: var(--text-muted); font-size: 14px; }

.tv2-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.tv2-link:hover { text-decoration: underline; }
.tv2-subject-cell, .tv2-inline { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tv2-subject-cell .tv2-link { flex: 1; min-width: 0; }
.tv2-inline .tv2-input { flex: 1; min-height: 30px; padding: 4px 8px; }

.tv2-c-overdue { color: #c0392b; font-weight: 700; }
:root[data-theme="dark"] .tv2-c-overdue { color: #ff8a80; }
.tv2-c-today { color: var(--teal); font-weight: 700; }
.tv2-c-future { color: var(--text); font-weight: 600; }
.tv2-c-none { color: var(--text-muted); font-weight: 600; }
.tv2-c-done { color: var(--text-muted); font-weight: 400; text-decoration: line-through; }
.tv2-type-cell { display: flex; align-items: center; }

.tv2-client {
  font-size: 12.5px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--text);
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tv2-client:hover { border-color: var(--teal); }
.tv2-client-fire { border-color: #c9473a; background: #2a1414; color: #ffd2ca; }
:root:not([data-theme="dark"]) .tv2-client-fire { background: #fde8e6; color: #8a2a22; }

.tv2-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  padding: 2px 6px;
  margin-right: 4px;
  color: #06182e;
}
.tv2-tag-next { opacity: 0.55; }
.tv2-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
}
.tv2-note { color: var(--text-muted); }

.tv2-done {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex: none;
}
.tv2-done:hover { border-color: var(--teal); }
.tv2-done.on { background: var(--teal); border-color: var(--teal); }

.tv2-icon {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 3px 6px;
  display: inline-flex;
  align-items: center;
}
.tv2-icon:hover { border-color: var(--border); color: var(--text); }
.tv2-icon:disabled { opacity: 0.35; cursor: default; }
.tv2-icon.on { color: #e2a01c; }

.tv2-cols { position: relative; }
.tv2-pop {
  position: absolute;
  right: 0;
  top: 44px;
  z-index: 5;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
}
.tv2-pop-title { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.tv2-colrow { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 0; }
.tv2-colrow span { flex: 1; }

.tv2-scrim {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.45);
  z-index: 60;
  border: none;
  padding: 0;
  cursor: default;
}
.tv2-drawer, .tv2-bulk {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.tv2-drawer { width: min(1000px, 100vw); z-index: 70; }
.tv2-bulk { width: min(380px, 100vw); z-index: 50; }
.tv2-drawer-top, .tv2-bulk-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.tv2-drawer-top h2, .tv2-bulk-top h2 { margin: 0; font-size: 16px; }
.tv2-bulk-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.tv2-bulk-note { margin: 0; font-size: 12px; color: var(--text-muted); }

.tv2-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.tv2-stab {
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 9px;
  background: none;
  color: var(--text-muted);
  padding: 8px 14px;
  cursor: pointer;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tv2-stab:hover { background: var(--hover, var(--bg)); color: var(--text); }
.tv2-stab.on { background: var(--accent-soft, rgba(43, 179, 184, 0.16)); color: var(--teal); }
.tv2-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--teal); }

.tv2-drawer-task {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: auto;
}
.tv2-editor {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.tv2-drawer .tv2-editor {
  flex: 999 1 460px;
  padding: 18px;
  overflow: auto;
}
.tv2-agenda {
  flex: 1 1 260px;
  min-width: 0;
  border-left: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tv2-agenda h3 { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.tv2-agenda-item {
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font: inherit;
  width: 100%;
}

.tv2-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-muted); position: relative; }
.tv2-input {
  font: inherit;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 36px;
  box-sizing: border-box;
  width: 100%;
}
.tv2-input:focus { outline: 2px solid var(--teal); outline-offset: 0; }
textarea.tv2-input { resize: vertical; }
.tv2-subject-input { font-size: 18px; font-weight: 700; }
.tv2-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tv2-types { display: flex; flex-wrap: wrap; gap: 6px; }
.tv2-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.tv2-check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text); }
.tv2-owners { display: flex; flex-direction: column; gap: 6px; }
.tv2-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--text);
}
.tv2-owner-n { font-weight: 800; color: var(--text-muted); width: 18px; }
.tv2-owner-name { flex: 1; min-width: 0; }
.tv2-owner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tv2-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.tv2-form-err { color: var(--danger); font-size: 13px; }
.tv2-history-block h3 { margin: 0 0 6px; font-size: 13px; color: var(--text-muted); }
.tv2-history { max-height: 220px; overflow: auto; }
.tv2-history-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.tv2-history-item .tv2-muted { margin-top: 2px; }
.tv2-comment-row { display: flex; justify-content: flex-end; }
.tv2-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  z-index: 40;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  max-height: 260px;
  overflow: auto;
  padding: 4px;
}
.tv2-opt {
  display: flex;
  width: 100%;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.tv2-opt:hover { background: var(--hover, var(--bg-alt)); }
.tv2-opt b { min-width: 90px; }
.tv2-opt span { color: var(--text-muted); }
.tv2-muted { color: var(--text-muted); font-size: 13px; margin: 0; }

.tv2-drawer-client { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: auto; }
.tv2-client-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.tv2-client-head h2 { margin: 0; font-size: 20px; }
.tv2-client-body { flex: 1; display: flex; flex-wrap: wrap; min-height: 0; }
.tv2-client-side {
  flex: 1 1 280px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tv2-client-main {
  flex: 999 1 420px;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tv2-sec h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.tv2-kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; margin: 0; }
.tv2-kv dt { color: var(--text-muted); text-align: right; }
.tv2-kv dd { margin: 0; }
.tv2-sechead { display: flex; align-items: center; gap: 8px; }
.tv2-sechead h3 { margin: 0; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); }
.tv2-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tv2-card-pin { border-color: #8a6a1f; background: var(--part-bg, #1b1a12); }
.tv2-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tv2-card-top .tv2-link { flex: 1; min-width: 0; }
.tv2-card-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.tv2-card-note {
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg);
  border-radius: 6px;
  padding: 6px 8px;
  white-space: pre-line;
}
.tv2-note-card { flex-direction: row; align-items: flex-start; gap: 10px; }
.tv2-note-card .tv2-note-body { flex: 1; min-width: 0; white-space: pre-line; }
.tv2-case { display: flex; flex-direction: column; gap: 10px; }
.tv2-case-head { display: flex; align-items: center; gap: 8px; }
.tv2-case-head h3 { margin: 0; font-size: 14px; flex: 1; }
.tv2-case-group { margin: 8px 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }

@media (max-width: 720px) {
  .tv2-split { grid-template-columns: 1fr; }
  .tv2-filter { min-width: 0; }
}

/* ---- 11/18 (Chas): one compact header band in the case page's look ---- */
.tv2-filters:empty { display: none; }
.tv2-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 8px 14px 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--band, linear-gradient(115deg, #0B2E5C 0%, #164F86 45%, #1F6FA8 65%, #138A8E 100%));
  color: #fff; box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.25));
}
.tv2-band-title { display: flex; align-items: baseline; gap: 8px; margin-right: 4px; }
.tv2-band-title h1 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.tv2-band .tv2-count { font-size: 12px; font-weight: 700; color: #CFE0F2; background: rgba(255,255,255,.14); border-radius: 999px; padding: 1px 8px; }
.tv2-segs { display: inline-flex; align-items: center; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.18); border-radius: 10px; padding: 2px; gap: 2px; }
.tv2-seg {
  font: inherit; font-size: 12.5px; font-weight: 600; color: #DCE8F5; background: transparent; border: 0;
  border-radius: 8px; padding: 5px 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.tv2-seg:hover { background: rgba(255,255,255,.12); color: #fff; }
.tv2-seg.on { background: #fff; color: #0B2E5C; }
.tv2-seg-icon { padding: 5px 8px; }
.tv2-seg-icon svg { display: block; }
.tv2-band .tv2-filter {
  min-width: 170px; max-width: 240px; min-height: 34px; padding: 5px 10px; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.tv2-band .tv2-filter option { color: var(--text); background: var(--card-bg); }
.tv2-band .tv2-btn { min-height: 34px; padding: 5px 12px; border-radius: 10px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.tv2-band .tv2-btn:hover { background: rgba(255,255,255,.22); }
.tv2-band .tv2-btn-primary { background: var(--teal, #2BB3C0); border-color: var(--teal, #2BB3C0); color: #06182E; }
.tv2-band .tv2-more { font-size: 18px; line-height: 1; padding: 4px 10px; }
.tv2-cols { position: relative; }
.tv2-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 190px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35); display: flex; flex-direction: column;
}
.tv2-menu[hidden] { display: none; }
.tv2-menu button { font: inherit; font-size: 13px; text-align: left; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text); cursor: pointer; }
.tv2-menu button:hover { background: var(--bg-alt, rgba(255,255,255,.06)); }
.tv2-menu button[data-act="old-tasks"] { border-top: 1px solid var(--border); border-radius: 0 0 7px 7px; color: var(--text-muted); }
/* The list sits in a rounded card under the band, like the case page's cards. */
.tv2-scroll { margin: 0 14px 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.tv2-banner { margin: 0 16px 8px; }
/* Who column (11/18): small initials tags side by side, first = whose turn. */
.tv2-row .tv2-tag { font-size: 10.5px; padding: 1px 5px; margin-right: 3px; }
.tv2-row .tv2-cell:has(> .tv2-tag) { overflow: visible; text-overflow: clip; white-space: nowrap; }

/* Client task list (11/18): one-line rows that open on click, like Pipedrive */
.tv2-crow { border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); margin-bottom: 6px; }
.tv2-crow-pin { border-color: #8a6a1f; }
.tv2-crow-line { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; min-width: 0; }
.tv2-crow-line:hover { background: var(--bg-alt, rgba(255,255,255,.04)); border-radius: 10px; }
.tv2-crow-type { flex: none; display: inline-flex; }
.tv2-crow-who { flex: none; display: inline-flex; }
.tv2-crow-who .tv2-tag { font-size: 10.5px; padding: 1px 5px; margin-right: 3px; }
.tv2-crow-subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
.tv2-crow-when { flex: none; font-size: 12px; white-space: nowrap; }
.tv2-crow-done .tv2-crow-subj { text-decoration: line-through; }
.tv2-crow-body { padding: 2px 12px 10px 40px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.tv2-crow-body .tv2-card-note { white-space: pre-wrap; font-size: 12.5px; }
.tv2-done-toggle { display: block; width: 100%; text-align: left; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-muted); background: none; border: 0; padding: 10px 2px 6px; cursor: pointer; }
.tv2-done-toggle:hover { color: var(--text); }

/* Resizable columns (11/18): grab the right edge of a header */
.tv2-hcell { position: relative; }
.tv2-resize { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 2; }
.tv2-resize::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 4px; width: 1px; background: var(--border); }
.tv2-resize:hover::after { background: var(--teal, #2BB3C0); width: 2px; }

/* Drawer slides in from the right and out again; up/down arrows beside it (11/18) */
@keyframes tv2-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes tv2-slide-out { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes tv2-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tv2-fade-out { from { opacity: 1; } to { opacity: 0; } }
.tv2-drawer { animation: tv2-slide-in 220ms cubic-bezier(.2,.8,.2,1); }
.tv2-scrim { animation: tv2-fade-in 220ms ease-out; }
.tv2-drawer.tv2-no-anim, .tv2-scrim.tv2-no-anim { animation: none; }
.tv2-drawer-leaving { position: fixed; top: 0; right: 0; bottom: 0; width: min(1000px, 100vw); z-index: 69; display: flex; flex-direction: column; background: var(--card-bg); border-left: 1px solid var(--border); box-shadow: -20px 0 40px rgba(0,0,0,.35); animation: tv2-slide-out 190ms ease-in forwards; pointer-events: none; }
.tv2-scrim-leaving { position: fixed; inset: 0; z-index: 59; background: rgba(3, 8, 18, 0.45); border: none; animation: tv2-fade-out 190ms ease-in forwards; pointer-events: none; }
.tv2-drawer-leaving .tv2-drawer-nav { display: none; }
.tv2-drawer-nav { position: absolute; top: 64px; left: -46px; display: flex; flex-direction: column; gap: 6px; }
.tv2-nav-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); font-size: 13px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.tv2-nav-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.tv2-nav-btn:disabled { opacity: .35; cursor: default; }
.tv2-row.tv2-current { box-shadow: inset 3px 0 0 var(--accent); background: var(--hover); }
@media (prefers-reduced-motion: reduce) { .tv2-drawer, .tv2-scrim, .tv2-drawer-leaving, .tv2-scrim-leaving { animation: none; } }

/* Columns are locked unless "Edit columns" is on (11/20). */
.tv2-cols { display: inline-flex; align-items: center; gap: 6px; }
.tv2-editcols { font-size: 12.5px; padding: 4px 10px; white-space: nowrap; }
.tv2-editcols.on { background: var(--accent-soft, #E4EFF8); color: var(--accent, #1f5fa8); border-color: currentColor; font-weight: 700; }
.tv2-hcell.tv2-editing { outline: 1px dashed color-mix(in srgb, currentColor 35%, transparent); outline-offset: -3px; border-radius: 4px; }
