/* =====================================================================
 * Valley Studio — back-office skin. Lifted from the Claude Design export
 * "Valley Studio — Productions", scoped under body.vf-studio so it can't
 * collide with the public site or the existing kp-/adb- admin classes.
 *
 * Theming: the design is the existing Valley token system with the light
 * NEUTRALS warmed (paper). We override just those raw --vf-* neutrals under
 * body.vf-studio; the semantic tokens (--bg/--fg/--line/--accent) map to them
 * automatically, and body.vf-admin-dark (kit-tech-portal.css) already flips the
 * raw tokens for dark — so the design classes theme in both modes for free.
 * app.jsx toggles body.vf-studio on every /admin page (the onAdmin set).
 * ===================================================================== */
/* Studio uses the brand's standard light tokens — the off-white page bg
   (--vf-bg #F7F8FA) + white cards (--vf-surface), NOT the design export's warm
   cream. So we DON'T override the neutrals here; the default colors_and_type.css
   light values apply in light mode and body.vf-admin-dark flips them for dark. */

/* Restore sticky chrome: the global `html, body { overflow-x: hidden }` makes
   body a scroll container, which silently breaks `position: sticky` on the
   navbar. `overflow-x: clip` clips the full-bleed hero the same way WITHOUT
   establishing a scroll container, so the sticky nav sticks to the viewport. */
body.vf-studio { overflow-x: clip; }

/* ---- Shell helpers + containers (base rules the design relies on) ---- */
body.vf-studio .view { display: none; }
body.vf-studio .view.active { display: block; }
body.vf-studio .kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
body.vf-studio .row { display: flex; }
body.vf-studio .row.ic, body.vf-studio .ic { align-items: center; }
body.vf-studio .row.between, body.vf-studio .between { justify-content: space-between; }
body.vf-studio .row.wrap, body.vf-studio .wrap { flex-wrap: wrap; }
body.vf-studio .g1 { gap: 4px; }
body.vf-studio .g2 { gap: 8px; }
body.vf-studio .mt-1 { margin-top: 4px; }
body.vf-studio .mute { color: var(--fg3); }
body.vf-studio .text-xs { font-size: 11.5px; }
body.vf-studio .semi { font-weight: 600; }
body.vf-studio .still { position: relative; border-radius: 8px; overflow: hidden; }
body.vf-studio .seg { display: inline-flex; align-items: center; gap: 2px; padding: 4px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 10px; }
body.vf-studio .page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
body.vf-studio .page-head h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--fg1); }
body.vf-studio .page-head .sub { color: var(--fg3); font-size: 13.5px; margin-top: 4px; }
body.vf-studio .av.photo { background-size: cover; background-position: center; color: transparent; }
body.vf-studio .more { width: 100%; text-align: center; padding: 6px; font-size: 11.5px; color: var(--vf-ink-4); background: none; border: 0; cursor: pointer; border-radius: 8px; }
body.vf-studio .more:hover { background: var(--bg-elev); }

