/* va-10 (owner 2026-10-18: "the design of the website with the va section ... got really weak"). Loaded last.
   VAs page: the team first, calmer VA cards, a slim revenue-share notice, and the reel-link card in plain words at the bottom
   (also shown on Create). */

/* Revenue share: a slim notice, not a yellow banner */
.rf-shell .va-share-bar{padding:10px 12px 10px 16px;margin:0 0 16px;border:1px solid var(--rf-line);border-left:3px solid var(--rf-warn);background:var(--rf-panel)}
.rf-shell .va-share-bar strong{font-size:14px}
.rf-shell .va-share-bar small{font-size:12.5px}
.rf-shell .va-share-bar-input input,.rf-shell .va-share-bar button{min-height:38px}

/* VA cards: one line of flags at the bottom, the numbers say the rest */
.rf-shell .tv-card{display:flex;flex-direction:column}
.rf-shell .tv-card .tv-trend{margin-bottom:12px}
.rf-shell .tv-nums>div.tv-zero{border-color:rgba(240,182,90,.28)}
.rf-shell .tv-nums>div.tv-zero strong{color:var(--rf-warn)}
.rf-shell .tv-issues{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rf-shell .tv-issues .tv-gaps{display:contents}
.rf-shell .tv-card .va-gap:is([data-gap=posts],[data-gap=share]){display:none}
.rf-shell .tv-issues:has(.va-gap:not([data-gap=posts]):not([data-gap=share])) .tv-ok{display:none}
.rf-shell .tv-card .va-gap,.rf-shell .tv-issues .pill{font-size:11.5px;font-weight:600;line-height:1.25;padding:4px 10px;border-radius:999px}
.rf-shell .tv-card .va-gap{gap:6px;background:rgba(240,182,90,.08);border:1px solid rgba(240,182,90,.24);color:#f3cf8e}
.rf-shell .tv-card .va-gap>span{width:6px;height:6px;flex:0 0 6px;font-size:0;border-radius:50%;background:var(--rf-warn)}

/* va-11 (owner 2026-10-18 "make the design final level for this"): target Instagram accounts per VA, one source card per VA */
.rf-shell .va-targets-card.rs{display:grid;gap:16px;margin:18px 0 0;padding:22px;border:1px solid rgba(176,160,255,.2);border-radius:20px;
  background:radial-gradient(120% 90% at 0% 0%,rgba(143,120,255,.13),transparent 55%),var(--rf-panel);box-shadow:0 1px 0 #ffffff0a inset,0 24px 60px -40px #8f78ff66}
.rs-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:start}
.rs-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#8f78ff,#6d5ce8);box-shadow:0 10px 24px -12px #8f78ffcc}
.rs-icon svg{width:22px;height:22px}
.rs-title{min-width:0}
.rs-kicker{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--rf-purple)}
.rs-title h3{margin:3px 0 4px;font-size:19px;letter-spacing:-.015em}
.rs-title p{margin:0;max-width:620px;font-size:13.5px;line-height:1.5;color:var(--rf-muted)}
.rs-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.rs-actions select{width:auto;min-width:150px;margin:0}
.rs-status{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;font-size:12.5px;font-weight:600;white-space:nowrap;color:var(--rf-muted);background:rgba(255,255,255,.05);border:1px solid var(--rf-line)}
.rs-status i{width:7px;height:7px;border-radius:50%;background:#6b6e7c}
.rs-status.on{color:#c9f2dc;border-color:rgba(95,211,154,.3);background:rgba(95,211,154,.08)}
.rs-status.on i{background:var(--rf-ok);box-shadow:0 0 0 3px rgba(95,211,154,.18)}
.rs-check{display:inline-flex;align-items:center;gap:7px}
.rs-check svg{width:15px;height:15px}

.rs-quick{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:8px 8px 8px 14px;border:1px solid var(--rf-line);border-radius:14px;background:rgba(0,0,0,.2)}
.rs-quick-label{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;white-space:nowrap;color:var(--rf-ink)}
.rs-quick-label svg{width:16px;height:16px;color:var(--rf-purple)}
.rs-quick input,.rs-quick select{margin:0;min-height:40px}
.rs-quick select{max-width:220px}
.rs-quick button{min-height:40px;white-space:nowrap}

.rs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px}
.rs-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px;border:1px solid var(--rf-line);border-radius:16px;background:linear-gradient(180deg,#1d1e27,#17181f);transition:border-color .18s,box-shadow .18s}
.rs-card:hover{border-color:#3b3c4a}
.rs-card.is-on{border-color:rgba(95,211,154,.26)}
.rs-card.is-pool{border-color:rgba(176,160,255,.32);background:linear-gradient(180deg,rgba(143,120,255,.1),rgba(143,120,255,.02) 60%),#18171f}
.rs-card-head{display:flex;align-items:center;gap:10px;min-width:0}
.rs-face{width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;font-size:13px;font-weight:700;color:#fff}
.rs-who{flex:1;min-width:0;display:grid;gap:1px}
.rs-who strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-who small{font-size:12px;color:var(--rf-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-meter{flex-shrink:0;padding:4px 9px;border-radius:999px;font-size:12px;color:var(--rf-muted);background:rgba(255,255,255,.05);font-variant-numeric:tabular-nums}
.rs-meter b{color:var(--rf-ink)}
.rs-card.is-on .rs-meter{color:#a9dcc0;background:rgba(95,211,154,.1)}
.rs-card.is-on .rs-meter b{color:#d9f7e7}
.rs-list{display:flex;flex-wrap:wrap;gap:6px;min-height:32px;align-items:center}
.rs-empty{flex:1;padding:8px 10px;border:1px dashed #34353f;border-radius:10px;text-align:center;font-size:12.5px;color:var(--rf-muted)}
.rs-src{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 4px 3px 3px;border-radius:999px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.rs-src-ico{width:22px;height:22px;flex:0 0 22px;border-radius:50%;display:grid;place-items:center;color:#fff}
.rs-src-ico svg{width:13px;height:13px}
.rs-src a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:600;color:#ece9fb;text-decoration:none}
.rs-src a:hover{color:#fff;text-decoration:underline}
.rs-src .rs-src-rm{width:20px;height:20px;display:grid;place-items:center;border-radius:50%!important;font-size:15px!important}
.rs-src .rs-src-rm:hover{background:rgba(255,147,156,.14)!important}
.rs-add{display:flex;gap:8px}
.rs-add input{flex:1;min-width:0;margin:0;min-height:38px;font-size:13px}
.rs-add button{flex-shrink:0;min-height:38px}
.rs-add select{flex:0 1 auto;width:auto;max-width:40%;margin:0;min-height:38px;font-size:13px}
.rs-card .rs-src.is-tiktok .rs-src-ico,.rs-card .rs-src.is-x .rs-src-ico,.rs-card .rs-src.is-threads .rs-src-ico{background:#0b0b0f;box-shadow:inset 0 0 0 1px #ffffff2e}
.rs-full{margin:0;font-size:12px;color:var(--rf-muted)}
/* target-2: per-card rules */
.rs .rs-rules{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin:0}
.rs .rs-per{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:12.5px;font-weight:500;color:var(--rf-muted)}
.rs .rs-per select{width:auto;min-width:58px;height:34px!important;min-height:0!important;margin:0;padding:0 26px 0 10px!important;font-size:13px}
.rs .rs-onoff{flex-shrink:0;font-size:12px;color:var(--rf-muted)}
.rs .rs-onoff input:checked~span{color:#c9f2dc}
.rs .rs-switch{position:relative;display:inline-flex;align-items:center;gap:7px;margin:0;font-size:12.5px;font-weight:500;color:var(--rf-ink);cursor:pointer;user-select:none}
.rs .rs-switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.rs .rs-switch i{position:relative;flex:0 0 30px;width:30px;height:18px;border-radius:9px;background:#3a3b47;transition:background .15s}
.rs .rs-switch i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;transition:transform .15s}
.rs .rs-switch input:checked+i{background:var(--rf-purple-2)}
.rs .rs-switch input:checked+i::after{transform:translateX(12px)}
.rs .rs-switch input:focus-visible+i{outline:2px solid var(--rf-purple);outline-offset:2px}
.rs .rs-switch input:disabled+i{opacity:.5}
.rs-card.is-paused{border-style:dashed}
.rs-card.is-paused .rs-list,.rs-card.is-paused .rs-card-head{opacity:.6}
.rs-foot b{font-weight:600;color:var(--rf-ink)}
.rs-foot{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--rf-line);font-size:11.5px;color:var(--rf-muted)}
.rs-foot i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#55586a}
.rs-foot i.on{background:var(--rf-ok);box-shadow:0 0 0 3px rgba(95,211,154,.16)}
.rs .error{font-size:12.5px;color:var(--rf-bad)}
.rs .error:empty{display:none}
.rs-quick .error{grid-column:1/-1}

.rs-face.t-0,.rs-src.t-0 .rs-src-ico,.rs-poster.t-0{background:linear-gradient(135deg,#8b5cf6,#6366f1)}
.rs-face.t-1,.rs-src.t-1 .rs-src-ico,.rs-poster.t-1{background:linear-gradient(135deg,#ec4899,#8b5cf6)}
.rs-face.t-2,.rs-src.t-2 .rs-src-ico,.rs-poster.t-2{background:linear-gradient(135deg,#10b981,#047857)}
.rs-face.t-3,.rs-src.t-3 .rs-src-ico,.rs-poster.t-3{background:linear-gradient(135deg,#f59e0b,#ea580c)}
.rs-face.t-4,.rs-src.t-4 .rs-src-ico,.rs-poster.t-4{background:linear-gradient(135deg,#3b82f6,#4f46e5)}
.rs-face.t-5,.rs-src.t-5 .rs-src-ico,.rs-poster.t-5{background:linear-gradient(135deg,#14b8a6,#0284c7)}
.rs-face.t-main{background:linear-gradient(135deg,#f5c76a,#e0873a);font-size:16px}   /* target-6: the main account */
.rs-card.is-main{border-color:rgba(245,199,106,.36);background:linear-gradient(180deg,rgba(245,199,106,.08),rgba(245,199,106,.01) 60%),#1b1a1f}
.rs-face.t-all{background:rgba(176,160,255,.16);color:var(--rf-purple);font-size:11px}

.rs-feed{display:grid;gap:10px}
.rs-sub{display:flex;align-items:center;gap:8px}
.rs-sub h4{margin:0;font-size:14px}
.rs-sub span{min-width:22px;height:22px;padding:0 7px;border-radius:11px;display:inline-grid;place-items:center;font-size:12px;font-weight:700;background:rgba(176,160,255,.16);color:var(--rf-purple)}
.rs-reels{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.rs-reel{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px;border:1px solid var(--rf-line);border-radius:14px;background:var(--rf-panel-2)}
.rs-reel.is-done{opacity:.7}
.rs-poster{position:relative;width:96px;height:170px;overflow:hidden;border-radius:10px;display:grid;place-items:center;color:#fff;text-decoration:none;box-shadow:0 1px 0 #ffffff26 inset}
.rs-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}   /* target-3: the real picture */
.rs-poster svg{position:relative;z-index:1;filter:drop-shadow(0 1px 3px rgba(0,0,0,.6))}
.rs-poster svg{width:22px;height:22px;opacity:.92}
.rs-poster b{position:absolute;z-index:1;left:5px;bottom:5px;padding:1px 5px;border-radius:6px;font-size:11px;font-weight:800;color:#dcf993;background:rgba(0,0,0,.55)}
.rs-reel-body{min-width:0;display:flex;flex-direction:column}
.rs-reel-body strong{font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-reel-body small{font-size:12px;color:var(--rf-muted)}
.rs-reel-body p{margin:4px 0 0;font-size:12.5px;line-height:1.4;color:#bfc1cf;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rs-reel-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px}
.rs-reel-foot span{font-size:11.5px;color:var(--rf-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rs-reel-foot button{flex-shrink:0;white-space:nowrap}
.rs-more[open]{display:grid;gap:10px}
.rs-more>summary{list-style:none;cursor:pointer;width:max-content;font-size:13px;font-weight:600;color:var(--rf-purple)}
.rs-more>summary::-webkit-details-marker{display:none}
.rs-note{margin:0;font-size:12px;line-height:1.5;color:var(--rf-muted)}
.rs-skip{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11.5px;font-weight:600;color:#f3cf8e}   /* target-3 */

@media(max-width:720px){
  .rf-shell .tv-tile{padding:12px 12px 11px}
  .rf-shell .tv-tile strong{font-size:20px}
  .rf-shell .tv-nums{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rf-shell .tv-nums>div{padding:7px 6px 6px}
  .rf-shell .tv-nums strong{font-size:15px}
  .rf-shell .va-targets-card.rs{padding:16px;border-radius:18px}
  .rs-head{grid-template-columns:auto minmax(0,1fr)}
  .rs-icon{width:38px;height:38px;border-radius:12px}
  .rs-actions{grid-column:1/-1;justify-content:flex-start}
  .rs-actions select{width:100%}
  .rs-quick{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:10px}
  .rs-quick-label,.rs-quick input{grid-column:1/-1}
  .rs-quick select{max-width:none}
  .rs-grid,.rs-reels{grid-template-columns:1fr}
}

.rs-add .rs-plat-select{flex:0 0 auto;width:112px;margin:0;min-height:38px;font-size:12px;padding:0 22px 0 8px}
.rs-src a small{display:inline-block;padding:1px 5px;margin-right:3px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.02em;background:rgba(255,255,255,.14);color:#fff;vertical-align:1px}
.rs-src.is-threads .rs-src-ico{background:linear-gradient(135deg,#18181b,#52525b)!important}
.rs-src.is-x .rs-src-ico{background:linear-gradient(135deg,#09090b,#27272a)!important} .rs-src .rs-src-ico.rs-src-logo{background:none!important;box-shadow:none!important;border-radius:7px;overflow:hidden} .rs-src-ico.rs-src-logo svg{width:22px;height:22px;display:block}
/* fix6-17 (owner 2026-11-06 "add the logos here"): the target platform picker is a row of app logos with their n/max, not a text dropdown */
.rs-add .rs-plat{display:flex;gap:4px;flex:0 0 auto;align-items:stretch}
.rs-plat-opt{position:relative;display:flex;align-items:center;gap:4px;min-height:38px;padding:0 8px;border:1px solid var(--rf-line);border-radius:10px;cursor:pointer;color:var(--rf-ink)}
.rs-plat-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.rs-plat-logo{display:inline-flex;width:18px;height:18px;flex:0 0 18px}
.rs-plat-logo svg{width:18px;height:18px;display:block}
.rs-plat-opt small{font-size:11px;color:var(--rf-muted)}
.rs-plat-opt:has(input:checked){border-color:var(--rf-purple);background:rgba(176,160,255,.16)}
.rs-plat-opt:has(input:checked) small{color:var(--rf-ink)}
.rs-plat-opt:has(input:focus-visible){outline:2px solid var(--rf-purple);outline-offset:2px}
.rs-plat-opt.is-full{opacity:.4;cursor:not-allowed}
@media (max-width:560px){.rs-add{flex-wrap:wrap}.rs-add .rs-plat{width:100%}.rs-plat-opt{flex:1;justify-content:center}}
