/* ANDRIK R507 — four-platform Social Center. */
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#030b11;color:#eef9ff;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
body{min-height:100dvh;overflow-x:hidden}
button,a{font:inherit}
.social-center-r488-bg{position:fixed;inset:0;pointer-events:none;background:radial-gradient(circle at 14% 3%,rgba(43,205,255,.12),transparent 28%),radial-gradient(circle at 87% 9%,rgba(222,76,255,.09),transparent 28%),linear-gradient(180deg,#05121a 0%,#030b11 38%,#02070b 100%)}
.social-center-r488-topbar{position:sticky;top:0;z-index:30;min-height:64px;display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:10px;padding:max(8px,env(safe-area-inset-top)) 14px 8px;border-bottom:1px solid rgba(134,209,235,.13);background:rgba(3,12,18,.88);backdrop-filter:blur(18px)}
.social-center-r488-back,.social-center-r488-refresh{width:44px;height:44px;display:grid;place-items:center;border:1px solid rgba(142,213,240,.18);border-radius:15px;background:rgba(8,29,40,.82);color:#e8faff;text-decoration:none;font-size:2rem;line-height:1;cursor:pointer}
.social-center-r488-refresh{font-size:1.45rem;font-weight:900}
.social-center-r488-refresh:disabled{opacity:.5}
.social-center-r488-titlebox{min-width:0;text-align:center}.social-center-r488-titlebox span{display:block;color:#78dff9;font-weight:900;font-size:.62rem;letter-spacing:.13em}.social-center-r488-titlebox strong{display:block;margin-top:1px;font-size:1.08rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.social-center-r488-main{position:relative;z-index:1;width:min(100%,980px);margin:0 auto;padding:20px 14px calc(34px + env(safe-area-inset-bottom))}
.social-center-r488-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,260px);gap:14px;align-items:stretch;margin-bottom:14px}.social-center-r488-hero>div:first-child,.social-center-r488-total,.social-center-r488-chart-card,.social-center-r488-card,.social-center-r488-instagram,.social-center-r488-next{border:1px solid rgba(132,205,232,.16);background:linear-gradient(180deg,rgba(7,26,37,.92),rgba(4,16,24,.92));box-shadow:0 18px 48px rgba(0,0,0,.22)}
.social-center-r488-hero>div:first-child{padding:20px;border-radius:24px}.social-center-r488-eyeline{display:block;color:#79dff8;font-size:.63rem;font-weight:950;letter-spacing:.12em}.social-center-r488-hero h1{margin:7px 0 7px;font-size:clamp(2rem,7vw,3rem);line-height:.94}.social-center-r488-hero p{margin:0;color:#98afba;font-size:.9rem;line-height:1.42}
.social-center-r488-total{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:18px;border-radius:24px;background:radial-gradient(circle at 80% 10%,rgba(71,223,255,.13),transparent 46%),linear-gradient(180deg,rgba(8,31,43,.96),rgba(4,18,27,.96))}.social-center-r488-total span{color:#9fb8c5;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.social-center-r488-total strong{margin:4px 0 2px;font-size:clamp(2.2rem,8vw,3.6rem);line-height:1;color:#f6fdff}.social-center-r488-total small{color:#6f8c9a;font-size:.72rem}
.social-center-r488-platforms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.social-center-r488-platform,.social-center-r488-skeleton{min-width:0;position:relative;padding:13px;border:1px solid rgba(132,205,232,.14);border-radius:20px;background:rgba(5,20,29,.9)}.social-center-r488-platform.is-future{opacity:.62;background:rgba(7,16,22,.75)}.social-center-r488-platform-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.social-center-r488-platform-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.055);font-weight:950}.social-center-r488-status{display:inline-flex;align-items:center;gap:5px;font-size:.61rem;font-weight:900;color:#81f3c5}.social-center-r488-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 12px currentColor}.social-center-r488-platform.is-future .social-center-r488-status{color:#8499a3}.social-center-r488-platform h3{margin:10px 0 2px;font-size:1rem}.social-center-r488-platform strong{display:block;font-size:1.65rem;line-height:1.05}.social-center-r488-platform small{display:block;margin-top:3px;color:#7f98a4;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.social-center-r488-chart-card,.social-center-r488-card,.social-center-r488-instagram,.social-center-r488-next{position:relative;padding:16px;border-radius:24px;margin-bottom:14px}.social-center-r488-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.social-center-r488-card-head h2{margin:4px 0 0;font-size:1.25rem}.social-center-r488-period{color:#8ea7b2;font-size:.72rem;font-weight:850;white-space:nowrap}
.social-center-r488-toggles{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}.social-center-r488-toggle{min-height:36px;padding:0 12px;border:1px solid rgba(140,211,236,.16);border-radius:999px;background:rgba(7,25,35,.8);color:#9eb4bf;font-size:.72rem;font-weight:900;cursor:pointer}.social-center-r488-toggle.is-active{color:#f3fcff;border-color:rgba(164,227,249,.34);box-shadow:0 0 0 1px rgba(255,255,255,.02) inset}.social-center-r488-toggle.is-site.is-active{background:rgba(48,205,132,.18);border-color:rgba(79,231,157,.36)}.social-center-r488-toggle.is-youtube.is-active{background:rgba(230,63,79,.16);border-color:rgba(255,101,118,.38)}.social-center-r488-toggle.is-instagram.is-active{background:rgba(224,178,28,.18);border-color:rgba(255,213,74,.40)}.social-center-r488-toggle.is-tiktok.is-active{background:rgba(232,54,137,.18);border-color:rgba(255,79,163,.42)}.social-center-r488-toggle:disabled{opacity:.42;cursor:default}.social-center-r488-chart{position:relative;min-height:265px;border:1px solid rgba(120,190,217,.1);border-radius:19px;background:linear-gradient(180deg,rgba(2,11,17,.56),rgba(4,18,25,.72));overflow:hidden}.social-center-r488-svg{display:block;width:100%;height:auto;min-height:265px}.social-center-r488-grid-line{stroke:rgba(151,197,216,.11);stroke-width:1}.social-center-r488-axis,.social-center-r488-date{fill:#6f8792;font-size:10px;font-weight:700}.social-center-r488-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px rgba(255,255,255,.08))} .social-center-r488-line.is-site{stroke:#55e39d}.social-center-r488-line.is-youtube{stroke:#ff6576}.social-center-r488-line.is-instagram{stroke:#ffd54a}.social-center-r488-line.is-tiktok{stroke:#ff4fa3}.social-center-r488-dot{stroke:#061018;stroke-width:2}.social-center-r488-dot.is-site{fill:#55e39d}.social-center-r488-dot.is-youtube{fill:#ff6576}.social-center-r488-dot.is-instagram{fill:#ffd54a}.social-center-r488-dot.is-tiktok{fill:#ff4fa3}.social-center-r488-cross{stroke:rgba(226,247,255,.5);stroke-width:1;stroke-dasharray:3 4}.social-center-r488-tooltip{position:absolute;z-index:5;min-width:145px;padding:9px 10px;border:1px solid rgba(158,224,247,.2);border-radius:14px;background:rgba(2,12,18,.96);box-shadow:0 12px 28px rgba(0,0,0,.38);pointer-events:none;font-size:.7rem}.social-center-r488-tooltip strong{display:block;margin-bottom:4px}.social-center-r488-tooltip span{display:flex;justify-content:space-between;gap:14px;color:#9db2bc}.social-center-r488-tooltip b{color:#f1fbff}.social-center-r488-chart-note{margin-top:8px;color:#607d89;font-size:.65rem;line-height:1.35}.social-center-r488-empty,.social-center-r488-skeleton{display:grid;place-items:center;min-height:90px;color:#78919d;font-size:.78rem}
.social-center-r488-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:14px}.social-center-r488-grid>.social-center-r488-card{margin-bottom:14px}.social-center-r488-share-list{display:grid;gap:11px;margin-top:14px}.social-center-r488-share-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:10px}.social-center-r488-share-row span{font-size:.75rem;font-weight:850}.social-center-r488-share-track{height:9px;border-radius:999px;background:#0a1e28;overflow:hidden}.social-center-r488-share-fill{height:100%;border-radius:inherit;min-width:3px}.social-center-r488-share-fill.is-site{background:#55e39d}.social-center-r488-share-fill.is-youtube{background:#ff6576}.social-center-r488-share-fill.is-instagram{background:#ffd54a}.social-center-r488-share-fill.is-tiktok{background:#ff4fa3}.social-center-r488-share-row b{font-size:.78rem}.social-center-r488-record{display:flex;min-height:135px;flex-direction:column;justify-content:center;align-items:center;text-align:center}.social-center-r488-record strong{font-size:2.1rem}.social-center-r488-record span{margin-top:4px;color:#b6cbd4;font-weight:850}.social-center-r488-record small{margin-top:8px;color:#6e8792;font-size:.68rem}
.social-center-r488-instagram-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.social-center-r488-ig-metric{padding:12px;border:1px solid rgba(208,123,238,.14);border-radius:17px;background:rgba(43,15,51,.2)}.social-center-r488-ig-metric span{display:block;color:#ad93b6;font-size:.64rem;font-weight:850}.social-center-r488-ig-metric strong{display:block;margin-top:4px;font-size:1.28rem}
.social-center-r488-next-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:14px}.social-center-r488-next-item{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;border:1px dashed rgba(132,205,232,.15);border-radius:17px;background:rgba(4,15,22,.58)}.social-center-r488-next-item>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.04);font-weight:950}.social-center-r488-next-item strong{display:block;font-size:.82rem}.social-center-r488-next-item small{display:block;margin-top:2px;color:#69838e;font-size:.62rem;line-height:1.25}.social-center-r488-next-item b{color:#607987;font-size:.61rem;text-transform:uppercase}
.social-center-r488-warning{margin:0 0 14px;padding:12px 13px;border:1px solid rgba(255,184,92,.24);border-radius:16px;background:rgba(83,50,9,.24);color:#ffdca7;font-size:.74rem;line-height:1.4}.social-center-r488-footer{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px;color:#536e79;font-size:.68rem}.social-center-r488-footer strong{color:#76dff7}
.control-home-menu-card.is-social{border-color:rgba(103,218,245,.24)!important;background:radial-gradient(circle at 12% 10%,rgba(70,220,255,.10),transparent 36%),rgba(5,20,29,.78)!important}.control-home-menu-card.is-social>span{background:linear-gradient(145deg,rgba(49,199,239,.16),rgba(199,80,235,.11))!important}
@media(max-width:720px){.social-center-r488-hero{grid-template-columns:1fr}.social-center-r488-total{min-height:120px}.social-center-r488-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}.social-center-r488-grid{grid-template-columns:1fr}.social-center-r488-instagram-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.social-center-r488-next-grid{grid-template-columns:1fr}.social-center-r488-chart{min-height:245px}.social-center-r488-svg{min-height:245px}}
@media(max-width:420px){.social-center-r488-main{padding-inline:10px}.social-center-r488-hero>div:first-child,.social-center-r488-total,.social-center-r488-chart-card,.social-center-r488-card,.social-center-r488-instagram,.social-center-r488-next{border-radius:20px}.social-center-r488-hero>div:first-child{padding:17px}.social-center-r488-platforms{gap:8px}.social-center-r488-platform{padding:11px}.social-center-r488-platform strong{font-size:1.45rem}.social-center-r488-share-row{grid-template-columns:74px minmax(0,1fr) auto}.social-center-r488-chart-card,.social-center-r488-card,.social-center-r488-instagram,.social-center-r488-next{padding:13px}}

/* R489: connected accounts are visible and clickable. */
a.social-center-r488-platform{display:block;text-decoration:none;color:inherit;-webkit-tap-highlight-color:transparent}
a.social-center-r488-platform:active{transform:scale(.985)}
.social-center-r488-account{display:block;margin:-2px 0 5px;color:#8fdff2;font-size:.66rem;font-weight:850;letter-spacing:.015em}
.social-center-r488-platform em{display:block;margin-top:7px;color:#6fb5c7;font-size:.60rem;font-style:normal;font-weight:800}
.social-center-r488-platform.is-instagram .social-center-r488-account{color:#ffe18a}.social-center-r488-platform.is-tiktok .social-center-r488-account{color:#ff8fc1}
.social-center-r488-platform.is-youtube .social-center-r488-account{color:#ff9da8}

/* R491: OAuth recovery and unavailable-metric semantics. */
.social-center-r488-ig-metric.is-unavailable{opacity:.58}
.social-center-r488-ig-metric.is-unavailable strong{color:#6f8490}

/* R498: five-platform palette + centered monthly total. */

/* R498 platform identity */
.social-center-r488-platform.is-site{border-color:rgba(85,227,157,.18)}
.social-center-r488-platform.is-youtube{border-color:rgba(255,101,118,.18)}
.social-center-r488-platform.is-instagram{border-color:rgba(255,213,74,.18)}

.social-center-r488-platform.is-tiktok{border-color:rgba(255,79,163,.20)}
.social-center-r488-platform.is-site .social-center-r488-platform-icon{color:#55e39d}
.social-center-r488-platform.is-youtube .social-center-r488-platform-icon{color:#ff6576}
.social-center-r488-platform.is-instagram .social-center-r488-platform-icon{color:#ffd54a}

.social-center-r488-platform.is-tiktok .social-center-r488-platform-icon{color:#ff4fa3;font-size:.72rem}
@media(max-width:900px){.social-center-r488-platforms{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:430px){.social-center-r488-platforms{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.social-center-r488-platform:last-child{grid-column:auto}.social-center-r488-platform strong{font-size:1.45rem}}

/* R503: TikTok Sandbox / Production OAuth switch + current Display API counters. */
.social-center-r503-connect{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:9px;padding:0 13px;border:1px solid rgba(255,79,163,.42);border-radius:999px;background:rgba(232,54,137,.16);color:#ffd8eb;font:800 .68rem/1 system-ui,-apple-system,Segoe UI,sans-serif;cursor:pointer}
.social-center-r503-connect:disabled{opacity:.58;cursor:wait}
.social-center-r495-open.is-tiktok{color:#ff8fc1}
.social-center-r503-tiktok{position:relative;padding:16px;border:1px solid rgba(255,79,163,.18);border-radius:24px;margin-bottom:14px;background:radial-gradient(circle at 86% 10%,rgba(255,79,163,.09),transparent 42%),rgba(5,20,29,.9)}
.social-center-r503-tt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}
.social-center-r503-tt-metric{padding:12px;border:1px solid rgba(255,79,163,.15);border-radius:17px;background:rgba(54,10,34,.22)}
.social-center-r503-tt-metric span{display:block;color:#c696ad;font-size:.64rem;font-weight:850}
.social-center-r503-tt-metric strong{display:block;margin-top:4px;font-size:1.28rem}
.social-center-r503-tt-metric.is-unavailable{opacity:.58}.social-center-r503-tt-metric.is-unavailable strong{color:#6f8490}
.social-center-r503-tt-note{margin:10px 1px 0;color:#7f98a4;font-size:.66rem;line-height:1.4}
@media(max-width:720px){.social-center-r503-tt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.social-center-r503-tiktok{padding:13px;border-radius:20px}}


/* R503: explicit TikTok environment selector. */
.social-center-r503-mode-switch{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap}
.social-center-r503-mode{min-height:31px;padding:0 10px;border:1px solid rgba(255,79,163,.22);border-radius:999px;background:rgba(33,13,25,.72);color:#a98395;font:900 .59rem/1 system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:.035em;cursor:pointer}
.social-center-r503-mode.is-active{border-color:rgba(255,79,163,.58);background:rgba(232,54,137,.24);color:#ffe4f1;box-shadow:0 0 18px rgba(255,79,163,.10)}
.social-center-r503-mode.is-ready::after{content:"";display:inline-block;width:5px;height:5px;margin-left:5px;border-radius:50%;background:#66efbc;vertical-align:1px;box-shadow:0 0 8px rgba(102,239,188,.7)}
.social-center-r503-mode:active{transform:scale(.98)}
.social-center-r503-tiktok[data-tiktok-mode="sandbox"]{border-style:dashed}
@media(max-width:420px){.social-center-r503-mode{padding-inline:9px;font-size:.56rem}}


/* R505: compact platform cards, no visible external-link labels, 28-day summary first. */
.social-center-r488-platform{padding:11px 12px;min-height:0}
.social-center-r488-platform h3{margin:7px 0 1px;font-size:.98rem;line-height:1.05}
.social-center-r488-account{margin:0 0 3px;font-size:.61rem;line-height:1.05}
.social-center-r488-platform strong{font-size:1.52rem;line-height:1}
.social-center-r506-card-detail{margin-top:4px!important;font-size:.60rem!important;line-height:1.18!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;min-height:1.2em}
.social-center-r488-platform em,.social-center-r495-open{display:none!important}
.social-center-r503-mode-switch{display:none!important}
.social-center-r488-grid{margin-bottom:0}
.social-center-r488-grid>.social-center-r488-card{margin-bottom:14px}
.social-center-r488-share-list{margin-top:10px;gap:9px}
.social-center-r488-share-row{grid-template-columns:76px minmax(0,1fr) auto;gap:8px}
.social-center-r488-share-row.is-pending{opacity:.72}
.social-center-r488-share-row.is-pending .social-center-r488-share-track{background:repeating-linear-gradient(90deg,#0a1e28 0 8px,#102733 8px 12px)}
.social-center-r488-share-row.is-pending b{color:#8aa0aa;font-size:.66rem}
.social-center-r488-card-head h2{font-size:1.16rem}
.social-center-r488-record{min-height:105px}
.social-center-r488-record strong{font-size:1.75rem}
.social-center-r488-warning{font-size:.68rem}
@media(max-width:430px){
  .social-center-r488-platform{padding:10px 11px;border-radius:18px}
  .social-center-r488-platform-icon{width:32px;height:32px;border-radius:10px}
  .social-center-r488-status{font-size:.57rem}
  .social-center-r488-status::before{width:6px;height:6px}
  .social-center-r488-platform h3{font-size:.94rem}
  .social-center-r488-platform strong{font-size:1.38rem}
  .social-center-r488-share-row{grid-template-columns:70px minmax(0,1fr) auto}
}


/* R507: cached-first paint retained; four-platform UI. */






@media(max-width:720px){}
@media(max-width:420px){}

@media(max-width:520px){.social-center-r488-toggles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0 8px}.social-center-r488-toggle{display:grid;place-items:center;width:100%;min-height:34px;padding:0 8px;font-size:.68rem;line-height:1;white-space:nowrap;text-align:center}.social-center-r488-chart{margin-top:0;min-height:232px}.social-center-r488-svg{min-height:232px}}

@media(max-width:390px){.social-center-r488-toggles{gap:6px}.social-center-r488-toggle{padding:0 6px;font-size:.65rem}}


/* R511 — platform swipe hub. Detailed Instagram/TikTok blocks moved to their own pages. */
.social-center-r511-swipe-hint{margin:-2px 0 14px;padding:10px 12px;border:1px solid rgba(120,213,244,.13);border-radius:16px;background:rgba(5,20,29,.64);color:#7797a5;font-size:.67rem;font-weight:800;text-align:center;letter-spacing:.02em}
.social-center-r511-swipe-hint b{color:#ccefff}
.social-center-r488-main{padding-bottom:calc(48px + env(safe-area-inset-bottom))}
@media(max-width:520px){.social-center-r488-hero p{font-size:.82rem;line-height:1.34}.social-center-r511-swipe-hint{font-size:.62rem}}


/* R881B PANEL POLISH — 10–15% softer green glow, geometry untouched. */
.social-center-r488-status::before{box-shadow:0 0 10px currentColor}
.social-center-r488-platform.is-site{border-color:rgba(85,227,157,.16)}
.social-center-r488-toggle.is-site.is-active{border-color:rgba(79,231,157,.32)}
.social-center-r503-mode.is-ready::after{box-shadow:0 0 7px rgba(102,239,188,.60)}
