/* Growth › Downloads and Search ranking. Built on the Insights page's pieces (social.css: .si-*); only what differs. */

/* Downloads per day: App Store search in the app's accent, the rest a lighter step of the same hue (a part of the whole). */
i.gr-search,i.gr-rest{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;vertical-align:0}
i.gr-search,.si-col i.gr-search{background:var(--accent)}
i.gr-rest,.si-col i.gr-rest{background:color-mix(in oklab,var(--accent) 38%,var(--surface))}
.si-col i.gr-search+i,.si-col i.gr-rest+i.gr-search{border-radius:0}
.si-col.gr-missing{background:repeating-linear-gradient(135deg,transparent 0 3px,color-mix(in oklab,var(--ink) 6%,transparent) 3px 5px)}
.gr-state .empty span{max-width:520px}
.gr-warn{display:flex;align-items:center;gap:8px;margin:0;padding:10px 14px;border-radius:var(--r-md);background:var(--warn-soft,color-mix(in oklab,#d9822b 12%,transparent));color:var(--ink-2);font-size:var(--t-body-s)}
.gr-warn .icon{width:16px;height:16px;flex:none}
.gr-foot{font-size:var(--t-small);margin:4px 2px 0;max-width:760px}

/* Search ranking */
.as-card{display:grid;gap:10px}
.as-add{display:flex;flex-wrap:wrap;gap:8px}
.as-add input{flex:1 1 220px;min-width:0;width:auto}
.as-add select{width:auto}
.as-add select{flex:0 0 auto}
.as-table-card{padding:0;overflow-x:auto}
.as-table{width:100%;border-collapse:collapse;font-size:var(--t-body-s)}
.as-table th,.as-table td{padding:10px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.as-table thead th{font-size:var(--t-small);font-weight:600;color:var(--muted);background:var(--surface-2)}
.as-table tbody tr:last-child>*{border-bottom:0}
.as-table tbody th{font-weight:600;color:var(--ink);white-space:normal;min-width:150px}
.as-table tbody th small{display:block;font-weight:400;font-size:var(--t-small)}
.as-table .num{text-align:right;font-variant-numeric:tabular-nums}
.as-table tr.top td.num strong{color:var(--accent)}
.as-table abbr{text-decoration:none;font-size:var(--t-small);font-weight:600;color:var(--ink-2)}
.as-table td:last-child{width:1%}
.as-chg{font-weight:600;font-size:var(--t-small)}
.as-chg.up{color:var(--good,#2f7a4f)}
.as-chg.down{color:var(--danger,#c0392b)}
.as-line{width:120px;height:30px;overflow:visible;display:block}
.as-line path{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.as-line circle{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.as-top{white-space:normal!important;min-width:180px}
.as-top span{display:inline-block;margin:2px 4px 2px 0;padding:2px 8px;border-radius:999px;background:var(--surface-2);font-size:var(--t-small);color:var(--ink-2);max-width:180px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.as-top span.me{background:var(--accent-softer);color:var(--ink);font-weight:600}
@media (max-width:700px){
  .as-table th:nth-child(5),.as-table td:nth-child(5),.as-table th:nth-child(7),.as-table td:nth-child(7){display:none}
  .as-line{width:80px}
}
