.card{position:relative;overflow:hidden}
@media (min-width: 881px){
  .card{padding:28px 26px}
}
h1.page-title{font-size:34px;line-height:1.15}
.hero-card{
  background:linear-gradient(135deg,#fff 0%,#fff5fb 46%,#fff8ef 100%);
}
.hero-card::after{
  content:"";
  position:absolute;
  right:-44px;
  top:-44px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:radial-gradient(circle,#ffd4e9 0%,rgba(255,212,233,0) 70%);
}
.hero-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.hero-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color:#5a4762;
  background:#fff;
  border:1px solid #f0d7e4;
}
.mt12{margin-top:12px}
.diag-form{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px}
.diag-form label{font-size:12px;color:#344054;font-weight:700}
.diag-form input,.diag-form select{
  height:40px;
  border:1px solid #d7e0eb;
  border-radius:4px;
  padding:0 11px;
  box-sizing:border-box;
  background:#fff;
  font-size:16px;
}
.diag-form input:focus,.diag-form select:focus{
  outline:none;
  border-color:#8ec5ff;
  box-shadow:0 0 0 3px rgba(142,197,255,.22);
}
.diag-form button{grid-column:1 / -1}
.diag-form button{
  width:200px;
  height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  justify-self:center;
  margin-top:30px;
  margin-bottom:10px;
  padding-top:5px;
  padding-bottom:5px;
  border-radius:10px;
  font-size:16px;
}
@media (min-width: 881px){
  .diag-form{
    max-width:460px;
    margin:0 auto;
  }
}
.alert-card{background:linear-gradient(135deg,#fff6f2 0%,#fff0f8 55%,#fff8ee 100%)}
.big-number{
  font-size:52px;
  line-height:1.05;
  margin:10px 0 6px;
  color:#ca3d3d;
  font-weight:900;
  letter-spacing:.01em;
  text-shadow:0 8px 18px rgba(202,61,61,.15);
}
.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.summary-box{background:#fff;border:1px solid #f0d7e4;border-radius:12px;padding:10px}
.summary-label{margin:0;color:#7a5a67;font-size:11px}
.summary-value{margin:3px 0 0;font-size:20px;font-weight:800;color:#233042}
.summary-sub{margin:2px 0 0;font-size:11px;color:#6b7280}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.chart-card{
  background:linear-gradient(180deg,#ffffff 0%,#fcfdff 100%);
}
.report-chart-shell{
  background:linear-gradient(180deg,#ffffff 0%,#fff9fc 100%);
}
.report-chart-note{
  margin-bottom:12px;
}
.analytics-range{
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  justify-content:center;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x proximity;
  scroll-behavior:smooth;
  margin:8px 0 12px;
  padding:2px 12px 4px;
  scroll-padding-left:12px;
  scroll-padding-right:12px;
}
.analytics-range::-webkit-scrollbar{display:none}
.range-btn{
  border:1px solid #dfe7ec;
  background:#f6f8f9;
  color:#35504b;
  font-size:12px;
  font-weight:600;
  height:auto;
  min-height:0;
  padding:6px 10px;
  border-radius:999px;
  cursor:pointer;
  scroll-snap-align:center;
  white-space:nowrap;
  box-shadow:none;
}
.range-btn:hover{filter:none}
.range-btn.is-active{
  background:linear-gradient(135deg,#ff6aa2,#ff8a00);
  border-color:transparent;
  color:#fff;
}
.range-divider{
  width:100%;
  height:1px;
  background:#e6eef2;
  margin:5px 0;
}
.range-divider--top{
  margin:16px 0 18px;
}
.analytics-chart { width: 100%; }
.trend-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}
.trend-grid line {
  stroke: #e6eef2;
  stroke-width: 1;
}
.trend-line {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
}
.trend-line-mood { stroke: #64748b; }
.trend-line-growth { stroke: #ff8a00; }
.trend-line-ai { stroke: #ff4fa0; }
.trend-dot {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 3;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transform-origin: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease;
}
.trend-dot.is-visible {
  opacity: 1;
  transform: scale(1);
}
.trend-dot-mood { color: #64748b; }
.trend-dot-growth { color: #ff8a00; }
.trend-dot-ai { color: #ff4fa0; }
.analytics-legend {
  margin-top: 10px;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  font-size: 12px;
  color: #52615d;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-item::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.legend-mood::before { background: #64748b; }
.legend-growth::before { background: #ff8a00; }
.legend-ai::before { background: #ff4fa0; }
.rank-list{list-style:none;margin:0;padding:0}
.rank-list li{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px dashed #d8e0ed;font-size:14px}
.rank-list li:last-child{border-bottom:0}
.rank-list li span{
  font-size:12px;
  font-weight:700;
}
.rank-list li strong{
  font-size:12px;
  font-weight:800;
}
.rank-card::before{
  content:"";
  position:absolute;
  right:-30px;
  bottom:-30px;
  width:120px;
  height:120px;
  border-radius:50%;
  opacity:.6;
}
.hot-card::before{background:radial-gradient(circle,#ffe2df 0%,rgba(255,226,223,0) 70%)}
.safe-card::before{background:radial-gradient(circle,#dff9ee 0%,rgba(223,249,238,0) 70%)}
.hot{color:#b42318}
.safe{color:#067647}
.error-list{margin:6px 0 0 16px;padding:0}
.error-list li{font-size:11px;line-height:1.4;color:#b42318}
canvas{width:100%;max-width:100%}
.chart-canvas{
  min-height:260px;
}
.tiny-evidence table{width:100%;border-collapse:collapse;font-size:10px;line-height:1.35}
.tiny-evidence th,.tiny-evidence td{border:1px solid #e4e7ec;padding:4px 6px;vertical-align:top}
.tiny-evidence th{background:#f5f8fc;font-weight:700}

.top-slider-shell{
  margin:0 0 14px;
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.top-slider-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.top-slider-title{
  margin:0;
}
.top-slider-controls{
  display:flex;
  gap:10px;
}
.top-slider-controls-bottom{
  justify-content:flex-end;
  margin-top:14px;
}
.top-slider-arrow{
  width:36px;
  height:36px;
  border:1px solid #e5e9f2;
  border-radius:999px;
  background:#f0f3f9;
  color:#7b8392;
  padding:0;
  box-shadow:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.top-slider-arrow:hover{filter:none}
.top-slider-arrow i{
  font-size:24px;
  line-height:1;
}
.top-slider-viewport{
  overflow:hidden;
  margin-top:10px;
  position:relative;
  contain:layout paint;
}
.top-slider-track{
  display:flex;
  gap:16px;
  will-change:transform;
  transition:none;
  transform:translate3d(0,0,0);
}
.top-menu-card{
  flex:0 0 min(360px, calc(100vw - 92px));
  min-height:340px;
  background:#fff;
  border:1px solid #eceff6;
  border-radius:28px;
  box-shadow:0 12px 30px rgba(31,41,55,.08);
  padding:18px 18px 14px;
  display:flex;
  flex-direction:column;
  backface-visibility:hidden;
  transform:translateZ(0);
}
.top-menu-badge{
  color:#cf6d2f;
  font-size:12px;
  font-weight:800;
  margin-bottom:6px;
}
.top-menu-card h3{
  margin:0;
  font-size:34px;
  line-height:1.1;
  font-weight:900;
  letter-spacing:.01em;
}
.top-menu-card p{
  margin:12px 0 0;
  font-size:16px;
  line-height:1.6;
  color:#4f5e76;
}
.top-menu-link{
  margin-top:14px;
  font-weight:800;
  color:#2e66f4;
}
.top-menu-visual{
  margin-top:auto;
  height:150px;
  border-radius:14px;
  border:1px solid #e6ebf5;
}
.top-menu-visual-diagnosis{
  background:
    radial-gradient(120px 80px at 20% 20%,rgba(255,92,168,.36) 0%,rgba(255,92,168,0) 70%),
    radial-gradient(130px 90px at 80% 75%,rgba(63,111,255,.35) 0%,rgba(63,111,255,0) 70%),
    linear-gradient(130deg,#131722 0%,#222f56 60%,#1f2a44 100%);
}
.top-menu-visual-news{
  background:
    linear-gradient(20deg,#3a3de8 0%,#7f35f4 30%,#fe4d4f 65%,#ff9342 100%);
}
.top-menu-visual-settings{
  background:
    radial-gradient(80px 80px at 20% 20%,rgba(255,255,255,.32) 0%,rgba(255,255,255,0) 80%),
    linear-gradient(130deg,#17385f 0%,#2b6ea8 35%,#3e9ec6 100%);
}

@media (max-width:880px){
  h1.page-title{font-size:26px}
  .grid2{grid-template-columns:1fr}
  .diag-form{grid-template-columns:1fr}
  .big-number{font-size:34px}
  .summary-row{grid-template-columns:1fr}
  .chart-canvas{min-height:200px}
  .hero-chip{font-size:10px}
  .analytics-legend{
    justify-content:center;
    gap:6px 10px;
    font-size:9px;
    text-align:center;
  }
  .legend-item{
    gap:4px;
    line-height:1.18;
  }
  .legend-item::before{
    width:7px;
    height:7px;
  }
  .top-menu-card{
    flex:0 0 calc(100vw - 84px);
    min-height:300px;
    border-radius:24px;
    padding:16px;
  }
  .top-menu-card h3{
    font-size:32px;
  }
  .top-menu-card p{
    font-size:15px;
  }
  .top-menu-visual{
    height:132px;
  }
}
