/* smm-target.css — the account card / post picker that smm-target.js draws under every SMM
   target field. Self-contained (own fallbacks for every token) because it also renders on the
   plans page, the portal and inside articles, outside .smm-page. RTL-first, logical properties. */
.smm-tp{--tp-ink:var(--smm-ink,#16213a);--tp-mut:var(--smm-mut,#5b6b86);--tp-line:var(--smm-line,#e3e7ef);--tp-g:var(--smm-g,#1f7a45);--tp-gs:var(--smm-gs,#e9f6ee);--tp-pf:var(--pf,var(--pc,#1f7a45));
	margin:10px 0 0;padding:12px;border-radius:16px;background:#fff;border:1.5px solid var(--tp-line);color:var(--tp-ink);font-size:14.5px;line-height:1.5;text-align:start}
.smm-tp[hidden]{display:none!important}
.smm-tp *{box-sizing:border-box}
.smm-tp--ok,.smm-tp--post{border-color:color-mix(in srgb,var(--tp-g) 45%,#fff);background:linear-gradient(180deg,var(--tp-gs),#fff 70%)}
.smm-tp--private{border-color:#f0c36d;background:#fffaf0}
.smm-tp--bad{border-color:#f0c36d;background:#fffaf0}
.smm-tp--soft,.smm-tp--busy{background:#f7f8fb;border-style:dashed}
.smm-tp__i{width:16px;height:16px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.smm-tp__i--badge{fill:#1d9bf0;stroke:#1d9bf0;stroke-width:1}
.smm-tp__i--play,.smm-tp__i--heart{fill:currentColor;stroke:none}
.smm-tp__note{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--tp-mut);font-size:14px}
.smm-tp__note .smm-tp__i{margin-top:3px}
.smm-tp--bad .smm-tp__note{color:#7a5200;font-weight:600}
.smm-tp--soft .smm-tp__note .smm-tp__i{color:var(--tp-g)}
.smm-tp__spin{width:16px;height:16px;margin-top:2px;border-radius:50%;border:2px solid var(--tp-line);border-top-color:var(--tp-pf);animation:smm-tp-spin .8s linear infinite;flex:0 0 auto}
@keyframes smm-tp-spin{to{transform:rotate(360deg)}}

/* the account */
.smm-tp__who{display:flex;align-items:center;gap:12px;min-width:0}
.smm-tp__av{position:relative;display:block;width:44px;height:44px;flex:0 0 auto;overflow:hidden;border-radius:10px;background:#eef0f6}
.smm-tp__av.is-round{border-radius:50%}
.smm-tp__who.is-big .smm-tp__av{width:60px;height:60px;box-shadow:0 0 0 2px #fff,0 0 0 4px color-mix(in srgb,var(--tp-pf) 55%,#fff)}
.smm-tp__av img,.smm-tp__pic img,.smm-tp__cimg img{display:block;width:100%;height:100%;object-fit:cover}
.smm-tp__av.is-empty::after,.smm-tp__pic.is-empty::after,.smm-tp__cimg.is-empty::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#eef0f6,#dfe3ec)}
.smm-tp__whot{display:flex;flex-direction:column;min-width:0}
.smm-tp__name{display:flex;align-items:center;gap:4px;font-size:16px;font-weight:800;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smm-tp__handle{color:var(--tp-mut);font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.smm-tp__stats{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:4px;color:var(--tp-mut);font-size:13px}
.smm-tp__stats b{color:var(--tp-ink);font-weight:800}
.smm-tp__ok{display:flex;align-items:center;gap:6px;margin:10px 0 0;color:var(--tp-g);font-size:14px;font-weight:700}
.smm-tp__ok .smm-tp__i{width:18px;height:18px;padding:2px;border-radius:50%;background:var(--tp-g);color:#fff;stroke-width:3}

/* private */
.smm-tp__warn{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff3d6;color:#6b4a00;font-size:13.5px}
.smm-tp__warn b{display:flex;align-items:center;gap:6px;font-size:14.5px}
.smm-tp__warn p{margin:4px 0 8px}
.smm-tp .smm-tp__btn{display:inline-flex;align-items:center;gap:6px;min-height:38px;margin:0;padding:0 14px;border:1.5px solid #d9a441!important;border-radius:999px!important;background:#fff!important;color:#6b4a00!important;font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;touch-action:manipulation}

/* one post */
.smm-tp__post{display:flex;gap:12px;align-items:flex-start;min-width:0}
.smm-tp__pic{position:relative;display:block;width:72px;height:72px;flex:0 0 auto;overflow:hidden;border-radius:12px;background:#eef0f6}
.smm-tp__postt{display:flex;flex-direction:column;gap:2px;min-width:0}
.smm-tp__postt b{font-size:15px;font-weight:800}
.smm-tp__cap{color:var(--tp-ink);font-size:13.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.smm-tp__meta{color:var(--tp-mut);font-size:12.5px}
.smm-tp .smm-tp__link{display:inline;margin:8px 0 0;padding:0;border:0!important;background:none!important;color:var(--tp-pf)!important;font:inherit;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* the grid */
.smm-tp__ask{margin:12px 0 8px;font-size:14.5px;font-weight:800}
.smm-tp__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.smm-tp .smm-tp__cell{position:relative;display:block;aspect-ratio:1/1;width:100%;min-width:0;margin:0;padding:0;overflow:hidden;border:0!important;border-radius:10px!important;background:#eef0f6!important;cursor:pointer;touch-action:manipulation;transition:transform .12s,box-shadow .12s}
.smm-tp--feed .smm-tp__grid:has(.is-on) .smm-tp__cell:not(.is-on){opacity:.55}
.smm-tp .smm-tp__cell.is-on{box-shadow:0 0 0 3px var(--tp-g)}
@media (hover:hover){.smm-tp .smm-tp__cell:hover{transform:scale(1.02);box-shadow:0 0 0 2px var(--tp-pf)}}
.smm-tp__cimg{position:absolute;inset:0;display:block}
.smm-tp .smm-tp__cell.is-ghost{cursor:default;background:linear-gradient(100deg,#eef0f6 30%,#f7f8fb 50%,#eef0f6 70%) 0 0/300% 100%!important;animation:smm-tp-ghost 1.2s ease-in-out infinite}
@keyframes smm-tp-ghost{from{background-position:100% 0}to{background-position:0 0}}
.smm-tp--busy .smm-tp__grid{margin-top:10px}
.smm-tp__badge{position:absolute;inset-block-start:6px;inset-inline-end:6px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}
.smm-tp__cst{position:absolute;inset-inline:0;inset-block-end:0;display:flex;gap:6px;padding:14px 6px 5px;background:linear-gradient(180deg,transparent,rgba(0,0,0,.55));color:#fff;font-size:12px;font-weight:700;line-height:1}
.smm-tp__st{display:inline-flex;align-items:center;gap:3px}
.smm-tp__st .smm-tp__i{width:12px;height:12px}
.smm-tp__tick{position:absolute;inset-block-start:6px;inset-inline-start:6px;display:none;width:22px;height:22px;border-radius:50%;background:var(--tp-g);color:#fff;align-items:center;justify-content:center}
.smm-tp__tick .smm-tp__i{width:14px;height:14px;stroke-width:3}
.smm-tp__cell.is-on .smm-tp__tick{display:flex}
.smm-tp .smm-tp__more{display:block;width:100%;min-height:42px;margin:8px 0 0;border:1.5px solid var(--tp-line)!important;border-radius:12px!important;background:#fff!important;color:var(--tp-ink)!important;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.smm-tp__alt{margin:8px 0 0;color:var(--tp-mut);font-size:12.5px}
input.is-bad{border-color:#e0a52a!important}

/* several targets: the add button, the picking view, the chosen list */
.smm-tp .smm-tp__add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;margin:10px 0 0;padding:0 14px;border:1.5px dashed color-mix(in srgb,var(--tp-pf) 55%,#fff)!important;border-radius:12px!important;background:#fff!important;color:var(--tp-pf)!important;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer;touch-action:manipulation}
@media (hover:hover){.smm-tp .smm-tp__add:hover{border-style:solid!important;background:color-mix(in srgb,var(--tp-pf) 6%,#fff)!important}}
.smm-tp__plus{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:var(--tp-pf);color:#fff;font-size:17px;line-height:1}
.smm-tp__addrow{display:flex;gap:8px;margin:12px 0 0}
.smm-tp .smm-tp__addin{flex:1 1 auto;min-width:0;height:44px;min-height:44px;margin:0;padding:0 12px;border:1.5px solid var(--tp-line);border-radius:12px;background:#fff;color:var(--tp-ink);font:inherit;font-size:16px;text-align:left}
.smm-tp .smm-tp__addin:focus{outline:0;border-color:var(--tp-pf)}
.smm-tp .smm-tp__addrow .smm-tp__btn{min-height:44px;border-color:var(--tp-line)!important;color:var(--tp-ink)!important}
.smm-tp__addmsg{margin:8px 0 0;color:var(--tp-mut);font-size:13.5px;font-weight:600}
.smm-tp .smm-tp__done{display:block;width:100%;min-height:46px;margin:12px 0 0;border:0!important;border-radius:12px!important;background:var(--tp-g)!important;color:#fff!important;font:inherit;font-size:15px;font-weight:800;cursor:pointer;touch-action:manipulation}
.smm-tp__list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.smm-tp__li{display:flex;align-items:center;gap:10px;min-width:0;padding:6px;border-radius:12px;background:#fff;border:1px solid var(--tp-line)}
.smm-tp__lpic{position:relative;display:block;width:48px;height:48px;flex:0 0 auto;overflow:hidden;border-radius:10px;background:#eef0f6}
.smm-tp__lpic img{display:block;width:100%;height:100%;object-fit:cover}
.smm-tp__lpic.is-empty::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#eef0f6,#dfe3ec)}
.smm-tp__lit{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}
.smm-tp__lit b{font-size:14.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smm-tp__lit .smm-tp__cap{-webkit-line-clamp:1}
.smm-tp .smm-tp__x{flex:0 0 auto;width:34px;height:34px;margin:0;padding:0;border:0!important;border-radius:50%!important;background:#f1f3f8!important;color:var(--tp-mut)!important;font-size:14px;line-height:1;cursor:pointer}
.smm-tp__total{margin:6px 0 0;color:var(--tp-ink);font-size:14px;font-weight:700}
.smm-tp__total.is-bad{color:#7a5200}
.smm-tp__mode{display:flex;gap:6px;margin:10px 0 0;padding:4px;border-radius:12px;background:#eef0f6}
.smm-tp .smm-tp__modeb{flex:1 1 0;min-height:40px;margin:0;padding:4px 8px;border:0!important;border-radius:9px!important;background:transparent!important;color:var(--tp-mut)!important;font:inherit;font-size:13.5px;font-weight:700;line-height:1.25;cursor:pointer;touch-action:manipulation}
.smm-tp .smm-tp__modeb.is-on{background:#fff!important;color:var(--tp-ink)!important;box-shadow:0 1px 3px rgba(22,33,58,.16)}
.smm-tp-per{display:block;margin-top:2px;color:var(--smm-mut,#5b6b86);font-size:13px;font-weight:600}
input.is-locked{background:#f7f8fb!important;color:var(--smm-mut,#5b6b86)!important}
@media (max-width:420px){.smm-tp__grid{grid-template-columns:repeat(3,minmax(0,1fr))}.smm-tp__who.is-big .smm-tp__av{width:52px;height:52px}}
@media (prefers-reduced-motion:reduce){.smm-tp__spin{animation-duration:2s}.smm-tp__cell.is-ghost{animation:none}.smm-tp .smm-tp__cell{transition:none}}
