/* Domain Overview → Rank tracking tab (views/domain-rank-tab.js): tracked keywords of the workspace's own website from
   Rank Tracking. Green palette from ahrefs-theme.css, ink numbers, readable copyable headers; the table scrolls inside
   its card on phones. */
#app.rf-shell .do-page .drk-card{--drk-ink:#1f2933;--drk-muted:rgba(0,0,0,.56);--drk-faint:rgba(0,0,0,.42);--drk-accent:var(--ah-orange,#0f6b4e);--drk-soft:var(--ah-orange-soft,#e8f5ee);--drk-line:var(--ah-line-2,#e9ebee);margin-bottom:14px;min-width:0}
#app.rf-shell .do-page .drk-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;padding:0 16px 12px}
#app.rf-shell .do-page .drk-stat{display:grid;gap:2px;padding:10px 12px;border:1px solid var(--drk-line);border-radius:10px;background:#fff}
#app.rf-shell .do-page .drk-stat>span{color:var(--drk-muted);font-size:12px}
#app.rf-shell .do-page .drk-stat strong{color:var(--drk-ink);font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
#app.rf-shell .do-page .drk-up{color:var(--drk-accent)}
#app.rf-shell .do-page .drk-down{color:#b42318}
#app.rf-shell .do-page .drk-dist{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0 16px 14px}
#app.rf-shell .do-page .drk-dist-cell{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 8px;min-width:0}
#app.rf-shell .do-page .drk-dist-cell .rf-meter{grid-column:1/-1;height:6px;border-radius:999px;background:#eef0f2}
#app.rf-shell .do-page .drk-dist-label{display:inline-flex;align-items:center;gap:6px;color:var(--drk-muted);font-size:12px;white-space:nowrap}
#app.rf-shell .do-page .drk-dist-cell b{color:var(--drk-ink);font-size:13px;font-variant-numeric:tabular-nums}
#app.rf-shell .do-page .drk-dot{display:inline-block;width:8px;height:8px;border-radius:50%}
#app.rf-shell .do-page .drk-dot.is-top3{background:var(--drk-accent)}
#app.rf-shell .do-page .drk-dot.is-top10{background:#5fb58d}
#app.rf-shell .do-page .drk-dot.is-top20{background:#d97706}
#app.rf-shell .do-page .drk-dot.is-low{background:#a3a8b0}
#app.rf-shell .do-page .drk-table-wrap{overflow-x:auto;margin:0 0 4px;border-top:1px solid var(--drk-line);-webkit-overflow-scrolling:touch}
#app.rf-shell .do-page .drk-table{width:100%;min-width:720px;border-collapse:collapse;font-size:13px}
#app.rf-shell .do-page .drk-table th,#app.rf-shell .do-page .drk-table td{padding:9px 12px;border-bottom:1px solid var(--drk-line);text-align:left;vertical-align:middle}
#app.rf-shell .do-page .drk-table thead th{position:sticky;top:0;background:#f6f7f8;color:var(--drk-ink);font-size:12px;font-weight:650;letter-spacing:.01em;white-space:nowrap;user-select:text;-webkit-user-select:text}
#app.rf-shell .do-page .drk-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#app.rf-shell .do-page .drk-table tbody tr:hover{background:#f9fafb}
#app.rf-shell .do-page .drk-kw{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:220px;font-weight:500}
#app.rf-shell .do-page .drk-kw-link{padding:0;border:0;background:none;color:var(--drk-ink);font:inherit;font-weight:500;text-align:left;cursor:pointer}
#app.rf-shell .do-page .drk-kw-link:hover{color:var(--drk-accent);text-decoration:underline;text-underline-offset:3px}
#app.rf-shell .do-page .drk-kw-link:focus-visible{outline:2px solid var(--drk-accent);outline-offset:2px;border-radius:3px}
#app.rf-shell .do-page .drk-spark{flex:0 0 auto;display:inline-flex;width:72px;height:20px}
#app.rf-shell .do-page .drk-spark .doh-spark{width:72px;height:20px}
#app.rf-shell .do-page .drk-spark .doh-spark-line{fill:none;stroke:var(--drk-accent);stroke-width:1.6}
#app.rf-shell .do-page .drk-spark .doh-spark-area{fill:var(--drk-soft)}
#app.rf-shell .do-page .drk-pos{display:inline-grid;place-items:center;min-width:30px;padding:2px 7px;border-radius:999px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
#app.rf-shell .do-page .drk-pos.is-top3{background:var(--drk-accent);color:#fff}
#app.rf-shell .do-page .drk-pos.is-top10{background:#d6efe2;color:#0b5a41}
#app.rf-shell .do-page .drk-pos.is-top20{background:#fdf0d9;color:#8a5a00}
#app.rf-shell .do-page .drk-pos.is-low{background:#eef0f2;color:#4b5563}
#app.rf-shell .do-page .drk-pos.is-none{background:none;color:var(--drk-faint)}
#app.rf-shell .do-page .drk-move{display:inline-flex;align-items:center;gap:2px;font-weight:600;font-size:12.5px}
#app.rf-shell .do-page .drk-move .ic{width:12px;height:12px}
#app.rf-shell .do-page .drk-move.up{color:var(--drk-accent)}
#app.rf-shell .do-page .drk-move.down{color:#b42318}
#app.rf-shell .do-page .drk-flat{color:var(--drk-faint)}
#app.rf-shell .do-page .drk-url-cell{max-width:260px}
#app.rf-shell .do-page .drk-url{display:inline-block;max-width:260px;overflow:hidden;color:var(--drk-muted)!important;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
#app.rf-shell .do-page .drk-url:hover{color:var(--drk-accent)!important}
#app.rf-shell .do-page .drk-checked{color:var(--drk-muted);white-space:nowrap}
#app.rf-shell .do-page .drk-more{margin:8px 16px 0;color:var(--drk-muted);font-size:12.5px}
#app.rf-shell .do-page .drk-link{display:inline-flex;align-items:center;gap:3px;padding:0;border:0;background:none;color:var(--drk-accent);font:inherit;cursor:pointer}
#app.rf-shell .do-page .drk-link .ic{width:12px;height:12px}
#app.rf-shell .do-page .drk-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px 16px}
#app.rf-shell .do-page .drk-prompt{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;align-items:start;padding:4px 16px 4px}
#app.rf-shell .do-page .drk-prompt>.ic{width:22px;height:22px;margin-top:2px;color:var(--drk-accent)}
#app.rf-shell .do-page .drk-prompt strong{color:var(--drk-ink);font-size:14px}
#app.rf-shell .do-page .drk-prompt p{margin:3px 0 0;color:var(--drk-muted);font-size:13px;line-height:1.5}
#app.rf-shell .do-page .drk-prompt .drk-actions{grid-column:1/-1;padding:8px 0 14px}
#app.rf-shell .do-page :is(.drk-loading,.drk-empty){display:flex;align-items:center;gap:8px;margin:0;padding:14px 16px;color:var(--drk-muted);font-size:13px}
#app.rf-shell .do-page :is(.drk-loading,.drk-empty) .ic{width:15px;height:15px;color:var(--drk-accent)}
#app.rf-shell .do-page .drk-loading .ic{animation:do-spin 1s linear infinite}
@media(max-width:640px){
  #app.rf-shell .do-page .drk-dist{grid-template-columns:repeat(2,minmax(0,1fr))}
  #app.rf-shell .do-page .drk-stats{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 12px 10px}
  #app.rf-shell .do-page .drk-stat strong{font-size:19px}
}
@media(prefers-reduced-motion:reduce){#app.rf-shell .do-page .drk-loading .ic{animation:none}}
