:root{
  --tev-navy:#08213d;
  --tev-navy-2:#0d3157;
  --tev-teal:#219e9a;
  --tev-teal-soft:#eaf7f5;
  --tev-gold:#c99c52;
  --tev-gold-soft:#fbf4e7;
  --tev-coral:#df7e74;
  --tev-coral-soft:#fff0ed;
  --tev-blue:#4a8fca;
  --tev-purple:#7868b7;
  --tev-green:#21845f;
  --tev-green-soft:#e8f5ef;
  --tev-red:#c84e5b;
  --tev-red-soft:#fff0f2;
  --tev-amber:#b77c25;
  --tev-amber-soft:#fff5e4;
  --tev-cream:#fbfaf7;
  --tev-paper:#ffffff;
  --tev-ink:#142438;
  --tev-muted:#69778a;
  --tev-muted-2:#8a95a4;
  --tev-line:#e6eaef;
  --tev-line-strong:#d9dfe7;
  --tev-bg:#f5f6f7;
  --tev-font:"Avenir Next","Helvetica Neue",Arial,sans-serif;
  --tev-shadow:0 8px 24px rgba(18,42,69,.055);
  --tev-shadow-lg:0 18px 54px rgba(18,42,69,.08);
}

body:has(.tev-app),body:has(.tev-gate){background:var(--tev-bg)!important}
.tev-app *,.tev-gate *{box-sizing:border-box}
.tev-app,.tev-gate,.tev-app button,.tev-app input,.tev-app select,.tev-app textarea,.tev-gate button,.tev-gate input{font-family:var(--tev-font)!important}
.tev-app{color:var(--tev-ink);display:flex;min-height:100vh;background:linear-gradient(145deg,#f7f8f9 0%,#fbfaf7 100%);margin:0!important;max-width:none!important;font-size:14px;line-height:1.45}

/* Sidebar */
.tev-sidebar{width:238px;position:sticky;top:0;height:100vh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(114,206,199,.45) transparent;background:linear-gradient(180deg,#071b32 0%,#082541 58%,#071c34 100%);color:#fff;padding:24px 14px 18px;display:flex;flex-direction:column;box-shadow:12px 0 36px rgba(7,27,50,.08);z-index:20}
.tev-logo-wrap{padding:5px 10px 21px;min-height:72px}
.tev-logo-wrap img{display:block;width:100%;max-width:184px;max-height:66px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1);opacity:.98}
.tev-logo-wrap img[src=""],.tev-logo-wrap img:not([src]){display:none}
.tev-submark{font-size:9px;letter-spacing:.19em;color:#72cec7;margin-top:10px;font-weight:800}
.tev-nav{display:flex;flex-direction:column;gap:4px;flex:0 0 auto}
.tev-nav button{appearance:none;border:0;background:transparent;color:#dfe8f1;padding:10px 11px;border-radius:10px;text-align:left;font-size:13px;line-height:1.25;cursor:pointer;display:flex;gap:10px;align-items:center;transition:background .18s ease,color .18s ease,transform .18s ease}
.tev-nav button:hover{background:rgba(255,255,255,.065);color:#fff}
.tev-nav button.active{background:linear-gradient(100deg,#1a8f90,#27a6a2);box-shadow:0 7px 18px rgba(18,145,146,.22);color:#fff;font-weight:700}
.tev-nav-dot{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;flex:0 0 27px;background:rgba(255,255,255,.08);font-size:9px;font-weight:850;letter-spacing:.04em;color:#9fdad6}
.tev-nav button.active .tev-nav-dot{background:rgba(255,255,255,.14);color:#fff}
.tev-side-footer{margin-top:auto;padding:18px 10px 2px;flex:0 0 auto}
.tev-mini-title{font-size:8px;letter-spacing:.17em;color:#91a6ba;font-weight:850}
.tev-dots{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 18px}
.tev-dot{width:7px;height:7px;border-radius:50%;background:#586b7e}
.tev-dot.ok{background:#4ccca0;box-shadow:0 0 0 3px rgba(76,204,160,.10)}
.tev-side-quote{font-size:15px;font-weight:500;font-style:italic;line-height:1.45;color:#eedab8;letter-spacing:.01em}

/* Main shell */
.tev-main{flex:1;min-width:0;padding:24px 28px 60px;max-width:1710px;margin:0 auto}
.tev-topbar{display:flex;justify-content:space-between;gap:28px;align-items:flex-start;margin-bottom:14px}
.tev-eyebrow,.tev-section-kicker{display:block;font-size:9px;line-height:1.3;letter-spacing:.17em;font-weight:850;color:var(--tev-teal);text-transform:uppercase}
.tev-topbar h1,.tev-page-head h2,.tev-section-heading h2,.tev-gate-card h1{font-family:var(--tev-font)!important;color:var(--tev-navy);letter-spacing:-.035em}
.tev-topbar h1{margin:7px 0 4px;font-size:34px;line-height:1.08;font-weight:650}
.tev-topbar p{margin:0;color:var(--tev-muted);font-size:13px}
.tev-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.tev-range{display:flex;background:#fff;border:1px solid var(--tev-line);padding:4px;border-radius:11px;box-shadow:0 3px 12px rgba(20,40,65,.03)}
.tev-range button{border:0;background:transparent;padding:8px 10px;border-radius:8px;font-weight:750;font-size:12px;color:#627083;cursor:pointer;min-width:42px}
.tev-range button:hover{background:#f3f6f7;color:var(--tev-navy)}
.tev-range button.active{background:var(--tev-teal);color:#fff;box-shadow:0 3px 9px rgba(33,158,154,.18)}
.tev-outline,.tev-refresh,.tev-date-panel button,.tev-lock{border:1px solid var(--tev-line);background:#fff;color:var(--tev-navy);border-radius:10px;padding:10px 13px;font-weight:750;font-size:12px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:38px}
.tev-refresh{background:linear-gradient(135deg,var(--tev-navy),var(--tev-navy-2));color:#fff;border:0;box-shadow:0 6px 16px rgba(8,33,61,.15)}
.tev-refresh:hover{transform:translateY(-1px)}
.tev-refresh.spinning{opacity:.72;pointer-events:none}
.tev-date-panel{display:none;justify-content:flex-end;gap:10px;align-items:end;padding:7px 0 13px}
.tev-date-panel.open{display:flex}
.tev-date-panel label{font-size:10px;font-weight:750;color:var(--tev-muted)}
.tev-date-panel input{display:block;margin-top:4px;border:1px solid var(--tev-line);padding:8px 10px;border-radius:8px;background:#fff;color:var(--tev-ink)}

/* Status / freshness */
.tev-statusbar{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--tev-line);padding:10px 0 13px;font-size:10px;color:var(--tev-muted)}
.tev-statusbar>div:first-child{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#tev-health-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.tev-source-badge{padding:4px 7px;border-radius:99px;background:#eef1f4;color:#6e7988;font-size:9px;font-weight:800;letter-spacing:.025em}
.tev-source-badge.ok{background:var(--tev-green-soft);color:#1b7557}
.tev-source-badge.bad{background:var(--tev-red-soft);color:#ae3c49}
.tev-live-chip{display:inline-flex;align-items:center;background:var(--tev-green-soft);color:#1b7557;border-radius:99px;padding:4px 8px;font-weight:750}
.tev-freshness{display:grid;grid-template-columns:repeat(7,minmax(120px,1fr));gap:7px;margin:0 0 16px}
.tev-fresh-item{background:rgba(255,255,255,.78);border:1px solid var(--tev-line);border-radius:10px;padding:8px 10px;min-width:0}
.tev-fresh-item strong{display:block;color:var(--tev-navy);font-size:9px;letter-spacing:.08em;margin-bottom:2px}
.tev-fresh-item span{display:block;color:var(--tev-muted);font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Loading / tab */
.tev-loading{text-align:center;padding:90px 20px;color:var(--tev-muted)}
.tev-loading h3{margin:0 0 5px;color:var(--tev-navy);font-size:18px}
.tev-loading p{margin:0}
.tev-spinner{width:42px;height:42px;border-radius:50%;border:4px solid #dfe9e9;border-top-color:var(--tev-teal);margin:0 auto 18px;animation:tevspin 1s linear infinite}
@keyframes tevspin{to{transform:rotate(360deg)}}
.tev-tab{display:none}.tev-tab.active{display:block}

/* Section language */
.tev-section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:6px 0 11px}
.tev-section-heading h2{font-size:22px;font-weight:650;margin:4px 0 0;line-height:1.15}
.tev-context-chip{display:inline-flex;padding:6px 9px;border-radius:99px;background:#eef5f4;color:#317875;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.tev-period-heading{margin-top:24px;margin-bottom:11px}
.tev-page-head{margin:4px 0 18px;max-width:910px}
.tev-page-head h2{font-size:27px;font-weight:650;margin:5px 0 5px;line-height:1.12}
.tev-page-head p{margin:0;color:var(--tev-muted);font-size:12.5px;line-height:1.55}

/* Goal scorecards */
.tev-goal-section{margin:2px 0 13px}
.tev-goal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tev-goal-card{position:relative;background:#fff;border:1px solid var(--tev-line);border-radius:17px;padding:19px 20px 16px;box-shadow:var(--tev-shadow);overflow:hidden}
.tev-goal-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tev-teal)}
.tev-goal-card.owner:before{background:var(--tev-gold)}
.tev-goal-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.tev-goal-head span:first-child{display:block;color:var(--tev-muted);font-size:11px;font-weight:700;margin-bottom:5px}
.tev-goal-head strong{display:block;color:var(--tev-navy);font-size:28px;line-height:1.08;letter-spacing:-.04em;font-weight:700;font-variant-numeric:tabular-nums}
.tev-goal-status{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:9px;letter-spacing:.06em;font-weight:850;white-space:nowrap;background:#eef1f4;color:#647181}
.tev-goal-status.good{background:var(--tev-green-soft);color:#1d7558}
.tev-goal-status.warn{background:var(--tev-amber-soft);color:#9b671c}
.tev-progress{height:10px;position:relative;background:#edf1f4;border-radius:99px;margin:18px 0 10px;overflow:visible}
.tev-progress>span{position:absolute;left:0;top:0;bottom:0;background:linear-gradient(90deg,#238e90,#3db6ad);border-radius:99px;box-shadow:0 2px 8px rgba(33,158,154,.18)}
.tev-goal-card.owner .tev-progress>span{background:linear-gradient(90deg,#b88d49,#d1a862)}
.tev-progress>i{position:absolute;top:-4px;width:2px;height:18px;background:var(--tev-navy);border-radius:2px;box-shadow:0 0 0 2px #fff}
.tev-progress>i:after{content:"PACE";position:absolute;top:-13px;left:50%;transform:translateX(-50%);font-size:6px;letter-spacing:.08em;color:var(--tev-muted);font-style:normal;font-weight:800}
.tev-goal-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tev-goal-meta span{background:#f8fafb;border:1px solid #edf0f3;border-radius:9px;padding:8px;text-align:center;color:var(--tev-muted);font-size:9.5px;font-weight:650;line-height:1.25}

/* KPI scorecards */
.tev-kpi-grid{display:grid;gap:10px;margin-bottom:12px}
.tev-kpi-grid.tev-kpi-5{grid-template-columns:repeat(5,minmax(130px,1fr))}
.tev-kpi-grid.tev-kpi-4{grid-template-columns:repeat(4,minmax(150px,1fr))}
.tev-kpi-grid:not(.tev-kpi-4):not(.tev-kpi-5){grid-template-columns:repeat(4,minmax(150px,1fr))}
.tev-kpi{background:rgba(255,255,255,.97);border:1px solid var(--tev-line);border-radius:14px;padding:15px 12px 12px;min-height:132px;box-shadow:0 5px 18px rgba(20,38,62,.035);overflow:hidden;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:flex-start}
.tev-kpi-top{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:10px;font-weight:800;color:#536174;line-height:1.25;min-height:26px;text-align:center}
.tev-icon{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:var(--tev-teal-soft);color:var(--tev-teal);font-size:12px;flex:0 0 27px}
.tev-kpi strong{display:block;font-size:25px;line-height:1.05;color:var(--tev-navy);margin:10px 0 4px;letter-spacing:-.035em;font-weight:700;font-variant-numeric:tabular-nums;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.tev-kpi small{display:block;font-size:9.5px;color:var(--tev-muted);line-height:1.35;min-height:26px;text-align:center}
.tev-kpi canvas{height:25px!important;max-height:25px;margin-top:auto;width:100%!important}
.tev-outcome-grid .tev-kpi{min-height:120px;background:linear-gradient(145deg,#fffcf6,#ffffff);border-color:#eadfc8}
.tev-outcome-grid .tev-kpi-top{color:#6b5a3f}

/* Cards + grids */
.tev-card{background:rgba(255,255,255,.98);border:1px solid var(--tev-line);border-radius:15px;padding:17px 18px;box-shadow:var(--tev-shadow);min-width:0}
.tev-card-title{font-size:10px;font-weight:850;letter-spacing:.095em;text-transform:uppercase;color:var(--tev-navy);margin-bottom:14px;text-align:left}
.tev-grid-3{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:12px;margin:12px 0}
.tev-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
.tev-overview-charts .tev-card{min-height:315px}
.tev-card canvas{height:270px!important;max-height:290px}
.tev-wide{min-width:0}

/* Pulse + small stat lists */
.tev-pulse-list{display:flex;flex-direction:column;gap:8px}
.tev-pulse-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #edf0f3;border-left:3px solid var(--tev-green);background:#f9fbfb;border-radius:10px}
.tev-pulse-item.warn{border-left-color:var(--tev-amber);background:#fffaf1}
.tev-pulse-item>div{min-width:0}
.tev-pulse-item span{display:block;color:var(--tev-ink);font-size:10.5px;font-weight:750}
.tev-pulse-item small{display:block;color:var(--tev-muted);font-size:9px;margin-top:2px}
.tev-pulse-item strong{font-size:16px;line-height:1;color:var(--tev-navy);font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.tev-stat-list{display:flex;flex-direction:column;gap:8px}
.tev-stat{padding:10px 11px;background:#f8fafb;border-radius:9px;border:1px solid #edf0f3}
.tev-stat strong{display:block;color:var(--tev-navy);font-size:13px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}
.tev-stat span{display:block;font-size:9.5px;color:var(--tev-muted);margin-top:2px}

/* Tables */
.tev-table{overflow:auto;width:100%}
.tev-table table{width:100%;border-collapse:collapse;font-size:10.5px}
.tev-table th{text-align:left;color:#7f8998;font-size:8.5px;text-transform:uppercase;letter-spacing:.075em;border-bottom:1px solid var(--tev-line-strong);padding:8px 7px;white-space:nowrap;font-weight:850;background:#fbfcfd;position:sticky;top:0;z-index:1}
.tev-table td{border-bottom:1px solid #eff1f4;padding:9px 7px;vertical-align:middle;color:#334156;line-height:1.35}
.tev-table tbody tr:hover td{background:#fafcfc}
.tev-table tr:last-child td{border-bottom:0}
.tev-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.tev-table a{color:#176f76;text-decoration:none;font-weight:650}.tev-table a:hover{text-decoration:underline}
.tev-table .bar{height:6px;background:#e9eef3;border-radius:99px;overflow:hidden;min-width:55px}.tev-table .bar span{display:block;height:100%;background:linear-gradient(90deg,var(--tev-teal),var(--tev-blue));border-radius:99px}
.tev-table-large{max-height:520px}

/* Insights / alerts */
.tev-insight-row{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.tev-insight{border-radius:13px;padding:15px 16px;border:1px solid var(--tev-line);background:#fff;min-height:100px;box-shadow:0 4px 15px rgba(20,38,62,.025)}
.tev-insight .tag{font-size:8px;font-weight:850;letter-spacing:.095em;text-transform:uppercase}.tev-insight h4{margin:5px 0;color:var(--tev-navy);font-size:13px}.tev-insight p{margin:0;font-size:10px;color:var(--tev-muted);line-height:1.5}.tev-insight.win .tag{color:var(--tev-green)}.tev-insight.alert .tag{color:var(--tev-red)}.tev-insight.opportunity .tag{color:var(--tev-amber)}
.tev-alerts-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:12px}
.tev-alert-card{background:#fff;border:1px solid var(--tev-line);border-left:4px solid var(--tev-amber);border-radius:12px;padding:15px;box-shadow:var(--tev-shadow)}.tev-alert-card.win{border-left-color:var(--tev-green)}.tev-alert-card.alert{border-left-color:var(--tev-red)}.tev-alert-card h3{font-size:13px;margin:4px 0 5px;color:var(--tev-navy)}.tev-alert-card p{font-size:10.5px;color:var(--tev-muted);margin:0;line-height:1.5}
.tev-empty{padding:22px;text-align:center;color:var(--tev-muted);font-size:11px}
.tev-pill{display:inline-block;padding:3px 7px;border-radius:99px;font-size:8px;font-weight:850;background:#eef4f5;color:#42616a}.tev-pill.good{background:var(--tev-green-soft);color:#187556}.tev-pill.warn{background:var(--tev-amber-soft);color:#966216}.tev-pill.bad{background:var(--tev-red-soft);color:#af3d49}
.tev-attribution-note{font-size:11px;line-height:1.65;color:var(--tev-muted);padding:5px 2px}.tev-attribution-note strong{color:var(--tev-navy)}


/* Owner income + team CRM */
.tev-income-section{margin:24px 0 20px}
.tev-income-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
.tev-income-card{position:relative;background:linear-gradient(145deg,#ffffff,#fbfcfc);border:1px solid var(--tev-line);border-radius:17px;padding:18px 19px 16px;box-shadow:var(--tev-shadow);overflow:hidden}
.tev-income-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tev-teal)}
.tev-income-card.next:before{background:var(--tev-gold)}
.tev-income-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.tev-income-card-head>span:first-child{font-size:11px;font-weight:850;color:var(--tev-navy);text-transform:uppercase;letter-spacing:.08em}
.tev-income-card>strong{display:block;font-size:32px;line-height:1;color:var(--tev-navy);letter-spacing:-.045em;font-weight:720;font-variant-numeric:tabular-nums}
.tev-income-card>small{display:block;color:var(--tev-muted);font-size:9.5px;margin:7px 0 15px}
.tev-income-split{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}
.tev-income-split>div{background:#f7f9fa;border:1px solid #edf0f2;border-radius:10px;padding:9px 8px;min-width:0}
.tev-income-split span{display:block;color:var(--tev-muted);font-size:8.5px;line-height:1.25;margin-bottom:4px}
.tev-income-split b{display:block;color:var(--tev-navy);font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tev-income-chart-card{margin-top:12px}
.tev-income-chart-card canvas{height:245px!important}

.tev-advisor-grid{display:grid;grid-template-columns:repeat(4,minmax(230px,1fr));gap:12px;margin:12px 0}
.tev-advisor-card{position:relative;background:#fff;border:1px solid var(--tev-line);border-radius:16px;padding:16px;box-shadow:var(--tev-shadow);overflow:hidden;min-width:0}
.tev-advisor-card:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:linear-gradient(90deg,var(--tev-teal),#5fc7c1)}
.tev-advisor-card.owner:before{background:linear-gradient(90deg,var(--tev-gold),#e3bd76)}
.tev-advisor-card.other:before{background:linear-gradient(90deg,var(--tev-purple),#9c8bd6)}
.tev-advisor-head{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;margin-bottom:14px}
.tev-avatar{width:38px;height:38px;border-radius:12px;background:var(--tev-teal-soft);color:#187a77;display:grid;place-items:center;font-size:12px;font-weight:900;letter-spacing:.04em}
.tev-advisor-card.owner .tev-avatar{background:var(--tev-gold-soft);color:#966a29}
.tev-advisor-card.other .tev-avatar{background:#f0edf9;color:#67559f}
.tev-advisor-role{display:block;font-size:7.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--tev-muted-2);font-weight:900}
.tev-advisor-head h3{margin:2px 0 0;color:var(--tev-navy);font-size:14px;font-weight:800;line-height:1.15}
.tev-yoy{font-size:7.5px;font-weight:850;padding:4px 6px;border-radius:99px;white-space:nowrap}
.tev-yoy.up{background:var(--tev-green-soft);color:#177052}
.tev-yoy.down{background:var(--tev-red-soft);color:#a63d49}
.tev-advisor-primary{padding:12px;border-radius:12px;background:linear-gradient(145deg,#f8fbfb,#ffffff);border:1px solid #edf1f2;margin-bottom:9px}
.tev-advisor-primary>span{display:block;font-size:8.5px;color:var(--tev-muted);font-weight:700}
.tev-advisor-primary>strong{display:block;font-size:25px;line-height:1.05;color:var(--tev-navy);font-weight:750;letter-spacing:-.04em;margin:4px 0;font-variant-numeric:tabular-nums}
.tev-advisor-primary>small{display:block;color:var(--tev-muted);font-size:8.5px}
.tev-advisor-split{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:9px}
.tev-advisor-split>div,.tev-advisor-pipeline>div{background:#fafbfc;border:1px solid #eef1f4;border-radius:9px;padding:8px;min-width:0}
.tev-advisor-split span,.tev-advisor-pipeline span{display:block;color:var(--tev-muted);font-size:7.8px;line-height:1.2;margin-bottom:3px}
.tev-advisor-split b,.tev-advisor-pipeline b{display:block;color:var(--tev-navy);font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tev-advisor-pipeline{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:7px;margin-bottom:12px}
.tev-mini-label{display:block;font-size:7.2px;letter-spacing:.11em;color:var(--tev-muted-2);font-weight:900;margin:0 0 5px}
.tev-dest-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;padding:6px 2px;border-bottom:1px solid #eff2f4}
.tev-dest-row:last-child{border-bottom:0}
.tev-dest-row span{font-size:9px;color:#344357;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tev-dest-row b{font-size:9px;color:var(--tev-navy);font-weight:850;font-variant-numeric:tabular-nums}
.tev-dest-row small{grid-column:1/-1;color:var(--tev-muted);font-size:7.5px}
.tev-empty-tight{padding:8px 0;text-align:left;font-size:9px}

/* Password gate */
.tev-gate{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(circle at 80% 10%,rgba(64,190,183,.15),transparent 31%),linear-gradient(135deg,#06182f,#0d2b4c 60%,#174c66)}
.tev-gate-card{width:min(515px,94vw);background:rgba(255,255,255,.985);padding:42px;border-radius:22px;box-shadow:0 35px 90px rgba(0,0,0,.30);text-align:center;border:1px solid rgba(255,255,255,.5)}
.tev-gate-card img{width:230px;max-height:82px;object-fit:contain;margin-bottom:20px}.tev-gate-card h1{font-size:32px;font-weight:650;margin:7px 0}.tev-gate-card p{color:var(--tev-muted);line-height:1.6;font-size:12px}.tev-gate-card form{display:flex;gap:8px;margin:22px 0 13px}.tev-gate-card input{flex:1;border:1px solid #dfe3e8;border-radius:10px;padding:13px}.tev-gate-card button{border:0;border-radius:10px;background:var(--tev-teal);color:#fff;font-weight:800;padding:13px 18px;cursor:pointer}.tev-gate-card small{color:#929dac;font-size:9px}.tev-login-error{background:var(--tev-red-soft);color:#b23b48;padding:9px;border-radius:8px;font-size:11px}

@media(max-width:1380px){
  .tev-freshness{grid-template-columns:repeat(4,1fr)}
  .tev-kpi-grid.tev-kpi-5{grid-template-columns:repeat(3,1fr)}
  .tev-sidebar{width:220px}
  .tev-main{padding:22px 20px 52px}
  .tev-advisor-grid{grid-template-columns:repeat(2,minmax(230px,1fr))}
}
@media(max-width:1100px){
  .tev-topbar{display:block}.tev-controls{justify-content:flex-start;margin-top:14px}
  .tev-grid-3{grid-template-columns:1fr 1fr}.tev-grid-3 .tev-card:last-child{grid-column:span 2}
  .tev-goal-grid{grid-template-columns:1fr}
  .tev-kpi-grid.tev-kpi-5,.tev-kpi-grid.tev-kpi-4,.tev-kpi-grid:not(.tev-kpi-4):not(.tev-kpi-5){grid-template-columns:repeat(2,1fr)}
  .tev-insight-row,.tev-alerts-grid{grid-template-columns:1fr 1fr}
  .tev-income-split{grid-template-columns:1fr 1fr}
}
@media(max-width:800px){
  .tev-app{display:block}.tev-sidebar{position:relative;width:auto;height:auto;padding:16px}.tev-logo-wrap{padding-bottom:12px}.tev-logo-wrap img{max-width:150px}.tev-nav{display:grid;grid-template-columns:1fr 1fr}.tev-side-footer{display:none}.tev-main{padding:18px 14px 45px}.tev-freshness{grid-template-columns:repeat(2,1fr)}.tev-grid-2,.tev-grid-3{grid-template-columns:1fr}.tev-grid-3 .tev-card:last-child{grid-column:auto}.tev-statusbar{align-items:flex-start;flex-direction:column}.tev-goal-meta{grid-template-columns:1fr}.tev-insight-row,.tev-alerts-grid{grid-template-columns:1fr}.tev-topbar h1{font-size:29px}.tev-income-grid,.tev-advisor-grid{grid-template-columns:1fr}.tev-advisor-head{grid-template-columns:38px 1fr}.tev-yoy{grid-column:1/-1;justify-self:start}.tev-income-split{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .tev-nav{grid-template-columns:1fr}.tev-controls{align-items:stretch}.tev-range{width:100%;overflow:auto}.tev-range button{flex:1}.tev-outline,.tev-refresh,.tev-lock{flex:1}.tev-kpi-grid.tev-kpi-5,.tev-kpi-grid.tev-kpi-4,.tev-kpi-grid:not(.tev-kpi-4):not(.tev-kpi-5),.tev-freshness{grid-template-columns:1fr}.tev-goal-head{display:block}.tev-goal-status{margin-top:8px}.tev-date-panel.open{flex-wrap:wrap;justify-content:flex-start}.tev-income-split,.tev-advisor-split,.tev-advisor-pipeline{grid-template-columns:1fr}
}
.tev-brand-fallback{display:none;color:#fff;font-size:17px;font-weight:750;letter-spacing:.03em;line-height:1.15}.tev-brand-fallback span{display:block;font-size:8px;letter-spacing:.22em;color:#73cec7;margin-top:4px}.tev-gate-fallback{color:var(--tev-navy);font-size:19px;margin:0 auto 18px}.tev-gate-fallback span{color:var(--tev-teal)}

.tev-rolling-section{margin:20px 0 8px}.tev-rolling-section .tev-attribution-note{margin-top:10px}.tev-pill.good,.tev-pill.warn{white-space:nowrap}


/* v2.9 executive-readability refinements */
.tev-statusbar-top{border-top:1px solid var(--tev-line);border-bottom:1px solid var(--tev-line);padding:8px 0;margin-bottom:14px;min-height:34px}
.tev-statusbar-top>div{width:100%;justify-content:flex-start}
.tev-source-footer{margin-top:30px;padding:20px 0 2px;border-top:1px solid var(--tev-line-strong)}
.tev-source-footer-head{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:10px}
.tev-source-footer-head h3{margin:3px 0 2px;color:var(--tev-navy);font-size:15px;letter-spacing:-.02em}
.tev-source-footer-head p{margin:0;color:var(--tev-muted);font-size:9.5px}
.tev-source-footer #tev-health-badges{max-width:58%;justify-content:flex-end}
.tev-source-footer .tev-freshness{margin:0;grid-template-columns:repeat(4,minmax(140px,1fr))}
.tev-source-footer .tev-fresh-item{background:rgba(255,255,255,.62);padding:7px 9px}
/* The top shell already names the page; remove repeated second page titles. */
.tev-tab>.tev-page-head:first-child{display:none}

.tev-revenue-pace-section{margin:18px 0 14px}
.tev-revenue-pace-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tev-revenue-pace-card{position:relative;background:#fff;border:1px solid var(--tev-line);border-radius:16px;padding:17px 18px;box-shadow:var(--tev-shadow);overflow:hidden}
.tev-revenue-pace-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--tev-teal)}
.tev-revenue-pace-card.owner:before{background:var(--tev-gold)}
.tev-revenue-pace-card>span{display:block;color:var(--tev-muted);font-size:10px;font-weight:750;margin-bottom:5px}
.tev-revenue-pace-card>strong{display:block;color:var(--tev-navy);font-size:29px;line-height:1;letter-spacing:-.04em;font-weight:740;font-variant-numeric:tabular-nums}
.tev-revenue-pace-card>small{display:block;color:var(--tev-muted-2);font-size:8.5px;margin:5px 0 12px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}
.tev-revenue-meta{display:grid;grid-template-columns:auto 1fr auto 1fr;gap:6px 8px;align-items:center;border-top:1px solid #eef1f3;padding-top:10px}
.tev-revenue-meta b{color:var(--tev-navy);font-size:12px;font-variant-numeric:tabular-nums}.tev-revenue-meta span{color:var(--tev-muted);font-size:8.5px}
.tev-income-agency-line{margin-top:10px;padding-top:9px;border-top:1px solid #edf0f2;color:var(--tev-muted);font-size:9px}.tev-income-agency-line strong{color:var(--tev-navy);font-size:10px}
.tev-compact-note{margin-top:8px;padding:8px 10px;background:#f7faf9;border-radius:9px;border:1px solid #e7efed}
.tev-attribution-note.quality-warn{background:var(--tev-amber-soft);border:1px solid #f0d9ae;color:#7b5a27}
.tev-health-note{margin:0 0 12px}

@media(max-width:1100px){.tev-source-footer .tev-freshness{grid-template-columns:repeat(2,1fr)}.tev-source-footer-head{align-items:flex-start}.tev-source-footer #tev-health-badges{max-width:none}}
@media(max-width:800px){.tev-revenue-pace-grid{grid-template-columns:1fr}.tev-source-footer-head{display:block}.tev-source-footer #tev-health-badges{justify-content:flex-start;margin-top:10px}.tev-revenue-meta{grid-template-columns:auto 1fr}}
@media(max-width:520px){.tev-source-footer .tev-freshness{grid-template-columns:1fr}}

/* v3.0 Executive Clarity */
.tev-explain-banner{margin:0 0 14px;padding:13px 15px;border-radius:12px;background:linear-gradient(135deg,#edf9f8,#f8fbfb);border:1px solid #d7efed;color:#496277;font-size:11px;line-height:1.55}
.tev-explain-banner strong{color:var(--tev-navy)}
.tev-action-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 12px}
.tev-action-row form{margin:0}.tev-action-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 13px;border:1px solid #d8e2e8;border-radius:9px;background:#fff;color:var(--tev-navy);font-size:9px;font-weight:800;text-decoration:none;cursor:pointer;box-shadow:0 2px 7px rgba(7,28,56,.05)}
.tev-action-button:hover{border-color:var(--tev-teal);color:var(--tev-teal)}.tev-action-button.primary{background:var(--tev-navy);border-color:var(--tev-navy);color:#fff}.tev-action-button.primary:hover{color:#fff;opacity:.92}
.tev-small-note{font-size:9px;color:var(--tev-muted);line-height:1.45}
.tev-advisor-primary.sales{background:linear-gradient(145deg,#effaf9,#fff);border-color:#dcefed}
.tev-advisor-goal{padding:10px;border:1px solid #edf1f3;border-radius:11px;background:#fbfcfd;margin-bottom:9px}.tev-advisor-goal>div:not(.tev-mini-progress){display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:5px}.tev-advisor-goal span{font-size:7.8px;color:var(--tev-muted)}.tev-advisor-goal b{font-size:10px;color:var(--tev-navy)}.tev-advisor-goal small{font-size:7.6px;color:var(--tev-muted);display:block;margin-top:4px}
.tev-mini-progress{height:6px;border-radius:99px;background:#edf1f3;overflow:hidden;margin-top:7px}.tev-mini-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--tev-teal),#62cac4)}
.tev-recommend-card{border-left:4px solid var(--tev-teal)}.tev-boost-decision{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;align-items:center;padding:12px;border-radius:12px;background:#f8fbfb}.tev-boost-decision.go{background:#eff9f4}.tev-boost-decision.hold{background:#fff9ef}.tev-decision-pill{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:8px;font-weight:900;letter-spacing:.08em;background:#dff4ea;color:#17684d}.tev-boost-decision.hold .tev-decision-pill{background:#fff0d4;color:#97651c}.tev-boost-decision h3{font-size:15px;color:var(--tev-navy);margin:7px 0 5px}.tev-boost-decision p{font-size:9px;color:var(--tev-muted);line-height:1.5;margin:4px 0}.tev-boost-math{border-left:1px solid #e5ecef;padding-left:15px;display:flex;flex-direction:column;gap:3px}.tev-boost-math strong{font-size:24px;color:var(--tev-navy)}.tev-boost-math span{font-size:8px;color:var(--tev-muted)}.tev-boost-math b{font-size:9px;color:var(--tev-navy);margin-top:3px}
.tev-score-list{display:flex;flex-direction:column;gap:10px}.tev-score-row>div{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--tev-muted);font-weight:700;margin-bottom:4px}.tev-score-row b{color:var(--tev-navy)}.tev-score-row>i{height:8px;display:block;background:#eef2f4;border-radius:99px;overflow:hidden}.tev-score-row>i>em{display:block;height:100%;background:linear-gradient(90deg,var(--tev-teal),#63c9c4);border-radius:inherit}
.tev-audit-section{margin-bottom:18px}.tev-period-heading p{margin:4px 0 0;font-size:9px;color:var(--tev-muted)}
@media(max-width:900px){.tev-boost-decision{grid-template-columns:1fr}.tev-boost-math{border-left:0;border-top:1px solid #e5ecef;padding:10px 0 0}}

/* v3.1 Owner Command Center */
.tev-card,.tev-kpi,.tev-income-card,.tev-advisor-card{border:1px solid #dde5ea!important;box-shadow:0 6px 20px rgba(7,28,56,.055)}
.tev-kpi small .tev-change,.tev-kpi-sub .tev-change{margin-left:5px}.tev-change{display:inline-flex;align-items:center;gap:2px;padding:3px 6px;border-radius:99px;font-size:7.5px;font-weight:850;white-space:nowrap}.tev-change.up{background:#eaf7f1;color:#187355}.tev-change.down{background:#fff0f1;color:#b94852}.tev-change.neutral{background:#f1f3f5;color:#7c8796}
.slug{display:block!important;color:#98a2b1!important;font-size:8px!important;margin-top:3px;line-height:1.25}.lead-row{background:#effaf7!important}.partner-row{box-shadow:inset 4px 0 0 #d8ad63}.lead-row.partner-row{background:linear-gradient(90deg,#effaf7,#fff9ed)!important}
.tev-income-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tev-income-grid-3 .tev-income-card>strong{font-size:30px}.tev-income-grid-3 .tev-income-split{grid-template-columns:1fr 1fr}
.tev-advisor-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.tev-advisor-metrics>div{padding:9px;border:1px solid #e7ecef;border-radius:10px;background:#fbfcfd;min-height:65px}.tev-advisor-metrics span{display:block;font-size:8px;color:var(--tev-muted)}.tev-advisor-metrics b{display:block;font-size:13px;color:var(--tev-navy);margin-top:3px}.tev-advisor-metrics small{display:block;font-size:7.5px;color:var(--tev-muted);margin-top:3px}.tev-advisor-primary{padding:13px;border:1px solid #dfe8ec;border-radius:13px;background:linear-gradient(145deg,#effaf9,#fff)}.tev-advisor-primary>span{font-size:8px;font-weight:800;color:var(--tev-muted)}.tev-advisor-primary>strong{display:block;font-size:29px;color:var(--tev-navy);line-height:1.05;margin:4px 0}.tev-advisor-primary>small{font-size:8px;color:var(--tev-muted)}
.tev-top-dest{border-top:1px solid #e7ecef;margin-top:11px;padding-top:10px}.tev-top-dest>span{font-size:8px;letter-spacing:.1em;color:#8a94a3;font-weight:850}.tev-top-dest>div{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 0;border-bottom:1px solid #edf1f3}.tev-top-dest>div:last-child{border-bottom:0}.tev-top-dest strong{font-size:10px;color:#34445c}.tev-top-dest b{font-size:11px;color:var(--tev-navy)}.tev-top-dest small{grid-column:1/-1;font-size:8px;color:#8b97a8}
.travel-status-grid{margin-bottom:12px}.travel-list{min-height:210px}.travel-list.returned{border-top:4px solid #7f64d9!important}.travel-list.current{border-top:4px solid #1fa7a3!important}.travel-list.upcoming{border-top:4px solid #d8ad63!important}.travel-person{display:flex;gap:9px;padding:8px 0;border-bottom:1px solid #edf1f3}.travel-person:last-child{border:0}.travel-icon{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#edf8f7;font-size:12px}.travel-person strong{display:block;color:var(--tev-navy);font-size:10px}.travel-person small{display:block;color:var(--tev-muted);font-size:8px;margin-top:2px}
.travel-timeline{overflow-x:auto;min-width:0}.travel-grid-head{display:grid;grid-template-columns:185px repeat(14,minmax(54px,1fr));min-width:980px;border-bottom:1px solid #dfe6ea}.travel-grid-head>div{padding:7px 4px;text-align:center;font-size:8px;color:var(--tev-muted);border-left:1px solid #edf1f3}.travel-grid-head>div:first-child{text-align:left;border:0}.travel-grid-head b,.travel-grid-head span{display:block}.travel-grid-head .today{background:#ecf9f7;color:#0e7772}.travel-grid-row{display:grid;grid-template-columns:185px 1fr;min-width:980px;align-items:stretch;border-bottom:1px solid #edf1f3}.travel-label{padding:9px 8px 9px 2px}.travel-label strong{display:block;font-size:9px;color:var(--tev-navy)}.travel-label small{display:block;font-size:7.5px;color:var(--tev-muted);margin-top:2px}.travel-days{display:grid;grid-template-columns:repeat(14,1fr);position:relative;min-height:43px}.travel-days>span{grid-row:1;border-left:1px solid #edf1f3}.travel-days>span.today{background:#f0fbfa}.travel-stay{grid-row:1;align-self:center;z-index:2;margin:8px 2px;border-radius:7px;padding:5px 6px;color:#fff;font-style:normal;font-size:7px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dest-a{background:#1fa7a3}.dest-b{background:#4e9fe6}.dest-c{background:#7f64d9}.dest-d{background:#d8ad63}.dest-e{background:#ef8e83}.dest-f{background:#1d8f68}.dest-g{background:#66758a}
.weather-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.weather-strip>div{text-align:center;padding:8px 3px;border-radius:10px;background:#f8fafb;border:1px solid #e9eef1}.weather-strip b,.weather-strip strong,.weather-strip small{display:block}.weather-strip b{font-size:8px;color:var(--tev-muted)}.weather-strip strong{font-size:13px;color:var(--tev-navy)}.weather-strip small{font-size:8px;color:#8c96a5}.wx-icon{display:block;font-size:17px;margin:4px 0}.tev-quote-card{text-align:center;background:linear-gradient(135deg,#071c38,#0d3953)!important}.travel-quote{font-size:17px;color:#fff;font-weight:650;font-style:italic;transition:opacity .3s}.travel-quote.fade{opacity:0}
.tev-decision-card{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border-radius:16px;padding:18px;margin-bottom:14px;border:1px solid #dfe7eb;background:#fff}.tev-decision-card.go{background:linear-gradient(135deg,#eaf8f2,#fff);border-left:5px solid #1d8f68}.tev-decision-card.hold{background:linear-gradient(135deg,#fff7e7,#fff);border-left:5px solid #d8ad63}.tev-decision-card h2{font-size:18px;margin:3px 0;color:var(--tev-navy)}.tev-decision-card p{font-size:9px;color:var(--tev-muted);line-height:1.5;margin:0}.decision-number{text-align:center;min-width:110px}.decision-number strong{display:block;font-size:27px;color:var(--tev-navy)}.decision-number span{font-size:8px;color:var(--tev-muted)}
.tev-journey{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.tev-journey>div{position:relative;padding:14px 8px;text-align:center;border-radius:12px;background:#f8fafb;border:1px solid #e8edf0}.tev-journey span{display:block;font-size:8px;color:var(--tev-muted)}.tev-journey strong{display:block;font-size:22px;color:var(--tev-navy);margin-top:4px}.tev-journey i{position:absolute;right:-10px;top:30%;font-size:18px;color:#aeb7c3;z-index:2}
.tev-stat.big strong{font-size:32px}.tev-stat .tev-change{margin-top:5px}.tev-score-row>i>b{display:block;height:100%;background:linear-gradient(90deg,var(--tev-teal),#63c9c4);border-radius:inherit}
.tev-button-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border-radius:9px;background:var(--tev-navy);color:#fff!important;text-decoration:none!important;font-size:9px;font-weight:800}.tev-button-link:hover{opacity:.9}
@media(max-width:1200px){.tev-income-grid-3{grid-template-columns:1fr 1fr}.tev-advisor-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.tev-income-grid-3{grid-template-columns:1fr}.tev-journey{grid-template-columns:1fr 1fr}.weather-strip{grid-template-columns:repeat(4,1fr)}.tev-decision-card{grid-template-columns:1fr}.tev-advisor-metrics{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.tev-advisor-metrics,.tev-journey{grid-template-columns:1fr}.weather-strip{grid-template-columns:repeat(2,1fr)}}


/* v3.1 Owner Command Center final refinements */
.tev-income-context{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:9px}
.tev-income-context>div{background:#fff;border:1px solid #e8edef;border-radius:9px;padding:8px;text-align:center}
.tev-income-context b{display:block;color:var(--tev-navy);font-size:11px;font-variant-numeric:tabular-nums}
.tev-income-context span{display:block;color:var(--tev-muted);font-size:7.5px;margin-top:2px}
.tev-income-year-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tev-year-tile{border:1px solid #dfe7eb;border-radius:14px;background:linear-gradient(145deg,#fff,#fbfcfd);padding:14px;box-shadow:0 4px 14px rgba(7,28,56,.035)}
.tev-year-tile>div:first-child{border-bottom:1px solid #e9eef1;padding-bottom:10px;margin-bottom:10px}
.tev-year-tile>div:first-child span{display:block;font-size:8px;letter-spacing:.08em;color:var(--tev-teal);font-weight:900}
.tev-year-tile>div:first-child b{display:block;font-size:25px;line-height:1.05;color:var(--tev-navy);margin:4px 0}
.tev-year-tile>div:first-child small{display:block;color:var(--tev-muted);font-size:8px}
.tev-year-tile-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.tev-year-tile-grid span{display:block;padding:7px;border:1px solid #edf1f3;border-radius:8px;color:var(--tev-muted);font-size:7.5px;background:#fafcfc}
.tev-year-tile-grid b{display:block;color:var(--tev-navy);font-size:10px;margin-bottom:2px}
.tev-mini-heading{margin:14px 0 7px;padding-top:10px;border-top:1px solid #e8edef;color:var(--tev-navy);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.tev-stat-list-inline{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}
.tev-stat-list-inline .tev-stat{border:1px solid #e8edef;border-radius:10px;background:#fbfcfd}
.tev-journey{grid-template-columns:repeat(6,1fr)}
#identity-health .tev-kpi{min-height:112px}
@media(max-width:1200px){.tev-income-year-grid{grid-template-columns:1fr 1fr}.tev-stat-list-inline{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.tev-income-year-grid{grid-template-columns:1fr}.tev-income-context{grid-template-columns:1fr 1fr}.tev-stat-list-inline{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.tev-income-context,.tev-year-tile-grid,.tev-stat-list-inline{grid-template-columns:1fr}}
/* v3.1 plain-English explainer copy inside decision cards/tables. */
.tev-card-explainer{margin:-2px 0 12px;padding:9px 11px;border-radius:10px;background:#f5faf9;border:1px solid #e1efec;color:var(--tev-muted);font-size:9px;line-height:1.5}

/* v3.1.1 refinements */
.tev-sidebar::-webkit-scrollbar{width:6px}.tev-sidebar::-webkit-scrollbar-thumb{background:rgba(114,206,199,.38);border-radius:99px}.tev-sidebar::-webkit-scrollbar-track{background:transparent}
.tev-weather-top{margin-top:0;margin-bottom:12px}
.tev-ad-decision-copy{min-width:0;flex:1}.tev-winning-post{margin:10px 0 9px;padding:11px 13px;border:1px solid rgba(8,33,61,.10);border-radius:11px;background:rgba(255,255,255,.72)}.tev-winning-post>span{display:block;font-size:8px;letter-spacing:.12em;font-weight:850;color:var(--tev-teal);margin-bottom:4px}.tev-winning-post>strong{display:block;color:var(--tev-navy);font-size:13px;line-height:1.35;overflow-wrap:anywhere}.tev-winning-post>small{display:block;color:var(--tev-muted);font-size:9.5px;line-height:1.45;margin-top:4px}.tev-post-link{display:inline-flex;margin-top:7px;padding:6px 9px;border-radius:8px;background:var(--tev-navy);color:#fff!important;text-decoration:none!important;font-size:9px;font-weight:800}.tev-post-link:hover{opacity:.9}


/* v3.2 Decision Intelligence — plain-English, luxury executive readability */
.tev-kpi-dual{position:relative;padding-bottom:9px}
.tev-kpi-dual>strong{margin-bottom:2px}
.tev-kpi-secondary{width:100%;margin-top:auto;padding:9px 10px 2px;border-top:1px solid #e8edf0;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--tev-muted);font-size:8.5px}
.tev-kpi-secondary span{font-weight:700}
.tev-kpi-secondary b{font-size:14px;color:var(--tev-navy);font-variant-numeric:tabular-nums}
.tev-insight-strip{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:-2px 0 16px}
.tev-insight-strip>div{display:grid;grid-template-columns:minmax(165px,.8fr) auto minmax(250px,1.5fr);align-items:center;gap:12px;background:linear-gradient(145deg,#fff,#fbfcfc);border:1px solid #e2e8ec;border-radius:12px;padding:11px 14px;box-shadow:0 4px 14px rgba(7,28,56,.025)}
.tev-insight-strip span{font-size:8.5px;letter-spacing:.07em;text-transform:uppercase;font-weight:850;color:#536174}
.tev-insight-strip strong{font-size:19px;color:var(--tev-navy);font-variant-numeric:tabular-nums;white-space:nowrap}
.tev-insight-strip small{font-size:8.5px;color:var(--tev-muted);line-height:1.4}
.tev-explain-banner{margin:0 0 12px;padding:11px 13px;border:1px solid #dfeae8;border-left:3px solid var(--tev-teal);border-radius:10px;background:linear-gradient(90deg,#f2faf8,#fff);color:var(--tev-muted);font-size:10px;line-height:1.55}
.tev-explain-banner strong,.tev-explain-banner b{color:var(--tev-navy)}
.tev-stat-help{display:block!important;margin-top:6px!important;padding-top:6px;border-top:1px solid #e8edef;color:#748194!important;font-size:8.5px!important;line-height:1.45!important;font-weight:500!important}
.tev-stat-help b{color:var(--tev-navy);font-weight:800}
.tev-signal-guide{background:#fbfcfc}
.tev-signal-guide>strong{font-size:12px}
.tev-action-cell{min-width:210px;color:#506077!important;font-size:9.5px}
#chart-lead-weeks{height:315px!important;max-height:315px}
#table-lead-source-conversion table,#table-lead-destination-conversion table{min-width:980px}
#table-lead-source-conversion td:first-child,#table-lead-destination-conversion td:first-child{min-width:180px}
.travel-reservation,.travel-label small+small{color:#7b8796!important;font-variant-numeric:tabular-nums}
.travel-reservation:before{content:"";display:inline}
#seo-snapshot .tev-stat{padding:12px 13px}
#seo-snapshot .tev-stat strong{font-size:16px}
#seo-snapshot .tev-change{margin-top:6px}
#lead-forecast .tev-stat,#lead-pipeline-snapshot .tev-stat{padding:12px 13px}
.tev-card:has(#chart-lead-weeks){padding-bottom:20px}
.tev-table th:nth-child(n+2){text-align:right}
.tev-table th:first-child{text-align:left}
#table-clarity th:last-child{text-align:left}
#table-clarity td:last-child{text-align:left}
@media(max-width:1200px){
 .tev-insight-strip{grid-template-columns:1fr}
 .tev-insight-strip>div{grid-template-columns:180px auto 1fr}
}
@media(max-width:800px){
 .tev-insight-strip>div{grid-template-columns:1fr}
 .tev-insight-strip strong{font-size:22px}
 #chart-lead-weeks{height:290px!important;max-height:290px}
}

/* v3.3 Growth & Conversion Intelligence */
#chart-growth-demand,#chart-growth-sales{height:330px!important;max-height:330px}
#table-growth-scenarios table{min-width:980px}
#table-growth-scenarios td:nth-child(n+3),#table-growth-scenarios th:nth-child(n+3){text-align:right}
#table-opportunity-write td:first-child,#table-opportunity-refresh td:first-child{min-width:230px}
#table-opportunity-write td:last-child,#table-opportunity-refresh td:last-child{min-width:240px;text-align:left}
#table-opportunity-write th:last-child,#table-opportunity-refresh th:last-child{text-align:left}
#partner-confidence-note strong,#growth-confidence strong{letter-spacing:.02em}
#partner-forecast .tev-stat,#partner-economics .tev-stat,#growth-pipeline .tev-stat,#growth-drivers .tev-stat{padding:12px 13px}
@media(max-width:800px){#chart-growth-demand,#chart-growth-sales{height:290px!important;max-height:290px}}


/* v3.3.1 Executive Refinement — planning-fee bubbles, true funnel, action-first site health */
.tev-income-fee-bubble{display:inline-flex;align-items:center;margin:9px 0 3px;padding:5px 9px;border-radius:999px;background:#f7f1e6;border:1px solid #ead7b3;color:#725b2e;font-size:9px;font-weight:850;letter-spacing:.02em}
.tev-mini-fee-bubble{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:999px;background:#f7f1e6;border:1px solid #ead7b3;color:#725b2e;font-style:normal;font-size:8px;font-weight:800}
.tev-income-split small{display:block;margin-top:2px;color:var(--tev-muted);font-size:7.5px;font-weight:500}

.tev-funnel{min-height:305px;display:flex;align-items:center;justify-content:center;padding:8px 0 2px}
.tev-funnel-stack{width:100%;display:flex;flex-direction:column;align-items:center}
.tev-funnel-stage{width:var(--funnel-width);min-width:260px;position:relative;clip-path:polygon(4% 0,96% 0,88% 100%,12% 100%);padding:10px 34px;text-align:center;border:1px solid rgba(7,28,56,.08);box-shadow:0 5px 16px rgba(7,28,56,.045)}
.tev-funnel-stage>div{position:relative;z-index:1;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:12px;row-gap:2px}
.tev-funnel-stage span{text-align:left;font-size:9px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;color:var(--tev-navy)}
.tev-funnel-stage strong{font-size:21px;line-height:1;color:var(--tev-navy);font-variant-numeric:tabular-nums}
.tev-funnel-stage small{grid-column:1/-1;text-align:left;color:#657286;font-size:8px}
.tev-funnel-stage.users{background:linear-gradient(90deg,#f4f8fb,#edf5f7)}
.tev-funnel-stage.clicks{background:linear-gradient(90deg,#f7f9fb,#f5f1e8)}
.tev-funnel-stage.starts{background:linear-gradient(90deg,#f7f4ec,#f7f1e5)}
.tev-funnel-stage.leads{background:linear-gradient(90deg,#eef8f6,#e6f4f1)}
.tev-funnel-arrow{height:14px;line-height:14px;color:#a6b0bb;font-size:12px;font-weight:900}

.tev-audit-brief{min-height:270px}
.tev-audit-brief-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:14px}
.tev-audit-brief-grid>.tev-mini-heading{margin-top:0}
.tev-audit-action{border:1px solid #e4e9ed;border-left:4px solid #d8ad63;border-radius:11px;background:#fff;padding:10px 11px;margin-bottom:8px}
.tev-audit-action>span{display:block;font-size:7.5px;letter-spacing:.1em;font-weight:900;color:#8a6b30;margin-bottom:2px}
.tev-audit-action>strong{display:block;color:var(--tev-navy);font-size:11px;text-transform:capitalize}
.tev-audit-action>b{display:block;color:#566476;font-size:9px;margin-top:2px}
.tev-audit-action>small{display:block;color:var(--tev-muted);font-size:8px;line-height:1.4;margin-top:4px}
.tev-audit-action.bad{border-left-color:#d5525e;background:#fffafa}
.tev-audit-action.bad>span{color:#a33b47}
.tev-audit-action.warn{border-left-color:#d8ad63;background:#fffdf8}
.tev-audit-action.good{border-left-color:#1d8f68;background:#f7fcfa}
.tev-audit-action.good>span{color:#1d7357}
.tev-audit-good{border:1px solid #dfeae6;border-radius:11px;background:#f8fcfa;padding:4px 10px}
.tev-audit-good-row,.tev-audit-watch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 2px;border-bottom:1px solid #e7eeeb}
.tev-audit-good-row:last-child,.tev-audit-watch-row:last-child{border-bottom:0}
.tev-audit-good-row span,.tev-audit-watch-row span{font-size:8.5px;color:#536174;text-transform:capitalize}
.tev-audit-good-row strong{font-size:10px;color:#1d7357}
.tev-audit-watch{border:1px solid #ece8dc;border-radius:11px;background:#fffdf8;padding:4px 10px}
.tev-audit-watch-row b{font-size:8.5px;color:#866e3c}
.tev-audit-watch-heading{margin-top:12px!important}

@media(max-width:900px){
 .tev-audit-brief-grid{grid-template-columns:1fr}
 .tev-funnel-stage{min-width:220px}
}
@media(max-width:520px){
 .tev-funnel-stage{min-width:0;padding-left:24px;padding-right:24px}
 .tev-funnel-stage>div{grid-template-columns:1fr}
 .tev-funnel-stage span,.tev-funnel-stage small{text-align:center}
 .tev-funnel-stage strong{margin-top:3px}
}
