:root{
  --font-main:"Manrope",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --radius:18px;
  --bg:#070a12;
  --bg-soft:#0b1020;
  --panel:#0d1322;
  --panel-2:#111a2d;
  --line:#1e2a40;
  --text:#eef4ff;
  --muted:#91a0b8;
  --accent:#4f7cff;
  --accent-soft:rgba(79,124,255,.14);
  --accent-2:#32d583;
  --danger:#ff5c7a;
  --thumb:#111827;
  --code-bg:#050914;
  --code-head:#0b1020;
  --input-bg:#070b15;
  --card-gradient:linear-gradient(180deg,rgba(17,26,45,.95),rgba(13,19,34,.95));
  --body-bg:#090d16;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}

html.rsc-theme-boot *,
html.rsc-theme-boot *::before,
html.rsc-theme-boot *::after{transition:none !important;}
html[data-rsc-theme="light"]{
  --bg:#f8efe7;
  --bg-soft:#fff6ee;
  --panel:#fffaf5;
  --panel-2:#f2e7dc;
  --line:#ead9cb;
  --text:#2a2422;
  --muted:#766b64;
  --accent:#9d6cff;
  --accent-soft:rgba(157,108,255,.13);
  --accent-2:#d88771;
  --danger:#d95768;
  --thumb:#f4e5d8;
  --code-bg:#fff7ef;
  --code-head:#f2e4d8;
  --input-bg:#fffaf5;
  --card-gradient:linear-gradient(180deg,rgba(255,250,245,.96),rgba(251,241,232,.96));
  --body-bg:radial-gradient(circle at 12% -5%,#ffe7dc 0,#f8efe7 34%,#f3e8e6 67%,#eee7f6 100%);
  --shadow:0 22px 60px rgba(111,78,55,.12);
}
html[data-rsc-theme="dark"]{
  --bg:#070a12;
  --bg-soft:#0b1020;
  --panel:#0d1322;
  --panel-2:#111a2d;
  --line:#1e2a40;
  --text:#eef4ff;
  --muted:#91a0b8;
  --accent:#4f7cff;
  --accent-soft:rgba(79,124,255,.14);
  --accent-2:#32d583;
  --danger:#ff5c7a;
  --thumb:#111827;
  --code-bg:#050914;
  --code-head:#0b1020;
  --input-bg:#070b15;
  --card-gradient:linear-gradient(180deg,rgba(17,26,45,.95),rgba(13,19,34,.95));
  --body-bg:#090d16;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}
html.rsc-theme-light .brand-mark{background:linear-gradient(135deg,#c7a0ff,#f0a58d)}
html.rsc-theme-light .button,html.rsc-theme-light .load-more,html.rsc-theme-light .copy-code,html.rsc-theme-light .report-form button,html.rsc-theme-light .search-form button{color:#fff}
html.rsc-theme-light .status-badge.key{color:#9f6b22}
html.rsc-theme-light .status-badge{border-color:#d6c4b9}
html.rsc-theme-light .search-form input::placeholder{color:#9b8d84}
body.rsc-theme-light{
  --bg:#f8efe7;
  --bg-soft:#fff6ee;
  --panel:#fffaf5;
  --panel-2:#f2e7dc;
  --line:#ead9cb;
  --text:#2a2422;
  --muted:#766b64;
  --accent:#9d6cff;
  --accent-soft:rgba(157,108,255,.13);
  --accent-2:#d88771;
  --danger:#d95768;
  --thumb:#f4e5d8;
  --code-bg:#fff7ef;
  --code-head:#f2e4d8;
  --input-bg:#fffaf5;
  --card-gradient:linear-gradient(180deg,rgba(255,250,245,.96),rgba(251,241,232,.96));
  --body-bg:radial-gradient(circle at 12% -5%,#ffe7dc 0,#f8efe7 34%,#f3e8e6 67%,#eee7f6 100%);
  --shadow:0 22px 60px rgba(111,78,55,.12);
}
body.rsc-theme-dark{
  --bg:#070a12;
  --bg-soft:#0b1020;
  --panel:#0d1322;
  --panel-2:#111a2d;
  --line:#1e2a40;
  --text:#eef4ff;
  --muted:#91a0b8;
  --accent:#4f7cff;
  --accent-soft:rgba(79,124,255,.14);
  --accent-2:#32d583;
  --danger:#ff5c7a;
  --thumb:#111827;
  --code-bg:#050914;
  --code-head:#0b1020;
  --input-bg:#070b15;
  --card-gradient:linear-gradient(180deg,rgba(17,26,45,.95),rgba(13,19,34,.95));
  --body-bg:#090d16;
  --shadow:0 20px 60px rgba(0,0,0,.35);
}
*{box-sizing:border-box}body{margin:0;background:var(--body-bg);color:var(--text);font-family:var(--font-main);line-height:1.55;transition:background .2s ease,color .2s ease}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.container{width:min(1180px,calc(100% - 32px));margin:0 auto}.site-header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 84%,transparent);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{min-height:76px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(135deg,var(--accent),#8a5cff);box-shadow:var(--shadow)}.primary-nav{display:flex;align-items:center;gap:12px;margin-left:auto}.primary-nav ul{display:flex;gap:8px;list-style:none;margin:0;padding:0}.primary-nav a,.nav-pill{color:var(--muted);font-weight:700;font-size:14px;padding:9px 12px;border-radius:999px}.primary-nav a:hover,.nav-pill:hover{color:var(--text);background:var(--panel-2)}.search-form{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);border-radius:999px;padding:6px}.search-form input,.search-form select{background:transparent;border:0;color:var(--text);outline:0}.search-form input{width:180px;padding:8px 10px}.search-form select{color:var(--muted)}.search-form button,.button,.load-more,.copy-code,.report-form button{border:0;border-radius:999px;padding:11px 16px;font-weight:800;cursor:pointer;background:var(--accent);color:white}.hero{padding:76px 0 44px}.hero-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:32px;align-items:center}.eyebrow{margin:0 0 10px;color:var(--accent-2);font-weight:900;text-transform:uppercase;letter-spacing:.12em;font-size:12px}.hero h1{font-size:clamp(40px,6vw,72px);line-height:.95;margin:0 0 22px;letter-spacing:-.05em}.hero-text{font-size:18px;color:var(--muted);max-width:680px;margin:0 0 28px}.hero-actions,.action-row{display:flex;gap:12px;flex-wrap:wrap}.button{display:inline-flex;align-items:center;justify-content:center}.button.ghost{background:transparent;border:1px solid var(--line);color:var(--text)}.hero-panel,.single-card,.sidebar-card,.place-card,.profile-header{background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.hero-panel{padding:28px}.panel-label{color:var(--muted);font-weight:800}.hero-panel ul{margin:18px 0 0;padding:0;list-style:none}.hero-panel li{padding:12px 0;border-bottom:1px solid var(--line);color:var(--text)}.content-section{padding:36px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h1,.section-heading h2{margin:0;font-size:32px;letter-spacing:-.03em}.section-heading p{margin:0;color:var(--muted)}.script-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.script-card{overflow:hidden;background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);transition:.18s ease;min-height:100%;box-shadow:var(--shadow)}.script-card:hover{transform:translateY(-3px);border-color:var(--accent)}.script-thumb{position:relative;aspect-ratio:16/10;background:var(--thumb);display:grid;place-items:center;overflow:hidden}.script-thumb img{width:100%;height:100%;object-fit:cover}.placeholder-thumb{color:color-mix(in srgb,var(--muted) 50%,transparent);font-weight:900;font-size:28px;letter-spacing:.12em}.status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;background:rgba(50,213,131,.14);color:var(--accent-2);border:1px solid rgba(50,213,131,.35);font-size:12px;font-weight:900}.script-thumb .status-badge{position:absolute;top:10px;left:10px}.status-badge.key{background:rgba(255,183,77,.16);color:#ffd18a;border-color:rgba(255,183,77,.35)}.script-card-body{padding:16px}.meta-row{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px;margin-bottom:8px}.script-card h2{font-size:17px;line-height:1.25;margin:0 0 10px}.script-card p{margin:0 0 16px;color:var(--muted);font-size:14px}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px}.mini-button{padding:7px 10px;border-radius:999px;background:var(--panel-2);color:var(--text)}.load-more{display:block;margin:26px auto 0}.empty-state{grid-column:1/-1;padding:28px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);text-align:center}.single-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;padding:42px 0}.place-layout{padding:42px 0}.single-card,.sidebar-card{padding:26px}.single-meta{display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:var(--muted);font-size:14px;margin-bottom:16px}.single-card h1{font-size:clamp(32px,5vw,56px);line-height:1;margin:0 0 22px;letter-spacing:-.04em}.single-cover{overflow:hidden;border-radius:16px;margin-bottom:24px;border:1px solid var(--line)}.entry-content{color:var(--text)}.entry-content a{color:var(--accent);text-decoration:underline}.code-box{margin-top:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--code-bg)}.code-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:var(--code-head);border-bottom:1px solid var(--line)}.code-toolbar h2{font-size:16px;margin:0}.code-box pre{margin:0;max-height:460px;overflow:auto;padding:18px}.code-box code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--text);font-size:13px;white-space:pre-wrap}.sidebar-card h2{margin-top:0}.report-form{display:grid;gap:14px}.report-form label{display:grid;gap:8px;color:var(--muted);font-weight:700}.report-form select,.report-form textarea{width:100%;border:1px solid var(--line);background:var(--input-bg);color:var(--text);border-radius:12px;padding:11px}.muted{color:var(--muted)}.place-stats{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.place-stats span,.profile-stats span{border:1px solid var(--line);background:var(--accent-soft);border-radius:999px;padding:9px 12px;color:var(--muted)}.place-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.place-card{overflow:hidden}.place-card div{padding:16px}.place-card h2{margin:0 0 8px;font-size:20px}.place-card p{color:var(--muted);margin:0}.profile-header{margin-top:42px;padding:24px;display:flex;align-items:center;gap:18px}.profile-avatar img{border-radius:18px}.profile-header h1{margin:0;font-size:38px}.profile-stats{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap}.pagination{margin-top:0;color:var(--muted)}.site-footer{border-top:1px solid var(--line);margin-top:48px;padding:28px 0;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between;gap:18px}.footer-inner ul{display:flex;gap:12px;margin:0;padding:0;list-style:none}.theme-toggle{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:8px;box-shadow:none}.theme-toggle:hover{background:var(--panel-2)}.theme-toggle-icon{font-size:15px;line-height:1}.theme-toggle-text{font-size:13px}.rsc-theme-light .brand-mark{background:linear-gradient(135deg,#c7a0ff,#f0a58d)}.rsc-theme-light .button,.rsc-theme-light .load-more,.rsc-theme-light .copy-code,.rsc-theme-light .report-form button,.rsc-theme-light .search-form button{color:#fff}.rsc-theme-light .status-badge.key{color:#9f6b22}.rsc-theme-light .status-badge{border-color:#d6c4b9}.rsc-theme-light .search-form input::placeholder{color:#9b8d84}
@media(max-width:980px){.header-inner{flex-wrap:wrap;padding:14px 0}.primary-nav{order:3;width:100%;margin-left:0}.hero-grid,.single-layout{grid-template-columns:1fr}.script-grid{grid-template-columns:repeat(2,1fr)}.place-grid{grid-template-columns:1fr 1fr}.profile-stats{margin-left:0}.profile-header{align-items:flex-start;flex-direction:column}}@media(max-width:640px){.script-grid,.place-grid{grid-template-columns:1fr}.search-form{width:100%;border-radius:18px;flex-wrap:wrap}.search-form input{width:100%;}.hero{padding-top:44px}.footer-inner{flex-direction:column}}
/* Core plugin integration */
.status-badge.key-system{background:rgba(255,183,77,.16);color:#ffd18a;border-color:rgba(255,183,77,.35)}
.rsc-theme-light .status-badge.key-system{color:#9f6b22;background:rgba(217,148,91,.16);border-color:#e4c2a5}
.script-info-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 0 24px}.script-info-panel div,.sidebar-list div{border:1px solid var(--line);background:var(--accent-soft);border-radius:16px;padding:13px 14px}.script-info-panel span,.sidebar-list span{display:block;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.script-info-panel strong,.sidebar-list strong{display:block;margin-top:4px;color:var(--text);font-size:14px}.features-box{margin-top:24px;border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--panel)}.features-box h2{margin:0 0 10px;font-size:18px}.features-box p:last-child{margin-bottom:0}.script-actions{margin-top:22px}.script-sidebar{align-self:start}.sidebar-list{display:grid;gap:10px;margin-bottom:24px}.rsc-core-code{margin:20px 0;border:1px solid var(--line);border-radius:16px;background:var(--code-bg);color:var(--text);padding:18px;overflow:auto}.rsc-core-code code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap}.rsc-theme-light .rsc-script-page .single-card,.rsc-theme-light .rsc-script-page .sidebar-card{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13)}.rsc-theme-light .script-info-panel div,.rsc-theme-light .sidebar-list div,.rsc-theme-light .features-box{background:rgba(255,246,238,.72)}
@media(max-width:980px){.script-info-panel{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.script-info-panel{grid-template-columns:1fr}}

/* v1.3.0 theme polish */
html[data-rsc-theme],
html[data-rsc-theme] body,
html[data-rsc-theme] .site-header,
html[data-rsc-theme] .script-card,
html[data-rsc-theme] .single-card,
html[data-rsc-theme] .sidebar-card,
html[data-rsc-theme] .place-card,
html[data-rsc-theme] .profile-header,
html[data-rsc-theme] .script-thumb,
html[data-rsc-theme] .mini-button,
html[data-rsc-theme] .theme-toggle,
html[data-rsc-theme] .search-form,
html[data-rsc-theme] .code-box,
html[data-rsc-theme] .code-toolbar,
html[data-rsc-theme] .features-box,
html[data-rsc-theme] .script-info-panel div,
html[data-rsc-theme] .sidebar-list div,
html[data-rsc-theme] input,
html[data-rsc-theme] select,
html[data-rsc-theme] textarea,
html[data-rsc-theme] a,
html[data-rsc-theme] p,
html[data-rsc-theme] span,
html[data-rsc-theme] h1,
html[data-rsc-theme] h2,
html[data-rsc-theme] h3 {
  transition-property: background, background-color, color, border-color, box-shadow, opacity, filter;
  transition-duration: .34s;
  transition-timing-function: ease;
}

.status-badge,
.status-badge.key,
.status-badge.key-system,
.rsc-theme-light .status-badge,
.rsc-theme-light .status-badge.key,
.rsc-theme-light .status-badge.key-system {
  opacity: 1;
  backdrop-filter: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.status-badge {
  background: #22c55e;
  color: #04130a;
  border-color: #22c55e;
}
.status-badge.key,
.status-badge.key-system {
  background: #f59e0b;
  color: #1f1300;
  border-color: #f59e0b;
}
.rsc-theme-light .status-badge {
  background: #4fbf78;
  color: #082313;
  border-color: #4fbf78;
}
.rsc-theme-light .status-badge.key,
.rsc-theme-light .status-badge.key-system {
  background: #e8a84f;
  color: #291801;
  border-color: #e8a84f;
}

.card-author {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
.card-author img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel-2);
  box-shadow: 0 8px 18px rgba(0,0,0,.14);
}
.card-author span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-footer .mini-button {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* v1.3.1 mobile layout fixes */
.header-actions{
  display:flex;
  align-items:center;
  gap:16px;
  margin-left:auto;
}
.mobile-menu-toggle{
  display:none;
  width:44px;
  height:44px;
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  color:var(--text);
  cursor:pointer;
}
.mobile-menu-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .24s ease, opacity .24s ease;
}
.rsc-mobile-menu-open .mobile-menu-toggle span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.rsc-mobile-menu-open .mobile-menu-toggle span:nth-child(2){opacity:0}
.rsc-mobile-menu-open .mobile-menu-toggle span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

@media(max-width:980px){
  .container{width:min(100% - 24px,1180px)}
  .header-inner{
    min-height:64px;
    padding:10px 0;
    flex-wrap:nowrap;
    position:relative;
    gap:10px;
  }
  .brand{min-width:0;font-size:16px;gap:8px}
  .brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:52vw}
  .brand-mark{width:34px;height:34px;border-radius:11px;flex:0 0 34px}
  .mobile-menu-toggle{display:inline-flex;margin-left:auto;flex:0 0 44px}
  .header-actions{
    position:absolute;
    top:calc(100% + 10px);
    left:0;
    right:0;
    z-index:60;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
    margin-left:0;
    padding:14px;
    border:1px solid var(--line);
    border-radius:18px;
    background:color-mix(in srgb,var(--panel) 96%,transparent);
    box-shadow:var(--shadow);
    opacity:0;
    transform:translateY(-8px);
    pointer-events:none;
    visibility:hidden;
    transition:opacity .22s ease, transform .22s ease, visibility .22s ease, background .34s ease, border-color .34s ease;
  }
  .rsc-mobile-menu-open .header-actions{
    opacity:1;
    transform:translateY(0);
    pointer-events:auto;
    visibility:visible;
  }
  .primary-nav{
    order:initial;
    width:100%;
    margin-left:0;
    display:grid;
    gap:8px;
  }
  .primary-nav ul{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    width:100%;
  }
  .primary-nav a,.nav-pill{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    min-height:42px;
    background:var(--panel-2);
  }
  .theme-toggle{width:100%;justify-content:center;min-height:44px;border-radius:14px}
  .search-form{
    width:100%;
    border-radius:16px;
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px;
    padding:8px;
  }
  .search-form input{width:100%;min-width:0}
  .search-form select{grid-column:1 / -1;width:100%;padding:9px 10px;border-radius:12px;background:var(--panel-2)}
  .search-form button{min-height:40px;padding:10px 14px}

  .hero{padding:42px 0 24px}
  .hero h1{font-size:clamp(34px,10vw,54px)}
  .content-section{padding:28px 0}
  .section-heading{align-items:flex-start;flex-direction:column;gap:8px}
  .section-heading h1,.section-heading h2{font-size:28px}
  .script-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .script-card{border-radius:16px}
  .script-card-body{padding:14px}
  .script-card h2{font-size:16px}
  .script-card p{font-size:13px;margin-bottom:14px}
  .card-footer{align-items:flex-start;flex-direction:column;gap:10px}
  .card-footer .mini-button{max-width:100%;width:100%;text-align:center;display:block}
  .card-author{max-width:100%;width:100%}
  .meta-row{font-size:11px}
  .single-layout{grid-template-columns:1fr;gap:16px;padding:28px 0}
  .single-card,.sidebar-card{padding:18px;border-radius:16px}
  .single-card h1{font-size:clamp(30px,9vw,44px)}
  .code-toolbar{align-items:flex-start;flex-direction:column}
  .code-box pre{max-height:360px;padding:14px}
  .place-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:640px){
  .container{width:min(100% - 20px,1180px)}
  .site-header{position:sticky}
  .header-inner{min-height:60px}
  .brand span:last-child{max-width:46vw}
  .header-actions{top:calc(100% + 8px);padding:12px;border-radius:16px}
  .primary-nav ul{grid-template-columns:1fr}
  .script-grid,.place-grid{grid-template-columns:1fr;gap:14px}
  .script-thumb{aspect-ratio:16/9}
  .script-card{display:grid;grid-template-columns:1fr;min-width:0}
  .script-card-body{min-width:0}
  .meta-row{flex-wrap:wrap;justify-content:flex-start;gap:8px 12px}
  .script-card h2{font-size:18px;line-height:1.22}
  .script-card p{font-size:14px;line-height:1.45}
  .status-badge{font-size:11px;padding:6px 8px}
  .mini-button{white-space:normal;line-height:1.25}
  .hero-panel{padding:18px;border-radius:16px}
  .hero-text{font-size:16px}
  .hero-actions,.action-row{display:grid;grid-template-columns:1fr;width:100%}
  .button{width:100%}
  .script-info-panel{grid-template-columns:1fr;gap:10px}
  .footer-inner{flex-direction:column}
}

@media(max-width:420px){
  .brand span:last-child{max-width:38vw}
  .search-form{grid-template-columns:1fr}
  .search-form button{width:100%}
  .section-heading h1,.section-heading h2{font-size:24px}
  .single-card,.sidebar-card{padding:16px}
  .card-author img{width:26px;height:26px;flex-basis:26px}
}

/* v1.3.2 mobile single-script hardening */
html, body { max-width: 100%; overflow-x: hidden; }
.site-main, .container, .single-layout, .single-card, .sidebar-card, .entry-content, .features-box, .code-box { min-width: 0; max-width: 100%; }
.single-card { overflow: hidden; }
.single-card h1, .entry-content, .features-box, .script-info-panel strong, .sidebar-list strong { overflow-wrap: anywhere; word-break: normal; }
.single-cover { width: 100%; max-width: 100%; overflow: hidden; }
.single-cover img, .single-card img, .entry-content img { width: 100% !important; max-width: 100% !important; height: auto !important; object-fit: cover; }
.code-box pre, .rsc-core-code { max-width: 100%; overflow-x: auto; }
.code-box code, .rsc-core-code code { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.script-actions .button { min-width: 0; max-width: 100%; white-space: normal; text-align: center; }

@media (max-width: 640px) {
  .single-layout { width: min(100% - 20px, 1180px); margin-left: auto; margin-right: auto; padding: 28px 0; }
  .single-card, .sidebar-card { width: 100%; padding: 16px; border-radius: 18px; }
  .single-meta { gap: 8px 10px; font-size: 13px; }
  .single-card h1 { font-size: clamp(28px, 8.5vw, 38px); line-height: 1.08; letter-spacing: -0.035em; }
  .single-cover { border-radius: 14px; margin-bottom: 18px; }
  .script-info-panel { grid-template-columns: 1fr; }
  .script-info-panel div, .sidebar-list div { padding: 12px; }
  .features-box { padding: 14px; }
  .code-toolbar { align-items: stretch; }
  .copy-code { width: 100%; }
}

@media (max-width: 420px) {
  .container, .single-layout { width: calc(100% - 16px); }
  .single-card, .sidebar-card { padding: 14px; }
  .single-card h1 { font-size: clamp(26px, 8vw, 34px); }
  .single-meta .status-badge { flex: 0 0 auto; }
}

/* v1.3.3 Mod-style script grid cards */
.script-card--compact{
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0;
  background:var(--card-gradient);
  border:1px solid var(--line);
  border-radius:18px;
  min-width:0;
  box-shadow:var(--shadow);
}
.script-card--compact:hover{
  transform:translateY(-3px);
  border-color:var(--accent);
}
.script-card--compact .script-thumb{
  aspect-ratio:16/10.4;
  border-radius:0;
  background:var(--thumb);
}
.script-card--compact .script-thumb:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:44%;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.42));
  pointer-events:none;
}
.script-card--compact .script-thumb .status-badge{
  top:12px;
  left:12px;
  z-index:2;
}
.script-card--compact .script-card-body{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
  padding:16px 16px 14px;
}
.script-card--compact .script-card-title{
  margin:0;
  font-size:19px;
  line-height:1.22;
  letter-spacing:-.02em;
  overflow-wrap:anywhere;
}
.script-card--compact .script-card-title a:hover{color:var(--accent)}
.script-card--compact .card-author{
  width:fit-content;
  max-width:100%;
  gap:9px;
  font-size:14px;
  font-weight:750;
  color:var(--text);
}
.script-card--compact .card-author img{
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:999px;
  box-shadow:none;
}
.script-card--compact .script-card-kind{
  padding:9px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  color:var(--text);
  font-size:14px;
  font-weight:700;
  min-width:0;
}
.script-card--compact .script-card-kind a,
.script-card--compact .script-card-kind span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.script-card--compact .script-card-kind a:hover{color:var(--accent)}
.script-card--compact .script-card-dates{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.script-card--compact .date-item{
  display:inline-flex;
  align-items:center;
  min-width:0;
  gap:6px;
}
.script-card--compact .date-updated:before{content:"↻";font-weight:900;color:var(--muted)}
.script-card--compact .date-uploaded:before{content:"↥";font-weight:900;color:var(--muted)}
.script-card--compact .script-card-desc{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.43;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.script-card--compact .script-card-stats{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:auto;
  padding:12px 16px;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--panel-2) 76%,transparent);
  color:var(--muted);
  font-size:14px;
  font-weight:750;
}
.script-card--compact .stat-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-width:0;
}
.script-card--compact .stat-likes:before{content:"♥";font-weight:900;color:var(--muted)}
.script-card--compact .stat-views:before{content:"◉";font-size:12px;color:var(--muted)}
.rsc-theme-light .script-card--compact .script-card-stats{
  background:rgba(244,229,216,.75);
}

@media(max-width:1180px){
  .script-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .script-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .script-card--compact .script-card-title{font-size:18px}
}
@media(max-width:560px){
  .script-grid{grid-template-columns:1fr}
  .script-card--compact{border-radius:16px}
  .script-card--compact .script-thumb{aspect-ratio:16/9}
  .script-card--compact .script-card-body{padding:14px}
  .script-card--compact .script-card-title{font-size:20px;line-height:1.18}
  .script-card--compact .script-card-stats{padding:12px 14px}
}


/* v1.3.3 fixed header and 8-card grid behavior */
.site-header{
  position:fixed !important;
  top:0;
  left:0;
  right:0;
  width:100%;
  z-index:9999;
}
.site-main{padding-top:76px;}
.admin-bar .site-header{top:32px;}
@media(max-width:782px){.admin-bar .site-header{top:46px;}}
@media(max-width:980px){.site-main{padding-top:64px;}}
@media(max-width:640px){.site-main{padding-top:60px;}}

/* v1.4 product-like single script page */
.script-product-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 336px;
  gap:28px;
  padding:34px 0 18px;
  align-items:start;
}
.script-product-main,.script-product-sidebar{min-width:0;}
.script-product-sidebar{
  position:sticky;
  top:104px;
  display:grid;
  gap:16px;
}
.admin-bar .script-product-sidebar{top:136px;}
.script-product-hero,.script-product-section,.script-side-card,.script-action-panel{
  background:var(--card-gradient);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  min-width:0;
  overflow:hidden;
}
.script-product-hero{padding:24px;}
.script-product-head{display:flex;gap:18px;align-items:flex-start;margin-bottom:20px;}
.script-product-title-wrap{min-width:0;flex:1;}
.script-product-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;}
.script-type-badge{
  display:inline-flex;align-items:center;border:1px solid var(--line);background:var(--panel-2);color:var(--text);
  border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;
}
.script-product-hero h1{
  margin:0 0 12px;font-size:clamp(32px,4.5vw,54px);line-height:1.02;letter-spacing:-.045em;
  overflow-wrap:anywhere;word-break:normal;
}
.script-product-summary{max-width:820px;margin:0 0 16px;color:var(--muted);font-size:16px;line-height:1.55;}
.script-product-byline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:14px;font-weight:700;}
.script-product-author{display:inline-flex;align-items:center;gap:9px;color:var(--text);}
.script-product-author img{width:28px;height:28px;border-radius:999px;box-shadow:none;flex:0 0 28px;}
.script-product-dot{width:1px;height:18px;background:var(--line);display:inline-block;}
.script-product-place{color:var(--muted);}
.script-product-place:hover{color:var(--accent);}
.script-product-media{position:relative;margin:0;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--thumb);}
.script-product-media img{width:100%;max-height:560px;object-fit:cover;}
.script-product-media figcaption{position:absolute;top:14px;left:14px;display:flex;gap:8px;}
.script-product-media--empty{min-height:320px;display:grid;place-items:center;text-align:center;padding:28px;color:var(--muted);}
.script-product-media--empty span{font-weight:950;letter-spacing:.16em;color:var(--accent);}
.script-product-media--empty strong{display:block;color:var(--text);font-size:26px;max-width:680px;overflow-wrap:anywhere;}
.script-product-tabs{
  display:flex;gap:0;align-items:center;overflow-x:auto;margin:18px 0;border-bottom:1px solid var(--line);
  scrollbar-width:thin;
}
.script-product-tabs a{
  flex:0 0 auto;padding:13px 18px;color:var(--muted);font-weight:850;border-bottom:2px solid transparent;
}
.script-product-tabs a:hover,.script-product-tabs a:focus{color:var(--text);border-color:var(--accent);background:var(--panel-2);}
.script-product-section{padding:24px;margin-bottom:18px;}
.script-product-section h2{font-size:22px;margin:0 0 14px;letter-spacing:-.02em;}
.script-product-section .entry-content{font-size:16px;color:var(--text);}
.script-functions-content{color:var(--text);}
.script-product-code{padding:0;background:var(--code-bg);}
.script-product-code pre{max-height:520px;}
.script-action-panel{padding:20px;background:linear-gradient(180deg,var(--panel),var(--panel-2));}
.script-primary-action{
  width:100%;min-height:54px;border-radius:0;padding:14px 18px;font-size:16px;text-align:center;
  background:linear-gradient(135deg,var(--accent),#8a5cff);color:#fff;border:0;font-weight:950;cursor:pointer;
}
.script-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px;}
.script-icon-action{
  display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--line);background:var(--panel-2);
  color:var(--text);font-weight:850;border-radius:12px;padding:10px;text-align:center;
}
.script-icon-action:hover{border-color:var(--accent);color:var(--accent);}
.script-side-card{padding:20px;}
.script-side-card h2{font-size:18px;margin:0 0 15px;}
.script-detail-list{display:grid;gap:0;margin:0;}
.script-detail-list div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);}
.script-detail-list div:last-child{border-bottom:0;}
.script-detail-list dt{color:var(--muted);font-weight:700;}
.script-detail-list dd{margin:0;text-align:right;color:var(--text);font-weight:850;overflow-wrap:anywhere;}
.script-link-list{display:grid;gap:9px;}
.script-link-list a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--line);
  border-radius:12px;background:var(--panel-2);font-weight:850;color:var(--text);
}
.script-link-list a:after{content:"›";color:var(--muted);font-weight:950;}
.script-link-list a:hover{border-color:var(--accent);color:var(--accent);}
.rsc-theme-light .script-product-hero,
.rsc-theme-light .script-product-section,
.rsc-theme-light .script-side-card,
.rsc-theme-light .script-action-panel{
  background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));
  box-shadow:0 22px 60px rgba(111,78,55,.12);
}
.rsc-theme-light .script-type-badge,.rsc-theme-light .script-icon-action,.rsc-theme-light .script-link-list a{background:rgba(255,246,238,.74);}
@media(max-width:1040px){
  .script-product-layout{grid-template-columns:1fr;}
  .script-product-sidebar{position:static;grid-template-columns:1fr 1fr;}
  .script-action-panel{grid-column:1/-1;}
}
@media(max-width:700px){
  .script-product-layout{width:min(100% - 20px,1180px);padding-top:20px;gap:18px;}
  .script-product-hero{padding:16px;border-radius:18px;}
  .script-product-hero h1{font-size:clamp(28px,9vw,40px);}
  .script-product-summary{font-size:14px;}
  .script-product-media img{max-height:360px;}
  .script-product-tabs{margin:14px 0;}
  .script-product-tabs a{padding:11px 13px;font-size:14px;}
  .script-product-section,.script-side-card,.script-action-panel{border-radius:18px;padding:16px;}
  .script-product-code{padding:0;}
  .script-product-sidebar{grid-template-columns:1fr;}
  .script-secondary-actions{grid-template-columns:1fr;}
  .script-detail-list div{align-items:flex-start;}
  .script-detail-list dd{max-width:55%;}
}
@media(max-width:420px){
  .script-product-layout{width:min(100% - 16px,1180px);}
  .script-product-byline{font-size:13px;}
  .script-product-dot{display:none;}
  .script-product-tabs a{padding:10px 11px;}
  .script-product-media--empty{min-height:230px;}
}

/* v1.4.1 single script without sidebar */
.script-product-layout--no-sidebar{
  display:block;
  width:min(100% - 32px,1120px);
  padding:34px 0 18px;
}
.script-product-layout--no-sidebar .script-product-main{
  width:100%;
  max-width:none;
}
.script-inline-actions{
  display:grid;
  gap:18px;
  margin:18px 0;
}
.script-inline-action-row{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.script-inline-action-row .script-primary-action{
  width:auto;
  min-width:220px;
  border-radius:14px;
}
.script-inline-action-row .script-icon-action{
  min-width:160px;
}
.script-detail-list--inline{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.script-detail-list--inline div{
  display:block;
  border:1px solid var(--line);
  background:var(--panel-2);
  border-radius:14px;
  padding:12px 14px;
}
.script-detail-list--inline dt{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:5px;
}
.script-detail-list--inline dd{
  text-align:left;
  max-width:100%;
}
.script-link-list--inline{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}
@media(max-width:900px){
  .script-detail-list--inline{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px){
  .script-product-layout--no-sidebar{width:min(100% - 20px,1120px);padding-top:20px;}
  .script-inline-action-row{display:grid;grid-template-columns:1fr;}
  .script-inline-action-row .script-primary-action,
  .script-inline-action-row .script-icon-action{width:100%;min-width:0;}
  .script-detail-list--inline{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .script-product-layout--no-sidebar{width:min(100% - 16px,1120px);}
}

/* v1.4.2 Roblox script hub style single page */
.rbx-script-page{
  width:min(1180px,calc(100% - 32px));
  padding:34px 0 10px;
}
.rbx-hero-card,
.rbx-section{
  background:color-mix(in srgb,var(--bg) 68%,#17181d 32%);
  border:1px solid color-mix(in srgb,var(--line) 82%,#ffffff 10%);
  border-radius:18px;
  box-shadow:0 18px 48px rgba(0,0,0,.28);
  overflow:hidden;
}
.rbx-hero-card{
  position:relative;
  padding:26px;
  isolation:isolate;
}
.rbx-hero-card:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    linear-gradient(180deg,rgba(0,0,0,.34),rgba(0,0,0,.1) 38%,transparent),
    radial-gradient(circle at 18% -10%,rgba(50,213,131,.18),transparent 34%),
    radial-gradient(circle at 100% 0,rgba(79,124,255,.16),transparent 32%);
  opacity:.9;
}
.rbx-hero-top{
  display:flex;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}
.rbx-mini-thumb{
  width:58px;
  height:58px;
  flex:0 0 58px;
  border-radius:14px;
  overflow:hidden;
  background:var(--panel-2);
  border:1px solid var(--line);
  display:grid;
  place-items:center;
  color:var(--text);
  font-weight:950;
}
.rbx-mini-thumb img{width:100%;height:100%;object-fit:cover;}
.rbx-title-block{min-width:0;flex:1;}
.rbx-title-line{
  display:flex;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
}
.rbx-title-line h1{
  margin:0;
  font-size:clamp(24px,3vw,34px);
  line-height:1.15;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.rbx-views-pill{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 11px;
  background:rgba(0,0,0,.22);
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.rbx-meta-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:9px;
  color:var(--muted);
  font-size:13px;
  font-weight:750;
}
.rbx-meta-line a{color:var(--accent-2);}
.rbx-meta-line a:hover{color:var(--accent);}
.rbx-meta-line .status-badge{padding:4px 8px;font-size:10px;}
.rbx-hero-body{
  display:grid;
  grid-template-columns:minmax(0,1.42fr) minmax(280px,.9fr);
  gap:26px;
  align-items:stretch;
}
.rbx-main-media{
  position:relative;
  margin:0;
  min-width:0;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:var(--thumb);
}
.rbx-main-media img{width:100%;height:100%;object-fit:cover;}
.rbx-main-media figcaption{position:absolute;top:12px;left:12px;z-index:2;}
.rbx-media-fallback{width:100%;height:100%;display:grid;place-items:center;text-align:center;padding:26px;}
.rbx-media-fallback span{display:block;color:var(--accent-2);font-weight:950;letter-spacing:.14em;font-size:12px;text-transform:uppercase;}
.rbx-media-fallback strong{display:block;max-width:620px;color:var(--text);font-size:28px;line-height:1.15;overflow-wrap:anywhere;}
.rbx-action-stack{
  min-width:0;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
}
.rbx-author-card,
.rbx-reaction-row{
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:14px;
}
.rbx-author-card{display:flex;align-items:center;gap:14px;justify-content:space-between;flex:0 0 auto;}
.rbx-author{display:flex;align-items:center;gap:12px;min-width:0;}
.rbx-author img{width:42px;height:42px;object-fit:cover;border-radius:999px;border:1px solid var(--line);}
.rbx-author strong{display:block;color:var(--text);font-size:14px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px;}
.rbx-author small{display:block;color:var(--muted);font-size:11px;margin-top:2px;}
.rbx-follow{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--text);
  background:rgba(0,0,0,.15);
  padding:8px 11px;
  font-size:12px;
  font-weight:900;
}
.rbx-follow:hover{border-color:var(--accent);color:var(--accent);}
.rbx-reaction-row{display:flex;gap:10px;align-items:center;flex:0 0 auto;}
.rbx-reaction-row span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(0,0,0,.16);
  color:var(--text);
  font-weight:850;
}
.rbx-copy-main{
  min-height:52px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:linear-gradient(180deg,#b9c6ff,#8699ff);
  color:#101322;
  box-shadow:0 0 24px rgba(134,153,255,.28);
  font-weight:950;
  cursor:pointer;
}
.rbx-copy-main:hover{filter:brightness(1.05);}
.rbx-quick-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;}
.rbx-quick-links a{color:var(--accent-2);font-size:13px;font-weight:850;}
.rbx-quick-links a:hover{color:var(--accent);}
.rbx-section{
  margin-top:0;
  padding:26px;
}
.rbx-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.rbx-section-head h2,
.rbx-code-head h2{
  margin:0;
  font-size:25px;
  letter-spacing:-.025em;
}
.rbx-section-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.rbx-discord-btn,
.rbx-soft-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 12px;
  border-radius:9px;
  font-size:13px;
  font-weight:900;
}
.rbx-discord-btn{background:#5865f2;color:#fff;box-shadow:0 8px 22px rgba(88,101,242,.28);}
.rbx-soft-btn{background:var(--panel-2);border:1px solid var(--line);color:var(--text);}
.rbx-description-text{color:var(--text);font-size:16px;}
.rbx-description-text p:first-child{margin-top:0;}
.rbx-features-block{
  margin-top:30px;
  color:var(--text);
}
.rbx-features-block h3{
  font-size:16px;
  margin:0 0 16px;
}
.rbx-features-block p{margin:0 0 8px;color:var(--text);font-weight:750;}
.rbx-detail-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:0;
  padding-top:18px;
  border-top:1px solid var(--line);
}
.rbx-detail-strip span{
  display:inline-grid;
  gap:3px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:12px;
  font-weight:850;
}
.rbx-detail-strip strong{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;}
.rbx-place-teaser{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:24px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.rbx-place-teaser span:nth-child(2){min-width:0;flex:1;}
.rbx-place-teaser strong{display:block;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rbx-place-teaser small{display:block;color:var(--muted);font-size:12px;margin-top:2px;}
.rbx-place-teaser b{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--panel-2);
  color:var(--text);
}
.rbx-code-card{padding:0;background:var(--code-bg);}
.rbx-code-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
  background:var(--code-head);
}
.rbx-code-head span{display:inline-block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:800;}
.rbx-code-head .copy-code{
  border-radius:10px;
  background:#8796ff;
  color:#111525;
  padding:10px 14px;
}
.rbx-code-card pre{
  margin:0;
  padding:22px 24px;
  max-height:520px;
  overflow:auto;
  background:color-mix(in srgb,var(--code-bg) 90%,#ffffff 6%);
}
.rbx-code-card code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:var(--text);
  font-size:13px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.rbx-related-section{padding-top:20px;}
.rsc-theme-light .rbx-hero-card,
.rsc-theme-light .rbx-section{
  background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));
  box-shadow:0 22px 60px rgba(111,78,55,.12);
}
.rsc-theme-light .rbx-hero-card:before{
  background:
    radial-gradient(circle at 10% -20%,rgba(216,135,113,.2),transparent 34%),
    radial-gradient(circle at 100% 0,rgba(157,108,255,.13),transparent 32%);
}
.rsc-theme-light .rbx-author-card,
.rsc-theme-light .rbx-reaction-row,
.rsc-theme-light .rbx-place-teaser,
.rsc-theme-light .rbx-detail-strip span{background:rgba(255,246,238,.72);}
.rsc-theme-light .rbx-views-pill,.rsc-theme-light .rbx-reaction-row span,.rsc-theme-light .rbx-follow{background:rgba(255,255,255,.58);}
.rsc-theme-light .rbx-copy-main{background:linear-gradient(180deg,#d7ccff,#b79dff);color:#241a34;}
@media(max-width:900px){
  .rbx-hero-body{grid-template-columns:1fr;}
  .rbx-action-stack{height:auto;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;}
  .rbx-copy-main,.rbx-quick-links{grid-column:1/-1;}
}
@media(max-width:640px){
  .rbx-script-page{width:min(100% - 20px,1180px);padding-top:22px;}
  .rbx-hero-card,.rbx-section{border-radius:16px;}
  .rbx-hero-card{padding:16px;}
  .rbx-hero-top{gap:12px;margin-bottom:14px;}
  .rbx-mini-thumb{width:48px;height:48px;flex-basis:48px;border-radius:12px;}
  .rbx-title-line{display:block;}
  .rbx-title-line h1{font-size:clamp(22px,7vw,30px);margin-bottom:10px;}
  .rbx-views-pill{width:max-content;}
  .rbx-main-media{border-radius:13px;}
  .rbx-action-stack{grid-template-columns:1fr;gap:12px;}
  .rbx-author-card{padding:12px;}
  .rbx-reaction-row{padding:10px;justify-content:space-between;}
  .rbx-reaction-row span{min-width:0;flex:1;}
  .rbx-quick-links{gap:12px;}
  .rbx-section{padding:18px;margin-top:20px;}
  .rbx-section-head{align-items:flex-start;flex-direction:column;margin-bottom:16px;}
  .rbx-section-actions{justify-content:flex-start;}
  .rbx-detail-strip{display:grid;grid-template-columns:1fr 1fr;}
  .rbx-detail-strip span{border-radius:12px;}
  .rbx-code-head{align-items:stretch;flex-direction:column;padding:16px;}
  .rbx-code-head .copy-code{width:100%;}
  .rbx-code-card pre{padding:16px;}
}
@media(max-width:420px){
  .rbx-script-page{width:min(100% - 16px,1180px);}
  .rbx-meta-line{font-size:12px;gap:8px;}
  .rbx-detail-strip{grid-template-columns:1fr;}
  .rbx-place-teaser{align-items:flex-start;}
  .rbx-place-teaser b{display:none;}
}


/* v1.4.4 fixes: theme-aware badges/buttons, reliable copy feedback, equal page width */
.status-badge{
  background:var(--keyless-bg, #32d583) !important;
  color:var(--keyless-text, #07130d) !important;
  border-color:var(--keyless-border, #32d583) !important;
  box-shadow:0 10px 24px var(--keyless-shadow, rgba(50,213,131,.18));
}
.status-badge.key,
.status-badge.key-system{
  background:var(--keysystem-bg, #ffb14a) !important;
  color:var(--keysystem-text, #1b1000) !important;
  border-color:var(--keysystem-border, #ffb14a) !important;
  box-shadow:0 10px 24px var(--keysystem-shadow, rgba(255,177,74,.2));
}
.rsc-theme-light .status-badge{
  --keyless-bg:#27c879;
  --keyless-text:#082015;
  --keyless-border:#22b96e;
  --keyless-shadow:rgba(39,200,121,.18);
  --keysystem-bg:#f59f3f;
  --keysystem-text:#221100;
  --keysystem-border:#e58e2e;
  --keysystem-shadow:rgba(245,159,63,.18);
}
.rsc-theme-dark .status-badge{
  --keyless-bg:#32d583;
  --keyless-text:#06120c;
  --keyless-border:#32d583;
  --keyless-shadow:rgba(50,213,131,.2);
  --keysystem-bg:#ffb14a;
  --keysystem-text:#1a1004;
  --keysystem-border:#ffb14a;
  --keysystem-shadow:rgba(255,177,74,.22);
}
.rbx-copy-main,
.rbx-code-head .copy-code{
  background:var(--script-copy-bg) !important;
  color:var(--script-copy-text) !important;
  border:1px solid var(--script-copy-border) !important;
  box-shadow:var(--script-copy-shadow) !important;
}
.rsc-theme-dark .rbx-copy-main,
.rsc-theme-dark .rbx-code-head .copy-code{
  --script-copy-bg:linear-gradient(180deg,#b9c6ff,#8796ff);
  --script-copy-text:#101322;
  --script-copy-border:rgba(255,255,255,.16);
  --script-copy-shadow:0 0 24px rgba(135,150,255,.28);
}
.rsc-theme-light .rbx-copy-main,
.rsc-theme-light .rbx-code-head .copy-code{
  --script-copy-bg:linear-gradient(180deg,#7d6bff,#5d49e8);
  --script-copy-text:#ffffff;
  --script-copy-border:rgba(93,73,232,.35);
  --script-copy-shadow:0 12px 26px rgba(93,73,232,.20);
}
.copy-code.is-copied{
  background:linear-gradient(180deg,#34d399,#10b981) !important;
  color:#06130c !important;
}
.copy-failed-highlight{
  outline:2px solid rgba(255,183,77,.55);
  outline-offset:-2px;
}
.rbx-script-page,
.rbx-related-section{
  width:min(1180px,calc(100% - 32px));
}
.rbx-section,
.rbx-hero-card{
  width:100%;
}
@media(max-width:640px){
  .rbx-script-page,
  .rbx-related-section{width:min(100% - 20px,1180px);}
}
@media(max-width:420px){
  .rbx-script-page,
  .rbx-related-section{width:min(100% - 16px,1180px);}
}

/* v1.4.6 comments, auth likes, downloads, social colors */
.rbx-reaction-row .rbx-reaction-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  min-height:40px;
  border:1px solid var(--line);
  border-radius:10px;
  background:rgba(0,0,0,.16);
  color:var(--text);
  font-weight:850;
  cursor:pointer;
  text-decoration:none;
  padding:0 12px;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.rbx-reaction-row button.rbx-reaction-btn{font:inherit;}
.rbx-reaction-row .rbx-reaction-btn:hover{border-color:var(--accent);transform:translateY(-1px);}
.rbx-reaction-row .rsc-like-button.is-liked{
  background:rgba(255,80,125,.18);
  border-color:rgba(255,80,125,.55);
  color:#ff7fa3;
}
.rsc-theme-light .rbx-reaction-row .rbx-reaction-btn{background:rgba(255,255,255,.58);}
.rsc-theme-light .rbx-reaction-row .rsc-like-button.is-liked{
  background:#ffe2ea;
  border-color:#ff9bb6;
  color:#b21648;
}
.rbx-code-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;}
.rbx-code-actions .copy-code,
.rbx-code-actions .download-code{
  border-radius:10px;
  padding:10px 14px;
  font-weight:950;
  cursor:pointer;
}
.rbx-code-actions .download-code{
  background:var(--panel-2);
  color:var(--text);
  border:1px solid var(--line);
}
.rbx-code-actions .download-code:hover{border-color:var(--accent);color:var(--accent);}
.rsc-theme-light .rbx-code-actions .download-code{background:#fff7f0;color:#2b211c;}
.rbx-social-btn,
.rbx-social-link{
  transition:filter .18s ease,transform .18s ease,border-color .18s ease;
}
.rbx-social-btn:hover,
.rbx-social-link:hover{filter:brightness(1.06);transform:translateY(-1px);}
.rbx-discord-btn{background:#5865f2 !important;color:#fff !important;border:1px solid rgba(88,101,242,.4) !important;box-shadow:0 8px 22px rgba(88,101,242,.28);}
.rbx-telegram-btn{background:#229ed9 !important;color:#fff !important;border:1px solid rgba(34,158,217,.42) !important;box-shadow:0 8px 22px rgba(34,158,217,.22);}
.rbx-website-btn{background:#24292f !important;color:#fff !important;border:1px solid rgba(255,255,255,.14) !important;}
.rsc-theme-light .rbx-website-btn{background:#3d3440 !important;color:#fff !important;}
.rbx-quick-links .rbx-social-link{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}
.rbx-social-roblox{background:#111827;color:#fff !important;border:1px solid rgba(255,255,255,.14);}
.rbx-social-place{background:#14b8a6;color:#06211d !important;border:1px solid rgba(20,184,166,.46);}
.rbx-social-key{background:#f59e0b;color:#1c1000 !important;border:1px solid rgba(245,158,11,.5);}
.rbx-social-youtube{background:#ff0033;color:#fff !important;border:1px solid rgba(255,0,51,.5);}
.rsc-theme-light .rbx-social-roblox{background:#2d3748;color:#fff !important;}
.rsc-theme-light .rbx-social-place{background:#99f6e4;color:#064e3b !important;}
.rsc-theme-light .rbx-social-key{background:#fde68a;color:#713f12 !important;}
.rsc-theme-light .rbx-social-youtube{background:#ef4444;color:#fff !important;}
.rbx-comments-wrap{width:min(1180px,calc(100% - 32px));margin:0 auto;}
.rbx-comments-card{margin-top:0;}
.rbx-comments-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  min-height:28px;
  border-radius:999px;
  padding:4px 10px;
  background:var(--panel-2);
  color:var(--muted);
  font-weight:900;
}
.rbx-login-note{
  border:1px dashed var(--line);
  border-radius:14px;
  padding:18px;
  background:rgba(255,255,255,.035);
  color:var(--text);
}
.rbx-login-note p{margin:6px 0 14px;color:var(--muted);}
.rbx-login-note a,
.rbx-comment-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:999px;
  padding:10px 15px;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.rbx-comment-list{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:14px;}
.rbx-comment-item{margin:0;}
.rbx-comment-body{
  display:flex;
  gap:12px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.035);
}
.rbx-comment-avatar img{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);}
.rbx-comment-content{min-width:0;flex:1;}
.rbx-comment-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px;}
.rbx-comment-meta strong{color:var(--text);}
.rbx-comment-meta span{color:var(--muted);font-size:12px;font-weight:800;}
.rbx-comment-text{color:var(--text);}
.rbx-comment-text p{margin:0 0 10px;}
.rbx-comment-actions a{color:var(--accent);font-size:12px;font-weight:900;}
.rbx-comment-form{display:grid;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid var(--line);}
.rbx-comment-form-title{margin:0;font-size:20px;}
.rbx-comment-form label{font-weight:900;color:var(--text);}
.rbx-comment-form textarea{
  width:100%;
  resize:vertical;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--input-bg);
  color:var(--text);
  padding:13px;
  font:inherit;
}
.rsc-theme-light .rbx-login-note,
.rsc-theme-light .rbx-comment-body{background:rgba(255,246,238,.72);}
@media(max-width:640px){
  .rbx-code-actions{justify-content:stretch;}
  .rbx-code-actions .copy-code,
  .rbx-code-actions .download-code{flex:1 1 140px;}
  .rbx-comments-wrap{width:min(100% - 20px,1180px);}
  .rbx-comment-body{align-items:flex-start;}
}
@media(max-width:420px){
  .rbx-comments-wrap{width:min(100% - 16px,1180px);}
  .rbx-comment-body{padding:12px;}
}

/* v1.4.7 non-AJAX likes and theme toggle fix support */
.rsc-like-form{margin:0;display:inline-flex;}
.rsc-like-form .rbx-reaction-btn{appearance:none;-webkit-appearance:none;}
html[data-rsc-theme="light"] body:not(.rsc-theme-dark){background:var(--body-bg);}
html[data-rsc-theme="dark"] body:not(.rsc-theme-light){background:var(--body-bg);}

/* v1.5 frontend auth/account pages */
.rsc-auth-card{
  width:min(680px,calc(100% - 32px));
  margin:40px auto;
  padding:28px;
  border:1px solid var(--line);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025)),var(--panel);
  box-shadow:0 22px 70px rgba(0,0,0,.24);
  color:var(--text);
}
.rsc-auth-card h2{margin:0 0 8px;font-size:clamp(26px,4vw,38px);letter-spacing:-.04em;}
.rsc-auth-muted{margin:0 0 20px;color:var(--muted);line-height:1.6;}
.rsc-auth-form{display:grid;gap:14px;margin-top:20px;}
.rsc-auth-form label{display:grid;gap:7px;color:var(--text);font-weight:900;}
.rsc-auth-form input[type="text"],
.rsc-auth-form input[type="email"],
.rsc-auth-form input[type="password"]{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--input-bg);
  color:var(--text);
  padding:13px 14px;
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rsc-auth-form input:focus{border-color:var(--accent);box-shadow:0 0 0 4px rgba(91,127,255,.18);}
.rsc-auth-check{display:flex !important;grid-template-columns:auto 1fr;align-items:flex-start;gap:10px !important;color:var(--muted) !important;font-weight:800 !important;}
.rsc-auth-check input{margin-top:3px;}
.rsc-auth-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  border:0;
  border-radius:14px;
  padding:12px 18px;
  background:var(--accent);
  color:#fff !important;
  font-weight:950;
  text-decoration:none !important;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(91,127,255,.28);
}
.rsc-auth-button:hover{filter:brightness(1.06);transform:translateY(-1px);}
.rsc-auth-button--secondary{background:var(--panel-2);color:var(--text) !important;border:1px solid var(--line);box-shadow:none;}
.rsc-auth-button--ghost{background:transparent;color:var(--muted) !important;border:1px solid var(--line);box-shadow:none;}
.rsc-auth-footer{margin:18px 0 0;color:var(--muted);}
.rsc-auth-footer a{color:var(--accent);font-weight:900;}
.rsc-auth-notice{margin:16px 0;padding:12px 14px;border-radius:14px;font-weight:850;line-height:1.5;}
.rsc-auth-notice--ok{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.32);color:#86efac;}
.rsc-auth-notice--error{background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.32);color:#fca5a5;}
.rsc-account-head{display:flex;gap:16px;align-items:center;margin-bottom:20px;}
.rsc-account-head img{border-radius:999px;border:1px solid var(--line);background:var(--panel-2);}
.rsc-account-head h2{margin:0;font-size:30px;}
.rsc-account-status{margin:18px 0;padding:13px 14px;border-radius:14px;border:1px solid var(--line);font-weight:900;}
.rsc-account-status.is-verified{background:rgba(34,197,94,.12);color:#86efac;border-color:rgba(34,197,94,.32);}
.rsc-account-status.is-unverified{background:rgba(245,158,11,.13);color:#fcd34d;border-color:rgba(245,158,11,.32);}
.rsc-account-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px;}
.rsc-theme-light .rsc-auth-card{background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,246,238,.74)),var(--panel);box-shadow:0 20px 70px rgba(107,73,45,.12);}
.rsc-theme-light .rsc-auth-notice--ok{color:#166534;background:#dcfce7;border-color:#86efac;}
.rsc-theme-light .rsc-auth-notice--error{color:#991b1b;background:#fee2e2;border-color:#fca5a5;}
.rsc-theme-light .rsc-account-status.is-verified{color:#166534;background:#dcfce7;border-color:#86efac;}
.rsc-theme-light .rsc-account-status.is-unverified{color:#92400e;background:#fef3c7;border-color:#fcd34d;}
@media(max-width:640px){
  .rsc-auth-card{width:min(100% - 20px,680px);margin:24px auto;padding:20px;border-radius:20px;}
  .rsc-account-head{align-items:flex-start;}
  .rsc-account-actions{display:grid;grid-template-columns:1fr;}
  .rsc-auth-button{width:100%;}
}


/* v1.5.2 authenticated header navigation */
.auth-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.user-chip,
.auth-link{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 11px;
  background:color-mix(in srgb,var(--panel) 78%,transparent);
  color:var(--text);
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.user-chip:hover,
.auth-link:hover{
  border-color:var(--accent);
  transform:translateY(-1px);
}
.user-chip img{
  width:30px;
  height:30px;
  border-radius:999px;
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--panel-2);
}
.user-chip span{
  max-width:110px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.auth-link-primary{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff !important;
  box-shadow:0 10px 24px rgba(79,124,255,.22);
}
.auth-link-logout{
  color:var(--muted);
}
.rsc-theme-light .user-chip,
.rsc-theme-light .auth-link{
  background:rgba(255,250,245,.72);
}
.rsc-theme-light .auth-link-primary{
  background:var(--accent);
  color:#fff !important;
}
@media(max-width:1180px){
  .auth-nav{width:100%;justify-content:flex-start;}
}
@media(max-width:980px){
  .auth-nav{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    width:100%;
  }
  .user-chip{
    grid-column:1/-1;
    justify-content:flex-start;
    width:100%;
  }
  .auth-link{
    width:100%;
  }
}
@media(max-width:420px){
  .auth-nav{grid-template-columns:1fr;}
}

/* Frontend submit/my scripts pages */
.rsc-submit-card,
.rsc-my-scripts-card{width:min(100% - 32px,980px);}
.rsc-submit-form select,
.rsc-submit-form textarea,
.rsc-auth-form textarea,
.rsc-auth-form select{
  width:100%;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel-2);
  color:var(--text);
  padding:12px 14px;
  outline:none;
  font:inherit;
}
.rsc-auth-form textarea{min-height:120px;resize:vertical;font-family:inherit;}
.rsc-submit-form textarea[name="script_code"]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;min-height:220px;}
.rsc-my-scripts-head{justify-content:space-between;align-items:center;gap:18px;}
.rsc-my-scripts-list{display:grid;gap:12px;margin-top:20px;}
.rsc-my-script-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:16px;
  align-items:center;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel-2);
}
.rsc-my-script-row h3{margin:0 0 6px;font-size:18px;line-height:1.25;overflow-wrap:anywhere;}
.rsc-my-script-meta{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:360px;}
.rsc-my-script-meta span{padding:7px 10px;border:1px solid var(--line);border-radius:999px;color:var(--muted);font-size:12px;font-weight:900;white-space:nowrap;}
@media (max-width:760px){
  .rsc-my-script-row{grid-template-columns:1fr;align-items:start;}
  .rsc-my-script-meta{justify-content:flex-start;max-width:none;}
  .rsc-my-scripts-head{display:grid;}
}

/* v1.5.8 fixes: clean social buttons, like button, author script archives, frontend pages */
.rbx-section-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.rbx-social-btn,
.rbx-social-link{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:34px;
  padding:8px 13px !important;
  border-radius:12px !important;
  font-size:13px;
  line-height:1;
  font-weight:950;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow:none !important;
  vertical-align:middle;
}
.rbx-discord-btn{background:#5865f2 !important;color:#fff !important;border:1px solid #6f7aff !important;}
.rbx-telegram-btn{background:#229ed9 !important;color:#fff !important;border:1px solid #43b3e8 !important;}
.rbx-website-btn{background:#2f343b !important;color:#fff !important;border:1px solid rgba(255,255,255,.18) !important;}
.rsc-theme-light .rbx-discord-btn{background:#5865f2 !important;color:#fff !important;border-color:#5865f2 !important;}
.rsc-theme-light .rbx-telegram-btn{background:#229ed9 !important;color:#fff !important;border-color:#229ed9 !important;}
.rsc-theme-light .rbx-website-btn{background:#343a46 !important;color:#fff !important;border-color:#343a46 !important;}

.rbx-reaction-row > span.rbx-reaction-btn,
.rbx-reaction-row > a.rbx-reaction-btn,
.rbx-reaction-row .rsc-like-form > .rbx-reaction-btn{
  box-sizing:border-box;
}
.rbx-reaction-row .rsc-like-count{
  display:inline !important;
  min-width:0 !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:inherit !important;
  font:inherit !important;
  box-shadow:none !important;
}
.rbx-reaction-row .rsc-like-form{
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}
.rbx-reaction-row .rsc-like-button{
  outline:none !important;
  box-shadow:none !important;
}
.rbx-reaction-row .rsc-like-button:focus-visible{
  outline:2px solid var(--accent) !important;
  outline-offset:2px;
}

.rsc-frontend-page{
  width:min(1180px,calc(100% - 32px));
  margin:0 auto 72px;
}
.rsc-frontend-page-head{
  margin:0 0 22px;
}
.rsc-frontend-page-head h1{
  margin:0;
  font-size:clamp(38px,6vw,64px);
  letter-spacing:-.06em;
  line-height:.95;
}
.rsc-frontend-page-content > .rsc-auth-card{
  width:100%;
  max-width:960px;
  margin:0 auto;
}
.rsc-frontend-page-content > .rsc-auth-card:first-child:last-child{
  margin-top:0;
}
.rsc-frontend-page .rsc-auth-card{
  box-shadow:none;
}
.rsc-frontend-page .rsc-auth-card h2:first-child{
  font-size:clamp(24px,3vw,34px);
}
@media(max-width:640px){
  .rbx-section-actions{justify-content:flex-start;width:100%;}
  .rbx-social-btn,.rbx-social-link{flex:1 1 auto;}
  .rsc-frontend-page{width:min(100% - 20px,1180px);margin-bottom:48px;}
  .rsc-frontend-page-head h1{font-size:clamp(34px,12vw,48px);}
  .rsc-frontend-page-content > .rsc-auth-card{padding:18px;border-radius:18px;}
}


/* v1.4.5 authenticated all-in-one account layout */
.rsc-frontend-page{
  width:min(1180px,calc(100% - 32px));
  padding:34px 0 10px;
  margin-left:auto;
  margin-right:auto;
}
.rsc-frontend-page-head{
  margin:0 0 22px;
  text-align:center;
}
.rsc-frontend-page-head h1{
  margin:0;
  font-size:clamp(36px,5vw,64px);
  line-height:.98;
  letter-spacing:-.055em;
}
.rsc-frontend-page-content,
.rsc-frontend-page-content > *,
.rsc-frontend-page .rsc-auth-card,
.rsc-account-shell,
.rsc-account-tab-panel,
.rsc-account-tab-panel > .rsc-auth-card{
  width:100%;
  max-width:none;
  box-sizing:border-box;
}
.rsc-frontend-page .rsc-auth-card{
  margin:0;
}
.rsc-account-shell{
  padding:24px;
}
.rsc-account-shell .rsc-auth-card{
  box-shadow:none;
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
}
.rsc-account-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  width:100%;
  margin:0 0 22px;
  padding:0 0 18px;
  border-bottom:1px solid var(--line);
}
.rsc-account-tabs a{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-weight:950;
  text-decoration:none;
}
.rsc-account-tabs a:hover,
.rsc-account-tabs a.is-active{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff !important;
}
.rsc-account-tabs a.is-muted{
  color:var(--muted);
  background:transparent;
}
.rsc-account-tab-panel{
  display:block;
}
.rsc-account-overview,
.rsc-my-scripts-list,
.rsc-submit-form,
.rsc-settings-form{
  width:100%;
}
.rsc-account-head{
  width:100%;
}
.rsc-account-head img{
  flex:0 0 auto;
}
.rsc-auth-grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  width:100%;
}
.rsc-auth-form input[type="text"],
.rsc-auth-form input[type="email"],
.rsc-auth-form input[type="password"],
.rsc-auth-form input[type="url"],
.rsc-auth-form input[type="file"],
.rsc-auth-form select,
.rsc-auth-form textarea{
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--input-bg);
  color:var(--text);
  padding:13px 14px;
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.rsc-auth-form textarea{
  min-height:132px;
  resize:vertical;
}
.rsc-auth-form input:focus,
.rsc-auth-form select:focus,
.rsc-auth-form textarea:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(91,127,255,.18);
}
.rsc-my-scripts-card .rsc-account-head,
.rsc-my-scripts-head{
  justify-content:space-between;
}
.rsc-my-scripts-list{
  display:grid;
  gap:12px;
}
.rsc-my-script-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:14px;
  align-items:center;
  width:100%;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.rsc-my-script-row h3{
  margin:0 0 6px;
  color:var(--text);
}
.rsc-my-script-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.rsc-my-script-meta span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.rsc-theme-light .rsc-account-tabs a,
.rsc-theme-light .rsc-my-script-row{
  background:rgba(255,246,238,.72);
}
@media(max-width:900px){
  .rsc-my-script-row{grid-template-columns:1fr;align-items:stretch;}
  .rsc-my-script-meta{justify-content:flex-start;}
}
@media(max-width:640px){
  .rsc-frontend-page{width:min(100% - 20px,1180px);padding-top:22px;}
  .rsc-frontend-page-head h1{font-size:clamp(32px,12vw,48px);}
  .rsc-account-shell{padding:18px;}
  .rsc-account-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
  .rsc-auth-grid-2{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .rsc-frontend-page{width:min(100% - 16px,1180px);}
  .rsc-account-tabs{grid-template-columns:1fr;}
}

/* v1.4.6 account layout correction: fixed avatar column, no squeezed text */
.rsc-account-shell{
  overflow:hidden;
}
.rsc-account-overview .rsc-account-head,
.rsc-account-settings-card .rsc-account-head{
  display:grid !important;
  grid-template-columns:96px minmax(0,1fr);
  align-items:center !important;
  gap:18px;
  width:100%;
  min-width:0;
}
.rsc-account-overview .rsc-account-head > img,
.rsc-account-settings-card .rsc-account-head > img,
.rsc-account-overview .rsc-account-head img.avatar,
.rsc-account-settings-card .rsc-account-head img.avatar{
  width:96px !important;
  height:96px !important;
  min-width:96px !important;
  max-width:96px !important;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:999px;
  display:block;
}
.rsc-account-overview .rsc-account-head > div,
.rsc-account-settings-card .rsc-account-head > div{
  min-width:0;
  max-width:100%;
}
.rsc-account-overview .rsc-account-head h2,
.rsc-account-settings-card .rsc-account-head h2{
  overflow-wrap:anywhere;
  word-break:normal;
  line-height:1.08;
}
.rsc-account-overview .rsc-account-head .rsc-auth-muted,
.rsc-account-settings-card .rsc-account-head .rsc-auth-muted{
  overflow-wrap:anywhere;
  word-break:normal;
  margin-bottom:0;
}
.rsc-account-status{
  width:100%;
  max-width:100%;
}
@media(max-width:640px){
  .rsc-account-overview .rsc-account-head,
  .rsc-account-settings-card .rsc-account-head{
    grid-template-columns:72px minmax(0,1fr);
    gap:14px;
  }
  .rsc-account-overview .rsc-account-head > img,
  .rsc-account-settings-card .rsc-account-head > img,
  .rsc-account-overview .rsc-account-head img.avatar,
  .rsc-account-settings-card .rsc-account-head img.avatar{
    width:72px !important;
    height:72px !important;
    min-width:72px !important;
    max-width:72px !important;
  }
}

/* v1.4.7 stable viewport/layout alignment: prevent horizontal jump on archive/search/account tab changes */
html{
  overflow-y:scroll;
  scrollbar-gutter:stable;
}
body{
  overflow-x:hidden;
}
.container,
.rbx-script-page,
.rbx-related-section,
.rbx-comments-wrap,
.rsc-frontend-page{
  margin-left:auto;
  margin-right:auto;
}

/* v1.4.8 place pages: align single/archive place layout with single script */
.rbx-place-page,
.rbx-place-scripts-section,
.rbx-place-archive-section{
  width:min(1180px,calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
}
.rbx-place-page.container,
.rbx-place-scripts-section.container,
.rbx-place-archive-section.container{
  width:min(1180px,calc(100% - 32px));
}
.rbx-place-hero-card,
.rbx-place-page .rbx-section{
  width:100%;
}
.rbx-place-main-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.rbx-place-summary-card,
.rbx-place-stat-grid{
  border:1px solid var(--line);
  background:rgba(255,255,255,.035);
  border-radius:14px;
  padding:14px;
}
.rbx-place-summary-card h2{
  margin:0 0 8px;
  font-size:18px;
  letter-spacing:-.02em;
}
.rbx-place-summary-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.rbx-place-stat-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.rbx-place-stat-grid span{
  display:grid;
  gap:2px;
  min-width:0;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px 12px;
  background:rgba(0,0,0,.16);
}
.rbx-place-stat-grid strong{
  color:var(--text);
  font-size:15px;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rbx-place-stat-grid small{
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:900;
}
.rbx-place-open-button{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
}
.rbx-place-grid{
  align-items:stretch;
}
.rbx-place-card{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.rbx-place-card-media{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--thumb);
}
.rbx-place-card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .18s ease;
}
.rbx-place-card-media span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:color-mix(in srgb,var(--muted) 50%,transparent);
  font-weight:950;
  letter-spacing:.12em;
}
.rbx-place-card:hover .rbx-place-card-media img{
  transform:scale(1.03);
}
.rbx-place-card-body{
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.rbx-place-card-body h2{
  margin:0;
  font-size:20px;
  line-height:1.25;
}
.rbx-place-card-body p{
  margin:0;
}
.rbx-place-card-creator{
  color:var(--accent-2) !important;
  font-size:13px;
  font-weight:850;
}
.rbx-place-card-stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:8px;
}
.rbx-place-card-stats span{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 9px;
  background:var(--accent-soft);
  color:var(--muted);
  font-size:12px;
  font-weight:850;
}
.rsc-theme-light .rbx-place-summary-card,
.rsc-theme-light .rbx-place-stat-grid,
.rsc-theme-light .rbx-place-stat-grid span{
  background:rgba(255,246,238,.72);
}
@media(max-width:900px){
  .rbx-place-action-stack{height:auto;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;}
  .rbx-place-summary-card,
  .rbx-place-open-button{grid-column:1/-1;}
}
@media(max-width:640px){
  .rbx-place-page,
  .rbx-place-scripts-section,
  .rbx-place-archive-section,
  .rbx-place-page.container,
  .rbx-place-scripts-section.container,
  .rbx-place-archive-section.container{width:min(100% - 20px,1180px);}
  .rbx-place-action-stack{grid-template-columns:1fr;gap:12px;}
  .rbx-place-stat-grid{grid-template-columns:1fr;}
}
@media(max-width:420px){
  .rbx-place-page,
  .rbx-place-scripts-section,
  .rbx-place-archive-section,
  .rbx-place-page.container,
  .rbx-place-scripts-section.container,
  .rbx-place-archive-section.container{width:min(100% - 16px,1180px);}
}

/* Fix WordPress emoji images being enlarged by global content image rules. */
img.emoji,
img.wp-smiley,
.entry-content img.emoji,
.entry-content img.wp-smiley,
.single-card img.emoji,
.single-card img.wp-smiley,
.rbx-script-page img.emoji,
.rbx-script-page img.wp-smiley,
.rbx-place-page img.emoji,
.rbx-place-page img.wp-smiley {
  display: inline-block !important;
  width: 1em !important;
  min-width: 1em !important;
  max-width: 1em !important;
  height: 1em !important;
  min-height: 1em !important;
  max-height: 1em !important;
  margin: 0 .07em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: contain !important;
  vertical-align: -0.1em !important;
  background: transparent !important;
}


/* v1.4.6 robust theme switching: keep html/body classes in sync and prevent mixed-theme transitions */
html.rsc-theme-boot *,
html.rsc-theme-boot *::before,
html.rsc-theme-boot *::after {
  transition: none !important;
  animation-duration: 0s !important;
  animation-delay: 0s !important;
}

html[data-rsc-theme="light"],
html[data-rsc-theme="light"] body {
  --bg:#f8efe7;
  --bg-soft:#fff6ee;
  --panel:rgba(255,250,246,.82);
  --panel-2:#fff3ea;
  --text:#221914;
  --muted:#7b6b60;
  --line:#e8d8cc;
  --accent:#dc6655;
  --accent-2:#d9915f;
  --accent-soft:rgba(184,135,255,.13);
  --card-gradient:linear-gradient(180deg,rgba(255,255,255,.96),rgba(252,240,232,.96));
  --shadow:0 20px 55px rgba(92,61,43,.12);
  --code-bg:#fff9f3;
  --code-head:#f2e4d8;
  --input-bg:#fffaf6;
  --thumb:#eadbd2;
  --body-bg:radial-gradient(circle at 12% -5%,#ffe7dc 0,#f8efe7 34%,#f3e8e6 67%,#eee7f6 100%);
}

html[data-rsc-theme="dark"],
html[data-rsc-theme="dark"] body {
  --bg:#070a12;
  --bg-soft:#0b1020;
  --panel:rgba(16,23,42,.72);
  --panel-2:#111a2e;
  --text:#f5f7fb;
  --muted:#9aa6bd;
  --line:#22304b;
  --accent:#7c5cff;
  --accent-2:#32d583;
  --accent-soft:rgba(124,92,255,.12);
  --card-gradient:linear-gradient(180deg,rgba(18,27,48,.96),rgba(10,15,28,.96));
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --code-bg:#050810;
  --code-head:#0d1424;
  --input-bg:#0b1220;
  --thumb:#111a2e;
  --body-bg:#090d16;
}

html[data-rsc-theme="light"] .brand-mark{background:linear-gradient(135deg,#c7a0ff,#f0a58d)}
html[data-rsc-theme="light"] .button,
html[data-rsc-theme="light"] .load-more,
html[data-rsc-theme="light"] .copy-code,
html[data-rsc-theme="light"] .report-form button,
html[data-rsc-theme="light"] .search-form button{color:#fff}
html[data-rsc-theme="light"] .search-form input::placeholder{color:#9b8d84}
html[data-rsc-theme="light"] .rsc-script-page .single-card,
html[data-rsc-theme="light"] .rsc-script-page .sidebar-card{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13)}
html[data-rsc-theme="light"] .script-info-panel div,
html[data-rsc-theme="light"] .sidebar-list div,
html[data-rsc-theme="light"] .features-box{background:rgba(255,246,238,.72)}
html[data-rsc-theme="light"] .script-card--compact .script-card-stats{background:rgba(255,246,238,.74)}
html[data-rsc-theme="light"] .script-product-hero,
html[data-rsc-theme="light"] .script-product-section,
html[data-rsc-theme="light"] .script-side-card,
html[data-rsc-theme="light"] .script-action-panel{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13)}
html[data-rsc-theme="light"] .script-type-badge,
html[data-rsc-theme="light"] .script-icon-action,
html[data-rsc-theme="light"] .script-link-list a{background:rgba(255,246,238,.74)}
html[data-rsc-theme="light"] .rbx-hero-card,
html[data-rsc-theme="light"] .rbx-section{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13)}
html[data-rsc-theme="light"] .rbx-hero-card:before{background:radial-gradient(circle at 30% 20%,rgba(184,135,255,.24),transparent 60%)}
html[data-rsc-theme="light"] .rbx-author-card{background:rgba(255,246,238,.74)}

/* v1.4.9 place pages: make place pages script-focused instead of Roblox-page copies */
.rbx-place-landing-page .rbx-title-line h1{
  overflow-wrap:anywhere;
}
.rbx-place-landing-body{
  align-items:stretch;
}
.rbx-place-landing-hero .rbx-place-summary-card h2{
  margin:0 0 10px;
  font-size:20px;
}
.rbx-place-landing-hero .rbx-place-summary-card p{
  font-size:15px;
  line-height:1.6;
}
.rbx-place-landing-actions{
  display:grid;
  gap:10px;
}
.rbx-place-landing-actions .rbx-social-btn,
.rbx-place-landing-actions .rbx-place-open-button{
  width:100%;
  justify-content:center;
  text-align:center;
}
.rbx-place-seo-section{
  margin-top:24px;
}
.rbx-place-seo-copy{
  display:grid;
  gap:10px;
  color:var(--text);
}
.rbx-place-seo-copy p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.7;
}
.rbx-place-seo-copy strong{
  color:var(--text);
}
.rbx-place-faq-section{
  width:min(1180px,calc(100% - 32px));
  margin-left:auto;
  margin-right:auto;
  margin-top:20px;
}
.rbx-place-faq-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rbx-place-faq-grid div{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
  background:rgba(255,255,255,.035);
}
.rbx-place-faq-grid h3{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.25;
}
.rbx-place-faq-grid p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.rbx-place-card-script-hub .rbx-place-card-body > p:not(.rbx-place-card-creator){
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}
.rbx-place-related-games-section{
  padding-top:24px;
}
.rsc-theme-light .rbx-place-faq-grid div{
  background:rgba(255,246,238,.72);
}
@media(max-width:900px){
  .rbx-place-faq-grid{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .rbx-place-faq-section{width:min(100% - 16px,1180px);}
}


/* v1.5.1 place hero overlap fix: keep media and content in separate grid columns */
.rbx-place-landing-body,
.rbx-place-page .rbx-hero-body{
  grid-template-columns:minmax(0, 1fr) minmax(340px, 404px);
  gap:24px;
  align-items:stretch;
  overflow:hidden;
}
.rbx-place-landing-body > *,
.rbx-place-page .rbx-hero-body > *{
  min-width:0;
  max-width:100%;
}
.rbx-place-main-media{
  width:100%;
  max-width:100%;
  min-width:0;
  align-self:stretch;
}
.rbx-place-main-media img{
  display:block;
  width:100% !important;
  max-width:100% !important;
  height:100% !important;
  object-fit:cover;
}
.rbx-place-action-stack{
  width:100%;
  max-width:100%;
  min-width:0;
  position:relative;
  z-index:1;
}
.rbx-place-summary-card,
.rbx-place-stat-grid,
.rbx-place-landing-actions{
  min-width:0;
  max-width:100%;
}
.rbx-place-summary-card h2,
.rbx-place-summary-card p{
  overflow-wrap:anywhere;
}
@media(max-width:980px){
  .rbx-place-landing-body,
  .rbx-place-page .rbx-hero-body{
    grid-template-columns:1fr;
    overflow:visible;
  }
}

/* v1.5.2 homepage redesign */
.rsc-home-page{overflow:hidden;}
.rsc-home-hero{padding:58px 0 28px;}
.rsc-home-hero-inner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.55fr);gap:24px;align-items:stretch;}
.rsc-home-hero-copy,
.rsc-home-stats-card,
.rsc-home-info-card,
.rsc-home-faq-card{
  background:var(--card-gradient);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.rsc-home-hero-copy{padding:34px;position:relative;overflow:hidden;}
.rsc-home-hero-copy:before{content:"";position:absolute;inset:-120px -140px auto auto;width:300px;height:300px;border-radius:999px;background:radial-gradient(circle,color-mix(in srgb,var(--accent) 28%,transparent),transparent 70%);pointer-events:none;}
.rsc-home-hero-copy h1{position:relative;font-size:clamp(42px,6vw,76px);line-height:.95;letter-spacing:-.06em;margin:0 0 18px;max-width:880px;}
.rsc-home-lead{position:relative;color:var(--muted);font-size:18px;max-width:720px;margin:0 0 24px;}
.rsc-home-search{position:relative;display:flex;gap:8px;max-width:760px;background:var(--panel);border:1px solid var(--line);border-radius:22px;padding:8px;margin:0 0 18px;}
.rsc-home-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font:inherit;padding:12px 14px;}
.rsc-home-search input::placeholder{color:var(--muted);}
.rsc-home-search button{border:0;border-radius:16px;background:var(--accent);color:#fff;font-weight:900;padding:12px 20px;cursor:pointer;}
.rsc-home-actions{position:relative;}
.rsc-home-stats-card{padding:24px;display:flex;flex-direction:column;justify-content:space-between;gap:18px;}
.rsc-home-stat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.rsc-home-stat-grid span{display:block;border:1px solid var(--line);background:var(--panel);border-radius:18px;padding:16px;min-width:0;}
.rsc-home-stat-grid strong{display:block;font-size:24px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rsc-home-stat-grid small{display:block;color:var(--muted);font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.06em;margin-top:6px;}
.rsc-home-section .section-heading{align-items:center;}
.rsc-home-section .section-heading > div{min-width:0;}
.rsc-home-section .section-heading .eyebrow{margin-bottom:6px;}
.rsc-home-place-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.rsc-home-place-card{min-width:0;overflow:hidden;background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);transition:transform .18s ease,border-color .18s ease;}
.rsc-home-place-card:hover{transform:translateY(-3px);border-color:var(--accent);}
.rsc-home-place-media{display:block;aspect-ratio:16/9;background:var(--thumb);overflow:hidden;}
.rsc-home-place-media img{width:100%;height:100%;object-fit:cover;display:block;}
.rsc-home-place-media span{width:100%;height:100%;display:grid;place-items:center;color:var(--muted);font-size:42px;font-weight:900;}
.rsc-home-place-body{padding:16px;}
.rsc-home-place-body h3{margin:0 0 8px;font-size:20px;line-height:1.15;letter-spacing:-.02em;}
.rsc-home-place-body p{margin:0 0 12px;color:var(--muted);font-size:14px;}
.rsc-home-place-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:12px;font-weight:800;}
.rsc-home-place-meta span{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:6px 9px;}
.rsc-home-info-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.65fr);gap:18px;}
.rsc-home-info-card,.rsc-home-faq-card{padding:26px;}
.rsc-home-info-card h2{font-size:clamp(28px,4vw,44px);line-height:1;margin:0 0 16px;letter-spacing:-.04em;}
.rsc-home-info-card p{color:var(--muted);margin:0 0 12px;max-width:860px;}
.rsc-home-faq-card details{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:14px 16px;margin-top:10px;}
.rsc-home-faq-card summary{cursor:pointer;font-weight:900;color:var(--text);}
.rsc-home-faq-card p{color:var(--muted);margin:10px 0 0;}
.rsc-theme-light .rsc-home-search button{color:#fff;}
@media(max-width:980px){
  .rsc-home-hero-inner,.rsc-home-info-grid{grid-template-columns:1fr;}
  .rsc-home-place-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .rsc-home-hero{padding:34px 0 16px;}
  .rsc-home-hero-copy,.rsc-home-stats-card,.rsc-home-info-card,.rsc-home-faq-card{padding:18px;border-radius:18px;}
  .rsc-home-search{display:grid;border-radius:18px;}
  .rsc-home-search button{width:100%;}
  .rsc-home-stat-grid,.rsc-home-place-grid{grid-template-columns:1fr;}
  .rsc-home-section .section-heading{align-items:flex-start;flex-direction:column;}
}

/* v1.5.3 polished footer */
.site-footer.rsc-footer{
  margin-top:56px;
  border-top:1px solid var(--line);
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, transparent), var(--bg));
}
.rsc-footer-wrap{padding:34px 0 26px;}
.rsc-footer-cta{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  padding:26px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card-gradient);
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.rsc-footer-cta:before{
  content:"";
  position:absolute;
  inset:auto -90px -130px auto;
  width:260px;
  height:260px;
  border-radius:999px;
  background:radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  pointer-events:none;
}
.rsc-footer-cta-copy{position:relative;min-width:0;}
.rsc-footer-eyebrow{
  display:inline-flex;
  margin-bottom:8px;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:12px;
  font-weight:900;
}
.rsc-footer-cta h2{
  margin:0 0 8px;
  font-size:clamp(26px,3vw,42px);
  line-height:1;
  letter-spacing:-.04em;
}
.rsc-footer-cta p{margin:0;color:var(--muted);max-width:720px;}
.rsc-footer-cta-actions{position:relative;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;}
.rsc-footer-grid{
  display:grid;
  grid-template-columns:minmax(260px,1.2fr) repeat(3,minmax(150px,.55fr));
  gap:22px;
  padding:30px 0;
}
.rsc-footer-brand-col,
.rsc-footer-col{
  min-width:0;
  padding:20px;
  border:1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius:22px;
  background:color-mix(in srgb, var(--panel) 70%, transparent);
}
.rsc-footer-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:900;
  text-decoration:none;
  margin-bottom:14px;
}
.rsc-footer-brand-col p{margin:0 0 16px;color:var(--muted);max-width:420px;}
.rsc-footer-stats{display:flex;flex-wrap:wrap;gap:10px;}
.rsc-footer-stats span{
  min-width:110px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg);
}
.rsc-footer-stats strong{display:block;font-size:20px;line-height:1;color:var(--text);}
.rsc-footer-stats small{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em;}
.rsc-footer-col h3{
  margin:0 0 12px;
  font-size:14px;
  color:var(--text);
  text-transform:uppercase;
  letter-spacing:.07em;
}
.rsc-footer-col a,
.rsc-footer-menu a{
  display:block;
  color:var(--muted);
  text-decoration:none;
  font-weight:800;
  padding:7px 0;
  line-height:1.25;
  transition:color .18s ease, transform .18s ease;
}
.rsc-footer-col a:hover,
.rsc-footer-menu a:hover{color:var(--accent);transform:translateX(3px);}
.rsc-footer-menu{display:block;}
.rsc-footer-menu li{list-style:none;margin:0;padding:0;}
.rsc-footer-menu ul{margin:0;padding:0;}
.rsc-footer-bottom{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}
.rsc-footer-bottom p{margin:0;}
.rsc-footer-disclaimer{text-align:right;}
.rsc-theme-light .site-footer.rsc-footer{background:linear-gradient(180deg,#f7f9ff,#ffffff);}
@media(max-width:980px){
  .rsc-footer-cta{grid-template-columns:1fr;}
  .rsc-footer-cta-actions{justify-content:flex-start;}
  .rsc-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rsc-footer-brand-col{grid-column:1/-1;}
}
@media(max-width:640px){
  .site-footer.rsc-footer{margin-top:34px;}
  .rsc-footer-wrap{padding:22px 0;}
  .rsc-footer-cta,.rsc-footer-brand-col,.rsc-footer-col{padding:18px;border-radius:18px;}
  .rsc-footer-grid{grid-template-columns:1fr;gap:12px;padding:18px 0;}
  .rsc-footer-cta-actions .btn{width:100%;justify-content:center;}
  .rsc-footer-bottom{display:block;}
  .rsc-footer-disclaimer{text-align:left;margin-top:8px!important;}
}

/* v1.5.5 homepage catalog overview polish */
.rsc-home-stats-card{
  position:relative;
  overflow:hidden;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:20px;
  min-height:0;
}
.rsc-home-stats-card:before{
  content:"";
  position:absolute;
  inset:-90px -110px auto auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background:radial-gradient(circle,color-mix(in srgb,var(--accent) 24%,transparent),transparent 70%);
  pointer-events:none;
}
.rsc-home-stats-head{position:relative;z-index:1;}
.rsc-home-stats-head .panel-label{display:inline-flex;margin:0 0 12px;}
.rsc-home-stats-head h2{
  margin:0 0 10px;
  font-size:clamp(26px,3vw,38px);
  line-height:1;
  letter-spacing:-.045em;
}
.rsc-home-stats-head p{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.55;
}
.rsc-home-stats-card .rsc-home-stat-grid{position:relative;z-index:1;gap:12px;margin-top:4px;}
.rsc-home-stats-card .rsc-home-stat-grid span{
  min-height:94px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  border-radius:18px;
  padding:16px;
}
.rsc-home-stats-card .rsc-home-stat-grid small{
  order:0;
  margin:0;
  color:var(--muted);
  font-size:11px;
  line-height:1.25;
}
.rsc-home-stats-card .rsc-home-stat-grid strong{
  order:1;
  font-size:25px;
  line-height:1;
  letter-spacing:-.035em;
}
.rsc-home-stats-link{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border-radius:16px;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 24%,transparent);
}
.rsc-home-stats-link:hover{filter:brightness(1.05);}
@media(max-width:980px){
  .rsc-home-stats-card{padding:24px;}
}
@media(max-width:560px){
  .rsc-home-stats-card .rsc-home-stat-grid{grid-template-columns:1fr;}
  .rsc-home-stats-card .rsc-home-stat-grid span{min-height:76px;}
}

/* v1.5.6 compact homepage catalog overview on mobile */
@media(max-width:640px){
  .rsc-home-stats-card{
    padding:16px;
    gap:14px;
    border-radius:18px;
  }
  .rsc-home-stats-card:before{
    width:160px;
    height:160px;
    inset:-80px -90px auto auto;
  }
  .rsc-home-stats-head .panel-label{
    margin-bottom:8px;
    font-size:11px;
  }
  .rsc-home-stats-head h2{
    font-size:24px;
    margin-bottom:6px;
  }
  .rsc-home-stats-head p{
    font-size:13px;
    line-height:1.45;
    max-width:34em;
  }
  .rsc-home-stats-card .rsc-home-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:0;
  }
  .rsc-home-stats-card .rsc-home-stat-grid span{
    min-height:66px;
    padding:11px;
    border-radius:14px;
    gap:7px;
  }
  .rsc-home-stats-card .rsc-home-stat-grid strong{
    font-size:20px;
  }
  .rsc-home-stats-card .rsc-home-stat-grid small{
    font-size:9px;
    line-height:1.2;
    letter-spacing:.045em;
  }
  .rsc-home-stats-link{
    min-height:42px;
    border-radius:14px;
    font-size:14px;
    box-shadow:none;
  }
}
@media(max-width:380px){
  .rsc-home-stats-card .rsc-home-stat-grid{grid-template-columns:1fr;}
  .rsc-home-stats-head p{display:none;}
}

/* v1.5.7: light theme homepage ghost buttons visibility */
html[data-rsc-theme="light"] .rsc-home-actions .button.ghost,
html.rsc-theme-light .rsc-home-actions .button.ghost,
body.rsc-theme-light .rsc-home-actions .button.ghost{
  background:#fff7f1;
  color:#2a1b16;
  border-color:#e8cfc0;
  box-shadow:0 10px 24px rgba(111,78,55,.08);
}
html[data-rsc-theme="light"] .rsc-home-actions .button.ghost:hover,
html.rsc-theme-light .rsc-home-actions .button.ghost:hover,
body.rsc-theme-light .rsc-home-actions .button.ghost:hover{
  background:#fff;
  color:#1f140f;
  border-color:#d7b4a2;
}
html[data-rsc-theme="light"] .rsc-home-actions .button.primary,
html.rsc-theme-light .rsc-home-actions .button.primary,
body.rsc-theme-light .rsc-home-actions .button.primary{
  color:#fff;
}
@media(max-width:640px){
  html[data-rsc-theme="light"] .rsc-home-actions .button.ghost,
  html.rsc-theme-light .rsc-home-actions .button.ghost,
  body.rsc-theme-light .rsc-home-actions .button.ghost{
    background:#fff7f1;
    color:#2a1b16;
  }
}


/* v1.5.8 pagination, place archive stats, text clamps */
.pagination,
.comments-pagination{
  margin:32px auto 0;
  display:flex;
  justify-content:center;
  align-items:center;
}
.pagination .nav-links,
.comments-pagination .nav-links,
.page-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  width:100%;
}
.pagination .page-numbers,
.comments-pagination .page-numbers,
.page-links .post-page-numbers{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
  color:var(--muted);
  font-weight:900;
  font-size:14px;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.pagination a.page-numbers:hover,
.comments-pagination a.page-numbers:hover,
.page-links a.post-page-numbers:hover{
  color:var(--text);
  border-color:color-mix(in srgb,var(--accent) 58%,var(--line));
  background:var(--panel-2);
  transform:translateY(-1px);
}
.pagination .page-numbers.current,
.comments-pagination .page-numbers.current,
.page-links .post-page-numbers.current{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg,var(--accent),#8a5cff);
  box-shadow:0 14px 32px rgba(111,92,255,.28);
}
.pagination .page-numbers.prev,
.pagination .page-numbers.next,
.comments-pagination .page-numbers.prev,
.comments-pagination .page-numbers.next{
  min-width:96px;
}
.rsc-theme-light .pagination .page-numbers,
.rsc-theme-light .comments-pagination .page-numbers,
.rsc-theme-light .page-links .post-page-numbers{
  background:rgba(255,255,255,.68);
  color:#5b4b43;
  box-shadow:0 12px 30px rgba(111,78,55,.10);
}
.rsc-theme-light .pagination .page-numbers.current,
.rsc-theme-light .comments-pagination .page-numbers.current,
.rsc-theme-light .page-links .post-page-numbers.current{
  color:#fff;
}
.rbx-place-card-stats span{
  white-space:nowrap;
}
.rbx-clamp-block{
  position:relative;
}
.rbx-clamp-content{
  max-height:calc(1.55em * 6);
  overflow:hidden;
  position:relative;
}
.rbx-clamp-block.has-overflow:not(.is-expanded) .rbx-clamp-content:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:3.5em;
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--panel));
}
.rbx-clamp-block.is-expanded .rbx-clamp-content{
  max-height:none;
}
.rbx-load-more-text{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:9px 14px;
  background:var(--panel-2);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
}
.rbx-load-more-text:hover{
  border-color:color-mix(in srgb,var(--accent) 55%,var(--line));
  background:var(--accent-soft);
}
.rbx-load-more-text[hidden]{
  display:none!important;
}
.rbx-description-text .rbx-load-more-text{
  margin-bottom:4px;
}
.rbx-features-block .rbx-clamp-content p:last-child,
.rbx-description-text .rbx-clamp-content p:last-child{
  margin-bottom:0;
}
@media (max-width:640px){
  .pagination .page-numbers,
  .comments-pagination .page-numbers,
  .page-links .post-page-numbers{
    min-width:38px;
    height:38px;
    padding:0 11px;
    border-radius:12px;
    font-size:13px;
  }
  .pagination .page-numbers.prev,
  .pagination .page-numbers.next,
  .comments-pagination .page-numbers.prev,
  .comments-pagination .page-numbers.next{
    min-width:auto;
  }
}

/* v1.6.4 standard post layout */
.rsc-post-layout{padding:42px 0 10px;}
.rsc-post-card{background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;}
.rsc-post-hero{padding:32px 32px 22px;}
.rsc-post-hero h1{margin:0 0 16px;font-size:clamp(34px,5vw,58px);line-height:1;letter-spacing:-.045em;max-width:920px;}
.rsc-post-meta{display:flex;flex-wrap:wrap;gap:10px;color:var(--muted);font-size:14px;font-weight:700;}
.rsc-post-meta span{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--accent-soft);border-radius:999px;padding:8px 11px;}
.rsc-post-meta a{color:var(--text);}
.rsc-post-cover{margin:0 32px 0;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--thumb);}
.rsc-post-cover img{width:100%;height:auto;max-height:520px;object-fit:cover;}
.rsc-post-content{padding:28px 32px 8px;font-size:17px;line-height:1.75;max-width:920px;}
.rsc-post-content > *:first-child{margin-top:0;}
.rsc-post-content h2,.rsc-post-content h3,.rsc-post-content h4{line-height:1.15;letter-spacing:-.025em;margin:1.5em 0 .55em;}
.rsc-post-content h2{font-size:30px;}
.rsc-post-content h3{font-size:24px;}
.rsc-post-content p,.rsc-post-content ul,.rsc-post-content ol{margin:0 0 1.15em;}
.rsc-post-content blockquote{margin:24px 0;padding:18px 20px;border-left:4px solid var(--accent);background:var(--panel);border-radius:14px;color:var(--muted);}
.rsc-post-content code{background:var(--panel-2);border:1px solid var(--line);border-radius:8px;padding:2px 6px;font-size:.9em;}
.rsc-post-content pre{background:var(--code-bg);border:1px solid var(--line);border-radius:16px;padding:18px;overflow:auto;}
.rsc-post-content pre code{background:transparent;border:0;padding:0;}
.rsc-post-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 32px 32px;flex-wrap:wrap;}
.rsc-post-tags{display:flex;gap:8px;flex-wrap:wrap;}
.rsc-post-tags a{border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:999px;padding:7px 10px;font-size:13px;font-weight:800;}
.rsc-post-pages{padding:0 32px 12px;display:flex;gap:8px;flex-wrap:wrap;}
.rsc-post-pages a,.rsc-post-pages .post-page-numbers{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:8px 11px;font-weight:800;}
.rsc-post-related{margin-top:32px;}
.rsc-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.rsc-post-grid--related{grid-template-columns:repeat(3,minmax(0,1fr));}
.rsc-post-teaser{background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;min-width:0;transition:.18s ease;}
.rsc-post-teaser:hover{transform:translateY(-3px);border-color:var(--accent);}
.rsc-post-teaser-thumb{display:grid;place-items:center;aspect-ratio:16/9;background:var(--thumb);overflow:hidden;color:color-mix(in srgb,var(--muted) 60%,transparent);font-size:34px;font-weight:900;}
.rsc-post-teaser-thumb img{width:100%;height:100%;object-fit:cover;}
.rsc-post-teaser-body{padding:17px;}
.rsc-post-teaser-meta{display:flex;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;}
.rsc-post-teaser h2{font-size:20px;line-height:1.2;margin:0 0 10px;letter-spacing:-.025em;}
.rsc-post-teaser h2 a:hover{color:var(--accent);}
.rsc-post-teaser p{margin:0 0 16px;color:var(--muted);font-size:14px;line-height:1.55;}
.rsc-post-teaser-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px;font-weight:800;}
.rsc-post-archive .section-heading{align-items:flex-start;}
.rsc-theme-light .rsc-post-card,.rsc-theme-light .rsc-post-teaser{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13);}
.rsc-theme-light .rsc-post-meta span,.rsc-theme-light .rsc-post-tags a{background:rgba(255,246,238,.72);}
@media (max-width: 900px){
  .rsc-post-grid,.rsc-post-grid--related{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rsc-post-hero,.rsc-post-content,.rsc-post-footer{padding-left:22px;padding-right:22px;}
  .rsc-post-cover{margin-left:22px;margin-right:22px;border-radius:16px;}
}
@media (max-width: 620px){
  .rsc-post-layout{padding:28px 0 6px;}
  .rsc-post-grid,.rsc-post-grid--related{grid-template-columns:1fr;}
  .rsc-post-hero{padding:22px 18px 16px;}
  .rsc-post-hero h1{font-size:clamp(30px,9vw,40px);}
  .rsc-post-cover{margin-left:18px;margin-right:18px;}
  .rsc-post-content{padding:22px 18px 4px;font-size:16px;line-height:1.68;}
  .rsc-post-content h2{font-size:25px;}
  .rsc-post-content h3{font-size:21px;}
  .rsc-post-footer{padding:16px 18px 24px;}
}


/* v1.6.5 guest auth modal */
.rsc-auth-modal[hidden]{display:none!important;}
.rsc-auth-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:18px;}
.rsc-auth-modal-backdrop{position:absolute;inset:0;background:rgba(2,6,18,.62);backdrop-filter:blur(8px);}
.rsc-auth-modal-dialog{position:relative;width:min(420px,100%);border:1px solid var(--line);border-radius:24px;background:var(--card);box-shadow:0 28px 90px rgba(0,0,0,.42);padding:26px;display:grid;gap:14px;color:var(--text);}
.rsc-auth-modal-eyebrow{display:inline-flex;width:max-content;border:1px solid rgba(96,165,250,.3);background:rgba(96,165,250,.12);color:var(--accent);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.rsc-auth-modal-dialog h2{margin:0;font-size:28px;line-height:1.05;}
.rsc-auth-modal-dialog p{margin:0;color:var(--muted);line-height:1.6;}
.rsc-auth-modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px;}
.rsc-auth-modal-close{position:absolute;right:14px;top:12px;width:34px;height:34px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);font-size:22px;line-height:1;cursor:pointer;}
.rsc-auth-modal-close:hover{border-color:rgba(96,165,250,.55);}
.rsc-auth-modal-open{overflow:hidden;}
.rsc-theme-light .rsc-auth-modal-backdrop{background:rgba(15,23,42,.36);}
.rsc-theme-light .rsc-auth-modal-dialog{background:#fffaf5;}
.rsc-theme-light .rsc-auth-modal-close{background:rgba(15,23,42,.04);}
button.rbx-reaction-btn{font:inherit;cursor:pointer;}
@media (max-width:560px){.rsc-auth-modal-dialog{padding:22px;border-radius:20px}.rsc-auth-modal-dialog h2{font-size:24px}.rsc-auth-modal-actions .btn{width:100%;justify-content:center}}


/* v1.6.6 standard post grids */
.rsc-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;}
.rsc-search-grid .script-card,.rsc-search-grid .rsc-post-teaser,.rsc-post-grid .rsc-post-teaser{height:100%;}
.rsc-post-teaser{display:flex;flex-direction:column;}
.rsc-post-teaser-thumb{flex:0 0 auto;}
.rsc-post-teaser-body{display:flex;flex-direction:column;flex:1;}
.rsc-post-teaser-body p{flex:1;}
.rsc-home-articles .rsc-post-grid{margin-top:4px;}
@media (max-width: 900px){
  .rsc-search-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 620px){
  .rsc-search-grid{grid-template-columns:1fr;}
}


/* v1.6.7 search and post view counters */
.rsc-search-featured-place{margin:0 0 22px;}
.rsc-search-place-card{width:min(50%, 560px);display:grid;grid-template-columns:132px minmax(0,1fr);gap:16px;align-items:center;background:var(--card-gradient);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:14px;overflow:hidden;}
.rsc-search-place-thumb{display:grid;place-items:center;aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:var(--thumb);font-size:34px;font-weight:900;color:var(--muted);}
.rsc-search-place-thumb img{width:100%;height:100%;object-fit:cover;}
.rsc-search-place-body{min-width:0;display:grid;gap:10px;}
.rsc-search-place-body h2{font-size:22px;line-height:1.12;margin:0;letter-spacing:-.025em;}
.rsc-search-place-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.rsc-search-place-stats span{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:10px;display:grid;gap:2px;}
.rsc-search-place-stats strong{font-size:18px;line-height:1;}
.rsc-search-place-stats small{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900;}
.rsc-post-teaser-meta span:last-child{white-space:nowrap;}
.rsc-theme-light .rsc-search-place-card{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13);}
@media (max-width: 900px){
  .rsc-search-place-card{width:100%;}
}
@media (max-width: 620px){
  .rsc-search-place-card{grid-template-columns:92px minmax(0,1fr);border-radius:18px;padding:12px;}
  .rsc-search-place-body h2{font-size:18px;}
  .rsc-search-place-stats{grid-template-columns:1fr;}
}


/* v1.6.9 place live pagination and search place card */
.rsc-search-featured-place{margin:0 0 22px;}
.rsc-search-place-card{width:100%;display:grid;grid-template-columns:132px minmax(0,1fr) 46px;gap:18px;align-items:center;background:var(--card-gradient);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:15px;text-decoration:none;color:var(--text);overflow:hidden;position:relative;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;}
.rsc-search-place-card:hover{transform:translateY(-3px);border-color:var(--accent);box-shadow:0 28px 80px rgba(0,0,0,.26);}
.rsc-search-place-card:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 70%,transparent);outline-offset:4px;}
.rsc-search-place-thumb{display:grid;place-items:center;aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:var(--thumb);font-size:34px;font-weight:900;color:var(--muted);transition:transform .18s ease;}
.rsc-search-place-card:hover .rsc-search-place-thumb{transform:scale(1.02);}
.rsc-search-place-thumb img{width:100%;height:100%;object-fit:cover;}
.rsc-search-place-body{min-width:0;display:grid;gap:10px;}
.rsc-search-place-title{font-size:24px;line-height:1.08;letter-spacing:-.03em;color:var(--text);}
.rsc-search-place-stats{display:grid;grid-template-columns:repeat(2,minmax(0,160px));gap:8px;}
.rsc-search-place-stats span{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:10px;display:grid;gap:2px;}
.rsc-search-place-stats strong{font-size:18px;line-height:1;color:var(--text);}
.rsc-search-place-stats small{font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:900;}
.rsc-search-place-arrow{width:42px;height:42px;border-radius:999px;border:1px solid var(--line);display:grid;place-items:center;background:var(--panel);font-size:22px;font-weight:900;color:var(--accent);transition:transform .18s ease,border-color .18s ease,background .18s ease;}
.rsc-search-place-card:hover .rsc-search-place-arrow{transform:translateX(4px);border-color:var(--accent);background:var(--accent-soft);}
.rsc-theme-light .rsc-search-place-card{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13);}
.rsc-theme-light .rsc-search-place-card:hover{box-shadow:0 28px 70px rgba(111,78,55,.2);}
.rsc-place-live-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px;}
.rsc-place-load-more{border:1px solid var(--line);border-radius:999px;background:var(--card-gradient);color:var(--text);box-shadow:var(--shadow);padding:12px 20px;font-weight:900;cursor:pointer;transition:transform .18s ease,border-color .18s ease,opacity .18s ease;}
.rsc-place-load-more:hover{transform:translateY(-2px);border-color:var(--accent);}
.rsc-place-load-more:disabled{opacity:.62;cursor:wait;transform:none;}
.rsc-place-load-status{color:var(--muted);font-size:13px;font-weight:800;}
.rsc-live-added{animation:rscLiveFadeIn .22s ease both;}
@keyframes rscLiveFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (max-width: 700px){
  .rsc-search-place-card{grid-template-columns:92px minmax(0,1fr) 34px;gap:12px;border-radius:20px;padding:12px;}
  .rsc-search-place-title{font-size:19px;}
  .rsc-search-place-stats{grid-template-columns:1fr;}
  .rsc-search-place-arrow{width:32px;height:32px;font-size:18px;}
}


/* v1.7.1 Account Submit Script theme colors */
.rsc-submit-card--organized,
.rsc-account-shell .rsc-submit-card--organized,
.rsc-auth-card.rsc-submit-card{
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.025)),var(--panel)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
}
.rsc-submit-card--organized .rsc-submit-section{
  background:var(--panel-2)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.10)!important;
}
.rsc-submit-card--organized .rsc-submit-section-title h3,
.rsc-submit-card--organized .rsc-submit-label{
  color:var(--text)!important;
}
.rsc-submit-card--organized .rsc-submit-section-title p,
.rsc-submit-card--organized .rsc-submit-help,
.rsc-submit-card--organized .rsc-auth-muted{
  color:var(--muted)!important;
}
.rsc-submit-card--organized input,
.rsc-submit-card--organized textarea,
.rsc-submit-card--organized select{
  background:var(--input-bg)!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
.rsc-submit-card--organized input::placeholder,
.rsc-submit-card--organized textarea::placeholder{
  color:color-mix(in srgb,var(--muted) 72%,transparent)!important;
}
.rsc-submit-card--organized input[type="file"]{
  background:color-mix(in srgb,var(--panel) 82%,var(--text) 4%)!important;
  border-color:var(--line)!important;
}
.rsc-theme-light .rsc-submit-card--organized,
body.rsc-theme-light .rsc-submit-card--organized,
html[data-rsc-theme="light"] .rsc-submit-card--organized{
  background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(251,241,232,.98))!important;
  box-shadow:0 22px 60px rgba(111,78,55,.13)!important;
}
.rsc-theme-light .rsc-submit-card--organized .rsc-submit-section,
body.rsc-theme-light .rsc-submit-card--organized .rsc-submit-section,
html[data-rsc-theme="light"] .rsc-submit-card--organized .rsc-submit-section{
  background:#fffaf5!important;
  box-shadow:0 16px 40px rgba(111,78,55,.08)!important;
}
.rsc-theme-light .rsc-submit-card--organized input,
.rsc-theme-light .rsc-submit-card--organized textarea,
.rsc-theme-light .rsc-submit-card--organized select,
body.rsc-theme-light .rsc-submit-card--organized input,
body.rsc-theme-light .rsc-submit-card--organized textarea,
body.rsc-theme-light .rsc-submit-card--organized select,
html[data-rsc-theme="light"] .rsc-submit-card--organized input,
html[data-rsc-theme="light"] .rsc-submit-card--organized textarea,
html[data-rsc-theme="light"] .rsc-submit-card--organized select{
  background:#fffaf5!important;
}


/* v1.7.2 mobile header quick actions */
.mobile-header-tools{display:none;align-items:center;gap:8px;margin-left:auto;}
.mobile-header-icon,.mobile-menu-toggle{transition:border-color .2s ease,background .2s ease,transform .2s ease,box-shadow .2s ease;}
.mobile-header-icon:hover,.mobile-menu-toggle:hover{background:var(--panel-2);border-color:color-mix(in srgb,var(--accent) 32%,var(--line));}
.mobile-header-icon:active,.mobile-menu-toggle:active{transform:translateY(1px);}
.mobile-header-icon:focus-visible,.mobile-menu-toggle:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 65%,transparent);outline-offset:2px;}
.mobile-header-icon{display:none;width:44px;height:44px;align-items:center;justify-content:center;flex:0 0 44px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);cursor:pointer;padding:0;}
.mobile-theme-toggle .theme-toggle-icon{font-size:18px;line-height:1;}
.mobile-theme-toggle .theme-toggle-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.mobile-search-icon{position:relative;display:block;width:17px;height:17px;border:2px solid currentColor;border-radius:50%;}
.mobile-search-icon::after{content:"";position:absolute;right:-5px;bottom:-4px;width:7px;height:2px;border-radius:999px;background:currentColor;transform:rotate(45deg);transform-origin:center;}
@media(max-width:980px){
  .mobile-header-tools{display:flex;}
  .mobile-header-icon{display:inline-flex;}
  .mobile-menu-toggle{margin-left:0;}
  .brand span:last-child{max-width:36vw;}
}
@media(max-width:640px){
  .brand span:last-child{max-width:30vw;}
}



/* v1.7.3 legacy inline script-button fix */
.entry-content .script-button,
.rsc-post-content .script-button,
.single-card .script-button,
.script-button{
  display:inline-flex!important;
  width:auto!important;
  max-width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:9px 13px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:var(--panel-2)!important;
  color:var(--text)!important;
  font:inherit!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
  transition:background .18s ease,border-color .18s ease,transform .18s ease!important;
}
.entry-content .script-button:hover,
.rsc-post-content .script-button:hover,
.single-card .script-button:hover,
.script-button:hover{
  background:var(--accent-soft)!important;
  border-color:var(--accent)!important;
  transform:translateY(-1px)!important;
}
.entry-content .script-button img,
.rsc-post-content .script-button img,
.single-card .script-button img,
.script-button img{
  width:16px!important;
  height:16px!important;
  max-width:16px!important;
  max-height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  object-fit:contain!important;
  margin:0 0 0 2px!important;
  display:inline-block!important;
  flex:0 0 16px!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
}
.rsc-theme-light .script-button,
body.rsc-theme-light .script-button,
html[data-rsc-theme="light"] .script-button{
  background:#fffaf5!important;
  color:var(--text)!important;
  border-color:var(--line)!important;
}
.rsc-theme-light .script-button:hover,
body.rsc-theme-light .script-button:hover,
html[data-rsc-theme="light"] .script-button:hover{
  background:rgba(220,102,85,.10)!important;
  border-color:#dc6655!important;
}




/* v1.7.4 redesigned script page */
.rsc-script-redesign{padding-top:28px;}
.rsc-script-breadcrumbs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 16px;color:var(--muted);font-size:13px;font-weight:800;}
.rsc-script-breadcrumbs a:hover{color:var(--accent);}
.rsc-script-hero{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.18fr) 300px;gap:18px;align-items:stretch;background:var(--card-gradient);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:18px;overflow:hidden;}
.rsc-script-hero-media{position:relative;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:var(--thumb);min-height:320px;}
.rsc-script-hero-media img{width:100%;height:100%;object-fit:cover;}
.rsc-script-hero-media .status-badge{position:absolute;left:14px;top:14px;}
.rsc-script-hero-main{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:10px 4px;}
.rsc-script-hero-kicker{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px;color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.rsc-script-hero-kicker span{border:1px solid var(--line);border-radius:999px;background:var(--panel);padding:7px 10px;}
.rsc-script-hero h1{font-size:clamp(34px,4.8vw,62px);line-height:.96;letter-spacing:-.055em;margin:0 0 16px;}
.rsc-script-lead{font-size:17px;line-height:1.65;color:var(--muted);margin:0 0 18px;max-width:760px;}
.rsc-script-meta-pills{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 18px;}
.rsc-script-meta-pills span{display:grid;gap:4px;border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:11px 12px;min-width:0;}
.rsc-script-meta-pills strong{font-size:16px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rsc-script-meta-pills small{font-size:11px;color:var(--muted);font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.rsc-script-primary-actions{display:flex;gap:10px;flex-wrap:wrap;}
.rsc-script-primary-actions .rbx-copy-main,.rsc-sidebar-action-card .rbx-copy-main{display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;}
.rsc-script-side-card{display:flex;flex-direction:column;gap:14px;border:1px solid var(--line);border-radius:22px;background:var(--panel);padding:16px;min-width:0;}
.rsc-script-side-stats{display:grid;gap:9px;}
.rsc-script-side-stats span{display:grid;gap:4px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2);padding:10px;}
.rsc-script-side-stats small{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;}
.rsc-script-side-stats strong{font-size:14px;line-height:1.2;overflow-wrap:anywhere;}
.rsc-script-anchor-nav{position:sticky;top:78px;z-index:20;display:flex;gap:8px;flex-wrap:wrap;margin:18px 0;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(14px);border:1px solid var(--line);border-radius:999px;padding:8px;box-shadow:var(--shadow);}
.rsc-script-anchor-nav a{border-radius:999px;padding:9px 13px;color:var(--muted);font-weight:900;font-size:13px;}
.rsc-script-anchor-nav a:hover{background:var(--panel-2);color:var(--text);}
.rsc-script-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start;}
.rsc-script-main-column{display:grid;gap:22px;min-width:0;}
.rsc-script-sticky-sidebar{position:sticky;top:150px;display:grid;gap:14px;}
.rsc-script-feature-card,.rsc-script-faq-card{background:var(--card-gradient);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:24px;}
.rsc-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.rsc-feature-grid span{border:1px solid var(--line);background:var(--panel);border-radius:15px;padding:11px 12px;color:var(--text);font-weight:800;line-height:1.35;}
.rsc-script-code-card .rsc-code-warning{margin:0;padding:12px 16px;border-bottom:1px solid var(--line);color:var(--muted);background:var(--panel);font-size:14px;}
.rsc-game-hub-card{display:grid;grid-template-columns:68px minmax(0,1fr) 28px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:20px;background:var(--card-gradient);box-shadow:var(--shadow);padding:12px;color:var(--text);transition:transform .18s ease,border-color .18s ease;}
.rsc-game-hub-card:hover{transform:translateY(-2px);border-color:var(--accent);}
.rsc-game-hub-media{display:grid;place-items:center;width:68px;height:68px;border-radius:16px;overflow:hidden;background:var(--thumb);font-weight:900;color:var(--muted);}
.rsc-game-hub-media img{width:100%;height:100%;object-fit:cover;}
.rsc-game-hub-body{display:grid;gap:3px;min-width:0;}
.rsc-game-hub-body small{color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.rsc-game-hub-body strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.rsc-game-hub-body span{color:var(--muted);font-size:12px;font-weight:800;}
.rsc-sidebar-action-card{display:grid;gap:10px;border:1px solid var(--line);border-radius:20px;background:var(--panel);box-shadow:var(--shadow);padding:14px;}
.rsc-sidebar-action-card .rbx-social-link,.rsc-sidebar-action-card .rbx-copy-main{width:100%;justify-content:center;}
.rsc-script-faq-card details{border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:14px 16px;margin-top:10px;}
.rsc-script-faq-card summary{cursor:pointer;font-weight:900;}
.rsc-script-faq-card p{color:var(--muted);margin:10px 0 0;}
.rsc-theme-light .rsc-script-hero,
.rsc-theme-light .rsc-script-feature-card,
.rsc-theme-light .rsc-script-faq-card,
.rsc-theme-light .rsc-game-hub-card{background:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));box-shadow:0 22px 60px rgba(111,78,55,.13);}
.rsc-theme-light .rsc-script-side-card,
.rsc-theme-light .rsc-sidebar-action-card,
.rsc-theme-light .rsc-feature-grid span,
.rsc-theme-light .rsc-script-faq-card details,
.rsc-theme-light .rsc-script-meta-pills span{background:rgba(255,246,238,.72);}
@media(max-width:1100px){
  .rsc-script-hero{grid-template-columns:minmax(260px,.8fr) minmax(0,1.2fr);}
  .rsc-script-side-card{grid-column:1/-1;}
  .rsc-script-side-stats{grid-template-columns:repeat(4,minmax(0,1fr));}
  .rsc-script-content-layout{grid-template-columns:1fr;}
  .rsc-script-sticky-sidebar{position:static;grid-template-columns:1fr 1fr;}
}
@media(max-width:760px){
  .rsc-script-redesign{padding-top:18px;}
  .rsc-script-hero{grid-template-columns:1fr;border-radius:22px;padding:13px;}
  .rsc-script-hero-media{min-height:220px;border-radius:18px;}
  .rsc-script-side-stats,.rsc-script-meta-pills{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rsc-script-anchor-nav{top:64px;border-radius:18px;overflow:auto;flex-wrap:nowrap;}
  .rsc-script-anchor-nav a{white-space:nowrap;}
  .rsc-feature-grid{grid-template-columns:1fr;}
  .rsc-script-sticky-sidebar{grid-template-columns:1fr;}
  .rsc-script-primary-actions .button,.rsc-script-primary-actions .rbx-copy-main{width:100%;}
}
@media(max-width:480px){
  .rsc-script-side-stats,.rsc-script-meta-pills{grid-template-columns:1fr;}
  .rsc-script-hero h1{font-size:32px;}
}




/* v1.7.4-toc1 floating script TOC */
.rsc-floating-toc{
  --rsc-toc-top:104px;
  position:fixed;
  top:var(--rsc-toc-top);
  left:max(14px,calc((100vw - 1180px)/2 - 172px));
  z-index:45;
  width:156px;
  max-height:calc(100vh - var(--rsc-toc-top) - 20px);
  display:grid;
  gap:7px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:18px;
  background:color-mix(in srgb,var(--panel) 92%,transparent);
  box-shadow:0 18px 54px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
  color:var(--text);
}
.rsc-floating-toc-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:2px 2px 7px;
  border-bottom:1px solid var(--line);
  margin-bottom:3px;
}
.rsc-floating-toc-head span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.09em;
}
.rsc-floating-toc-close{display:none;}
.rsc-floating-toc a{
  display:flex;
  align-items:center;
  min-height:34px;
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.rsc-floating-toc a:hover,
.rsc-floating-toc a.is-active{
  color:var(--text);
  background:var(--panel-2);
  transform:translateX(2px);
}
.rsc-floating-toc a.is-active{
  box-shadow:inset 3px 0 0 var(--accent);
}
.rsc-floating-toc-toggle{
  display:none;
  position:fixed;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  z-index:70;
  width:46px;
  height:46px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  color:var(--text);
  box-shadow:var(--shadow);
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
}
.rsc-floating-toc-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:currentColor;
}
.rsc-toc-open .rsc-floating-toc-toggle{
  border-color:var(--accent);
  background:var(--panel-2);
}
.rsc-theme-light .rsc-floating-toc,
body.rsc-theme-light .rsc-floating-toc,
html[data-rsc-theme="light"] .rsc-floating-toc{
  background:color-mix(in srgb,#fffaf5 94%,transparent);
  box-shadow:0 18px 54px rgba(111,78,55,.14);
}
@media(max-width:1460px){
  .rsc-floating-toc{
    left:12px;
    width:142px;
  }
  .rsc-script-redesign{
    padding-left:148px;
  }
}
@media(max-width:1180px){
  .rsc-floating-toc{display:none;}
  .rsc-script-redesign{padding-left:0;}
  .rsc-floating-toc-toggle{display:flex;}
  .rsc-toc-open .rsc-floating-toc{
    display:grid;
    left:auto;
    right:14px;
    top:calc(var(--rsc-header-height,76px) + 14px);
    width:min(280px,calc(100vw - 28px));
    max-height:calc(100vh - var(--rsc-header-height,76px) - 28px);
    z-index:80;
  }
  .rsc-toc-open .rsc-floating-toc-close{
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border:1px solid var(--line);
    border-radius:999px;
    background:var(--panel-2);
    color:var(--text);
    font-size:20px;
    line-height:1;
    cursor:pointer;
  }
}




/* v1.7.4-toc2 smooth navigation and larger TOC */
html{
  scroll-behavior:smooth;
}
#overview,
#features,
#script-code,
#faq,
#comments,
#related-scripts{
  scroll-margin-top:calc(var(--rsc-header-height,76px) + 22px);
}
.rsc-floating-toc{
  width:187px!important;
  padding:15px!important;
  border-radius:22px!important;
  gap:9px!important;
}
.rsc-floating-toc a{
  min-height:41px!important;
  padding:10px 12px!important;
  border-radius:14px!important;
  font-size:15px!important;
}
.rsc-floating-toc-head span{
  font-size:12px!important;
}
.rsc-script-anchor-nav a{
  scroll-behavior:smooth;
}
@media(max-width:1460px){
  .rsc-floating-toc{
    width:170px!important;
  }
  .rsc-script-redesign{
    padding-left:176px!important;
  }
}
@media(max-width:1180px){
  .rsc-script-redesign{
    padding-left:0!important;
  }
  .rsc-toc-open .rsc-floating-toc{
    width:min(336px,calc(100vw - 28px))!important;
  }
}




/* v1.7.4-toc3 TOC placement, borders and arrows */
.rsc-script-redesign{
  position:relative;
}
.rsc-floating-toc{
  left:max(16px,calc((100vw - 1180px)/2 - 230px))!important;
  width:198px!important;
  z-index:35!important;
}
.rsc-floating-toc a{
  position:relative;
  border:1px solid color-mix(in srgb,var(--line) 78%,transparent)!important;
  background:color-mix(in srgb,var(--panel) 70%,transparent)!important;
  padding-right:34px!important;
}
.rsc-floating-toc a::after{
  content:"→";
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  font-size:14px;
  font-weight:900;
  opacity:.72;
  transition:transform .18s ease,color .18s ease,opacity .18s ease;
}
.rsc-floating-toc a:hover::after,
.rsc-floating-toc a.is-active::after{
  transform:translate(3px,-50%);
  color:var(--accent);
  opacity:1;
}
.rsc-floating-toc a:hover,
.rsc-floating-toc a.is-active{
  border-color:color-mix(in srgb,var(--accent) 45%,var(--line))!important;
}
.rsc-floating-toc a.is-active{
  background:color-mix(in srgb,var(--accent-soft) 58%,var(--panel))!important;
}
@media(min-width:1461px){
  .rsc-script-redesign{
    padding-left:0!important;
  }
}
@media(max-width:1460px) and (min-width:1181px){
  .rsc-floating-toc{
    left:12px!important;
    width:182px!important;
  }
  .rsc-script-redesign{
    padding-left:194px!important;
  }
}
@media(max-width:1180px){
  .rsc-script-redesign{
    padding-left:0!important;
  }
  .rsc-floating-toc{
    left:auto!important;
  }
  .rsc-toc-open .rsc-floating-toc{
    right:14px!important;
    width:min(336px,calc(100vw - 28px))!important;
  }
}




/* v1.7.4-toc4 final TOC active-state fix */
#overview,
#features,
#script-code,
#faq,
#comments,
#related-scripts{
  scroll-margin-top:calc(var(--rsc-header-height,76px) + 24px)!important;
}
.rsc-floating-toc a.is-active{
  background:color-mix(in srgb,var(--accent-soft) 72%,var(--panel))!important;
  color:var(--text)!important;
  border-color:color-mix(in srgb,var(--accent) 58%,var(--line))!important;
}
.rsc-floating-toc a.is-active::after{
  color:var(--accent)!important;
  opacity:1!important;
}



/* v1.7.4-toc5 remove rbx section top margin */
.rbx-section{
  margin-top:0!important;
}




/* v1.7.4-toc6b hard script hero layout fix */
.rsc-script-hero{
  display:grid!important;
  grid-template-columns:minmax(260px,380px) minmax(0,1fr) minmax(240px,280px)!important;
  grid-template-areas:"media main side"!important;
  gap:18px!important;
  align-items:stretch!important;
  padding:14px!important;
  border-radius:24px!important;
  overflow:hidden!important;
}
.rsc-script-hero-media{
  grid-area:media!important;
  grid-column:auto!important;
  grid-row:auto!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  max-height:430px!important;
  align-self:stretch!important;
  border-radius:18px!important;
  overflow:hidden!important;
  z-index:1!important;
}
.rsc-script-hero-media img{
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  display:block!important;
}
.rsc-script-hero-main{
  grid-area:main!important;
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  padding:4px 4px!important;
  z-index:2!important;
  position:relative!important;
  justify-content:center!important;
}
.rsc-script-side-card{
  grid-area:side!important;
  grid-column:auto!important;
  grid-row:auto!important;
  min-width:0!important;
  width:100%!important;
  padding:14px!important;
  border-radius:20px!important;
  gap:10px!important;
  z-index:2!important;
  position:relative!important;
}
.rsc-script-hero-kicker{
  margin-bottom:9px!important;
  gap:7px!important;
}
.rsc-script-hero-kicker span{
  padding:6px 9px!important;
  font-size:11px!important;
}
.rsc-script-hero h1{
  font-size:clamp(32px,3.45vw,50px)!important;
  line-height:1.04!important;
  letter-spacing:-.05em!important;
  margin-bottom:12px!important;
  max-width:100%!important;
}
.rsc-script-lead{
  font-size:15px!important;
  line-height:1.55!important;
  margin-bottom:14px!important;
  max-width:100%!important;
}
.rsc-script-meta-pills{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin-bottom:14px!important;
  max-width:100%!important;
}
.rsc-script-meta-pills span{
  padding:9px 10px!important;
  border-radius:14px!important;
}
.rsc-script-meta-pills strong{
  font-size:15px!important;
}
.rsc-script-meta-pills small{
  font-size:10px!important;
}
.rsc-script-primary-actions{
  gap:8px!important;
}
.rsc-script-primary-actions .rbx-copy-main,
.rsc-script-primary-actions .button{
  padding:10px 15px!important;
  min-height:42px!important;
}
.rsc-script-side-stats{
  gap:8px!important;
}
.rsc-script-side-stats span{
  padding:9px 10px!important;
  border-radius:14px!important;
}
.rsc-script-side-stats small{
  font-size:10px!important;
}
.rsc-script-side-stats strong{
  font-size:13px!important;
}
.rsc-script-side-card .rbx-author img{
  width:38px!important;
  height:38px!important;
}
.rsc-script-side-card .rbx-reaction-row{
  padding:10px!important;
  gap:8px!important;
}
.rsc-script-side-card .rbx-reaction-btn{
  min-height:40px!important;
  padding:8px 12px!important;
}
@media(max-width:1180px){
  .rsc-script-hero{
    grid-template-columns:minmax(220px,320px) minmax(0,1fr)!important;
    grid-template-areas:
      "media main"
      "side side"!important;
  }
  .rsc-script-side-card{
    display:grid!important;
    grid-template-columns:minmax(170px,.8fr) minmax(0,1.4fr) auto!important;
    align-items:center!important;
  }
  .rsc-script-side-stats{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
@media(max-width:860px){
  .rsc-script-hero{
    grid-template-columns:1fr!important;
    grid-template-areas:
      "media"
      "main"
      "side"!important;
  }
  .rsc-script-hero-media{
    aspect-ratio:16/9!important;
    max-height:none!important;
  }
  .rsc-script-side-card{
    grid-template-columns:1fr!important;
  }
  .rsc-script-side-stats,
  .rsc-script-meta-pills{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:520px){
  .rsc-script-hero{
    padding:11px!important;
    border-radius:20px!important;
  }
  .rsc-script-hero h1{
    font-size:31px!important;
  }
  .rsc-script-lead{
    font-size:14px!important;
  }
  .rsc-script-side-stats,
  .rsc-script-meta-pills{
    grid-template-columns:1fr!important;
  }
}




/* v1.7.4-toc6c equal hero media and side columns */
.rsc-script-hero{
  grid-template-columns:minmax(250px,320px) minmax(0,1fr) minmax(250px,320px)!important;
}
.rsc-script-hero-media,
.rsc-script-side-card{
  width:100%!important;
  max-width:320px!important;
}
.rsc-script-hero-media{
  justify-self:start!important;
}
.rsc-script-side-card{
  justify-self:stretch!important;
}
@media(max-width:1180px){
  .rsc-script-hero{
    grid-template-columns:minmax(220px,320px) minmax(0,1fr)!important;
  }
  .rsc-script-hero-media,
  .rsc-script-side-card{
    max-width:none!important;
  }
}




/* v1.7.4-toc6d move hero views to side card */
.rsc-script-meta-pills--game-only{
  grid-template-columns:minmax(180px,320px)!important;
  max-width:320px!important;
}
.rsc-script-side-stats{
  grid-template-columns:1fr!important;
}
@media(max-width:1180px){
  .rsc-script-side-stats{
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
  }
}
@media(max-width:860px){
  .rsc-script-side-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:520px){
  .rsc-script-side-stats,
  .rsc-script-meta-pills--game-only{
    grid-template-columns:1fr!important;
    max-width:none!important;
  }
}




/* v1.7.4-toc6e hero game hub placement */
.rsc-script-hero-main{
  justify-content:center!important;
}
.rsc-game-hub-card--hero{
  margin-top:14px!important;
  width:min(100%,520px)!important;
  grid-template-columns:58px minmax(0,1fr) 28px!important;
  padding:10px!important;
  box-shadow:none!important;
  background:var(--panel)!important;
}
.rsc-game-hub-card--hero .rsc-game-hub-media{
  width:58px!important;
  height:58px!important;
  border-radius:14px!important;
}
.rsc-game-hub-card--hero .rsc-game-hub-body strong{
  font-size:15px!important;
}
.rsc-game-hub-card--hero .rsc-game-hub-body span{
  font-size:12px!important;
}
.rsc-script-sticky-sidebar .rsc-sidebar-action-card{
  margin-top:0!important;
}
@media(max-width:860px){
  .rsc-game-hub-card--hero{
    width:100%!important;
  }
}




/* v1.7.4-toc6f full-width script content */
.rsc-script-meta-pills,
.rsc-script-meta-pills--game-only{
  display:none!important;
}
.rsc-script-sticky-sidebar,
.rsc-script-sticky-sidebar .rsc-sidebar-action-card{
  display:none!important;
}
.rsc-script-content-layout{
  display:block!important;
  grid-template-columns:1fr!important;
  width:100%!important;
}
.rsc-script-main-column{
  width:100%!important;
  max-width:none!important;
  display:grid!important;
  gap:22px!important;
}
.rsc-script-main-column > .rbx-section,
.rsc-script-main-column > section{
  width:100%!important;
  max-width:none!important;
}
.rsc-script-feature-card,
.rsc-script-faq-card,
.rbx-description-card,
.rbx-code-card{
  width:100%!important;
  max-width:none!important;
}




/* v1.7.4-toc6g hero buttons and equal media/side card */
body.rsc-theme-dark,
html[data-rsc-theme="dark"]{
  --rsc-action-accent:#e07a67;
  --rsc-action-accent-hover:#ee8d7a;
  --rsc-action-accent-soft:rgba(224,122,103,.16);
}
body.rsc-theme-light,
html[data-rsc-theme="light"]{
  --rsc-action-accent:#dc6655;
  --rsc-action-accent-hover:#c95546;
  --rsc-action-accent-soft:rgba(220,102,85,.14);
}

.rsc-script-primary-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px!important;
  width:100%!important;
  max-width:100%!important;
}
.rsc-script-primary-actions .rbx-copy-main,
.rsc-script-primary-actions .button{
  width:100%!important;
  min-height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  border-radius:16px!important;
  padding:12px 16px!important;
  font-weight:900!important;
}
.rsc-script-primary-actions .rbx-copy-main,
.rsc-script-primary-actions .button.ghost{
  background:var(--rsc-action-accent)!important;
  border:1px solid var(--rsc-action-accent)!important;
  color:#fff!important;
  box-shadow:0 14px 34px var(--rsc-action-accent-soft)!important;
}
.rsc-script-primary-actions .rbx-copy-main:hover,
.rsc-script-primary-actions .button.ghost:hover{
  background:var(--rsc-action-accent-hover)!important;
  border-color:var(--rsc-action-accent-hover)!important;
  transform:translateY(-1px)!important;
}

/* Desktop: image and side card always equal width and equal height */
@media(min-width:1181px){
  .rsc-script-hero{
    grid-template-columns:minmax(280px,320px) minmax(0,1fr) minmax(280px,320px)!important;
    align-items:stretch!important;
  }
  .rsc-script-hero-media,
  .rsc-script-side-card{
    width:100%!important;
    max-width:none!important;
    height:100%!important;
    min-height:360px!important;
    align-self:stretch!important;
  }
  .rsc-script-hero-media{
    aspect-ratio:auto!important;
    justify-self:stretch!important;
  }
  .rsc-script-hero-media img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .rsc-script-side-card{
    justify-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
  }
  .rsc-script-side-stats{
    flex:1!important;
    align-content:stretch!important;
  }
}

@media(max-width:860px){
  .rsc-script-primary-actions{
    grid-template-columns:1fr!important;
  }
}




/* v1.7.4-toc6h hero image opening and theme buttons */
.rsc-script-hero-image-link{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  color:inherit;
}
.rsc-script-hero-image-link img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transition:transform .22s ease, filter .22s ease;
}
.rsc-script-hero-image-link:hover img{
  transform:scale(1.025);
  filter:brightness(.92);
}
.rsc-image-open-hint{
  position:absolute;
  right:12px;
  bottom:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  background:color-mix(in srgb,var(--panel) 86%,transparent);
  color:var(--text);
  font-size:12px;
  font-weight:900;
  opacity:0;
  transform:translateY(4px);
  transition:opacity .18s ease,transform .18s ease;
  backdrop-filter:blur(10px);
}
.rsc-script-hero-image-link:hover .rsc-image-open-hint{
  opacity:1;
  transform:translateY(0);
}

/* Return hero CTA buttons to normal theme styling */
.rsc-script-primary-actions .rbx-copy-main{
  background:var(--accent)!important;
  border:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
.rsc-script-primary-actions .button.ghost{
  background:transparent!important;
  border:1px solid var(--line)!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.rsc-script-primary-actions .rbx-copy-main:hover{
  background:var(--accent)!important;
  filter:brightness(1.07);
  transform:translateY(-1px)!important;
}
.rsc-script-primary-actions .button.ghost:hover{
  background:var(--panel-2)!important;
  border-color:var(--line)!important;
  color:var(--text)!important;
  transform:translateY(-1px)!important;
}
.rsc-theme-light .rsc-script-primary-actions .rbx-copy-main,
body.rsc-theme-light .rsc-script-primary-actions .rbx-copy-main,
html[data-rsc-theme="light"] .rsc-script-primary-actions .rbx-copy-main{
  color:#fff!important;
}




/* v1.7.4-toc6i same-page image lightbox */
button.rsc-script-hero-image-link{
  border:0!important;
  padding:0!important;
  background:transparent!important;
  cursor:zoom-in!important;
  text-align:inherit!important;
  font:inherit!important;
}
.rsc-image-lightbox[hidden]{
  display:none!important;
}
.rsc-image-lightbox{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:22px;
}
.rsc-image-lightbox-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(2,6,18,.74);
  backdrop-filter:blur(10px);
  cursor:zoom-out;
}
.rsc-image-lightbox-dialog{
  position:relative;
  z-index:2;
  width:min(1080px,100%);
  max-height:calc(100vh - 44px);
  display:grid;
  place-items:center;
}
.rsc-image-lightbox-dialog img{
  max-width:100%;
  max-height:calc(100vh - 44px);
  object-fit:contain;
  border-radius:20px;
  border:1px solid var(--line);
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  background:var(--panel);
}
.rsc-image-lightbox-close{
  position:absolute;
  right:10px;
  top:10px;
  z-index:3;
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid var(--line);
  background:color-mix(in srgb,var(--panel) 88%,transparent);
  color:var(--text);
  font-size:28px;
  line-height:1;
  cursor:pointer;
  display:grid;
  place-items:center;
  backdrop-filter:blur(10px);
}
.rsc-image-lightbox-close:hover{
  background:var(--panel-2);
}
body.rsc-image-lightbox-open{
  overflow:hidden;
}
.rsc-theme-light .rsc-image-lightbox-backdrop,
body.rsc-theme-light .rsc-image-lightbox-backdrop,
html[data-rsc-theme="light"] .rsc-image-lightbox-backdrop{
  background:rgba(15,23,42,.48);
}
@media(max-width:640px){
  .rsc-image-lightbox{
    padding:12px;
  }
  .rsc-image-lightbox-dialog img{
    border-radius:16px;
    max-height:calc(100vh - 24px);
  }
  .rsc-image-lightbox-close{
    right:8px;
    top:8px;
  }
}




/* v1.7.4-toc6j mobile script page adaptive fix */
@media(max-width:900px){
  html,body{
    overflow-x:hidden;
  }

  .rsc-script-redesign{
    width:min(100% - 20px,1180px)!important;
    padding-left:0!important;
    padding-top:16px!important;
  }

  .rsc-script-breadcrumbs{
    font-size:12px!important;
    gap:6px!important;
    margin:2px 0 12px!important;
  }

  .rsc-script-hero{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-areas:
      "media"
      "main"
      "side"!important;
    gap:12px!important;
    padding:12px!important;
    border-radius:20px!important;
    overflow:hidden!important;
  }

  .rsc-script-hero-media{
    grid-area:media!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:16/9!important;
    border-radius:16px!important;
  }

  .rsc-script-hero-media img,
  .rsc-script-hero-image-link,
  .rsc-script-hero-image-link img{
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    display:block!important;
  }

  .rsc-script-hero-media .status-badge{
    top:10px!important;
    left:10px!important;
    font-size:11px!important;
    padding:5px 8px!important;
  }

  .rsc-script-hero-main{
    grid-area:main!important;
    width:100%!important;
    min-width:0!important;
    padding:2px!important;
    display:block!important;
  }

  .rsc-script-hero h1{
    font-size:clamp(27px,8vw,36px)!important;
    line-height:1.06!important;
    letter-spacing:-.04em!important;
    margin:0 0 10px!important;
    overflow-wrap:anywhere!important;
  }

  .rsc-script-lead{
    font-size:14px!important;
    line-height:1.55!important;
    margin:0 0 12px!important;
  }

  .rsc-script-primary-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
  }

  .rsc-script-primary-actions .rbx-copy-main,
  .rsc-script-primary-actions .button{
    width:100%!important;
    min-height:44px!important;
    padding:11px 13px!important;
    border-radius:14px!important;
  }

  .rsc-game-hub-card--hero{
    width:100%!important;
    margin-top:10px!important;
    grid-template-columns:54px minmax(0,1fr) 24px!important;
    gap:10px!important;
    padding:9px!important;
    border-radius:16px!important;
  }

  .rsc-game-hub-card--hero .rsc-game-hub-media{
    width:54px!important;
    height:54px!important;
    border-radius:13px!important;
  }

  .rsc-game-hub-body strong,
  .rsc-game-hub-body span{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .rsc-script-side-card{
    grid-area:side!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    padding:12px!important;
    border-radius:18px!important;
  }

  .rsc-script-side-card .rbx-author{
    width:100%!important;
    min-width:0!important;
  }

  .rsc-script-side-card .rbx-author span{
    min-width:0!important;
  }

  .rsc-script-side-stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .rsc-script-side-stats span{
    min-width:0!important;
    padding:9px!important;
  }

  .rsc-script-side-stats strong{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .rsc-script-side-card .rbx-reaction-row{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
  }

  .rsc-script-side-card .rbx-reaction-row form{
    width:100%!important;
  }

  .rsc-script-side-card .rbx-reaction-btn{
    width:100%!important;
    min-height:42px!important;
    justify-content:center!important;
  }

  .rsc-script-anchor-nav{
    position:sticky!important;
    top:calc(var(--rsc-header-height,64px) + 6px)!important;
    display:flex!important;
    overflow-x:auto!important;
    flex-wrap:nowrap!important;
    gap:6px!important;
    margin:12px 0!important;
    padding:7px!important;
    border-radius:16px!important;
    scrollbar-width:none!important;
  }

  .rsc-script-anchor-nav::-webkit-scrollbar{
    display:none;
  }

  .rsc-script-anchor-nav a{
    white-space:nowrap!important;
    padding:8px 11px!important;
    font-size:12px!important;
  }

  .rsc-script-content-layout{
    display:block!important;
    width:100%!important;
  }

  .rsc-script-main-column{
    width:100%!important;
    max-width:none!important;
    display:grid!important;
    gap:14px!important;
  }

  .rbx-section,
  .rsc-script-feature-card,
  .rsc-script-faq-card,
  .rbx-description-card,
  .rbx-code-card{
    width:100%!important;
    max-width:none!important;
    padding:16px!important;
    border-radius:18px!important;
    margin-top:0!important;
  }

  .rbx-section-head{
    display:grid!important;
    gap:8px!important;
    align-items:start!important;
  }

  .rbx-section-head h2{
    font-size:22px!important;
    line-height:1.15!important;
    margin:0!important;
  }

  .rbx-section-actions{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
  }

  .rbx-section-actions a,
  .rbx-social-btn{
    min-height:38px!important;
    padding:9px 11px!important;
    font-size:13px!important;
  }

  .rsc-feature-grid{
    grid-template-columns:1fr!important;
    gap:8px!important;
  }

  .rsc-feature-grid span{
    padding:10px 11px!important;
    border-radius:14px!important;
    font-size:14px!important;
  }

  .rbx-code-head{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .rbx-code-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
  }

  .rbx-code-actions button{
    width:100%!important;
    min-height:40px!important;
    padding:9px 10px!important;
  }

  .rsc-script-code-card pre,
  .rbx-code-card pre{
    max-width:100%!important;
    overflow:auto!important;
    border-radius:0 0 14px 14px!important;
  }

  .rsc-script-code-card code,
  .rbx-code-card code{
    font-size:12px!important;
    line-height:1.55!important;
    white-space:pre!important;
  }

  .rsc-code-warning{
    font-size:13px!important;
    line-height:1.5!important;
  }

  .rsc-script-faq-card details{
    padding:12px!important;
    border-radius:14px!important;
  }

  .rsc-script-faq-card summary{
    font-size:14px!important;
  }

  .rsc-script-comments,
  .rsc-related-redesign{
    width:min(100% - 20px,1180px)!important;
  }

  .rsc-related-redesign .section-heading{
    display:grid!important;
    gap:8px!important;
  }

  .rsc-related-redesign .script-grid{
    grid-template-columns:1fr!important;
  }

  .rsc-floating-toc-toggle{
    right:10px!important;
    bottom:18px!important;
    top:auto!important;
    transform:none!important;
    width:44px!important;
    height:44px!important;
    border-radius:15px!important;
  }

  .rsc-toc-open .rsc-floating-toc{
    top:calc(var(--rsc-header-height,64px) + 10px)!important;
    right:10px!important;
    width:min(320px,calc(100vw - 20px))!important;
    max-height:calc(100vh - var(--rsc-header-height,64px) - 20px)!important;
  }

  .rsc-image-lightbox{
    padding:10px!important;
  }

  .rsc-image-lightbox-dialog img{
    max-height:calc(100vh - 20px)!important;
    border-radius:14px!important;
  }
}

@media(max-width:520px){
  .rsc-script-side-stats{
    grid-template-columns:1fr!important;
  }

  .rbx-code-actions{
    grid-template-columns:1fr!important;
  }

  .rsc-script-side-card .rbx-reaction-row{
    grid-template-columns:1fr!important;
  }

  .rsc-game-hub-card--hero{
    grid-template-columns:48px minmax(0,1fr) 20px!important;
  }

  .rsc-game-hub-card--hero .rsc-game-hub-media{
    width:48px!important;
    height:48px!important;
  }
}




/* v1.7.4-toc6k TOC vertical position fix */
@media(min-width:1181px){
  .rsc-floating-toc{
    top:calc(var(--rsc-header-height,76px) + 64px)!important;
  }
}
@media(max-width:1180px){
  .rsc-floating-toc-toggle{
    top:50%!important;
    bottom:auto!important;
    right:14px!important;
    transform:translateY(-50%)!important;
  }
  .rsc-toc-open .rsc-floating-toc{
    top:calc(var(--rsc-header-height,64px) + 14px)!important;
  }
}
@media(max-width:900px){
  .rsc-floating-toc-toggle{
    top:50%!important;
    bottom:auto!important;
    right:10px!important;
    transform:translateY(-50%)!important;
  }
}




/* v1.7.4-toc6l TOC position relative to script hero */
@media(min-width:1181px){
  .rsc-floating-toc{
    top:var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px))!important;
  }
}




/* v1.7.4-toc6m TOC safe header gap */
@media(min-width:1181px){
  .rsc-floating-toc{
    top:var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 32px))!important;
  }
}
@media(max-width:1180px){
  .rsc-toc-open .rsc-floating-toc{
    top:calc(var(--rsc-header-height,64px) + 24px)!important;
  }
}




/* v1.7.4-toc6n medium viewport side card fix */
@media(max-width:1180px) and (min-width:861px){
  .rsc-script-side-card{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:12px!important;
    min-height:0!important;
    height:auto!important;
  }

  .rsc-script-side-card .rbx-author{
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }

  .rsc-script-side-card .rbx-author span{
    min-width:0!important;
  }

  .rsc-script-side-card .rbx-author strong,
  .rsc-script-side-card .rbx-author small{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }

  .rsc-script-side-stats{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
  }

  .rsc-script-side-stats span{
    min-width:0!important;
    width:100%!important;
  }

  .rsc-script-side-stats strong{
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-overflow:clip!important;
  }

  .rsc-script-side-card .rbx-reaction-row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    gap:8px!important;
    justify-content:stretch!important;
  }

  .rsc-script-side-card .rbx-reaction-row form,
  .rsc-script-side-card .rbx-reaction-btn{
    width:100%!important;
  }

  .rsc-script-side-card .rbx-reaction-btn{
    justify-content:center!important;
  }
}

@media(max-width:1040px) and (min-width:861px){
  .rsc-script-hero{
    grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;
    grid-template-areas:
      "media main"
      "side side"!important;
  }

  .rsc-script-side-card{
    grid-area:side!important;
    max-width:none!important;
  }
}




/* v1.7.4-toc6o smooth theme switching */
html:not(.rsc-theme-boot) body,
html:not(.rsc-theme-boot) .site-header,
html:not(.rsc-theme-boot) .header-inner,
html:not(.rsc-theme-boot) .brand-mark,
html:not(.rsc-theme-boot) .brand,
html:not(.rsc-theme-boot) .primary-nav a,
html:not(.rsc-theme-boot) .nav-pill,
html:not(.rsc-theme-boot) .theme-toggle,
html:not(.rsc-theme-boot) .mobile-header-icon,
html:not(.rsc-theme-boot) .mobile-menu-toggle,
html:not(.rsc-theme-boot) .search-form,
html:not(.rsc-theme-boot) .search-form input,
html:not(.rsc-theme-boot) .search-form select,
html:not(.rsc-theme-boot) .button,
html:not(.rsc-theme-boot) .mini-button,
html:not(.rsc-theme-boot) .script-card,
html:not(.rsc-theme-boot) .rsc-post-teaser,
html:not(.rsc-theme-boot) .place-card,
html:not(.rsc-theme-boot) .single-card,
html:not(.rsc-theme-boot) .sidebar-card,
html:not(.rsc-theme-boot) .profile-header,
html:not(.rsc-theme-boot) .rbx-section,
html:not(.rsc-theme-boot) .rbx-description-card,
html:not(.rsc-theme-boot) .rbx-code-card,
html:not(.rsc-theme-boot) .rsc-script-hero,
html:not(.rsc-theme-boot) .rsc-script-hero-media,
html:not(.rsc-theme-boot) .rsc-script-side-card,
html:not(.rsc-theme-boot) .rsc-script-anchor-nav,
html:not(.rsc-theme-boot) .rsc-script-feature-card,
html:not(.rsc-theme-boot) .rsc-script-faq-card,
html:not(.rsc-theme-boot) .rsc-game-hub-card,
html:not(.rsc-theme-boot) .rsc-sidebar-action-card,
html:not(.rsc-theme-boot) .rsc-floating-toc,
html:not(.rsc-theme-boot) .rsc-floating-toc a,
html:not(.rsc-theme-boot) .rsc-floating-toc-toggle,
html:not(.rsc-theme-boot) .rsc-image-lightbox-backdrop,
html:not(.rsc-theme-boot) .rsc-image-lightbox-dialog img,
html:not(.rsc-theme-boot) .rsc-image-lightbox-close,
html:not(.rsc-theme-boot) .status-badge,
html:not(.rsc-theme-boot) .rbx-reaction-btn,
html:not(.rsc-theme-boot) .rsc-script-side-stats span,
html:not(.rsc-theme-boot) .rsc-feature-grid span,
html:not(.rsc-theme-boot) .rsc-script-faq-card details,
html:not(.rsc-theme-boot) .code-box,
html:not(.rsc-theme-boot) .code-toolbar,
html:not(.rsc-theme-boot) pre,
html:not(.rsc-theme-boot) code,
html:not(.rsc-theme-boot) input,
html:not(.rsc-theme-boot) textarea,
html:not(.rsc-theme-boot) select{
  transition:
    background-color .28s ease,
    background .28s ease,
    color .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    fill .28s ease,
    stroke .28s ease,
    opacity .22s ease,
    filter .22s ease,
    transform .18s ease;
}

html.rsc-theme-changing *,
html.rsc-theme-changing *::before,
html.rsc-theme-changing *::after{
  transition-duration:.28s!important;
}

@media (prefers-reduced-motion: reduce){
  html:not(.rsc-theme-boot) *,
  html:not(.rsc-theme-boot) *::before,
  html:not(.rsc-theme-boot) *::after{
    transition:none!important;
    scroll-behavior:auto!important;
  }
}




/* v1.7.4-toc6p Discord button below floating TOC */
.rsc-discord-toc-button{
  position:fixed;
  top:calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 476px);
  left:max(16px,calc((100vw - 1180px)/2 - 230px));
  z-index:35;
  width:198px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.rsc-discord-toc-button:hover{
  background:var(--panel-2);
  border-color:color-mix(in srgb,#5865F2 45%,var(--line));
  color:var(--text);
  transform:translateY(-1px);
  box-shadow:0 18px 42px rgba(88,101,242,.18);
}
.rsc-discord-toc-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.rsc-theme-light .rsc-discord-toc-button,
body.rsc-theme-light .rsc-discord-toc-button,
html[data-rsc-theme="light"] .rsc-discord-toc-button{
  background:#fff;
  border-color:#d6d9df;
  color:#1f2937;
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}
.rsc-theme-light .rsc-discord-toc-button:hover,
body.rsc-theme-light .rsc-discord-toc-button:hover,
html[data-rsc-theme="light"] .rsc-discord-toc-button:hover{
  background:#f3f4f6;
  border-color:#aeb6c4;
}
@media(max-width:1460px) and (min-width:1181px){
  .rsc-discord-toc-button{
    left:12px;
    width:182px;
  }
}
@media(max-width:1180px){
  .rsc-discord-toc-button{
    display:none;
  }
  .rsc-toc-open .rsc-discord-toc-button{
    display:flex;
    top:auto;
    left:auto;
    right:14px;
    bottom:18px;
    width:min(280px,calc(100vw - 28px));
    z-index:82;
  }
}
@media(max-width:900px){
  .rsc-toc-open .rsc-discord-toc-button{
    right:10px;
    bottom:14px;
    width:min(280px,calc(100vw - 20px));
  }
}




/* v1.7.4-toc6q Discord + Telegram buttons below floating TOC */
.rsc-discord-toc-button{
  top:calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 344px)!important;
}
.rsc-telegram-toc-button{
  position:fixed;
  top:calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 398px);
  left:max(16px,calc((100vw - 1180px)/2 - 230px));
  z-index:35;
  width:198px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--panel);
  color:var(--text);
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  font-size:13px;
  font-weight:900;
  line-height:1.2;
  text-decoration:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.rsc-telegram-toc-button:hover{
  background:var(--panel-2);
  border-color:color-mix(in srgb,#2AABEE 45%,var(--line));
  color:var(--text);
  transform:translateY(-1px);
  box-shadow:0 18px 42px rgba(42,171,238,.18);
}
.rsc-telegram-toc-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
}
.rsc-theme-light .rsc-telegram-toc-button,
body.rsc-theme-light .rsc-telegram-toc-button,
html[data-rsc-theme="light"] .rsc-telegram-toc-button{
  background:#fff;
  border-color:#d6d9df;
  color:#1f2937;
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}
.rsc-theme-light .rsc-telegram-toc-button:hover,
body.rsc-theme-light .rsc-telegram-toc-button:hover,
html[data-rsc-theme="light"] .rsc-telegram-toc-button:hover{
  background:#f3f4f6;
  border-color:#aeb6c4;
}
@media(max-width:1460px) and (min-width:1181px){
  .rsc-telegram-toc-button{
    left:12px;
    width:182px;
  }
}
@media(max-width:1180px){
  .rsc-telegram-toc-button{
    display:none;
  }
  .rsc-toc-open .rsc-discord-toc-button{
    bottom:72px!important;
  }
  .rsc-toc-open .rsc-telegram-toc-button{
    display:flex;
    top:auto;
    left:auto;
    right:14px;
    bottom:18px;
    width:min(280px,calc(100vw - 28px));
    z-index:82;
  }
}
@media(max-width:900px){
  .rsc-toc-open .rsc-discord-toc-button{
    bottom:68px!important;
  }
  .rsc-toc-open .rsc-telegram-toc-button{
    right:10px;
    bottom:14px;
    width:min(280px,calc(100vw - 20px));
  }
}




/* v1.7.4-toc6s safe social TOC buttons: no giant SVG, no overlap */
.rsc-floating-toc-stack{
  display:contents!important;
}
.rsc-discord-toc-button,
.rsc-telegram-toc-button{
  position:fixed!important;
  left:max(16px,calc((100vw - 1180px)/2 - 230px))!important;
  z-index:36!important;
  width:198px!important;
  min-height:46px!important;
  max-height:52px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:10px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
  overflow:hidden!important;
}
.rsc-discord-toc-button{
  top:calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 344px)!important;
}
.rsc-telegram-toc-button{
  top:calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 400px)!important;
}
.rsc-discord-toc-button svg,
.rsc-telegram-toc-button svg,
.rsc-discord-toc-icon,
.rsc-telegram-toc-icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  flex:0 0 22px!important;
  display:block!important;
}
.rsc-discord-toc-button span,
.rsc-telegram-toc-button span{
  display:block!important;
  min-width:0!important;
  max-width:132px!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.rsc-discord-toc-button:hover{
  background:var(--panel-2)!important;
  border-color:color-mix(in srgb,#5865F2 45%,var(--line))!important;
  color:var(--text)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 18px 42px rgba(88,101,242,.18)!important;
}
.rsc-telegram-toc-button:hover{
  background:var(--panel-2)!important;
  border-color:color-mix(in srgb,#2AABEE 45%,var(--line))!important;
  color:var(--text)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 18px 42px rgba(42,171,238,.18)!important;
}
.rsc-theme-light .rsc-discord-toc-button,
body.rsc-theme-light .rsc-discord-toc-button,
html[data-rsc-theme="light"] .rsc-discord-toc-button,
.rsc-theme-light .rsc-telegram-toc-button,
body.rsc-theme-light .rsc-telegram-toc-button,
html[data-rsc-theme="light"] .rsc-telegram-toc-button{
  background:#fff!important;
  border-color:#d6d9df!important;
  color:#1f2937!important;
  box-shadow:0 12px 28px rgba(15,23,42,.10)!important;
}
.rsc-theme-light .rsc-discord-toc-button:hover,
body.rsc-theme-light .rsc-discord-toc-button:hover,
html[data-rsc-theme="light"] .rsc-discord-toc-button:hover,
.rsc-theme-light .rsc-telegram-toc-button:hover,
body.rsc-theme-light .rsc-telegram-toc-button:hover,
html[data-rsc-theme="light"] .rsc-telegram-toc-button:hover{
  background:#f3f4f6!important;
  border-color:#aeb6c4!important;
}
@media(max-width:1460px) and (min-width:1181px){
  .rsc-discord-toc-button,
  .rsc-telegram-toc-button{
    left:12px!important;
    width:182px!important;
  }
  .rsc-discord-toc-button span,
  .rsc-telegram-toc-button span{
    max-width:116px!important;
  }
}
@media(max-width:1180px){
  .rsc-discord-toc-button,
  .rsc-telegram-toc-button{
    display:none!important;
  }
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    display:flex!important;
    left:auto!important;
    right:14px!important;
    width:min(280px,calc(100vw - 28px))!important;
    z-index:82!important;
  }
  .rsc-toc-open .rsc-discord-toc-button{
    top:auto!important;
    bottom:72px!important;
  }
  .rsc-toc-open .rsc-telegram-toc-button{
    top:auto!important;
    bottom:18px!important;
  }
}
@media(max-width:900px){
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    right:10px!important;
    width:min(280px,calc(100vw - 20px))!important;
  }
  .rsc-toc-open .rsc-discord-toc-button{
    bottom:68px!important;
  }
  .rsc-toc-open .rsc-telegram-toc-button{
    bottom:14px!important;
  }
}




/* v1.7.4-toc6t dynamic social buttons below actual TOC */
.rsc-discord-toc-button,
.rsc-telegram-toc-button{
  position:fixed!important;
  left:max(16px,calc((100vw - 1180px)/2 - 230px))!important;
  z-index:36!important;
  width:198px!important;
  height:auto!important;
  min-height:46px!important;
  max-height:54px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  padding:10px 12px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:var(--panel)!important;
  color:var(--text)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1.15!important;
  text-decoration:none!important;
  overflow:hidden!important;
}

.rsc-discord-toc-button{
  top:var(--rsc-toc-discord-top, calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 430px))!important;
}
.rsc-telegram-toc-button{
  top:var(--rsc-toc-telegram-top, calc(var(--rsc-script-hero-top, calc(var(--rsc-header-height,76px) + 64px)) + 486px))!important;
}

.rsc-discord-toc-button svg,
.rsc-telegram-toc-button svg,
.rsc-discord-toc-icon,
.rsc-telegram-toc-icon{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  flex:0 0 22px!important;
  display:block!important;
  object-fit:contain!important;
}

.rsc-discord-toc-button span,
.rsc-telegram-toc-button span{
  display:block!important;
  min-width:0!important;
  max-width:132px!important;
  white-space:normal!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.rsc-discord-toc-button:hover{
  background:var(--panel-2)!important;
  border-color:color-mix(in srgb,#5865F2 45%,var(--line))!important;
  color:var(--text)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 18px 42px rgba(88,101,242,.18)!important;
}
.rsc-telegram-toc-button:hover{
  background:var(--panel-2)!important;
  border-color:color-mix(in srgb,#2AABEE 45%,var(--line))!important;
  color:var(--text)!important;
  transform:translateY(-1px)!important;
  box-shadow:0 18px 42px rgba(42,171,238,.18)!important;
}

.rsc-theme-light .rsc-discord-toc-button,
body.rsc-theme-light .rsc-discord-toc-button,
html[data-rsc-theme="light"] .rsc-discord-toc-button,
.rsc-theme-light .rsc-telegram-toc-button,
body.rsc-theme-light .rsc-telegram-toc-button,
html[data-rsc-theme="light"] .rsc-telegram-toc-button{
  background:#fff!important;
  border-color:#d6d9df!important;
  color:#1f2937!important;
  box-shadow:0 12px 28px rgba(15,23,42,.10)!important;
}

@media(max-width:1460px) and (min-width:1181px){
  .rsc-discord-toc-button,
  .rsc-telegram-toc-button{
    left:12px!important;
    width:182px!important;
  }
  .rsc-discord-toc-button span,
  .rsc-telegram-toc-button span{
    max-width:116px!important;
  }
}

@media(max-width:1180px){
  .rsc-discord-toc-button,
  .rsc-telegram-toc-button{
    display:none!important;
  }
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    display:flex!important;
    left:auto!important;
    right:14px!important;
    width:min(280px,calc(100vw - 28px))!important;
    z-index:82!important;
  }
  .rsc-toc-open .rsc-discord-toc-button{
    top:auto!important;
    bottom:72px!important;
  }
  .rsc-toc-open .rsc-telegram-toc-button{
    top:auto!important;
    bottom:18px!important;
  }
}

@media(max-width:900px){
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    right:10px!important;
    width:min(280px,calc(100vw - 20px))!important;
  }
}




/* v1.7.5 minimal footer */
.rsc-footer-minimal{
  margin-top:64px;
  border-top:1px solid var(--line);
  background:color-mix(in srgb,var(--bg) 94%,var(--panel));
}
.rsc-footer-minimal .rsc-footer-wrap{
  padding:28px 0 22px;
}
.rsc-footer-minimal-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent);
}
.rsc-footer-minimal .rsc-footer-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  font-weight:900;
  text-decoration:none;
}
.rsc-footer-minimal-nav,
.rsc-footer-legal-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px 16px;
}
.rsc-footer-minimal-nav a,
.rsc-footer-legal-nav a{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  transition:color .18s ease;
}
.rsc-footer-minimal-nav a:hover,
.rsc-footer-legal-nav a:hover{
  color:var(--text);
}
.rsc-footer-legal-nav{
  justify-content:center;
  padding:18px 0 12px;
}
.rsc-footer-minimal .rsc-footer-bottom{
  display:flex;
  justify-content:center;
  padding-top:0;
  border-top:0;
  color:var(--muted);
  font-size:13px;
}
.rsc-footer-minimal .rsc-footer-bottom p{
  margin:0;
}
.rsc-footer-minimal .rsc-footer-disclaimer,
.rsc-footer-minimal .rsc-footer-cta,
.rsc-footer-minimal .rsc-footer-grid,
.rsc-footer-minimal .rsc-footer-stats{
  display:none!important;
}
@media(max-width:760px){
  .rsc-footer-minimal .rsc-footer-wrap{
    padding:24px 0 20px;
  }
  .rsc-footer-minimal-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .rsc-footer-minimal-nav,
  .rsc-footer-legal-nav{
    justify-content:flex-start;
  }
  .rsc-footer-legal-nav{
    padding:16px 0 12px;
  }
}




/* v1.7.7 place counts and archive alignment */
.rsc-home-place-meta span,
.rbx-place-card-stats span{
  white-space:nowrap;
}

.rbx-place-archive-section .pagination,
.rbx-place-archive-section .nav-links{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  margin:28px auto 0!important;
  padding:0!important;
  text-align:center;
}

.rbx-place-archive-section .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38px;
  min-height:38px;
  padding:8px 12px;
  margin:0!important;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  font-weight:850;
  text-decoration:none;
}

.rbx-place-archive-section .page-numbers.current,
.rbx-place-archive-section .page-numbers:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}

.rbx-place-card-body{
  display:flex;
  flex-direction:column;
}

.rbx-place-card-stats{
  margin-top:auto;
}




/* v1.7.8 faster popular places */
.rsc-home-place-meta span:last-child{
  color:var(--muted);
}


/* v1.7.9 popular places corrected */
.rsc-home-place-meta span:last-child{color:var(--muted);}




/* v1.8.0 archive-place stats alignment */
.rbx-place-archive-section .rbx-place-card-body .rbx-place-card-stats{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:18px 0 0!important;
  padding:0!important;
  width:100%!important;
  text-align:left!important;
}

.rbx-place-archive-section .rbx-place-card-stats span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:8px 11px!important;
  border-radius:999px!important;
  white-space:nowrap!important;
  transform:none!important;
}

.rbx-place-archive-section .rbx-place-card-body{
  text-align:left!important;
}




/* v1.8.1 Yandex RTB ad slots */
.rsc-yandex-ad{
  width:100%;
  max-width:1180px;
  height:100px;
  margin:18px auto;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:14px;
}
.rsc-yandex-ad--after-header{
  margin-top:14px;
  margin-bottom:18px;
}
.rsc-yandex-ad--before-script-code,
.rsc-yandex-ad--after-script-code{
  margin-top:22px;
  margin-bottom:22px;
}
.rsc-yandex-ad-desktop{
  width:100%;
  height:100px;
  display:block;
}
.rsc-yandex-ad-mobile{
  display:none;
}
.rsc-yandex-ad-desktop > div,
.rsc-yandex-ad-mobile > div{
  width:100%;
  height:100px;
}
@media(max-width:700px){
  .rsc-yandex-ad{
    width:320px;
    max-width:calc(100vw - 20px);
    height:100px;
    margin:14px auto;
    border-radius:12px;
  }
  .rsc-yandex-ad-desktop{
    display:none;
  }
  .rsc-yandex-ad-mobile{
    width:320px;
    max-width:100%;
    height:100px;
    display:block;
  }
}




/* v1.8.2 keep only after-code Yandex ad and style it like page card */
.rsc-yandex-ad--after-header,
.rsc-yandex-ad--before-script-code{
  display:none!important;
}

.rsc-yandex-ad--after-script-code{
  width:100%;
  max-width:100%;
  height:132px;
  margin:24px 0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card-gradient);
  box-shadow:var(--shadow);
}

.rsc-yandex-ad--after-script-code::before{
  content:"Advertisement";
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
}

.rsc-yandex-ad--after-script-code .rsc-yandex-ad-desktop,
.rsc-yandex-ad--after-script-code .rsc-yandex-ad-mobile{
  border-radius:12px;
  overflow:hidden;
  background:color-mix(in srgb,var(--panel-2) 74%,transparent);
}

.rsc-yandex-ad--after-script-code .rsc-yandex-ad-desktop{
  width:100%;
  height:100px;
}

.rsc-yandex-ad--after-script-code .rsc-yandex-ad-mobile{
  height:100px;
}

@media(max-width:700px){
  .rsc-yandex-ad--after-script-code{
    width:100%;
    max-width:100%;
    height:132px;
    padding:15px;
    margin:20px 0;
  }

  .rsc-yandex-ad--after-script-code .rsc-yandex-ad-mobile{
    width:320px;
    max-width:100%;
    margin:0 auto;
  }
}




/* v1.8.3 Yandex RTB before and after script code */
.rsc-yandex-ad--before-script-code{
  display:flex!important;
  width:100%;
  max-width:100%;
  height:281px!important;
  min-height:281px!important;
  margin:24px 0;
  padding:15px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card-gradient);
  box-shadow:var(--shadow);
}

.rsc-yandex-ad--before-script-code .rsc-yandex-ad-desktop,
.rsc-yandex-ad--before-script-code .rsc-yandex-ad-mobile{
  border-radius:12px;
  overflow:hidden;
  background:color-mix(in srgb,var(--panel-2) 74%,transparent);
}

.rsc-yandex-ad--before-script-code .rsc-yandex-ad-desktop{
  width:100%;
  height:251px!important;
  min-height:251px!important;
}

.rsc-yandex-ad--before-script-code .rsc-yandex-ad-desktop > div{
  height:251px!important;
  min-height:251px!important;
}

.rsc-yandex-ad--before-script-code .rsc-yandex-ad-mobile{
  height:100px;
}

@media(max-width:700px){
  .rsc-yandex-ad--before-script-code{
    width:100%;
    max-width:100%;
    height:132px!important;
    min-height:132px!important;
    padding:15px;
    margin:20px 0;
  }

  .rsc-yandex-ad--before-script-code .rsc-yandex-ad-mobile{
    width:320px;
    max-width:100%;
    margin:0 auto;
  }
}




/* v1.8.5 Executor Status page */
.rsc-executor-status-page{
  padding-bottom:44px;
}
.rsc-executor-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) 420px;
  gap:22px;
  align-items:stretch;
  margin-top:34px;
}
.rsc-executor-hero-copy,
.rsc-executor-summary,
.rsc-executor-toolbar,
.rsc-executor-error,
.rsc-executor-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--card-gradient);
  box-shadow:var(--shadow);
}
.rsc-executor-hero-copy{
  padding:32px;
}
.rsc-executor-hero h1{
  margin:0 0 12px;
  font-size:clamp(42px,5vw,72px);
  line-height:.95;
  letter-spacing:-.05em;
}
.rsc-executor-hero p{
  max-width:760px;
  margin:0 0 12px;
  color:var(--muted);
  font-size:16px;
  line-height:1.65;
}
.rsc-executor-source{
  font-size:13px!important;
}
.rsc-executor-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  padding:18px;
}
.rsc-executor-summary span{
  display:grid;
  gap:5px;
  min-height:92px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.rsc-executor-summary strong{
  font-size:28px;
  line-height:1;
  color:var(--text);
}
.rsc-executor-summary small{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rsc-executor-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  gap:14px;
  align-items:end;
  margin-top:22px;
  padding:18px;
}
.rsc-executor-search{
  display:grid;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rsc-executor-search input{
  width:100%;
  min-height:46px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--input-bg);
  color:var(--text);
  padding:0 14px;
  outline:none;
}
.rsc-executor-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.rsc-executor-filter{
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  min-height:38px;
  padding:0 13px;
  font-weight:900;
  cursor:pointer;
}
.rsc-executor-filter.is-active,
.rsc-executor-filter:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.rsc-executor-updated{
  grid-column:1/-1;
  margin:0;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.rsc-executor-content{
  margin-top:22px;
}
.rsc-executor-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.rsc-executor-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rsc-executor-card[hidden]{
  display:none!important;
}
.rsc-executor-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.rsc-executor-card h2{
  margin:0 0 5px;
  font-size:22px;
  letter-spacing:-.03em;
}
.rsc-executor-card p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.rsc-executor-status-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rsc-executor-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:950;
  white-space:nowrap;
}
.rsc-executor-badge--ok{
  color:#32d583;
  background:rgba(50,213,131,.12);
  border-color:rgba(50,213,131,.35);
}
.rsc-executor-badge--bad{
  color:#ff6b7d;
  background:rgba(255,92,122,.12);
  border-color:rgba(255,92,122,.35);
}
.rsc-executor-badge--warn{
  color:#fdb022;
  background:rgba(253,176,34,.12);
  border-color:rgba(253,176,34,.35);
}
.rsc-executor-badge--info{
  color:#8fb5ff;
  background:rgba(79,124,255,.12);
  border-color:rgba(79,124,255,.35);
}
.rsc-executor-badge--neutral{
  color:var(--muted);
  background:rgba(255,255,255,.035);
}
.rsc-executor-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin:0;
}
.rsc-executor-meta div{
  min-width:0;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:rgba(255,255,255,.03);
}
.rsc-executor-meta dt{
  color:var(--muted);
  font-size:10px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rsc-executor-meta dd{
  margin:4px 0 0;
  color:var(--text);
  font-size:13px;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.rsc-executor-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
}
.rsc-executor-links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  font-size:12px;
  font-weight:900;
}
.rsc-executor-links a:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.rsc-executor-error,
.rsc-executor-empty{
  padding:24px;
  color:var(--muted);
}
@media(max-width:1100px){
  .rsc-executor-hero{
    grid-template-columns:1fr;
  }
  .rsc-executor-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  .rsc-executor-hero{
    margin-top:22px;
  }
  .rsc-executor-hero-copy,
  .rsc-executor-summary,
  .rsc-executor-toolbar,
  .rsc-executor-card{
    padding:14px;
  }
  .rsc-executor-summary{
    grid-template-columns:repeat(2,1fr);
  }
  .rsc-executor-toolbar{
    grid-template-columns:1fr;
  }
  .rsc-executor-filters{
    justify-content:flex-start;
  }
  .rsc-executor-grid{
    grid-template-columns:1fr;
  }
  .rsc-executor-meta{
    grid-template-columns:1fr;
  }
}




/* v1.8.7 Executor Status grouped compact cards */
.rsc-executor-grouped{
  display:grid;
  gap:22px;
}
.rsc-executor-section{
  display:grid;
  gap:12px;
}
.rsc-executor-section[hidden]{
  display:none!important;
}
.rsc-executor-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 2px;
}
.rsc-executor-section-head h2{
  margin:0;
  font-size:24px;
  letter-spacing:-.03em;
}
.rsc-executor-section-head span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rsc-executor-grid--compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.rsc-executor-card--mini{
  padding:13px;
  gap:10px;
  border-radius:16px;
}
.rsc-executor-card--mini .rsc-executor-card-head{
  gap:8px;
}
.rsc-executor-card--mini h3{
  margin:0 0 3px;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.03em;
}
.rsc-executor-card--mini p{
  font-size:12px;
  line-height:1.25;
}
.rsc-executor-card--mini .rsc-executor-badge{
  padding:5px 8px;
  font-size:11px;
}
.rsc-executor-card--mini .rsc-executor-status-row{
  gap:6px;
}
.rsc-executor-meta--mini{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.rsc-executor-meta--mini div{
  padding:8px;
  border-radius:10px;
}
.rsc-executor-meta--mini dt{
  font-size:9px;
}
.rsc-executor-meta--mini dd{
  font-size:12px;
}
.rsc-executor-card--mini .rsc-executor-links{
  gap:6px;
}
.rsc-executor-card--mini .rsc-executor-links a{
  min-height:30px;
  padding:0 9px;
  font-size:11px;
}
@media(max-width:1180px){
  .rsc-executor-grid--compact{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media(max-width:860px){
  .rsc-executor-grid--compact{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .rsc-executor-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .rsc-executor-grid--compact{
    grid-template-columns:1fr;
  }
}




/* v1.8.8 Script gallery */
.rsc-script-gallery-card{
  overflow:hidden;
}
.rsc-script-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rsc-script-gallery-item{
  margin:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.rsc-script-gallery-image{
  width:100%;
  display:block;
  padding:0;
  border:0;
  background:var(--thumb);
  cursor:pointer;
  aspect-ratio:16/10;
  overflow:hidden;
}
.rsc-script-gallery-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .22s ease,filter .22s ease;
}
.rsc-script-gallery-image:hover img{
  transform:scale(1.035);
  filter:brightness(1.06);
}
.rsc-script-gallery-item figcaption{
  padding:10px 12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  line-height:1.45;
}
@media(max-width:860px){
  .rsc-script-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .rsc-script-gallery-grid{
    grid-template-columns:1fr;
  }
}




/* v1.9.2 Script gallery slider */
.rsc-script-gallery-card{
  overflow:hidden;
}
.rsc-script-gallery-slider{
  display:grid;
  gap:12px;
}
.rsc-script-gallery-stage{
  position:relative;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.035);
  overflow:hidden;
}
.rsc-script-gallery-slide{
  display:none;
  margin:0;
}
.rsc-script-gallery-slide.is-active{
  display:block;
}
.rsc-script-gallery-main-image{
  width:100%;
  display:block;
  padding:0;
  border:0;
  background:var(--thumb);
  cursor:pointer;
  aspect-ratio:16/9;
  overflow:hidden;
}
.rsc-script-gallery-main-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.rsc-script-gallery-slide figcaption{
  padding:12px 14px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  line-height:1.45;
}
.rsc-script-gallery-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.rsc-script-gallery-arrow{
  width:42px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  color:var(--text);
  font-size:28px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
.rsc-script-gallery-arrow:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.rsc-script-gallery-counter{
  min-width:74px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  font-weight:950;
}
.rsc-script-gallery-thumbs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:2px 2px 6px;
  scrollbar-width:thin;
}
.rsc-script-gallery-thumb{
  width:78px;
  height:54px;
  flex:0 0 78px;
  padding:0;
  border:2px solid transparent;
  border-radius:12px;
  background:var(--panel);
  overflow:hidden;
  cursor:pointer;
  opacity:.68;
}
.rsc-script-gallery-thumb.is-active,
.rsc-script-gallery-thumb:hover{
  opacity:1;
  border-color:var(--accent);
}
.rsc-script-gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media(max-width:700px){
  .rsc-script-gallery-main-image{
    aspect-ratio:16/10;
  }
  .rsc-script-gallery-arrow{
    width:40px;
    height:36px;
  }
  .rsc-script-gallery-thumb{
    width:68px;
    height:48px;
    flex-basis:68px;
  }
}




/* v1.9.4 Gallery lightbox navigation */
.rsc-image-lightbox-dialog{
  position:relative;
}
.rsc-lightbox-nav{
  position:absolute;
  top:50%;
  z-index:4;
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:color-mix(in srgb,var(--panel) 86%,transparent);
  color:var(--text);
  font-size:30px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  transform:translateY(-50%);
  box-shadow:var(--shadow);
}
.rsc-lightbox-nav:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
}
.rsc-lightbox-nav--prev{
  left:14px;
}
.rsc-lightbox-nav--next{
  right:14px;
}
.rsc-lightbox-nav[hidden]{
  display:none!important;
}
@media(max-width:700px){
  .rsc-lightbox-nav{
    width:38px;
    height:38px;
    font-size:26px;
  }
  .rsc-lightbox-nav--prev{
    left:8px;
  }
  .rsc-lightbox-nav--next{
    right:8px;
  }
}

/* v1.9.8 mobile two-column post/script grids */
@media (max-width: 640px){
  .script-grid,
  .rsc-related-redesign .script-grid,
  .rsc-post-grid,
  .rsc-post-grid--related,
  .rsc-search-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  .script-card--compact,
  .rsc-post-teaser{
    border-radius:14px!important;
  }

  .script-card--compact .script-thumb{
    aspect-ratio:16/10!important;
  }

  .script-card--compact .script-card-body,
  .rsc-post-teaser-body{
    padding:10px!important;
    gap:7px!important;
  }

  .script-card--compact .script-card-title,
  .script-card h2,
  .rsc-post-teaser h2{
    font-size:14px!important;
    line-height:1.22!important;
  }

  .script-card--compact .card-author,
  .script-card--compact .script-card-kind,
  .script-card--compact .script-card-dates,
  .script-card--compact .script-card-desc,
  .rsc-post-teaser p,
  .rsc-post-teaser-meta,
  .rsc-post-teaser-footer{
    font-size:11px!important;
    line-height:1.35!important;
  }

  .script-card--compact .script-card-desc,
  .rsc-post-teaser p{
    -webkit-line-clamp:2!important;
  }

  .script-card--compact .script-card-kind{
    padding:6px 0!important;
  }

  .script-card--compact .script-card-dates{
    gap:6px!important;
    padding-bottom:6px!important;
  }

  .script-card--compact .card-author img{
    width:20px!important;
    height:20px!important;
    flex-basis:20px!important;
  }

  .script-card--compact .script-card-stats{
    padding:9px 10px!important;
    gap:10px!important;
    font-size:12px!important;
  }

  .script-card--compact .script-thumb .status-badge{
    top:7px!important;
    left:7px!important;
    font-size:10px!important;
    padding:4px 6px!important;
  }

  .rsc-search-featured-place{
    grid-column:1 / -1!important;
  }
}

/* v1.9.9 mobile compact-card vertical alignment */
@media (max-width: 640px){
  .script-grid > .script-card--compact,
  .rsc-related-redesign .script-grid > .script-card--compact,
  .rsc-search-grid > .script-card--compact{
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .script-card--compact .script-card-body{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .script-card--compact .script-card-title,
  .script-card h2{
    min-height:52px!important;
    max-height:52px!important;
    margin:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .script-card--compact .card-author{
    width:100%!important;
    min-height:22px!important;
    max-height:22px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
  }

  .script-card--compact .card-author span{
    min-width:0!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  .script-card--compact .script-card-kind{
    min-height:33px!important;
    max-height:33px!important;
    display:flex!important;
    align-items:center!important;
    overflow:hidden!important;
  }

  .script-card--compact .script-card-kind a,
  .script-card--compact .script-card-kind span{
    width:100%!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  .script-card--compact .script-card-dates{
    min-height:31px!important;
    max-height:31px!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    overflow:hidden!important;
    white-space:nowrap!important;
  }

  .script-card--compact .date-item{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }

  .script-card--compact .script-card-desc{
    min-height:38px!important;
    max-height:38px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .script-card--compact .script-card-stats{
    margin-top:auto!important;
    flex:0 0 auto!important;
  }

  .rsc-post-teaser{
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .rsc-post-teaser-body{
    flex:1 1 auto!important;
    display:flex!important;
    flex-direction:column!important;
  }

  .rsc-post-teaser h2{
    min-height:52px!important;
    max-height:52px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .rsc-post-teaser p{
    min-height:38px!important;
    max-height:38px!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }

  .rsc-post-teaser-footer{
    margin-top:auto!important;
  }
}


/* v1.10.0 global grid-card vertical alignment */
:root{
  --rsc-card-title-h:70px;
  --rsc-card-author-h:28px;
  --rsc-card-kind-h:43px;
  --rsc-card-dates-h:40px;
  --rsc-card-desc-h:60px;
  --rsc-post-title-h:72px;
  --rsc-post-meta-h:36px;
  --rsc-post-desc-h:66px;
}

@media (max-width:640px){
  :root{
    --rsc-card-title-h:52px;
    --rsc-card-author-h:22px;
    --rsc-card-kind-h:33px;
    --rsc-card-dates-h:31px;
    --rsc-card-desc-h:38px;
    --rsc-post-title-h:52px;
    --rsc-post-meta-h:32px;
    --rsc-post-desc-h:38px;
  }
}

.script-grid > .script-card--compact,
.rsc-related-redesign .script-grid > .script-card--compact,
.rsc-search-grid > .script-card--compact,
.rsc-post-grid > .script-card,
.rsc-search-grid > .script-card{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}

.script-card--compact .script-card-body,
.script-card:not(.script-card--compact) .script-card-body{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}

.script-card--compact .script-card-title,
.script-card:not(.script-card--compact) h2{
  min-height:var(--rsc-card-title-h)!important;
  max-height:var(--rsc-card-title-h)!important;
  margin:0!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.script-card--compact .card-author{
  width:100%!important;
  min-height:var(--rsc-card-author-h)!important;
  max-height:var(--rsc-card-author-h)!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
}

.script-card--compact .card-author span{
  min-width:0!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

.script-card--compact .script-card-kind{
  min-height:var(--rsc-card-kind-h)!important;
  max-height:var(--rsc-card-kind-h)!important;
  display:flex!important;
  align-items:center!important;
  overflow:hidden!important;
}

.script-card--compact .script-card-kind a,
.script-card--compact .script-card-kind span{
  width:100%!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
}

.script-card--compact .script-card-dates{
  min-height:var(--rsc-card-dates-h)!important;
  max-height:var(--rsc-card-dates-h)!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  overflow:hidden!important;
  white-space:nowrap!important;
}

.script-card--compact .date-item{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.script-card--compact .script-card-desc,
.script-card:not(.script-card--compact) p{
  min-height:var(--rsc-card-desc-h)!important;
  max-height:var(--rsc-card-desc-h)!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

@media (max-width:640px){
  .script-card--compact .script-card-desc,
  .script-card:not(.script-card--compact) p{
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
  }
}

.script-card--compact .script-card-stats,
.script-card:not(.script-card--compact) .card-footer{
  margin-top:auto!important;
  flex:0 0 auto!important;
}

.rsc-post-teaser{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
}

.rsc-post-teaser-body{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
}

.rsc-post-teaser-meta{
  min-height:var(--rsc-post-meta-h)!important;
  max-height:var(--rsc-post-meta-h)!important;
  overflow:hidden!important;
}

.rsc-post-teaser h2{
  min-height:var(--rsc-post-title-h)!important;
  max-height:var(--rsc-post-title-h)!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.rsc-post-teaser p{
  min-height:var(--rsc-post-desc-h)!important;
  max-height:var(--rsc-post-desc-h)!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

@media (max-width:640px){
  .rsc-post-teaser p{
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
  }
}

.rsc-post-teaser-footer{
  margin-top:auto!important;
  flex:0 0 auto!important;
}

/* v1.10.9 enhanced author profile + author sort + compact mobile profile header */
.profile-header--enhanced{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.82fr);
  align-items:center;
  gap:26px;
  padding:30px;
  background:
    radial-gradient(circle at 14% 18%, rgba(124,92,255,.24), transparent 34%),
    radial-gradient(circle at 86% 10%, rgba(50,213,131,.13), transparent 30%),
    var(--card-gradient);
}
.profile-header--enhanced .profile-header-glow{
  position:absolute;
  inset:auto -120px -170px auto;
  width:360px;
  height:360px;
  border-radius:999px;
  background:rgba(124,92,255,.16);
  filter:blur(34px);
  pointer-events:none;
}
.profile-main{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}
.profile-avatar--hero{
  flex:0 0 auto;
  padding:4px;
  border-radius:24px;
  background:linear-gradient(135deg, rgba(124,92,255,.9), rgba(50,213,131,.55));
  box-shadow:0 18px 42px rgba(0,0,0,.22);
}
.profile-avatar--hero img{
  width:112px;
  height:112px;
  object-fit:cover;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
}
.profile-identity{min-width:0;}
.profile-identity h1{
  margin:0;
  font-size:clamp(34px,4vw,48px);
  line-height:1;
  letter-spacing:-.045em;
}
.profile-handle{
  margin:12px 0 0;
  color:var(--muted);
  font-weight:700;
}
.profile-role{
  display:inline-flex;
  align-items:center;
  margin:12px 0 0;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.profile-stats--grid{
  position:relative;
  z-index:1;
  margin-left:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.profile-stats--grid .profile-stat-card,
.place-stats span.profile-stat-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
  min-height:76px;
  padding:14px 16px;
  border-radius:18px;
  border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line));
  background:linear-gradient(180deg, rgba(124,92,255,.18), rgba(255,255,255,.035));
  color:var(--text);
}
.profile-stats--grid .profile-stat-card strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:20px;
  line-height:1.1;
  letter-spacing:-.02em;
}
.profile-stats--grid .profile-stat-card em{
  color:var(--muted);
  font-style:normal;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.rsc-author-section-heading{
  align-items:flex-start;
  margin-bottom:10px;
}
.rsc-author-section-heading > div{min-width:0;}
.rsc-author-section-heading p{
  margin:6px 0 0;
  color:var(--muted);
}
.rsc-author-sort{
  display:flex;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}
.rsc-author-sort-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--muted);
  font-size:13px;
  font-weight:900;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease;
}
.rsc-author-sort-link:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
  color:var(--text);
}
.rsc-author-sort-link.is-active{
  border-color:color-mix(in srgb,var(--accent) 72%,var(--line));
  background:var(--accent-soft);
  color:var(--text);
}
html[data-rsc-theme="light"] .profile-role{
  background:rgba(255,255,255,.58);
}
html[data-rsc-theme="light"] .profile-stats--grid .profile-stat-card{
  background:linear-gradient(180deg, rgba(124,92,255,.13), rgba(255,255,255,.72));
}
@media(max-width:980px){
  .profile-header--enhanced{
    grid-template-columns:1fr;
    align-items:start;
  }
  .profile-stats--grid{
    width:100%;
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .rsc-author-section-heading{
    align-items:flex-start;
    flex-direction:column;
  }
  .rsc-author-sort{justify-content:flex-start;}
}
@media(max-width:720px){
  .container.profile-header--enhanced{
    width:min(100% - 20px,1180px);
    margin-top:22px;
    padding:16px!important;
    gap:14px;
    border-radius:18px;
  }
  .profile-header--enhanced .profile-header-glow{
    width:220px;
    height:220px;
    inset:auto -90px -120px auto;
    filter:blur(28px);
  }
  .profile-main{
    align-items:center;
    flex-direction:row;
    gap:12px;
    width:100%;
  }
  .profile-avatar--hero{
    padding:3px;
    border-radius:18px;
    box-shadow:0 12px 26px rgba(0,0,0,.18);
  }
  .profile-avatar--hero img{
    width:70px;
    height:70px;
    border-radius:15px;
  }
  .profile-identity h1{
    font-size:28px;
    line-height:1.05;
  }
  .profile-handle{
    margin-top:5px;
    font-size:13px;
  }
  .profile-role{
    margin-top:6px;
    padding:5px 8px;
    font-size:11px;
  }
  .profile-stats--grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .profile-stats--grid .profile-stat-card,
  .place-stats span.profile-stat-card{
    min-height:54px;
    padding:9px 10px;
    border-radius:14px;
    gap:2px;
  }
  .profile-stats--grid .profile-stat-card strong{
    font-size:16px;
  }
  .profile-stats--grid .profile-stat-card em{
    font-size:10px;
    letter-spacing:.06em;
  }
  .rsc-author-sort{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  .rsc-author-sort-link{width:100%;}
}
@media(max-width:430px){
  .container.profile-header--enhanced{
    width:min(100% - 16px,1180px);
    padding:14px!important;
    gap:12px;
  }
  .profile-avatar--hero img{
    width:62px;
    height:62px;
    border-radius:14px;
  }
  .profile-identity h1{font-size:25px;}
  .profile-role{display:none;}
  .profile-stats--grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .profile-stats--grid .profile-stat-card{min-height:50px;}
}


/* v1.11.1 live author filters and search */
.rsc-author-controls{
  display:grid;
  grid-template-columns:minmax(240px,360px) minmax(0,1fr);
  align-items:start;
  gap:12px;
  width:100%;
  margin:0 0 22px;
}
.rsc-author-search{
  display:flex;
  align-items:center;
  gap:8px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel);
  min-width:0;
  width:100%;
}
.rsc-author-search input{
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  padding:9px 10px;
  font-weight:700;
}
.rsc-author-search input::placeholder{color:var(--muted);}
.rsc-author-search button{
  border:0;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  cursor:pointer;
  color:#fff;
  background:var(--accent);
  flex:0 0 auto;
}
.rsc-author-live-status{
  grid-column:1/-1;
  min-height:18px;
  margin:0;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.rsc-author-controls.is-loading .rsc-author-sort-link,
.rsc-author-controls.is-loading .rsc-author-search button{
  opacity:.7;
  pointer-events:none;
}
.rsc-author-load-more-wrap{min-height:1px;}
@media(max-width:980px){
  .rsc-author-controls{
    width:100%;
    grid-template-columns:1fr;
    margin-bottom:18px;
  }
  .rsc-author-search{width:100%;}
}
@media(max-width:520px){
  .rsc-author-search{
    border-radius:18px;
    align-items:stretch;
  }
  .rsc-author-search button{padding-inline:12px;}
}


/* v1.11.3 compact home hero */
.rsc-home-page .rsc-home-hero{
  padding:26px 0 12px;
}
.rsc-home-page .rsc-home-hero-inner{
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.48fr);
  gap:16px;
}
.rsc-home-page .rsc-home-hero-copy{
  padding:22px;
  border-radius:22px;
}
.rsc-home-page .rsc-home-hero-copy:before{
  width:220px;
  height:220px;
  inset:-110px -120px auto auto;
}
.rsc-home-page .rsc-home-hero-copy .eyebrow{
  margin-bottom:6px;
  font-size:11px;
}
.rsc-home-page .rsc-home-hero-copy h1{
  font-size:clamp(32px,4.5vw,54px);
  line-height:1;
  margin-bottom:10px;
  max-width:680px;
}
.rsc-home-page .rsc-home-lead{
  font-size:15px;
  line-height:1.45;
  max-width:620px;
  margin-bottom:14px;
}
.rsc-home-page .rsc-home-search{
  max-width:620px;
  border-radius:18px;
  padding:6px;
  margin-bottom:12px;
}
.rsc-home-page .rsc-home-search input{
  padding:9px 12px;
  font-size:14px;
}
.rsc-home-page .rsc-home-search button{
  padding:9px 16px;
  border-radius:14px;
}
.rsc-home-page .rsc-home-actions{
  gap:8px;
}
.rsc-home-page .rsc-home-actions .button{
  padding:9px 13px;
  font-size:13px;
}
.rsc-home-page .rsc-home-stats-card{
  padding:18px;
  gap:12px;
  border-radius:22px;
}
.rsc-home-page .rsc-home-stats-card:before{
  width:160px;
  height:160px;
  inset:-80px -90px auto auto;
}
.rsc-home-page .rsc-home-stats-head .panel-label{
  margin-bottom:7px;
  font-size:11px;
}
.rsc-home-page .rsc-home-stats-head h2{
  font-size:clamp(22px,2.4vw,30px);
  margin-bottom:6px;
}
.rsc-home-page .rsc-home-stats-head p{
  font-size:13px;
  line-height:1.4;
}
.rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid{
  gap:8px;
  margin-top:0;
}
.rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid span{
  min-height:64px;
  padding:10px;
  border-radius:14px;
  gap:6px;
}
.rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid strong{
  font-size:19px;
}
.rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid small{
  font-size:9px;
}
.rsc-home-page .rsc-home-stats-link{
  min-height:38px;
  border-radius:14px;
  font-size:13px;
  box-shadow:none;
}
@media(max-width:980px){
  .rsc-home-page .rsc-home-hero{padding:20px 0 10px;}
  .rsc-home-page .rsc-home-hero-inner{gap:12px;}
}
@media(max-width:640px){
  .rsc-home-page .rsc-home-hero{padding:16px 0 8px;}
  .rsc-home-page .rsc-home-hero-copy{padding:15px;border-radius:16px;}
  .rsc-home-page .rsc-home-hero-copy h1{font-size:clamp(26px,9vw,34px);margin-bottom:8px;}
  .rsc-home-page .rsc-home-lead{font-size:13px;line-height:1.4;margin-bottom:10px;}
  .rsc-home-page .rsc-home-search{gap:6px;padding:6px;border-radius:14px;margin-bottom:10px;}
  .rsc-home-page .rsc-home-search input{padding:8px 10px;font-size:13px;}
  .rsc-home-page .rsc-home-search button{padding:9px 12px;border-radius:12px;}
  .rsc-home-page .rsc-home-actions{gap:6px;}
  .rsc-home-page .rsc-home-actions .button{padding:8px 11px;font-size:12px;}
  .rsc-home-page .rsc-home-stats-card{padding:13px;border-radius:16px;gap:10px;}
  .rsc-home-page .rsc-home-stats-head p{display:none;}
  .rsc-home-page .rsc-home-stats-head h2{font-size:20px;margin-bottom:0;}
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid span{min-height:56px;padding:8px;}
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid strong{font-size:17px;}
  .rsc-home-page .rsc-home-stats-link{min-height:36px;font-size:12px;}
}
@media(max-width:380px){
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}

/* v1.11.3 minimized mobile home hero */
@media(max-width:640px){
  .rsc-home-page .rsc-home-hero{
    padding:10px 0 6px !important;
  }
  .rsc-home-page .rsc-home-hero-inner{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  .rsc-home-page .rsc-home-hero-copy{
    padding:13px 14px !important;
    border-radius:15px !important;
    min-height:0 !important;
  }
  .rsc-home-page .rsc-home-hero-copy:before{
    width:140px !important;
    height:140px !important;
    inset:-70px -70px auto auto !important;
    opacity:.7;
  }
  .rsc-home-page .rsc-home-hero-copy .eyebrow{
    margin:0 0 5px !important;
    font-size:10px !important;
    letter-spacing:.12em !important;
  }
  .rsc-home-page .rsc-home-hero-copy h1{
    font-size:clamp(24px,7vw,30px) !important;
    line-height:1.03 !important;
    letter-spacing:-.045em !important;
    margin:0 0 7px !important;
    max-width:100% !important;
  }
  .rsc-home-page .rsc-home-lead{
    font-size:12px !important;
    line-height:1.32 !important;
    margin:0 0 9px !important;
    max-width:100% !important;
  }
  .rsc-home-page .rsc-home-search{
    display:grid !important;
    grid-template-columns:1fr auto !important;
    gap:5px !important;
    padding:5px !important;
    margin:0 0 8px !important;
    border-radius:13px !important;
  }
  .rsc-home-page .rsc-home-search input{
    min-height:34px !important;
    padding:7px 9px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-search button{
    min-height:34px !important;
    padding:7px 12px !important;
    border-radius:11px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:6px !important;
  }
  .rsc-home-page .rsc-home-actions .button{
    min-height:32px !important;
    padding:7px 9px !important;
    border-radius:999px !important;
    font-size:11px !important;
    line-height:1.1 !important;
  }
  .rsc-home-page .rsc-home-actions .button:first-child{
    grid-column:1 / -1;
  }
  .rsc-home-page .rsc-home-stats-card{
    padding:10px 12px !important;
    border-radius:15px !important;
    gap:8px !important;
    min-height:0 !important;
  }
  .rsc-home-page .rsc-home-stats-head{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
  }
  .rsc-home-page .rsc-home-stats-head .panel-label{
    margin:0 !important;
    font-size:9px !important;
  }
  .rsc-home-page .rsc-home-stats-head h2{
    margin:0 !important;
    font-size:14px !important;
    line-height:1.15 !important;
    text-align:right !important;
  }
  .rsc-home-page .rsc-home-stats-head p{
    display:none !important;
  }
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:5px !important;
  }
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid span{
    min-height:42px !important;
    padding:6px 5px !important;
    border-radius:11px !important;
    gap:3px !important;
  }
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid small{
    font-size:7px !important;
    letter-spacing:.08em !important;
  }
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid strong{
    font-size:13px !important;
    line-height:1.05 !important;
  }
  .rsc-home-page .rsc-home-stats-link{
    min-height:30px !important;
    border-radius:11px !important;
    font-size:11px !important;
    padding:7px 10px !important;
  }
}
@media(max-width:380px){
  .rsc-home-page .rsc-home-stats-card .rsc-home-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

/* v1.11.4 home load more, filters and compact mobile place grid */
.rsc-home-scripts-heading{align-items:flex-end;}
.rsc-home-filter-summary{margin:6px 0 0;color:var(--muted);font-size:14px;}
.rsc-home-script-controls{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:-10px 0 18px;min-height:38px;}
.rsc-home-script-filters{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;}
.rsc-home-filter-button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:10px 14px;font-size:13px;font-weight:900;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease;}
.rsc-home-filter-button:hover{transform:translateY(-1px);border-color:var(--accent);}
.rsc-home-filter-button.is-active{background:color-mix(in srgb,var(--accent) 18%,var(--panel));border-color:var(--accent);color:var(--text);}
.rsc-home-filter-button:disabled{opacity:.7;cursor:wait;transform:none;}
.rsc-home-filter-status{margin:0;color:var(--muted);font-size:13px;min-width:88px;text-align:right;}
.rsc-home-load-more-wrap{display:flex;justify-content:center;margin-top:24px;min-height:1px;}
.rsc-home-load-more{border:0;border-radius:999px;background:var(--accent);color:#fff;font-weight:900;padding:13px 22px;cursor:pointer;box-shadow:var(--shadow);}
.rsc-home-load-more:disabled{opacity:.72;cursor:wait;}

@media (max-width: 760px){
  .rsc-home-scripts-heading{align-items:flex-start;}
  .rsc-home-script-controls{display:block;margin:0 0 14px;}
  .rsc-home-script-filters{justify-content:flex-start;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  .rsc-home-filter-button{width:100%;padding:9px 8px;font-size:11px;line-height:1.1;}
  .rsc-home-filter-status{text-align:left;margin-top:8px;min-height:16px;}
  .rsc-home-load-more-wrap{margin-top:18px;}
  .rsc-home-load-more{width:100%;padding:12px 16px;}
  .rsc-home-place-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important;}
  .rsc-home-place-card{border-radius:16px;}
  .rsc-home-place-body{padding:10px;}
  .rsc-home-place-body h3{font-size:14px;line-height:1.15;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  .rsc-home-place-body p{font-size:11px;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:1;line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;}
  .rsc-home-place-meta{gap:5px;font-size:10px;}
  .rsc-home-place-meta span{padding:5px 6px;}
}

@media (max-width: 420px){
  .rsc-home-script-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rsc-home-place-meta span:last-child{display:none;}
}

/* v1.11.5 place archive layout/load more */
.rbx-place-archive-section .rbx-place-grid,
.rbx-place-archive-section .rsc-place-archive-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:stretch;
}
.rsc-place-archive-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:26px;
}
.rsc-place-archive-load-more{
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  box-shadow:var(--shadow);
  padding:12px 22px;
  font-weight:900;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,opacity .18s ease;
}
.rsc-place-archive-load-more:hover{transform:translateY(-2px);border-color:var(--accent);}
.rsc-place-archive-load-more:disabled{opacity:.62;cursor:wait;transform:none;}
.rsc-place-archive-load-status{color:var(--muted);font-size:13px;font-weight:800;}
@media (max-width: 980px){
  .rbx-place-archive-section .rbx-place-grid,
  .rbx-place-archive-section .rsc-place-archive-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:16px !important;
  }
}
@media (max-width: 640px){
  .rbx-place-archive-section .rbx-place-grid,
  .rbx-place-archive-section .rsc-place-archive-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .rbx-place-archive-section .rbx-place-card-body{padding:10px !important;gap:6px !important;}
  .rbx-place-archive-section .rbx-place-card-body h2{font-size:14px !important;line-height:1.18 !important;}
  .rbx-place-archive-section .rbx-place-card-body p{font-size:11px !important;line-height:1.35 !important;}
  .rbx-place-archive-section .rbx-place-card-stats{gap:5px !important;}
  .rbx-place-archive-section .rbx-place-card-stats span{font-size:10px !important;padding:6px 7px !important;}
  .rsc-place-archive-load-more{width:100%;max-width:260px;padding:11px 18px;}
}


/* v1.11.6 place archive card content alignment */
.rbx-place-archive-section .rbx-place-card{
  height:100%;
  display:flex !important;
  flex-direction:column !important;
}
.rbx-place-archive-section .rbx-place-card-body{
  flex:1 1 auto !important;
  display:flex !important;
  flex-direction:column !important;
  padding:16px !important;
  gap:10px !important;
}
.rbx-place-archive-section .rbx-place-card-body h2{
  min-height:50px !important;
  max-height:50px !important;
  margin:0 !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
}
.rbx-place-archive-section .rbx-place-card-creator{
  min-height:20px !important;
  max-height:20px !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
  margin:0 !important;
}
.rbx-place-archive-section .rbx-place-card-description,
.rbx-place-archive-section .rbx-place-card-body > p:not(.rbx-place-card-creator){
  min-height:66px !important;
  max-height:66px !important;
  overflow:hidden !important;
  display:-webkit-box !important;
  -webkit-line-clamp:3 !important;
  line-clamp:3 !important;
  -webkit-box-orient:vertical !important;
  margin:0 !important;
}
.rbx-place-archive-section .rbx-place-card-stats{
  margin-top:auto !important;
  min-height:34px !important;
  align-content:flex-start !important;
}
@media (max-width: 640px){
  .rbx-place-archive-section .rbx-place-card-body h2{
    min-height:50px !important;
    max-height:50px !important;
    -webkit-line-clamp:3 !important;
    line-clamp:3 !important;
  }
  .rbx-place-archive-section .rbx-place-card-creator{
    min-height:17px !important;
    max-height:17px !important;
  }
  .rbx-place-archive-section .rbx-place-card-description,
  .rbx-place-archive-section .rbx-place-card-body > p:not(.rbx-place-card-creator){
    min-height:45px !important;
    max-height:45px !important;
    -webkit-line-clamp:3 !important;
    line-clamp:3 !important;
  }
  .rbx-place-archive-section .rbx-place-card-stats{
    min-height:29px !important;
  }
}

/* v1.11.7 mobile menu opacity and search toggle polish */
@media (max-width: 980px){
  .header-actions{
    background: color-mix(in srgb, var(--bg) 98%, var(--panel) 2%) !important;
    border-color: color-mix(in srgb, var(--line) 86%, var(--accent) 14%) !important;
    box-shadow: 0 18px 55px rgba(0,0,0,.52), 0 0 0 1px color-mix(in srgb, var(--line) 80%, transparent) !important;
    backdrop-filter: blur(18px) saturate(1.15);
  }
  .rsc-mobile-menu-open .header-actions{
    opacity: 1 !important;
  }
  .rsc-mobile-search-open .mobile-search-toggle,
  .rsc-mobile-menu-open .mobile-search-toggle[aria-expanded="true"]{
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent);
  }
  .rsc-mobile-search-open .mobile-search-icon{
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 0;
  }
  .rsc-mobile-search-open .mobile-search-icon::before,
  .rsc-mobile-search-open .mobile-search-icon::after{
    content: "";
    position: absolute;
    left: 1px;
    top: 8px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
  }
  .rsc-mobile-search-open .mobile-search-icon::after{
    right: auto;
    bottom: auto;
    transform: rotate(-45deg);
  }
  .header-actions .search-form input[type="search"]:focus{
    box-shadow: none;
  }
  .rsc-theme-light .header-actions{
    background: color-mix(in srgb, var(--bg) 97%, #fff 3%) !important;
    box-shadow: 0 18px 45px rgba(80,52,35,.22), 0 0 0 1px color-mix(in srgb, var(--line) 85%, transparent) !important;
  }
}


/* v1.11.8 script page text/color refinements */
.rbx-description-card .rbx-description-text,
.rbx-description-card .rbx-description-text p,
.rbx-description-card .rbx-description-text li,
.rbx-description-card .rbx-description-text div{
  color:#9aa6bd!important;
}
.rsc-script-feature-card .rsc-feature-grid span,
.rsc-script-feature-card .entry-content,
.rsc-script-feature-card .entry-content p,
.rsc-script-feature-card .entry-content li,
.rsc-script-feature-card > p.muted{
  color:#9aa6bd!important;
}
.rbx-code-head .copy-code{
  background:var(--accent)!important;
  border:0!important;
  color:#fff!important;
  box-shadow:none!important;
}
.rbx-code-head .copy-code:hover{
  background:var(--accent)!important;
  filter:brightness(1.07);
  transform:translateY(-1px);
}
.rbx-code-head .copy-code.is-copied{
  background:linear-gradient(180deg,#34d399,#10b981)!important;
  color:#06130c!important;
}


/* v1.11.9 light theme: script description/functions content should be dark */
html[data-rsc-theme="light"] .rbx-description-card .rbx-description-text,
html[data-rsc-theme="light"] .rbx-description-card .rbx-description-text p,
html[data-rsc-theme="light"] .rbx-description-card .rbx-description-text li,
html[data-rsc-theme="light"] .rbx-description-card .rbx-description-text div,
html.rsc-theme-light .rbx-description-card .rbx-description-text,
html.rsc-theme-light .rbx-description-card .rbx-description-text p,
html.rsc-theme-light .rbx-description-card .rbx-description-text li,
html.rsc-theme-light .rbx-description-card .rbx-description-text div{
  color:#000!important;
}
html[data-rsc-theme="light"] .rsc-script-feature-card .rsc-feature-grid span,
html[data-rsc-theme="light"] .rsc-script-feature-card .entry-content,
html[data-rsc-theme="light"] .rsc-script-feature-card .entry-content p,
html[data-rsc-theme="light"] .rsc-script-feature-card .entry-content li,
html[data-rsc-theme="light"] .rsc-script-feature-card > p.muted,
html.rsc-theme-light .rsc-script-feature-card .rsc-feature-grid span,
html.rsc-theme-light .rsc-script-feature-card .entry-content,
html.rsc-theme-light .rsc-script-feature-card .entry-content p,
html.rsc-theme-light .rsc-script-feature-card .entry-content li,
html.rsc-theme-light .rsc-script-feature-card > p.muted{
  color:#000!important;
}


/* v1.12.0 unified script page block backgrounds with theme switching */
:root{
  --rsc-script-block-bg:var(--card-gradient);
  --rsc-script-block-inner-bg:var(--panel);
}
html[data-rsc-theme="dark"],
html.rsc-theme-dark,
body.rsc-theme-dark{
  --rsc-script-block-bg:var(--card-gradient);
  --rsc-script-block-inner-bg:var(--panel);
}
html[data-rsc-theme="light"],
html.rsc-theme-light,
body.rsc-theme-light{
  --rsc-script-block-bg:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));
  --rsc-script-block-inner-bg:rgba(255,246,238,.72);
}
.rsc-script-hero,
.rsc-script-anchor-nav,
.rsc-script-feature-card,
.rsc-yandex-ad--before-script-code,
.rsc-yandex-ad--after-script-code,
.rbx-code-card,
.rsc-script-code-card,
.rsc-script-faq-card,
.rbx-comments-card{
  background:var(--rsc-script-block-bg)!important;
  border-color:var(--line)!important;
  box-shadow:var(--shadow)!important;
}
.rsc-script-anchor-nav{
  backdrop-filter:blur(14px);
}
.rsc-script-side-card,
.rsc-sidebar-action-card,
.rsc-script-meta-pills span,
.rsc-script-side-stats span,
.rsc-feature-grid span,
.rsc-script-faq-card details,
.rbx-code-head,
.rsc-script-code-card .rsc-code-warning,
.rbx-code-card pre,
.rbx-comment-body,
.rbx-comment-form textarea{
  background:var(--rsc-script-block-inner-bg)!important;
  border-color:var(--line)!important;
}
.rsc-yandex-ad--before-script-code .rsc-yandex-ad-desktop,
.rsc-yandex-ad--before-script-code .rsc-yandex-ad-mobile,
.rsc-yandex-ad--after-script-code .rsc-yandex-ad-desktop,
.rsc-yandex-ad--after-script-code .rsc-yandex-ad-mobile{
  background:var(--rsc-script-block-inner-bg)!important;
}
html[data-rsc-theme="light"] .rsc-script-hero,
html[data-rsc-theme="light"] .rsc-script-anchor-nav,
html[data-rsc-theme="light"] .rsc-script-feature-card,
html[data-rsc-theme="light"] .rsc-yandex-ad--before-script-code,
html[data-rsc-theme="light"] .rsc-yandex-ad--after-script-code,
html[data-rsc-theme="light"] .rbx-code-card,
html[data-rsc-theme="light"] .rsc-script-code-card,
html[data-rsc-theme="light"] .rsc-script-faq-card,
html[data-rsc-theme="light"] .rbx-comments-card,
html.rsc-theme-light .rsc-script-hero,
html.rsc-theme-light .rsc-script-anchor-nav,
html.rsc-theme-light .rsc-script-feature-card,
html.rsc-theme-light .rsc-yandex-ad--before-script-code,
html.rsc-theme-light .rsc-yandex-ad--after-script-code,
html.rsc-theme-light .rbx-code-card,
html.rsc-theme-light .rsc-script-code-card,
html.rsc-theme-light .rsc-script-faq-card,
html.rsc-theme-light .rbx-comments-card,
body.rsc-theme-light .rsc-script-hero,
body.rsc-theme-light .rsc-script-anchor-nav,
body.rsc-theme-light .rsc-script-feature-card,
body.rsc-theme-light .rsc-yandex-ad--before-script-code,
body.rsc-theme-light .rsc-yandex-ad--after-script-code,
body.rsc-theme-light .rbx-code-card,
body.rsc-theme-light .rsc-script-code-card,
body.rsc-theme-light .rsc-script-faq-card,
body.rsc-theme-light .rbx-comments-card{
  background:var(--rsc-script-block-bg)!important;
  box-shadow:0 22px 60px rgba(111,78,55,.13)!important;
}


/* v1.12.1 compact mobile script hero */
@media (max-width: 760px){
  .rsc-script-redesign{
    padding-top:10px!important;
  }
  .rsc-script-breadcrumbs{
    margin:0 0 8px!important;
    font-size:11px!important;
    gap:5px!important;
  }
  .rsc-script-hero{
    grid-template-columns:1fr!important;
    grid-template-areas:"media" "main" "side"!important;
    gap:8px!important;
    padding:8px!important;
    border-radius:17px!important;
    box-shadow:0 14px 34px rgba(0,0,0,.20)!important;
  }
  .rsc-script-hero-media{
    width:100%!important;
    max-width:none!important;
    aspect-ratio:21/9!important;
    max-height:155px!important;
    min-height:0!important;
    border-radius:13px!important;
  }
  .rsc-script-hero-media .status-badge{
    top:7px!important;
    left:7px!important;
    padding:4px 7px!important;
    font-size:10px!important;
  }
  .rsc-script-hero-main{
    padding:0 1px!important;
    display:grid!important;
    gap:8px!important;
  }
  .rsc-script-hero-kicker{
    margin:0!important;
    gap:5px!important;
  }
  .rsc-script-hero-kicker span{
    padding:4px 7px!important;
    font-size:9px!important;
    letter-spacing:.06em!important;
  }
  .rsc-script-hero h1{
    font-size:clamp(23px,7vw,30px)!important;
    line-height:1.08!important;
    letter-spacing:-.035em!important;
    margin:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .rsc-script-lead{
    font-size:13px!important;
    line-height:1.45!important;
    margin:0!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  .rsc-script-meta-pills{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    margin:0!important;
  }
  .rsc-script-meta-pills span{
    padding:7px 8px!important;
    border-radius:11px!important;
    gap:2px!important;
  }
  .rsc-script-meta-pills strong{
    font-size:13px!important;
  }
  .rsc-script-meta-pills small{
    font-size:9px!important;
  }
  .rsc-script-primary-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
    margin:0!important;
  }
  .rsc-script-primary-actions .rbx-copy-main,
  .rsc-script-primary-actions .button{
    width:100%!important;
    min-height:38px!important;
    padding:9px 10px!important;
    border-radius:12px!important;
    font-size:13px!important;
  }
  .rsc-game-hub-card--hero{
    margin-top:0!important;
    grid-template-columns:42px minmax(0,1fr) 18px!important;
    gap:8px!important;
    padding:7px!important;
    border-radius:13px!important;
  }
  .rsc-game-hub-card--hero .rsc-game-hub-media{
    width:42px!important;
    height:42px!important;
    border-radius:10px!important;
  }
  .rsc-game-hub-body small{
    font-size:9px!important;
  }
  .rsc-game-hub-body strong{
    font-size:13px!important;
  }
  .rsc-game-hub-body span{
    font-size:11px!important;
  }
  .rsc-script-side-card{
    padding:8px!important;
    border-radius:14px!important;
    gap:8px!important;
  }
  .rsc-script-side-card .rbx-author img{
    width:32px!important;
    height:32px!important;
  }
  .rsc-script-side-card .rbx-author strong{
    font-size:13px!important;
  }
  .rsc-script-side-card .rbx-author small{
    font-size:11px!important;
  }
  .rsc-script-side-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .rsc-script-side-stats span{
    padding:7px!important;
    border-radius:11px!important;
    gap:2px!important;
  }
  .rsc-script-side-stats small{
    font-size:9px!important;
  }
  .rsc-script-side-stats strong{
    font-size:12px!important;
  }
  .rsc-script-side-card .rbx-reaction-row{
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
  }
  .rsc-script-side-card .rbx-reaction-btn{
    min-height:36px!important;
    padding:7px 9px!important;
    border-radius:11px!important;
    font-size:12px!important;
  }
  .rsc-script-anchor-nav{
    margin:10px 0!important;
  }
}
@media (max-width: 420px){
  .rsc-script-hero{
    padding:7px!important;
    gap:7px!important;
    border-radius:15px!important;
  }
  .rsc-script-hero-media{
    aspect-ratio:2.35/1!important;
    max-height:132px!important;
  }
  .rsc-script-hero h1{
    font-size:clamp(21px,7.4vw,27px)!important;
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
  }
  .rsc-script-lead{
    -webkit-line-clamp:2!important;
    line-clamp:2!important;
  }
  .rsc-script-primary-actions{
    grid-template-columns:1fr!important;
  }
  .rsc-script-primary-actions .rbx-copy-main,
  .rsc-script-primary-actions .button{
    min-height:36px!important;
  }
}


/* v1.12.2 script hero full-width developer and Roblox place action */
.rsc-script-primary-actions .rsc-open-roblox-place{
  grid-column:1/-1!important;
  width:100%!important;
  justify-content:center!important;
}
.rsc-script-side-stats .rsc-script-developer-stat{
  grid-column:1/-1!important;
  width:100%!important;
}
.rsc-script-side-stats .rsc-script-developer-stat strong{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:860px){
  .rsc-script-primary-actions .rsc-open-roblox-place{
    min-height:40px!important;
  }
  .rsc-script-side-stats .rsc-script-developer-stat{
    min-height:48px!important;
  }
}


/* v1.12.3 home filters left alignment */
.rsc-home-script-controls{
  justify-content:flex-start !important;
  align-items:center;
}
.rsc-home-script-filters{
  justify-content:flex-start !important;
}
.rsc-home-filter-status{
  text-align:left !important;
}
@media (min-width: 761px){
  .rsc-home-script-controls{
    margin:-6px 0 18px !important;
  }
}


/* v1.12.4: make hero Copy Script CTA full-width */
.rsc-script-hero .rsc-script-primary-actions .rbx-copy-main{
  width:100% !important;
  flex:0 0 100% !important;
}


/* v1.12.5: force Copy Script and hero actions to full container width */
.single-script .rsc-script-hero .rsc-script-hero-main .rsc-script-primary-actions,
body.single-script .rsc-script-hero .rsc-script-hero-main .rsc-script-primary-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  width:100%!important;
  max-width:none!important;
  justify-items:stretch!important;
  align-items:stretch!important;
}
.single-script .rsc-script-hero .rsc-script-primary-actions .rbx-copy-main,
body.single-script .rsc-script-hero .rsc-script-primary-actions .rbx-copy-main,
.single-script .rsc-script-hero .rsc-script-primary-actions .copy-code,
body.single-script .rsc-script-hero .rsc-script-primary-actions .copy-code{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  flex:0 0 100%!important;
  grid-column:1 / -1!important;
  justify-self:stretch!important;
}
.single-script .rsc-script-hero .rsc-script-primary-actions .rsc-open-roblox-place,
body.single-script .rsc-script-hero .rsc-script-primary-actions .rsc-open-roblox-place{
  width:100%!important;
  max-width:none!important;
  grid-column:1 / -1!important;
  justify-self:stretch!important;
}


/* v1.12.6: make script page blocks visually match Script Description with theme-aware backgrounds */
:root{
  --rsc-script-description-bg:color-mix(in srgb,var(--bg) 68%,#17181d 32%);
  --rsc-script-description-border:color-mix(in srgb,var(--line) 82%,#ffffff 10%);
  --rsc-script-description-shadow:0 18px 48px rgba(0,0,0,.28);
  --rsc-script-description-inner-bg:color-mix(in srgb,var(--panel) 86%,transparent);
}
html[data-rsc-theme="dark"],
html.rsc-theme-dark,
body.rsc-theme-dark{
  --rsc-script-description-bg:color-mix(in srgb,var(--bg) 68%,#17181d 32%);
  --rsc-script-description-border:color-mix(in srgb,var(--line) 82%,#ffffff 10%);
  --rsc-script-description-shadow:0 18px 48px rgba(0,0,0,.28);
  --rsc-script-description-inner-bg:color-mix(in srgb,var(--panel) 86%,transparent);
}
html[data-rsc-theme="light"],
html.rsc-theme-light,
body.rsc-theme-light{
  --rsc-script-description-bg:linear-gradient(180deg,rgba(255,250,245,.98),rgba(249,236,226,.98));
  --rsc-script-description-border:color-mix(in srgb,var(--line) 82%,rgba(111,78,55,.18));
  --rsc-script-description-shadow:0 22px 60px rgba(111,78,55,.12);
  --rsc-script-description-inner-bg:rgba(255,246,238,.72);
}
body.single-script .rsc-script-hero,
body.single-script .rsc-script-anchor-nav,
body.single-script .rbx-description-card,
body.single-script .rsc-script-feature-card,
body.single-script .rsc-yandex-ad--before-script-code,
body.single-script .rsc-yandex-ad--after-script-code,
body.single-script .rbx-code-card,
body.single-script .rsc-script-code-card,
body.single-script .rsc-script-faq-card,
body.single-script .rbx-comments-card{
  background:var(--rsc-script-description-bg)!important;
  border:1px solid var(--rsc-script-description-border)!important;
  box-shadow:var(--rsc-script-description-shadow)!important;
  border-radius:24px!important;
}
body.single-script .rsc-script-anchor-nav{
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
body.single-script .rsc-script-hero:before,
body.single-script .rbx-description-card:before,
body.single-script .rsc-script-feature-card:before,
body.single-script .rsc-script-faq-card:before,
body.single-script .rbx-code-card:before,
body.single-script .rbx-comments-card:before{
  background:none!important;
}
body.single-script .rsc-script-side-card,
body.single-script .rsc-sidebar-action-card,
body.single-script .rsc-script-meta-pills span,
body.single-script .rsc-script-side-stats span,
body.single-script .rsc-feature-grid span,
body.single-script .rsc-script-faq-card details,
body.single-script .rbx-code-head,
body.single-script .rsc-script-code-card .rsc-code-warning,
body.single-script .rbx-code-card pre,
body.single-script .rbx-comment-body,
body.single-script .rbx-login-note,
body.single-script .rbx-comment-form textarea,
body.single-script .rsc-yandex-ad--before-script-code .rsc-yandex-ad-desktop,
body.single-script .rsc-yandex-ad--before-script-code .rsc-yandex-ad-mobile,
body.single-script .rsc-yandex-ad--after-script-code .rsc-yandex-ad-desktop,
body.single-script .rsc-yandex-ad--after-script-code .rsc-yandex-ad-mobile{
  background:var(--rsc-script-description-inner-bg)!important;
  border-color:var(--rsc-script-description-border)!important;
}
body.single-script .rsc-yandex-ad--before-script-code,
body.single-script .rsc-yandex-ad--after-script-code{
  padding:15px!important;
}
body.single-script .rsc-yandex-ad--before-script-code::before,
body.single-script .rsc-yandex-ad--after-script-code::before{
  display:none!important;
}
@media(max-width:760px){
  body.single-script .rsc-script-hero,
  body.single-script .rsc-script-anchor-nav,
  body.single-script .rbx-description-card,
  body.single-script .rsc-script-feature-card,
  body.single-script .rsc-yandex-ad--before-script-code,
  body.single-script .rsc-yandex-ad--after-script-code,
  body.single-script .rbx-code-card,
  body.single-script .rsc-script-code-card,
  body.single-script .rsc-script-faq-card,
  body.single-script .rbx-comments-card{
    border-radius:18px!important;
  }
}


/* v1.12.7 theme toggle state sync + smoother color transitions */
html[data-rsc-theme] {
  color-scheme: dark;
}
html[data-rsc-theme="light"] {
  color-scheme: light;
}
html[data-rsc-theme] *,
html[data-rsc-theme] *::before,
html[data-rsc-theme] *::after {
  transition-property: background-color, background, color, border-color, box-shadow, fill, stroke, opacity, filter, text-shadow;
  transition-duration: .28s;
  transition-timing-function: ease;
}
html.rsc-theme-boot *,
html.rsc-theme-boot *::before,
html.rsc-theme-boot *::after {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-rsc-theme] *,
  html[data-rsc-theme] *::before,
  html[data-rsc-theme] *::after {
    transition: none !important;
  }
}
.theme-toggle .theme-toggle-icon,
.theme-toggle .theme-toggle-text {
  transition: color .28s ease, opacity .28s ease, transform .28s ease;
}
.theme-toggle:active .theme-toggle-icon {
  transform: scale(.92) rotate(-8deg);
}
.theme-toggle[data-current-theme="light"] .theme-toggle-icon {
  color: #7c3aed;
}
.theme-toggle[data-current-theme="dark"] .theme-toggle-icon {
  color: #dbeafe;
}


/* v1.12.8 stronger visible smooth theme switching */
html:not(.rsc-theme-boot),
html:not(.rsc-theme-boot) body{
  transition:background-color .55s ease, color .55s ease !important;
}
html:not(.rsc-theme-boot) body,
html:not(.rsc-theme-boot) .site-header,
html:not(.rsc-theme-boot) .header-actions,
html:not(.rsc-theme-boot) .mobile-menu-panel,
html:not(.rsc-theme-boot) .mobile-header-icon,
html:not(.rsc-theme-boot) .mobile-menu-toggle,
html:not(.rsc-theme-boot) .theme-toggle,
html:not(.rsc-theme-boot) .search-form,
html:not(.rsc-theme-boot) .button,
html:not(.rsc-theme-boot) .load-more,
html:not(.rsc-theme-boot) .script-card,
html:not(.rsc-theme-boot) .script-card-body,
html:not(.rsc-theme-boot) .rsc-post-teaser,
html:not(.rsc-theme-boot) .rsc-post-card,
html:not(.rsc-theme-boot) .rsc-home-place-card,
html:not(.rsc-theme-boot) .place-card,
html:not(.rsc-theme-boot) .rbx-place-card,
html:not(.rsc-theme-boot) .profile-header,
html:not(.rsc-theme-boot) .rsc-author-sort-link,
html:not(.rsc-theme-boot) .rsc-author-search-form,
html:not(.rsc-theme-boot) .rsc-home-hero,
html:not(.rsc-theme-boot) .rsc-home-hero-card,
html:not(.rsc-theme-boot) .rsc-home-hero-panel,
html:not(.rsc-theme-boot) .rsc-script-hero,
html:not(.rsc-theme-boot) .rsc-script-anchor-nav,
html:not(.rsc-theme-boot) .rbx-description-card,
html:not(.rsc-theme-boot) .rsc-script-feature-card,
html:not(.rsc-theme-boot) .rsc-yandex-ad,
html:not(.rsc-theme-boot) .rbx-code-card,
html:not(.rsc-theme-boot) .rsc-script-code-card,
html:not(.rsc-theme-boot) .rsc-script-faq-card,
html:not(.rsc-theme-boot) .rbx-comments-card,
html:not(.rsc-theme-boot) .rsc-game-hub-card,
html:not(.rsc-theme-boot) .rsc-sidebar-action-card,
html:not(.rsc-theme-boot) .rsc-floating-toc,
html:not(.rsc-theme-boot) .rsc-feature-grid span,
html:not(.rsc-theme-boot) .rsc-script-faq-card details,
html:not(.rsc-theme-boot) .rbx-code-head,
html:not(.rsc-theme-boot) .rbx-code-card pre,
html:not(.rsc-theme-boot) .rbx-comment-body,
html:not(.rsc-theme-boot) input,
html:not(.rsc-theme-boot) textarea,
html:not(.rsc-theme-boot) select{
  transition-property: background-color, background, color, border-color, box-shadow, fill, stroke, opacity, filter !important;
  transition-duration: .55s, .55s, .45s, .45s, .45s, .45s, .45s, .25s, .25s !important;
  transition-timing-function: ease !important;
}
html.rsc-theme-changing *,
html.rsc-theme-changing *::before,
html.rsc-theme-changing *::after{
  transition-property: background-color, background, color, border-color, box-shadow, fill, stroke, opacity, filter !important;
  transition-duration: .55s, .55s, .45s, .45s, .45s, .45s, .45s, .25s, .25s !important;
  transition-timing-function: ease !important;
}
@media (prefers-reduced-motion: reduce){
  html.rsc-theme-changing *,
  html.rsc-theme-changing *::before,
  html.rsc-theme-changing *::after{
    transition:none!important;
  }
}

/* v1.12.9 — refreshed key mode badges */
.status-badge,
.status-badge.no-key,
.status-badge.key,
.status-badge.key-system,
.rsc-theme-light .status-badge,
.rsc-theme-light .status-badge.no-key,
.rsc-theme-light .status-badge.key,
.rsc-theme-light .status-badge.key-system,
.rsc-theme-dark .status-badge,
.rsc-theme-dark .status-badge.no-key,
.rsc-theme-dark .status-badge.key,
.rsc-theme-dark .status-badge.key-system {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 28px !important;
  padding: 6px 11px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .045em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  border: 1px solid transparent !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: currentColor;
  opacity: .95;
}

.status-badge,
.status-badge.no-key,
.rsc-theme-light .status-badge,
.rsc-theme-light .status-badge.no-key,
.rsc-theme-dark .status-badge,
.rsc-theme-dark .status-badge.no-key {
  color: #052e1a !important;
  background: linear-gradient(135deg, #37f08b, #17c964) !important;
  border-color: rgba(55, 240, 139, .55) !important;
}

.status-badge.key,
.status-badge.key-system,
.rsc-theme-light .status-badge.key,
.rsc-theme-light .status-badge.key-system,
.rsc-theme-dark .status-badge.key,
.rsc-theme-dark .status-badge.key-system {
  color: #3a2100 !important;
  background: linear-gradient(135deg, #ffd36a, #ff9f2f) !important;
  border-color: rgba(255, 190, 80, .6) !important;
}

.script-thumb .status-badge,
.rsc-script-hero-media .status-badge {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .26) !important;
}

@media (max-width: 640px) {
  .status-badge,
  .status-badge.no-key,
  .status-badge.key,
  .status-badge.key-system {
    min-height: 25px !important;
    padding: 5px 9px !important;
    font-size: 10px !important;
    gap: 5px !important;
  }
  .status-badge::before {
    width: 6px;
    height: 6px;
  }
}

/* v1.13.1 — ultra minimal footer */
.rsc-footer-ultra{
  margin-top:36px!important;
  padding:0!important;
  border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
  background:color-mix(in srgb,var(--bg) 97%,var(--panel))!important;
  box-shadow:none!important;
}
.rsc-footer-ultra .rsc-footer-wrap{
  padding:16px 0 14px!important;
}
.rsc-footer-ultra .rsc-footer-minimal-top{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:16px!important;
  padding:0 0 10px!important;
  border-bottom:1px solid color-mix(in srgb,var(--line) 55%,transparent)!important;
}
.rsc-footer-ultra .rsc-footer-brand{
  display:inline-flex!important;
  align-items:center!important;
  gap:9px!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  color:var(--text)!important;
}
.rsc-footer-ultra .brand-mark{
  width:28px!important;
  height:28px!important;
  border-radius:10px!important;
  font-size:11px!important;
  box-shadow:none!important;
}
.rsc-footer-ultra .rsc-footer-minimal-nav,
.rsc-footer-ultra .rsc-footer-legal-nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  gap:8px 14px!important;
  padding:0!important;
  margin:0!important;
}
.rsc-footer-ultra .rsc-footer-minimal-nav a,
.rsc-footer-ultra .rsc-footer-legal-nav a{
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1.2!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  text-decoration:none!important;
}
.rsc-footer-ultra .rsc-footer-minimal-nav a:hover,
.rsc-footer-ultra .rsc-footer-legal-nav a:hover{
  color:var(--text)!important;
  transform:none!important;
}
.rsc-footer-ultra .rsc-footer-bottom{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  padding:10px 0 0!important;
  border:0!important;
  font-size:12px!important;
  color:var(--muted)!important;
}
.rsc-footer-ultra .rsc-footer-bottom p{
  margin:0!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:700!important;
}
.rsc-theme-light .rsc-footer-ultra{
  background:color-mix(in srgb,#fff 94%,var(--panel))!important;
}
@media(max-width:760px){
  .rsc-footer-ultra{margin-top:26px!important;}
  .rsc-footer-ultra .rsc-footer-wrap{padding:14px 0 12px!important;}
  .rsc-footer-ultra .rsc-footer-minimal-top,
  .rsc-footer-ultra .rsc-footer-bottom{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:10px!important;
  }
  .rsc-footer-ultra .rsc-footer-minimal-top{padding-bottom:10px!important;}
  .rsc-footer-ultra .rsc-footer-minimal-nav,
  .rsc-footer-ultra .rsc-footer-legal-nav{
    justify-content:flex-start!important;
    gap:8px 12px!important;
  }
}


/* v1.13.1 — center footer content on mobile */
@media(max-width:760px){
  .rsc-footer-ultra,
  .rsc-footer-ultra .rsc-footer-wrap,
  .rsc-footer-ultra .rsc-footer-minimal-top,
  .rsc-footer-ultra .rsc-footer-bottom{
    text-align:center!important;
  }
  .rsc-footer-ultra .rsc-footer-minimal-top,
  .rsc-footer-ultra .rsc-footer-bottom{
    align-items:center!important;
    justify-content:center!important;
  }
  .rsc-footer-ultra .rsc-footer-brand{
    justify-content:center!important;
  }
  .rsc-footer-ultra .rsc-footer-minimal-nav,
  .rsc-footer-ultra .rsc-footer-legal-nav{
    justify-content:center!important;
    text-align:center!important;
    width:100%!important;
  }
  .rsc-footer-ultra .rsc-footer-bottom p{
    width:100%!important;
    text-align:center!important;
  }
}


/* v1.13.3 neutral place pages */
.rsc-place-neutral-page{padding-top:26px;}
.rsc-place-neutral-hero{padding:18px;background:var(--card-gradient);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);}
.rsc-place-neutral-hero-grid{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(0,1fr);gap:22px;align-items:stretch;}
.rsc-place-neutral-media{margin:0;border-radius:18px;overflow:hidden;border:1px solid var(--line);background:var(--thumb);min-height:240px;}
.rsc-place-neutral-media img{width:100%;height:100%;object-fit:cover;aspect-ratio:16/9;}
.rsc-place-neutral-info{display:flex;flex-direction:column;justify-content:center;gap:14px;min-width:0;}
.rsc-place-neutral-info .eyebrow{margin:0;color:var(--accent-2);}
.rsc-place-neutral-info h1{margin:0;font-size:clamp(34px,4.6vw,58px);line-height:.98;letter-spacing:-.045em;}
.rsc-place-neutral-creator{margin:0;color:var(--muted);font-weight:700;}
.rsc-place-neutral-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:2px 0 0;}
.rsc-place-neutral-stats span{display:flex;flex-direction:column;gap:2px;align-items:flex-start;justify-content:center;min-height:72px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel);}
.rsc-place-neutral-stats strong{font-size:18px;line-height:1.15;color:var(--text);}
.rsc-place-neutral-stats small{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
.rsc-place-neutral-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:4px;}
.rsc-place-neutral-actions .rbx-copy-main,.rsc-place-neutral-actions .rbx-social-btn{width:100%;justify-content:center;}
.rsc-place-section-heading{align-items:flex-start;}
.rsc-place-sort{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;max-width:560px;}
.rsc-place-sort-button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:999px;padding:10px 14px;font-size:13px;font-weight:900;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease,color .16s ease;}
.rsc-place-sort-button:hover{transform:translateY(-1px);border-color:var(--accent);}
.rsc-place-sort-button.is-active{background:color-mix(in srgb,var(--accent) 18%,var(--panel));border-color:var(--accent);}
.rsc-place-sort-button:disabled{opacity:.7;cursor:wait;transform:none;}
.rsc-place-live-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:26px;min-height:42px;}
.rsc-place-load-status{color:var(--muted);font-size:13px;}
.rsc-place-live-pagination.is-loading .rsc-place-load-more{opacity:.75;cursor:wait;}
.rbx-place-seo-section,.rbx-place-faq-section,.rbx-place-related-games-section{display:none!important;}
@media (max-width: 860px){
  .rsc-place-neutral-page{padding-top:16px;}
  .rsc-place-neutral-hero{padding:12px;border-radius:18px;}
  .rsc-place-neutral-hero-grid{grid-template-columns:1fr;gap:12px;}
  .rsc-place-neutral-media{min-height:auto;border-radius:14px;}
  .rsc-place-neutral-media img{aspect-ratio:16/9;}
  .rsc-place-neutral-info{gap:10px;}
  .rsc-place-neutral-info h1{font-size:28px;line-height:1.05;}
  .rsc-place-neutral-creator{font-size:13px;}
  .rsc-place-neutral-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
  .rsc-place-neutral-stats span{min-height:58px;padding:9px 8px;border-radius:12px;}
  .rsc-place-neutral-stats strong{font-size:14px;}
  .rsc-place-neutral-stats small{font-size:9px;}
  .rsc-place-neutral-actions{grid-template-columns:1fr;gap:8px;}
  .rsc-place-section-heading{display:block;}
  .rsc-place-sort{justify-content:flex-start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px;max-width:none;}
  .rsc-place-sort-button{width:100%;padding:9px 8px;font-size:11px;line-height:1.1;}
}
@media (max-width: 420px){
  .rsc-place-neutral-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .rsc-place-neutral-stats span:last-child{grid-column:1/-1;}
}

/* v1.13.4 desktop place hero size aligned with compact home hero */
@media (min-width: 861px){
  .rsc-place-neutral-page{
    padding-top:26px;
  }
  .rsc-place-neutral-hero{
    padding:22px;
    border-radius:22px;
  }
  .rsc-place-neutral-hero-grid{
    grid-template-columns:minmax(0,1.2fr) minmax(260px,.48fr);
    gap:16px;
    align-items:stretch;
  }
  .rsc-place-neutral-media{
    min-height:0;
    height:100%;
    border-radius:22px;
  }
  .rsc-place-neutral-media img{
    aspect-ratio:16/9;
    height:100%;
    min-height:260px;
    max-height:360px;
  }
  .rsc-place-neutral-info{
    gap:12px;
    justify-content:center;
  }
  .rsc-place-neutral-info .eyebrow{
    font-size:11px;
    margin-bottom:0;
  }
  .rsc-place-neutral-info h1{
    font-size:clamp(32px,4.5vw,54px);
    line-height:1;
    letter-spacing:-.05em;
  }
  .rsc-place-neutral-creator{
    font-size:13px;
  }
  .rsc-place-neutral-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .rsc-place-neutral-stats span{
    min-height:64px;
    padding:10px;
    border-radius:14px;
  }
  .rsc-place-neutral-stats strong{
    font-size:19px;
  }
  .rsc-place-neutral-stats small{
    font-size:9px;
  }
  .rsc-place-neutral-actions{
    gap:8px;
  }
  .rsc-place-neutral-actions .rbx-copy-main,
  .rsc-place-neutral-actions .rbx-social-btn{
    min-height:38px;
    border-radius:14px;
    font-size:13px;
    box-shadow:none;
  }
}

/* v1.13.5: place page action/stats cleanup */
.rsc-place-neutral-stats{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}
.rsc-place-view-scripts-button{
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 72%,#8a5cff)) !important;
  color:#fff !important;
  border-color:color-mix(in srgb,var(--accent) 62%,transparent) !important;
  box-shadow:0 14px 30px color-mix(in srgb,var(--accent) 24%,transparent) !important;
}
.rsc-place-view-scripts-button:hover{
  filter:brightness(1.06);
  transform:translateY(-1px);
}
.rsc-theme-light .rsc-place-view-scripts-button{
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 78%,#5d49e8)) !important;
  color:#fff !important;
}
@media (max-width: 860px){
  .rsc-place-neutral-stats{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}


/* v1.13.6: refreshed article/post teaser cards */
.rsc-post-teaser.rsc-legacy-post-card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-height:100%;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card-gradient);
  box-shadow:var(--shadow);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background-color .45s ease,color .45s ease;
}
.rsc-post-teaser.rsc-legacy-post-card:hover{
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--accent) 48%,var(--line));
  box-shadow:0 18px 44px rgba(0,0,0,.28);
}
.rsc-legacy-post-card .rsc-legacy-post-card__image{
  position:relative;
  display:grid;
  place-items:center;
  aspect-ratio:16/9;
  overflow:hidden;
  background:var(--thumb);
  color:color-mix(in srgb,var(--muted) 62%,transparent);
  font-size:34px;
  font-weight:900;
}
.rsc-legacy-post-card .rsc-legacy-post-card__image::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:58%;
  background:linear-gradient(to bottom,transparent,rgba(8,13,27,.76));
  pointer-events:none;
  z-index:1;
}
.rsc-legacy-post-card .rsc-legacy-post-card__image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease,filter .35s ease;
}
.rsc-legacy-post-card:hover .rsc-legacy-post-card__image img{
  transform:scale(1.035);
  filter:saturate(1.06);
}
.rsc-legacy-post-card__badge{
  position:absolute;
  left:14px;
  top:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:26px;
  max-width:calc(100% - 28px);
  padding:6px 10px;
  border-radius:999px;
  color:#fff;
  background:color-mix(in srgb,var(--accent) 82%,#111827);
  border:1px solid color-mix(in srgb,var(--accent) 58%,rgba(255,255,255,.16));
  box-shadow:0 8px 18px rgba(0,0,0,.24);
  font-size:10px;
  font-weight:900;
  line-height:1;
  letter-spacing:.055em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.rsc-legacy-post-card .rsc-legacy-post-card__body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:18px;
}
.rsc-legacy-post-card .rsc-legacy-post-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 10px;
  margin:0 0 12px;
  min-height:16px;
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  line-height:1.25;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.rsc-legacy-post-card .rsc-legacy-post-card__title{
  min-height:58px;
  margin:0 0 12px;
  font-size:20px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:-.025em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.rsc-legacy-post-card .rsc-legacy-post-card__title a{
  color:var(--text);
  text-decoration:none;
}
.rsc-legacy-post-card .rsc-legacy-post-card__title a:hover{
  color:var(--accent);
}
.rsc-legacy-post-card .rsc-legacy-post-card__excerpt{
  min-height:66px;
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:3;
  line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:0 0 auto;
}
.rsc-legacy-post-card .rsc-legacy-post-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
  padding-top:18px;
  color:var(--muted);
  font-size:13px;
  font-weight:900;
}
.rsc-legacy-post-card__author,
.rsc-legacy-post-card__read{
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  font-weight:900;
}
.rsc-legacy-post-card__author:hover,
.rsc-legacy-post-card__read:hover{
  color:var(--accent);
}
.rsc-legacy-post-card__read{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--accent);
  white-space:nowrap;
}
.rsc-theme-light .rsc-post-teaser.rsc-legacy-post-card{
  background:var(--card-gradient);
  box-shadow:0 18px 44px rgba(111,78,55,.12);
}
.rsc-theme-light .rsc-legacy-post-card .rsc-legacy-post-card__image::after{
  background:linear-gradient(to bottom,transparent,rgba(255,250,245,.28));
}
.rsc-theme-light .rsc-legacy-post-card__badge{
  color:#fff;
}
@media (max-width:900px){
  .rsc-legacy-post-card .rsc-legacy-post-card__body{padding:16px;}
  .rsc-legacy-post-card .rsc-legacy-post-card__title{font-size:18px;min-height:44px;}
  .rsc-legacy-post-card .rsc-legacy-post-card__excerpt{min-height:62px;font-size:13px;}
}
@media (max-width:620px){
  .rsc-post-grid .rsc-post-teaser.rsc-legacy-post-card,
  .rsc-search-grid .rsc-post-teaser.rsc-legacy-post-card{
    border-radius:18px;
  }
  .rsc-legacy-post-card__badge{
    left:10px;
    top:10px;
    min-height:24px;
    padding:5px 9px;
    font-size:9px;
  }
  .rsc-legacy-post-card .rsc-legacy-post-card__body{padding:14px;}
  .rsc-legacy-post-card .rsc-legacy-post-card__meta{font-size:10px;margin-bottom:9px;gap:5px 8px;}
  .rsc-legacy-post-card .rsc-legacy-post-card__title{font-size:16px;min-height:40px;margin-bottom:9px;}
  .rsc-legacy-post-card .rsc-legacy-post-card__excerpt{font-size:12px;line-height:1.45;min-height:52px;-webkit-line-clamp:3;line-clamp:3;}
  .rsc-legacy-post-card .rsc-legacy-post-card__footer{padding-top:14px;font-size:12px;}
  .rsc-legacy-post-card__author,.rsc-legacy-post-card__read{font-size:12px;}
}


/* v1.13.7 search result grid: 4 desktop / 2 mobile, 16 desktop / 8 mobile via pre_get_posts */
.rsc-search-page .rsc-search-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
@media (max-width: 1180px){
  .rsc-search-page .rsc-search-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media (max-width: 760px){
  .rsc-search-page .rsc-search-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
}

/* v1.13.8 home cleanup: home page now shows only hero and latest scripts section. */

/* v1.13.9 public archive AJAX filters/search */
.rsc-public-archive-section .rsc-archive-controls{
  margin-bottom:18px;
}
.rsc-public-archive-section .rsc-archive-live-status{
  min-height:18px;
}
.rsc-script-archive-section .rsc-public-archive-grid.script-grid{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
}
.rsc-archive-load-more-wrap{
  min-height:1px;
  margin-top:22px;
  text-align:center;
}
.rsc-archive-controls.is-loading .rsc-archive-sort-link,
.rsc-archive-controls.is-loading .rsc-archive-search button{
  pointer-events:none;
  opacity:.62;
}
.rsc-archive-search input[aria-busy="true"]{
  opacity:.78;
}
@media (max-width:1180px){
  .rsc-script-archive-section .rsc-public-archive-grid.script-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media (max-width:760px){
  .rsc-script-archive-section .rsc-public-archive-grid.script-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .rsc-public-archive-section .rsc-archive-search{width:100%;}
  .rsc-public-archive-section .rsc-archive-sort{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  .rsc-public-archive-section .rsc-archive-sort-link{width:100%;}
  .rsc-public-archive-section .rsc-archive-load-more{width:100%;max-width:280px;}
}


/* v1.14.0 modern login/register UI */
.rsc-auth-shell{
  width:min(100% - 32px,1120px);
  margin:42px auto;
  display:grid;
  grid-template-columns:minmax(0,.92fr) minmax(360px,520px);
  gap:24px;
  align-items:stretch;
}
.rsc-auth-panel--intro,
.rsc-auth-card--modern{
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--card-gradient);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.rsc-auth-panel--intro{
  position:relative;
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  min-height:520px;
  isolation:isolate;
}
.rsc-auth-panel--intro::before{
  content:"";
  position:absolute;
  inset:-30% -20%;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb,var(--accent) 32%, transparent), transparent 34%),
    radial-gradient(circle at 80% 35%, rgba(34,211,238,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.04), transparent 55%);
  opacity:.9;
}
.rsc-auth-panel--intro h1{
  margin:0 0 14px;
  max-width:640px;
  font-size:clamp(34px,4vw,58px);
  line-height:.98;
  letter-spacing:-.06em;
}
.rsc-auth-panel--intro p{
  margin:0;
  max-width:560px;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}
.rsc-auth-eyebrow,
.rsc-auth-kicker{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-bottom:12px;
  color:var(--accent);
  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.rsc-auth-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.rsc-auth-benefits span{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(148,163,184,.08);
  color:var(--text);
  font-size:12px;
  font-weight:900;
}
.rsc-auth-card--modern{
  width:100%;
  max-width:none;
  margin:0;
  padding:28px;
}
.rsc-auth-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:6px;
}
.rsc-auth-card-head h2{
  margin:0;
  font-size:clamp(28px,3vw,40px);
  line-height:1;
  letter-spacing:-.05em;
}
.rsc-auth-switch,
.rsc-auth-link{
  color:var(--accent);
  font-weight:900;
  text-decoration:none;
}
.rsc-auth-switch{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border:1px solid color-mix(in srgb,var(--accent) 34%, var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 8%, transparent);
  font-size:13px;
  white-space:nowrap;
}
.rsc-social-login{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:18px 0 16px;
}
.rsc-social-button{
  appearance:none;
  width:100%;
  min-height:48px;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:10px 13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(148,163,184,.08);
  color:var(--text);
  font:inherit;
  font-weight:900;
  text-align:left;
  cursor:not-allowed;
  opacity:.76;
}
.rsc-social-button small{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.rsc-social-icon{
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--panel);
  border:1px solid var(--line);
  font-size:11px;
  font-weight:1000;
}
.rsc-auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0;
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.rsc-auth-divider::before,
.rsc-auth-divider::after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line);
}
.rsc-auth-form--modern{gap:13px;margin-top:0;}
.rsc-auth-form--modern label > span:first-child{
  color:var(--text);
  font-size:13px;
  font-weight:900;
}
.rsc-auth-form--modern input[type="text"],
.rsc-auth-form--modern input[type="email"],
.rsc-auth-form--modern input[type="password"]{
  min-height:50px;
  border-radius:16px;
  background:var(--panel);
}
.rsc-password-field{position:relative;}
.rsc-password-field input{padding-right:74px !important;}
.rsc-password-toggle{
  position:absolute;
  right:8px;
  bottom:8px;
  min-height:34px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(148,163,184,.08);
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.rsc-auth-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-top:2px;
}
.rsc-auth-card--modern .rsc-auth-check{margin:0;}
.rsc-auth-card--modern .rsc-auth-button{
  min-height:52px;
  border-radius:16px;
  font-size:15px;
}
.rsc-auth-card--modern .rsc-auth-footer{
  text-align:center;
  margin-top:18px;
}
.rsc-auth-card--signed{max-width:620px;text-align:center;}
.rsc-theme-light .rsc-auth-panel--intro,
.rsc-theme-light .rsc-auth-card--modern{
  background:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,246,238,.82)),var(--panel);
  box-shadow:0 20px 70px rgba(107,73,45,.13);
}
@media(max-width:900px){
  .rsc-auth-shell{grid-template-columns:1fr;width:min(100% - 20px,620px);margin:24px auto;gap:14px;}
  .rsc-auth-panel--intro{min-height:auto;padding:20px;border-radius:22px;}
  .rsc-auth-panel--intro h1{font-size:32px;}
  .rsc-auth-panel--intro p{font-size:14px;line-height:1.55;}
  .rsc-auth-benefits{margin-top:14px;gap:7px;}
  .rsc-auth-benefits span{min-height:28px;padding:6px 10px;font-size:11px;}
  .rsc-auth-card--modern{padding:18px;border-radius:22px;}
  .rsc-auth-card-head{align-items:center;}
  .rsc-auth-card-head h2{font-size:30px;}
  .rsc-auth-switch{min-height:30px;padding:6px 10px;font-size:12px;}
  .rsc-auth-grid-2{grid-template-columns:1fr;}
  .rsc-social-button{min-height:44px;border-radius:14px;}
  .rsc-auth-row{align-items:flex-start;}
}

/* v1.14.1 account dashboard redesign */
.rsc-account-dashboard{
  display:grid;
  gap:22px;
  width:100%;
}
.rsc-account-hero,
.rsc-account-stats,
.rsc-account-health,
.rsc-account-quick-actions,
.rsc-account-latest{
  width:100%;
}
.rsc-account-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card-gradient);
  box-shadow:var(--shadow);
}
.rsc-account-hero__identity{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:18px;
  align-items:center;
  min-width:0;
}
.rsc-account-hero__identity img{
  width:96px !important;
  height:96px !important;
  min-width:96px !important;
  border-radius:999px;
  object-fit:cover;
  border:1px solid var(--line);
  background:var(--panel-2);
}
.rsc-account-eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:6px 10px;
  margin-bottom:10px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius:999px;
  color:var(--accent);
  background:color-mix(in srgb,var(--accent) 11%,transparent);
  font-size:11px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.rsc-account-hero h2{
  margin:0 0 8px;
  font-size:clamp(28px,4vw,44px);
  line-height:1;
  letter-spacing:-.05em;
  overflow-wrap:anywhere;
}
.rsc-account-hero .rsc-auth-muted{margin:0;}
.rsc-account-hero__actions{
  display:grid;
  gap:10px;
  min-width:190px;
}
.rsc-account-stats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.rsc-account-stat-card{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  box-shadow:0 12px 34px rgba(0,0,0,.12);
}
.rsc-account-stat-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.rsc-account-stat-card strong{
  color:var(--text);
  font-size:clamp(22px,3vw,34px);
  line-height:1;
  letter-spacing:-.04em;
}
.rsc-account-stat-card.is-verified strong{color:#22c55e;}
.rsc-account-stat-card.is-unverified strong{color:#f59e0b;}
.rsc-account-health{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.rsc-account-health-card{
  display:grid;
  gap:8px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
}
.rsc-account-health-card.is-warning{
  border-color:rgba(245,158,11,.34);
  background:linear-gradient(180deg,rgba(245,158,11,.11),rgba(255,255,255,.03)),var(--panel);
}
.rsc-account-health-card strong{font-size:16px;}
.rsc-account-health-card p{margin:0;color:var(--muted);line-height:1.55;}
.rsc-account-code-form{margin-top:6px;}
.rsc-account-quick-actions{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.rsc-account-quick-actions a{
  display:grid;
  gap:6px;
  min-height:112px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  color:var(--text);
  text-decoration:none;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .22s ease;
}
.rsc-account-quick-actions a:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--accent) 50%,var(--line));
  box-shadow:0 16px 38px rgba(0,0,0,.16);
}
.rsc-account-quick-actions strong{font-size:15px;}
.rsc-account-quick-actions span{color:var(--muted);font-size:13px;line-height:1.45;}
.rsc-account-latest{
  padding:20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--card-gradient);
  box-shadow:var(--shadow);
}
.rsc-account-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:14px;
}
.rsc-account-section-head h3{
  margin:0 0 6px;
  font-size:24px;
  letter-spacing:-.035em;
}
.rsc-account-text-link{
  color:var(--accent);
  font-weight:950;
  text-decoration:none;
  white-space:nowrap;
}
.rsc-account-latest-list{display:grid;gap:10px;}
.rsc-account-latest-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;
  align-items:center;
  padding:13px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.rsc-account-latest-row h4{margin:0 0 6px;font-size:16px;line-height:1.25;}
.rsc-account-latest-row h4 a{color:var(--text);text-decoration:none;}
.rsc-account-latest-row p{margin:0;color:var(--muted);font-size:13px;}
.rsc-account-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:11px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
}
.rsc-account-status-badge--publish{color:#22c55e;border-color:rgba(34,197,94,.35);background:rgba(34,197,94,.12);}
.rsc-account-status-badge--pending,.rsc-account-status-badge--not_approved{color:#f59e0b;border-color:rgba(245,158,11,.36);background:rgba(245,158,11,.13);}
.rsc-account-status-badge--needs_changes{color:#fb923c;border-color:rgba(251,146,60,.4);background:rgba(251,146,60,.13);}
.rsc-account-status-badge--rejected{color:#f87171;border-color:rgba(248,113,113,.4);background:rgba(248,113,113,.12);}
.rsc-account-row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;}
.rsc-account-row-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--text);
  font-size:12px;
  font-weight:900;
  text-decoration:none;
}
.rsc-account-row-actions a:hover{border-color:var(--accent);color:var(--accent);}
.rsc-account-empty-state{
  display:grid;
  gap:10px;
  justify-items:start;
  padding:20px;
  border:1px dashed var(--line);
  border-radius:18px;
  color:var(--muted);
}
.rsc-account-empty-state strong{color:var(--text);font-size:18px;}
.rsc-account-empty-state p{margin:0;}
.rsc-account-footnote{margin:14px 0 0;color:var(--muted);font-size:12px;font-weight:800;}
.rsc-theme-light .rsc-account-stat-card,
.rsc-theme-light .rsc-account-health-card,
.rsc-theme-light .rsc-account-quick-actions a,
.rsc-theme-light .rsc-account-latest-row{
  background:rgba(255,246,238,.72);
}
.rsc-theme-light .rsc-account-health-card.is-warning{
  background:linear-gradient(180deg,rgba(245,158,11,.13),rgba(255,255,255,.5)),rgba(255,246,238,.72);
}
@media(max-width:980px){
  .rsc-account-hero{grid-template-columns:1fr;}
  .rsc-account-hero__actions{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;}
  .rsc-account-stats,.rsc-account-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:760px){
  .rsc-account-health{grid-template-columns:1fr;}
  .rsc-account-latest-row{grid-template-columns:1fr;align-items:stretch;}
  .rsc-account-row-actions{justify-content:flex-start;}
}
@media(max-width:640px){
  .rsc-account-hero,.rsc-account-latest{padding:16px;border-radius:18px;}
  .rsc-account-dashboard{gap:16px;}
  .rsc-account-hero__identity{grid-template-columns:64px minmax(0,1fr);gap:12px;}
  .rsc-account-hero__identity img{width:64px !important;height:64px !important;min-width:64px !important;}
  .rsc-account-hero h2{font-size:28px;}
  .rsc-account-hero__actions{grid-template-columns:1fr;}
  .rsc-account-stats{gap:8px;}
  .rsc-account-stat-card{padding:12px;border-radius:15px;}
  .rsc-account-stat-card span{font-size:10px;}
  .rsc-account-stat-card strong{font-size:22px;}
  .rsc-account-quick-actions{grid-template-columns:1fr;}
  .rsc-account-quick-actions a{min-height:auto;padding:14px;}
  .rsc-account-section-head{align-items:flex-start;}
}
/* v1.14.4: collapsible Script Functions list */
body.single-script .rsc-functions-toggle{
  display:block;
  margin-top:16px;
  border:1px solid var(--rsc-script-description-border, var(--line));
  border-radius:18px;
  background:var(--rsc-script-description-inner-bg, var(--panel));
  overflow:hidden;
}
body.single-script .rsc-functions-toggle__summary{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:14px 16px;
  cursor:pointer;
  list-style:none;
  color:var(--text);
  font-weight:900;
  user-select:none;
}
body.single-script .rsc-functions-toggle__summary::-webkit-details-marker{display:none;}
body.single-script .rsc-functions-toggle__summary:hover{
  background:color-mix(in srgb, var(--accent) 8%, transparent);
}
body.single-script .rsc-functions-toggle__summary-text{
  flex:1;
  min-width:0;
}
body.single-script .rsc-functions-toggle__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:26px;
  padding:0 9px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:950;
  line-height:1;
}
body.single-script .rsc-functions-toggle__chevron{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:26px;
  height:26px;
  border-radius:999px;
  border:1px solid var(--rsc-script-description-border, var(--line));
  color:var(--muted);
  transition:transform .22s ease, color .22s ease, border-color .22s ease;
}
body.single-script .rsc-functions-toggle[open] .rsc-functions-toggle__chevron{
  transform:rotate(180deg);
  color:var(--accent);
  border-color:color-mix(in srgb, var(--accent) 45%, var(--line));
}
body.single-script .rsc-functions-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0;
  padding:0 16px 16px;
  list-style:none;
}
body.single-script .rsc-functions-list li{
  display:flex;
  align-items:flex-start;
  gap:9px;
  min-width:0;
  border:1px solid var(--rsc-script-description-border, var(--line));
  border-radius:14px;
  background:color-mix(in srgb, var(--rsc-script-description-inner-bg, var(--panel)) 82%, transparent);
  padding:11px 12px;
  color:#9aa6bd!important;
  font-weight:800;
  line-height:1.35;
  overflow-wrap:anywhere;
}
body.single-script .rsc-functions-list li span{
  color:var(--accent);
  font-weight:950;
  flex:0 0 auto;
}
body.single-script .rsc-functions-content{
  padding:0 16px 16px;
  color:#9aa6bd!important;
}
body.single-script .rsc-functions-content p,
body.single-script .rsc-functions-content li,
body.single-script .rsc-functions-content div{
  color:#9aa6bd!important;
}
html[data-rsc-theme="light"] body.single-script .rsc-functions-list li,
html.rsc-theme-light body.single-script .rsc-functions-list li,
body.rsc-theme-light.single-script .rsc-functions-list li,
html[data-rsc-theme="light"] body.single-script .rsc-functions-content,
html.rsc-theme-light body.single-script .rsc-functions-content,
body.rsc-theme-light.single-script .rsc-functions-content,
html[data-rsc-theme="light"] body.single-script .rsc-functions-content p,
html.rsc-theme-light body.single-script .rsc-functions-content p,
body.rsc-theme-light.single-script .rsc-functions-content p,
html[data-rsc-theme="light"] body.single-script .rsc-functions-content li,
html.rsc-theme-light body.single-script .rsc-functions-content li,
body.rsc-theme-light.single-script .rsc-functions-content li{
  color:#000!important;
}
@media(max-width:760px){
  body.single-script .rsc-functions-toggle{border-radius:14px;margin-top:12px;}
  body.single-script .rsc-functions-toggle__summary{min-height:48px;padding:12px 13px;font-size:14px;}
  body.single-script .rsc-functions-list{grid-template-columns:1fr;gap:8px;padding:0 12px 12px;}
  body.single-script .rsc-functions-list li{padding:10px 11px;font-size:13px;border-radius:12px;}
  body.single-script .rsc-functions-content{padding:0 12px 12px;font-size:14px;}
}

/* v1.14.6: cleaner Script Functions toggle */
body.single-script .rsc-script-feature-card .rbx-section-head p{
  font-weight:800;
}
body.single-script .rsc-functions-toggle{
  margin-top:14px;
}
body.single-script .rsc-functions-toggle__summary{
  min-height:48px;
  padding:12px 14px;
}
body.single-script .rsc-functions-toggle__count{
  display:none!important;
}
body.single-script .rsc-functions-toggle__label-hide{
  display:none;
}
body.single-script .rsc-functions-toggle[open] .rsc-functions-toggle__label-show{
  display:none;
}
body.single-script .rsc-functions-toggle[open] .rsc-functions-toggle__label-hide{
  display:inline;
}
body.single-script .rsc-functions-list{
  padding:0 14px 14px;
  gap:9px;
}
body.single-script .rsc-functions-list li{
  padding:10px 11px;
  border-radius:12px;
}
@media(max-width:760px){
  body.single-script .rsc-functions-toggle__summary{min-height:44px;padding:10px 12px;}
  body.single-script .rsc-functions-list{padding:0 10px 10px;gap:7px;}
}


/* v1.14.7 registration submission rules modal */
.rsc-rules-inline-link{
  appearance:none;
  -webkit-appearance:none;
  display:inline;
  padding:0;
  border:0;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-weight:950;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
  cursor:pointer;
}
.rsc-rules-inline-link:hover{filter:brightness(1.08);}
.rsc-rules-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.rsc-rules-modal.is-open{display:flex;}
.rsc-modal-open{overflow:hidden;}
.rsc-rules-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(1,6,18,.72);
  backdrop-filter:blur(12px);
}
.rsc-rules-modal__dialog{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  max-height:min(82vh,820px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:26px;
  background:var(--card-gradient);
  color:var(--text);
  box-shadow:0 30px 100px rgba(0,0,0,.45);
  outline:none;
}
.rsc-rules-modal__close{
  position:absolute;
  right:14px;
  top:14px;
  z-index:3;
  width:38px;
  height:38px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--panel-2);
  color:var(--text);
  font-size:24px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
}
.rsc-rules-modal__head{
  padding:26px 30px 16px;
  border-bottom:1px solid var(--line);
}
.rsc-rules-modal__head h2{
  margin:6px 44px 8px 0;
  font-size:clamp(26px,4vw,38px);
  line-height:1.05;
  letter-spacing:-.045em;
}
.rsc-rules-modal__head p{margin:0;color:var(--muted);font-weight:700;line-height:1.55;}
.rsc-rules-modal__body{
  padding:20px 30px;
  overflow:auto;
}
.rsc-rules-list{
  display:grid;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rsc-rules;
}
.rsc-rules-list li{
  counter-increment:rsc-rules;
  position:relative;
  display:grid;
  gap:5px;
  padding:14px 15px 14px 48px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.035);
}
.rsc-rules-list li::before{
  content:counter(rsc-rules);
  position:absolute;
  left:14px;
  top:14px;
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:12px;
  font-weight:950;
}
.rsc-rules-list strong{font-size:14px;color:var(--text);font-weight:950;}
.rsc-rules-list span{color:var(--muted);font-size:13px;line-height:1.5;font-weight:700;}
.rsc-rules-modal__actions{
  padding:16px 30px 24px;
  border-top:1px solid var(--line);
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.08));
}
.rsc-rules-modal__actions .rsc-auth-button{width:100%;}
.rsc-theme-light .rsc-rules-modal__backdrop{background:rgba(35,24,18,.38);}
.rsc-theme-light .rsc-rules-list li{background:rgba(255,255,255,.68);}
@media(max-width:640px){
  .rsc-rules-modal{padding:12px;align-items:flex-end;}
  .rsc-rules-modal__dialog{max-height:88vh;border-radius:22px;}
  .rsc-rules-modal__head{padding:22px 18px 14px;}
  .rsc-rules-modal__head h2{margin-right:42px;}
  .rsc-rules-modal__body{padding:14px 18px;}
  .rsc-rules-modal__actions{padding:14px 18px 18px;}
  .rsc-rules-list li{padding:13px 13px 13px 44px;border-radius:14px;}
}


/* v1.14.8 compact auth pages: centered form, no promo panel/social buttons */
.rsc-auth-shell--compact{
  width:min(100% - 32px,560px) !important;
  margin:28px auto 46px !important;
  display:block !important;
}
.rsc-auth-shell--compact .rsc-auth-card--modern{
  width:100%;
  max-width:560px;
  margin-inline:auto;
  padding:28px;
}
.rsc-auth-shell--compact .rsc-auth-muted{
  margin-bottom:18px;
}
.rsc-auth-shell--compact .rsc-auth-form--modern{
  display:grid;
  gap:14px;
}
.rsc-auth-shell--compact .rsc-auth-card-head h2{
  font-size:clamp(30px,4vw,38px);
}
.rsc-auth-shell--compact .rsc-auth-divider,
.rsc-auth-shell--compact .rsc-social-login{
  display:none !important;
}
.rsc-auth-shell--compact .rsc-auth-grid-2{
  grid-template-columns:1fr !important;
}
.rsc-frontend-page:has(.rsc-auth-shell--compact) .rsc-frontend-page-head{
  margin-bottom:8px;
}
.rsc-frontend-page:has(.rsc-auth-shell--compact) .rsc-frontend-page-head h1{
  font-size:clamp(36px,5vw,54px);
  line-height:.98;
  letter-spacing:-.055em;
}
@media(max-width:700px){
  .rsc-auth-shell--compact{
    width:min(100% - 18px,520px) !important;
    margin:14px auto 32px !important;
  }
  .rsc-auth-shell--compact .rsc-auth-card--modern{
    padding:18px;
    border-radius:22px;
  }
  .rsc-auth-shell--compact .rsc-auth-card-head{
    align-items:center;
    gap:12px;
  }
  .rsc-auth-shell--compact .rsc-auth-card-head h2{
    font-size:30px;
  }
  .rsc-frontend-page:has(.rsc-auth-shell--compact) .rsc-frontend-page-head h1{
    font-size:34px;
  }
}

/* v1.14.9 minimal search-first home hero */
.rsc-home-page .rsc-home-hero--minimal{
  padding:28px 0 10px !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-inner{
  display:block !important;
  max-width:920px;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
  max-width:760px;
  margin:0 auto;
  padding:26px !important;
  text-align:center;
  border-radius:24px;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy:before{
  width:260px !important;
  height:260px !important;
  inset:-130px -110px auto auto !important;
  opacity:.65;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
  max-width:100% !important;
  margin:0 0 8px !important;
  font-size:clamp(34px,5.4vw,58px) !important;
  line-height:.98 !important;
  letter-spacing:-.055em !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
  max-width:560px !important;
  margin:0 auto 16px !important;
  color:var(--muted);
  font-size:15px !important;
  line-height:1.45 !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
  max-width:620px !important;
  margin:0 auto 12px !important;
}
.rsc-home-page .rsc-home-publish{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:620px;
  min-height:44px;
  margin:0 auto;
  border-radius:999px;
}
.rsc-home-page .rsc-home-quick-links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:13px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.rsc-home-page .rsc-home-quick-links a{
  color:var(--muted);
  text-decoration:none;
}
.rsc-home-page .rsc-home-quick-links a:hover{
  color:var(--accent);
}
.rsc-home-page .rsc-home-filter-summary{
  min-height:18px;
}
@media(max-width:640px){
  .rsc-home-page .rsc-home-hero--minimal{
    padding:10px 0 4px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
    padding:14px !important;
    border-radius:16px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
    font-size:clamp(26px,8vw,34px) !important;
    margin-bottom:7px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
    font-size:12.5px !important;
    line-height:1.35 !important;
    margin-bottom:10px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
    margin-bottom:8px !important;
  }
  .rsc-home-page .rsc-home-publish{
    min-height:36px;
    font-size:12px;
    padding:8px 12px;
  }
  .rsc-home-page .rsc-home-quick-links{
    margin-top:9px;
    font-size:12px;
  }
}


/* v1.15.0 minimal full-width home hero */
.rsc-home-page .rsc-home-hero--minimal{
  padding:18px 0 4px !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-inner{
  display:block !important;
  max-width:var(--container, 1180px) !important;
  width:100% !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:18px 0 14px !important;
  text-align:left !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  overflow:visible !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy:before{
  display:none !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
  max-width:none !important;
  margin:0 0 6px !important;
  font-size:clamp(28px,3.8vw,46px) !important;
  line-height:1.02 !important;
  letter-spacing:-.045em !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
  max-width:none !important;
  margin:0 0 14px !important;
  font-size:14px !important;
  line-height:1.45 !important;
  color:var(--muted) !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
  width:100% !important;
  max-width:none !important;
  margin:0 0 10px !important;
  min-height:46px !important;
  border-radius:16px !important;
  background:color-mix(in srgb,var(--card-bg) 72%,transparent) !important;
  box-shadow:none !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search input{
  min-height:44px !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search button{
  min-height:38px !important;
  padding:9px 20px !important;
}
.rsc-home-page .rsc-home-publish{
  width:100% !important;
  max-width:none !important;
  min-height:40px !important;
  margin:0 !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
.rsc-home-page .rsc-home-quick-links{
  justify-content:flex-start !important;
  margin-top:10px !important;
  font-size:12px !important;
}
@media(min-width:900px){
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
    display:grid !important;
    grid-template-columns:minmax(260px,.45fr) minmax(420px,.55fr);
    grid-template-areas:"title search" "lead publish" "links links";
    gap:4px 24px;
    align-items:center;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{grid-area:title;}
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{grid-area:lead;margin:0 !important;}
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search{grid-area:search;margin:0 !important;}
  .rsc-home-page .rsc-home-publish{grid-area:publish;margin-top:6px !important;}
  .rsc-home-page .rsc-home-quick-links{grid-area:links;margin-top:8px !important;}
}
@media(max-width:640px){
  .rsc-home-page .rsc-home-hero--minimal{
    padding:8px 0 0 !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
    padding:10px 0 8px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
    font-size:clamp(24px,7.2vw,31px) !important;
    margin-bottom:4px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
    font-size:12.5px !important;
    margin-bottom:9px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
    min-height:42px !important;
    border-radius:14px !important;
    margin-bottom:8px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search input{
    min-height:40px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search button{
    min-height:34px !important;
    padding:8px 14px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-publish{
    min-height:36px !important;
    border-radius:14px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-quick-links{
    margin-top:8px !important;
  }
}


/* v1.15.1 centered search-only home hero */
.rsc-home-page .rsc-home-hero--minimal{
  padding:30px 0 12px !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-inner{
  display:block !important;
  max-width:var(--container, 1180px) !important;
  width:100% !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:820px !important;
  margin:0 auto !important;
  padding:20px 0 18px !important;
  text-align:center !important;
  background:transparent !important;
  background-image:none !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  overflow:visible !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy:before{
  display:none !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
  width:100% !important;
  max-width:820px !important;
  margin:0 0 8px !important;
  font-size:clamp(34px,4.6vw,56px) !important;
  line-height:1 !important;
  letter-spacing:-.055em !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
  width:100% !important;
  max-width:620px !important;
  margin:0 0 18px !important;
  font-size:14px !important;
  line-height:1.45 !important;
  color:var(--muted) !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
  display:flex !important;
  align-items:center !important;
  width:100% !important;
  max-width:760px !important;
  margin:0 0 12px !important;
  min-height:48px !important;
  padding:6px !important;
  border-radius:18px !important;
  background:color-mix(in srgb,var(--card-bg) 72%,transparent) !important;
  border:1px solid var(--line) !important;
  box-shadow:none !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search input{
  min-height:40px !important;
  padding:10px 14px !important;
  text-align:left !important;
}
.rsc-home-page .rsc-home-hero--minimal .rsc-home-search button{
  min-height:38px !important;
  padding:9px 20px !important;
  border-radius:14px !important;
  flex:0 0 auto !important;
}
.rsc-home-page .rsc-home-publish{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:760px !important;
  min-height:42px !important;
  margin:0 !important;
  border-radius:16px !important;
  box-shadow:none !important;
}
.rsc-home-page .rsc-home-quick-links{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  width:100% !important;
  margin-top:12px !important;
  font-size:12px !important;
  color:var(--muted) !important;
}
.rsc-home-page .rsc-home-quick-links a{
  color:var(--muted) !important;
  text-decoration:none !important;
}
.rsc-home-page .rsc-home-quick-links a:hover{
  color:var(--accent) !important;
}
@media(max-width:640px){
  .rsc-home-page .rsc-home-hero--minimal{
    padding:14px 0 4px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy{
    max-width:100% !important;
    padding:10px 0 10px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-hero-copy h1{
    font-size:clamp(28px,8.6vw,36px) !important;
    margin-bottom:6px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-lead{
    max-width:320px !important;
    font-size:12.5px !important;
    margin-bottom:12px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
    max-width:100% !important;
    min-height:0 !important;
    padding:7px !important;
    border-radius:16px !important;
    margin-bottom:9px !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search input{
    min-height:38px !important;
    font-size:12px !important;
    text-align:center !important;
  }
  .rsc-home-page .rsc-home-hero--minimal .rsc-home-search button{
    width:100% !important;
    min-height:36px !important;
    padding:8px 14px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-publish{
    max-width:100% !important;
    min-height:38px !important;
    border-radius:14px !important;
    font-size:12px !important;
  }
  .rsc-home-page .rsc-home-quick-links{
    margin-top:9px !important;
    font-size:11.5px !important;
  }
}


/* v1.15.2 home hero publish link refinement */
.rsc-home-page .rsc-home-publish{
  display:none !important;
}
.rsc-home-page .rsc-home-quick-links{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:8px 10px !important;
  margin-top:12px !important;
}
.rsc-home-page .rsc-home-publish-link{
  position:relative;
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  font-weight:900 !important;
  color:var(--accent) !important;
  text-decoration:none !important;
  background:linear-gradient(90deg,var(--accent),#22d3ee,var(--accent));
  background-size:220% 100%;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:rsc-home-publish-shimmer 3.2s ease-in-out infinite;
}
.rsc-home-page .rsc-home-publish-link::after{
  content:"→";
  -webkit-text-fill-color:var(--accent);
  color:var(--accent);
  font-weight:900;
  transform:translateY(-.5px);
}
.rsc-home-page .rsc-home-publish-link:hover{
  filter:brightness(1.12);
}
@keyframes rsc-home-publish-shimmer{
  0%,100%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
}
@media(max-width:640px){
  .rsc-home-page .rsc-home-quick-links{
    margin-top:10px !important;
    gap:7px 8px !important;
  }
  .rsc-home-page .rsc-home-publish-link{
    font-size:11.5px !important;
  }
}
@media(prefers-reduced-motion:reduce){
  .rsc-home-page .rsc-home-publish-link{animation:none !important;}
}


/* v1.15.3 clean white light theme test */
html[data-rsc-theme="light"],
html[data-rsc-theme="light"] body,
body.rsc-theme-light,
.rsc-theme-light {
  --bg:#f7f8fb !important;
  --bg-soft:#ffffff !important;
  --body-bg:#f7f8fb !important;
  --panel:#ffffff !important;
  --panel-2:#f2f5fa !important;
  --input-bg:#ffffff !important;
  --thumb:#f1f5f9 !important;
  --code-bg:#0f172a !important;
  --code-head:#111827 !important;
  --text:#0f172a !important;
  --text-strong:#020617 !important;
  --muted:#64748b !important;
  --muted-2:#94a3b8 !important;
  --line:#e2e8f0 !important;
  --line-strong:#cbd5e1 !important;
  --accent:#7c4dff !important;
  --accent-2:#8b5cf6 !important;
  --accent-soft:rgba(124,77,255,.10) !important;
  --card-gradient:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  --shadow:0 14px 34px rgba(15,23,42,.08) !important;
}

html[data-rsc-theme="light"] body,
body.rsc-theme-light {
  background:#f7f8fb !important;
  color:#0f172a !important;
}

html[data-rsc-theme="light"] .site-header,
body.rsc-theme-light .site-header {
  background:rgba(255,255,255,.92) !important;
  border-bottom-color:#e2e8f0 !important;
  box-shadow:0 10px 30px rgba(15,23,42,.04) !important;
}

html[data-rsc-theme="light"] .brand,
html[data-rsc-theme="light"] .primary-nav a,
html[data-rsc-theme="light"] .nav-pill,
body.rsc-theme-light .brand,
body.rsc-theme-light .primary-nav a,
body.rsc-theme-light .nav-pill {
  color:#0f172a !important;
}

html[data-rsc-theme="light"] .primary-nav a:hover,
html[data-rsc-theme="light"] .nav-pill:hover,
body.rsc-theme-light .primary-nav a:hover,
body.rsc-theme-light .nav-pill:hover {
  background:#f2f5fa !important;
  color:#020617 !important;
}

html[data-rsc-theme="light"] .search-form,
html[data-rsc-theme="light"] .theme-toggle,
html[data-rsc-theme="light"] .user-chip,
html[data-rsc-theme="light"] .auth-link,
body.rsc-theme-light .search-form,
body.rsc-theme-light .theme-toggle,
body.rsc-theme-light .user-chip,
body.rsc-theme-light .auth-link {
  background:#ffffff !important;
  border-color:#dbe3ef !important;
  color:#0f172a !important;
  box-shadow:0 8px 22px rgba(15,23,42,.05) !important;
}

html[data-rsc-theme="light"] input,
html[data-rsc-theme="light"] select,
html[data-rsc-theme="light"] textarea,
body.rsc-theme-light input,
body.rsc-theme-light select,
body.rsc-theme-light textarea {
  background:#ffffff !important;
  border-color:#dbe3ef !important;
  color:#0f172a !important;
}

html[data-rsc-theme="light"] input::placeholder,
html[data-rsc-theme="light"] textarea::placeholder,
body.rsc-theme-light input::placeholder,
body.rsc-theme-light textarea::placeholder {
  color:#94a3b8 !important;
}

html[data-rsc-theme="light"] .script-card,
html[data-rsc-theme="light"] .script-card--compact,
html[data-rsc-theme="light"] .rsc-legacy-post-card,
html[data-rsc-theme="light"] .place-card,
html[data-rsc-theme="light"] .rsc-home-place-card,
html[data-rsc-theme="light"] .rbx-place-card,
html[data-rsc-theme="light"] .single-card,
html[data-rsc-theme="light"] .sidebar-card,
html[data-rsc-theme="light"] .profile-header,
html[data-rsc-theme="light"] .rsc-auth-card,
html[data-rsc-theme="light"] .rsc-account-card,
html[data-rsc-theme="light"] .rsc-account-stat,
html[data-rsc-theme="light"] .rsc-my-script-row,
html[data-rsc-theme="light"] .rbx-hero-card,
html[data-rsc-theme="light"] .rbx-section,
html[data-rsc-theme="light"] .script-product-hero,
html[data-rsc-theme="light"] .script-product-section,
html[data-rsc-theme="light"] .script-side-card,
html[data-rsc-theme="light"] .script-action-panel,
body.rsc-theme-light .script-card,
body.rsc-theme-light .script-card--compact,
body.rsc-theme-light .rsc-legacy-post-card,
body.rsc-theme-light .place-card,
body.rsc-theme-light .rsc-home-place-card,
body.rsc-theme-light .rbx-place-card,
body.rsc-theme-light .single-card,
body.rsc-theme-light .sidebar-card,
body.rsc-theme-light .profile-header,
body.rsc-theme-light .rsc-auth-card,
body.rsc-theme-light .rsc-account-card,
body.rsc-theme-light .rsc-account-stat,
body.rsc-theme-light .rsc-my-script-row,
body.rsc-theme-light .rbx-hero-card,
body.rsc-theme-light .rbx-section,
body.rsc-theme-light .script-product-hero,
body.rsc-theme-light .script-product-section,
body.rsc-theme-light .script-side-card,
body.rsc-theme-light .script-action-panel {
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:0 14px 34px rgba(15,23,42,.08) !important;
}

html[data-rsc-theme="light"] .script-card p,
html[data-rsc-theme="light"] .script-card .meta-row,
html[data-rsc-theme="light"] .rsc-legacy-post-card__excerpt,
html[data-rsc-theme="light"] .rsc-legacy-post-card__meta,
html[data-rsc-theme="light"] .muted,
html[data-rsc-theme="light"] .section-heading p,
html[data-rsc-theme="light"] .hero-text,
html[data-rsc-theme="light"] .rsc-home-subtitle,
body.rsc-theme-light .script-card p,
body.rsc-theme-light .script-card .meta-row,
body.rsc-theme-light .rsc-legacy-post-card__excerpt,
body.rsc-theme-light .rsc-legacy-post-card__meta,
body.rsc-theme-light .muted,
body.rsc-theme-light .section-heading p,
body.rsc-theme-light .hero-text,
body.rsc-theme-light .rsc-home-subtitle {
  color:#64748b !important;
}

html[data-rsc-theme="light"] .script-card h2,
html[data-rsc-theme="light"] .script-card h3,
html[data-rsc-theme="light"] .rsc-legacy-post-card__title a,
html[data-rsc-theme="light"] .section-heading h1,
html[data-rsc-theme="light"] .section-heading h2,
html[data-rsc-theme="light"] .rsc-home-title,
html[data-rsc-theme="light"] h1,
html[data-rsc-theme="light"] h2,
html[data-rsc-theme="light"] h3,
body.rsc-theme-light .script-card h2,
body.rsc-theme-light .script-card h3,
body.rsc-theme-light .rsc-legacy-post-card__title a,
body.rsc-theme-light .section-heading h1,
body.rsc-theme-light .section-heading h2,
body.rsc-theme-light .rsc-home-title,
body.rsc-theme-light h1,
body.rsc-theme-light h2,
body.rsc-theme-light h3 {
  color:#020617 !important;
}

html[data-rsc-theme="light"] .card-footer,
html[data-rsc-theme="light"] .script-card-footer,
html[data-rsc-theme="light"] .script-card--compact .script-card-stats,
html[data-rsc-theme="light"] .rsc-legacy-post-card__footer,
body.rsc-theme-light .card-footer,
body.rsc-theme-light .script-card-footer,
body.rsc-theme-light .script-card--compact .script-card-stats,
body.rsc-theme-light .rsc-legacy-post-card__footer {
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
  color:#64748b !important;
}

html[data-rsc-theme="light"] .rsc-filter-pill,
html[data-rsc-theme="light"] .rsc-home-filter,
html[data-rsc-theme="light"] .mini-button,
html[data-rsc-theme="light"] .rsc-account-tabs a,
body.rsc-theme-light .rsc-filter-pill,
body.rsc-theme-light .rsc-home-filter,
body.rsc-theme-light .mini-button,
body.rsc-theme-light .rsc-account-tabs a {
  background:#ffffff !important;
  border-color:#dbe3ef !important;
  color:#334155 !important;
}

html[data-rsc-theme="light"] .rsc-filter-pill.is-active,
html[data-rsc-theme="light"] .rsc-home-filter.is-active,
html[data-rsc-theme="light"] .rsc-account-tabs a.is-active,
body.rsc-theme-light .rsc-filter-pill.is-active,
body.rsc-theme-light .rsc-home-filter.is-active,
body.rsc-theme-light .rsc-account-tabs a.is-active {
  background:#7c4dff !important;
  border-color:#7c4dff !important;
  color:#ffffff !important;
}

html[data-rsc-theme="light"] .rsc-script-description,
html[data-rsc-theme="light"] .rsc-script-functions,
html[data-rsc-theme="light"] .rsc-yandex-ad,
html[data-rsc-theme="light"] .rbx-code-card,
html[data-rsc-theme="light"] .rbx-faq,
html[data-rsc-theme="light"] .comments-area,
body.rsc-theme-light .rsc-script-description,
body.rsc-theme-light .rsc-script-functions,
body.rsc-theme-light .rsc-yandex-ad,
body.rsc-theme-light .rbx-code-card,
body.rsc-theme-light .rbx-faq,
body.rsc-theme-light .comments-area {
  background:#ffffff !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:0 14px 34px rgba(15,23,42,.08) !important;
}

html[data-rsc-theme="light"] .rsc-script-functions li,
html[data-rsc-theme="light"] .rsc-function-item,
html[data-rsc-theme="light"] .rbx-code-warning,
html[data-rsc-theme="light"] .rbx-faq details,
html[data-rsc-theme="light"] .comment-body,
body.rsc-theme-light .rsc-script-functions li,
body.rsc-theme-light .rsc-function-item,
body.rsc-theme-light .rbx-code-warning,
body.rsc-theme-light .rbx-faq details,
body.rsc-theme-light .comment-body {
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
}

html[data-rsc-theme="light"] .code-box,
html[data-rsc-theme="light"] .rbx-code-pre,
html[data-rsc-theme="light"] pre,
body.rsc-theme-light .code-box,
body.rsc-theme-light .rbx-code-pre,
body.rsc-theme-light pre {
  background:#0f172a !important;
  border-color:#1e293b !important;
  color:#e5e7eb !important;
}

html[data-rsc-theme="light"] .code-box code,
html[data-rsc-theme="light"] .rbx-code-pre code,
body.rsc-theme-light .code-box code,
body.rsc-theme-light .rbx-code-pre code {
  color:#e5e7eb !important;
}

html[data-rsc-theme="light"] .site-footer,
body.rsc-theme-light .site-footer {
  background:#ffffff !important;
  border-top-color:#e2e8f0 !important;
  color:#475569 !important;
}

html[data-rsc-theme="light"] .site-footer a,
body.rsc-theme-light .site-footer a {
  color:#334155 !important;
}

html[data-rsc-theme="light"] .site-footer a:hover,
body.rsc-theme-light .site-footer a:hover {
  color:#7c4dff !important;
}


/* v1.15.4 light theme brand + script page white cleanup */
html[data-rsc-theme="light"] .brand-mark,
html.rsc-theme-light .brand-mark,
body.rsc-theme-light .brand-mark,
html[data-rsc-theme="light"] .site-header .brand-mark,
body.rsc-theme-light .site-header .brand-mark {
  background:linear-gradient(135deg,#7c4dff 0%,#8b5cf6 100%) !important;
  color:#ffffff !important;
  box-shadow:0 10px 22px rgba(124,77,255,.22) !important;
}

html[data-rsc-theme="light"],
body.rsc-theme-light {
  --bg:#f7f8fb !important;
  --bg-soft:#ffffff !important;
  --panel:#ffffff !important;
  --panel-2:#f2f5fa !important;
  --input-bg:#ffffff !important;
  --thumb:#f1f5f9 !important;
  --line:#e2e8f0 !important;
  --text:#0f172a !important;
  --muted:#64748b !important;
  --accent:#7c4dff !important;
  --accent-2:#8b5cf6 !important;
  --accent-soft:rgba(124,77,255,.10) !important;
  --card-gradient:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  --body-bg:#f7f8fb !important;
  --shadow:0 14px 34px rgba(15,23,42,.08) !important;
}

html[data-rsc-theme="light"] .rsc-script-page,
body.rsc-theme-light .rsc-script-page {
  background:#f7f8fb !important;
  color:#0f172a !important;
}

html[data-rsc-theme="light"] .rsc-script-page .single-card,
html[data-rsc-theme="light"] .rsc-script-page .sidebar-card,
html[data-rsc-theme="light"] .rsc-script-page .script-product-hero,
html[data-rsc-theme="light"] .rsc-script-page .script-product-section,
html[data-rsc-theme="light"] .rsc-script-page .script-side-card,
html[data-rsc-theme="light"] .rsc-script-page .script-action-panel,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-description,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-functions,
html[data-rsc-theme="light"] .rsc-script-page .rsc-yandex-ad,
html[data-rsc-theme="light"] .rsc-script-page .rbx-code-card,
html[data-rsc-theme="light"] .rsc-script-page .rbx-faq,
html[data-rsc-theme="light"] .rsc-script-page .comments-area,
html[data-rsc-theme="light"] .rsc-script-page .rsc-anchor-nav,
html[data-rsc-theme="light"] .rsc-script-page .rbx-anchor-nav,
body.rsc-theme-light .rsc-script-page .single-card,
body.rsc-theme-light .rsc-script-page .sidebar-card,
body.rsc-theme-light .rsc-script-page .script-product-hero,
body.rsc-theme-light .rsc-script-page .script-product-section,
body.rsc-theme-light .rsc-script-page .script-side-card,
body.rsc-theme-light .rsc-script-page .script-action-panel,
body.rsc-theme-light .rsc-script-page .rsc-script-description,
body.rsc-theme-light .rsc-script-page .rsc-script-functions,
body.rsc-theme-light .rsc-script-page .rsc-yandex-ad,
body.rsc-theme-light .rsc-script-page .rbx-code-card,
body.rsc-theme-light .rsc-script-page .rbx-faq,
body.rsc-theme-light .rsc-script-page .comments-area,
body.rsc-theme-light .rsc-script-page .rsc-anchor-nav,
body.rsc-theme-light .rsc-script-page .rbx-anchor-nav {
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:0 14px 34px rgba(15,23,42,.08) !important;
}

html[data-rsc-theme="light"] .rsc-script-page .script-info-panel div,
html[data-rsc-theme="light"] .rsc-script-page .sidebar-list div,
html[data-rsc-theme="light"] .rsc-script-page .features-box,
html[data-rsc-theme="light"] .rsc-script-page .rsc-function-item,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-functions li,
html[data-rsc-theme="light"] .rsc-script-page .rbx-code-warning,
html[data-rsc-theme="light"] .rsc-script-page .rbx-faq details,
html[data-rsc-theme="light"] .rsc-script-page .comment-body,
html[data-rsc-theme="light"] .rsc-script-page .comment,
html[data-rsc-theme="light"] .rsc-script-page .rsc-yandex-ad > div,
html[data-rsc-theme="light"] .rsc-script-page .rbx-code-header,
body.rsc-theme-light .rsc-script-page .script-info-panel div,
body.rsc-theme-light .rsc-script-page .sidebar-list div,
body.rsc-theme-light .rsc-script-page .features-box,
body.rsc-theme-light .rsc-script-page .rsc-function-item,
body.rsc-theme-light .rsc-script-page .rsc-script-functions li,
body.rsc-theme-light .rsc-script-page .rbx-code-warning,
body.rsc-theme-light .rsc-script-page .rbx-faq details,
body.rsc-theme-light .rsc-script-page .comment-body,
body.rsc-theme-light .rsc-script-page .comment,
body.rsc-theme-light .rsc-script-page .rsc-yandex-ad > div,
body.rsc-theme-light .rsc-script-page .rbx-code-header {
  background:#f8fafc !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:none !important;
}

html[data-rsc-theme="light"] .rsc-script-page .script-product-section p,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-description,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-description p,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-functions,
html[data-rsc-theme="light"] .rsc-script-page .rsc-script-functions p,
html[data-rsc-theme="light"] .rsc-script-page .rsc-function-item,
html[data-rsc-theme="light"] .rsc-script-page .muted,
body.rsc-theme-light .rsc-script-page .script-product-section p,
body.rsc-theme-light .rsc-script-page .rsc-script-description,
body.rsc-theme-light .rsc-script-page .rsc-script-description p,
body.rsc-theme-light .rsc-script-page .rsc-script-functions,
body.rsc-theme-light .rsc-script-page .rsc-script-functions p,
body.rsc-theme-light .rsc-script-page .rsc-function-item,
body.rsc-theme-light .rsc-script-page .muted {
  color:#111827 !important;
}

html[data-rsc-theme="light"] .rsc-script-page .code-box,
html[data-rsc-theme="light"] .rsc-script-page .rbx-code-pre,
html[data-rsc-theme="light"] .rsc-script-page pre,
body.rsc-theme-light .rsc-script-page .code-box,
body.rsc-theme-light .rsc-script-page .rbx-code-pre,
body.rsc-theme-light .rsc-script-page pre {
  background:#0f172a !important;
  border-color:#1e293b !important;
  color:#e5e7eb !important;
}

/* v1.15.5 stronger light theme cleanup for /script/ pages */
html[data-rsc-theme="light"],
html[data-rsc-theme="light"] body,
body.rsc-theme-light,
.rsc-theme-light{
  --code-bg:#0f172a !important;
  --code-head:#111827 !important;
  --rsc-script-block-bg:#ffffff !important;
  --rsc-script-block-inner-bg:#f8fafc !important;
  --rsc-script-description-bg:#ffffff !important;
  --rsc-script-description-border:#e2e8f0 !important;
  --rsc-script-description-shadow:0 14px 34px rgba(15,23,42,.08) !important;
  --rsc-script-description-inner-bg:#f8fafc !important;
}
html[data-rsc-theme="light"] .rbx-script-page,
html[data-rsc-theme="light"] .rsc-script-redesign,
body.rsc-theme-light .rbx-script-page,
body.rsc-theme-light .rsc-script-redesign{
  background:#f7f8fb !important;
  color:#0f172a !important;
}
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-hero,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-anchor-nav,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-feature-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-faq-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-code-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-description,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-functions,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-side-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-sidebar-action-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-game-hub-card,
html[data-rsc-theme="light"] .rbx-script-page .rsc-yandex-ad,
html[data-rsc-theme="light"] .rbx-script-page .comments-area,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-hero,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-anchor-nav,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-feature-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-faq-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-code-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-description,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-functions,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-script-side-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-sidebar-action-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-game-hub-card,
html[data-rsc-theme="light"] .rsc-script-redesign .rsc-yandex-ad,
html[data-rsc-theme="light"] .rsc-script-redesign .comments-area,
body.rsc-theme-light .rbx-script-page .rsc-script-hero,
body.rsc-theme-light .rbx-script-page .rsc-script-anchor-nav,
body.rsc-theme-light .rbx-script-page .rsc-script-feature-card,
body.rsc-theme-light .rbx-script-page .rsc-script-faq-card,
body.rsc-theme-light .rbx-script-page .rsc-script-code-card,
body.rsc-theme-light .rbx-script-page .rsc-script-description,
body.rsc-theme-light .rbx-script-page .rsc-script-functions,
body.rsc-theme-light .rbx-script-page .rsc-script-side-card,
body.rsc-theme-light .rbx-script-page .rsc-sidebar-action-card,
body.rsc-theme-light .rbx-script-page .rsc-game-hub-card,
body.rsc-theme-light .rbx-script-page .rsc-yandex-ad,
body.rsc-theme-light .rbx-script-page .comments-area,
body.rsc-theme-light .rsc-script-redesign .rsc-script-hero,
body.rsc-theme-light .rsc-script-redesign .rsc-script-anchor-nav,
body.rsc-theme-light .rsc-script-redesign .rsc-script-feature-card,
body.rsc-theme-light .rsc-script-redesign .rsc-script-faq-card,
body.rsc-theme-light .rsc-script-redesign .rsc-script-code-card,
body.rsc-theme-light .rsc-script-redesign .rsc-script-description,
body.rsc-theme-light .rsc-script-redesign .rsc-script-functions,
body.rsc-theme-light .rsc-script-redesign .rsc-script-side-card,
body.rsc-theme-light .rsc-script-redesign .rsc-sidebar-action-card,
body.rsc-theme-light .rsc-script-redesign .rsc-game-hub-card,
body.rsc-theme-light .rsc-script-redesign .rsc-yandex-ad,
body.rsc-theme-light .rsc-script-redesign .comments-area{
  background:#ffffff !important;
  background-image:none !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:0 14px 34px rgba(15,23,42,.08) !important;
}
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-side-stats span,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-meta-pills span,
html[data-rsc-theme="light"] .rbx-script-page .rsc-feature-grid span,
html[data-rsc-theme="light"] .rbx-script-page .rsc-function-item,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-functions li,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-functions-toggle,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-faq-card details,
html[data-rsc-theme="light"] .rbx-script-page .rsc-code-warning,
html[data-rsc-theme="light"] .rbx-script-page .rbx-code-warning,
html[data-rsc-theme="light"] .rbx-script-page .rsc-code-header,
html[data-rsc-theme="light"] .rbx-script-page .rbx-code-header,
html[data-rsc-theme="light"] .rbx-script-page .comment,
html[data-rsc-theme="light"] .rbx-script-page .comment-body,
html[data-rsc-theme="light"] .rbx-script-page .rsc-yandex-ad > div,
body.rsc-theme-light .rbx-script-page .rsc-script-side-stats span,
body.rsc-theme-light .rbx-script-page .rsc-script-meta-pills span,
body.rsc-theme-light .rbx-script-page .rsc-feature-grid span,
body.rsc-theme-light .rbx-script-page .rsc-function-item,
body.rsc-theme-light .rbx-script-page .rsc-script-functions li,
body.rsc-theme-light .rbx-script-page .rsc-script-functions-toggle,
body.rsc-theme-light .rbx-script-page .rsc-script-faq-card details,
body.rsc-theme-light .rbx-script-page .rsc-code-warning,
body.rsc-theme-light .rbx-script-page .rbx-code-warning,
body.rsc-theme-light .rbx-script-page .rsc-code-header,
body.rsc-theme-light .rbx-script-page .rbx-code-header,
body.rsc-theme-light .rbx-script-page .comment,
body.rsc-theme-light .rbx-script-page .comment-body,
body.rsc-theme-light .rbx-script-page .rsc-yandex-ad > div{
  background:#f8fafc !important;
  background-image:none !important;
  border-color:#e2e8f0 !important;
  color:#0f172a !important;
  box-shadow:none !important;
}
html[data-rsc-theme="light"] .rbx-script-page .download-code,
body.rsc-theme-light .rbx-script-page .download-code{
  background:#ffffff !important;
  background-image:none !important;
  border-color:#dbe3ef !important;
  color:#0f172a !important;
}
html[data-rsc-theme="light"] .rbx-script-page pre,
html[data-rsc-theme="light"] .rbx-script-page code,
html[data-rsc-theme="light"] .rbx-script-page .rsc-core-code,
html[data-rsc-theme="light"] .rbx-script-page .rbx-code-pre,
html[data-rsc-theme="light"] .rbx-script-page .code-box,
body.rsc-theme-light .rbx-script-page pre,
body.rsc-theme-light .rbx-script-page code,
body.rsc-theme-light .rbx-script-page .rsc-core-code,
body.rsc-theme-light .rbx-script-page .rbx-code-pre,
body.rsc-theme-light .rbx-script-page .code-box{
  background:#0f172a !important;
  border-color:#1e293b !important;
  color:#e5e7eb !important;
}


/* v1.15.6: remove remaining warm/orange tint from script page light theme */
html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc,
html[data-rsc-theme="light"] .rbx-script-page #rsc-script-floating-toc,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-floating-toc,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc,
html.rsc-theme-light .rbx-script-page #rsc-script-floating-toc,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc,
body.rsc-theme-light .rbx-script-page #rsc-script-floating-toc {
  background: rgba(255, 255, 255, .96) !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08) !important;
  color: #0f172a !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc-head,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc-head,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc-head {
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc a,
html[data-rsc-theme="light"] .rbx-script-page #rsc-script-floating-toc a,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc a,
html.rsc-theme-light .rbx-script-page #rsc-script-floating-toc a,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc a,
body.rsc-theme-light .rbx-script-page #rsc-script-floating-toc a {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: none !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc a:hover,
html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc a.is-active,
html[data-rsc-theme="light"] .rbx-script-page #rsc-script-floating-toc a:hover,
html[data-rsc-theme="light"] .rbx-script-page #rsc-script-floating-toc a.is-active,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc a:hover,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc a.is-active,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc a:hover,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc a.is-active {
  background: rgba(124, 77, 255, .10) !important;
  background-image: none !important;
  border-color: rgba(124, 77, 255, .38) !important;
  color: #4f32d8 !important;
  box-shadow: none !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rsc-floating-toc-toggle,
html.rsc-theme-light .rbx-script-page .rsc-floating-toc-toggle,
body.rsc-theme-light .rbx-script-page .rsc-floating-toc-toggle {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08) !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row,
html[data-rsc-theme="light"] .rbx-script-page .rsc-script-side-card .rbx-reaction-row,
html.rsc-theme-light .rbx-script-page .rsc-script-side-card .rbx-reaction-row,
body.rsc-theme-light .rbx-script-page .rsc-script-side-card .rbx-reaction-row {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row span,
html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row .rbx-reaction-btn,
html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row button.rbx-reaction-btn,
html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row a.rbx-reaction-btn,
html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row .rsc-like-form > .rbx-reaction-btn,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row span,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row .rbx-reaction-btn,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row button.rbx-reaction-btn,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row a.rbx-reaction-btn,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row .rsc-like-form > .rbx-reaction-btn,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row span,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row .rbx-reaction-btn,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row button.rbx-reaction-btn,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row a.rbx-reaction-btn,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row .rsc-like-form > .rbx-reaction-btn {
  background: #f8fafc !important;
  background-image: none !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: none !important;
}

html[data-rsc-theme="light"] .rbx-script-page .rbx-reaction-row .rsc-like-button.is-liked,
html.rsc-theme-light .rbx-script-page .rbx-reaction-row .rsc-like-button.is-liked,
body.rsc-theme-light .rbx-script-page .rbx-reaction-row .rsc-like-button.is-liked {
  background: rgba(124, 77, 255, .10) !important;
  border-color: rgba(124, 77, 255, .38) !important;
  color: #4f32d8 !important;
}

/* 404 page */
.rsc-404-page{
  padding:42px 0 12px;
}
.rsc-404-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  max-width:860px;
  padding-top:34px;
  padding-bottom:34px;
}
.rsc-404-code{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:86px;
  min-height:42px;
  margin-bottom:18px;
  padding:8px 18px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 12%,transparent);
  color:var(--accent);
  font-size:15px;
  font-weight:900;
  letter-spacing:.14em;
  box-shadow:0 14px 36px color-mix(in srgb,var(--accent) 16%,transparent);
}
.rsc-404-eyebrow{
  margin:0 0 8px;
  color:var(--accent-2);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.rsc-404-hero h1{
  max-width:780px;
  margin:0;
  color:var(--text);
  font-size:clamp(36px,5vw,64px);
  line-height:1;
  letter-spacing:-.06em;
}
.rsc-404-lead{
  max-width:620px;
  margin:16px 0 24px;
  color:var(--muted);
  font-size:16px;
}
.rsc-404-search{
  display:flex;
  align-items:center;
  gap:8px;
  width:min(720px,100%);
  margin:0 auto;
  padding:6px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel);
  box-shadow:var(--shadow);
}
.rsc-404-search input{
  flex:1;
  min-width:0;
  padding:13px 14px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
}
.rsc-404-search input::placeholder{
  color:var(--muted);
}
.rsc-404-search button{
  border:0;
  border-radius:14px;
  padding:13px 22px;
  background:var(--accent);
  color:#fff;
  font-weight:900;
  cursor:pointer;
}
.rsc-404-links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:9px;
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.rsc-404-links a:hover{
  color:var(--accent);
}
.rsc-404-publish{
  background:linear-gradient(90deg,var(--accent),#22d3ee,var(--accent));
  background-size:220% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent !important;
  animation:rscPublishTextFlow 4s ease-in-out infinite;
}
.rsc-404-latest{
  padding-top:22px;
}
.rsc-404-grid{
  margin-top:18px;
}
html.rsc-theme-light .rsc-404-code{
  background:rgba(124,77,255,.09);
  box-shadow:0 14px 36px rgba(15,23,42,.08);
}
html.rsc-theme-light .rsc-404-search{
  background:#fff;
  border-color:#dbe3ef;
}
@media (max-width: 760px){
  .rsc-404-page{padding-top:20px;}
  .rsc-404-hero{padding-top:22px;padding-bottom:22px;}
  .rsc-404-code{margin-bottom:14px;min-height:36px;font-size:13px;}
  .rsc-404-hero h1{font-size:clamp(32px,10vw,44px);}
  .rsc-404-lead{font-size:14px;margin:12px 0 18px;}
  .rsc-404-search{display:grid;grid-template-columns:1fr;padding:8px;border-radius:18px;}
  .rsc-404-search input{padding:11px 12px;text-align:left;}
  .rsc-404-search button{width:100%;padding:12px 16px;}
  .rsc-404-links{font-size:12px;gap:7px;}
}

/* v1.15.8 Search results: group scripts above legacy posts */
.rsc-search-type-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rsc-search-type-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rsc-search-type-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}


/* v1.16.0 mobile script TOC social buttons spacing fix */
@media(max-width:1180px){
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    position:fixed!important;
    left:auto!important;
    right:14px!important;
    bottom:auto!important;
    width:min(280px,calc(100vw - 28px))!important;
    z-index:82!important;
  }

  .rsc-toc-open .rsc-discord-toc-button{
    top:var(--rsc-toc-discord-top, calc(var(--rsc-header-height,64px) + 364px))!important;
  }

  .rsc-toc-open .rsc-telegram-toc-button{
    top:var(--rsc-toc-telegram-top, calc(var(--rsc-header-height,64px) + 418px))!important;
  }
}

@media(max-width:900px){
  .rsc-toc-open .rsc-discord-toc-button,
  .rsc-toc-open .rsc-telegram-toc-button{
    right:10px!important;
    width:min(280px,calc(100vw - 20px))!important;
  }
}

/* v1.16.1 Place pages: separate linked scripts and legacy posts */
.rsc-place-type-heading {
  margin-top: 10px;
}
.rsc-place-type-heading + .script-card,
.rsc-place-type-heading + .post-card,
.rsc-place-type-heading + article {
  margin-top: 0;
}


/* v1.16.2 mobile TOC/social overlap fix */
@media (max-width:1180px){
  body.rsc-toc-open .rsc-floating-toc-toggle,
  html.rsc-toc-open .rsc-floating-toc-toggle{
    display:none!important;
    opacity:0!important;
    pointer-events:none!important;
  }

  body.rsc-toc-open .rsc-discord-toc-button,
  html.rsc-toc-open .rsc-discord-toc-button,
  body.rsc-toc-open .rsc-telegram-toc-button,
  html.rsc-toc-open .rsc-telegram-toc-button{
    position:fixed!important;
    left:auto!important;
    right:14px!important;
    width:min(280px,calc(100vw - 28px))!important;
    z-index:82!important;
  }

  body.rsc-toc-open .rsc-discord-toc-button,
  html.rsc-toc-open .rsc-discord-toc-button{
    top:var(--rsc-toc-discord-top, calc(var(--rsc-header-height,76px) + 330px))!important;
    bottom:auto!important;
  }

  body.rsc-toc-open .rsc-telegram-toc-button,
  html.rsc-toc-open .rsc-telegram-toc-button{
    top:var(--rsc-toc-telegram-top, calc(var(--rsc-header-height,76px) + 384px))!important;
    bottom:auto!important;
  }
}

@media (max-width:900px){
  body.rsc-toc-open .rsc-discord-toc-button,
  html.rsc-toc-open .rsc-discord-toc-button,
  body.rsc-toc-open .rsc-telegram-toc-button,
  html.rsc-toc-open .rsc-telegram-toc-button{
    right:10px!important;
    width:min(280px,calc(100vw - 20px))!important;
  }
}

@media (max-width:420px){
  body.rsc-toc-open .rsc-discord-toc-button,
  html.rsc-toc-open .rsc-discord-toc-button,
  body.rsc-toc-open .rsc-telegram-toc-button,
  html.rsc-toc-open .rsc-telegram-toc-button{
    width:calc(100vw - 20px)!important;
  }
}


/* v1.16.3 refreshed premium script card grid */
.script-card--premium{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  overflow:hidden!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,color-mix(in srgb,var(--panel) 96%,transparent),color-mix(in srgb,var(--bg-soft) 92%,transparent))!important;
  border:1px solid color-mix(in srgb,var(--line) 88%,var(--accent) 12%)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.22)!important;
  transform:translateZ(0);
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease,background .35s ease,color .35s ease!important;
}

.script-card--premium:hover{
  transform:translateY(-4px)!important;
  border-color:color-mix(in srgb,var(--accent) 50%,var(--line))!important;
  box-shadow:0 24px 62px rgba(0,0,0,.30),0 0 0 1px color-mix(in srgb,var(--accent) 10%,transparent)!important;
}

.script-card--premium .script-thumb{
  position:relative!important;
  aspect-ratio:16/9!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--thumb)!important;
}

.script-card--premium .script-thumb:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:58%;
  pointer-events:none;
  background:linear-gradient(to bottom,transparent,color-mix(in srgb,var(--bg-soft) 92%,transparent));
  opacity:.95;
  z-index:1;
}

.script-card--premium .script-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transition:transform .38s ease,filter .38s ease!important;
}

.script-card--premium:hover .script-thumb img{
  transform:scale(1.035)!important;
  filter:saturate(1.08) contrast(1.03)!important;
}

.script-card--premium .status-badge{
  position:absolute!important;
  top:14px!important;
  left:14px!important;
  z-index:2!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:28px!important;
  padding:7px 12px!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
  white-space:nowrap!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 10px 22px rgba(0,0,0,.24)!important;
}

.script-card--premium .status-badge .rsc-key-badge__dot{
  display:inline-block!important;
  width:7px!important;
  height:7px!important;
  border-radius:999px!important;
  flex:0 0 auto!important;
  background:currentColor!important;
  opacity:.9!important;
}

.script-card--premium .status-badge.no-key{
  color:#052e1a!important;
  background:linear-gradient(135deg,#37f08b,#17c964)!important;
  border-color:rgba(55,240,139,.55)!important;
}

.script-card--premium .status-badge.key-system,
.script-card--premium .status-badge.key{
  color:#3a2100!important;
  background:linear-gradient(135deg,#ffd36a,#ff9f2f)!important;
  border-color:rgba(255,190,80,.62)!important;
}

.script-card--premium .script-card-body{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  gap:13px!important;
  min-width:0!important;
  padding:22px 22px 18px!important;
}

.script-card--premium .script-card-title{
  margin:0!important;
  min-height:58px!important;
  max-height:58px!important;
  font-size:22px!important;
  line-height:1.18!important;
  letter-spacing:-.035em!important;
  font-weight:900!important;
  overflow:hidden!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
  -webkit-box-orient:vertical!important;
}

.script-card--premium .script-card-title a{
  color:var(--text)!important;
  text-decoration:none!important;
}

.script-card--premium .script-card-title a:hover{
  color:var(--accent)!important;
}

.script-card--premium .script-card-meta-line{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  color:var(--muted)!important;
  font-size:13px!important;
  line-height:1.2!important;
}

.script-card--premium .card-author{
  display:inline-flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:0!important;
  flex:0 1 auto!important;
  color:var(--text)!important;
  font-weight:800!important;
  font-size:13px!important;
  text-decoration:none!important;
}

.script-card--premium .card-author img{
  width:23px!important;
  height:23px!important;
  flex:0 0 23px!important;
  border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--line) 80%,var(--accent) 20%)!important;
  box-shadow:none!important;
}

.script-card--premium .card-author span{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.script-card--premium .script-card-meta-separator{
  width:1px!important;
  height:16px!important;
  flex:0 0 1px!important;
  background:color-mix(in srgb,var(--line) 86%,transparent)!important;
}

.script-card--premium .script-card-kind{
  min-width:0!important;
  flex:1 1 auto!important;
  display:block!important;
  padding:0!important;
  border:0!important;
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:650!important;
}

.script-card--premium .script-card-kind a,
.script-card--premium .script-card-kind span{
  display:block!important;
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:inherit!important;
}

.script-card--premium .script-card-kind a:hover{
  color:var(--accent)!important;
}

.script-card--premium .script-card-desc{
  margin:0!important;
  min-height:66px!important;
  max-height:66px!important;
  color:var(--muted)!important;
  font-size:14px!important;
  line-height:1.55!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.script-card--premium .script-card-stats{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  margin-top:auto!important;
  padding:15px 22px!important;
  border-top:1px solid var(--line)!important;
  background:color-mix(in srgb,var(--panel-2) 72%,transparent)!important;
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:750!important;
}

.script-card--premium .stat-item{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-width:0!important;
  line-height:1!important;
}

.script-card--premium .stat-views:before{
  content:"◉"!important;
  font-size:11px!important;
  color:currentColor!important;
  opacity:.85!important;
}

.script-card--premium .stat-comments:before{
  content:"▱"!important;
  font-size:14px!important;
  color:currentColor!important;
  opacity:.85!important;
}

.script-card--premium .stat-updated{
  margin-left:auto!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}

.script-card--premium .stat-updated:before{
  content:"◷"!important;
  font-size:13px!important;
  color:currentColor!important;
  opacity:.85!important;
}

/* Light theme: clean white premium cards */
html[data-rsc-theme="light"] .script-card--premium,
body.rsc-theme-light .script-card--premium{
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border-color:#dbe3ef!important;
  box-shadow:0 16px 40px rgba(15,23,42,.08)!important;
}

html[data-rsc-theme="light"] .script-card--premium:hover,
body.rsc-theme-light .script-card--premium:hover{
  border-color:color-mix(in srgb,var(--accent) 44%,#dbe3ef)!important;
  box-shadow:0 22px 54px rgba(15,23,42,.13),0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent)!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-thumb:after,
body.rsc-theme-light .script-card--premium .script-thumb:after{
  background:linear-gradient(to bottom,transparent,rgba(255,255,255,.88))!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-card-stats,
body.rsc-theme-light .script-card--premium .script-card-stats{
  background:#f8fafc!important;
  border-color:#e2e8f0!important;
  color:#64748b!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-card-title a,
body.rsc-theme-light .script-card--premium .script-card-title a{
  color:#0f172a!important;
}

html[data-rsc-theme="light"] .script-card--premium .card-author,
body.rsc-theme-light .script-card--premium .card-author{
  color:#0f172a!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-card-kind,
html[data-rsc-theme="light"] .script-card--premium .script-card-desc,
body.rsc-theme-light .script-card--premium .script-card-kind,
body.rsc-theme-light .script-card--premium .script-card-desc{
  color:#64748b!important;
}

@media(max-width:820px){
  .script-card--premium .script-card-body{padding:18px 18px 15px!important;gap:12px!important}
  .script-card--premium .script-card-title{font-size:19px!important;min-height:46px!important;max-height:46px!important}
  .script-card--premium .script-card-desc{font-size:13px!important;min-height:58px!important;max-height:58px!important;-webkit-line-clamp:3!important;line-clamp:3!important}
  .script-card--premium .script-card-stats{padding:13px 18px!important;gap:12px!important;font-size:12px!important}
}

@media(max-width:560px){
  .script-card--premium{border-radius:17px!important}
  .script-card--premium .status-badge{top:10px!important;left:10px!important;min-height:25px!important;padding:6px 10px!important;font-size:10px!important}
  .script-card--premium .script-card-body{padding:15px!important}
  .script-card--premium .script-card-meta-line{gap:8px!important;font-size:12px!important}
  .script-card--premium .script-card-stats{padding:12px 15px!important}
  .script-card--premium .stat-updated{max-width:42%!important}
}

/* v1.16.4 recommended script card layout: image badges + smaller title */
.script-card--premium.script-card--media-meta{
  border-radius:18px!important;
}

.script-card--premium.script-card--media-meta .script-thumb{
  overflow:hidden!important;
}

.script-card--premium.script-card--media-meta .script-thumb:after{
  height:70%!important;
  background:linear-gradient(to bottom,transparent 0%,rgba(5,10,22,.20) 35%,color-mix(in srgb,var(--bg-soft) 94%,transparent) 100%)!important;
  z-index:1!important;
}

.script-card--premium.script-card--media-meta .status-badge{
  top:12px!important;
  left:12px!important;
  min-height:25px!important;
  padding:6px 10px!important;
  gap:6px!important;
  font-size:10px!important;
  letter-spacing:.045em!important;
}

.script-card--premium.script-card--media-meta .status-badge .rsc-key-badge__dot{
  width:6px!important;
  height:6px!important;
}

.script-card--premium .script-card-image-meta{
  position:absolute!important;
  left:12px!important;
  right:12px!important;
  bottom:12px!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:8px!important;
  pointer-events:none!important;
}

.script-card--premium .script-card-place-badge,
.script-card--premium .script-card-views-badge{
  display:inline-flex!important;
  align-items:center!important;
  min-width:0!important;
  max-width:70%!important;
  min-height:24px!important;
  padding:5px 9px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.14)!important;
  background:rgba(8,13,27,.74)!important;
  color:#eaf1ff!important;
  backdrop-filter:blur(12px)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.24)!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  letter-spacing:.025em!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.script-card--premium .script-card-place-badge{
  justify-content:flex-start!important;
}

.script-card--premium .script-card-views-badge{
  flex:0 0 auto!important;
  max-width:none!important;
}

.script-card--premium .script-card-views-badge:before{
  content:"◉"!important;
  margin-right:5px!important;
  font-size:9px!important;
  opacity:.78!important;
}

.script-card--premium.script-card--media-meta .script-card-body{
  padding:18px 20px 16px!important;
  gap:12px!important;
}

.script-card--premium.script-card--media-meta .script-card-title{
  min-height:46px!important;
  max-height:46px!important;
  font-size:18px!important;
  line-height:1.22!important;
  letter-spacing:-.025em!important;
  font-weight:850!important;
}

.script-card--premium.script-card--media-meta .script-card-meta-line{
  min-height:24px!important;
}

.script-card--premium.script-card--media-meta .script-card-author-only{
  gap:0!important;
}

.script-card--premium.script-card--media-meta .script-card-author-only .card-author{
  max-width:100%!important;
  font-size:13px!important;
}

.script-card--premium.script-card--media-meta .script-card-author-only .card-author img{
  width:22px!important;
  height:22px!important;
  flex-basis:22px!important;
}

.script-card--premium.script-card--media-meta .script-card-meta-separator,
.script-card--premium.script-card--media-meta .script-card-kind{
  display:none!important;
}

.script-card--premium.script-card--media-meta .script-card-desc{
  min-height:44px!important;
  max-height:44px!important;
  font-size:13px!important;
  line-height:1.48!important;
  -webkit-line-clamp:2!important;
  line-clamp:2!important;
}

.script-card--premium.script-card--media-meta .script-card-stats{
  min-height:45px!important;
  gap:10px!important;
  padding:12px 20px!important;
  font-size:12px!important;
}

.script-card--premium.script-card--media-meta .script-card-stats .stat-updated{
  margin-left:0!important;
  max-width:100%!important;
}

.script-card--premium.script-card--media-meta .script-card-stats .stat-comments + .stat-updated{
  margin-left:auto!important;
}

/* Light theme: readable badges over media, clean white cards */
html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb:after,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb:after{
  background:linear-gradient(to bottom,transparent 0%,rgba(15,23,42,.16) 35%,rgba(255,255,255,.86) 100%)!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-card-place-badge,
html[data-rsc-theme="light"] .script-card--premium .script-card-views-badge,
body.rsc-theme-light .script-card--premium .script-card-place-badge,
body.rsc-theme-light .script-card--premium .script-card-views-badge{
  background:rgba(255,255,255,.86)!important;
  color:#0f172a!important;
  border-color:rgba(226,232,240,.9)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
}

@media(max-width:820px){
  .script-card--premium.script-card--media-meta .script-card-body{padding:16px 16px 14px!important;gap:10px!important}
  .script-card--premium.script-card--media-meta .script-card-title{font-size:16px!important;min-height:40px!important;max-height:40px!important;line-height:1.22!important}
  .script-card--premium.script-card--media-meta .script-card-desc{font-size:12.5px!important;min-height:38px!important;max-height:38px!important;line-height:1.48!important}
  .script-card--premium.script-card--media-meta .script-card-stats{padding:11px 16px!important;font-size:11px!important;min-height:42px!important}
}

@media(max-width:560px){
  .script-card--premium.script-card--media-meta .status-badge{top:9px!important;left:9px!important;min-height:23px!important;padding:5px 8px!important;font-size:9px!important}
  .script-card--premium .script-card-image-meta{left:9px!important;right:9px!important;bottom:9px!important}
  .script-card--premium .script-card-place-badge,
  .script-card--premium .script-card-views-badge{min-height:22px!important;padding:5px 8px!important;font-size:9px!important}
  .script-card--premium.script-card--media-meta .script-card-body{padding:14px!important;gap:9px!important}
  .script-card--premium.script-card--media-meta .script-card-title{font-size:15px!important;min-height:37px!important;max-height:37px!important}
  .script-card--premium.script-card--media-meta .script-card-desc{font-size:12px!important;min-height:36px!important;max-height:36px!important}
  .script-card--premium.script-card--media-meta .script-card-stats{padding:10px 14px!important}
}


/* v1.16.5: make NO KEY / KEY SYSTEM badges match the premium card UI */
.script-card--premium.script-card--media-meta .script-thumb .status-badge,
.script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  min-height:24px!important;
  padding:5px 9px!important;
  gap:6px!important;
  border-radius:999px!important;
  background:rgba(8,13,27,.72)!important;
  border:1px solid rgba(148,163,184,.24)!important;
  color:#eaf1ff!important;
  box-shadow:0 8px 18px rgba(0,0,0,.24)!important;
  backdrop-filter:blur(12px)!important;
  -webkit-backdrop-filter:blur(12px)!important;
  letter-spacing:.035em!important;
  text-shadow:none!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge:not(.key){
  border-color:rgba(34,197,94,.42)!important;
  color:#dfffea!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  border-color:rgba(245,158,11,.44)!important;
  color:#ffedc2!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge .rsc-key-badge__dot{
  width:6px!important;
  height:6px!important;
  box-shadow:0 0 0 3px rgba(255,255,255,.06)!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge:not(.key) .rsc-key-badge__dot{
  background:#22c55e!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.key .rsc-key-badge__dot{
  background:#f59e0b!important;
}

html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge,
html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge.key,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  background:rgba(255,255,255,.86)!important;
  color:#0f172a!important;
  border-color:rgba(226,232,240,.94)!important;
  box-shadow:0 8px 18px rgba(15,23,42,.12)!important;
}

html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge:not(.key),
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge:not(.key){
  color:#166534!important;
  border-color:rgba(34,197,94,.34)!important;
  background:rgba(240,253,244,.88)!important;
}

html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge.key,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  color:#92400e!important;
  border-color:rgba(245,158,11,.34)!important;
  background:rgba(255,251,235,.88)!important;
}

@media(max-width:560px){
  .script-card--premium.script-card--media-meta .script-thumb .status-badge,
  .script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
    min-height:22px!important;
    padding:5px 8px!important;
    font-size:9px!important;
  }
}


/* v1.16.6: fix script card key badges: one dot only + proper amber KEY SYSTEM */
.script-card--premium.script-card--media-meta .script-thumb .status-badge::before{
  content:none!important;
  display:none!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge .rsc-key-badge__dot{
  display:inline-block!important;
  flex:0 0 auto!important;
  width:6px!important;
  height:6px!important;
  border-radius:999px!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.no-key{
  border-color:rgba(34,197,94,.44)!important;
  color:#dfffea!important;
  background:rgba(8,13,27,.72)!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.no-key .rsc-key-badge__dot{
  background:#22c55e!important;
  box-shadow:0 0 0 3px rgba(34,197,94,.12)!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.key-system,
.script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  border-color:rgba(245,158,11,.50)!important;
  color:#ffedc2!important;
  background:rgba(8,13,27,.72)!important;
}

.script-card--premium.script-card--media-meta .script-thumb .status-badge.key-system .rsc-key-badge__dot,
.script-card--premium.script-card--media-meta .script-thumb .status-badge.key .rsc-key-badge__dot{
  background:#f59e0b!important;
  box-shadow:0 0 0 3px rgba(245,158,11,.14)!important;
}

html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge.no-key,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge.no-key{
  color:#166534!important;
  border-color:rgba(34,197,94,.36)!important;
  background:rgba(240,253,244,.90)!important;
}

html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge.key-system,
html[data-rsc-theme="light"] .script-card--premium.script-card--media-meta .script-thumb .status-badge.key,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge.key-system,
body.rsc-theme-light .script-card--premium.script-card--media-meta .script-thumb .status-badge.key{
  color:#92400e!important;
  border-color:rgba(245,158,11,.38)!important;
  background:rgba(255,251,235,.92)!important;
}

/* v1.16.8: make attached place on script cards a real clickable place link */
.script-card--premium.script-card--media-meta .script-thumb{
  position:relative!important;
}

.script-card--premium.script-card--media-meta .script-thumb-link{
  display:block!important;
  width:100%!important;
  height:100%!important;
  color:inherit!important;
  text-decoration:none!important;
}

.script-card--premium.script-card--media-meta .script-thumb-link img,
.script-card--premium.script-card--media-meta .script-thumb-link .placeholder-thumb{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}

.script-card--premium .script-card-image-meta{
  pointer-events:none!important;
}

.script-card--premium .script-card-place-badge--link{
  pointer-events:auto!important;
  text-decoration:none!important;
  cursor:pointer!important;
  transition:background-color .2s ease,border-color .2s ease,color .2s ease,transform .2s ease,box-shadow .2s ease!important;
}

.script-card--premium .script-card-place-badge--link:hover,
.script-card--premium .script-card-place-badge--link:focus-visible{
  transform:translateY(-1px)!important;
  color:#fff!important;
  border-color:color-mix(in srgb,var(--accent) 62%,rgba(255,255,255,.18))!important;
  background:color-mix(in srgb,var(--accent) 34%,rgba(8,13,27,.78))!important;
  box-shadow:0 10px 22px rgba(0,0,0,.28),0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)!important;
}

html[data-rsc-theme="light"] .script-card--premium .script-card-place-badge--link:hover,
html[data-rsc-theme="light"] .script-card--premium .script-card-place-badge--link:focus-visible,
body.rsc-theme-light .script-card--premium .script-card-place-badge--link:hover,
body.rsc-theme-light .script-card--premium .script-card-place-badge--link:focus-visible{
  color:#fff!important;
  border-color:var(--accent)!important;
  background:var(--accent)!important;
  box-shadow:0 10px 22px rgba(124,77,255,.20),0 0 0 3px rgba(124,77,255,.14)!important;
}
