/* Time V2 (js/time-v2.js), approved design "Operato Time" v2 (14 Nov 2026). Scoped to the live Time root.
   Uses the V2 shell tokens (--ink*, --line*, --surface*, --sulphur*, --r-sm, --v2-focus-ring, --status-*) and the
   design-system type scale (--fs-1..7). Client and person colours are data (each client's own colour, else a fixed
   identity palette) and arrive inline from the module. Light theme only, like the rest of the V2 shell. */
body.v2-active #v2Page .tv{ max-width:1240px; font-variant-numeric:tabular-nums; }
body.v2-active #v2Page .tv *{ box-sizing:border-box; }
body.v2-active #v2Page .tv .tv-sr{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
body.v2-active #v2Page .tv .tv-muted{ color:var(--ink2); font-size:var(--fs-2, 12px); }
body.v2-active #v2Page .tv .tv-k{ font-size:var(--fs-2, 12px); color:var(--ink2); font-weight:500; }
body.v2-active #v2Page .tv .tv-grow{ flex:1 1 auto; }
body.v2-active #v2Page .tv .tv-fine{ margin:4px 0 0; font-size:var(--fs-2, 12px); color:var(--ink2); }
body.v2-active #v2Page .tv .tv-ic{ width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
body.v2-active #v2Page .tv .tv-link{ appearance:none; border:0; background:none; padding:0 4px; min-height:32px; font:inherit; font-weight:600; color:var(--ink); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }

/* tabs */
body.v2-active #v2Page .tv-tabbar{ display:flex; align-items:center; gap:12px; margin:0 0 20px; padding:8px 0; border-bottom:1px solid var(--line); }
body.v2-active #v2Page .tv-tabs{ display:flex; gap:6px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-tab{ appearance:none; min-height:34px; padding:6px 14px; border-radius:8px; border:1px solid transparent; background:none; font:inherit; font-size:var(--fs-3, 14px); font-weight:500; color:var(--ink2); cursor:pointer; }
body.v2-active #v2Page .tv-tab:hover{ color:var(--ink); background:var(--surface2); }
body.v2-active #v2Page .tv-tab[aria-selected="true"]{ background:var(--sulphur-wash, #fffdf0); border-color:var(--sulphur-deep, #c9db2e); color:var(--ink); font-weight:600; }

/* head + week */
body.v2-active #v2Page .tv-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
body.v2-active #v2Page .tv-head .page-title{ margin:0; }
body.v2-active #v2Page .tv-head .page-title:focus{ outline:none; }
body.v2-active #v2Page .tv-week{ display:flex; align-items:center; gap:8px; color:var(--ink2); font-size:var(--fs-3, 14px); }
body.v2-active #v2Page .tv-week b{ color:var(--ink); font-size:var(--fs-4, 16px); }
body.v2-active #v2Page .tv-weekbar{ display:flex; width:140px; height:8px; border-radius:999px; background:var(--line); overflow:hidden; }
body.v2-active #v2Page .tv-weekbar span{ display:block; height:8px; }

