/* css/experience.css
   The Visionaries Agent System Tracker: experience pass of 2026-11-25.
   1. Sidebar pages (Team Resources, Lead Distribution)
   2. IUL Explorer "not connected" state, Team Drive field in Settings
   3. All Agents: agent cell spacing, table never cut off on the right
   4. Light mode: depth and a back-light hover on every card (nothing moves or distorts)
   Brand: navy #06182A, royal blue #0878C8, gold #D19B59, champagne #F8D880. One typeface. No brown, no purple. */

/* ───────────────────────── 1. sidebar pages ───────────────────────── */
.vp-page{width:100%;flex:1 1 auto;box-sizing:border-box;max-width:1280px;margin:0 auto;padding:16px 22px 48px;
  --vp-tx:#06182A;--vp-mu:#405665;--vp-card:#FFFFFF;--vp-soft:#F3F6FA;--vp-line:#D5DDE5}
html[data-theme="dark"] .vp-page{--vp-tx:#FFFFFF;--vp-mu:#DCE4EC;--vp-card:#0D2238;--vp-soft:#0A1B2D;--vp-line:rgba(255,255,255,.16)}
.vp-topbar{margin-bottom:14px}
.vp-page svg{width:16px;height:16px;flex:none}
.vp-hero{position:relative;overflow:hidden;border-radius:20px;padding:26px 28px;background:linear-gradient(120deg,#06182A 0%,#0B2A47 62%,#0E3B63 100%);color:#FFFFFF}
.vp-hero::after{content:"";position:absolute;right:-70px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(closest-side,rgba(248,216,128,.34),rgba(248,216,128,0));pointer-events:none}
.vp-eyebrow{font-size:11px;font-weight:800;letter-spacing:2.4px;text-transform:uppercase;color:#FFFFFF}
.vp-hero h1{margin:6px 0 0;font-size:32px;line-height:1.1;font-weight:800;color:#FFFFFF;text-wrap:balance}
.vp-hero p{margin:8px 0 0;font-size:15px;font-weight:700;color:#FFFFFF;text-wrap:pretty}
.vp-sec{margin-top:22px}
.vp-sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.vp-sec-t{display:flex;align-items:center;gap:12px;min-width:0}
.vp-sec-t h2{margin:0;font-size:20px;font-weight:800;color:var(--vp-tx)}
.vp-sec-t p{margin:2px 0 0;font-size:13px;font-weight:600;color:var(--vp-mu)}
.vp-sec-a{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vp-ic{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#F8D880;color:#06182A}
.vp-ic svg{width:21px;height:21px}
.vp-leaders{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px}
.vp-leader{display:grid;grid-template-columns:60px minmax(0,1fr);gap:14px 16px;align-items:center;padding:18px;border-radius:16px;background:var(--vp-card);border:1px solid var(--vp-line);transition:box-shadow .28s cubic-bezier(.2,.7,.2,1),border-color .2s}
.vp-ava{display:grid;place-items:center;width:60px;height:60px;border-radius:50%;background:#06182A;color:#FFFFFF;font-size:20px;font-weight:800;letter-spacing:.5px;box-shadow:0 0 0 3px #F8D880}
html[data-theme="dark"] .vp-ava{background:#0878C8}
.vp-leader-tx{min-width:0}
.vp-leader h3{margin:0;font-size:19px;font-weight:800;color:var(--vp-tx)}
.vp-role{display:inline-block;margin-top:6px;font-size:10.5px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;padding:4px 9px;border-radius:20px;background:#06182A;color:#FFFFFF}
html[data-theme="dark"] .vp-role{background:#0878C8}
.vp-lines{display:grid;gap:3px;margin-top:8px}
.vp-lines a{font-size:14px;font-weight:700;color:var(--vp-tx)!important;text-decoration:none;overflow-wrap:anywhere}
.vp-acts{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.vp-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 15px;border-radius:11px;border:1px solid var(--vp-line);background:var(--vp-card);color:var(--vp-tx)!important;font:800 13.5px/1 var(--sans,Inter,system-ui,sans-serif);text-decoration:none;cursor:pointer;white-space:nowrap;transition:box-shadow .22s,border-color .2s}
.vp-btn span{color:inherit}
.vp-btn:hover{border-color:#0878C8;color:var(--vp-tx)!important;box-shadow:0 0 0 1px #0878C8,0 0 18px rgba(8,120,200,.4)}
html[data-theme="dark"] .vp-btn{background:rgba(255,255,255,.07);color:#FFFFFF!important;border-color:rgba(255,255,255,.3)}
html[data-theme="dark"] .vp-btn:hover{color:#FFFFFF!important}
.vp-btn.go,html[data-theme="dark"] .vp-btn.go{background:#0878C8;border-color:#0878C8;color:#FFFFFF!important}
.vp-btn.go:hover,html[data-theme="dark"] .vp-btn.go:hover{background:#0878C8;color:#FFFFFF!important;box-shadow:0 0 0 3px rgba(8,120,200,.24),0 0 24px rgba(8,120,200,.65)}
.vp-btn:focus-visible,.vp-seg-b:focus-visible{outline:2px solid #0878C8;outline-offset:2px}
.vp-seg{display:inline-flex;padding:3px;border-radius:11px;background:var(--vp-soft);border:1px solid var(--vp-line)}
.vp-seg-b{appearance:none;display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--vp-tx);font:800 12.5px/1 var(--sans,Inter,system-ui,sans-serif);cursor:pointer}
.vp-seg-b span{color:inherit}
.vp-seg-b.on,html[data-theme="dark"] .vp-seg-b.on{background:#06182A;color:#FFFFFF}
html[data-theme="dark"] .vp-seg-b.on{background:#0878C8}
.vp-drive{border-radius:16px;overflow:hidden;border:1px solid var(--vp-line);background:#FFFFFF;height:min(72vh,760px);min-height:420px}
.vp-drive iframe{display:block;width:100%;height:100%;border:0;background:#FFFFFF}
/* Lead Distribution: the tool fills the page under the Back button */
.vp-page-frame{max-width:none;display:flex;flex-direction:column;height:100%;min-height:100vh;min-height:100dvh;padding-bottom:0}
.vp-frame-wrap{flex:1 1 auto;min-height:0;margin:0 -22px;border-top:1px solid var(--vp-line)}
.vp-frame{display:block;width:100%;height:100%;min-height:calc(100vh - 74px);min-height:calc(100dvh - 74px);border:0;background:#FFFFFF}
body.vp-on #main-content-window{padding-top:0}
/* the sidebar buttons are a two-across grid of tiles, so four of them take the room two used to */
.sidebar .vh-navgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 10px 8px}
.sidebar .vh-navgrid.one{grid-template-columns:1fr}
.sidebar .vh-navgrid .nav-dash{width:auto!important;margin:0!important;min-height:64px;padding:9px 8px!important;flex-direction:column;justify-content:center;gap:6px!important;text-align:center;line-height:1.15;font-size:12.5px!important}
.sidebar .vh-navgrid.one .nav-dash{flex-direction:row;min-height:46px;justify-content:flex-start;padding:11px 14px!important;gap:10px!important;font-size:13.5px!important}
.sidebar .vh-navgrid .nav-dash span:last-child{text-wrap:balance}
body.sidebar-collapsed .sidebar .vh-navgrid{display:none}

/* ───────────────────────── 2. IUL off state, Team Drive field ───────────────────────── */
.iul-off{max-width:520px;margin:9vh auto 0;padding:34px 28px;text-align:center;border-radius:18px;background:var(--panel,#FFFFFF);border:1px solid var(--line,#D8DFE6)}
.iul-off-ic{display:inline-grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#06182A;color:#F8D880}
.iul-off-ic svg{width:28px;height:28px}
.iul-off h3{margin:14px 0 0;font-size:22px;font-weight:800;color:var(--text,#081929)}
.iul-off p{margin:8px auto 18px;max-width:42ch;font-size:15px;line-height:1.5;font-weight:600;color:var(--text,#081929);text-wrap:pretty}
html[data-theme="dark"] .iul-off{background:#0D2238;border-color:rgba(255,255,255,.16)}
html[data-theme="dark"] .iul-off h3,html[data-theme="dark"] .iul-off p{color:#FFFFFF}
.st-drive{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px}
.st-drive-i{flex:1 1 320px;min-width:0;min-height:42px;padding:0 13px;border-radius:10px;border:1px solid var(--line2,#B3BFC9);background:var(--panel,#FFFFFF);color:var(--text,#081929);font:600 14px/1.2 var(--sans,Inter,system-ui,sans-serif)}
.st-drive-i:focus{outline:2px solid #0878C8;outline-offset:1px}
html[data-theme="dark"] .st-drive-i{background:#0A1B2D;color:#FFFFFF;border-color:rgba(255,255,255,.28)}
.st-drive-msg{margin-top:10px;padding:10px 13px;border-radius:10px;font-size:13.5px;font-weight:700;background:#E7F3FB;color:#06182A;border:1px solid #0878C8}
.st-drive-msg.bad{background:#FDECEC;border-color:#C62828;color:#7A1414}
.st-drive-msg[hidden]{display:none}

/* ───────────────────────── 3. All Agents: the agent cell ─────────────────────────
   Name, Top Performer and the detail line are three evenly spaced lines centred on the photo.
   The chip keeps to the name's line when there is room and drops under it cleanly when there is not. */
.td2-table td.td2-agent{display:table-cell!important;position:relative;vertical-align:middle;min-width:250px}
.td2-table td.td2-agent:has(>.td2-ava){padding-left:70px}
.td2-table.vu-tt td.td2-agent{padding-left:16px}
.td2-table td.td2-agent>.td2-ava{position:absolute;left:14px;top:50%;margin-top:-20px}
.td2-table .td2-agent-tx{display:flex;flex-direction:column;justify-content:center;gap:6px;min-width:0}
.td2-table .td2-nm{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;line-height:1.2;margin:0}
.td2-table .td2-topchip{display:inline-flex;align-items:center;height:20px;padding:0 10px;margin:0;border-radius:20px;line-height:1;white-space:nowrap}
.td2-table .td2-meta{margin:0!important;line-height:1.25;display:flex;align-items:center;gap:6px;white-space:nowrap}
.td2-table tbody td{padding-top:14px;padding-bottom:14px;vertical-align:middle}
/* the Last sign-in column was running off the right edge of the card and being cut */
.td2-table-wrap{overflow-x:auto!important}
.td2-table thead th,.td2-table tbody td{padding-left:10px;padding-right:10px}
.td2-table thead th:first-child,.td2-table tbody td:first-child{padding-left:16px}
.td2-table td.td2-login,.td2-table th:last-child{padding-right:16px}
.td2-table td.td2-prog{min-width:118px}
.td2-table .td2-login{white-space:normal;min-width:112px}
.td2-table .td2-login-a{white-space:nowrap}
.td2-table .td2-login-d{white-space:normal;line-height:1.3}

/* ───────────────────────── 4. light mode: depth and back-light hover ─────────────────────────
   Resting cards get a soft shadow so the page is not flat. On hover a light comes on behind the card:
   the border turns blue and a blue and champagne glow breathes behind it. Nothing scales, moves or blurs. */
@keyframes vhGlowLight{
  0%,100%{box-shadow:0 0 0 1px rgba(8,120,200,.75),0 14px 34px -14px rgba(8,120,200,.55),0 0 26px -2px rgba(248,216,128,.55)}
  50%{box-shadow:0 0 0 1px rgba(8,120,200,.95),0 18px 44px -12px rgba(8,120,200,.7),0 0 40px 2px rgba(248,216,128,.8)}
}
@keyframes vhGlowGold{
  0%,100%{box-shadow:0 0 0 1px rgba(248,216,128,.9),0 14px 34px -14px rgba(6,24,42,.6),0 0 24px -2px rgba(248,216,128,.6)}
  50%{box-shadow:0 0 0 1px #F8D880,0 18px 44px -12px rgba(6,24,42,.7),0 0 40px 2px rgba(248,216,128,.9)}
}
html:not([data-theme="dark"]) body #main-content-window{background:linear-gradient(180deg,#EEF3F8 0%,#F6F8FB 46%,#EEF3F8 100%)}
html:not([data-theme="dark"]) body :is(.tl-card,.as-card,.vu-card,.dr-card,.ov2-kpi,.td2-kpi,.ov2-phase,.vu-stat,.dr-stat,div.pg-card,.dsov-sum,.tr-leader,.vp-leader,.st-card,.co-card,.panel){
  box-shadow:0 1px 2px rgba(6,24,42,.05),0 12px 28px -20px rgba(6,24,42,.35);
  transition:box-shadow .28s cubic-bezier(.2,.7,.2,1),border-color .2s}
html:not([data-theme="dark"]) body :is(.tl-card,.as-card,.vu-card,.dr-card,.ov2-kpi,.td2-kpi,.ov2-phase,.vu-stat,.dr-stat,.pg-card,.vu-ob-card,.dsov-wcell,.dsov-cell,.tr-leader,.st-go,.co-card):hover{
  border-color:#0878C8!important;animation:vhGlowLight 1.9s ease-in-out infinite}
/* navy and black cards on a light page light up in champagne */
html:not([data-theme="dark"]) body :is(.ob-tool,.ms-card,.ob-as):hover{animation:vhGlowGold 1.9s ease-in-out infinite}
/* All Agents rows: a blue edge light instead of a flat tint */
html:not([data-theme="dark"]) body .td2-table tbody tr.td2-row{transition:box-shadow .2s,background-color .2s}
html:not([data-theme="dark"]) body .td2-table tbody tr.td2-row:hover{box-shadow:inset 4px 0 0 #0878C8,inset 0 0 0 1px rgba(8,120,200,.28);background-color:#F2F8FD}
/* the arrow on "Open tool" leans forward, the card itself stays put */
.tl-card .tl-go svg{transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.tl-card:hover .tl-go svg{transform:translateX(5px)}
/* tabs and sidebar agents: a soft light under the label */
html:not([data-theme="dark"]) body #kw-tabs .tab:not(.active):hover{box-shadow:0 0 0 1px rgba(8,120,200,.5),0 6px 18px -8px rgba(8,120,200,.6)}
html:not([data-theme="dark"]) body #sidebar .agent-item:not(.active):hover{box-shadow:0 0 0 1px rgba(8,120,200,.55),0 8px 22px -12px rgba(8,120,200,.65)}
@media (prefers-reduced-motion:reduce){
  html:not([data-theme="dark"]) body :is(.tl-card,.as-card,.vu-card,.dr-card,.ov2-kpi,.td2-kpi,.ov2-phase,.vu-stat,.dr-stat,.pg-card,.vu-ob-card,.dsov-wcell,.dsov-cell,.tr-leader,.vp-leader,.st-go,.co-card,.ob-tool,.ms-card,.ob-as):hover{animation:none;box-shadow:0 0 0 1px #0878C8,0 14px 34px -14px rgba(8,120,200,.55)}
}
/* every tool disables double-tap zoom: it gets in the way of quick taps */
html,body,button,a,input,select,textarea,[role="button"],.tl-card,.agent-item,.tab{touch-action:manipulation}

/* ───────────────────────── 5. pass of 2026-11-25 (second): dark mode, collapse button, agent hover ───────────────────────── */

/* 5a. Stage pipeline legend: four across, two even rows, so no stage is left alone on a line */
.td2-legend{display:grid!important;grid-template-columns:repeat(4,max-content);gap:9px 30px!important;margin-top:12px!important;justify-content:start}
.td2-leg{white-space:nowrap}
@media (min-width:1700px){.td2-legend{grid-template-columns:repeat(8,max-content)}}
@media (max-width:1180px){.td2-legend{grid-template-columns:repeat(2,max-content)}}
@media (max-width:420px){.td2-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px!important}.td2-leg{white-space:normal}}

/* 5b. Onboarding Progress tiles: all seven phases on one row with their full names (the seventh was alone on a second row) */
.ov2-phases{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important}
.ov2-phase-top{align-items:flex-start!important;min-height:44px!important}
.ov2-phase-n{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.25!important;text-wrap:balance}
@media (max-width:760px){.ov2-phases{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ov2-phases>.ov2-phase:last-child:nth-child(odd){grid-column:1 / -1}}

/* 5c. The hide-menu button: a solid button with a heavy chevron. No see-through fill and no thin pale edge.
       Dark mode: solid gold with a navy chevron. Light mode: solid navy with a white chevron. */
#sidebar .sidebar-collapse-btn{top:12px!important;right:12px!important;width:34px!important;height:34px!important;border-radius:50%!important;font-size:0!important;line-height:0!important;padding:0!important;opacity:1!important;
  background:#F8D880!important;border:2px solid #D19B59!important;color:#06182A!important;
  box-shadow:0 8px 18px -6px rgba(0,0,0,.75)!important;transition:box-shadow .25s,background-color .2s!important}
#sidebar .sidebar-collapse-btn::before{content:"";display:block;width:9px;height:9px;margin-left:4px;border-left:3.2px solid currentColor;border-bottom:3.2px solid currentColor;border-radius:1px;transform:rotate(45deg);transition:translate .25s cubic-bezier(.2,.7,.2,1)}
#sidebar .sidebar-collapse-btn:hover{background:#F8D880!important;border-color:#D19B59!important;color:#06182A!important;box-shadow:0 0 0 4px rgba(248,216,128,.3),0 0 26px rgba(248,216,128,.85)!important}
#sidebar .sidebar-collapse-btn:hover::before{translate:-2px 0}
#sidebar .sidebar-collapse-btn:focus-visible{outline:3px solid #0878C8;outline-offset:2px}
html:not([data-theme="dark"]) body #sidebar .sidebar-collapse-btn{background:#06182A!important;border:2px solid #06182A!important;color:#FFFFFF!important;box-shadow:0 8px 18px -8px rgba(6,24,42,.7)!important}
html:not([data-theme="dark"]) body #sidebar .sidebar-collapse-btn:hover{background:#06182A!important;border-color:#06182A!important;color:#FFFFFF!important;box-shadow:0 0 0 4px rgba(8,120,200,.28),0 0 24px rgba(8,120,200,.75)!important}
/* the matching show-menu button when the menu is hidden */
.sidebar-expand-btn{border-radius:50%!important;width:38px!important;height:38px!important;background:#06182A!important;border:2px solid #06182A!important;color:#FFFFFF!important;font-weight:800!important;box-shadow:0 8px 18px -8px rgba(6,24,42,.7)!important;transition:box-shadow .25s!important}
.sidebar-expand-btn:hover{background:#06182A!important;border-color:#06182A!important;color:#FFFFFF!important;box-shadow:0 0 0 4px rgba(8,120,200,.28),0 0 24px rgba(8,120,200,.75)!important}
html[data-theme="dark"] .sidebar-expand-btn,html[data-theme="dark"] .sidebar-expand-btn:hover{background:#F8D880!important;border-color:#D19B59!important;color:#06182A!important}
html[data-theme="dark"] .sidebar-expand-btn:hover{box-shadow:0 0 0 4px rgba(248,216,128,.3),0 0 26px rgba(248,216,128,.85)!important}

/* 5d. All Agents: hovering a row lights the agent's initials. A gold and blue ring turns around the
       circle and a soft light breathes behind it. The circle itself does not move, grow or change. */
@keyframes vhRing{to{transform:rotate(360deg)}}
@keyframes vhHalo{0%,100%{opacity:.7;transform:scale(.94)}50%{opacity:1;transform:scale(1.08)}}
/* The ring and the light are drawn only OUTSIDE the circle (both are masked to leave the face clear).
   They used to wash over the face, which made the initials look faded. On hover the face stays solid
   navy, the initials turn heavy white and a gold edge holds the circle while the ring turns around it. */
.td2-table td.td2-agent>.td2-ava{isolation:isolate;overflow:visible;transition:box-shadow .3s ease,color .2s}
.td2-table td.td2-agent>.td2-ava::before{content:"";position:absolute;inset:-8px;border-radius:50%;z-index:-1;pointer-events:none;opacity:0;
  background:conic-gradient(from 0deg,#F8D880 0deg,#FFFFFF 45deg,#0878C8 130deg,rgba(8,120,200,0) 200deg,rgba(248,216,128,0) 235deg,#D19B59 305deg,#F8D880 360deg);
  -webkit-mask:radial-gradient(closest-side,transparent calc(100% - 4.5px),#000 calc(100% - 3.5px));mask:radial-gradient(closest-side,transparent calc(100% - 4.5px),#000 calc(100% - 3.5px));
  transition:opacity .3s ease}
.td2-table td.td2-agent>.td2-ava::after{content:"";position:absolute;inset:-22px;border-radius:50%;z-index:-2;pointer-events:none;opacity:0;
  background:radial-gradient(closest-side,rgba(8,120,200,.95) 50%,rgba(248,216,128,.55) 70%,rgba(8,120,200,0) 100%);
  -webkit-mask:radial-gradient(closest-side,transparent 0 53%,#000 57%);mask:radial-gradient(closest-side,transparent 0 53%,#000 57%);
  transition:opacity .3s ease}
.td2-table tbody tr.td2-row:hover td.td2-agent>.td2-ava::before{opacity:1;animation:vhRing 2.4s linear infinite}
.td2-table tbody tr.td2-row:hover td.td2-agent>.td2-ava::after{opacity:1;animation:vhHalo 2s ease-in-out infinite}
.td2-table tbody tr.td2-row:hover td.td2-agent>.td2-ava{background:#06182A!important;color:#FFFFFF!important;font-weight:800!important;border-color:#F8D880!important;
  box-shadow:0 0 0 2px #F8D880,0 0 0 4px #06182A!important}
.td2-table tbody tr.td2-row:hover .td2-nm{color:#0878C8}
html[data-theme="dark"] .td2-table tbody tr.td2-row:hover .td2-nm{color:#FFFFFF;text-shadow:0 0 14px rgba(159,212,255,.75)}
.td2-table .td2-nm{transition:letter-spacing .3s ease}
/* the row itself: an edge light that slides in from the left, in both themes */
.td2-table tbody tr.td2-row{position:relative;transition:box-shadow .25s,background-color .25s}
html[data-theme="dark"] .td2-table tbody tr.td2-row:hover{background-color:#12304E!important;box-shadow:inset 4px 0 0 #F8D880,inset 0 1px 0 rgba(255,255,255,.14),inset 0 -1px 0 rgba(255,255,255,.14),inset 60px 0 60px -50px rgba(8,120,200,.55)}
html:not([data-theme="dark"]) body .td2-table tbody tr.td2-row:hover{box-shadow:inset 4px 0 0 #0878C8,inset 0 0 0 1px rgba(8,120,200,.28),inset 60px 0 60px -50px rgba(8,120,200,.22)}
@media (prefers-reduced-motion:reduce){.td2-table tbody tr.td2-row:hover td.td2-agent>.td2-ava::before,.td2-table tbody tr.td2-row:hover td.td2-agent>.td2-ava::after{animation:none}}

/* 5e. Dark mode: the page, the menu and the cards were all one flat navy. The page is now the deepest
       layer, cards sit above it with a lit top edge, and hovering turns a light on behind the card. */
@keyframes vhGlowDark{
  0%,100%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 0 1px rgba(159,212,255,.7),0 0 26px -2px rgba(8,120,200,.75),0 0 46px -8px rgba(248,216,128,.4)}
  50%{box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 0 1px #9FD4FF,0 0 40px 2px rgba(8,120,200,.95),0 0 64px -6px rgba(248,216,128,.6)}
}
html[data-theme="dark"] body #main-content-window{background:radial-gradient(1200px 620px at 78% -8%,rgba(8,120,200,.2),rgba(8,120,200,0) 62%),linear-gradient(180deg,#030D18 0%,#051423 55%,#030D18 100%)!important}
html[data-theme="dark"] body #sidebar{background:linear-gradient(180deg,#0A2238 0%,#06182A 46%,#04101D 100%)!important;border-right:1px solid rgba(159,212,255,.22)!important;box-shadow:12px 0 40px -24px #000}
html[data-theme="dark"] body :is(.td2-kpi,.ov2-kpi,.ov2-phase,.vu-stat,.dr-stat,.tl-card,.as-card,.vu-card,.dr-card,div.pg-card,.st-card,.co-card,.panel,.td2-table-wrap,.vp-leader,.tl-lede){
  background-image:linear-gradient(180deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.02) 55%,rgba(255,255,255,0) 100%)!important;background-color:#0C2238!important;
  border-color:rgba(159,212,255,.2)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 22px 44px -28px #000;
  transition:box-shadow .28s cubic-bezier(.2,.7,.2,1),border-color .2s}
html[data-theme="dark"] body :is(.td2-kpi,.ov2-kpi,.ov2-phase,.vu-stat,.dr-stat,.tl-card,.as-card,.vu-card,.dr-card,div.pg-card,.co-card,.st-go):hover{
  border-color:#9FD4FF!important;animation:vhGlowDark 2s ease-in-out infinite}
html[data-theme="dark"] body .td2-table thead th{background:#04101D!important;color:#FFFFFF!important;border-bottom:1px solid rgba(248,216,128,.5)!important}
html[data-theme="dark"] body .td2-table tbody td{border-color:rgba(159,212,255,.14)!important}
html[data-theme="dark"] body #kw-tabs{background:#0C2238!important;border-color:rgba(159,212,255,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 18px 36px -26px #000}
html[data-theme="dark"] body #kw-tabs .tab:not(.active):hover{box-shadow:0 0 0 1px rgba(159,212,255,.6),0 0 20px rgba(8,120,200,.7)}
html[data-theme="dark"] body #sidebar .agent-item:not(.active):hover{box-shadow:0 0 0 1px rgba(159,212,255,.55),0 0 22px -2px rgba(8,120,200,.75)}
html[data-theme="dark"] body #sidebar .vh-navgrid .nav-dash:not(.active){background:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.03))!important;border-color:rgba(159,212,255,.26)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
html[data-theme="dark"] body #sidebar .vh-navgrid .nav-dash:not(.active):hover{border-color:#9FD4FF!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 0 1px rgba(159,212,255,.6),0 0 24px rgba(8,120,200,.75)}
@media (prefers-reduced-motion:reduce){html[data-theme="dark"] body :is(.td2-kpi,.ov2-kpi,.ov2-phase,.vu-stat,.dr-stat,.tl-card,.as-card,.vu-card,.dr-card,.pg-card,.co-card,.vp-leader,.st-go):hover{animation:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 0 0 1px #9FD4FF,0 0 30px rgba(8,120,200,.8)}}

/* ───────────────────────── 6. flags ripple on hover (desktop only) ─────────────────────────
   Hover an agent row, an agent in the side menu, or the flag itself and the flag ripples like cloth.
   The LEFT edge is the pole side and stays put; the ripple starts there and runs to the free right end,
   which moves the most. Light and shadow follow the folds. js/flag-ripple.js cuts the flag into strips
   the first time it is hovered. Nothing around the flag moves and it is not clickable. */
@keyframes vcRip{from{transform:translateY(calc(var(--a) * -1))}to{transform:translateY(var(--a))}}
@keyframes vcShade{from{background-color:rgba(255,255,255,calc(.26 * var(--s)))}to{background-color:rgba(4,17,30,calc(.3 * var(--s)))}}
.vc-wave{display:none}
@media (hover:hover) and (min-width:981px){
  .vc-flag{position:relative;transform-origin:0 50%;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
  .vu-tt .td2-meta{gap:11px}
  /* room on the free side, so the lifted flag never touches the text after it */
  .td2-meta .vc-flag{margin-right:8px}
  .vc-flag.vc-rip .vc-wave{position:absolute;inset:0;pointer-events:none}
  .vc-wave i{position:absolute;top:0;height:100%;background-repeat:no-repeat;will-change:transform;
    animation:vcRip calc(var(--p) / 2) ease-in-out var(--d) infinite alternate}
  .vc-wave i::after{content:"";position:absolute;inset:0;
    animation:vcShade calc(var(--p) / 2) ease-in-out calc(var(--d) - var(--p) / 4) infinite alternate}
  .vc-wave i:first-child{border-radius:2px 0 0 2px}
  .vc-wave i:last-child{border-radius:0 2px 2px 0}
  /* while it ripples: the still flag steps aside, the cloth lifts off the page from its left edge */
  :is(.td2-row:hover,.agent-item:hover) .vc-flag.vc-rip,.vc-flag.vc-rip:hover{z-index:3;overflow:visible;box-shadow:none;transform:scale(1.22)}
  :is(.td2-row:hover,.agent-item:hover) .vc-flag.vc-rip > svg,.vc-flag.vc-rip:hover > svg{opacity:0}
  :is(.td2-row:hover,.agent-item:hover) .vc-flag.vc-rip .vc-wave,.vc-flag.vc-rip:hover .vc-wave{display:block;
    filter:drop-shadow(0 3px 3px rgba(6,24,42,.45)) drop-shadow(0 0 .5px rgba(6,24,42,.7))}
  html[data-theme="dark"] :is(.td2-row:hover,.agent-item:hover) .vc-flag.vc-rip .vc-wave,html[data-theme="dark"] .vc-flag.vc-rip:hover .vc-wave{
    filter:drop-shadow(0 0 7px rgba(64,151,213,.85)) drop-shadow(0 3px 4px rgba(0,0,0,.6))}
  /* the country switch keeps its flags still: those are buttons */
  .vc-opt .vc-flag,.vc-opt:hover .vc-flag{transform:none!important}
}
@media (prefers-reduced-motion:reduce){.vc-wave{display:none!important}.vc-flag > svg{opacity:1!important}}

/* ───────────────────────── 7. one colour scheme: gold for the main action, navy for the rest ─────────────────────────
   The add-agent pop-up and Team Resources were using royal blue for their main buttons while the rest of
   the tracker uses gold (the + Agent button, the selected tabs). They now match. */
/* 7a. the name pop-up (Add a new agent and the other "enter a name" pop-ups) */
#kw-name-ov .modal-f .btn-add,#kw-name-ov .modal-f .btn-add:hover{background:#F8D880!important;background-image:linear-gradient(180deg,#FBE3A0,#F0C968)!important;border:1px solid #D19B59!important;color:#06182A!important;font-weight:800!important;text-shadow:none!important}
#kw-name-ov .modal-f .btn-add:hover{box-shadow:0 0 0 4px rgba(248,216,128,.3),0 0 24px rgba(248,216,128,.8)!important}
#kw-name-ov input[type="text"]{border:1.5px solid #8B9AA8!important;box-shadow:none!important}
#kw-name-ov input[type="text"]:focus{border-color:#06182A!important;box-shadow:0 0 0 3px rgba(6,24,42,.16)!important;outline:0!important}
html[data-theme="dark"] #kw-name-ov input[type="text"]{border-color:rgba(255,255,255,.4)!important}
html[data-theme="dark"] #kw-name-ov input[type="text"]:focus{border-color:#FFFFFF!important;box-shadow:0 0 0 3px rgba(255,255,255,.2)!important}
/* 7b. the USA / Canada switch: the chosen side is gold with heavy navy text, like the selected tabs */
.vc-opt.on,.vc-opt.on:hover{background:#F8D880!important;color:#06182A!important;font-weight:800!important}
.vc-opt.on:hover{box-shadow:0 0 16px rgba(248,216,128,.7)!important}
/* 7c. Team Resources */
.vp-btn:hover{border-color:#06182A;box-shadow:0 0 0 1px #06182A,0 0 18px rgba(248,216,128,.65)}
html[data-theme="dark"] .vp-btn:hover{border-color:#FFFFFF;box-shadow:0 0 0 1px #FFFFFF,0 0 20px rgba(248,216,128,.6)}
.vp-btn.go,html[data-theme="dark"] .vp-btn.go,.vp-btn.go:hover,html[data-theme="dark"] .vp-btn.go:hover{background:linear-gradient(180deg,#FBE3A0,#F0C968);border-color:#D19B59;color:#06182A!important}
.vp-btn.go:hover,html[data-theme="dark"] .vp-btn.go:hover{box-shadow:0 0 0 4px rgba(248,216,128,.3),0 0 24px rgba(248,216,128,.8)}
.vp-btn:focus-visible,.vp-seg-b:focus-visible{outline:2px solid #06182A;outline-offset:2px}
html[data-theme="dark"] .vp-btn:focus-visible,html[data-theme="dark"] .vp-seg-b:focus-visible{outline-color:#FFFFFF}
html[data-theme="dark"] .vp-ava{background:#06182A}
html[data-theme="dark"] .vp-role{background:#F8D880;color:#06182A}
html[data-theme="dark"] .vp-seg-b.on{background:#F8D880;color:#06182A}
.vp-hero{background:linear-gradient(120deg,#06182A 0%,#081F36 62%,#0A2740 100%)}
html:not([data-theme="dark"]) body .vp-leader:hover{border-color:#06182A!important;animation:vhGlowGold 1.9s ease-in-out infinite}
html[data-theme="dark"] body .vp-leader:hover{border-color:#F8D880!important;animation:vhGlowGold 1.9s ease-in-out infinite}

/* ───────────────────────── 8. side menu: the Tools fold, and Team training's button ───────────────────────── */
.ql-fold{margin-top:6px;border-radius:12px;border:1px solid var(--line,#D5DDE5);background:var(--panel,#FFFFFF);overflow:hidden}
.ql-fold-h{appearance:none;display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:0 10px;border:0;background:transparent;color:var(--text,#06182A);font:800 13.5px/1 var(--sans,Inter,system-ui,sans-serif);cursor:pointer;text-align:left;transition:box-shadow .22s}
.ql-fold-ic{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#06182A;color:#FFFFFF}
.ql-fold-ic svg{width:15px;height:15px}
.ql-fold-t{flex:1 1 auto;color:inherit}
.ql-fold-n{flex:none;min-width:22px;height:20px;padding:0 6px;border-radius:20px;display:inline-grid;place-items:center;background:#F8D880;color:#06182A;font-size:11.5px;font-weight:800}
.ql-fold-chev{flex:none;width:15px;height:15px;transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.ql-fold.open .ql-fold-chev{transform:rotate(90deg)}
.ql-fold-h:hover{box-shadow:inset 0 0 0 1.5px #06182A,0 0 16px rgba(248,216,128,.6)}
.ql-fold-b{padding:2px 6px 8px;display:grid;gap:1px}
.ql-fold-b[hidden]{display:none}
.ql-fold-b .ql-item{appearance:none;width:100%;border:0;background:transparent;cursor:pointer;text-align:left;font-family:inherit;min-height:34px}
.ql-fold-b .ql-item .ql-label{flex:1 1 auto;min-width:0;white-space:normal;line-height:1.25}
.ql-fold-sub{margin:8px 6px 3px;font-size:10.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--text,#06182A)}
.ql-addlink{margin-top:6px;border:1.5px dashed var(--line2,#9FB0BF)!important;border-radius:9px;font-weight:800!important}
.ql-plus{flex:none;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#F8D880;color:#06182A;font-weight:800;font-size:14px;line-height:1}
html[data-theme="dark"] .ql-fold{background:rgba(255,255,255,.05);border-color:rgba(159,212,255,.26)}
html[data-theme="dark"] .ql-fold-h,html[data-theme="dark"] .ql-fold-sub{color:#FFFFFF}
html[data-theme="dark"] .ql-fold-ic{background:#F8D880;color:#06182A}
html[data-theme="dark"] .ql-fold-h:hover{box-shadow:inset 0 0 0 1.5px #FFFFFF,0 0 18px rgba(248,216,128,.55)}
html[data-theme="dark"] .ql-fold-b .ql-item,html[data-theme="dark"] .ql-fold-b .ql-item .ql-label{color:#FFFFFF!important;font-weight:700}
html[data-theme="dark"] .ql-addlink{border-color:rgba(255,255,255,.45)!important}
/* Team training: the button that goes straight to an agent's University tab */
.vu-tt-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 13px;border-radius:9px;border:1.5px solid #06182A;background:#FFFFFF;color:#06182A;font:800 12.5px/1 var(--sans,Inter,system-ui,sans-serif);white-space:nowrap;cursor:pointer;transition:box-shadow .22s}
.vu-tt-btn:hover{background:#FFFFFF;color:#06182A;box-shadow:0 0 0 3px rgba(248,216,128,.4),0 0 18px rgba(248,216,128,.75)}
html[data-theme="dark"] .vu-tt-btn,html[data-theme="dark"] .vu-tt-btn:hover{background:rgba(255,255,255,.08);border-color:#FFFFFF;color:#FFFFFF}

/* ───────────────────────── 9. USA / Canada in the level and carrier editors ───────────────────────── */
.cl-toolbar{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
.cl-toolbar .vc-switch{flex:none}
.cl-ctry-h{font-size:13px;font-weight:800;color:var(--text,#06182A)}
.cl-toolbar .se-saving{margin-left:auto}
.cl-empty{display:grid!important;gap:10px;justify-items:start;text-align:left!important;padding:22px!important}
.cl-empty b{font-size:17px;font-weight:800;color:var(--text,#06182A)}
.cl-empty span{font-size:14px;line-height:1.5;font-weight:600;color:var(--text,#06182A);max-width:60ch;text-wrap:pretty}
html[data-theme="dark"] .cl-ctry-h,html[data-theme="dark"] .cl-empty b,html[data-theme="dark"] .cl-empty span{color:#FFFFFF}

/* ───────────────────────── 10. resources on an onboarding step ───────────────────────── */
.sr-chip{flex:none;display:inline-flex;align-items:center;gap:5px;margin-left:auto;min-height:26px;padding:0 10px;border-radius:20px;background:#F8D880;color:#06182A;font:800 11.5px/1 var(--sans,Inter,system-ui,sans-serif);white-space:nowrap;cursor:pointer;transition:box-shadow .22s}
.sr-chip svg{width:13px;height:13px;flex:none}
.sr-chip span{color:inherit}
.sr-chip:hover,.sr-chip:focus-visible{background:#F8D880;color:#06182A;outline:0;box-shadow:0 0 0 3px rgba(248,216,128,.35),0 0 18px rgba(248,216,128,.85)}
.check.has-sr,.ob-task.has-sr{display:flex;align-items:center;gap:10px}
.check.has-sr .lab,.ob-task.has-sr .ob-task-t{flex:1 1 auto;min-width:0}
.sr-pop{position:fixed;z-index:400;box-sizing:border-box;padding:14px;border-radius:14px;background:#06182A;color:#FFFFFF;border:1px solid rgba(248,216,128,.55);box-shadow:0 22px 50px -16px rgba(0,0,0,.7),0 0 30px -6px rgba(248,216,128,.45)}
.sr-pop[hidden]{display:none}
.sr-pop-h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.sr-pop-h b{font-size:14.5px;line-height:1.3;font-weight:800;color:#FFFFFF;text-wrap:balance}
.sr-x{appearance:none;flex:none;width:28px;height:28px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:rgba(255,255,255,.1);color:#FFFFFF;font-size:13px;font-weight:800;cursor:pointer}
.sr-note{margin:0 0 10px;font-size:13.5px;line-height:1.5;font-weight:700;color:#FFFFFF;white-space:pre-line;text-wrap:pretty}
.sr-link{display:flex;align-items:center;gap:9px;min-height:42px;margin-top:6px;padding:0 12px;border-radius:10px;background:#FFFFFF;color:#06182A!important;font-size:13.5px;font-weight:800;text-decoration:none;transition:box-shadow .22s}
.sr-link svg{width:16px;height:16px;flex:none}
.sr-link span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.sr-link i{font-style:normal;font-weight:800}
.sr-link:hover{color:#06182A!important;box-shadow:0 0 0 3px rgba(248,216,128,.5),0 0 20px rgba(248,216,128,.85)}
/* the editor */
.sr-edit b{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:20px;background:#F8D880;color:#06182A;font-size:11px;font-weight:800}
.sr-ov{z-index:260!important}
.sr-modal{width:min(620px,100%)!important}
.sr-modal textarea{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:10px;border:1.5px solid #8B9AA8;background:var(--panel,#FFFFFF);color:var(--text,#06182A);font:600 14px/1.45 var(--sans,Inter,system-ui,sans-serif);resize:vertical}
.sr-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto;gap:8px;margin-bottom:8px;align-items:center}
.sr-in{min-width:0;min-height:40px;padding:0 11px;border-radius:10px;border:1.5px solid #8B9AA8;background:var(--panel,#FFFFFF);color:var(--text,#06182A);font:600 14px/1.2 var(--sans,Inter,system-ui,sans-serif)}
.sr-in:focus,.sr-modal textarea:focus{outline:0;border-color:#06182A;box-shadow:0 0 0 3px rgba(6,24,42,.16)}
.sr-help{margin-top:10px;font-size:12.5px;line-height:1.45;font-weight:600;color:var(--text,#06182A);text-wrap:pretty}
html[data-theme="dark"] .sr-in,html[data-theme="dark"] .sr-modal textarea{background:#0A1B2D;color:#FFFFFF;border-color:rgba(255,255,255,.4)}
html[data-theme="dark"] .sr-in:focus,html[data-theme="dark"] .sr-modal textarea:focus{border-color:#FFFFFF;box-shadow:0 0 0 3px rgba(255,255,255,.2)}
html[data-theme="dark"] .sr-help{color:#FFFFFF}
#sr-ov .modal-f .btn-add,#sr-ov .modal-f .btn-add:hover{background-image:linear-gradient(180deg,#FBE3A0,#F0C968)!important;border:1px solid #D19B59!important;color:#06182A!important;font-weight:800!important}
@media (max-width:640px){.sr-row{grid-template-columns:1fr;padding-bottom:8px;border-bottom:1px solid var(--line,#D5DDE5)}.sr-chip span{display:none}.sr-chip{padding:0 8px;min-height:30px}.sr-chip svg{width:15px;height:15px}}


/* ==========================================================================
   11. Tabs: Edit tabs button, tab editor, pages an admin writes herself
   ========================================================================== */
/* the tab bar and its Edit tabs button share one row; the button never wraps under the tabs */
.tabs-edit{display:inline-flex;align-items:center;gap:7px;flex:none;height:34px;padding:0 13px;margin-left:8px;border-radius:10px;border:1.5px solid #0B2A47;
  background:#0B2A47;color:#fff;font:inherit;font-size:12.5px;font-weight:800;white-space:nowrap;cursor:pointer;transition:transform .16s ease,box-shadow .2s ease,background .2s ease}
.tabs-edit svg{width:14px;height:14px;flex:none}
.tabs-edit:hover{background:#123E66;color:#fff;transform:translateY(-1px);box-shadow:0 10px 22px -10px rgba(11,42,71,.7)}
html[data-theme="dark"] .tabs-edit{background:#F4C44A;border-color:#F4C44A;color:#06182A;font-weight:900}
html[data-theme="dark"] .tabs-edit:hover{background:#FFD76A;color:#06182A;box-shadow:0 0 26px -4px rgba(244,196,74,.75)}
.tb-row > .tabs-edit{align-self:center;margin-top:7px}
html.pp-dock-on .tb-row > .tabs-edit{margin-top:0}
@media (max-width:760px){.tabs-edit span{display:none}.tabs-edit{width:36px;padding:0;justify-content:center}}

/* tab list in Settings > Tabs */
.cz-tab-row{flex-wrap:wrap;row-gap:6px}
.cz-tab-row .cz-in{min-width:150px}
.cz-mine{flex:none;font-size:10.5px;font-weight:900;letter-spacing:.6px;text-transform:uppercase;padding:4px 8px;border-radius:999px;background:#F4C44A;color:#06182A;white-space:nowrap}
.cz-page,.cz-del{flex:none;height:32px;padding:0 11px;border-radius:8px;font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.cz-page{border:1.5px solid #0B2A47;background:#0B2A47;color:#fff}
.cz-page:hover{background:#123E66;color:#fff}
.cz-del{border:1.5px solid var(--line2,#C5CFD9);background:transparent;color:var(--text,#0B1A29)}
.cz-del:hover{border-color:#B3261E;color:#B3261E}
.cz-del.sure,.ct-x.sure{background:#B3261E!important;border-color:#B3261E!important;color:#fff!important;width:auto!important;padding:0 10px!important;font-size:12px!important;font-weight:800}
html[data-theme="dark"] .cz-page{background:#F4C44A;border-color:#F4C44A;color:#06182A;font-weight:900}
html[data-theme="dark"] .cz-page:hover{background:#FFD76A;color:#06182A}
html[data-theme="dark"] .cz-del{color:#fff;font-weight:800;border-color:rgba(255,255,255,.35)}
html[data-theme="dark"] .cz-del:hover{border-color:#FF8A80;color:#fff;background:rgba(179,38,30,.5)}
.cz-tab-add{margin-top:10px;color:var(--text,#0B1A29)!important;font-weight:800!important}
html[data-theme="dark"] .cz-tab-add,html[data-theme="dark"] .ct-ov .cz-link-add{color:#fff!important}
.cz-tab-help{font-size:12.5px;line-height:1.5;color:var(--muted,#51606E);margin-top:8px;text-wrap:pretty}
html[data-theme="dark"] .cz-tab-help{color:#fff;font-weight:700}
.ct-ov .cz-f{flex-wrap:wrap;align-items:center}
.ct-ov .cz-err{flex:1 1 240px;margin:0!important;text-wrap:pretty}
.ct-ov .cz-err:empty{display:none}
html[data-theme="dark"] .cz-err:not(:empty){color:#fff;font-weight:800;background:#B3261E;padding:6px 10px;border-radius:9px}

/* tab editor */
.ct-modal{max-width:720px!important}
.ct-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end;margin-bottom:18px}
.ct-f{display:flex;flex-direction:column;gap:6px;min-width:0}
.ct-lab{font-size:12px;font-weight:800;color:var(--text,#0B1A29);margin:12px 0 6px}
.ct-f .ct-lab{margin:0}
.ct-lab-lg{font-size:13.5px;margin-top:0}
html[data-theme="dark"] .ct-lab{color:#fff}
.ct-ov input,.ct-ov textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1.5px solid var(--line2,#C5CFD9);border-radius:9px;background:var(--panel2,#fff);color:var(--text,#0B1A29);font:inherit;font-size:14px}
.ct-ov textarea{resize:vertical;min-height:92px;line-height:1.5}
.ct-ov input:focus,.ct-ov textarea:focus{outline:none;border-color:#0B2A47;box-shadow:0 0 0 3px rgba(11,42,71,.16)}
html[data-theme="dark"] .ct-ov input,html[data-theme="dark"] .ct-ov textarea{background:#0A1B2D;border-color:rgba(255,255,255,.28);color:#fff;font-weight:700}
html[data-theme="dark"] .ct-ov input:focus,html[data-theme="dark"] .ct-ov textarea:focus{border-color:#F4C44A;box-shadow:0 0 0 3px rgba(244,196,74,.25)}
.ct-seg{display:inline-flex;padding:3px;border-radius:11px;background:var(--panel3,#E8EDF2);gap:3px}
.ct-seg-b{height:36px;padding:0 13px;border:0;border-radius:8px;background:transparent;color:var(--text,#0B1A29);font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.ct-seg-b.on{background:#0B2A47;color:#fff}
html[data-theme="dark"] .ct-seg{background:#0A1B2D}
html[data-theme="dark"] .ct-seg-b{color:#fff}
html[data-theme="dark"] .ct-seg-b.on{background:#F4C44A;color:#06182A;font-weight:900}
.ct-card{border:1.5px solid var(--line,#D8DFE6);border-radius:13px;padding:13px;margin-bottom:12px;background:var(--panel,#fff)}
html[data-theme="dark"] .ct-card{background:#0E2338;border-color:rgba(255,255,255,.16)}
.ct-card-h{display:flex;align-items:center;gap:6px;margin-bottom:8px}
.ct-card-h .ct-s-title{flex:1 1 auto;min-width:0;font-weight:800}
.ct-mv,.ct-x{flex:none;width:34px;height:34px;border-radius:8px;border:1.5px solid var(--line2,#C5CFD9);background:transparent;color:var(--text,#0B1A29);font-size:14px;font-weight:800;cursor:pointer;display:grid;place-items:center;white-space:nowrap}
.ct-mv:hover{border-color:#0B2A47;background:#0B2A47;color:#fff}
.ct-x:hover{border-color:#B3261E;background:#B3261E;color:#fff}
html[data-theme="dark"] :is(.ct-mv,.ct-x){color:#fff;border-color:rgba(255,255,255,.3)}
html[data-theme="dark"] .ct-mv:hover{background:#F4C44A;border-color:#F4C44A;color:#06182A}
.ct-lrow{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr) auto;gap:6px;margin-bottom:6px}
.ct-add-sm{border:0;background:none;padding:4px 0;color:#0B2A47;font:inherit;font-size:13px;font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
html[data-theme="dark"] .ct-add-sm{color:#fff}
.ct-s-note{font-size:12px;font-weight:700;margin-top:5px;color:var(--muted,#51606E);text-wrap:pretty}
.ct-s-note:empty{display:none}
.ct-s-note.bad{color:#B3261E}
html[data-theme="dark"] .ct-s-note{color:#fff}
html[data-theme="dark"] .ct-s-note.bad{color:#FFB4AB}
@media (max-width:600px){.ct-top{grid-template-columns:minmax(0,1fr)}.ct-seg{display:flex}.ct-seg-b{flex:1 1 0;padding:0 6px}.ct-lrow{grid-template-columns:minmax(0,1fr) auto}.ct-lrow .ct-l-label{grid-column:1 / -1}}

/* the page agents see */
.ct-page{display:grid;gap:14px;max-width:1040px}
.ct-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ct-aud{font-size:12.5px;color:var(--muted,#51606E)}
.ct-aud b{color:var(--text,#0B1A29)}
html[data-theme="dark"] .ct-aud,html[data-theme="dark"] .ct-aud b{color:#fff;font-weight:800}
.ct-edit{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border-radius:10px;border:1.5px solid #F4C44A;background:#F4C44A;color:#06182A;font:inherit;font-size:12.5px;font-weight:900;cursor:pointer;white-space:nowrap;transition:transform .16s ease,box-shadow .2s ease}
.ct-edit svg{width:14px;height:14px}
.ct-edit:hover{background:#FFD76A;color:#06182A;transform:translateY(-1px);box-shadow:0 10px 22px -10px rgba(244,196,74,.9)}
.ct-sec{padding:20px 22px!important;margin:0!important;min-width:0}
.ct-h{margin:0 0 10px;font-size:19px;font-weight:800;line-height:1.25;color:var(--text,#0B1A29);text-wrap:balance}
html[data-theme="dark"] .ct-h{color:#fff}
.ct-text{font-size:15px;line-height:1.6;color:var(--text,#0B1A29);overflow-wrap:anywhere}
.ct-text p{margin:0 0 10px;text-wrap:pretty}
.ct-text ul{margin:0 0 10px;padding-left:20px}
.ct-text li{margin:3px 0;text-wrap:pretty}
.ct-text a{color:#0B4F86;font-weight:700;text-decoration:underline;text-underline-offset:3px}
html[data-theme="dark"] .ct-text{color:#fff;font-weight:600}
html[data-theme="dark"] .ct-text a{color:#fff;font-weight:800}
.ct-text > :last-child{margin-bottom:0}
.ct-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ct-link,.ct-open{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:6px 14px;border-radius:10px;font-size:13.5px;font-weight:800;text-decoration:none;max-width:100%;transition:transform .16s ease,box-shadow .2s ease,background .2s ease}
.ct-link span,.ct-open span{min-width:0;overflow-wrap:anywhere}
.ct-link svg,.ct-open svg{width:14px;height:14px;flex:none}
.ct-link{background:#0B2A47;color:#fff;border:1.5px solid #0B2A47}
.ct-link:hover{background:#123E66;color:#fff;transform:translateY(-1px);box-shadow:0 10px 22px -10px rgba(11,42,71,.7)}
html[data-theme="dark"] .ct-link{background:#F4C44A;border-color:#F4C44A;color:#06182A;font-weight:900}
html[data-theme="dark"] .ct-link:hover{background:#FFD76A;color:#06182A;box-shadow:0 0 26px -4px rgba(244,196,74,.75)}
.ct-open{margin-top:10px;border:1.5px solid var(--line2,#C5CFD9);background:transparent;color:var(--text,#0B1A29)}
.ct-open:hover{border-color:#0B2A47;background:#0B2A47;color:#fff}
html[data-theme="dark"] .ct-open{color:#fff;border-color:rgba(255,255,255,.35)}
html[data-theme="dark"] .ct-open:hover{background:#F4C44A;border-color:#F4C44A;color:#06182A}
.ct-embed{margin-top:14px;border-radius:12px;overflow:hidden;border:1px solid var(--line,#D8DFE6);background:#0A1B2D}
.ct-embed iframe{display:block;width:100%;border:0}
.ct-embed-video iframe{aspect-ratio:16 / 9;height:auto}
.ct-embed-doc{background:#fff}
.ct-embed-doc iframe{height:min(70vh,640px)}
.ct-blank{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ct-blank .ct-h{margin:0}
@media (max-width:760px){.ct-sec{padding:16px!important}.ct-h{font-size:17px}.ct-embed-doc iframe{height:60vh}}

/* ==========================================================================
   12. Onboarding Progress cards: the In progress chip can never leave its card
   The name gets the full width of the card and the check mark or In progress chip always sits
   on its own line under it, so the two can never collide at any card width. Rows line up across cards.
   ========================================================================== */
.ov2-phases{grid-auto-rows:auto}
.ov2-phase{min-width:0!important;display:grid!important;grid-template-rows:subgrid;grid-row:span 4;row-gap:0;align-content:start}
.ov2-phase-top{display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:5px 8px!important;min-width:0!important;min-height:0!important}
.ov2-phase-n{flex:1 1 100%!important;min-width:0!important;white-space:normal!important;overflow:visible!important;overflow-wrap:break-word;hyphens:auto}
.ov2-phase-live{flex:0 1 auto!important;max-width:100%!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
.ov2-phase-badge{flex:none!important}
.ov2-phase-pct,.ov2-phase-ct{min-width:0;overflow-wrap:anywhere}

/* ==========================================================================
   13. The yellow "You are in ...'s system" bar never covers the tabs
   Both were pinned to the very top of the page, so on scroll the bar sat on top of the tab row.
   The bar is now a fixed single line and the tab row pins directly under it.
   ========================================================================== */
.view-banner{height:33px!important;min-height:33px!important;box-sizing:border-box;flex-wrap:nowrap!important;white-space:nowrap;overflow:hidden}
.view-banner .vb-t,.view-banner .vb-s{min-width:0;overflow:hidden;text-overflow:ellipsis}
.view-banner .vb-t{flex:0 1 auto}
.view-banner .vb-s{flex:1 1 0}
.view-banner .vb-x{flex:none}
.view-banner ~ .topbar{top:33px!important}
/* The pinned row (back arrow, Edit tabs, Manage, tabs) had a see-through background, so page text
   slid underneath it and showed between the buttons while scrolling. It now has a solid backing. */
@media (min-width:981px){
  .view-banner ~ .topbar,.main > .topbar{background:rgba(241,244,246,.97)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important;box-shadow:0 10px 18px -16px rgba(11,42,71,.55)}
  html[data-theme="dark"] .view-banner ~ .topbar,html[data-theme="dark"] .main > .topbar{background:rgba(5,17,30,.97)!important;box-shadow:0 12px 22px -14px rgba(0,0,0,.9)}
}
/* On a phone the tabs live in the bottom bar, so this row holds only the back arrow and admin buttons.
   It scrolls away with the page there, which leaves nothing pinned on top of the content. */
html.pp-dock-on .topbar{position:static!important}
