﻿* {
  box-sizing: border-box;
}

/* ── Start page visual parity: header + statistics cards ───────────── */
:root {
  --premium-bg:#f6f8f4;
  --premium-soft:#fbfcf8;
  --premium-green:#0f4f38;
  --premium-green-2:#176849;
  --premium-green-soft:#e8f4ed;
  --premium-gold:#c7a758;
  --premium-gold-soft:#fff8e6;
  --premium-text:#13231b;
  --premium-muted:#65756c;
  --premium-line:#e2e9df;
  --premium-shadow:0 18px 48px rgba(26,54,40,.11);
  --premium-shadow-soft:0 10px 26px rgba(26,54,40,.08);
}

body {
  color: var(--premium-text);
  background:
    radial-gradient(circle at top left, rgba(199,167,88,.16), transparent 34rem),
    linear-gradient(180deg,#fbfcf8 0%,var(--premium-bg) 42%,#eef5ef 100%);
}

.top-bar {
  margin: 0;
  padding: 10px 24px;
  background: rgba(255,255,255,.9);
  color: var(--premium-text);
  border-bottom: 1px solid rgba(226,233,223,.86);
  box-shadow: 0 12px 30px rgba(15,79,56,.06);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-logo-wrap {
  width: 52px;
  height: 52px;
  padding: 5px;
  border-radius: 16px;
  background: linear-gradient(145deg,#fff,#edf6ef);
  border: 1px solid var(--premium-line);
  box-shadow: 0 8px 24px rgba(15,79,56,.12);
}

.brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  color: var(--premium-text);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-text span {
  color: var(--premium-muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.stats-nav {
  margin-left: auto;
  gap: 8px;
}

.stats-nav a,
.stat-select,
.ghost-btn {
  min-height: 40px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: #fff;
  color: var(--premium-green);
  box-shadow: 0 8px 18px rgba(15,79,56,.06);
  font-weight: 850;
}

.stats-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
}

.stats-nav a.active,
.stats-nav a:hover {
  color: var(--premium-green);
  background: var(--premium-green-soft);
  border-color: rgba(15,79,56,.18);
}

.stats-kicker {
  color: var(--premium-muted);
  letter-spacing: .04em;
}

.hero-grid {
  gap: 12px;
}

.metric {
  min-height: 128px;
  border-radius: 20px;
  padding: 16px;
  color: var(--premium-text);
  background: linear-gradient(180deg,#fff,var(--premium-soft))!important;
  border: 1px solid var(--premium-line);
  box-shadow: var(--premium-shadow-soft);
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--premium-green);
}

.metric::after {
  width: 92px;
  height: 92px;
  inset: auto -28px -32px auto;
  background: rgba(15,79,56,.06);
}

.metric-label {
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 900;
  opacity: 1;
}

.metric-value {
  color: var(--premium-text);
  font-size: 40px;
  font-weight: 950;
}

.metric-foot {
  color: var(--premium-muted);
  opacity: 1;
  font-weight: 750;
}

.metric.green::before,
.metric.teal::before { background: var(--premium-green); }
.metric.gold::before { background: var(--premium-gold); }
.metric.red::before,
.metric.rose::before { background: #b45309; }
.metric.indigo::before { background: var(--premium-green-2); }
.metric.orange::before { background: var(--premium-gold); }

.panel {
  border-color: rgba(226,233,223,.92);
  border-radius: 20px;
  box-shadow: var(--premium-shadow-soft);
}

.panel-title {
  color: var(--premium-text);
  letter-spacing: 0;
}

.panel-sub {
  color: var(--premium-muted);
}

.stats-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}

.stats-tab {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--premium-green);
  padding: 10px 18px;
  box-shadow: 0 8px 20px rgba(15,79,56,.06);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.stats-tab.active {
  background: var(--premium-green);
  border-color: var(--premium-green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(15,79,56,.18);
}

.stats-tab-panel[hidden] {
  display: none;
}

.stats-overview-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stats-link-card,
.stats-team-panel {
  border: 1px solid rgba(226,233,223,.92);
  border-radius: 20px;
  background: linear-gradient(180deg,#fff,var(--premium-soft));
  box-shadow: var(--premium-shadow-soft);
}

.stats-link-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  min-height: 180px;
}

.stats-link-card span {
  color: var(--premium-green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.stats-link-card h3 {
  margin: 0;
  color: var(--premium-text);
  font-size: 18px;
  line-height: 1.3;
}

.stats-link-card .ghost-btn {
  justify-self: start;
}

.stats-team-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.stats-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  border-radius: 999px;
  background: var(--premium-green);
  color: #fff;
  padding: 11px 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15,79,56,.18);
}

@media (max-width: 980px) {
  .top-bar {
    padding: 8px 12px;
    gap: 10px;
  }
  .stats-nav a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .stats-overview-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .top-bar {
    align-items: center;
    flex-wrap: nowrap;
    padding: 8px 10px;
  }
  .brand {
    flex: 1 1 auto;
    width: auto;
    justify-content: flex-start;
  }
  .brand-logo-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .brand-text strong {
    font-size: 15px;
  }

  .stats-tabs {
    margin: 0 -2px;
    padding-bottom: 12px;
  }

  .stats-tab {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .stats-link-card,
  .stats-team-panel {
    border-radius: 16px;
  }

  .stats-link-card {
    min-height: 0;
    padding: 16px;
  }

  .stats-cta {
    width: 100%;
  }
  .brand-text span {
    font-size: 10px;
  }
  .stats-nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 48vw;
    padding-bottom: 2px;
  }
  .stats-nav a {
    min-height: 38px;
    padding: 7px 10px;
  }
  .stats-main {
    padding: 12px;
  }
  .hero-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
  }
  .metric {
    min-height: 104px;
    border-radius: 18px;
    padding: 12px;
  }
  .metric-value {
    font-size: 30px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-foot {
    font-size: 10px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #172033;
}

a {
  color: inherit;
  text-decoration: none;
}

.stats-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background: #0d4f6f;
  color: #fff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 4;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-wrap {
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.brand-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.stats-nav {
  display: flex;
  gap: 8px;
}

.stats-nav a {
  padding: 8px 16px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .82);
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, .12);
  white-space: nowrap;
}

.stats-nav a.active,
.stats-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.stats-main {
  min-width: 0;
  padding: 24px;
}

.stats-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.stats-kicker {
  margin: 0 0 6px;
  color: #49728a;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.stats-sub {
  margin: 10px 0 0;
  color: #5e6d80;
  max-width: 660px;
  line-height: 1.5;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-select,
.ghost-btn {
  min-height: 42px;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-weight: 800;
  padding: 0 12px;
  box-shadow: 0 8px 18px rgba(18, 41, 67, .06);
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-grid,
.content-grid {
  display: grid;
  gap: 16px;
}

.hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric {
  min-height: 138px;
  border-radius: 8px;
  padding: 18px;
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 34, 54, .16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
}

.metric.blue { background: linear-gradient(135deg, #2666ee, #69a7ff); }
.metric.green { background: linear-gradient(135deg, #0f9f86, #46cf98); }
.metric.gold { background: linear-gradient(135deg, #e6a51f, #ffd35a); }
.metric.red { background: linear-gradient(135deg, #e33165, #ff6b88); }
.metric.indigo { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.metric.teal { background: linear-gradient(135deg, #0891b2, #22d3ee); }

.metric-label {
  font-size: 13px;
  font-weight: 850;
  opacity: .92;
}

.metric-value {
  font-size: 42px;
  line-height: .95;
  font-weight: 950;
}

.metric-foot {
  font-size: 12px;
  opacity: .9;
}

.content-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(18, 41, 67, .07);
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 14px;
}

.panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 950;
}

.panel-sub {
  color: #718096;
  font-size: 13px;
}

.bar-chart {
  min-height: 255px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  border-bottom: 1px solid #dbe5ef;
  padding: 18px 4px 8px;
}

.day-bar {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.stack {
  width: 100%;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
}

.stack span {
  display: block;
  min-height: 4px;
  border-radius: 5px 5px 2px 2px;
}

.stack .new { background: #3b82f6; }
.stack .contacted { background: #10b981; }
.stack .activity { background: #f59e0b; }

.day-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini {
  background: #f8fafc;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  padding: 14px;
}

.mini strong {
  display: block;
  font-size: 24px;
  margin-bottom: 3px;
}

.mini span {
  color: #64748b;
  font-size: 13px;
  font-weight: 750;
}

.side-stack {
  display: grid;
  gap: 16px;
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-row {
  display: grid;
  gap: 6px;
}

.progress-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #34445a;
  font-weight: 850;
  font-size: 13px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f9f86, #3b82f6);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #fbfdff;
}

.activity-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f3ff;
}

.activity-name {
  font-weight: 950;
}

.activity-detail {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.empty-state,
.loading {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  padding: 20px;
  text-align: center;
  font-weight: 750;
}

@media (max-width: 980px) {
  .top-bar {
    padding: 8px 12px;
    gap: 10px;
  }

  .stats-nav a {
    padding: 6px 10px;
    font-size: 13px;
  }

  .hero-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-grid,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .stats-team-section .team-stats {
    display: none;
  }

  .top-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .brand {
    order: -1;
    width: auto;
    justify-content: flex-start;
  }
  .brand-logo-wrap {
    padding: 5px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .stats-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .stats-main {
    padding: 12px;
  }

  .stats-top,
  .top-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .content-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .bar-chart {
    gap: 7px;
  }

  .metric {
    min-height: 90px;
    padding: 10px;
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric-foot {
    font-size: 10px;
  }

  .cal-grid {
    gap: 3px;
  }

  .cal-cell {
    min-height: 58px;
    padding: 4px 3px;
  }

  .cal-event-name {
    font-size: 10px;
  }
}

/* ── Calendar ── */

.cal-panel {
  overflow-x: auto;
}

.cal-nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cal-nav-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  background: #fff;
  color: #172033;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.cal-nav-btn:hover {
  background: #f0f5fb;
}

.cal-month-label {
  font-weight: 800;
  font-size: 15px;
  color: #172033;
  min-width: 130px;
  text-align: center;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 4px;
}

.cal-wday {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-cell {
  min-height: 72px;
  border: 1px solid #e5edf5;
  border-radius: 6px;
  padding: 5px 4px;
  background: #fafcff;
  vertical-align: top;
}

.cal-cell.cal-empty {
  background: transparent;
  border-color: transparent;
}

.cal-cell.cal-today {
  border-color: #3b82f6;
  background: #eff6ff;
}

.cal-cell.cal-has-events {
  background: #f0fdf4;
  border-color: #86efac;
}

.cal-cell.cal-today.cal-has-events {
  background: #ecfdf5;
  border-color: #3b82f6;
}

.cal-date {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 3px;
  line-height: 1;
}

.cal-today .cal-date {
  color: #2563eb;
}

.cal-event-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 2px;
}

.cal-event-name {
  font-size: 11px;
  font-weight: 700;
  color: #166534;
  background: #dcfce7;
  border-radius: 3px;
  padding: 1px 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.cal-gcal-btn {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: #4285f4;
  color: #fff;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  text-decoration: none;
  line-height: 1;
}

.cal-gcal-btn:hover {
  background: #1a73e8;
}

/* cells with events show pointer, no G button in cell anymore */
.cal-cell.cal-has-events {
  cursor: pointer;
}

.cal-cell.cal-has-events:hover {
  border-color: #4ade80;
  background: #dcfce7;
}

/* ── Calendar popup ── */

.cal-popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cal-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 34, 54, .5);
}

.cal-popup-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(15, 34, 54, .28);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.cal-popup-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0d4f6f;
  color: #fff;
  flex-shrink: 0;
}

.cal-popup-head strong {
  font-size: 15px;
  font-weight: 900;
  text-transform: capitalize;
}

.cal-popup-close {
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1;
}

.cal-popup-close:hover {
  background: rgba(255,255,255,.3);
}

.cal-popup-list {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.cal-popup-item {
  border: 1px solid #e5edf5;
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}

.cal-popup-name {
  font-weight: 900;
  font-size: 16px;
  color: #172033;
  margin-bottom: 8px;
}

.cal-popup-row {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #4a5568;
  margin-bottom: 4px;
  align-items: baseline;
}

.cal-popup-row-label {
  font-weight: 750;
  color: #64748b;
  flex-shrink: 0;
  min-width: 90px;
}

.cal-popup-row-val {
  color: #1e293b;
}

.cal-popup-gcal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  background: #4285f4;
  color: #fff;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.cal-popup-gcal:hover {
  background: #1a73e8;
}

.cal-popup-gcal-icon {
  font-size: 15px;
  font-weight: 900;
  background: #fff;
  color: #4285f4;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  line-height: 1;
  font-style: normal;
}

.cal-popup-name-link {
  cursor: pointer;
  color: #1d4ed8;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-popup-name-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

.cal-popup-goto-arrow {
  font-size: 14px;
  opacity: .7;
}

.cal-reschedule-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  width: 100%;
}

.cal-reschedule-btn:hover {
  background: #e0f2fe;
}

.cal-reschedule-form {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.cal-reschedule-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d6e0ea;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 13px;
  background: #fff;
  color: #172033;
}

.cal-reschedule-save {
  background: #0d4f6f;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.cal-reschedule-save:hover {
  background: #0a3e57;
}

.metric.rose { background: linear-gradient(135deg, #be123c, #fb7185); }
.metric.orange { background: linear-gradient(135deg, #c2410c, #fb923c); }

/* ── LR Neo panel ─────────────────────────────────────────────────────────── */
.lrneo-panel { padding: 20px 24px; }

.lrneo-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.lrneo-head-left  { display: flex; align-items: center; gap: 10px; }
.lrneo-head-right { display: flex; align-items: center; gap: 8px; }
.lrneo-logo-box {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #dbe7df;
  border-radius: 8px;
  background: #fff;
  overflow: visible;
}
.lrneo-logo {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}
.lrneo-badge { font-size: 12px; font-weight: 700; color: #16a34a; background: #dcfce7; border-radius: 20px; padding: 2px 10px; }
.lrneo-refresh-note {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.lrneo-hint  { color: #64748b; font-size: 14px; margin: 0 0 14px; }
.lrneo-form  { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.lrneo-connect-nudge {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  margin: 0 0 16px;
  padding: 20px;
  border: 1px solid rgba(217, 168, 47, .38);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,248,226,.92)),
    radial-gradient(circle at 92% 12%, rgba(34, 103, 168, .16), transparent 34%);
  box-shadow: 0 18px 44px rgba(20, 48, 35, .1);
}
.lrneo-connect-nudge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f6b4d, #d9a82f, #2267a8);
}
.lrneo-nudge-copy {
  position: relative;
  z-index: 1;
}
.lrneo-nudge-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: #6b4c08;
  background: rgba(217, 168, 47, .18);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.lrneo-nudge-copy h3 {
  margin: 11px 0 8px;
  color: #123321;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.12;
}
.lrneo-nudge-copy p {
  max-width: 680px;
  margin: 0;
  color: #53665a;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 750;
}
.lrneo-nudge-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.lrneo-nudge-metrics span {
  min-height: 82px;
  padding: 13px;
  border: 1px solid rgba(205, 220, 211, .82);
  border-radius: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 24px rgba(18, 55, 37, .06);
}
.lrneo-nudge-metrics b {
  display: block;
  color: #0f6b4d;
  font-size: 25px;
  line-height: 1;
}
.lrneo-nudge-metrics small {
  display: block;
  margin-top: 7px;
  color: #617266;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}
.lrneo-nudge-unlocks {
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
.lrneo-nudge-unlocks strong {
  color: #173827;
  font-size: 13px;
  margin-right: 2px;
}
.lrneo-nudge-unlocks i {
  border-radius: 999px;
  padding: 7px 10px;
  color: #174633;
  background: rgba(15, 107, 77, .1);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}
.stats-help-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #d7e2ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #0d4f6f;
  font-weight: 950;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(15, 79, 56, .08);
}
.stats-help-btn:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
}
.stats-help-btn-inline {
  vertical-align: middle;
  margin-left: 8px;
}
.lrneo-preview {
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248,250,252,.92), rgba(241,245,249,.72));
  opacity: .62;
  filter: grayscale(.25);
  pointer-events: none;
}
.lrneo-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 12px;
}
.lrneo-preview-head strong {
  color: #94a3b8;
  text-transform: uppercase;
  font-size: 11px;
}
.lrneo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.lrneo-preview-grid span,
.lrneo-preview-table i {
  display: block;
  border-radius: 10px;
  background: linear-gradient(90deg, #dbeafe, #ecfdf5);
}
.lrneo-preview-grid span { height: 54px; }
.lrneo-preview-table { display: grid; gap: 8px; }
.lrneo-preview-table i { height: 22px; }
.lrneo-input {
  flex: 1 1 200px; padding: 9px 12px; border: 1.5px solid #cbd5e1;
  border-radius: 8px; font-size: 14px; outline: none; color: #172033;
  background: #f8fafc;
}
.lrneo-input:focus { border-color: #3b82f6; background: #fff; }
.lrneo-error { color: #dc2626; font-size: 13px; margin-top: 8px; padding: 8px 12px; background: #fef2f2; border-radius: 8px; }

.lrneo-btn {
  padding: 9px 18px; border: none; border-radius: 8px; font-size: 14px;
  font-weight: 700; cursor: pointer; transition: opacity .15s;
}
.lrneo-btn:disabled { opacity: .55; cursor: not-allowed; }
.lrneo-btn-primary    { background: #0d4f6f; color: #fff; }
.lrneo-btn-primary:hover:not(:disabled) { background: #0a3e57; }
.lrneo-btn-refresh    { background: #e0f2fe; color: #0369a1; }
.lrneo-btn-refresh:hover:not(:disabled) { background: #bae6fd; }
.lrneo-btn-disconnect { background: #fee2e2; color: #b91c1c; font-size: 13px; }
.lrneo-btn-disconnect:hover:not(:disabled) { background: #fecaca; }

@media (max-width: 600px) {
  .lrneo-connect-nudge {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 18px;
  }
  .lrneo-nudge-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .lrneo-nudge-metrics span {
    min-height: 76px;
  }
  .lrneo-head-left {
    flex-wrap: wrap;
  }
  .lrneo-refresh-note {
    max-width: 100%;
    white-space: normal;
  }
  .lrneo-head-right {
    width: 100%;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }
  .lrneo-head-right .lrneo-snap-age {
    max-width: 100%;
    text-align: right;
  }
  .lrneo-head-right .lrneo-btn {
    padding: 7px 11px;
    font-size: 12px;
    max-width: 150px;
    white-space: normal;
  }
  .lrneo-head-right .lrneo-btn-disconnect {
    font-size: 11px;
    max-width: 130px;
  }
}

.lrneo-snap-age {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 4px 10px;
  max-width: min(680px, 100%);
  white-space: normal;
  align-self: center;
}
.lrneo-snap-age.fresh  { color: #15803d; background: #dcfce7; }
.lrneo-snap-age.stale  { color: #92400e; background: #fef3c7; }
.lrneo-snap-age.scraping { color: #0369a1; background: #e0f2fe; }

.lrneo-neo-frame {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 #f7f7f7;
}

.lrneo-neo-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 330px 48px;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 5px 0 12px 0;
  background: #fafafa;
  border-bottom: 1px solid #e5e5e5;
}

.lrneo-neo-search,
.lrneo-neo-period {
  height: 42px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e7e7e7;
  color: #5b4c45;
  font-size: 18px;
}

.lrneo-neo-search {
  margin-left: 0;
  padding: 0 16px;
  gap: 14px;
}

.lrneo-neo-period {
  justify-content: space-between;
  padding: 0 10px 0 12px;
  color: #20133a;
  font-size: 19px;
}

.lrneo-search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #6b7280;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.lrneo-search-icon:after {
  content: "";
  width: 8px;
  height: 2px;
  background: #6b7280;
  position: absolute;
  right: -6px;
  bottom: -4px;
  transform: rotate(45deg);
  transform-origin: left center;
}

.lrneo-calendar-icon {
  width: 17px;
  height: 17px;
  border: 2px solid #4b5563;
  position: relative;
  flex: 0 0 auto;
}

.lrneo-calendar-icon:before,
.lrneo-calendar-icon:after {
  content: "";
  position: absolute;
  top: -4px;
  width: 3px;
  height: 6px;
  background: #4b5563;
}

.lrneo-calendar-icon:before { left: 3px; }
.lrneo-calendar-icon:after { right: 3px; }

.lrneo-neo-back {
  width: 17px;
  height: 17px;
  border-left: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: rotate(45deg);
  justify-self: center;
}

.lrneo-table-wrap {
  overflow-x: auto;
  border: 0;
  border-radius: 0;
}

.lrneo-summary-wrap {
  border-bottom: 0;
  overflow: hidden;
}

.lrneo-table {
  width: 100%;
  min-width: 1210px;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #172033;
}

.lrneo-table thead th {
  height: 39px;
  background: #fff;
  color: #172033;
  font-weight: 400;
  padding: 0 9px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid #e5e7eb;
  border-top: 0;
}

.lrneo-table thead th.lrneo-sort-active {
  border-bottom: 3px solid #16a34a;
}

.lrneo-table tbody tr:nth-child(even) { background: #f5f5f5; }
.lrneo-table tbody tr:nth-child(odd) { background: #fff; }
.lrneo-table tbody tr:hover { background: #e9e9e9; }
.lrneo-table tbody tr.lrneo-row-self { background: #fff !important; }

.lrneo-table td {
  height: 40px;
  padding: 0 9px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #eeeeee;
  color: #172033;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.lrneo-table th:nth-child(1), .lrneo-table td:nth-child(1) { width: 130px; }
.lrneo-table th:nth-child(2), .lrneo-table td:nth-child(2) { width: 220px; }
.lrneo-table th:nth-child(3), .lrneo-table td:nth-child(3) { width: 170px; }
.lrneo-table th:nth-child(4), .lrneo-table td:nth-child(4) { width: 128px; }
.lrneo-table th:nth-child(5), .lrneo-table td:nth-child(5) { width: 170px; }
.lrneo-table th:nth-child(6), .lrneo-table td:nth-child(6) { width: 128px; }
.lrneo-table th:nth-child(7), .lrneo-table td:nth-child(7) { width: 128px; }
.lrneo-table th:nth-child(8), .lrneo-table td:nth-child(8) { width: 128px; }
.lrneo-table th:nth-child(9), .lrneo-table td:nth-child(9) { width: 290px; }

.lrneo-check-box {
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 1.5px solid #333;
  border-radius: 2px;
  background: #fff;
  vertical-align: middle;
}

.lrneo-pin {
  display: inline-block;
  width: 4px;
  height: 26px;
  border: 2px solid #c7c7c7;
  border-radius: 6px;
  background: transparent;
}

.lrneo-pin-blue { border-color: #32a9e8; background: #32a9e8; }
.lrneo-pin-yellow { border-color: #f3b300; background: #f3b300; }
.lrneo-pin-outline { border-color: #32a9e8; background: transparent; }

.lrneo-head-icon {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}

.lrneo-head-tree {
  width: 16px;
  height: 16px;
}

.lrneo-head-tree:before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 5px;
  height: 5px;
  background: #111;
  box-shadow: -5px 10px 0 #111, 5px 10px 0 #111;
}

.lrneo-head-tree:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 10px;
  height: 7px;
  border-left: 2px solid #111;
  border-right: 2px solid #111;
  border-top: 2px solid #111;
}

.lrneo-head-dots {
  width: 20px;
  height: 20px;
  background:
    radial-gradient(circle at 5px 5px, #fff 0 3px, #777 3.6px 4.5px, transparent 4.8px),
    radial-gradient(circle at 15px 5px, #fff 0 3px, #777 3.6px 4.5px, transparent 4.8px),
    radial-gradient(circle at 5px 15px, #fff 0 3px, #777 3.6px 4.5px, transparent 4.8px),
    radial-gradient(circle at 15px 15px, #fff 0 3px, #777 3.6px 4.5px, transparent 4.8px);
}

.lrneo-scroll-rail {
  height: 21px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}

.lrneo-scroll-rail:before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid #8f8f8f;
}

.lrneo-scroll-rail span {
  display: block;
  height: 12px;
  width: calc(100% - 124px);
  margin-left: 29px;
  position: relative;
  top: 5px;
  border-radius: 8px;
  background: #8d8d8d;
}

.lrneo-psz {
  font-family: "Courier New", monospace;
  color: #19996b !important;
  font-size: 14px;
}

.lrneo-name { font-weight: 400; }
.lrneo-num { text-align: left; font-variant-numeric: tabular-nums; }
.lrneo-total { color: #172033 !important; font-weight: 400 !important; }
.lrneo-date { text-align: left; font-variant-numeric: tabular-nums; }
.lrneo-empty { text-align: center; color: #94a3b8; padding: 24px !important; }
.stats-help-modal[hidden] { display: none !important; }
.stats-help-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(8px);
}
.stats-help-card {
  width: min(460px, 100%);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .22);
  border: 1px solid #e2e8f0;
  padding: 18px;
}
.stats-help-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: #172033;
}
.stats-help-card p {
  margin: 0;
  color: #475569;
  line-height: 1.55;
  font-size: 14px;
}
.stats-help-card button {
  margin-top: 16px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  background: #0f4f38;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 600px) {
  .lrneo-panel { padding: 14px 12px; }
  .lrneo-neo-toolbar { grid-template-columns: 1fr; gap: 8px; padding: 8px; }
  .lrneo-neo-search, .lrneo-neo-period { height: 38px; font-size: 15px; }
  .lrneo-neo-back { display: none; }
  .lrneo-table { font-size: 14px; }
  .lrneo-table thead th, .lrneo-table td { padding: 0 7px; }
}

/* ── LR Neo date controls ── */
.lrneo-month-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.lrneo-mo-tab {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.lrneo-mo-tab:hover { border-color: #94a3b8; background: #f1f5f9; }
.lrneo-mo-tab.active { border-color: #007A3D; background: #007A3D; color: #fff; }
.lrneo-mo-tab.missing {
  border-style: dashed;
  background: #fff;
  color: #64748b;
}
.lrneo-mo-tab.missing:hover {
  border-color: #007A3D;
  background: #f0fdf4;
  color: #166534;
}
.lrneo-mo-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lrneo-mo-year {
  display: block;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
  opacity: .78;
}
.lrneo-mo-badge {
  font-size: 10px;
  font-weight: 700;
  max-width: 100%;
  padding: 1px 5px;
  border-radius: 5px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lrneo-mo-current { background: rgba(255,255,255,0.25); color: inherit; }
.lrneo-mo-tab:not(.active) .lrneo-mo-current { background: #dcfce7; color: #166534; }
.lrneo-mo-grace { background: #fef9c3; color: #854d0e; }
.lrneo-mo-tab.active .lrneo-mo-grace { background: rgba(255,255,255,0.2); color: #fef9c3; }
.lrneo-mo-missing { background: #e0f2fe; color: #0369a1; }
.lrneo-mo-tab.active .lrneo-mo-missing { background: rgba(255,255,255,0.2); color: #e0f2fe; }

@media (max-width: 600px) {
  .lrneo-month-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .lrneo-mo-tab {
    min-height: 52px;
    padding: 6px 4px;
    font-size: 12px;
  }
  .lrneo-mo-year { font-size: 10px; }
  .lrneo-mo-badge {
    font-size: 9px;
    padding: 1px 4px;
  }
}

.lrneo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.lrneo-ctrl-group { display: flex; align-items: center; gap: 8px; }
.lrneo-ctrl-label { font-size: 13px; font-weight: 750; color: #64748b; white-space: nowrap; }
.lrneo-compare-note {
  flex: 1 1 220px;
  min-width: 180px;
  color: #0f5132;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.lrneo-ctrl-sel {
  height: 34px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
}
.lrneo-ctrl-sel:focus { border-color: #3b82f6; outline: none; }

.lrneo-compare-page-link {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9a82f;
  border-radius: 999px;
  background: #fff8e6;
  color: #6b4c08;
  font-size: 13px;
  font-weight: 950;
  padding: 0 15px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(217, 168, 47, .12);
}

.lrneo-compare-page-link:hover {
  background: #d9a82f;
  color: #123321;
}

/* ── LR Neo trend chart ── */
.lrneo-trend-section {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}
.lrneo-trend-hdr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lrneo-trend-title { font-size: 14px; font-weight: 850; color: #172033; }
.lrneo-trend-legend { display: flex; flex-wrap: wrap; gap: 10px; }
.lrneo-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5568;
}
.lrneo-leg-item i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lrneo-trend-svg { width: 100%; height: auto; display: block; overflow: visible; }
.lrneo-chart-grid { stroke: #e5e7eb; stroke-width: 1; }
.lrneo-chart-lbl { font-size: 10px; fill: #94a3b8; font-family: Inter, sans-serif; }

/* ── Delta column ── */
.lrneo-delta-col { white-space: nowrap; }
.lrneo-dup   { color: #16a34a; font-weight: 700; font-size: 13px; }
.lrneo-ddown { color: #dc2626; font-weight: 700; font-size: 13px; }
.lrneo-d0    { color: #94a3b8; font-size: 13px; }

/* ── Row highlights ── */
.lrneo-row-up   > td { background: #f0fdf4 !important; }
.lrneo-row-down > td { background: #fff5f5 !important; }
.lrneo-row-new  > td { background: #eff6ff !important; }

/* ── Search input ── */
.lrneo-search-wrap { position: relative; flex: 1 1 180px; min-width: 140px; }
.lrneo-search-inp {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 30px;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  font-size: 13px;
  color: #172033;
  background: #fff;
  outline: none;
}
.lrneo-search-inp:focus { border-color: #3b82f6; }
.lrneo-search-ico {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
  line-height: 1;
}

/* ── Growth leaders chart ── */
.lrneo-growth-section {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}
.lrneo-growth-title { font-size: 14px; font-weight: 850; color: #172033; margin-bottom: 12px; }
.lrneo-growth-list  { display: grid; gap: 7px; }
.lrneo-growth-row {
  display: grid;
  grid-template-columns: 170px 1fr 74px;
  gap: 8px;
  align-items: center;
}
.lrneo-growth-name {
  font-size: 13px;
  font-weight: 700;
  color: #172033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lrneo-growth-bar-wrap {
  height: 13px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}
.lrneo-growth-bar {
  height: 100%;
  border-radius: 99px;
  min-width: 3px;
}
.lrneo-growth-val { font-size: 13px; font-weight: 700; text-align: right; white-space: nowrap; }
.lrneo-growth-val.up   { color: #16a34a; }
.lrneo-growth-val.down { color: #dc2626; }
.lrneo-growth-val.same { color: #94a3b8; }

@media (max-width: 600px) {
  .lrneo-growth-row { grid-template-columns: 1fr 60px; }
  .lrneo-growth-bar-wrap { display: none; }
}

.lrneo-tabs-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.lrneo-tabs-nav {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #eef2f7;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.lrneo-tab-btn {
  appearance: none;
  border: 1.5px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.lrneo-tab-btn.active {
  background: #172033;
  border-color: #172033;
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, .18);
}

.lrneo-tab-link.lrneo-compare-page-link {
  min-height: 34px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.lrneo-tab-pane {
  display: none;
  padding: 14px 16px;
}

.lrneo-tab-pane.active {
  display: block;
}

/* ── Semafor panel ── */
#lrneoSemaforSection {
  background: #fff;
}
.lrneo-semafor-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.lrneo-semafor-title { font-size: 14px; font-weight: 850; color: #172033; }
.lrneo-semafor-hint  { font-size: 11px; color: #94a3b8; }
.lrneo-semafor-list  { display: flex; flex-direction: column; gap: 7px; }
.lrneo-semafor-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
}
.lrneo-semafor-row.up   { background: #f0fdf4; border: 1px solid #bbf7d0; }
.lrneo-semafor-row.risk { background: #fef9ec; border: 1px solid #fde68a; }
.lrneo-semafor-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lrneo-semafor-row.up   .lrneo-semafor-dot { background: #22c55e; }
.lrneo-semafor-row.risk .lrneo-semafor-dot { background: #f59e0b; }
.lrneo-semafor-name { font-weight: 700; color: #172033; min-width: 120px; }
.lrneo-semafor-pts  { font-size: 12px; color: #64748b; font-weight: 600; min-width: 70px; }
.lrneo-semafor-msg  { font-size: 12px; color: #374151; flex: 1; }
.lrneo-semafor-msg strong { font-weight: 800; }
.lrneo-semafor-row.up   .lrneo-semafor-msg strong { color: #16a34a; }
.lrneo-semafor-row.risk .lrneo-semafor-msg strong { color: #d97706; }
@media (max-width: 600px) {
  .lrneo-semafor-row { flex-wrap: wrap; gap: 5px; }
  .lrneo-semafor-pts { min-width: auto; }
}

/* ── Koncentracija tima panel ── */
#lrneoKoncentracijaSection {
  background: #fff;
}
.lrneo-konc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.lrneo-konc-title { font-size: 14px; font-weight: 850; color: #172033; }
.lrneo-konc-risk {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
}
.lrneo-konc-risk.high { background: #fee2e2; color: #dc2626; }
.lrneo-konc-risk.mid  { background: #fef3c7; color: #b45309; }
.lrneo-konc-risk.low  { background: #dcfce7; color: #16a34a; }
.lrneo-konc-list  { display: flex; flex-direction: column; gap: 7px; }
.lrneo-konc-row {
  display: grid;
  grid-template-columns: 140px 1fr 42px 72px;
  gap: 8px;
  align-items: center;
}
.lrneo-konc-name { font-size: 13px; font-weight: 700; color: #172033; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrneo-konc-bar-wrap { height: 12px; background: #f1f5f9; border-radius: 99px; overflow: hidden; }
.lrneo-konc-bar  { display: block; height: 100%; border-radius: 99px; min-width: 3px; }
.lrneo-konc-pct  { font-size: 12px; font-weight: 700; color: #475569; text-align: right; }
.lrneo-konc-pts  { font-size: 12px; color: #64748b; text-align: right; white-space: nowrap; }
@media (max-width: 600px) {
  .lrneo-konc-row { grid-template-columns: 1fr 40px; }
  .lrneo-konc-bar-wrap, .lrneo-konc-pts { display: none; }
}

/* ── Mesecni tempo panel ── */
#lrneoMesecniTempoSection {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}
.lrneo-tempo-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lrneo-tempo-title { font-size: 14px; font-weight: 850; color: #172033; flex: 1; }
.lrneo-tempo-date  { font-size: 12px; color: #64748b; font-weight: 700; }
.lrneo-tempo-bar-bg {
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 14px;
}
.lrneo-tempo-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 99px;
  transition: width .4s;
  min-width: 4px;
}
.lrneo-tempo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.lrneo-tempo-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.lrneo-tempo-stat.proj { background: #eff6ff; border-color: #bfdbfe; }
.lrneo-tempo-stat.proj strong { color: #2563eb; }
.lrneo-tempo-lbl  { font-size: 11px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.lrneo-tempo-stat strong { font-size: 16px; font-weight: 900; color: #172033; }
@media (max-width: 600px) {
  .lrneo-tempo-stats { grid-template-columns: 1fr 1fr; }
}

/* ── Dnevnik promena (Change Log) panel ── */
.lrneo-clog-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}
.lrneo-clog-title {
  font-size: 14px;
  font-weight: 850;
  color: #172033;
  margin-bottom: 14px;
}
.lrneo-clog-month {
  margin-bottom: 8px;
}
.lrneo-clog-month-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #172033;
  list-style: none;
  user-select: none;
}
.lrneo-clog-month-hdr::-webkit-details-marker { display: none; }
.lrneo-clog-month-hdr::before { content: '▶'; font-size: 10px; margin-right: 6px; transition: transform .2s; }
details[open] > .lrneo-clog-month-hdr::before { transform: rotate(90deg); }
.lrneo-clog-mo-days { font-size: 11px; color: #94a3b8; font-weight: 600; }
.lrneo-clog-day {
  margin: 6px 0 6px 8px;
  padding: 10px 12px;
  border-left: 3px solid #e2e8f0;
}
.lrneo-clog-day-hdr {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 7px;
}
.lrneo-clog-vs { font-size: 11px; color: #94a3b8; font-weight: 500; }
.lrneo-clog-items { display: flex; flex-wrap: wrap; gap: 6px; }
.lrneo-clog-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  white-space: nowrap;
}
.lrneo-clog-chip.up   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.lrneo-clog-chip.down { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.lrneo-clog-chip strong { font-weight: 800; }

/* ── Yearly chart ── */
.year-panel { overflow-x: auto; }

.year-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.year-compare-block {
  flex: 1;
  min-width: 140px;
}

.year-compare-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 750;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.year-compare-val {
  font-size: 28px;
  font-weight: 950;
  color: #172033;
  line-height: 1;
  margin-bottom: 3px;
}

.year-compare-sub {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.year-compare-delta {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
  padding: 3px 8px;
}

.year-compare-delta.up   { background: #dcfce7; color: #16a34a; }
.year-compare-delta.down { background: #fee2e2; color: #b91c1c; }
.year-compare-delta.same { background: #f1f5f9; color: #94a3b8; }

.year-chart {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  border-bottom: 1px solid #dbe5ef;
  padding: 24px 4px 8px;
}

.month-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  position: relative;
}

.month-stack {
  width: 100%;
  max-width: 52px;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
}

.month-stack span {
  display: block;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  width: 100%;
}

.month-stack .month-activity  { background: #f59e0b; }
.month-stack .month-contacted { background: #10b981; }

.month-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
  white-space: nowrap;
}

.month-col.month-current .month-label {
  color: #2563eb;
}

.month-col.month-current .month-stack span {
  filter: brightness(1.08);
}

.month-current-badge {
  font-size: 10px;
  font-weight: 800;
  border-radius: 5px;
  padding: 2px 5px;
  white-space: nowrap;
  margin-bottom: 2px;
}

.month-current-badge.up   { background: #dcfce7; color: #16a34a; }
.month-current-badge.down { background: #fee2e2; color: #b91c1c; }
.month-current-badge.same { background: #f1f5f9; color: #94a3b8; }

.month-empty-bar {
  width: 100%;
  max-width: 52px;
  height: 4px;
  background: #e5edf5;
  border-radius: 3px;
  margin-bottom: 2px;
}

@media (max-width: 680px) {
  .year-chart { gap: 3px; padding: 20px 2px 6px; }
  .month-label { font-size: 9px; }
  .month-current-badge { font-size: 9px; padding: 1px 4px; }
}

/* ── LR Neo daily points chart ── */
.lrneo-daily-section {
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px 14px;
}

.lrneo-daily-head {
  margin-bottom: 14px;
}

.lrneo-daily-title {
  font-size: 14px;
  font-weight: 850;
  color: #172033;
}

.lrneo-daily-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.lrneo-dc-block {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border-right: 1px solid #e2e8f0;
}

.lrneo-dc-block:last-child {
  border-right: none;
}

.lrneo-dc-label {
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.lrneo-dc-val {
  font-size: 22px;
  font-weight: 950;
  color: #172033;
  line-height: 1;
  margin-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.lrneo-dc-delta {
  font-size: 12px;
  font-weight: 800;
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  margin-top: 3px;
}

.lrneo-dc-delta.up   { background: #dcfce7; color: #16a34a; }
.lrneo-dc-delta.down { background: #fee2e2; color: #b91c1c; }
.lrneo-dc-delta.same { background: #f1f5f9; color: #94a3b8; }

.lrneo-daily-chart {
  display: grid;
  align-items: end;
  gap: 3px;
  border-bottom: 2px solid #dbe5ef;
  padding-bottom: 6px;
  min-height: 140px;
}

.daily-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.daily-bar {
  width: 100%;
  border-radius: 3px 3px 1px 1px;
  background: #3b82f6;
  transition: opacity .15s;
}

.daily-col:hover .daily-bar {
  opacity: .8;
}

.daily-col.daily-today .daily-bar {
  background: #1d4ed8;
}

.daily-bar-empty {
  width: 100%;
  height: 4px;
  background: #e5edf5;
  border-radius: 2px;
}

.daily-day {
  font-size: 9px;
  color: #94a3b8;
  font-weight: 800;
  line-height: 1;
  min-height: 11px;
}

.daily-col.daily-today .daily-day {
  color: #2563eb;
}

@media (max-width: 680px) {
  .lrneo-daily-chart { gap: 2px; }
  .lrneo-dc-block { padding: 10px 12px; }
  .lrneo-dc-val { font-size: 18px; }
}

/* ── 21% Tracker ── */
.lrneo-21-section {
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
}

.lrneo-21-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lrneo-21-title {
  font-size: 14px;
  font-weight: 850;
  color: #172033;
}

.lrneo-21-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 700;
}

.lrneo-21-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.lrneo-team-window {
  margin-top: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.lrneo-team-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.lrneo-team-head span {
  font-size: 13px;
  font-weight: 900;
  color: #172033;
}

.lrneo-team-head small {
  font-size: 11px;
  font-weight: 750;
  color: #64748b;
}

.lrneo-21-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fafcff;
}

.lrneo-21-card.lrneo-21-reached {
  border-color: #86efac;
  background: #f0fdf4;
}

.lrneo-21-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.lrneo-21-name {
  font-size: 13px;
  font-weight: 800;
  color: #172033;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.lrneo-21-badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.lrneo-21-pts {
  font-size: 17px;
  font-weight: 900;
  color: #172033;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.lrneo-21-pts span {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.lrneo-21-track {
  height: 8px;
  background: #e5edf5;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.lrneo-21-fill {
  height: 100%;
  border-radius: 99px;
  min-width: 3px;
}

.lrneo-21-remain {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.lrneo-21-done {
  color: #16a34a;
  font-weight: 800;
}

.lrneo-21-next {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.lrneo-21-active {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

@media (max-width: 680px) {
  .lrneo-21-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }
  .lrneo-21-pts { font-size: 15px; }
}

/* ── Self summary card (user's own row — shown at top, not counted as a line) ── */
.lrneo-21-self {
  background: linear-gradient(135deg, #0d4f6f 0%, #1a6b90 100%);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  color: #fff;
}

.lrneo-21-self-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.lrneo-21-self-name {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.lrneo-21-self .lrneo-21-badge {
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.lrneo-21-self-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lrneo-21-self-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 64px;
}

.lrneo-21-self-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lrneo-21-self-stat-val {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.lrneo-21-self-stat-val.ok   { color: #86efac; }
.lrneo-21-self-stat-val.warn { color: #fcd34d; }

@media (max-width: 520px) {
  .lrneo-21-self-stat-val { font-size: 13px; }
  .lrneo-21-self-stats { gap: 12px; }
}

/* ── Silver OL Status panel ── */
.lrneo-21-status {
  background: linear-gradient(135deg, #f0f7ff 0%, #fafeff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.lrneo-21-status-title {
  font-size: 11px;
  font-weight: 800;
  color: #0369a1;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lrneo-goal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.lrneo-goal-now {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.lrneo-goal-select-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 8px 18px rgba(15, 79, 56, .07);
}

.lrneo-goal-select-wrap span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lrneo-goal-select {
  min-width: 210px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #0f6b4d;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  padding: 0 34px 0 13px;
  outline: none;
  cursor: pointer;
}

.lrneo-goal-select option {
  color: #172033;
  background: #fff;
}

.lrneo-goal-target {
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 13px;
  font-weight: 900;
}

.lrneo-21-path-header {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 10px 0 4px 28px;
}

.lrneo-21-sr {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 8px;
  align-items: center;
  margin-bottom: 7px;
}

.lrneo-21-sr-icon {
  font-size: 13px;
  font-weight: 900;
  color: #94a3b8;
  grid-row: 1;
  grid-column: 1;
  text-align: center;
  line-height: 1;
}

.lrneo-21-sr-icon.ok {
  color: #16a34a;
}

.lrneo-21-sr-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  grid-row: 1;
  grid-column: 2;
}

.lrneo-21-sr-val {
  font-size: 12px;
  font-weight: 800;
  color: #172033;
  font-variant-numeric: tabular-nums;
  grid-row: 1;
  grid-column: 3;
  white-space: nowrap;
}

.lrneo-21-sr-bar {
  grid-column: 2 / 4;
  grid-row: 2;
  height: 5px;
  background: #dde8f4;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.lrneo-21-sr-fill {
  height: 100%;
  border-radius: 99px;
  background: #64748b;
  min-width: 3px;
  transition: width 0.4s ease;
}

.lrneo-21-sr-fill.ok   { background: #22c55e; }
.lrneo-21-sr-fill.near { background: #f59e0b; }

.lrneo-21-sr-or {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  margin: 8px 0 6px;
  letter-spacing: 0.05em;
}

.lrneo-21-qualified {
  margin-top: 12px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  text-align: center;
}

.mobile-collapse-summary {
  display: none;
}

.mobile-collapse-body {
  display: block;
}

@media (max-width: 680px) {
  .mobile-collapse {
    border-radius: 8px;
  }
  .mobile-collapse-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 11px 12px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
  }
  .mobile-collapse-summary::-webkit-details-marker {
    display: none;
  }
  .mobile-collapse-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    color: #0d4f6f;
    transition: transform .18s ease;
  }
  details[open] > .mobile-collapse-summary .mobile-collapse-chevron {
    transform: rotate(180deg);
  }
  .duo-chevron {
    display: inline-flex;
    width: 22px;
    height: 22px;
  }
  .duo-chevron svg {
    width: 100%;
    height: 100%;
  }
  .duo-chevron path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-collapse-summary span {
    font-size: 13px;
    font-weight: 900;
    color: #172033;
  }
  .mobile-collapse-summary small {
    margin-left: auto;
    font-size: 11px;
    font-weight: 750;
    color: #64748b;
    text-align: right;
  }
  .mobile-collapse-summary .cp-success-text {
    color: #dc2626;
    font-weight: 900;
  }
  .mobile-collapse-body {
    margin-top: 8px;
  }
  details.mobile-collapse:not([open]) > .mobile-collapse-body {
    display: none;
  }
}

/* ── Additive Career Plan 2026 visual block ── */
.cp-section {
  margin: 0 0 14px;
  border: 1px solid #e7d7e8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.cp-mobile-block + .cp-mobile-block {
  border-top: 1px solid #e7d7e8;
}

@media (max-width: 680px) {
  .cp-section {
    border: 0;
    background: transparent;
    overflow: visible;
  }
  .cp-mobile-block {
    margin-bottom: 10px;
    border: 1px solid #e7d7e8;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .cp-mobile-block + .cp-mobile-block {
    border-top: 1px solid #e7d7e8;
  }
  .cp-mobile-block > .mobile-collapse-summary {
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #fbf7fb, #f3fbfc);
  }
  .cp-mobile-block > .mobile-collapse-body {
    margin-top: 0;
  }
}

.cp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0e4f1;
  background: linear-gradient(90deg, #fbf7fb, #f3fbfc);
}

.cp-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  color: #172033;
}

.cp-head p {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.cp-head > span {
  font-size: 11px;
  font-weight: 800;
  color: #8b5a8d;
  white-space: nowrap;
}

.cp-fast-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #eaddea;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.cp-card {
  min-width: 0;
  background: #f8eef7;
  padding: 13px 14px;
  display: grid;
  gap: 9px;
  animation: cpCardIn .22s ease both;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.cp-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.cp-card.ok {
  background: #effdf5;
}

.cp-card.current {
  position: relative;
  border: 2px solid #dc2626;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .18), 0 8px 18px rgba(220, 38, 38, .12);
  background: #fff7f7;
}

.cp-business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #d8eef2;
}

.cp-business-grid .cp-card {
  background: #f7fdff;
}

.cp-business-grid .cp-card.ok {
  background: #effdf5;
}

.cp-track-title {
  padding: 10px 14px;
  border-top: 1px solid #f0e4f1;
  border-bottom: 1px solid #eaddea;
  background: linear-gradient(90deg, #fbf7fb, #f8eef7);
  color: #172033;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
}

.cp-track-title-business {
  border-color: #d8eef2;
  background: linear-gradient(90deg, #f0fbfc, #e4f7fa);
}

@keyframes cpCardIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-height: 34px;
}

.cp-card-top span {
  font-size: 13px;
  font-weight: 900;
  color: #172033;
}

.cp-card-top strong {
  font-size: 14px;
  font-weight: 950;
  color: #8b5a8d;
  white-space: nowrap;
}

.cp-metric {
  display: grid;
  gap: 4px;
}

.cp-metric-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  color: #475569;
}

.cp-metric-line strong {
  color: #172033;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cp-meter {
  height: 6px;
  border-radius: 99px;
  background: rgba(148, 163, 184, .22);
  overflow: hidden;
}

.cp-meter-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: #b46aa8;
}

.cp-meter-fill.ok {
  background: #16a34a;
}

.cp-side {
  min-height: 32px;
}

.cp-need {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
  color: #475569;
}

.cp-need i {
  font-style: normal;
  font-weight: 950;
  color: #94a3b8;
  line-height: 1.25;
}

.cp-need.ok,
.cp-need.ok i {
  color: #15803d;
}

.cp-bt {
  display: grid;
  grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #d8eef2;
  border-top: 1px solid #d8eef2;
}

.cp-bt-label {
  display: grid;
  place-items: center;
  background: #dff4f7;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 950;
  color: #0f4b5a;
  text-align: center;
}

.cp-bt-step {
  min-width: 0;
  background: #f7fdff;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.cp-bt-step.ok {
  background: #effdf5;
}

.cp-bt-step.current {
  position: relative;
  border: 2px solid #dc2626;
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .18), 0 8px 18px rgba(220, 38, 38, .12);
  background: #fff7f7;
}

.cp-bt-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.cp-bt-title strong {
  flex: 0 0 auto;
  font-size: 12px;
  color: #0f172a;
}

.cp-current-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #dc2626;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cp-bt-line {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  color: #475569;
}

@media (max-width: 980px) {
  .cp-fast-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cp-bt {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cp-head {
    flex-direction: column;
  }
  .cp-fast-grid {
    grid-template-columns: 1fr;
  }
  .cp-card {
    padding: 12px;
  }
}

@media (max-width: 520px) {
  .lrneo-goal-head { flex-direction: column; }
  .lrneo-goal-select-wrap {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 12px;
  }
  .lrneo-goal-select { width: 100%; min-width: 0; }
  .lrneo-21-sr-val { font-size: 11px; }
  .lrneo-21-sr-label { font-size: 11px; }
}

/* ── stat-section-collapse: panel collapsible on mobile, normal on desktop ── */
/* Desktop: summary shows as a normal panel header (not clickable) */
.stat-section-collapse > .mobile-collapse-summary {
  display: flex;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e8f0f7;
  border-radius: 0;
  padding: 14px 16px 10px;
  pointer-events: none;
  cursor: default;
}
.stat-section-collapse > .mobile-collapse-summary .mobile-collapse-chevron {
  display: none;
}
.stat-section-collapse > .mobile-collapse-summary h2 {
  font-size: 14px;
  font-weight: 700;
  color: #172033;
  margin: 0;
}
.stat-section-collapse > .mobile-collapse-body {
  padding: 0;
}

/* Mobile: clickable accordion, closed by default */
@media (max-width: 680px) {
  .stat-section-collapse > .mobile-collapse-summary {
    background: #f8fafc;
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    padding: 11px 14px;
    pointer-events: auto;
    cursor: pointer;
  }
  .stat-section-collapse > .mobile-collapse-summary .mobile-collapse-chevron {
    display: inline-flex;
  }
  details.stat-section-collapse[open] > .mobile-collapse-summary {
    border-radius: 8px 8px 0 0;
    border-bottom-color: #c5d8e8;
  }
  .stat-section-collapse > .mobile-collapse-body {
    border: 1px solid #dbe5ef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 10px 12px 12px;
    background: #fff;
  }

  /* Hide Termék/Üzlet/Mindkettő on mobile */
  .stat-insight-grid {
    display: none;
  }
}

/* ── Final premium override: align statistics header with start.html ── */
body {
  color: var(--premium-text);
  background:
    radial-gradient(circle at top left, rgba(199,167,88,.16), transparent 34rem),
    linear-gradient(180deg,#fbfcf8 0%,var(--premium-bg) 42%,#eef5ef 100%)!important;
}

.top-bar {
  margin: 0!important;
  padding: 10px 24px!important;
  background: rgba(255,255,255,.9)!important;
  color: var(--premium-text)!important;
  border-bottom: 1px solid rgba(226,233,223,.86)!important;
  box-shadow: 0 12px 30px rgba(15,79,56,.06)!important;
  backdrop-filter: blur(18px);
}

.brand {
  gap: 10px!important;
  min-width: 0;
}

.brand-logo-wrap {
  width: 52px!important;
  height: 52px!important;
  padding: 5px!important;
  border-radius: 16px!important;
  background: linear-gradient(145deg,#fff,#edf6ef)!important;
  border: 1px solid var(--premium-line)!important;
  box-shadow: 0 8px 24px rgba(15,79,56,.12)!important;
}

.brand-logo {
  width: 100%!important;
  height: 100%!important;
  border-radius: 12px!important;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  color: var(--premium-text);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-text span {
  color: var(--premium-muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.stats-nav {
  margin-left: auto!important;
  gap: 8px!important;
}

.stats-nav a,
.stat-select,
.ghost-btn {
  min-height: 40px!important;
  border: 1px solid var(--premium-line)!important;
  border-radius: 999px!important;
  background: #fff!important;
  color: var(--premium-green)!important;
  box-shadow: 0 8px 18px rgba(15,79,56,.06)!important;
  font-weight: 850!important;
}

.stats-nav a {
  display: inline-flex!important;
  align-items: center;
  padding: 8px 14px!important;
}

.stats-nav a.active,
.stats-nav a:hover {
  color: var(--premium-green)!important;
  background: var(--premium-green-soft)!important;
  border-color: rgba(15,79,56,.18)!important;
}

.stats-kicker {
  color: var(--premium-muted)!important;
  letter-spacing: .04em!important;
}

.hero-grid {
  gap: 12px!important;
}

.metric {
  min-height: 128px!important;
  border-radius: 20px!important;
  padding: 16px!important;
  color: var(--premium-text)!important;
  background: linear-gradient(180deg,#fff,var(--premium-soft))!important;
  border: 1px solid var(--premium-line)!important;
  box-shadow: var(--premium-shadow-soft)!important;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--premium-green);
}

.metric::after {
  width: 92px!important;
  height: 92px!important;
  inset: auto -28px -32px auto!important;
  background: rgba(15,79,56,.06)!important;
}

.metric-label {
  color: var(--premium-muted)!important;
  font-size: 12px!important;
  font-weight: 900!important;
  opacity: 1!important;
}

.metric-value {
  color: var(--premium-text)!important;
  font-size: 40px!important;
  font-weight: 950!important;
}

.metric-foot {
  color: var(--premium-muted)!important;
  opacity: 1!important;
  font-weight: 750!important;
}

.metric.green::before,
.metric.teal::before { background: var(--premium-green)!important; }
.metric.gold::before { background: var(--premium-gold)!important; }
.metric.red::before,
.metric.rose::before { background: #b45309!important; }
.metric.indigo::before { background: var(--premium-green-2)!important; }
.metric.orange::before { background: var(--premium-gold)!important; }

.panel {
  border-color: rgba(226,233,223,.92)!important;
  border-radius: 20px!important;
  box-shadow: var(--premium-shadow-soft)!important;
}

.panel-title {
  color: var(--premium-text)!important;
  letter-spacing: 0!important;
}

.panel-sub {
  color: var(--premium-muted)!important;
}

@media (max-width: 980px) {
  .top-bar {
    padding: 8px 12px!important;
    gap: 10px!important;
  }
  .stats-nav a {
    padding: 8px 12px!important;
    font-size: 13px!important;
  }
}

@media (max-width: 680px) {
  .top-bar {
    align-items: center!important;
    flex-wrap: nowrap!important;
    padding: 8px 10px!important;
  }
  .brand {
    flex: 1 1 auto!important;
    width: auto!important;
    justify-content: flex-start!important;
  }
  .brand-logo-wrap {
    width: 48px!important;
    height: 48px!important;
    flex-shrink: 0!important;
  }
  .brand-text strong {
    font-size: 15px!important;
  }
  .brand-text span {
    font-size: 10px!important;
  }
  .stats-nav {
    flex: 0 0 auto!important;
    justify-content: flex-end!important;
    flex-wrap: nowrap!important;
    overflow-x: auto!important;
    max-width: 48vw!important;
    padding-bottom: 2px!important;
  }
  .stats-nav a {
    min-height: 38px!important;
    padding: 7px 10px!important;
  }
  .stats-main {
    padding: 12px!important;
  }
  .hero-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
    gap: 10px!important;
  }
  .metric {
    min-height: 104px!important;
    border-radius: 18px!important;
    padding: 12px!important;
  }
  .metric-value {
    font-size: 30px!important;
  }
  .metric-label {
    font-size: 11px!important;
  }
  .metric-foot {
    font-size: 10px!important;
  }
}

.stats-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.stats-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--premium-green);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15,79,56,.06);
}

.stats-section-block + .stats-section-block {
  margin-top: 24px;
}

.stats-team-section {
  scroll-margin-top: 92px;
}

.stats-team-section .team-shell {
  width: 100%;
  padding-bottom: 0;
}

.stats-team-section .team-hero h1 {
  font-size: clamp(32px, 5vw, 58px);
}

.stats-team-section .team-board {
  margin-bottom: 0;
}
.stats-team-section .team-add-wide {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  margin: 8px 0 14px;
  border-radius: 14px;
  font-size: 15px;
}