/* timer bar */
body.v2-active #v2Page .tv-bar{ position:relative; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 8px 8px 16px; margin:0 0 12px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
body.v2-active #v2Page .tv-bar.running{ border-color:var(--ink); box-shadow:0 0 0 3px color-mix(in srgb, var(--sulphur, #E8FF6B) 55%, transparent); background:var(--sulphur-wash, #fffdf0); }
body.v2-active #v2Page .tv-desc{ flex:1 1 260px; min-width:0; height:44px; border:0; background:transparent; font:inherit; font-size:var(--fs-4, 16px); font-weight:500; color:var(--ink); }
body.v2-active #v2Page .tv-desc::placeholder{ color:var(--ink3); font-weight:400; }
body.v2-active #v2Page .tv-cpick{ display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 4px 0 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); max-width:280px; }
body.v2-active #v2Page .tv-cpick select{ height:36px; min-width:0; max-width:230px; border:0; background:transparent; font:inherit; font-weight:600; color:inherit; cursor:pointer; }
body.v2-active #v2Page .tv-pdot{ display:inline-block; width:8px; height:8px; border-radius:50%; flex:none; }
body.v2-active #v2Page .tv .tv-sel, body.v2-active #v2Page .tv select, body.v2-active #v2Page .tv input[type="text"], body.v2-active #v2Page .tv input[type="search"], body.v2-active #v2Page .tv input[type="date"], body.v2-active #v2Page .tv input[type="time"]{ font:inherit; font-size:var(--fs-3, 14px); color:var(--ink); }
body.v2-active #v2Page .tv-sel{ height:40px; max-width:220px; padding:0 10px; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--ink2); }
body.v2-active #v2Page .tv-sel[disabled]{ background:var(--surface2); color:var(--ink3); }
body.v2-active #v2Page .tv-bill{ appearance:none; width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:1px solid var(--line); background:var(--surface); color:var(--ink3); cursor:pointer; }
body.v2-active #v2Page .tv-bill.on{ background:var(--status-good-bg, #E7F4EC); border-color:var(--status-good, #1D7A4D); color:var(--status-good, #1D7A4D); }
body.v2-active #v2Page .tv-bill.sm{ width:34px; height:34px; border:0; background:var(--surface2); }
body.v2-active #v2Page .tv-bill.sm.on{ background:var(--status-good-bg, #E7F4EC); }
body.v2-active #v2Page .tv-bill:hover{ border-color:var(--ink3); }
body.v2-active #v2Page .tv-dur{ width:80px; height:40px; padding:0 10px; border-radius:8px; border:1px solid var(--ink3); text-align:right; font-weight:600; }
body.v2-active #v2Page .tv-date{ height:40px; padding:0 8px; border-radius:8px; border:1px solid var(--ink3); }
body.v2-active #v2Page .tv-clock{ min-width:96px; text-align:right; font-size:var(--fs-5, 20px); font-weight:500; color:var(--ink3); }
body.v2-active #v2Page .tv-bar.running .tv-clock{ font-weight:700; color:var(--ink); }
body.v2-active #v2Page .tv .tv-go{ display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 18px; border-radius:8px; border:0; background:var(--ink); color:var(--surface); font-weight:600; }
body.v2-active #v2Page .tv .tv-go .tv-ic{ color:var(--sulphur, #E8FF6B); }
body.v2-active #v2Page .tv .tv-go:hover:not([disabled]){ background:var(--ink2); }
body.v2-active #v2Page .tv .tv-go.tv-stop{ background:var(--status-risk, #C0392B); }
body.v2-active #v2Page .tv .tv-go.tv-stop .tv-ic{ color:var(--surface); }
body.v2-active #v2Page .tv .tv-go.tv-stop:hover:not([disabled]){ background:color-mix(in srgb, var(--status-risk, #C0392B) 82%, #000); }
body.v2-active #v2Page .tv .tv-go[disabled]{ opacity:.6; cursor:progress; }
body.v2-active #v2Page .tv-icbtn{ appearance:none; width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; border:0; background:transparent; color:var(--ink2); cursor:pointer; flex:none; }
body.v2-active #v2Page .tv-icbtn:hover{ background:var(--surface2); color:var(--ink); }
body.v2-active #v2Page .tv-icbtn.tv-boxed{ border:1px solid var(--line); background:var(--surface); }
body.v2-active #v2Page .tv-icbtn.tv-go-ic{ color:var(--status-good, #1D7A4D); }
body.v2-active #v2Page .tv-mode{ display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
body.v2-active #v2Page .tv-mode button{ appearance:none; width:36px; height:38px; display:inline-flex; align-items:center; justify-content:center; border:0; background:var(--surface); color:var(--ink2); cursor:pointer; }
body.v2-active #v2Page .tv-mode button + button{ border-left:1px solid var(--line); }
body.v2-active #v2Page .tv-mode button[aria-pressed="true"]{ background:var(--surface2); color:var(--ink); box-shadow:inset 0 -2px 0 var(--ink); }
body.v2-active #v2Page .tv-barerr{ flex-basis:100%; margin:0; font-size:var(--fs-2, 12px); color:var(--status-risk-text, var(--status-risk, #C0392B)); font-weight:500; }
body.v2-active #v2Page .tv-barerr:empty{ display:none; }

/* filters */
body.v2-active #v2Page .tv-filters{ display:flex; flex-direction:column; gap:10px; padding:12px 16px; margin:0 0 16px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
body.v2-active #v2Page .tv-frow{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-search{ flex:1 1 260px; display:flex; align-items:center; gap:8px; height:40px; padding:0 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink3); }
body.v2-active #v2Page .tv-search:focus-within{ border-color:var(--ink); box-shadow:var(--v2-focus-ring); }
body.v2-active #v2Page .tv-search input{ flex:1 1 auto; min-width:0; height:36px; border:0; background:transparent; }
body.v2-active #v2Page .tv-search input:focus-visible{ outline:none; box-shadow:none !important; }
body.v2-active #v2Page .tv-fgroup{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-flabel{ font-size:var(--fs-2, 12px); font-weight:600; color:var(--ink2); margin-right:2px; }
body.v2-active #v2Page .tv-chip{ appearance:none; display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 12px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font:inherit; font-size:13px; font-weight:600; color:var(--ink); cursor:pointer; white-space:nowrap; }
body.v2-active #v2Page .tv-chip:hover{ border-color:var(--ink3); }
body.v2-active #v2Page .tv-chip.on{ border-color:var(--ink); background:var(--sulphur-wash, #fffdf0); font-weight:700; }
body.v2-active #v2Page .tv-chip-n{ font-weight:500; color:var(--ink2); }
body.v2-active #v2Page .tv-chip-p{ padding-left:3px; height:34px; }
body.v2-active #v2Page .tv-av{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; border-radius:50%; font-size:10px; font-weight:700; letter-spacing:.02em; }
body.v2-active #v2Page .tv-av.sm{ width:26px; height:26px; }
body.v2-active #v2Page .tv-av .tv-ic{ width:14px; height:14px; }
body.v2-active #v2Page .tv-fgroup select{ height:34px; padding:0 8px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
body.v2-active #v2Page .tv-seg{ display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
body.v2-active #v2Page .tv-seg button{ appearance:none; min-height:38px; padding:0 12px; border:0; background:var(--surface); font:inherit; font-size:13px; font-weight:500; color:var(--ink); cursor:pointer; }
body.v2-active #v2Page .tv-seg button + button{ border-left:1px solid var(--line); }
body.v2-active #v2Page .tv-seg button:hover{ background:var(--surface2); }
body.v2-active #v2Page .tv-seg button[aria-pressed="true"]{ background:var(--sulphur-wash, #fffdf0); font-weight:600; box-shadow:inset 0 -2px 0 var(--sulphur-deep, #c9db2e); }
body.v2-active #v2Page .tv-seg.sm button{ min-height:32px; }
body.v2-active #v2Page .tv-clear{ margin-left:auto; }

