.an-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}.an-channel{display:flex;align-items:center;gap:12px}.an-avatar{width:44px;height:44px;display:grid;place-items:center;background:#fff0f3;color:#ff0033;border-radius:13px;font-size:22px}.an-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.an-controls label,.an-dates label{display:flex;flex-direction:column;font-size:12px;color:#747d8d;gap:5px}.an-controls select,.an-dates input,.an-section-head select{padding:10px 12px;border:1px solid #e4e8ef;border-radius:10px;background:white;min-width:0}.an-dates{flex-basis:100%;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.an-period{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.an-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.an-stats .stat-card{padding:18px;display:flex;flex-direction:column;gap:7px;min-width:0}.an-stats strong{font-size:29px;letter-spacing:-.8px;line-height:1.2}.an-delta{font-size:11px;line-height:1.4;color:#747d8d}.an-delta.positive{color:#109866}.an-delta.negative{color:#ba364f}.an-lifetime{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-bottom:18px;font-size:13px}.an-lifetime .hint{flex-basis:100%;margin-top:0}.an-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.an-section-head h3{margin:0}.an-section-head p{margin-bottom:0}.an-chart-panel,.an-video-panel{margin-top:18px;min-width:0}.an-chart{display:block;width:100%;height:auto;max-height:340px;min-height:190px}.an-chart text{font:12px system-ui;fill:#747d8d}.an-table-scroll{overflow-x:auto;max-width:100%}.an-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}.an-table th{font-weight:600;color:#747d8d;font-size:12px;white-space:nowrap;padding:12px 10px;border-bottom:1px solid #e4e8ef}.an-table td{padding:14px 10px;border-bottom:1px solid #eff2f6;white-space:nowrap}.an-table tbody tr:last-child td{border-bottom:0}.an-table th:first-child,.an-table td:first-child{padding-left:0}.an-video{display:flex;align-items:center;gap:10px;min-width:270px;max-width:380px;white-space:normal}.an-video img{width:72px;aspect-ratio:16/9;object-fit:cover;border-radius:6px}.an-video a{color:#171a22;text-decoration:none;font-weight:700;display:block}.an-video a:hover{text-decoration:underline}.an-rank{color:#747d8d;min-width:14px}.an-content-link{border:0;background:transparent;color:#346dff;padding:3px 0;font-size:11px;display:block;text-align:left}.an-daily-details{margin-top:10px}.an-daily-details summary,.an-setup summary{cursor:pointer;color:#346dff;font-size:13px}.an-setup{text-align:center;padding:44px 25px;margin-top:18px}.an-setup h2{font-size:25px;margin:15px 0 6px}.an-setup p{max-width:630px;margin:10px auto 22px;color:#747d8d}.an-setup .btn{display:inline-block;text-decoration:none}.an-setup .hint{font-size:12px;max-width:540px;margin-top:20px}.an-setup details{margin-top:26px}.an-mark{width:60px;height:60px;display:grid;place-items:center;font-size:33px;background:#fff0f3;color:#ff0033;border-radius:18px;margin:auto}.an-error{margin-top:18px}.an-warning{display:block;font-size:13px}.an-warning>div+div{margin-top:6px}#analyticsPanel{min-width:0}
@media(max-width:900px){.an-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.an-period{align-items:start;flex-direction:column}.an-stats strong{font-size:26px}}
@media(max-width:520px){.an-toolbar{padding:16px}.an-controls{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:10px}.an-controls label{grid-column:1/-1}.an-stats .stat-card{padding:14px}.an-stats{gap:9px}.an-stats strong{font-size:23px}.an-section-head{align-items:start;flex-direction:column}.an-dates{gap:9px}.an-dates label{width:calc(50% - 5px)}.an-chart-panel,.an-video-panel{padding:15px}.an-setup{padding:30px 18px}.an-lifetime{gap:10px 16px}.an-chart{min-height:160px}.an-setup .btn{max-width:100%}}
/* Studio Analytics */
.studio-tabs{display:flex;gap:26px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #e1e5eb;margin:20px 0 24px}.studio-tabs button{flex:none;border:0;border-bottom:3px solid transparent;background:transparent;padding:14px 2px;color:#637085;font-size:13px;font-weight:650;white-space:nowrap}.studio-tabs button.active{color:#245bc7;border-bottom-color:#245bc7}.studio-tabs button:focus-visible{outline:2px solid #245bc7;outline-offset:-2px}.studio-sync{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px}.studio-sync>div{min-width:0}.studio-sync p{margin:5px 0 0;overflow-wrap:anywhere}.studio-sync button{flex:none}.studio-status{font-size:11px;white-space:nowrap;background:#eef6f1;padding:7px 10px;border-radius:6px;color:#267348}.studio-warnings{font-size:12px;color:#86611a;background:#fff8e8;padding:12px 16px;border-radius:8px;margin:12px 0}.studio-warnings summary{cursor:pointer;font-weight:600}.studio-warnings p{margin:9px 0;overflow-wrap:anywhere}.studio-video-title{color:#172b4d;font-weight:650;background:transparent;border:0;padding:0;text-align:left;line-height:1.5;overflow-wrap:anywhere;font-size:13px}.studio-video-title:hover{color:#245bc7;text-decoration:underline}.an-video small{display:block;font-size:10px;line-height:1.5}.studio-thumbnail{display:grid;place-items:center;aspect-ratio:16/9;width:180px;flex:none;border-radius:8px;background:#edf0f4;color:#8b97a8;font-size:32px}.studio-thumbnail.mini{width:72px;font-size:20px}.studio-list-controls{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.studio-list-controls input{flex:1;min-width:160px;width:auto}.studio-list-controls select{border:1px solid #dfe5ef;border-radius:6px;background:#fff;padding:10px;font-size:12px;min-width:0;color:#536178}.studio-compare{border:1px solid #c5d5f0;border-radius:9px;padding:16px;background:#f8faff;margin:16px 0}#studioPagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;font-size:12px;margin-top:20px;flex-wrap:wrap}#studioPagination span{margin-right:auto;color:#6b778c}.studio-loading{display:flex;align-items:center;justify-content:center;gap:12px;padding:70px 20px;color:#68758a;font-size:13px}.studio-loading span{height:20px;width:20px;border:2px solid #e3e9f3;border-top-color:#245bc7;border-radius:50%;animation:studio-spin 1s linear infinite}.studio-reach-setup{margin-top:16px}.studio-reach-setup p{line-height:1.8}.studio-manage-form{display:grid;gap:18px}.studio-manage-form label{font-size:12px;color:#5a687d;display:grid;gap:7px}.studio-manage-form input,.studio-manage-form textarea,.studio-manage-form select{width:100%;min-width:0;border:1px solid #dfe5ef;border-radius:7px;padding:11px;background:#fff;color:#172b4d;font-size:14px}.studio-manage-form textarea{min-height:170px;resize:vertical}.studio-manage-form .btn{justify-self:start}.studio-comment{padding:16px 0;border-bottom:1px solid #e4e8ef;overflow-wrap:anywhere}.studio-comment p{white-space:pre-wrap;line-height:1.7;font-size:13px}.studio-dialog{width:min(640px,94vw)}.studio-dialog form{padding:24px}.studio-comment-reply{display:flex;gap:8px}.studio-comment-reply input{flex:1;min-width:0;border:1px solid #dfe5ef;border-radius:6px;padding:10px}.an-stats .hint .an-delta{font-size:11px}.an-stats .hint{line-height:1.6}.studio-reach-setup h3{margin:0}.studio-manage-note{margin:0 0 18px;font-size:12px;color:#65748b;line-height:1.8}
@keyframes studio-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.studio-loading span{animation:none}}
@media(max-width:600px){.studio-tabs{gap:22px;margin:14px 0 20px}.studio-tabs button{font-size:12px}.studio-sync{align-items:start;flex-direction:column;padding:16px}.studio-sync button{width:100%}.studio-list-controls{display:grid;grid-template-columns:1fr 1fr}.studio-list-controls input{grid-column:1/-1;width:100%}.studio-list-controls select{width:100%;font-size:11px}.studio-compare{padding:12px}.studio-thumbnail:not(.mini){width:110px}.studio-comment-reply{flex-direction:column}.studio-dialog form{padding:18px}.an-video{min-width:245px}.studio-sync p{font-size:11px}}
.history-scroll{max-height:640px}.history-table{min-width:1140px;font-variant-numeric:tabular-nums}.history-table thead th{position:sticky;top:0;z-index:2;background:var(--panel,#fff)}.history-table th:first-child{min-width:140px;text-align:left}.history-table tbody tr:nth-child(even){background:rgba(82,97,120,.035)}.history-table tfoot{background:#eef4ff;font-weight:700}.history-delta.positive{color:#16834b}.history-delta.negative{color:#ba3045}.history-status{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:5px 9px;background:#f0f2f5;color:#526178;font-size:12px;white-space:nowrap}.history-status.ready{background:#e4f5eb;color:#216e4e}.history-latest{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;padding:15px 0}.storage-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.storage-checks div{background:#f6f8fc;padding:14px;border-radius:10px}.storage-checks dt{font-size:13px;color:#526178}.storage-checks dd{margin:6px 0 0;font-weight:650}@media(max-width:620px){.history-latest{align-items:flex-start;flex-direction:column;gap:8px}.history-scroll{max-height:540px}.history-table{font-size:13px}}
.an-stats strong .history-delta{font-size:inherit;font-weight:inherit}

/* Social Blade Benchmark Card */
.an-socialblade-card {
  margin-bottom: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbf7 100%);
  border: 1px solid #fed7aa;
  border-left: 4px solid #ea580c;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.05);
}
.an-sb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.an-sb-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.an-sb-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.6px;
  background: #ea580c;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 5px;
}
.an-sb-subbadge {
  font-size: 11px;
  color: #7c2d12;
  background: #ffedd5;
  padding: 2px 8px;
  border-radius: 5px;
  font-weight: 600;
  font-family: monospace;
}
.an-sb-head h3 {
  font-size: 18px;
  font-weight: 750;
  color: #1c1917;
  margin: 4px 0;
}
.an-sb-head .hint {
  font-size: 12.5px;
  color: #78716c;
  margin: 0;
}
.an-sb-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.an-sb-btn {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
  font-weight: 600 !important;
}
.an-sb-btn:hover {
  background: #ffedd5 !important;
  border-color: #ea580c !important;
}
.an-sb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.an-sb-stat {
  background: #ffffff;
  border: 1px solid #f5ede6;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.an-sb-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #a8a29e;
}
.an-sb-stat strong {
  font-size: 15px;
  color: #292524;
  font-weight: 700;
}
.an-sb-stat small {
  font-size: 11px;
  color: #78716c;
}
@media (max-width: 800px) {
  .an-sb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .an-sb-grid {
    grid-template-columns: 1fr;
  }
}