/* ---- Lifted, scoped design rules ---- */
body.vf-studio .navbar-row { display: flex; align-items: center; gap: 12px; padding: 0 32px; }
body.vf-studio .navbar-row-top { height: 73px; }
body.vf-studio .navbar-row-bottom { height: 48px; border-top: 1px solid rgba(230,232,238,0.7); }
body.vf-studio .navbar-spacer { flex: 1; min-width: 16px; }
body.vf-studio .navbar-brand img { height: 32px; width: auto; display: block; }
body.vf-studio .navbar-brand-divider { width: 1px; height: 18px; background: var(--line-strong); }
body.vf-studio .navbar-brand-suffix { font-size: 16px; font-weight: 600; color: var(--fg2); letter-spacing: -0.01em; transition: color 160ms ease, letter-spacing 220ms cubic-bezier(.16,1,.3,1); }
body.vf-studio .navbar-brand:hover .navbar-brand-suffix, body.vf-studio .navbar-brand:focus-visible .navbar-brand-suffix { color: var(--fg1); letter-spacing: 0.05em; }
body.vf-studio .navbar-search:hover { border-color: var(--line-strong); }
body.vf-studio .navbar-search .ico { width: 14px; height: 14px; display: inline-flex; color: var(--fg4); }
body.vf-studio .navbar-search .ico svg { width: 14px; height: 14px; display: block; }
body.vf-studio .navbar-search-label { flex: 1; text-align: left; color: var(--fg4); }
body.vf-studio .navbar-search kbd { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg3); background: var(--bg-elev); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); line-height: 1; }
body.vf-studio .navbar-icon:hover { background: var(--bg-tint); }
body.vf-studio .navbar-icon-dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 999px; background: var(--vf-blue); border: 1.5px solid var(--bg-elev); }
body.vf-studio .navbar-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--vf-blue); color: #fff; font-size: 11.5px; font-weight: 700; text-decoration: none; letter-spacing: 0.02em; flex: none; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.85), 0 1px 2px rgba(9,94,223,0.25); }
body.vf-studio .navbar-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--fg2); text-decoration: none; white-space: nowrap; transition: color 140ms, background 140ms; }
body.vf-studio .navbar-link:hover { color: var(--fg1); }
body.vf-studio .navbar-link.active { color: var(--fg1); font-weight: 600; background: #fff; box-shadow: 0 1px 3px rgba(10,15,26,0.08); }
body.vf-studio .navbar-pill .navbar-link:last-child:hover { background: rgba(9,94,223,0.16); }
body.vf-studio .navbar-pill .navbar-link:last-child.active { background: var(--vf-blue); color: #fff; box-shadow: 0 1px 2px rgba(9,94,223,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
body.vf-studio .navbar-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 999px; background: rgba(10,15,26,0.08); color: var(--fg2); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
body.vf-studio .navbar-link.active .navbar-badge { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .navbar-pill .navbar-link:last-child .navbar-badge { background: rgba(9,94,223,0.18); color: var(--vf-blue); }
body.vf-studio .navbar-pill .navbar-link:last-child.active .navbar-badge { background: rgba(255,255,255,0.25); color: #fff; }
body.vf-studio .navbar-crumb b { color: var(--fg1); font-weight: 600; }
body.vf-studio .navbar-crumb a:hover { color: var(--vf-blue); }
body.vf-studio .navbar-title { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; margin: 0; color: var(--fg1); }
body.vf-studio .navbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
body.vf-studio .btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
body.vf-studio .btn.lg { padding: 11px 18px; font-size: 14.5px; border-radius: 10px; }
body.vf-studio .btn.primary { background: var(--vf-blue); color: #fff; border-color: var(--vf-blue); box-shadow: 0 1px 2px rgba(9,94,223,0.2); }
body.vf-studio .btn.primary:hover { background: var(--vf-blue-600); box-shadow: 0 2px 8px rgba(9,94,223,0.28); }
body.vf-studio .btn.secondary { background: var(--bg-elev); border-color: var(--line-strong); color: var(--fg1); }
body.vf-studio .btn.secondary:hover { background: var(--bg-tint); }
body.vf-studio .btn.ghost { color: var(--fg2); }
body.vf-studio .btn.ghost:hover { background: var(--bg-tint); }
body.vf-studio .chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--bg-tint); color: var(--fg2); white-space: nowrap; cursor: default; }
body.vf-studio .chip.outline { background: transparent; border: 1px solid var(--line-strong); color: var(--fg2); }
body.vf-studio .chip.blue { background: var(--accent-soft); color: var(--vf-blue); font-weight: 600; }
body.vf-studio .chip.solid-blue { background: var(--vf-blue); color: #fff; font-weight: 600; }
body.vf-studio .chip.success { background: var(--success-soft); color: var(--success); font-weight: 600; }
body.vf-studio .chip.warn { background: var(--warning-soft); color: var(--warning); font-weight: 600; }
body.vf-studio .chip.danger { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
body.vf-studio .status .dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: 0.85; }
body.vf-studio .status.todo-pre { background: #F4ECE0; color: #876234; }
body.vf-studio .status.todo-prod { background: #F5E2D6; color: #A0552A; }
body.vf-studio .status.ip-blue { background: #E1ECFB; color: #0850BF; }
body.vf-studio .status.ip-green { background: #E4F4EC; color: #1F7D44; }
body.vf-studio .status.complete-green { background: #1F9D55; color: #fff; }
body.vf-studio .status.complete-gray { background: #DEDEDA; color: #4A4A47; }
body.vf-studio .status.complete-red { background: #FBE3E6; color: #B72131; }
body.vf-studio .av.sm { width: 24px; height: 24px; font-size: 10px; border-width: 1.5px; }
body.vf-studio .av.lg { width: 44px; height: 44px; font-size: 14px; }
body.vf-studio .av.xl { width: 72px; height: 72px; font-size: 22px; }
body.vf-studio .av.blue { background: var(--vf-blue); color: #fff; }
body.vf-studio .av.bg-1 { background: #E1ECFB; color: #0850BF; }
body.vf-studio .av.bg-2 { background: #FBEFD8; color: #C97A0A; }
body.vf-studio .av.bg-3 { background: #E4F4EC; color: #1F7D44; }
body.vf-studio .av.bg-4 { background: #F5E2D6; color: #A0552A; }
body.vf-studio .av.bg-5 { background: #ECE3F6; color: #6E3DBF; }
body.vf-studio .av-stack { display: inline-flex; }
body.vf-studio .av-stack > * + * { margin-left: -6px; }
body.vf-studio .av.photo { color: transparent; background-size: cover; background-position: center; background-repeat: no-repeat; text-indent: -9999px; }
body.vf-studio .av.photo.mp { background-image: url("bde4d973-a8b4-4a2d-a89f-283560372375"); }
body.vf-studio .av.photo.pd { background-image: url("b4763a6b-54a2-44db-9812-0f7b60a82183"); }
body.vf-studio .av.photo.vp { background-image: url("871ffcad-64a9-45e8-ac06-476c411eea9e"); }
body.vf-studio .card.tight { padding: 14px; border-radius: 12px; }
body.vf-studio .card.flush { padding: 0; overflow: hidden; }
body.vf-studio .tabs.pill .tab { padding: 7px 14px; border-radius: 8px; border-bottom: none; margin-bottom: 0; color: var(--fg3); white-space: nowrap; }
body.vf-studio .tabs.pill .tab.active { background: var(--bg-elev); color: var(--fg1); box-shadow: 0 1px 2px rgba(10,15,26,0.06), inset 0 0 0 1px rgba(10,15,26,0.04); border-bottom: none; }
body.vf-studio .icn svg { display: block; }
body.vf-studio .tab { padding: 8px 14px; font-size: 13px; color: var(--fg3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 6px; }
body.vf-studio .tab:hover { color: var(--fg1); }
body.vf-studio .tab.active { color: var(--vf-blue); border-bottom-color: var(--vf-blue); font-weight: 600; }
body.vf-studio .tab .count { background: var(--bg-tint); color: var(--fg3); font-size: 10.5px; padding: 1px 6px; border-radius: 999px; font-weight: 600; }
body.vf-studio .tab.active .count { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .bar > div { height: 100%; border-radius: 999px; background: var(--vf-blue); }
body.vf-studio .seg .btn { background: transparent; border: 0; }
body.vf-studio .seg .btn.active { background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
body.vf-studio .mute { color: var(--fg3); }
body.vf-studio .text-xs { font-size: 11.5px; }
body.vf-studio .semi { font-weight: 600; }
body.vf-studio .ic { align-items: center; }
body.vf-studio .between { justify-content: space-between; }
body.vf-studio .g1 { gap: 4px; }
body.vf-studio .g2 { gap: 8px; }
body.vf-studio .mt-1 { margin-top: 4px; }
body.vf-studio .page-head h2 { margin: 0; }
body.vf-studio .page-head .sub { color: var(--fg3); font-size: 13.5px; margin-top: 4px; }
body.vf-studio .table-row { display: grid; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; }
body.vf-studio .table-row:hover { background: var(--bg-tint); }
body.vf-studio .table-row:last-child { border-bottom: none; }
body.vf-studio .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
body.vf-studio .dot-ok { background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,0.15); }
body.vf-studio body[data-density="compact"] .table-row { padding-top: 8px; padding-bottom: 8px; font-size: 12.5px; }
body.vf-studio .view-pill.on .ct, body.vf-studio .space-row.active .ct, body.vf-studio .cd-tabs button.on .count { display: inline-flex; margin-left: 6px; }
body.vf-studio .still::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 3px 3px; opacity: 0.7; pointer-events: none; }
body.vf-studio .still.warm { background: linear-gradient(135deg, oklch(0.34 0.05 50), oklch(0.18 0.04 30)); }
body.vf-studio .still.cool { background: linear-gradient(135deg, oklch(0.36 0.06 240), oklch(0.18 0.04 250)); }
body.vf-studio .still.green { background: linear-gradient(135deg, oklch(0.38 0.05 150), oklch(0.20 0.03 150)); }
body.vf-studio .status.todo-prod { background: #F0E0D2; color: #874A24; }
body.vf-studio .status.ip-blue { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .status.ip-green { background: #E2EFE8; color: #1B6E3A; }
body.vf-studio .status.complete-green { background: #1F8E4D; color: #fff; }
body.vf-studio .status.complete-gray { background: #DEDCD7; color: #4A4742; }
body.vf-studio .status.complete-red { background: #F5DDE0; color: #A6202F; }
body.vf-studio .chip.outline { background: transparent; border-color: var(--line); }
body.vf-studio.vf-admin-dark .navbar-row-bottom { border-top-color: rgba(255,255,255,0.05); }
body.vf-studio.vf-admin-dark .navbar-brand-divider { background: rgba(255,255,255,0.14); }
body.vf-studio.vf-admin-dark .navbar-brand img { filter: brightness(0) invert(1); }
body.vf-studio.vf-admin-dark .navbar-pill { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }
body.vf-studio.vf-admin-dark .navbar-link { color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .navbar-link:hover { color: #fff; }
body.vf-studio.vf-admin-dark .navbar-link.active { background: rgba(255,255,255,0.10); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06); }
body.vf-studio.vf-admin-dark .navbar-badge { background: rgba(255,255,255,0.10); color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .navbar-pill .navbar-link:last-child { background: rgba(9,94,223,0.20); color: var(--vf-blue-300); }
body.vf-studio.vf-admin-dark .navbar-pill .navbar-link:last-child:hover { background: rgba(9,94,223,0.28); }
body.vf-studio.vf-admin-dark .navbar-icon:hover { background: rgba(255,255,255,0.06); }
body.vf-studio.vf-admin-dark .navbar-search { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: var(--vf-snow-3); }
body.vf-studio.vf-admin-dark .navbar-search kbd { background: rgba(255,255,255,0.06); color: var(--vf-snow-2); border-color: rgba(255,255,255,0.08); }
body.vf-studio.vf-admin-dark .seg .btn.active { background: var(--vf-night-3); border-color: var(--vf-line-dark-2); }
body.vf-studio.vf-admin-dark .table-head { background: var(--vf-night-3); color: var(--vf-snow-3); }
body.vf-studio.vf-admin-dark .table-row:hover { background: rgba(255,255,255,0.03); }
body.vf-studio.vf-admin-dark .bar { background: rgba(255,255,255,0.08); }
body.vf-studio.vf-admin-dark .chip.outline { background: transparent; border-color: rgba(255,255,255,0.12); color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .chip.blue { background: rgba(9,94,223,0.20); color: var(--vf-blue-300); }
body.vf-studio.vf-admin-dark .chip.success { background: rgba(31,142,77,0.18); color: #6BD394; }
body.vf-studio.vf-admin-dark .chip.warn { background: rgba(201,122,10,0.18); color: #E8B864; }
body.vf-studio.vf-admin-dark .chip.danger { background: rgba(215,38,61,0.18); color: #F08A95; }
body.vf-studio.vf-admin-dark .status { background: rgba(255,255,255,0.06); color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .status.todo-pre { background: rgba(201,122,10,0.18); color: #E5BC74; }
body.vf-studio.vf-admin-dark .status.todo-prod { background: rgba(160,85,42,0.22); color: #F0A985; }
body.vf-studio.vf-admin-dark .status.ip-blue { background: rgba(9,94,223,0.20); color: var(--vf-blue-300); }
body.vf-studio.vf-admin-dark .status.ip-green { background: rgba(31,142,77,0.18); color: #6BD394; }
body.vf-studio.vf-admin-dark .status.complete-green { background: #1F8E4D; color: #fff; }
body.vf-studio.vf-admin-dark .status.complete-gray { background: rgba(255,255,255,0.10); color: var(--vf-snow-3); }
body.vf-studio.vf-admin-dark .status.complete-red { background: rgba(215,38,61,0.20); color: #F08A95; }
body.vf-studio.vf-admin-dark .btn.secondary:hover { background: var(--vf-night-3); }
body.vf-studio.vf-admin-dark .btn.ghost { color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .btn.ghost:hover { background: rgba(255,255,255,0.06); }
body.vf-studio .view.active { display: block; }
body.vf-studio .kcol { min-width: 280px; width: 280px; background: var(--bg-tint); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
body.vf-studio .kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
body.vf-studio .kcard { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; transition: box-shadow 140ms, transform 140ms; }
body.vf-studio .kcard:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
body.vf-studio .kcard .still { height: 80px; padding: 8px; }
body.vf-studio .kcol .more { text-align: center; font-size: 11.5px; color: var(--fg4); padding: 6px; cursor: pointer; border-radius: 8px; }
body.vf-studio .kcol .more:hover { background: var(--bg-elev); color: var(--fg2); }
body.vf-studio .prod-list-head { display: grid; grid-template-columns: 60px 1.7fr 1fr 1.1fr 0.9fr 130px 130px; gap: 14px; padding: 10px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--line); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg4); }
body.vf-studio .prod-list-row { display: grid; grid-template-columns: 60px 1.7fr 1fr 1.1fr 0.9fr 130px 130px; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; text-decoration: none; color: inherit; cursor: pointer; transition: background 100ms; }
body.vf-studio .prod-list-row:hover { background: var(--bg-tint); }
body.vf-studio .prod-list-row:last-child { border-bottom: none; }
body.vf-studio .prod-list-row .thumb { width: 60px; height: 36px; border-radius: 6px; overflow: hidden; }
body.vf-studio .prod-list-row .ttl { font-weight: 600; }
body.vf-studio .prod-list-row .sub { font-size: 11.5px; color: var(--fg4); margin-top: 2px; }
body.vf-studio .prod-list-row .stage-cell { color: var(--fg2); font-size: 12px; }
body.vf-studio .prod-list-row .dates { font-family: var(--font-mono); font-size: 11.5px; color: var(--fg3); }
body.vf-studio .prod-list-row .crew { display: inline-flex; }
body.vf-studio .prod-list-row .crew .av { width: 22px; height: 22px; font-size: 9px; }
body.vf-studio .prod-list-group:first-of-type { border-top: 0; padding-top: 14px; }
body.vf-studio .prod-list-group .ct { font-weight: 500; color: var(--fg4); }
body.vf-studio .yg-months { display: grid; grid-template-columns: repeat(12, 1fr); height: 28px; background: var(--bg-tint); border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg3); grid-column: 2; }
body.vf-studio .yg-months > div { padding: 7px 0; text-align: center; border-right: 1px solid var(--line); }
body.vf-studio .yg-months > div:last-child { border-right: 0; }
body.vf-studio .yg-corner { background: var(--bg-tint); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 28px; }
body.vf-studio .yg-year { height: 56px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-tint); display: flex; align-items: center; justify-content: center; font: 600 13px var(--font-mono); color: var(--fg3); letter-spacing: 0.06em; }
body.vf-studio .yg-row { position: relative; height: 56px; border-bottom: 1px solid var(--line); background: linear-gradient(to right, transparent calc(100%/12 - 1px), var(--line) calc(100%/12 - 1px), var(--line) calc(100%/12), transparent calc(100%/12)); background-size: calc(100%*1/12) 100%; }
body.vf-studio .yg-row:last-child { border-bottom: 0; }
body.vf-studio .yg-bar { position: absolute; top: 12px; height: 32px; border-radius: 6px; display: flex; align-items: center; padding: 0 10px; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; text-decoration: none; transition: transform 140ms, box-shadow 140ms; }
body.vf-studio .yg-bar:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10,15,26,0.18); z-index: 3; }
body.vf-studio .yg-bar.prod { background:#A0552A; }
body.vf-studio .yg-bar.ingest { background: var(--vf-blue); opacity:0.88; }
body.vf-studio .yg-bar.revs { background: var(--vf-blue); }
body.vf-studio .yg-bar.signoff { background:#1F8E4D; }
body.vf-studio .yg-bar.live { background:#DEDCD7; color: var(--fg1); border:1px solid var(--line-strong); }
body.vf-studio .yg-bar.archive { background: var(--fg4); }
body.vf-studio .yg-bar.cancelled { background: transparent; color: var(--danger); border:1px dashed var(--danger); }
body.vf-studio .yg-today::after { content: "TODAY"; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font: 700 9px var(--font-mono); letter-spacing: 0.1em; background: var(--danger); color: #fff; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

/* The Studio navbar is sticky (in normal flow), unlike the old fixed kp-topbar
   — so drop the 84px top clearance the admin mains reserved for the fixed bar. */
body.vf-studio .kit-portal { padding-top: 0; }
body.vf-studio .kit-portal.kit-portal-dashboard { padding-top: 0; }
/* Search pill icon sizing (the design's .navbar-search .ico). */
body.vf-studio .navbar-search .ico { display: inline-flex; }
body.vf-studio .navbar-search .ico svg { display: block; }

/* ---- Productions screen extras (page-head, board drop-state, timeline) ---- */
body.vf-studio .content { padding: 24px 32px 64px; }
body.vf-studio .h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; color: var(--fg1); margin: 0; }
body.vf-studio .text-sm { font-size: 13.5px; }
body.vf-studio .mt-2 { margin-top: 8px; }
body.vf-studio .kcol.is-over { outline: 2px dashed var(--accent); outline-offset: -3px; background: var(--accent-soft-2); }
body.vf-studio .kcard.is-dragging { opacity: 0.5; }
/* initial-avatar fallback (no headshot yet) reads on the neutral chip */
body.vf-studio .av.photo { color: transparent; }

body.vf-studio .st-timeline { display: flex; flex-direction: column; gap: 20px; }
body.vf-studio .st-tl-month { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg4); margin-bottom: 8px; }
body.vf-studio .st-tl-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-elev); }
body.vf-studio .st-tl-row { display: grid; grid-template-columns: 168px minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
body.vf-studio .st-tl-row:last-child { border-bottom: 0; }
body.vf-studio .st-tl-row:hover { background: var(--bg-tint); }
body.vf-studio .st-tl-title { font-size: 13.5px; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .st-tl-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .st-tl-date { justify-self: end; white-space: nowrap; }
@media (max-width: 760px) {
  body.vf-studio .content { padding: 18px 16px 56px; }
  body.vf-studio .st-tl-row { grid-template-columns: 1fr auto; }
  body.vf-studio .st-tl-sub { display: none; }
}

/* ---- Base rules dropped during the design lift (modifiers survived, bases didn't) ---- */
body.vf-studio .av { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; background: var(--bg-tint); color: var(--fg1); font-size: 11.5px; font-weight: 600; flex-shrink: 0; border: 1.5px solid var(--bg-elev); overflow: hidden; }
body.vf-studio .status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--bg-tint); color: var(--fg2); }
body.vf-studio .ver-tag { display: inline-flex; align-items: center; font: 600 10.5px var(--font-mono); letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio.vf-admin-dark .av { background: rgba(255,255,255,0.08); color: var(--vf-snow-2); border-color: var(--vf-ink-1); }

/* ===================================================================
 * Navbar container bases (dropped during the design lift) + the
 * hover-reveal sub-menus (Rentals → Equipment/Kit Tech/Purchase/
 * Consignments; Resources → CRM/Crew). The link/row/brand-suffix/badge
 * rules survived the lift; the single-class container bases below did not.
 * =================================================================== */
/* Bar matches the public rentals nav (.nav.is-light) + the portal .kp-topbar exactly. */
body.vf-studio .navbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(247,248,250,0.74) 0%, rgba(247,248,250,0.58) 100%); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid rgba(10,15,26,0.08); box-shadow: inset 0 1px 0 rgba(255,255,255,0.85), 0 6px 20px rgba(10,15,26,0.06); }
body.vf-studio .navbar-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; padding: 4px 0; color: inherit; }
body.vf-studio .navbar-search { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font: inherit; font-size: 13px; color: var(--fg4); width: 280px; cursor: text; transition: border-color 140ms, background 140ms; }
/* Pill matches .kp-portaltabs — flat, no inner highlight / blur. */
body.vf-studio .navbar-pill { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 4px; border-radius: 999px; background: rgba(10,15,26,0.06); border: 1px solid rgba(10,15,26,0.10); }
/* Messages (last pill) gets the resting blue-CTA tint. */
body.vf-studio .navbar-pill > .navbar-link:last-child { background: var(--accent-soft); color: var(--vf-blue); font-weight: 600; }

/* Hover-reveal sub-menu. Parent pills with subs wrap in .navbar-item; on hover
 * a frosted menu card (same glass + radii as the bar) fades + lifts in. Anchored
 * to the item's right edge so right-side pills (Resources) stay on screen. */
body.vf-studio .navbar-item { position: relative; display: inline-flex; }
body.vf-studio .navbar-flyout { position: absolute; top: calc(100% + 9px); right: 0; left: auto; transform-origin: top right; display: flex; flex-direction: column; gap: 1px; min-width: 186px; padding: 6px; border-radius: 15px; background: linear-gradient(180deg, rgba(255,255,255,0.93) 0%, rgba(247,248,250,0.86) 100%); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(10,15,26,0.08); box-shadow: 0 20px 46px rgba(10,15,26,0.16), inset 0 1px 0 rgba(255,255,255,0.75); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-7px) scale(0.97); transition: opacity 180ms ease, transform 260ms cubic-bezier(.16,1,.3,1), visibility 0s linear 180ms; z-index: 40; }
body.vf-studio .navbar-item:hover > .navbar-flyout,
body.vf-studio .navbar-item:focus-within > .navbar-flyout { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
/* invisible hover bridge across the gap so the flyout doesn't drop */
body.vf-studio .navbar-flyout::before { content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 11px; }
body.vf-studio .navbar-sublink { display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--fg2); background: transparent; text-decoration: none; white-space: nowrap; transition: background 130ms ease, color 130ms ease; }
body.vf-studio .navbar-sublink:hover { background: var(--bg-tint); color: var(--fg1); }
body.vf-studio .navbar-sublink.active { background: var(--accent-soft); color: var(--vf-blue); font-weight: 600; }

/* ── Dark mode, refined (Studio-scoped) ──────────────────────────────────────
   The shared dark palette bottoms out near pure black (--vf-night #07080C) with
   cards only a hair lighter (#0E1118), which reads flat and murky. Lift the base
   off black and open a clear elevation ladder — page < card < hover — with
   crisper hairlines, so surfaces separate cleanly. Overrides both the semantic
   (--bg/--fg/--line) and raw (--vf-*) tokens, so every Studio class follows. */
body.vf-studio.vf-admin-dark {
  --bg: #0B0D12;            --vf-bg: #0B0D12;
  --bg-elev: #14171E;       --vf-surface: #14171E;      --surface: #14171E;
  --bg-tint: #1C212B;       --vf-bg-tint: #1C212B;
  --line: #272D39;          --vf-line: #272D39;
  --line-strong: #353D4C;   --vf-line-strong: #353D4C;
  --fg1: #F4F6FA;           --vf-ink: #F4F6FA;
  --fg2: #C8CFDB;           --vf-ink-2: #C8CFDB;
  --fg3: #98A1B1;           --vf-ink-3: #98A1B1;
  --fg4: #6B7382;           --vf-ink-4: #6B7382;
  --accent-soft: rgba(58,124,233,0.18);
  background: #0B0D12;
}

/* Dark mode: frosted-dark glass bar (more translucent so the wallpaper blurs
   through) + sub-pills that inherit the new tokens. */
body.vf-studio.vf-admin-dark .navbar { background: linear-gradient(180deg, rgba(19,23,30,0.78) 0%, rgba(13,16,22,0.64) 100%); border-bottom-color: rgba(255,255,255,0.07); box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 26px rgba(0,0,0,0.5); }
body.vf-studio.vf-admin-dark .navbar-search { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }
body.vf-studio.vf-admin-dark .navbar-flyout { background: linear-gradient(180deg, rgba(26,31,42,0.94) 0%, rgba(18,22,30,0.9) 100%); border-color: rgba(255,255,255,0.1); box-shadow: 0 20px 46px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06); }
body.vf-studio.vf-admin-dark .navbar-sublink { background: transparent; color: var(--vf-snow-2); box-shadow: none; }
body.vf-studio.vf-admin-dark .navbar-sublink:hover { background: rgba(255,255,255,0.08); color: #fff; }
body.vf-studio.vf-admin-dark .navbar-sublink.active { background: rgba(9,94,223,0.24); color: var(--vf-blue-300); }

/* ---- ⌘K command palette ---- */
body.vf-studio .kp-cmdk-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px; background: rgba(10,15,26,0.34); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
body.vf-studio .kp-cmdk { width: min(560px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(10,15,26,0.28); overflow: hidden; }
body.vf-studio .kp-cmdk-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
body.vf-studio .kp-cmdk-search svg { color: var(--fg4); flex: none; }
body.vf-studio .kp-cmdk-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--fg1); outline: none; }
body.vf-studio .kp-cmdk-search kbd { font-family: var(--font-mono); font-size: 10.5px; color: var(--fg3); background: var(--bg-tint); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); line-height: 1; flex: none; }
body.vf-studio .kp-cmdk-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
body.vf-studio .kp-cmdk-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--fg1); font: inherit; font-size: 14px; }
body.vf-studio .kp-cmdk-item.active { background: var(--accent-soft); }
body.vf-studio .kp-cmdk-item-label { font-weight: 500; }
body.vf-studio .kp-cmdk-item-hint { font-size: 11.5px; color: var(--fg4); white-space: nowrap; }
body.vf-studio .kp-cmdk-item.active .kp-cmdk-item-hint { color: var(--vf-blue); }
body.vf-studio .kp-cmdk-empty { padding: 22px; text-align: center; color: var(--fg4); font-size: 13px; }

/* ===================================================================
 * Studio footer (drafts.valley.rentals style) — brand block + 4 link
 * columns + a bottom bar with the light/dark toggle and signed-in name.
 * =================================================================== */
body.vf-studio .vf-footer { background: var(--bg-elev); border-top: 1px solid var(--line); margin-top: 64px; padding: 56px 32px 24px; }
body.vf-studio .vf-footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 64px; }
body.vf-studio .vf-footer-tag { margin: 16px 0 0; color: var(--fg2); font-size: 13px; max-width: 240px; line-height: 1.5; }
body.vf-studio .vf-footer-meta { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: var(--fg3); font-size: 11.5px; font-family: var(--font-mono); }
body.vf-studio .vf-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
body.vf-studio .vf-footer-col { display: flex; flex-direction: column; gap: 10px; }
body.vf-studio .vf-footer-h { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg3); margin-bottom: 4px; }
body.vf-studio .vf-footer-col a { font-size: 13.5px; color: var(--fg2); text-decoration: none; transition: color 140ms; display: inline-flex; align-items: center; gap: 4px; }
body.vf-studio .vf-footer-col a:hover { color: var(--vf-blue); }
body.vf-studio .vf-footer-soon { font-size: 13.5px; color: var(--fg4); cursor: default; }
body.vf-studio .vf-footer-signout { color: var(--fg3) !important; }
body.vf-studio .vf-footer-signout:hover { color: #c83a3a !important; }
body.vf-studio .vf-footer-bottom { max-width: 1320px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--fg3); flex-wrap: wrap; }
body.vf-studio .vf-footer-spacer { flex: 1; min-width: 12px; }
body.vf-studio .vf-footer-loggedin strong { color: var(--fg1); font-weight: 600; }
body.vf-studio .vf-footer-appearance { color: var(--fg3); text-decoration: none; transition: color 140ms; }
body.vf-studio .vf-footer-appearance:hover { color: var(--vf-blue); }

/* Light/dark toggle (footer bottom row) */
body.vf-studio .vf-theme-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 999px; }
body.vf-studio .vf-theme-toggle .opt { display: inline-flex; align-items: center; gap: 5px; justify-content: center; padding: 5px 12px; border: 0; background: none; border-radius: 999px; color: var(--fg3); font: inherit; font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; transition: background 140ms, color 140ms; }
body.vf-studio .vf-theme-toggle .opt.on { background: var(--bg-elev); color: var(--fg1); box-shadow: 0 1px 2px rgba(10,15,26,0.08); font-weight: 600; }

/* Dark mode */
body.vf-studio.vf-admin-dark .vf-footer { background: var(--vf-night); border-top-color: var(--vf-line-dark); }
body.vf-studio.vf-admin-dark .vf-footer-brand .navbar-brand-divider { background: rgba(255,255,255,0.14); }
body.vf-studio.vf-admin-dark .vf-footer-brand img { filter: brightness(0) invert(1); }
body.vf-studio.vf-admin-dark .vf-footer-bottom { border-top-color: var(--vf-line-dark); }
body.vf-studio.vf-admin-dark .vf-theme-toggle .opt.on { box-shadow: none; }

@media (max-width: 900px) {
  body.vf-studio .vf-footer-inner { grid-template-columns: 1fr; gap: 40px; }
  body.vf-studio .vf-footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Dark: invert the blue logomark to white in the topbar brand (footer handled above). */
body.vf-studio.vf-admin-dark .navbar-brand img { filter: brightness(0) invert(1); }
body.vf-studio.vf-admin-dark .navbar-brand-divider { background: rgba(255,255,255,0.14); }

/* Base .btn (dropped during the lift; modifiers .sm/.primary/.secondary survived). */
body.vf-studio .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; font-size: 13px; font-weight: 600; border-radius: 9px; border: 1px solid transparent; cursor: pointer; font-family: inherit; background: transparent; color: var(--fg1); white-space: nowrap; transition: background 140ms, transform 140ms, box-shadow 140ms; }
body.vf-studio .btn:disabled { opacity: 0.6; cursor: default; }

/* Force-refresh buttons (Productions toolbar + AdminTableViewer toolbar). */
body.vf-studio .vf-refresh { gap: 7px; }
body.vf-studio .vf-refresh svg { display: block; }
@keyframes vf-spin { to { transform: rotate(360deg); } }
body.vf-studio .vf-spin { animation: vf-spin 0.8s linear infinite; transform-origin: 50% 50%; }

/* ===================================================================
 * Tasks board (.tk-*) — priority bands, status/location pills, assignee
 * avatars, and the date/status/location/assignee filter toolbar.
 * =================================================================== */
body.vf-studio .tk-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
body.vf-studio .tk-refresh { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 140ms, color 140ms; }
body.vf-studio .tk-refresh:hover { background: var(--bg-tint); color: var(--fg1); }
body.vf-studio .tk-refresh:disabled { opacity: 0.6; cursor: default; }
body.vf-studio .tk-refresh.is-spinning svg { animation: vf-spin 0.8s linear infinite; transform-origin: 50% 50%; }
body.vf-studio .tk-search { flex: 1; min-width: 160px; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 16px; background: var(--bg-elev); font: inherit; font-size: 14px; color: var(--fg1); outline: none; }
body.vf-studio .tk-search:focus { border-color: var(--vf-blue); }
body.vf-studio .tk-filter { position: relative; flex: none; }
/* Chiplet showing the current selection; grey when it's the default, blue tint
   when a filter is set. Options reveal on hover / keyboard focus. */
body.vf-studio .tk-chip { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 13px; border-radius: 999px; background: rgba(10,15,26,0.06); color: var(--fg2); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: default; outline: none; }
body.vf-studio .tk-chip-k { color: var(--fg4); font-weight: 500; }
body.vf-studio .tk-chip.is-set { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-chip.is-set .tk-chip-k { color: var(--vf-blue); opacity: 0.7; }
body.vf-studio.vf-admin-dark .tk-chip { background: rgba(255,255,255,0.08); color: var(--vf-snow-2); }
/* Hover bridge ABOVE the chip (the menu opens upward) so the cursor doesn't drop the hover. */
body.vf-studio .tk-filter::after { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 11px; }
/* Opens UPWARD out of the toolbar (so it never covers the board below), with a smooth fade + rise. */
/* Anchored to the chip's RIGHT edge so it expands up-and-left and stays on
   screen (left:0 overflowed the viewport and got clipped by overflow-x:clip). */
body.vf-studio .tk-filter-menu { position: absolute; bottom: calc(100% + 10px); right: 0; left: auto; min-width: 168px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(10,15,26,0.20); padding: 6px; z-index: 40; display: flex; flex-direction: column; gap: 1px; opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.96); transform-origin: bottom right; pointer-events: none; transition: opacity 240ms ease, transform 380ms cubic-bezier(.16,1,.3,1), visibility 0s linear 280ms; }
body.vf-studio .tk-filter:hover .tk-filter-menu, body.vf-studio .tk-filter:focus-within .tk-filter-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; transition: opacity 200ms ease, transform 380ms cubic-bezier(.16,1,.3,1), visibility 0s; }
body.vf-studio .tk-filter-opt { text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font: inherit; font-size: 13px; color: var(--fg1); cursor: pointer; white-space: nowrap; }
body.vf-studio .tk-filter-opt:hover { background: var(--bg-tint); }
body.vf-studio .tk-filter-opt.active { background: var(--accent-soft); color: var(--vf-blue); font-weight: 600; }

body.vf-studio .tk-people { display: inline-flex; align-items: center; flex: none; padding-left: 2px; }
body.vf-studio .tk-av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; border: 2px solid var(--bg-elev); cursor: pointer; flex: none; overflow: hidden; background-position: center; background-repeat: no-repeat; transition: opacity 140ms, box-shadow 140ms; }
/* Toolbar assignee filter: avatars stack/overlap (like the row stacks), then
   fan apart on hover/focus so you can pick one out. */
body.vf-studio .tk-people .tk-av { position: relative; transition: margin-left 180ms ease, transform 140ms, opacity 140ms, box-shadow 140ms; }
body.vf-studio .tk-people .tk-av + .tk-av { margin-left: -10px; }
body.vf-studio .tk-people:hover .tk-av + .tk-av,
body.vf-studio .tk-people:focus-within .tk-av + .tk-av { margin-left: 5px; }
body.vf-studio .tk-people .tk-av:hover { transform: translateY(-1px); z-index: 3; }
body.vf-studio .tk-people .tk-av.is-on { box-shadow: 0 0 0 2px var(--vf-blue); z-index: 2; }
body.vf-studio .tk-people .tk-av.is-dim { opacity: 0.4; }

body.vf-studio .tk-bands { display: flex; flex-direction: column; gap: 8px; }
body.vf-studio .tk-band { position: relative; border-radius: 16px; padding: 4px 16px; }
body.vf-studio .tk-band-label { position: absolute; left: 0; top: 0; bottom: 0; width: 46px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(10,15,26,0.5); }
/* Priority bands carry their own colour now (no dot/label) — a clearer tint plus
   a solid left rail, matched to the priority pill hues (red/orange/yellow/grey). */
body.vf-studio .tk-band-immediate { background: rgba(224,49,75,0.11);  box-shadow: inset 4px 0 0 #E0314B; }
body.vf-studio .tk-band-high      { background: rgba(224,122,46,0.11); box-shadow: inset 4px 0 0 #E07A2E; }
body.vf-studio .tk-band-medium    { background: rgba(222,176,33,0.13); box-shadow: inset 4px 0 0 #E0B021; }
body.vf-studio .tk-band-low       { background: rgba(120,135,160,0.10); box-shadow: inset 4px 0 0 #94A1B5; }
body.vf-studio .tk-band-none      { background: rgba(10,15,26,0.04);   box-shadow: inset 4px 0 0 rgba(10,15,26,0.18); }

body.vf-studio .tk-rows { display: flex; flex-direction: column; }
body.vf-studio .tk-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px 40px 150px; align-items: center; gap: 12px; padding: 7px 14px; text-decoration: none; color: inherit; border-radius: 8px; transition: background 120ms; }
/* Straight full-width divider (a border-bottom would curve at the rounded corners). */
body.vf-studio .tk-row::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(10,15,26,0.09); }
body.vf-studio .tk-rows .tk-row:last-child::after { display: none; }
body.vf-studio .tk-row:hover { background: rgba(255,255,255,0.4); }
body.vf-studio .tk-row-title { font-weight: 700; font-size: 15px; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .tk-row-date { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; color: rgba(10,15,26,0.62); }
body.vf-studio .tk-row-people { justify-self: end; display: inline-flex; }
body.vf-studio .tk-row-people .tk-av { cursor: default; }
body.vf-studio .tk-row-people .tk-av + .tk-av { margin-left: -8px; }

body.vf-studio .tk-pill { display: inline-flex; align-items: center; justify-content: center; justify-self: start; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body.vf-studio .tk-pill-yellow { background: rgba(208,156,32,0.18); color: #876512; }
body.vf-studio .tk-pill-blue   { background: rgba(42,120,234,0.13); color: #2860C2; }
body.vf-studio .tk-pill-amber  { background: rgba(201,122,20,0.16); color: #95600F; }
body.vf-studio .tk-pill-green  { background: rgba(31,157,85,0.15); color: #1A7A43; }
body.vf-studio .tk-pill-purple { background: rgba(124,77,224,0.13); color: #6A3EB6; }
body.vf-studio .tk-pill-indigo { background: rgba(42,107,224,0.13); color: #2E63CC; }
body.vf-studio .tk-pill-red    { background: rgba(216,52,74,0.12); color: #C12F46; }
body.vf-studio .tk-pill-grey   { background: rgba(10,15,26,0.07); color: var(--fg2); }

/* Dark mode — tinted bands, light dividers, neutral grey pill. */
body.vf-studio.vf-admin-dark .tk-band-immediate { background: rgba(224,49,75,0.16);  box-shadow: inset 4px 0 0 #E0314B; }
body.vf-studio.vf-admin-dark .tk-band-high      { background: rgba(224,122,46,0.13); box-shadow: inset 4px 0 0 #E07A2E; }
body.vf-studio.vf-admin-dark .tk-band-medium    { background: rgba(222,176,33,0.13); box-shadow: inset 4px 0 0 #E0B021; }
body.vf-studio.vf-admin-dark .tk-band-low       { background: rgba(140,155,180,0.12); box-shadow: inset 4px 0 0 #8C99AE; }
body.vf-studio.vf-admin-dark .tk-band-none      { background: rgba(255,255,255,0.045); box-shadow: inset 4px 0 0 rgba(255,255,255,0.22); }
body.vf-studio.vf-admin-dark .tk-band-label { color: rgba(255,255,255,0.45); }
body.vf-studio.vf-admin-dark .tk-row::after { background: rgba(255,255,255,0.10); }
body.vf-studio.vf-admin-dark .tk-row:hover { background: rgba(255,255,255,0.05); }
body.vf-studio.vf-admin-dark .tk-row-date { color: var(--vf-snow-3); }
body.vf-studio.vf-admin-dark .tk-pill-grey   { background: rgba(255,255,255,0.10); color: var(--vf-snow-2); }
body.vf-studio.vf-admin-dark .tk-pill-yellow { background: rgba(214,168,50,0.20); color: #E3C074; }
body.vf-studio.vf-admin-dark .tk-pill-blue   { background: rgba(80,150,240,0.20); color: #8FB8F5; }
body.vf-studio.vf-admin-dark .tk-pill-amber  { background: rgba(201,130,40,0.22); color: #E8B274; }
body.vf-studio.vf-admin-dark .tk-pill-green  { background: rgba(40,170,100,0.20); color: #74D29B; }
body.vf-studio.vf-admin-dark .tk-pill-purple { background: rgba(140,100,230,0.22); color: #C0A6F0; }
body.vf-studio.vf-admin-dark .tk-pill-indigo { background: rgba(80,140,240,0.20); color: #9CC0F5; }
body.vf-studio.vf-admin-dark .tk-pill-red    { background: rgba(230,80,100,0.20); color: #F0A0AC; }

@media (max-width: 760px) {
  body.vf-studio .tk-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
  body.vf-studio .tk-row-date { display: none; }
}

/* Location sub-group (inside each priority band) */
body.vf-studio .tk-locgroup + .tk-locgroup { margin-top: 0; border-top: 1px solid rgba(10,15,26,0.12); padding-top: 8px; }
body.vf-studio .tk-locgroup-head { display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 5px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--fg3); }
body.vf-studio .tk-locgroup-head .tk-locgroup-ic { opacity: 0.6; }
body.vf-studio .tk-locgroup-ic { flex: none; opacity: 0.85; }

/* Status cell holds the pill; on row hover it cross-fades to a green "Mark Complete"
   (the button is absolutely positioned over the pill, so nothing reflows). */
body.vf-studio .tk-row-statuswrap { position: relative; justify-self: end; display: inline-flex; align-items: center; min-height: 30px; }
/* Location chip on each row (between the assignees and the status). */
body.vf-studio .tk-row-loc { justify-self: center; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); flex: none; }
body.vf-studio .tk-row-loc svg { width: 15px; height: 15px; opacity: 0.85; }
body.vf-studio.vf-admin-dark .tk-row-loc { background: rgba(255,255,255,0.08); }
body.vf-studio .tk-status { transition: opacity 170ms ease; }
body.vf-studio .tk-row:hover .tk-status, body.vf-studio .tk-row:focus-within .tk-status { opacity: 0; }
body.vf-studio .tk-complete { position: absolute; right: 0; left: auto; top: 50%; transform: translateY(-50%) translateX(7px); display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border-radius: 999px; border: 1px solid #4FB06A; background: #C8F0CF; color: #1A6B33; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 240ms cubic-bezier(.16,1,.3,1), background 130ms ease; }
body.vf-studio .tk-complete:hover { background: #B6E9BF; }
body.vf-studio .tk-row:hover .tk-complete, body.vf-studio .tk-row:focus-within .tk-complete { opacity: 1; transform: translateY(-50%) translateX(0); pointer-events: auto; }
body.vf-studio.vf-admin-dark .tk-locgroup-head { color: var(--vf-snow-3); }
body.vf-studio.vf-admin-dark .tk-locgroup + .tk-locgroup { border-top-color: rgba(255,255,255,0.12); }
body.vf-studio.vf-admin-dark .tk-complete { background: rgba(70,192,125,0.22); border-color: rgba(70,192,125,0.5); color: #7FD89E; }
body.vf-studio.vf-admin-dark .tk-complete:hover { background: rgba(70,192,125,0.30); }

/* ---- Tasks: clickable rows + small avatar + centre-peek modal ---- */
body.vf-studio .tk-row { cursor: pointer; }
body.vf-studio .tk-av.sm { width: 26px; height: 26px; font-size: 10px; }
body.vf-studio .tk-pill-tan { background: rgba(150,110,56,0.15); color: #6E4B22; }
body.vf-studio.vf-admin-dark .tk-pill-tan { background: rgba(190,150,90,0.18); color: #DCC196; }

/* Perfectly centred (flex-column + margin:auto centers when it fits, and falls
   back to top-aligned + scrollable when the content is taller than the screen). */
body.vf-studio .tk-peek-overlay { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 28px 20px; background: rgba(10,15,26,0.44); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); overflow-y: auto; }
body.vf-studio .tk-peek { position: relative; margin: auto; width: min(760px, 100%); background: var(--bg-elev); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 32px 80px rgba(10,15,26,0.34); padding: 36px 40px 32px; }
body.vf-studio .tk-peek-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 8px; color: var(--fg3); cursor: pointer; }
body.vf-studio .tk-peek-close:hover { background: var(--bg-tint); color: var(--fg1); }
body.vf-studio .tk-peek-title { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg1); margin: 0 32px 22px 0; }
body.vf-studio .tk-peek-props { display: flex; flex-wrap: wrap; gap: 20px 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
body.vf-studio .tk-peek-prop { display: flex; flex-direction: column; gap: 9px; }
body.vf-studio .tk-peek-k { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg4); }
body.vf-studio .tk-peek-assign { display: inline-flex; flex-direction: column; gap: 6px; }
body.vf-studio .tk-peek-person { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--fg1); }
body.vf-studio .tk-peek-empty { font-size: 13px; color: var(--fg4); }
body.vf-studio .tk-peek-section { margin-bottom: 22px; }
body.vf-studio .tk-peek-h { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg4); margin-bottom: 9px; }
body.vf-studio .tk-peek-brief { font-size: 14.5px; line-height: 1.55; color: var(--fg1); white-space: pre-wrap; word-break: break-word; }
body.vf-studio .tk-peek-brief a, body.vf-studio .tk-peek-v a { color: var(--vf-blue); text-decoration: none; word-break: break-all; }
body.vf-studio .tk-peek-brief a:hover, body.vf-studio .tk-peek-v a:hover { text-decoration: underline; }
body.vf-studio .tk-peek-attrs { display: flex; flex-direction: column; gap: 13px; }
body.vf-studio .tk-peek-attr { display: grid; grid-template-columns: 130px 1fr; align-items: start; gap: 12px; }
body.vf-studio .tk-peek-attr .tk-peek-k { padding-top: 4px; }
body.vf-studio .tk-peek-v { font-size: 14px; color: var(--fg1); min-width: 0; }
body.vf-studio .tk-peek-files { display: inline-flex; flex-wrap: wrap; gap: 8px; }
body.vf-studio .tk-peek-file { width: 48px; height: 48px; border-radius: 8px; border: 1px solid var(--line); background-size: cover; background-position: center; background-color: var(--bg-tint); display: block; }
body.vf-studio .tk-peek-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
body.vf-studio .tk-peek-tag { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--fg2); font-size: 12px; font-weight: 500; }
body.vf-studio .tk-peek-open { margin-top: 24px; }
@media (max-width: 600px) {
  body.vf-studio .tk-peek { padding: 28px 22px 24px; }
  body.vf-studio .tk-peek-attr { grid-template-columns: 110px 1fr; }
}

/* ---- Editable peek controls (in-place edit → writes back to Notion) ---- */
body.vf-studio .tk-peek-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin: -10px -12px 4px 0; min-height: 22px; }
body.vf-studio .tk-peek-save { font-size: 12px; color: var(--fg4); }
body.vf-studio .tk-peek-save.is-saving { color: var(--fg3); }
body.vf-studio .tk-peek-save.is-saved { color: #1F9D55; }
body.vf-studio .tk-peek-save.is-error { color: #C8324A; }
body.vf-studio .tk-peek .tk-peek-close { position: static; }
body.vf-studio .tk-peek-title-input { width: 100%; border: 0; border-bottom: 2px solid transparent; background: none; font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--fg1); margin: 0 0 22px; padding: 2px 0; outline: none; }
body.vf-studio .tk-peek-title-input:focus { border-bottom-color: var(--accent-soft); }
body.vf-studio .tk-pill.tk-pill-edit { padding: 0; position: relative; }
body.vf-studio .tk-pill-edit select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; font-size: 12.5px; padding: 5px 26px 5px 12px; border-radius: 999px; cursor: pointer; outline: none; }
body.vf-studio .tk-pill-edit::after { content: '▾'; position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 9px; opacity: 0.55; }
body.vf-studio .tk-peek-assignedit { display: inline-flex; flex-wrap: wrap; gap: 6px; }
/* Unselected = a faded avatar-only pill; hover expands the name. Selected = full pill. */
body.vf-studio .tk-assign-chip { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; opacity: 0.55; transition: opacity 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, padding 200ms cubic-bezier(.4,0,.2,1); }
body.vf-studio .tk-assign-name { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; padding-left: 0; transition: max-width 220ms cubic-bezier(.4,0,.2,1), opacity 150ms ease, padding-left 220ms cubic-bezier(.4,0,.2,1); }
body.vf-studio .tk-assign-chip:not(.is-on):hover { opacity: 0.92; padding-right: 12px; }
body.vf-studio .tk-assign-chip:not(.is-on):hover .tk-assign-name { max-width: 130px; opacity: 1; padding-left: 6px; }
body.vf-studio .tk-assign-chip.is-on { opacity: 1; background: var(--accent-soft); border-color: transparent; color: var(--vf-blue); padding-right: 12px; }
body.vf-studio .tk-assign-chip.is-on .tk-assign-name { max-width: 130px; opacity: 1; padding-left: 6px; }
body.vf-studio .tk-peek-briefedit { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; line-height: 1.55; color: var(--fg1); background: var(--bg); outline: none; }
body.vf-studio .tk-peek-briefedit:focus { border-color: var(--vf-blue); }
body.vf-studio .tk-peek-dateedit { border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font: inherit; font-size: 13.5px; color: var(--fg1); background: var(--bg-elev); outline: none; }
body.vf-studio .tk-peek-dateedit:focus { border-color: var(--vf-blue); }
body.vf-studio.vf-admin-dark .tk-peek-dateedit, body.vf-studio.vf-admin-dark .tk-pill-edit select { color-scheme: dark; }

/* ---- Task delete (peek footer) ---- */
body.vf-studio .tk-peek-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
body.vf-studio .tk-peek-delete { border: 0; background: none; color: #C8324A; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 4px 0; }
body.vf-studio .tk-peek-delete:hover { text-decoration: underline; }
body.vf-studio .tk-peek-delconfirm { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--fg2); }
body.vf-studio .tk-peek-delcancel { border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg1); font: inherit; font-size: 12.5px; padding: 5px 12px; border-radius: 8px; cursor: pointer; }
body.vf-studio .tk-peek-delcancel:hover { background: var(--bg-tint); }
body.vf-studio .tk-peek-delyes { border: 0; background: #C8324A; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
body.vf-studio .tk-peek-delyes:hover { background: #B12A40; }

/* ===== Filter rework: chip-stacks + cog "more filters" panel ===== */
/* Date/Status reveal a vertical stack of colour chips (no menu box). */
body.vf-studio .tk-filter-menu.tk-chipstack { min-width: 152px; gap: 5px; }
body.vf-studio .tk-chipopt { border: 0; cursor: pointer; justify-content: center; white-space: nowrap; }
body.vf-studio .tk-chipopt.is-sel { box-shadow: 0 0 0 2px var(--vf-blue); }
/* Teal date chips (Month/Week/Day); Overdue uses tk-pill-red. */
body.vf-studio .tk-pill-teal { background: rgba(38,166,154,0.16); color: #1A726A; }
body.vf-studio.vf-admin-dark .tk-pill-teal { background: rgba(60,190,178,0.20); color: #7FD6CC; }

/* Search + cog */
body.vf-studio .tk-searchwrap { flex: 1; min-width: 180px; position: relative; display: flex; align-items: center; }
body.vf-studio .tk-searchwrap .tk-search { flex: 1; min-width: 0; padding-right: 70px; }
/* Refresh sits inside the search bar, just left of the grouping cog. */
body.vf-studio .tk-refresh.tk-inwrap { position: absolute; right: 37px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; color: var(--fg4); border-radius: 50%; }
body.vf-studio .tk-refresh.tk-inwrap:hover { background: var(--bg-tint); color: var(--fg1); }
body.vf-studio .tk-refresh.tk-inwrap:disabled { opacity: 0.55; }
body.vf-studio .tk-cog { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--fg4); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background 140ms, color 140ms; }
body.vf-studio .tk-cog:hover, body.vf-studio .tk-cog.is-on { background: var(--bg-tint); color: var(--fg1); }
body.vf-studio .tk-cog.has-active::after { content: ''; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--vf-blue); border: 1.5px solid var(--bg-elev); }
body.vf-studio .tk-cog-panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 300px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(10,15,26,0.18); padding: 16px; z-index: 50; display: flex; flex-direction: column; gap: 16px; }
body.vf-studio .tk-cog-group { display: flex; flex-direction: column; gap: 9px; }
body.vf-studio .tk-cog-h { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg4); }
body.vf-studio .tk-cog-chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.vf-studio .tk-cog-chip { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg-elev); color: var(--fg2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background 140ms, color 140ms, border-color 140ms; }
body.vf-studio .tk-cog-chip:hover { background: var(--bg-tint); }
body.vf-studio .tk-cog-chip.is-on { background: var(--accent-soft); border-color: transparent; color: var(--vf-blue); font-weight: 600; }
body.vf-studio .tk-cog-chip-sort { display: inline-flex; align-items: center; gap: 8px; }
body.vf-studio .tk-cog-chip-ico { display: inline-flex; align-items: center; gap: 2px; color: var(--fg4); }
body.vf-studio .tk-cog-chip-sort.is-on .tk-cog-chip-ico { color: var(--vf-blue); }

/* ---- Undo snackbar (after delete) ---- */
body.vf-studio .tk-undo { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 120; display: inline-flex; align-items: center; gap: 16px; padding: 11px 14px 11px 20px; background: #1A1F2A; color: #fff; border-radius: 12px; box-shadow: 0 14px 36px rgba(10,15,26,0.36); font-size: 13.5px; }
body.vf-studio .tk-undo-btn { border: 0; background: rgba(255,255,255,0.16); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
body.vf-studio .tk-undo-btn:hover { background: rgba(255,255,255,0.26); }

/* Grouping options stacked vertically in the cog panel */
body.vf-studio .tk-cog-chips-col { flex-direction: column; align-items: stretch; }
body.vf-studio .tk-cog-chips-col .tk-cog-chip { text-align: left; }

/* + New task — same dimensions as the filter chiplets, in primary blue */
body.vf-studio .tk-addtask { margin-left: auto; flex: none; height: 32px; padding: 0 15px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; transition: filter 140ms ease, transform 120ms ease; }
body.vf-studio .tk-addtask:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.vf-studio .tk-addtask:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Band header (primary group label) + the small group dot for priority/status */
body.vf-studio .tk-band-head { display: inline-flex; align-items: center; gap: 8px; padding: 7px 4px 5px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.01em; color: var(--fg1); }
body.vf-studio .tk-band-head svg { opacity: 0.85; }
body.vf-studio.vf-admin-dark .tk-band-head { color: var(--vf-snow-1); }
body.vf-studio .tk-grp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--fg4); }
body.vf-studio .tk-grp-dot.tk-pill-red { background: #D64054; }
body.vf-studio .tk-grp-dot.tk-pill-amber { background: #CD8428; }
body.vf-studio .tk-grp-dot.tk-pill-yellow { background: #B6A11E; }
body.vf-studio .tk-grp-dot.tk-pill-green { background: #3FA862; }
body.vf-studio .tk-grp-dot.tk-pill-blue { background: #2A78EA; }
body.vf-studio .tk-grp-dot.tk-pill-purple { background: #8B5CF6; }
body.vf-studio .tk-grp-dot.tk-pill-teal { background: #14B8A6; }
body.vf-studio .tk-grp-dot.tk-pill-indigo { background: #6366F1; }

/* ---- Tasks loading mini-game ---- */
body.vf-studio .tk-game { padding: 22px 0 8px; }
body.vf-studio .tk-game-label { font-size: 14px; color: var(--fg2); margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
body.vf-studio .tk-game-label span { font-size: 11.5px; color: var(--fg4); }
body.vf-studio .tk-game-canvas { width: 100%; height: 168px; display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); cursor: pointer; touch-action: manipulation; }
/* Memory-match variant (DOM cards, not canvas) — same 168px footprint */
body.vf-studio .tk-mem { min-height: 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-elev); padding: 14px 12px; }
body.vf-studio .tk-mem-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: 100%; max-width: 372px; }
body.vf-studio .tk-mem-card { position: relative; aspect-ratio: 1; border: 0; background: transparent; padding: 0; cursor: pointer; transition: transform 120ms ease; }
body.vf-studio .tk-mem-card:hover { transform: translateY(-1px); }
body.vf-studio .tk-mem-card.is-done { cursor: default; }
body.vf-studio .tk-mem-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; transition: opacity 160ms ease; }
body.vf-studio .tk-mem-back { background: linear-gradient(155deg, var(--accent), color-mix(in srgb, var(--accent) 64%, #0b1a3f)); color: rgba(255,255,255,0.82); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); opacity: 1; }
body.vf-studio .tk-mem-front { background: var(--bg-tint); border: 1px solid var(--line); font-size: 22px; line-height: 1; opacity: 0; }
body.vf-studio .tk-mem-card.is-up .tk-mem-back { opacity: 0; }
body.vf-studio .tk-mem-card.is-up .tk-mem-front { opacity: 1; }
body.vf-studio .tk-mem-card.is-done .tk-mem-front { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent); }
body.vf-studio .tk-mem-card.is-done { opacity: 0.6; }
body.vf-studio .tk-mem-foot { font: 600 11px var(--font-mono, ui-monospace), Menlo, monospace; letter-spacing: 0.04em; color: var(--fg4); }
body.vf-studio .tk-mem.is-won .tk-mem-foot { color: var(--accent); }

/* ---- Task peek: batched Attachments / Links + Production ---- */
body.vf-studio .tk-peek-linkwrap { display: flex; flex-direction: column; gap: 8px; width: 100%; }
body.vf-studio .tk-peek-linkrow { display: flex; align-items: center; gap: 6px; }
body.vf-studio .tk-peek-linkedit { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; color: var(--fg1); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; }
body.vf-studio .tk-peek-linkedit::placeholder { color: var(--fg4); }
body.vf-studio .tk-peek-linkedit:focus { outline: none; border-color: var(--accent); background: var(--bg-elev); }
body.vf-studio .tk-peek-linkopen { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--accent); text-decoration: none; border: 1px solid var(--line); }
body.vf-studio .tk-peek-linkopen:hover { background: var(--bg-tint); }
body.vf-studio .tk-peek-prods { display: flex; flex-wrap: wrap; gap: 6px; }
body.vf-studio .tk-peek-prod { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); border-radius: 999px; padding: 3px 11px; }

/* ---- Inline row editing: date picker + assignee popover ---- */
body.vf-studio .tk-row-date { position: relative; cursor: pointer; }
body.vf-studio .tk-row-datelabel { display: inline-block; }
body.vf-studio .tk-row-date:hover .tk-row-datelabel { color: var(--accent); }
/* Empty-date cell: a faint "+ Add date" that fades + slides in on row hover. */
body.vf-studio .tk-row-adddate { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 11.5px; font-weight: 600; color: var(--accent); white-space: nowrap; opacity: 0; transform: translateX(4px); transition: opacity 150ms ease, transform 150ms ease; }
body.vf-studio .tk-row:hover .tk-row-adddate,
body.vf-studio .tk-row:focus-within .tk-row-adddate { opacity: 0.85; transform: translateX(0); }
body.vf-studio .tk-row-adddate:hover { opacity: 1 !important; }
body.vf-studio .tk-row-adddate svg { flex: none; }
/* Native date input fills the cell but is invisible — we trigger showPicker() on click. */
body.vf-studio .tk-row-datenative { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; margin: 0; pointer-events: none; }

body.vf-studio .tk-row-people { position: relative; justify-self: end; display: inline-flex; }
body.vf-studio .tk-row-peoplebtn { display: inline-flex; align-items: center; background: none; border: 0; padding: 2px; margin: -2px; cursor: pointer; border-radius: 999px; transition: background 120ms; }
body.vf-studio .tk-row-peoplebtn:hover, body.vf-studio .tk-row-peoplebtn.is-open { background: rgba(10,15,26,0.06); }
body.vf-studio.vf-admin-dark .tk-row-peoplebtn:hover, body.vf-studio.vf-admin-dark .tk-row-peoplebtn.is-open { background: rgba(255,255,255,0.08); }
body.vf-studio .tk-row-peoplebtn .tk-av + .tk-av { margin-left: -8px; }
body.vf-studio .tk-av-add { background: transparent !important; color: var(--accent) !important; border: 1.5px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); font-weight: 700; opacity: 0.5; transition: opacity 120ms; }
body.vf-studio .tk-row:hover .tk-av-add, body.vf-studio .tk-row-peoplebtn:hover .tk-av-add { opacity: 1; }

/* Assignee popover */
body.vf-studio .tk-assignpop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 188px; padding: 6px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(10,15,26,0.18); display: flex; flex-direction: column; gap: 1px; }
body.vf-studio .tk-assignpop-h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg4); padding: 4px 8px 5px; }
body.vf-studio .tk-assignpop-opt { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg2); transition: background 110ms; }
body.vf-studio .tk-assignpop-opt:hover { background: var(--bg-tint); }
body.vf-studio .tk-assignpop-opt.is-on { color: var(--fg1); }
body.vf-studio .tk-assignpop-name { flex: 1 1 auto; }
body.vf-studio .tk-assignpop-check { flex: none; color: var(--accent); }

/* ---- Pixelated waiting game (greyscale, low-res upscaled) ---- */
body.vf-studio .tk-game-pixel .tk-game-canvas { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---- Purchasing board: tasks-style banded rows ---- */
body.vf-studio .pur-bands { margin-top: 4px; }
body.vf-studio .pur-row { display: flex; align-items: center; gap: 14px; grid-template-columns: none; cursor: default; }
body.vf-studio .pur-row.is-busy { opacity: 0.55; pointer-events: none; }
body.vf-studio .pur-row-main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }
body.vf-studio .pur-row-thumb { flex: none; width: 40px; height: 40px; border-radius: 9px; background-size: cover; background-position: center; background-color: var(--bg-tint); border: 1px solid var(--line); }
body.vf-studio .pur-row-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.vf-studio .pur-row-sub { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--fg3); }
body.vf-studio .pur-row-notes { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 440px; }
body.vf-studio .pur-row-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); text-decoration: none; font-weight: 600; }
body.vf-studio .pur-row-link:hover { text-decoration: underline; }
body.vf-studio .pur-row-actions { flex: none; display: inline-flex; align-items: center; gap: 10px; }
body.vf-studio .pur-buy { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; border: 1px solid #4FB06A; background: #C8F0CF; color: #1A6B33; font: inherit; font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background 130ms ease; }
body.vf-studio .pur-buy:hover { background: #B6E9BF; }
body.vf-studio .pur-buy:disabled { opacity: 0.6; cursor: default; }
body.vf-studio .pur-done { font-size: 12.5px; font-weight: 700; color: #1A6B33; white-space: nowrap; }
body.vf-studio .pur-band-count { margin-left: 7px; opacity: 0.55; font-variant-numeric: tabular-nums; font-weight: 700; }
body.vf-studio .pur-band-archive { opacity: 0.72; }
body.vf-studio.vf-admin-dark .pur-buy { background: rgba(70,192,125,0.22); border-color: rgba(70,192,125,0.5); color: #7FD89E; }
body.vf-studio.vf-admin-dark .pur-done { color: #7FD89E; }

/* ============================================================ */
/* Studio dashboard (/admin landing)                            */
/* ============================================================ */
body.vf-studio .dash { display: block; }

/* Full-bleed brand-blue hero banner (breaks out of the padded content column to
   the viewport edges). Pulled up the full nav(74) + content-padding(32) so the
   wallpaper runs to the very top BEHIND the frosted nav — the glass overlays the
   blue, matching the public rentals hero. Inner content is padded down to clear
   the bar. */
body.vf-studio .dash-hero { position: relative; width: 100vw; margin-left: calc(50% - 50vw); margin-top: -106px; border-radius: 0; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--vf-blue-500, #2A78EA) 0%, var(--vf-blue-800, #052E6E) 100%); }
body.vf-studio.vf-admin-dark .dash-hero { background: linear-gradient(135deg, var(--vf-blue-800, #052E6E) 0%, var(--vf-blue-900, #03204C) 100%); }
/* Inner content stays aligned to the dashboard's content column */
body.vf-studio .dash-hero-inner { max-width: 1080px; margin: 0 auto; padding: 98px 24px 88px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
/* Floating utility pills (space toggle + refresh) that bridge the hero/content
   edge in the titlebar, beside the Valley Films button. A solid card-coloured
   pill + shadow so they read over both the blue banner and the page below. */
body.vf-studio .dash-tool { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg2); cursor: pointer; box-shadow: 0 6px 18px rgba(10,15,26,0.14); transition: background 140ms ease, color 140ms ease, transform 160ms ease, box-shadow 160ms ease; }
body.vf-studio .dash-tool:hover { color: var(--fg1); transform: translateY(-1px); box-shadow: 0 9px 24px rgba(10,15,26,0.18); }
body.vf-studio .dash-tool svg { width: 17px; height: 17px; }
body.vf-studio .dash-tool.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
body.vf-studio .dash-tool.is-on:hover { color: #fff; }
body.vf-studio .dash-tool.is-spinning svg { animation: dash-refresh-spin 0.8s linear infinite; }
body.vf-studio .dash-hero-clocks { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
/* Clocks now live in a dashboard card (the old Notepad slot). */
body.vf-studio .d-clocks { grid-area: clocks; }
body.vf-studio .dash-clocks-date { font-size: 12px; font-weight: 600; color: var(--fg3); }
body.vf-studio .dash-clocks-row { display: flex; align-items: flex-start; justify-content: space-around; gap: 16px; flex: 1 1 auto; padding: 10px 0 4px; }
body.vf-studio .dash-clock { display: flex; flex-direction: column; align-items: center; gap: 7px; }
body.vf-studio .dash-clock-face { width: 70px; height: 70px; transition: none; }
/* Apple-style day/night faces — driven by the CITY's local time, not the app
   theme: white face + dark hands by day, black face + white hands by night. */
body.vf-studio .dash-clock.is-day .dash-clock-rim { fill: #fff; stroke: rgba(10,15,26,0.14); stroke-width: 1.5; }
body.vf-studio .dash-clock.is-day .dash-clock-tick { stroke: rgba(10,30,70,0.40); }
body.vf-studio .dash-clock.is-day .dash-clock-h, body.vf-studio .dash-clock.is-day .dash-clock-m { stroke: #0A1C40; }
body.vf-studio .dash-clock.is-day .dash-clock-pin { fill: #0A1C40; }
body.vf-studio .dash-clock.is-night .dash-clock-rim { fill: #0B1322; stroke: rgba(255,255,255,0.20); stroke-width: 1.5; }
body.vf-studio .dash-clock.is-night .dash-clock-tick { stroke: rgba(255,255,255,0.45); }
body.vf-studio .dash-clock.is-night .dash-clock-h, body.vf-studio .dash-clock.is-night .dash-clock-m { stroke: #fff; }
body.vf-studio .dash-clock.is-night .dash-clock-pin { fill: #fff; }
body.vf-studio .dash-clock-tick { stroke-width: 2; }
body.vf-studio .dash-clock-h { stroke-width: 4; stroke-linecap: round; }
body.vf-studio .dash-clock-m { stroke-width: 3; stroke-linecap: round; }
body.vf-studio .dash-clock-s { stroke: #E0604F; stroke-width: 1.5; stroke-linecap: round; }
body.vf-studio .dash-clock-label { font-size: 11px; font-weight: 600; color: var(--fg3); letter-spacing: 0.03em; }

/* Profile + title + action buttons, straddling the hero's lower edge */
body.vf-studio .dash-titlebar { position: relative; z-index: 2; margin: -34px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.vf-studio .dash-titlebar-id { display: flex; align-items: center; gap: 16px; }
body.vf-studio .dash-avatar { width: 76px; height: 76px; border-radius: 999px; display: grid; place-items: center; background-size: cover; background-position: center; color: #fff; font-size: 24px; font-weight: 700; box-shadow: 0 6px 18px rgba(10,15,26,0.18); border: 3px solid var(--bg); }
body.vf-studio .dash-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg1); margin: 0; }
body.vf-studio .dash-actions { display: inline-flex; gap: 10px; flex-wrap: wrap; }
body.vf-studio .dash-action { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 12px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; transition: filter 140ms ease, transform 120ms ease; }
body.vf-studio .dash-action:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* Card grid */
body.vf-studio .dash-grid { margin-top: 22px; display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; align-items: stretch;
  grid-template-areas:
    "toptasks clocks"
    "toptasks current"
    "second   current"
    "wide     wide"
    "purchase last"; }
body.vf-studio .d-toptasks { grid-area: toptasks; }
body.vf-studio .d-second   { grid-area: second; }
body.vf-studio .d-current  { grid-area: current; }
body.vf-studio .d-wide     { grid-area: wide; }
body.vf-studio .d-purchase { grid-area: purchase; }
body.vf-studio .d-last     { grid-area: last; }

body.vf-studio .dash-card { display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; min-height: 0; }
body.vf-studio .dash-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
body.vf-studio .dash-card-head h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; color: var(--fg1); }
body.vf-studio .dash-card-link { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; flex: none; }
body.vf-studio .dash-card-link:hover { text-decoration: underline; }
body.vf-studio .dash-card-state { font-size: 13px; color: var(--fg4); padding: 14px 2px; }

body.vf-studio .dash-list { display: flex; flex-direction: column; }
body.vf-studio .dash-li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; text-decoration: none; color: inherit; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
body.vf-studio .dash-li:last-child { border-bottom: 0; }
body.vf-studio .dash-li:hover { background: var(--bg-tint); border-radius: 8px; }
body.vf-studio .dash-li-name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--fg1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .dash-li-date { flex: none; font-size: 12.5px; color: var(--fg3); font-variant-numeric: tabular-nums; }
body.vf-studio .dash-li-meta { flex: none; max-width: 45%; font-size: 12px; color: var(--fg4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .dash-li .tk-pill { flex: none; }
body.vf-studio .dash-li-prod .dash-li-date { order: -1; min-width: 52px; }

/* Task rows: the whole row background tints by priority — no left rail —
   Immediate vivid red, High red, Medium orange, Low yellow. Location chip +
   status pill on the right. */
body.vf-studio .dash-li-task { --prio: rgba(10,15,26,0.18); border-bottom: 0; border-radius: 9px; padding: 8px 11px; margin-bottom: 3px; cursor: pointer; background: color-mix(in srgb, var(--prio) 13%, transparent); }
body.vf-studio .dash-li-task:last-child { margin-bottom: 0; }
body.vf-studio .dash-li-task:hover { background: color-mix(in srgb, var(--prio) 20%, transparent); }
body.vf-studio .dash-li--immediate { --prio: #F20D2E; }
body.vf-studio .dash-li--high      { --prio: #C42038; }
body.vf-studio .dash-li--medium    { --prio: #E07A2E; }
body.vf-studio .dash-li--low       { --prio: #E0B021; }
body.vf-studio .dash-li--none      { --prio: #94A1B5; }
body.vf-studio .dash-li-loc { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 22px; border-radius: 6px; background: rgba(10,15,26,0.06); color: var(--fg3); }
body.vf-studio .dash-li-loc svg { width: 14px; height: 14px; opacity: 0.85; }
body.vf-studio.vf-admin-dark .dash-li-task { background: color-mix(in srgb, var(--prio) 19%, transparent); }
body.vf-studio.vf-admin-dark .dash-li-task:hover { background: color-mix(in srgb, var(--prio) 27%, transparent); }
body.vf-studio.vf-admin-dark .dash-li--none { --prio: #8C99AE; }
body.vf-studio.vf-admin-dark .dash-li-loc { background: rgba(255,255,255,0.08); }
/* Refresh tool spins while a background stale-while-revalidate is in flight. */
@keyframes dash-refresh-spin { to { transform: rotate(360deg); } }

body.vf-studio .dash-notepad-ta { flex: 1 1 auto; width: 100%; min-height: 120px; resize: vertical; border: 0; background: transparent; font: inherit; font-size: 13.5px; line-height: 1.5; color: var(--fg1); outline: none; }
body.vf-studio .dash-notepad-ta::placeholder { color: var(--fg4); }

@media (max-width: 900px) {
  body.vf-studio .dash-grid { grid-template-columns: 1fr; grid-template-areas: "toptasks" "clocks" "second" "current" "wide" "purchase" "last"; }
  body.vf-studio .dash-clock-face { width: 52px; height: 52px; }
  body.vf-studio .dash-title { font-size: 27px; }
}

/* Day / night glyph in the dashboard hero */
body.vf-studio .dash-daynight { display: flex; align-items: center; justify-content: center; margin-right: 4px; }
body.vf-studio .dash-daynight.is-day { color: #FFE08A; }
body.vf-studio .dash-daynight.is-night { color: #DCE6FF; }

/* ---- Peek: production picker, file upload, comments ---- */
body.vf-studio .tk-peek-prodselect { font: inherit; font-size: 13px; color: var(--fg1); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; max-width: 280px; cursor: pointer; }
body.vf-studio .tk-peek-prodselect:focus { outline: none; border-color: var(--accent); background: var(--bg-elev); }
body.vf-studio .tk-peek-upload { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-tint); color: var(--fg2); cursor: pointer; transition: background 120ms ease, color 120ms ease; }
body.vf-studio .tk-peek-upload:hover { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-peek-upload:disabled { opacity: 0.6; cursor: default; }
body.vf-studio .tk-peek-filechip { display: inline-flex; align-items: center; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 11px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-size: 12px; font-weight: 600; }
body.vf-studio .tk-peek-comments { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
body.vf-studio .tk-peek-clist { display: flex; flex-direction: column; gap: 7px; margin: 8px 0 10px; }
body.vf-studio .tk-peek-comment { font-size: 13px; line-height: 1.45; color: var(--fg1); background: var(--bg-tint); border-radius: 9px; padding: 8px 11px; }
body.vf-studio .tk-peek-cstate { font-size: 12.5px; color: var(--fg4); padding: 6px 0 8px; }
body.vf-studio .tk-peek-caddrow { display: flex; gap: 8px; }
body.vf-studio .tk-peek-cadd { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; color: var(--fg1); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 8px; padding: 8px 11px; }
body.vf-studio .tk-peek-cadd:focus { outline: none; border-color: var(--accent); background: var(--bg-elev); }
body.vf-studio .tk-peek-cadd::placeholder { color: var(--fg4); }
body.vf-studio .tk-peek-cbtn { flex: none; padding: 8px 16px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.vf-studio .tk-peek-cbtn:disabled { opacity: 0.5; cursor: default; }

/* ============================================================ */
/* Task peek v2 — wallpaper-header card                         */
/* ============================================================ */
body.vf-studio .tk-peek-v2 { padding: 0; overflow: hidden; display: flex; flex-direction: column; max-height: 88vh; width: min(680px, 100%); }

/* Hero / wallpaper */
body.vf-studio .tk-peek-hero { position: relative; flex: none; padding: 16px 26px 58px; color: #fff; background-size: cover; background-position: center; }
body.vf-studio .tk-peek-hero.is-gradient { background: linear-gradient(140deg, var(--vf-blue-500, #2A78EA) 0%, var(--vf-blue-800, #052E6E) 100%); }
body.vf-studio .tk-peek-hero .tk-peek-close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 140ms ease; }
body.vf-studio .tk-peek-hero .tk-peek-close:hover { background: rgba(255,255,255,0.34); }
body.vf-studio .tk-peek-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding-right: 40px; }
body.vf-studio .tk-peek-hero-date { position: relative; font-size: 15px; font-weight: 600; color: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
body.vf-studio .tk-peek-hero-adddate { opacity: 0.85; font-weight: 500; }
body.vf-studio .tk-peek-hero-date .tk-row-datenative { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; height: 100%; }
body.vf-studio .tk-peek-hero-pills { display: inline-flex; align-items: center; gap: 8px; }
body.vf-studio .tk-pill-sm select { font-size: 11.5px; padding: 4px 22px 4px 10px; }
body.vf-studio .tk-peek-hero-main { margin-top: 16px; }
body.vf-studio .tk-peek-v2 .tk-peek-title-input { color: #fff; font-size: 30px; font-weight: 800; margin: 0; padding: 0; border-bottom: 0; text-shadow: 0 1px 14px rgba(0,0,0,0.28); }
body.vf-studio .tk-peek-v2 .tk-peek-title-input::placeholder { color: rgba(255,255,255,0.72); }
body.vf-studio .tk-peek-hero-prod { display: block; margin-top: 3px; }
body.vf-studio .tk-peek-hero-prod .tk-peek-prodselect { background: transparent; border: 0; color: rgba(255,255,255,0.92); font-size: 15px; font-weight: 500; padding: 2px 0; max-width: 100%; cursor: pointer; }
body.vf-studio .tk-peek-hero-prod .tk-peek-prodselect option { color: #1A1F2A; }
/* Location + assignee straddle the hero/body boundary */
body.vf-studio .tk-peek-hero-meta { position: absolute; right: 22px; bottom: -19px; display: inline-flex; align-items: center; gap: 12px; z-index: 2; }
body.vf-studio .tk-peek-loc { width: 46px; height: 36px; border-radius: 11px; border: 0; background: #8A9099; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 5px 14px rgba(10,15,26,0.24); }
body.vf-studio .tk-peek-loc svg { width: 18px; height: 18px; }
body.vf-studio .tk-peek-assign { position: relative; display: inline-flex; }
body.vf-studio .tk-peek-assignbtn { display: inline-flex; align-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
body.vf-studio .tk-peek-assignbtn .tk-av { width: 36px; height: 36px; font-size: 12.5px; box-shadow: 0 0 0 2px var(--bg-elev); }
body.vf-studio .tk-peek-assignbtn .tk-av + .tk-av { margin-left: -13px; }
body.vf-studio .tk-peek-assign .tk-assignpop { top: calc(100% + 10px); right: 0; }

/* Body */
body.vf-studio .tk-peek-body { flex: 1 1 auto; overflow-y: auto; padding: 30px 26px 22px; background: var(--bg-elev); display: flex; flex-direction: column; gap: 14px; }
body.vf-studio .tk-peek-pills { display: flex; align-items: center; gap: 8px; }
body.vf-studio .tk-peek-pill { padding: 7px 16px; border-radius: 999px; border: 0; background: var(--bg-tint); color: var(--fg2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 130ms ease, color 130ms ease; }
body.vf-studio .tk-peek-pill:hover { background: color-mix(in srgb, var(--accent) 12%, var(--bg-tint)); }
body.vf-studio .tk-peek-pill.is-on { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-peek-pilladd { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 18px; line-height: 1; }
body.vf-studio .tk-peek-pills .tk-peek-save { margin-left: auto; font-size: 12px; color: var(--fg4); }
body.vf-studio .tk-peek-panel { padding: 2px 0; }
body.vf-studio .tk-peek-uploadbtn { margin-top: 10px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-tint); color: var(--fg2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
body.vf-studio .tk-peek-uploadbtn:hover { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-peek-uploadbtn:disabled { opacity: 0.6; cursor: default; }
body.vf-studio .tk-peek-v2 .tk-peek-briefedit { min-height: 92px; background: var(--bg); }
body.vf-studio .tk-peek-v2 .tk-peek-comments { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 14px; }
body.vf-studio .tk-peek-v2 .tk-peek-foot { margin-top: 2px; display: flex; justify-content: flex-end; }

/* ===== Task peek v2 — adjustments (titles, typeahead, footer, comments) ===== */
body.vf-studio .tk-peek-hero-top { padding-right: 0; }
/* Title block shifts down; project subtitle sits ABOVE the task title */
body.vf-studio .tk-peek-hero-main { margin-top: 26px; }
body.vf-studio .tk-peek-hero-prod { display: block; margin: 0 0 2px; position: relative; }
body.vf-studio .tk-peek-prodbtn { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; border: 0; background: none; color: rgba(255,255,255,0.9); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
body.vf-studio .tk-peek-prodbtn:hover { color: #fff; }
body.vf-studio .tk-peek-prodlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .tk-peek-proddrop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 330px; max-width: 80vw; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(10,15,26,0.24); padding: 8px; }
body.vf-studio .tk-peek-prodsearch { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--fg1); background: var(--bg-tint); outline: none; margin-bottom: 6px; }
body.vf-studio .tk-peek-prodsearch:focus { border-color: var(--accent); background: var(--bg-elev); }
body.vf-studio .tk-peek-prodlist { display: flex; flex-direction: column; gap: 1px; max-height: 244px; overflow-y: auto; }
body.vf-studio .tk-peek-prodopt { text-align: left; border: 0; background: none; border-radius: 7px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--fg1); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .tk-peek-prodopt:hover { background: var(--bg-tint); }
body.vf-studio .tk-peek-prodopt.is-on { background: var(--accent-soft); color: var(--vf-blue); font-weight: 600; }
body.vf-studio .tk-peek-prodnew { color: var(--accent); font-weight: 600; }
body.vf-studio .tk-peek-produnlink { color: var(--fg4); }
/* Status pill — boosted legibility on the hero (solid pill, bold colored text) */
body.vf-studio .tk-peek-herostatus { background: rgba(255,255,255,0.94); box-shadow: 0 2px 9px rgba(0,0,0,0.20); }
body.vf-studio .tk-peek-herostatus select { font-weight: 700; }
/* Footer row: priority (left) · saved · delete (right) */
body.vf-studio .tk-peek-footrow { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
body.vf-studio .tk-peek-footrow .tk-peek-save { margin-left: auto; font-size: 12px; color: var(--fg4); }
body.vf-studio .tk-peek-footrow .tk-peek-delete { margin-left: 0; }
/* Brief: no resize handle, auto-grows (height set in JS) */
body.vf-studio .tk-peek-v2 .tk-peek-briefedit { resize: none; overflow: hidden; min-height: 84px; }
/* Comments: a distinct panel at the very bottom */
body.vf-studio .tk-peek-v2 .tk-peek-comments { margin-top: 12px; border-top: 0; background: var(--bg-tint); border-radius: 12px; padding: 14px 16px; }
body.vf-studio .tk-peek-v2 .tk-peek-comments .tk-peek-comment { background: var(--bg-elev); }

/* ===== Row hover interactions: assignee fan-out · location toggle · status picker ===== */
/* Assignees */
body.vf-studio .tk-row-people { position: relative; justify-self: end; display: inline-flex; }
body.vf-studio .tk-rowppl-cur { display: inline-flex; transition: opacity 140ms ease; }
body.vf-studio .tk-rowppl-cur .tk-av + .tk-av { margin-left: -8px; }
body.vf-studio .tk-row-people:hover .tk-rowppl-cur { opacity: 0; }
body.vf-studio .tk-rowppl-pop { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 22px rgba(10,15,26,0.18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease; z-index: 16; }
body.vf-studio .tk-row-people:hover .tk-rowppl-pop { opacity: 1; visibility: visible; pointer-events: auto; }
body.vf-studio .tk-rowppl-opt { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; opacity: 0.4; transition: opacity 140ms ease; }
body.vf-studio .tk-rowppl-opt.is-on { opacity: 1; }
body.vf-studio .tk-rowppl-opt:hover { opacity: 0.85; }
body.vf-studio .tk-rowppl-opt.is-on .tk-av { box-shadow: 0 0 0 2px var(--accent); }

/* Location */
body.vf-studio .tk-row-loc { position: relative; justify-self: center; display: inline-flex; }
body.vf-studio .tk-rowloc-cur { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); transition: opacity 140ms ease; }
body.vf-studio .tk-rowloc-cur svg { width: 15px; height: 15px; opacity: 0.85; }
body.vf-studio .tk-row-loc:hover .tk-rowloc-cur { opacity: 0; }
body.vf-studio .tk-rowloc-pop { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 8px 22px rgba(10,15,26,0.18); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease; z-index: 16; }
body.vf-studio .tk-row-loc:hover .tk-rowloc-pop { opacity: 1; visibility: visible; pointer-events: auto; }
body.vf-studio .tk-rowloc-opt { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 24px; border: 0; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); cursor: pointer; opacity: 0.55; transition: opacity 140ms ease, background 140ms ease, color 140ms ease; }
body.vf-studio .tk-rowloc-opt svg { width: 15px; height: 15px; }
body.vf-studio .tk-rowloc-opt.is-on { opacity: 1; background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-rowloc-opt:hover { opacity: 1; }

/* Status — quick tick (row hover) + full picker (status hover) */
body.vf-studio .tk-row-statuswrap { position: relative; justify-self: end; display: inline-flex; align-items: center; min-height: 30px; }
body.vf-studio .tk-rowstat-cur { transition: opacity 160ms ease; }
body.vf-studio .tk-row:hover .tk-rowstat-cur, body.vf-studio .tk-row:focus-within .tk-rowstat-cur { opacity: 0; }
body.vf-studio .tk-rowstat-done { position: absolute; right: 0; top: 50%; transform: translateY(-50%) translateX(6px); width: 38px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #4FB06A; background: #C8F0CF; color: #1A6B33; border-radius: 999px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 170ms ease, transform 220ms cubic-bezier(.16,1,.3,1), background 130ms ease; z-index: 10; }
body.vf-studio .tk-rowstat-done:hover { background: #B6E9BF; }
body.vf-studio .tk-row:hover .tk-rowstat-done { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
body.vf-studio .tk-row-statuswrap:hover .tk-rowstat-done { opacity: 0; pointer-events: none; }
body.vf-studio .tk-rowstat-pop { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 6px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 26px rgba(10,15,26,0.20); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 150ms ease; z-index: 20; white-space: nowrap; }
body.vf-studio .tk-row-statuswrap:hover .tk-rowstat-pop { opacity: 1; visibility: visible; pointer-events: auto; }
body.vf-studio .tk-rowstat-opt { cursor: pointer; border: 0; font-size: 12px; }
body.vf-studio .tk-rowstat-opt.is-cur { box-shadow: 0 0 0 2px var(--accent); }
body.vf-studio.vf-admin-dark .tk-rowstat-done { background: rgba(70,192,125,0.22); border-color: rgba(70,192,125,0.5); color: #7FD89E; }

/* Priority group headers read from the colour alone — show just the dot */
body.vf-studio .tk-band-head.is-dotonly { padding: 9px 4px 7px; }
body.vf-studio .tk-band-head.is-dotonly .tk-grp-dot { width: 11px; height: 11px; }
body.vf-studio .tk-locgroup-head.is-dotonly .tk-grp-dot { width: 10px; height: 10px; }
/* + New task floats up and out of the filter row */
body.vf-studio .tk-newtask-row { display: flex; justify-content: flex-end; margin: -46px 0 14px; position: relative; z-index: 2; }

/* Compact location filter (Warehouse + Online toggle) */
body.vf-studio .tk-locfilter { display: inline-flex; align-items: center; gap: 2px; flex: none; background: rgba(10,15,26,0.06); border-radius: 999px; padding: 2px; }
body.vf-studio .tk-locfilter-opt { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; border: 0; border-radius: 999px; background: none; color: var(--fg4); cursor: pointer; transition: background 140ms ease, color 140ms ease; }
body.vf-studio .tk-locfilter-opt svg { width: 15px; height: 15px; }
body.vf-studio .tk-locfilter-opt:hover { color: var(--fg2); }
body.vf-studio .tk-locfilter-opt.is-on { background: var(--bg-elev); color: var(--vf-blue); box-shadow: 0 1px 2px rgba(10,15,26,0.10); }
body.vf-studio.vf-admin-dark .tk-locfilter { background: rgba(255,255,255,0.08); }

/* ===== Dashboard tweaks: space toggle · new-task in card · feature production ===== */
/* Solid-accent action chip (distinct from the soft status-pill tints below it). */
body.vf-studio .dash-card-newtask { font-size: 12.5px; font-weight: 600; font-family: inherit; color: #fff; text-decoration: none; padding: 5px 13px; border-radius: 999px; background: var(--accent); border: 0; cursor: pointer; flex: none; transition: filter 140ms ease; }
body.vf-studio .dash-card-newtask:hover { filter: brightness(1.07); }
/* Right-align "+ New task" with the status pills below it (match the row's 11px inset). */
body.vf-studio .d-toptasks .dash-card-head { padding-right: 11px; }
/* Feature production (heavy weight) + compact rest */
body.vf-studio .dash-prod-feature { display: block; text-decoration: none; color: inherit; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 10px; transition: border-color 140ms ease; }
body.vf-studio .dash-prod-feature:hover { border-color: var(--accent); }
body.vf-studio .dash-prod-feature-img { display: block; height: 124px; background-size: cover; background-position: center; background-color: var(--bg-tint); }
body.vf-studio .dash-prod-feature-img.is-empty { background: linear-gradient(135deg, var(--vf-blue-500, #2A78EA), var(--vf-blue-800, #052E6E)); }
body.vf-studio .dash-prod-feature-body { display: block; padding: 11px 13px; }
body.vf-studio .dash-prod-feature-date { display: block; font-size: 12px; color: var(--fg3); font-variant-numeric: tabular-nums; }
body.vf-studio .dash-prod-feature-title { display: block; font-size: 15px; font-weight: 700; color: var(--fg1); margin: 2px 0; line-height: 1.25; }
body.vf-studio .dash-prod-feature-meta { display: block; font-size: 12px; color: var(--fg4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─────────────────────────────────────────────────────────────────────────
   Tasks rows — inline "shift-left" reveal (replaces the absolute popovers).
   The row is a flex line: a flexible title + a tight right cluster (date ·
   assignee · location · status). Hovering an editable control collapses its
   resting chip and expands the choices INLINE; the flex:1 title shrinks to
   make room, so the row slides left to open space — no floating overlay, no
   white box. Leaving collapses it smoothly back. Authoritative: overrides the
   earlier grid + absolute-popover rules by source order.
   ───────────────────────────────────────────────────────────────────────── */
body.vf-studio .tk-row { position: relative; display: flex; align-items: center; gap: 7px; grid-template-columns: none; }
body.vf-studio .tk-row-title { flex: 1 1 auto; min-width: 24px; }
body.vf-studio .tk-row-date { flex: none; }
body.vf-studio .tk-row-people, body.vf-studio .tk-row-loc, body.vf-studio .tk-row-statuswrap { flex: none; }

/* Assignee */
body.vf-studio .tk-row-people { position: static; display: inline-flex; align-items: center; }
body.vf-studio .tk-rowppl-cur { display: inline-flex; align-items: center; max-width: 132px; overflow: hidden; opacity: 1; transition: max-width 260ms cubic-bezier(.16,1,.3,1), opacity 150ms ease; }
body.vf-studio .tk-rowppl-cur .tk-av + .tk-av { margin-left: -8px; }
body.vf-studio .tk-row-people:hover .tk-rowppl-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-rowppl-pop { position: static; display: inline-flex; align-items: center; gap: 4px; max-width: 0; overflow: hidden; opacity: 0; padding: 0; background: none; border: 0; box-shadow: none; visibility: visible; pointer-events: none; transform: none; transition: max-width 280ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-row-people:hover .tk-rowppl-pop { max-width: 280px; opacity: 1; pointer-events: auto; }
body.vf-studio .tk-rowppl-opt { flex: none; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; opacity: 0.5; transition: opacity 140ms ease, transform 140ms ease; }
body.vf-studio .tk-rowppl-opt:hover { opacity: 1; transform: translateY(-1px); }
body.vf-studio .tk-rowppl-opt.is-on { opacity: 1; }
body.vf-studio .tk-rowppl-opt.is-on .tk-av { box-shadow: 0 0 0 2px var(--accent); }

/* Location */
body.vf-studio .tk-row-loc { position: static; display: inline-flex; align-items: center; width: auto; height: auto; background: none; border-radius: 0; }
body.vf-studio .tk-rowloc-cur { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 24px; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); max-width: 34px; overflow: hidden; opacity: 1; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 150ms ease; }
body.vf-studio .tk-rowloc-cur svg { width: 15px; height: 15px; opacity: 0.85; }
body.vf-studio .tk-row-loc:hover .tk-rowloc-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-rowloc-pop { position: static; display: inline-flex; align-items: center; gap: 4px; max-width: 0; overflow: hidden; opacity: 0; padding: 0; background: none; border: 0; box-shadow: none; visibility: visible; pointer-events: none; transform: none; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-row-loc:hover .tk-rowloc-pop { max-width: 88px; opacity: 1; pointer-events: auto; }
body.vf-studio .tk-rowloc-opt { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 24px; border: 0; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); cursor: pointer; opacity: 0.6; transition: opacity 140ms ease, background 140ms ease, color 140ms ease; }
body.vf-studio .tk-rowloc-opt svg { width: 15px; height: 15px; }
body.vf-studio .tk-rowloc-opt.is-on, body.vf-studio .tk-rowloc-opt:hover { opacity: 1; background: var(--accent-soft); color: var(--vf-blue); }

/* Status */
body.vf-studio .tk-row-statuswrap { position: static; display: inline-flex; align-items: center; gap: 5px; min-height: 28px; justify-content: flex-end; }
body.vf-studio .tk-rowstat-cur { display: inline-flex; max-width: 170px; overflow: hidden; white-space: nowrap; opacity: 1; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
body.vf-studio .tk-row-statuswrap:hover .tk-rowstat-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-rowstat-done { position: static; transform: none; flex: none; width: 30px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #4FB06A; background: #C8F0CF; color: #1A6B33; border-radius: 999px; cursor: pointer; max-width: 0; opacity: 0; overflow: hidden; pointer-events: none; transition: max-width 220ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
body.vf-studio .tk-row:hover .tk-rowstat-done { max-width: 34px; opacity: 1; pointer-events: auto; }
body.vf-studio .tk-row-statuswrap:hover .tk-rowstat-done { max-width: 0; opacity: 0; pointer-events: none; }
body.vf-studio .tk-rowstat-done:hover { background: #B6E9BF; }
body.vf-studio .tk-rowstat-pop { position: static; transform: none; display: inline-flex; align-items: center; gap: 4px; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; padding: 0; background: none; border: 0; box-shadow: none; visibility: visible; pointer-events: none; transition: max-width 300ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-row-statuswrap:hover .tk-rowstat-pop { max-width: 440px; opacity: 1; pointer-events: auto; }
body.vf-studio .tk-rowstat-opt { flex: none; cursor: pointer; border: 0; font-size: 11.5px; padding: 4px 9px; }
body.vf-studio .tk-rowstat-opt.is-cur { box-shadow: 0 0 0 2px var(--accent); }
body.vf-studio.vf-admin-dark .tk-rowstat-done { background: rgba(70,192,125,0.22); border-color: rgba(70,192,125,0.5); color: #7FD89E; }

/* ─────────────────────────────────────────────────────────────────────────
   Centre-peek v2 — icon-first fields + the same inline hover-reveal as rows.
   Date / Production show just an icon that reveals "+ Date" / "+ Production"
   on hover; Status / Location / Assignee collapse their resting chip and fan
   their options out inline. All authoritative (override earlier peek rules).
   ───────────────────────────────────────────────────────────────────────── */
/* Date — calendar icon, "+ Date" slides in on hover when empty */
body.vf-studio .tk-peek-hero-date { display: inline-flex; align-items: center; gap: 6px; position: relative; border: 0; background: none; color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; padding: 4px 9px 4px 6px; border-radius: 999px; transition: background 150ms ease; }
body.vf-studio .tk-peek-hero-date:hover { background: rgba(255,255,255,0.16); }
body.vf-studio .tk-peek-hero-dateico { flex: none; opacity: 0.92; }
body.vf-studio .tk-peek-hero-datev { font-variant-numeric: tabular-nums; }
body.vf-studio .tk-peek-hero-addlabel { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
body.vf-studio .tk-peek-hero-date:hover .tk-peek-hero-addlabel { max-width: 86px; opacity: 0.96; }

/* Status — inline reveal over the wallpaper. The wrap takes the remaining hero
   width and right-aligns, so the options fan out leftward and stay in the card. */
body.vf-studio .tk-peek-statuswrap { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; justify-content: flex-end; }
body.vf-studio .tk-peek-stat-cur { max-width: 180px; overflow: hidden; white-space: nowrap; opacity: 1; box-shadow: 0 2px 10px rgba(0,0,0,0.22); transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
body.vf-studio .tk-peek-statuswrap:hover .tk-peek-stat-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-peek-stat-pop { display: inline-flex; align-items: center; gap: 5px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 340ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-peek-statuswrap:hover .tk-peek-stat-pop { max-width: 560px; opacity: 1; }
body.vf-studio .tk-peek-stat-opt { flex: none; cursor: pointer; border: 0; font-size: 11px; padding: 5px 10px; box-shadow: 0 2px 9px rgba(0,0,0,0.2); }
body.vf-studio .tk-peek-stat-opt.is-cur { transform: scale(1.06); box-shadow: 0 4px 13px rgba(0,0,0,0.3); }

/* Production — film-reel icon, "+ Production" slides in on hover when empty */
body.vf-studio .tk-peek-prodbtn { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; border: 0; background: none; color: rgba(255,255,255,0.92); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 3px 8px 3px 5px; border-radius: 999px; transition: background 150ms ease, color 150ms ease; }
body.vf-studio .tk-peek-prodbtn:hover { background: rgba(255,255,255,0.16); color: #fff; }
body.vf-studio .tk-peek-prodico { flex: none; opacity: 0.92; }
body.vf-studio .tk-peek-prodlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .tk-peek-prodchev { flex: none; opacity: 0.8; }
body.vf-studio .tk-peek-prodadd { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 160ms ease; }
body.vf-studio .tk-peek-prodbtn:hover .tk-peek-prodadd { max-width: 130px; opacity: 0.96; }

/* Location — floating chip, inline reveal */
body.vf-studio .tk-peek-locwrap { display: inline-flex; align-items: center; }
body.vf-studio .tk-peek-loc-cur { width: 46px; height: 36px; border-radius: 11px; background: rgba(36,42,54,0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; box-shadow: 0 5px 14px rgba(10,15,26,0.26); max-width: 46px; overflow: hidden; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 150ms ease; }
body.vf-studio .tk-peek-loc-cur svg { width: 18px; height: 18px; }
body.vf-studio .tk-peek-locwrap:hover .tk-peek-loc-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-peek-loc-pop { display: inline-flex; align-items: center; gap: 5px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 260ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-peek-locwrap:hover .tk-peek-loc-pop { max-width: 130px; opacity: 1; }
body.vf-studio .tk-peek-loc-opt { flex: none; width: 44px; height: 36px; border-radius: 11px; border: 0; background: rgba(36,42,54,0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: rgba(255,255,255,0.72); display: grid; place-items: center; cursor: pointer; box-shadow: 0 5px 14px rgba(10,15,26,0.26); transition: background 140ms ease, color 140ms ease; }
body.vf-studio .tk-peek-loc-opt svg { width: 18px; height: 18px; }
body.vf-studio .tk-peek-loc-opt.is-on { background: var(--vf-blue); color: #fff; }
body.vf-studio .tk-peek-loc-opt:hover { background: rgba(9,94,223,0.82); color: #fff; }

/* Assignee — floating avatars, inline reveal */
body.vf-studio .tk-peek-assignwrap { display: inline-flex; align-items: center; }
body.vf-studio .tk-peek-assign-cur { display: inline-flex; align-items: center; max-width: 180px; overflow: hidden; opacity: 1; transition: max-width 240ms cubic-bezier(.16,1,.3,1), opacity 150ms ease; }
body.vf-studio .tk-peek-assign-cur .tk-av { width: 36px; height: 36px; font-size: 12.5px; box-shadow: 0 0 0 2px var(--bg-elev); }
body.vf-studio .tk-peek-assign-cur .tk-av + .tk-av { margin-left: -13px; }
body.vf-studio .tk-peek-assignwrap:hover .tk-peek-assign-cur { max-width: 0; opacity: 0; }
body.vf-studio .tk-peek-assign-pop { display: inline-flex; align-items: center; gap: 5px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 280ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-peek-assignwrap:hover .tk-peek-assign-pop { max-width: 280px; opacity: 1; }
body.vf-studio .tk-peek-assign-opt { flex: none; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; opacity: 0.55; transition: opacity 140ms ease, transform 140ms ease; }
body.vf-studio .tk-peek-assign-opt .tk-av { width: 34px; height: 34px; box-shadow: 0 2px 8px rgba(10,15,26,0.3); }
body.vf-studio .tk-peek-assign-opt:hover { opacity: 1; transform: translateY(-1px); }
body.vf-studio .tk-peek-assign-opt.is-on { opacity: 1; }
body.vf-studio .tk-peek-assign-opt.is-on .tk-av { box-shadow: 0 0 0 2px #fff, 0 2px 8px rgba(10,15,26,0.3); }

/* Body — link/file summary pills + the hover-expand add */
body.vf-studio .tk-peek-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.vf-studio .tk-peek-sumpill { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; padding: 6px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--fg2); font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background 130ms ease, color 130ms ease; }
body.vf-studio .tk-peek-sumpill:hover { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-peek-sumlabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.vf-studio .tk-peek-sumpill svg { flex: none; opacity: 0.65; }
body.vf-studio .tk-peek-sumpill:hover svg { opacity: 1; }
body.vf-studio .tk-peek-sumpill.is-pending { opacity: 0.55; cursor: default; }
body.vf-studio .tk-peek-add { display: inline-flex; align-items: center; gap: 6px; }
body.vf-studio .tk-peek-add-btn { width: 34px; height: 34px; flex: none; padding: 0; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--bg-tint); color: var(--fg2); cursor: pointer; transition: background 130ms ease, color 130ms ease; }
body.vf-studio .tk-peek-add:hover .tk-peek-add-btn, body.vf-studio .tk-peek-add:focus-within .tk-peek-add-btn { background: var(--accent-soft); color: var(--vf-blue); }
body.vf-studio .tk-peek-add-opts { display: inline-flex; align-items: center; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transition: max-width 320ms cubic-bezier(.16,1,.3,1), opacity 180ms ease; }
body.vf-studio .tk-peek-add:hover .tk-peek-add-opts, body.vf-studio .tk-peek-add:focus-within .tk-peek-add-opts { max-width: 320px; opacity: 1; }
body.vf-studio .tk-peek-add-opt { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--fg2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 130ms ease, border-color 130ms ease; }
body.vf-studio .tk-peek-add-opt:hover { background: var(--bg-tint); border-color: var(--line-strong); }
body.vf-studio .tk-peek-add-opt svg { flex: none; opacity: 0.7; }
body.vf-studio .tk-peek-linkedit-row { margin-top: 10px; }

/* ─────────────────────────────────────────────────────────────────────────
   Global smoothness pass — unify every hover/transition on one springy ease
   with a touch more duration so the whole back-office glides rather than
   snaps. Scoped to trigger/hover elements; the max-width reveal containers
   keep their own timings but share the easing. Plus soft entrance animations
   for the peek + cog so things ease in.
   ───────────────────────────────────────────────────────────────────────── */
/* One shared S-curve (easeInOutCubic) — accelerate in, decelerate out — so all
   motion has natural, symmetric speed-up/slow-down rather than a linear/ease-out feel. */
body.vf-studio { --st-ease: cubic-bezier(.65, 0, .35, 1); --st-hover: 320ms; --st-rev: 480ms; }
html:has(body.vf-studio) { scroll-behavior: smooth; }
body.vf-studio .navbar-link, body.vf-studio .navbar-badge, body.vf-studio .navbar-sublink,
body.vf-studio .navbar-brand-suffix, body.vf-studio .navbar-icon, body.vf-studio .navbar-avatar,
body.vf-studio .tk-chip, body.vf-studio .tk-chipopt, body.vf-studio .tk-cog-chip,
body.vf-studio .tk-cog, body.vf-studio .tk-refresh, body.vf-studio .tk-addtask,
body.vf-studio .tk-locfilter-opt, body.vf-studio .tk-av, body.vf-studio .tk-pill,
body.vf-studio .tk-row, body.vf-studio .tk-rowloc-opt, body.vf-studio .tk-rowppl-opt,
body.vf-studio .tk-rowstat-done, body.vf-studio .admin-home-card, body.vf-studio .admin-hub-stat,
body.vf-studio .dash-card, body.vf-studio .dash-prod-feature, body.vf-studio .dash-tool,
body.vf-studio .tk-peek-sumpill, body.vf-studio .tk-peek-add-btn,
body.vf-studio .tk-peek-add-opt, body.vf-studio .tk-peek-loc-opt, body.vf-studio .tk-peek-assign-opt,
body.vf-studio .tk-peek-stat-opt, body.vf-studio .tk-peek-hero-date, body.vf-studio .tk-peek-prodbtn,
body.vf-studio .tk-peek-delete, body.vf-studio .tk-peek-cbtn, body.vf-studio .tk-peek-title-input,
body.vf-studio .kp-btn, body.vf-studio .kp-btn-ghost, body.vf-studio .kp-eq-cat,
body.vf-studio .vf-footer-col a, body.vf-studio .vf-footer-appearance, body.vf-studio .set-theme button,
body.vf-studio .tk-row-loc, body.vf-studio .tk-rowloc-now, body.vf-studio .tk-rowloc-next,
body.vf-studio .tk-peek-loc, body.vf-studio .tk-peek-loc-now, body.vf-studio .tk-peek-loc-next {
  transition-timing-function: var(--st-ease);
  transition-duration: var(--st-hover);
}
/* Reveal containers — a long, silky max-width glide so options ease open/closed. */
body.vf-studio .tk-rowppl-cur, body.vf-studio .tk-rowppl-pop,
body.vf-studio .tk-rowstat-cur, body.vf-studio .tk-rowstat-pop,
body.vf-studio .tk-peek-stat-cur, body.vf-studio .tk-peek-stat-pop,
body.vf-studio .tk-peek-assign-cur, body.vf-studio .tk-peek-assign-pop,
body.vf-studio .tk-peek-add-opts, body.vf-studio .tk-peek-hero-addlabel,
body.vf-studio .tk-peek-prodadd, body.vf-studio .tk-rowstat-done {
  transition-property: max-width, opacity, transform;
  transition-duration: var(--st-rev);
  transition-timing-function: var(--st-ease);
}
/* Peek entrance — backdrop fades, card eases up (slower + gentler). */
body.vf-studio .tk-peek-overlay { animation: stPeekFade 300ms var(--st-ease) both; }
body.vf-studio .tk-peek { animation: stPeekPop 500ms var(--st-ease) both; }
@keyframes stPeekFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stPeekPop { from { opacity: 0; transform: translateY(18px) scale(0.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Cog panel eases in. */
body.vf-studio .tk-cog-panel { animation: stCogIn 380ms var(--st-ease) both; transform-origin: top left; }
@keyframes stCogIn { from { opacity: 0; transform: translateY(-10px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* Undo snackbar slides up. */
body.vf-studio .tk-undo { animation: stUndoIn 440ms var(--st-ease) both; }
@keyframes stUndoIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
/* Nav flyout + filter menu — longer, gentler open/close. */
body.vf-studio .navbar-flyout { transition: opacity 300ms var(--st-ease), transform 480ms var(--st-ease), visibility 0s linear 300ms; }
body.vf-studio .navbar-item:hover > .navbar-flyout, body.vf-studio .navbar-item:focus-within > .navbar-flyout { transition: opacity 260ms var(--st-ease), transform 480ms var(--st-ease), visibility 0s; }
body.vf-studio .tk-filter-menu { transition: opacity 320ms var(--st-ease), transform 500ms var(--st-ease), visibility 0s linear 320ms; }
body.vf-studio .tk-filter:hover .tk-filter-menu, body.vf-studio .tk-filter:focus-within .tk-filter-menu { transition: opacity 260ms var(--st-ease), transform 500ms var(--st-ease), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  body.vf-studio .tk-peek-overlay, body.vf-studio .tk-peek, body.vf-studio .tk-cog-panel, body.vf-studio .tk-undo { animation: none; }
  html:has(body.vf-studio) { scroll-behavior: auto; }
}

/* Location preview swap — hovering shows the OTHER location's icon; click switches. */
body.vf-studio .tk-row-loc { position: relative; flex: none; display: inline-grid; place-items: center; width: 34px; height: 24px; border: 0; border-radius: 7px; background: var(--bg-tint); color: var(--fg3); cursor: pointer; padding: 0; overflow: hidden; }
body.vf-studio .tk-row-loc .tk-rowloc-now, body.vf-studio .tk-row-loc .tk-rowloc-next { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; }
body.vf-studio .tk-row-loc svg { width: 15px; height: 15px; }
body.vf-studio .tk-rowloc-next { opacity: 0; color: var(--vf-blue); }
body.vf-studio .tk-row-loc:hover { background: var(--accent-soft); }
body.vf-studio .tk-row-loc:hover .tk-rowloc-now { opacity: 0; }
body.vf-studio .tk-row-loc:hover .tk-rowloc-next { opacity: 1; }
body.vf-studio.vf-admin-dark .tk-row-loc { background: rgba(255,255,255,0.08); }
body.vf-studio .tk-peek-loc { position: relative; display: inline-grid; place-items: center; width: 46px; height: 36px; border: 0; border-radius: 11px; background: rgba(36,42,54,0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(10,15,26,0.26); padding: 0; overflow: hidden; }
body.vf-studio .tk-peek-loc .tk-peek-loc-now, body.vf-studio .tk-peek-loc .tk-peek-loc-next { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; }
body.vf-studio .tk-peek-loc svg { width: 18px; height: 18px; }
body.vf-studio .tk-peek-loc-next { opacity: 0; }
body.vf-studio .tk-peek-loc:hover { background: rgba(9,94,223,0.85); }
body.vf-studio .tk-peek-loc:hover .tk-peek-loc-now { opacity: 0; }
body.vf-studio .tk-peek-loc:hover .tk-peek-loc-next { opacity: 1; }

/* Peek status pills — SOLID + high-contrast so they read clearly over the
   wallpaper (the soft tints washed out). Solid colour + white/dark text. */
body.vf-studio .tk-peek-stat-cur, body.vf-studio .tk-peek-stat-opt { font-weight: 700; }
body.vf-studio .tk-peek-stat-cur.tk-pill-yellow, body.vf-studio .tk-peek-stat-opt.tk-pill-yellow { background: #ECB330; color: #2E2100; }
body.vf-studio .tk-peek-stat-cur.tk-pill-blue,   body.vf-studio .tk-peek-stat-opt.tk-pill-blue   { background: #2F7FD8; color: #fff; }
body.vf-studio .tk-peek-stat-cur.tk-pill-amber,  body.vf-studio .tk-peek-stat-opt.tk-pill-amber  { background: #E2862E; color: #fff; }
body.vf-studio .tk-peek-stat-cur.tk-pill-green,  body.vf-studio .tk-peek-stat-opt.tk-pill-green  { background: #2FA25B; color: #fff; }
body.vf-studio .tk-peek-stat-cur.tk-pill-grey,   body.vf-studio .tk-peek-stat-opt.tk-pill-grey   { background: #8A93A3; color: #fff; }
body.vf-studio .tk-peek-stat-opt.is-cur { transform: scale(1.06); box-shadow: 0 5px 14px rgba(0,0,0,0.32); }