/* tiles */
body.v2-active #v2Page .tv-tiles{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:12px; margin:0 0 16px; }
body.v2-active #v2Page .tv-tile{ display:flex; flex-direction:column; gap:6px; padding:16px; min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
body.v2-active #v2Page .tv-tile-h{ display:flex; align-items:center; gap:8px; }
body.v2-active #v2Page .tv-tile b{ font-size:24px; line-height:1.2; font-weight:650; letter-spacing:-.02em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-of{ font-size:var(--fs-3, 14px); font-weight:500; color:var(--ink2); letter-spacing:0; }
body.v2-active #v2Page .tv-tile-ic{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:8px; flex:none; }
body.v2-active #v2Page .tv-tone-sulphur{ background:color-mix(in srgb, var(--sulphur, #E8FF6B) 45%, var(--surface)); color:var(--sulphur-ink, #3c4307); }
body.v2-active #v2Page .tv-tone-blue{ background:#E7F0FF; color:#0650C2; }
body.v2-active #v2Page .tv-tone-green{ background:var(--status-good-bg, #E7F4EC); color:var(--status-good, #1D7A4D); }
body.v2-active #v2Page .tv-tone-orange{ background:#FBEBDD; color:#8A3F07; }
body.v2-active #v2Page .tv-tone-teal{ background:#E3F1F5; color:#0B5870; }
body.v2-active #v2Page .tv-tone-bad{ background:var(--status-risk-bg, #FBEAE8); color:var(--status-risk, #C0392B); }

