.ct-profile-analytics{
  margin-top:22px;
  display:grid;
  gap:22px;
}
.ct-profile-card{
  background:#fff;
  border:1px solid #dbe3f2;
  border-radius:26px;
  padding:26px;
  box-shadow:0 16px 45px rgba(15,23,42,.06);
}
.ct-profile-card h2{
  margin:0;
  font-size:26px;
}
.ct-profile-card h3{
  margin:0;
}
.ct-profile-muted{
  color:#64748b;
}
.ct-profile-loading,
.ct-profile-error,
.ct-profile-empty{
  padding:24px;
  border-radius:20px;
  background:#f8fafc;
  color:#64748b;
}
.ct-profile-error{
  background:#fff1f2;
  color:#9f1239;
}
.ct-profile-period-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
}
.ct-profile-period-head p{
  margin:7px 0 0;
  color:#64748b;
}
.ct-profile-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.ct-profile-tab{
  appearance:none;
  border:1px solid #dbe3f2;
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding:10px 15px;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.ct-profile-tab:hover{
  border-color:#94a3b8;
}
.ct-profile-tab.is-active{
  background:#0f172a;
  border-color:#0f172a;
  color:#fff;
}
.ct-profile-custom{
  margin-top:18px;
  display:flex;
  align-items:end;
  gap:12px;
  flex-wrap:wrap;
}
.ct-profile-custom[hidden]{
  display:none;
}
.ct-profile-custom label{
  display:grid;
  gap:6px;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.ct-profile-custom input{
  min-height:42px;
  padding:0 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  font:inherit;
}
.ct-profile-apply{
  min-height:42px;
  padding:0 16px;
  border:0;
  border-radius:12px;
  background:#2563eb;
  color:#fff;
  font:inherit;
  font-weight:900;
  cursor:pointer;
}
.ct-profile-range{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e2e8f0;
  color:#475569;
}
.ct-profile-kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.ct-profile-kpi{
  min-width:0;
  padding:20px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fbfdff;
}
.ct-profile-kpi span{
  display:block;
  color:#64748b;
  font-size:13px;
  font-weight:800;
}
.ct-profile-kpi strong{
  display:block;
  margin-top:8px;
  font-size:25px;
  letter-spacing:-.025em;
}
.ct-profile-kpi small{
  display:block;
  margin-top:5px;
  color:#64748b;
}
.ct-profile-positive{
  color:#15803d !important;
}
.ct-profile-negative{
  color:#b91c1c !important;
}
.ct-profile-neutral{
  color:#475569 !important;
}
.ct-profile-conclusion{
  background:#0f172a;
  color:#fff;
}
.ct-profile-conclusion .ct-profile-kicker{
  color:#93c5fd;
}
.ct-profile-conclusion p{
  margin:12px 0 0;
  color:#dbeafe;
  font-size:18px;
  line-height:1.65;
}
.ct-profile-kicker{
  margin-bottom:7px;
  color:#2563eb;
  font-size:12px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.ct-profile-chart-wrap{
  margin-top:20px;
  overflow-x:auto;
}
.ct-profile-chart{
  display:block;
  width:100%;
  min-width:680px;
  height:auto;
}
.ct-profile-chart-grid{
  stroke:#e2e8f0;
  stroke-width:1;
}
.ct-profile-chart-line{
  fill:none;
  stroke:#2563eb;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.ct-profile-chart-dot{
  fill:#2563eb;
}
.ct-profile-release-line{
  stroke:#f59e0b;
  stroke-width:1;
  stroke-dasharray:4 4;
  opacity:.55;
}
.ct-profile-chart-label{
  fill:#64748b;
  font-size:11px;
}
.ct-profile-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.ct-profile-section-head p{
  margin:4px 0 0;
  color:#64748b;
}
.ct-profile-theme-list{
  display:grid;
  gap:10px;
}
.ct-profile-theme{
  display:grid;
  grid-template-columns:minmax(180px,1fr) auto;
  gap:18px;
  padding:16px 0;
  border-top:1px solid #e2e8f0;
}
.ct-profile-theme:first-child{
  border-top:0;
}
.ct-profile-theme strong{
  display:block;
}
.ct-profile-theme-meta{
  margin-top:5px;
  color:#64748b;
  font-size:14px;
}
.ct-profile-theme-score{
  text-align:right;
  white-space:nowrap;
}
.ct-profile-theme-score b{
  display:block;
  color:#b91c1c;
}
.ct-profile-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
.ct-profile-action{
  padding:18px;
  border-radius:20px;
  border:1px solid #fed7aa;
  background:#fff7ed;
}
.ct-profile-action span{
  display:inline-block;
  margin-bottom:8px;
  color:#9a3412;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.ct-profile-action p{
  margin:8px 0 0;
  color:#475569;
  line-height:1.55;
}
.ct-profile-review-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.ct-profile-review{
  padding:18px;
  border:1px solid #e2e8f0;
  border-radius:20px;
  background:#fbfdff;
}
.ct-profile-review-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.ct-profile-review-head span{
  color:#64748b;
  font-size:13px;
}
.ct-profile-review p{
  margin:0;
  color:#334155;
  line-height:1.55;
}
.ct-profile-month-table{
  width:100%;
  border-collapse:collapse;
}
.ct-profile-month-table th,
.ct-profile-month-table td{
  padding:13px 10px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
}
.ct-profile-month-table th{
  color:#64748b;
  font-size:12px;
  text-transform:uppercase;
}
.ct-profile-release-history summary{
  cursor:pointer;
  font-weight:900;
  font-size:18px;
}
.ct-profile-release-list{
  display:grid;
  gap:12px;
  margin-top:18px;
}
.ct-profile-release{
  padding:17px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#fbfdff;
}
.ct-profile-release-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.ct-profile-release p{
  margin:10px 0 0;
  color:#475569;
  line-height:1.55;
}
.ct-profile-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:10px;
}
.ct-profile-tag{
  padding:5px 9px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:12px;
  font-weight:800;
}
@media(max-width:800px){
  .ct-profile-card{
    padding:20px;
    border-radius:22px;
  }
  .ct-profile-kpis{
    grid-template-columns:1fr 1fr;
  }
  .ct-profile-actions,
  .ct-profile-review-list{
    grid-template-columns:1fr;
  }
  .ct-profile-theme{
    grid-template-columns:1fr;
  }
  .ct-profile-theme-score{
    text-align:left;
  }
}
@media(max-width:520px){
  .ct-profile-kpis{
    grid-template-columns:1fr;
  }
  .ct-profile-tab{
    flex:1 1 auto;
    text-align:center;
  }
}

/* v2.3.2 chart */
.ct-profile-chart-summary{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:20px;
  padding:16px 18px;
  border:1px solid #e2e8f0;
  border-radius:18px;
  background:#f8fafc;
}
.ct-profile-chart-summary div:not(.ct-profile-chart-arrow){
  display:grid;
  gap:4px;
}
.ct-profile-chart-summary span{
  color:#64748b;
  font-size:12px;
  font-weight:800;
}
.ct-profile-chart-summary strong{
  font-size:22px;
}
.ct-profile-chart-arrow{
  color:#94a3b8;
  font-size:24px;
  font-weight:900;
}
.ct-profile-chart-delta{
  margin-left:auto;
}
.ct-profile-chart-start-dot{
  fill:#fff;
  stroke:#2563eb;
  stroke-width:3;
}
.ct-profile-release-baseline{
  stroke:#cbd5e1;
  stroke-width:1;
}
.ct-profile-release-dot{
  fill:#f59e0b;
  cursor:pointer;
}
.ct-profile-chart-footer{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:8px;
  color:#64748b;
  font-size:13px;
}

/* v2.3.2 competitor environment */
.ct-profile-direct-peer-note{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  margin-top:18px;
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.ct-profile-direct-peer-note span{
  color:#64748b;
}
.ct-profile-peer-heading{
  margin-top:24px;
}
.ct-profile-peer-heading h3{
  margin:0;
  font-size:21px;
}
.ct-profile-peer-heading p{
  margin:6px 0 0;
  color:#64748b;
}
.ct-profile-peer-table-wrap{
  margin-top:16px;
  overflow-x:auto;
}
.ct-profile-peer-table{
  width:100%;
  min-width:700px;
  border-collapse:collapse;
}
.ct-profile-peer-table th,
.ct-profile-peer-table td{
  padding:14px 12px;
  border-bottom:1px solid #e2e8f0;
  text-align:left;
}
.ct-profile-peer-table th{
  color:#64748b;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}
.ct-profile-peer-table tr.is-current{
  background:#eff6ff;
}
.ct-profile-peer-link{
  color:#1d4ed8;
  text-decoration:none;
  font-weight:900;
}
.ct-profile-peer-link:hover{
  text-decoration:underline;
}
.ct-profile-current-badge{
  display:inline-flex;
  margin-left:8px;
  padding:4px 7px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  font-size:11px;
  font-weight:900;
}
.ct-profile-peer-disclaimer{
  margin:14px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
}

@media(max-width:800px){
  .ct-profile-chart-delta{
    width:100%;
    margin-left:0;
  }
}

/* v2.3.2c review/theme refinement */

.ct-profile-theme-score b.ct-profile-zero-negative{
  color:inherit !important;
  font-weight:700;
}

.ct-profile-theme-note{
  margin:16px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.5;
}

.ct-profile-review-details{
  margin-top:10px;
}

.ct-profile-review-details summary{
  cursor:pointer;
  color:#334155;
  line-height:1.6;
}

.ct-profile-review-details summary span{
  display:inline-block;
  margin-left:8px;
  color:#2563eb;
  font-weight:800;
  white-space:nowrap;
}

.ct-profile-review-details[open] summary{
  margin-bottom:10px;
}

.ct-profile-review-details p{
  margin:0;
}

/* v2.3.2e compact profile header + status */

.ct-profile-status-badge{
  display:inline-flex !important;
  width:max-content;
  padding:7px 10px;
  border-radius:999px;
  font-size:15px !important;
  line-height:1.15;
}

.ct-profile-status-badge.is-positive{
  background:#dcfce7;
  color:#15803d;
}

.ct-profile-status-badge.is-negative{
  background:#fee2e2;
  color:#b91c1c;
}

.ct-profile-status-badge.is-neutral{
  background:#f1f5f9;
  color:#475569;
}

@media(min-width:1100px){
  .ct-profile-kpis{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