/* cards, states */
body.v2-active #v2Page .tv-card{ background:var(--surface); border:1px solid var(--line); border-radius:12px; margin:0 0 16px; }
body.v2-active #v2Page .tv-state{ display:flex; align-items:center; gap:12px; padding:14px 16px; }
body.v2-active #v2Page .tv-state p{ flex:1 1 auto; margin:0; }
body.v2-active #v2Page .tv-empty{ display:flex; flex-direction:column; align-items:center; gap:6px; padding:28px; text-align:center; }
body.v2-active #v2Page .tv-empty .btn{ margin-top:8px; }
body.v2-active #v2Page .tv-empty-t{ margin:0; font-size:var(--fs-4, 16px); font-weight:600; }
body.v2-active #v2Page .tv-empty .tv-muted{ margin:0; max-width:420px; font-size:var(--fs-3, 14px); }
body.v2-active #v2Page .tv-empty-art{ position:relative; width:120px; height:64px; margin-bottom:6px; }
body.v2-active #v2Page .tv-empty-art span{ position:absolute; display:flex; align-items:center; justify-content:center; border-radius:12px; }
body.v2-active #v2Page .tv-empty-art .a{ left:0; top:18px; width:44px; height:44px; background:#E3F1F5; }
body.v2-active #v2Page .tv-empty-art .b{ left:38px; top:0; width:48px; height:48px; border-radius:14px; background:var(--sulphur, #E8FF6B); color:var(--sulphur-ink, #3c4307); box-shadow:0 0 0 4px var(--surface); }
body.v2-active #v2Page .tv-empty-art .b .tv-ic{ width:24px; height:24px; }
body.v2-active #v2Page .tv-empty-art .c{ right:0; top:22px; width:40px; height:40px; background:#FBEBDD; }
body.v2-active #v2Page .tv-skel{ overflow:hidden; }
body.v2-active #v2Page .tv-skel-h, body.v2-active #v2Page .tv-skel-row{ display:flex; align-items:center; gap:16px; padding:0 16px; }
body.v2-active #v2Page .tv-skel-h{ height:44px; background:var(--surface2); border-bottom:1px solid var(--line); justify-content:space-between; }
body.v2-active #v2Page .tv-skel-row{ height:56px; border-top:1px solid var(--line2); }
body.v2-active #v2Page .tv-skel span{ display:block; height:14px; flex:1 1 auto; max-width:140px; border-radius:4px; background:var(--line2); animation:tvsk 1.4s ease-in-out infinite; }
body.v2-active #v2Page .tv-skel-row span:first-child{ max-width:none; }
body.v2-active #v2Page .tv-skel-row span:last-child{ flex:none; width:44px; }
body.v2-active #v2Page .tv-skel i{ display:block; width:150px; height:26px; border-radius:999px; flex:none; }
@keyframes tvsk{ 50%{ opacity:.5; } }
@media (prefers-reduced-motion: reduce){ body.v2-active #v2Page .tv-skel span{ animation:none; } }

/* day groups + rows */
body.v2-active #v2Page .tv-day{ overflow:visible; }
body.v2-active #v2Page .tv-dayhdr{ display:flex; align-items:center; gap:14px; padding:10px 16px; background:var(--surface2); border-bottom:1px solid var(--line); border-radius:12px 12px 0 0; }
body.v2-active #v2Page .tv-dayhdr h2{ margin:0; font-size:var(--fs-3, 14px); font-weight:600; white-space:nowrap; }
body.v2-active #v2Page .tv-mix{ flex:0 1 220px; display:flex; height:6px; border-radius:999px; overflow:hidden; background:var(--line); }
body.v2-active #v2Page .tv-mix span{ display:block; height:6px; }
body.v2-active #v2Page .tv-daytot{ margin-left:auto; font-weight:700; white-space:nowrap; }
body.v2-active #v2Page .tv-cb{ width:18px; height:18px; margin:0; flex:none; accent-color:var(--ink); cursor:pointer; }
body.v2-active #v2Page .tv-list{ list-style:none; margin:0; padding:0; }
body.v2-active #v2Page .tv-row{ position:relative; display:flex; align-items:center; gap:10px; min-height:56px; padding:0 8px 0 16px; border-top:1px solid var(--line2); }
body.v2-active #v2Page .tv-row:first-child{ border-top:0; }
body.v2-active #v2Page .tv-row:hover{ background:var(--surface2); }
body.v2-active #v2Page .tv-row.sel{ background:var(--sulphur-wash, #fffdf0); }
body.v2-active #v2Page .tv-row-main{ appearance:none; flex:1 1 auto; min-width:0; display:flex; align-items:center; gap:12px; min-height:54px; border:0; background:none; padding:0; font:inherit; color:inherit; text-align:left; cursor:text; }
body.v2-active #v2Page .tv-row-desc{ flex:1 1 auto; min-width:0; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-row-desc.none{ color:var(--ink3); font-weight:400; }
body.v2-active #v2Page .tv-pill{ display:inline-flex; align-items:center; gap:6px; flex:none; height:26px; max-width:240px; padding:0 10px; border-radius:999px; font-size:13px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-row-task{ flex:none; max-width:180px; color:var(--ink2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-row-span{ flex:none; width:112px; text-align:right; color:var(--ink2); }
body.v2-active #v2Page .tv-row-dur{ flex:none; width:68px; height:34px; padding:0 8px; border:1px solid transparent; border-radius:6px; background:transparent; text-align:right; font-size:15px !important; font-weight:700; }
body.v2-active #v2Page .tv-row-dur:hover{ border-color:var(--line); background:var(--surface); }
body.v2-active #v2Page .tv-row-dur:focus{ border-color:var(--ink); background:var(--surface); }
body.v2-active #v2Page .tv .tv-row-dur[aria-invalid="true"], body.v2-active #v2Page .tv input[aria-invalid="true"]{ border-color:var(--status-risk, #C0392B); }
body.v2-active #v2Page .tv-row.editing{ padding:0; background:transparent; }
body.v2-active #v2Page .tv-menu{ position:absolute; right:8px; top:46px; z-index:20; min-width:200px; padding:6px; background:var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow:0 12px 32px rgba(22,23,28,.14); display:flex; flex-direction:column; }
body.v2-active #v2Page .tv-menu button{ appearance:none; min-height:36px; padding:0 10px; border:0; border-radius:6px; background:none; font:inherit; text-align:left; color:var(--ink); cursor:pointer; }
body.v2-active #v2Page .tv-menu button:hover, body.v2-active #v2Page .tv-menu button:focus-visible{ background:var(--surface2); }
body.v2-active #v2Page .tv .tv-danger{ color:var(--status-risk, #C0392B) !important; }

/* edit form */
body.v2-active #v2Page .tv-edit{ display:flex; flex-direction:column; gap:10px; padding:16px; background:var(--sulphur-wash, #fffdf0); box-shadow:inset 0 0 0 1px var(--sulphur-deep, #c9db2e); border-radius:10px; }
body.v2-active #v2Page .tv-edit-grid{ display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:10px; }
body.v2-active #v2Page .tv-f{ display:flex; flex-direction:column; gap:4px; min-width:0; font-size:var(--fs-2, 12px); font-weight:600; color:var(--ink2); }
body.v2-active #v2Page .tv-f-2{ grid-column:span 2; }
body.v2-active #v2Page .tv-f-3{ grid-column:span 3; }
body.v2-active #v2Page .tv-f input, body.v2-active #v2Page .tv-f select{ height:40px; min-width:0; width:100%; padding:0 10px; border:1px solid var(--ink3); border-radius:8px; background:var(--surface); font-weight:500; }
body.v2-active #v2Page .tv-f select[disabled]{ background:var(--surface2); color:var(--ink3); border-color:var(--line); }
body.v2-active #v2Page .tv-f-inline{ flex-direction:row; align-items:center; gap:8px; }
body.v2-active #v2Page .tv-f-inline select, body.v2-active #v2Page .tv-f-inline input{ width:auto; }
body.v2-active #v2Page .tv-hint{ margin:0; font-size:var(--fs-2, 12px); color:var(--ink2); }
body.v2-active #v2Page .tv-err{ margin:0; font-size:var(--fs-2, 12px); color:var(--status-risk-text, var(--status-risk, #C0392B)); font-weight:500; }
body.v2-active #v2Page .tv-err:empty{ display:none; }
body.v2-active #v2Page .tv-edit-acts{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-billcheck{ display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:0 12px; margin-right:auto; border-radius:8px; background:var(--status-good-bg, #E7F4EC); color:var(--status-good, #1D7A4D); font-weight:600; cursor:pointer; }
body.v2-active #v2Page .tv-billcheck input{ width:18px; height:18px; margin:0; accent-color:var(--status-good, #1D7A4D); }

/* bulk bar */
body.v2-active #v2Page .tv-bulk{ position:sticky; top:8px; z-index:15; display:flex; align-items:center; gap:6px; flex-wrap:wrap; padding:8px 8px 8px 16px; margin:0 0 12px; border-radius:10px; background:var(--ink); color:var(--surface); }
body.v2-active #v2Page .tv-bulk b{ margin-right:8px; }
body.v2-active #v2Page .tv-bulk button, body.v2-active #v2Page .tv-bulk select, body.v2-active #v2Page .tv-bulk input{ min-height:34px; padding:0 10px; border:1px solid var(--ink2); border-radius:6px; background:transparent; color:var(--surface) !important; font:inherit; font-weight:600; cursor:pointer; }
body.v2-active #v2Page .tv-bulk select option{ color:var(--ink); }
body.v2-active #v2Page .tv-bulk button:hover, body.v2-active #v2Page .tv-bulk select:hover{ background:var(--ink2); }
body.v2-active #v2Page .tv-bulkdate{ display:inline-flex; align-items:center; gap:6px; font-size:var(--fs-2, 12px); font-weight:600; }
body.v2-active #v2Page .tv-bulkdate input{ color-scheme:dark; }
body.v2-active #v2Page .tv-bulk .tv-bulk-del{ color:#FFB4A8 !important; border-color:#7A2A22; }
body.v2-active #v2Page .tv-bulk .tv-bulk-clear{ margin-left:auto; border:0; color:var(--sulphur, #E8FF6B) !important; }
body.v2-active #v2Page .tv-bulk :focus-visible{ outline:2px solid var(--sulphur, #E8FF6B); outline-offset:2px; box-shadow:none !important; }

/* week nav */
body.v2-active #v2Page .tv-weeknav{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 12px; }
body.v2-active #v2Page .tv-weeklbl{ font-weight:600; padding:0 6px; }
body.v2-active #v2Page .tv .tv-btn-sm{ min-height:36px; padding:0 12px; }
body.v2-active #v2Page .tv-who{ margin-left:auto; color:var(--ink2); }
body.v2-active #v2Page .tv-who b{ color:var(--ink); }

/* timesheet */
body.v2-active #v2Page .tv-ts-wrap{ overflow-x:auto; }
body.v2-active #v2Page .tv-ts{ width:100%; min-width:900px; border-collapse:collapse; }
body.v2-active #v2Page .tv-ts th, body.v2-active #v2Page .tv-ts td{ padding:6px; border-bottom:1px solid var(--line2); }
body.v2-active #v2Page .tv-ts thead th{ background:var(--surface2); border-bottom:1px solid var(--line); font-size:var(--fs-2, 12px); color:var(--ink2); }
body.v2-active #v2Page .tv-ts-name{ text-align:left; padding:8px 16px !important; font-weight:500; }
body.v2-active #v2Page .tv-ts tbody .tv-ts-name{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-ts-task{ color:var(--ink2); }
body.v2-active #v2Page .tv-ts-day{ width:84px; text-align:center; }
body.v2-active #v2Page .tv-ts-day span{ display:block; font-size:var(--fs-1, 11px); font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); }
body.v2-active #v2Page .tv-ts-day b{ font-size:13px; color:var(--ink); }
body.v2-active #v2Page .tv-ts .today{ background:var(--sulphur-wash, #fffdf0); }
body.v2-active #v2Page .tv-ts thead .today{ background:color-mix(in srgb, var(--sulphur, #E8FF6B) 40%, var(--surface)); }
body.v2-active #v2Page .tv-ts-cell input{ width:100%; height:36px; border:1px solid var(--line); border-radius:6px; background:var(--surface); text-align:center; font-weight:600; }
body.v2-active #v2Page .tv-ts-cell input:hover{ border-color:var(--ink3) !important; }
body.v2-active #v2Page .tv-ts-cell input[disabled]{ background:var(--surface2); border-color:var(--line2); }
body.v2-active #v2Page .tv-ts-tot{ width:84px; text-align:right; padding:8px 16px !important; font-weight:600; }
body.v2-active #v2Page .tv-ts tfoot td, body.v2-active #v2Page .tv-ts tfoot th{ background:var(--surface2); font-weight:700; border-bottom:0; }
body.v2-active #v2Page .tv-ts tfoot .tv-ts-tot{ text-align:center; }
body.v2-active #v2Page .tv-ts tfoot .tv-ts-grand{ text-align:right; font-size:15px; }
body.v2-active #v2Page .tv-ts-none{ padding:20px 16px !important; text-align:center; color:var(--ink2); }
body.v2-active #v2Page .tv-ts-add{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
body.v2-active #v2Page .tv-ts-add select{ height:40px; padding:0 10px; border:1px solid var(--ink3); border-radius:8px; background:var(--surface); }
body.v2-active #v2Page .tv-ts-add select[disabled]{ border-color:var(--line); background:var(--surface2); color:var(--ink3); }
body.v2-active #v2Page .tv-ts-add .tv-err{ flex-basis:100%; }

/* calendar */
body.v2-active #v2Page .tv-cal{ overflow:hidden; }
body.v2-active #v2Page .tv-cal-head, body.v2-active #v2Page .tv-cal-strip, body.v2-active #v2Page .tv-cal-grid{ display:grid; grid-template-columns:56px repeat(7, minmax(0, 1fr)); }
body.v2-active #v2Page .tv-cal-head{ background:var(--surface2); border-bottom:1px solid var(--line); }
body.v2-active #v2Page .tv-cal-dh{ display:flex; justify-content:space-between; align-items:baseline; padding:8px 10px; border-left:1px solid var(--line2); color:var(--ink2); font-weight:500; }
body.v2-active #v2Page .tv-cal-dh b{ font-size:var(--fs-2, 12px); font-weight:600; color:var(--ink2); }
body.v2-active #v2Page .tv-cal-dh.today{ background:color-mix(in srgb, var(--sulphur, #E8FF6B) 40%, var(--surface)); color:var(--ink); font-weight:700; }
body.v2-active #v2Page .tv-cal-strip{ border-bottom:1px solid var(--line); }
body.v2-active #v2Page .tv-cal-strip .tv-cal-gut{ padding:6px; font-size:var(--fs-1, 11px); }
body.v2-active #v2Page .tv-cal-sc{ display:flex; flex-direction:column; gap:4px; padding:4px; border-left:1px solid var(--line2); }
body.v2-active #v2Page .tv-cal-chip{ appearance:none; min-height:28px; padding:2px 8px; border:0; border-radius:6px; font:inherit; font-size:var(--fs-2, 12px); font-weight:600; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
body.v2-active #v2Page .tv-cal-scroll{ position:relative; height:576px; overflow-y:auto; }
body.v2-active #v2Page .tv-cal-grid{ position:relative; }
body.v2-active #v2Page .tv-cal-hours{ position:relative; }
body.v2-active #v2Page .tv-cal-hr{ position:absolute; left:0; right:0; height:0; }
body.v2-active #v2Page .tv-cal-hr span{ position:absolute; right:8px; top:-7px; font-size:var(--fs-1, 11px); color:var(--ink2); }
body.v2-active #v2Page .tv-cal-col{ position:relative; border-left:1px solid var(--line2); background-image:repeating-linear-gradient(transparent 0 47px, var(--line2) 47px 48px); cursor:crosshair; touch-action:none; }
body.v2-active #v2Page .tv-cal-col.today{ background-color:var(--sulphur-wash, #fffdf0); }
body.v2-active #v2Page .tv-ev{ position:absolute; left:4px; right:4px; display:flex; flex-direction:column; gap:1px; padding:4px 8px 4px 10px; border-radius:6px; overflow:hidden; cursor:grab; user-select:none; }
body.v2-active #v2Page .tv-ev:focus-visible{ outline:none; box-shadow:var(--v2-focus-ring) !important; z-index:2; }
body.v2-active #v2Page .tv-ev.nb{ background-image:repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.55) 6px 9px); }
body.v2-active #v2Page .tv-ev-t{ font-size:var(--fs-2, 12px); font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-ev-m{ font-size:var(--fs-1, 11px); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.v2-active #v2Page .tv-ev-rz{ position:absolute; left:0; right:0; bottom:0; height:8px; cursor:ns-resize; }
body.v2-active #v2Page .tv-ghost{ border:1.5px dashed var(--sulphur-ink, #3c4307); background:color-mix(in srgb, var(--sulphur, #E8FF6B) 45%, var(--surface)); }
body.v2-active #v2Page .tv-cal-now{ position:absolute; height:2px; background:#C2410C; left:calc(56px + (100% - 56px) / 7 * var(--tv-col)); width:calc((100% - 56px) / 7); pointer-events:none; }

/* reports */
body.v2-active #v2Page .tv-rbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 16px; }
body.v2-active #v2Page .tv-rbar .tv-f-inline select, body.v2-active #v2Page .tv-rbar .tv-f-inline input{ height:40px; padding:0 10px; border:1px solid var(--ink3); border-radius:8px; background:var(--surface); }
body.v2-active #v2Page .tv-chart{ padding:16px 16px 36px; }
body.v2-active #v2Page .tv-chart-h, body.v2-active #v2Page .tv-group-h{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
body.v2-active #v2Page .tv-chart h2, body.v2-active #v2Page .tv-group h2{ margin:0; font-size:var(--fs-3, 14px); font-weight:600; }
body.v2-active #v2Page .tv-legend{ display:flex; flex-wrap:wrap; gap:6px 14px; font-size:var(--fs-2, 12px); color:var(--ink2); }
body.v2-active #v2Page .tv-legend i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
body.v2-active #v2Page .tv-plot{ position:relative; height:220px; margin-left:32px; }
body.v2-active #v2Page .tv-gl{ position:absolute; left:0; right:0; border-top:1px solid var(--line2); }
body.v2-active #v2Page .tv-gl span{ position:absolute; left:-32px; top:-8px; font-size:var(--fs-1, 11px); color:var(--ink2); }
body.v2-active #v2Page .tv-bars{ position:absolute; inset:0; }
body.v2-active #v2Page .tv-bar-c{ position:absolute; top:0; bottom:0; }
body.v2-active #v2Page .tv-bar-c > span:not(.tv-bar-l){ position:absolute; left:18%; right:18%; border-top:1px solid var(--surface); }
body.v2-active #v2Page .tv-bar-l{ position:absolute; bottom:-22px; left:0; right:0; text-align:center; font-size:var(--fs-1, 11px); color:var(--ink2); }
body.v2-active #v2Page .tv-bar-l.today{ color:var(--ink); font-weight:700; }
body.v2-active #v2Page .tv-group{ overflow:hidden; }
body.v2-active #v2Page .tv-group-h{ padding:10px 16px; margin:0; border-bottom:1px solid var(--line); }
body.v2-active #v2Page .tv-tblwrap{ overflow-x:auto; }
body.v2-active #v2Page .tv-tbl{ width:100%; border-collapse:collapse; }
body.v2-active #v2Page .tv-tbl th, body.v2-active #v2Page .tv-tbl td{ padding:12px 16px; text-align:left; border-top:1px solid var(--line2); vertical-align:middle; }
body.v2-active #v2Page .tv-tbl thead th{ border-top:0; background:var(--surface2); font-size:var(--fs-2, 12px); font-weight:600; color:var(--ink2); padding:8px 16px; }
body.v2-active #v2Page .tv-tbl .num{ text-align:right; white-space:nowrap; }
body.v2-active #v2Page .tv-share-h{ width:240px; }
body.v2-active #v2Page .tv-share{ white-space:nowrap; }
body.v2-active #v2Page .tv-share-bar{ display:inline-block; width:calc(100% - 48px); height:8px; border-radius:999px; background:var(--line2); overflow:hidden; vertical-align:middle; }
body.v2-active #v2Page .tv-share-bar span{ display:block; height:8px; border-radius:999px; }
body.v2-active #v2Page .tv-share-n{ display:inline-block; width:40px; text-align:right; color:var(--ink2); vertical-align:middle; }
body.v2-active #v2Page .tv-gbtn{ appearance:none; display:flex; align-items:center; gap:10px; border:0; background:none; padding:0; font:inherit; color:inherit; text-align:left; cursor:pointer; }
body.v2-active #v2Page .tv-gbtn:hover .tv-gname{ text-decoration:underline; text-underline-offset:2px; }
body.v2-active #v2Page .tv-mono{ display:inline-flex; align-items:center; justify-content:center; flex:none; width:28px; height:28px; border-radius:8px; font-size:10px; font-weight:700; }
body.v2-active #v2Page .tv-gtxt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
body.v2-active #v2Page .tv-gname{ font-weight:600; }
body.v2-active #v2Page .tv-gsub{ font-size:var(--fs-2, 12px); color:var(--ink2); font-weight:400; }

/* dialog (calendar) */
body.v2-active #v2Page .tv-dlg-back{ position:fixed; inset:0; z-index:var(--z-modal, 1000); display:flex; align-items:center; justify-content:center; padding:16px; background:rgba(17,17,24,.32); }
body.v2-active #v2Page .tv-dlg{ width:min(760px, 100%); max-height:calc(100vh - 32px); overflow-y:auto; padding:20px; background:var(--surface); border-radius:14px; box-shadow:0 20px 48px rgba(10,13,20,.18); }
body.v2-active #v2Page .tv-dlg h2{ margin:0 0 12px; font-size:18px; font-weight:650; }
body.v2-active #v2Page .tv-dlg .tv-edit{ padding:0; background:none; box-shadow:none; }

/* toast */
body.v2-active #v2Page .tv-toast{ position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:var(--z-toast, 9000); display:flex; align-items:center; gap:12px; max-width:min(560px, calc(100vw - 32px)); padding:10px 10px 10px 16px; border-radius:8px; background:var(--ink); color:var(--surface); font-size:var(--fs-3, 14px); box-shadow:0 8px 24px rgba(0,0,0,.2); }
body.v2-active #v2Page .tv-toast[hidden]{ display:none; }
body.v2-active #v2Page .tv-toast.bad{ background:var(--status-risk-text, #8E2A20); }
body.v2-active #v2Page .tv-toast-btn{ appearance:none; min-height:32px; padding:0 10px; border:0; border-radius:6px; background:var(--sulphur, #E8FF6B); color:var(--sulphur-ink, #3c4307); font:inherit; font-weight:600; cursor:pointer; }
body.v2-active #v2Page .tv-toast-x{ appearance:none; width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:6px; background:transparent; color:var(--surface); cursor:pointer; }
body.v2-active #v2Page .tv-toast :focus-visible{ outline:2px solid var(--sulphur, #E8FF6B); outline-offset:2px; box-shadow:none !important; }

/* top-bar timer: running dot */
body.v2-active #v2Shell .iconbtn.tv-running{ position:relative; background:color-mix(in srgb, var(--sulphur, #E8FF6B) 40%, var(--surface)); }
body.v2-active #v2Shell .iconbtn.tv-running::after{ content:""; position:absolute; top:6px; right:6px; width:7px; height:7px; border-radius:50%; background:#C2410C; animation:tvpulse 1.6s ease-in-out infinite; }
@keyframes tvpulse{ 50%{ opacity:.35; } }
@media (prefers-reduced-motion: reduce){ body.v2-active #v2Shell .iconbtn.tv-running::after{ animation:none; } }

/* focus (keyboard) */
body.v2-active #v2Page .tv a:focus-visible, body.v2-active #v2Page .tv button:focus-visible, body.v2-active #v2Page .tv select:focus-visible,
body.v2-active #v2Page .tv input:focus-visible, body.v2-active #v2Page .tv [tabindex]:focus-visible{ outline:none; box-shadow:var(--v2-focus-ring); }

/* tablet */
@media (max-width: 1100px){
  body.v2-active #v2Page .tv-tiles{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  body.v2-active #v2Page .tv-row-task, body.v2-active #v2Page .tv-row-span{ display:none; }
  body.v2-active #v2Page .tv-edit-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
/* phone */
@media (max-width: 640px){
  body.v2-active #v2Page .tv-tabs{ flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
  body.v2-active #v2Page .tv-tab{ flex:none; }
  body.v2-active #v2Page .tv-week{ white-space:nowrap; font-size:var(--fs-2, 12px); }
  body.v2-active #v2Page .tv-weekbar{ width:72px; }
  body.v2-active #v2Page .tv-bar{ padding:12px; }
  body.v2-active #v2Page .tv-desc{ flex-basis:100%; border-bottom:1px solid var(--line); }
  body.v2-active #v2Page .tv-cpick{ flex:1 1 auto; max-width:none; }
  body.v2-active #v2Page .tv-sel-task{ flex:1 1 100%; max-width:none; }
  body.v2-active #v2Page .tv-clock{ flex:1 1 auto; text-align:left; font-size:28px; }
  body.v2-active #v2Page .tv-tiles{ grid-template-columns:1fr 1fr; gap:8px; }
  body.v2-active #v2Page .tv-tile{ padding:12px; }
  body.v2-active #v2Page .tv-tile b{ font-size:18px; }
  body.v2-active #v2Page .tv-row{ flex-wrap:wrap; padding:8px 8px 8px 12px; gap:6px; }
  body.v2-active #v2Page .tv-row-main{ flex:1 1 calc(100% - 40px); flex-wrap:wrap; gap:4px 8px; min-height:0; }
  body.v2-active #v2Page .tv-row-desc{ flex-basis:100%; }
  body.v2-active #v2Page .tv-row-dur{ margin-left:auto; }
  body.v2-active #v2Page .tv-mix{ display:none; }
  body.v2-active #v2Page .tv-edit-grid{ grid-template-columns:1fr 1fr; }
  body.v2-active #v2Page .tv-f-2, body.v2-active #v2Page .tv-f-3{ grid-column:1 / -1; }
  body.v2-active #v2Page .tv-share-h, body.v2-active #v2Page .tv-share{ display:none; }
  body.v2-active #v2Page .tv-who{ margin-left:0; flex-basis:100%; }
}
/* touch: every control at least 44 × 44 */
@media (pointer: coarse){
  body.v2-active #v2Page .tv button, body.v2-active #v2Page .tv select, body.v2-active #v2Page .tv input:not([type="checkbox"]){ min-height:44px; }
  body.v2-active #v2Page .tv-icbtn, body.v2-active #v2Page .tv-bill{ min-width:44px; }
}
