/* ========================================================================== 
   RyphexGuard v242 — Preline-inspired application rebuild
   High-specificity final layer to prevent legacy theme bleed-through.
   ========================================================================== */
:root{
  --rg242-bg:#f8fafc;
  --rg242-sidebar:#ffffff;
  --rg242-toolbar:rgba(255,255,255,.96);
  --rg242-card:#ffffff;
  --rg242-card-2:#f8fafc;
  --rg242-hover:#f3f4f6;
  --rg242-text:#111827;
  --rg242-text-2:#374151;
  --rg242-muted:#6b7280;
  --rg242-faint:#9ca3af;
  --rg242-border:#e5e7eb;
  --rg242-border-strong:#d1d5db;
  --rg242-primary:#2563eb;
  --rg242-primary-hover:#1d4ed8;
  --rg242-primary-soft:#eff6ff;
  --rg242-purple:#9333ea;
  --rg242-teal:#0d9488;
  --rg242-danger:#dc2626;
  --rg242-success:#16a34a;
  --rg242-radius:12px;
  --rg242-radius-lg:16px;
  --rg242-shadow:0 1px 2px rgba(0,0,0,.025);
}
html:not(.light){
  --rg242-bg:#181818;
  --rg242-sidebar:#252525;
  --rg242-toolbar:rgba(24,24,24,.96);
  --rg242-card:#262626;
  --rg242-card-2:#2d2d2d;
  --rg242-hover:#333333;
  --rg242-text:#f7f7f7;
  --rg242-text-2:#e5e5e5;
  --rg242-muted:#a3a3a3;
  --rg242-faint:#737373;
  --rg242-border:#414141;
  --rg242-border-strong:#525252;
  --rg242-primary:#3b82f6;
  --rg242-primary-hover:#2563eb;
  --rg242-primary-soft:rgba(59,130,246,.13);
  --rg242-purple:#c084fc;
  --rg242-teal:#2dd4bf;
  --rg242-danger:#f87171;
  --rg242-success:#4ade80;
  --rg242-shadow:none;
}

html body.rg242-theme{margin:0!important;background:var(--rg242-bg)!important;color:var(--rg242-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html body.rg242-theme:before,html body.rg242-theme:after{display:none!important;background:none!important}
html body.rg242-theme *{text-shadow:none!important}
html body.rg242-theme a{color:inherit}
html body.rg242-theme ::selection{background:rgba(37,99,235,.22);color:var(--rg242-text)}

/* ----- App shell / global toolbar ------------------------------------------------ */
html body.rg242-theme .rg241-preline-app.app-shell{display:grid!important;grid-template-columns:246px minmax(0,1fr)!important;min-height:100vh!important;background:var(--rg242-bg)!important}
html body.rg242-theme .rg241-preline-app .app-main{min-width:0!important;width:100%!important;padding:0!important;margin:0!important;background:var(--rg242-bg)!important;color:var(--rg242-text)!important;overflow:visible!important}
html body.rg242-theme .rg241-preline-app .app-main:before,html body.rg242-theme .rg241-preline-app .app-main:after{display:none!important}
html body.rg242-theme .rg242-page-canvas{width:100%;padding:28px 24px 42px;max-width:1760px;margin:0 auto}
html body.rg242-theme .rg242-app-toolbar{position:sticky;top:0;z-index:45;height:60px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px;background:var(--rg242-toolbar);border-bottom:1px solid var(--rg242-border);backdrop-filter:blur(12px)}
html body.rg242-theme .rg242-toolbar-search{width:min(510px,48vw);height:38px;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid var(--rg242-border);border-radius:9px;background:var(--rg242-card);color:var(--rg242-muted)}
html body.rg242-theme .rg242-toolbar-search .rg-icon{width:16px!important;height:16px!important;min-width:16px!important;color:var(--rg242-muted)!important}
html body.rg242-theme .rg242-toolbar-search input{flex:1;min-width:0;height:100%;padding:0!important;margin:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--rg242-text)!important;font-size:13px!important}
html body.rg242-theme .rg242-toolbar-search kbd{display:grid;place-items:center;min-width:24px;height:22px;border:1px solid var(--rg242-border);border-radius:5px;background:var(--rg242-card-2);color:var(--rg242-muted);font:600 11px/1 Inter,sans-serif}
html body.rg242-theme .rg242-toolbar-actions{display:flex;align-items:center;gap:7px;margin-left:auto}
html body.rg242-theme .rg242-toolbar-help{display:grid;place-items:center;width:36px;height:36px;border-radius:9px;border:1px solid transparent;color:var(--rg242-muted)}
html body.rg242-theme .rg242-toolbar-help:hover{background:var(--rg242-hover);color:var(--rg242-text)}

/* global account/language/theme controls — always available on every app tab */
html body.rg242-theme .rg241-preline-app .rg204-account-controls{position:relative!important;display:flex!important;align-items:center!important;gap:7px!important;inset:auto!important;margin:0!important;z-index:80!important}
html body.rg242-theme .rg241-preline-app .rg204-control-button{width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;display:grid!important;place-items:center!important;border:1px solid var(--rg242-border)!important;border-radius:9px!important;background:var(--rg242-card)!important;background-image:none!important;box-shadow:none!important;filter:none!important;color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .rg204-control-button:hover{background:var(--rg242-hover)!important;border-color:var(--rg242-border-strong)!important;color:var(--rg242-text)!important;transform:none!important}
html body.rg242-theme .rg241-preline-app .rg204-control-button img{width:16px!important;height:16px!important;opacity:.88!important;filter:none!important}
html:not(.light) body.rg242-theme .rg241-preline-app .rg204-control-button img{filter:brightness(0) invert(1)!important;opacity:.72!important}
html body.rg242-theme .rg241-preline-app :is(.rg204-language-panel,.rg204-profile-menu){top:44px!important;right:0!important;background:var(--rg242-card)!important;border:1px solid var(--rg242-border)!important;color:var(--rg242-text)!important;border-radius:12px!important;box-shadow:0 16px 45px rgba(0,0,0,.18)!important}
html body.rg242-theme .rg241-preline-app :is(.rg204-profile-menu>a,.rg204-profile-menu form button,.rg204-language-list>button){color:var(--rg242-text-2)!important;border-color:var(--rg242-border)!important;background:transparent!important}
html body.rg242-theme .rg241-preline-app :is(.rg204-profile-menu>a,.rg204-profile-menu form button,.rg204-language-list>button):hover{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}

/* ----- Sidebar ------------------------------------------------------------------- */
html body.rg242-theme .rg241-preline-app .rg242-sidebar{position:sticky!important;top:0!important;height:100vh!important;z-index:50!important;display:flex!important;flex-direction:column!important;padding:0 14px 14px!important;background:var(--rg242-sidebar)!important;background-image:none!important;border-right:1px solid var(--rg242-border)!important;box-shadow:none!important;backdrop-filter:none!important;color:var(--rg242-text)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:none}
html body.rg242-theme .rg241-preline-app .rg242-sidebar::-webkit-scrollbar{display:none}
html body.rg242-theme .rg242-sidebar-brand{height:60px;display:flex;align-items:center;padding:0 10px;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-sidebar-brand a{display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;letter-spacing:-.02em}
html body.rg242-theme .rg242-sidebar-brand img{width:28px!important;height:28px!important;border-radius:8px!important;box-shadow:none!important;filter:none!important}
html body.rg242-theme .rg242-sidebar-brand b{font-weight:700;color:var(--rg242-primary)}
html body.rg242-theme .rg242-workspace-switcher{padding:15px 4px 10px}
html body.rg242-theme .rg242-workspace-label{display:block;margin:0 8px 7px;color:var(--rg242-muted);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
html body.rg242-theme .rg242-server-select{width:100%!important;margin:0!important}
html body.rg242-theme .rg242-server-select details{position:relative;width:100%}
html body.rg242-theme .rg242-server-select summary,html body.rg242-theme .rg242-select-workspace{display:flex!important;align-items:center!important;gap:9px!important;width:100%!important;height:42px!important;padding:0 10px!important;border:1px solid var(--rg242-border)!important;border-radius:9px!important;background:var(--rg242-card)!important;color:var(--rg242-text)!important;cursor:pointer!important;font-size:13px!important;font-weight:600!important;list-style:none!important;box-shadow:none!important}
html body.rg242-theme .rg242-server-select summary>span:nth-child(2){min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.rg242-theme .rg242-server-select summary::-webkit-details-marker{display:none}
html body.rg242-theme .rg242-workspace-avatar{width:24px;height:24px;border-radius:6px;background:var(--rg242-primary-soft);color:var(--rg242-primary);display:grid!important;place-items:center!important}
html body.rg242-theme .rg242-workspace-avatar .rg-icon{width:14px!important;height:14px!important;min-width:14px!important}
html body.rg242-theme .rg242-server-select details>div{position:absolute!important;top:47px!important;left:0!important;right:0!important;z-index:80!important;padding:5px!important;background:var(--rg242-card)!important;border:1px solid var(--rg242-border)!important;border-radius:10px!important;box-shadow:0 15px 40px rgba(0,0,0,.18)!important}
html body.rg242-theme .rg242-server-select details>div a{display:flex!important;align-items:center!important;gap:8px!important;padding:9px!important;border-radius:7px!important;color:var(--rg242-text-2)!important;font-size:12px!important}
html body.rg242-theme .rg242-server-select details>div a:hover,html body.rg242-theme .rg242-server-select details>div a.active{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .vc42-nav{display:grid!important;gap:2px!important;margin:5px 0!important;padding:0 0 10px!important}
html body.rg242-theme .rg241-preline-app .vc42-nav>a,html body.rg242-theme .rg241-preline-app .vc42-nav>button{min-height:38px!important;width:100%!important;display:flex!important;align-items:center!important;gap:10px!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;color:var(--rg242-text-2)!important;font-size:13px!important;font-weight:500!important;text-align:left!important;cursor:pointer!important;transform:none!important}
html body.rg242-theme .rg241-preline-app .vc42-nav>a .rg-icon,html body.rg242-theme .rg241-preline-app .vc42-nav>button .rg-icon{width:17px!important;height:17px!important;min-width:17px!important;color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .vc42-nav>a:hover,html body.rg242-theme .rg241-preline-app .vc42-nav>button:hover{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .vc42-nav>a.active,html body.rg242-theme .rg241-preline-app .vc42-nav>button.active{background:var(--rg242-hover)!important;color:var(--rg242-text)!important;font-weight:600!important}
html body.rg242-theme .rg241-preline-app .vc42-nav>a.active .rg-icon,html body.rg242-theme .rg241-preline-app .vc42-nav>button.active .rg-icon{color:var(--rg242-primary)!important}
html body.rg242-theme .rg241-preline-app .vc42-subservers,html body.rg242-theme .rg241-preline-app .v106-monetize-sub{margin:1px 0 5px 26px!important;padding-left:8px!important;border-left:1px solid var(--rg242-border)!important;background:transparent!important}
html body.rg242-theme .rg241-preline-app :is(.vc42-subservers,.v106-monetize-sub)>a{display:flex!important;align-items:center!important;gap:8px!important;min-height:32px!important;padding:0 8px!important;border-radius:7px!important;color:var(--rg242-muted)!important;background:transparent!important;font-size:12px!important}
html body.rg242-theme .rg241-preline-app :is(.vc42-subservers,.v106-monetize-sub)>a:hover,html body.rg242-theme .rg241-preline-app :is(.vc42-subservers,.v106-monetize-sub)>a.active{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .rg237-nav-badge{margin-left:auto!important;padding:2px 6px!important;border:1px solid var(--rg242-border)!important;border-radius:999px!important;background:var(--rg242-card)!important;color:var(--rg242-muted)!important;font-size:9px!important;line-height:1.4!important;font-weight:600!important;text-transform:none!important;box-shadow:none!important}
html body.rg242-theme .rg241-preline-app .vc42-sidebar-bottom{margin-top:auto!important;display:grid!important;gap:3px!important;padding:12px 4px 0!important;border-top:1px solid var(--rg242-border)!important;background:transparent!important}
html body.rg242-theme .rg241-preline-app .vc42-sidebar-bottom>a{display:flex!important;align-items:center!important;gap:9px!important;padding:8px 9px!important;border-radius:8px!important;color:var(--rg242-muted)!important;font-size:12px!important;font-weight:500!important}
html body.rg242-theme .rg241-preline-app .vc42-sidebar-bottom>a:hover{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .v164-wallet-mini{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-bottom:6px!important}
html body.rg242-theme .rg241-preline-app .v164-wallet-mini a{padding:7px 8px!important;border:1px solid var(--rg242-border)!important;border-radius:8px!important;background:var(--rg242-card)!important;color:var(--rg242-muted)!important;font-size:9px!important;text-transform:uppercase!important;letter-spacing:.06em!important}
html body.rg242-theme .rg241-preline-app .v164-wallet-mini b{display:block!important;margin-top:2px!important;color:var(--rg242-text)!important;font-size:12px!important;letter-spacing:0!important}
html body.rg242-theme .rg242-sidebar-legal{display:flex;align-items:center;gap:10px;padding:6px 9px;color:var(--rg242-faint);font-size:10px;white-space:nowrap}
html body.rg242-theme .rg242-sidebar-legal a:hover{color:var(--rg242-text)}
html body.rg242-theme .rg242-sidebar-legal span{margin-left:auto}
html body.rg242-theme .rg241-preline-app .rg209-logout-button{width:100%!important;height:36px!important;display:flex!important;align-items:center!important;gap:9px!important;padding:0 9px!important;border:0!important;border-radius:8px!important;background:transparent!important;background-image:none!important;color:var(--rg242-text-2)!important;box-shadow:none!important;font-size:12px!important;cursor:pointer!important}
html body.rg242-theme .rg241-preline-app .rg209-logout-button:hover{background:var(--rg242-hover)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .rg209-logout-icon{display:grid!important;place-items:center!important;width:17px!important;height:17px!important;background:transparent!important;border:0!important;border-radius:0!important}

/* ----- Universal button correction: NO gradients / NO neon glow ----------------- */
html body.rg242-theme :is(.btn-donate,.login-pill.btn-donate,.verify-btn),
html body.rg242-theme .rg241-preline-app .app-main :is(a.btn,button.btn,.btn-donate,.vc42-primary,.vc50-primary,.vc50-pull-btn,.vc45-primary,.v57-submit,.v57-open-upgrade,.v65-save,.v65-refresh,.v65-mini-btn,.v69-save,.v69-mini-btn,.v63-api-btn,.v64-api-btn,.v82-sync-servers-btn,.vc-sync-btn,.vc-reload-btn,.rg98-primary-wide,.rg98-primary-link,.rg98-small-btn,.rg140-btn.primary,.rg156-btn.primary,.rg166-btn.primary,.rg166o-btn.primary,.rg166u-btn.primary,.rg168-btn.primary,.rg171-btn,.rg202-start-button,.rg202-invite-button,.rg217-primary,.v117-btn,.v137-btn,.v141-btn,.v143-btn,.v149-btn.primary,.v152-invite-submit,.v164-earned-btn,.v76-mini-health-btn,.v88-security-save,.v92-add-list-btn,.v93-send-btn,.v96-submit,.v96-blue-btn,.m-btn.primary,.s-btn.primary,button[type="submit"]):not(.secondary):not(.ghost):not(.danger):not([class*="danger"]):not([class*="delete"]):not([class*="trash"]):not(.rg209-logout-button){
  background:var(--rg242-primary)!important;background-image:none!important;background-size:auto!important;border:1px solid var(--rg242-primary)!important;color:#fff!important;box-shadow:none!important;filter:none!important;text-shadow:none!important;transform:none!important;border-radius:9px!important;font-weight:600!important
}
html body.rg242-theme :is(.btn-donate,.login-pill.btn-donate,.verify-btn):hover,
html body.rg242-theme .rg241-preline-app .app-main :is(a.btn,button.btn,.btn-donate,.vc42-primary,.vc50-primary,.vc50-pull-btn,.vc45-primary,.rg140-btn.primary,.rg156-btn.primary,.rg166-btn.primary,.rg166o-btn.primary,.rg166u-btn.primary,.rg168-btn.primary,.rg171-btn,.rg217-primary,.v117-btn,.v137-btn,.v149-btn.primary):hover{
  background:var(--rg242-primary-hover)!important;background-image:none!important;border-color:var(--rg242-primary-hover)!important;box-shadow:none!important;transform:none!important;filter:none!important
}
html body.rg242-theme .rg241-preline-app .app-main :is(.ghost,.secondary,.btn.ghost,.btn.secondary,.vc42-outline,.vc45-outline,.vc50-outline,.rg166u-btn:not(.primary)){
  background:var(--rg242-card)!important;background-image:none!important;border:1px solid var(--rg242-border)!important;color:var(--rg242-text-2)!important;box-shadow:none!important;filter:none!important;transform:none!important
}
html body.rg242-theme .rg241-preline-app .app-main :is(.ghost,.secondary,.btn.ghost,.btn.secondary,.vc42-outline,.vc45-outline,.vc50-outline,.rg166u-btn:not(.primary)):hover{background:var(--rg242-hover)!important;border-color:var(--rg242-border-strong)!important;color:var(--rg242-text)!important;transform:none!important}

/* ----- Page headers / standard fields -------------------------------------------- */
html body.rg242-theme .rg242-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 22px}
html body.rg242-theme .rg242-page-head h1{margin:2px 0 6px!important;font-size:24px!important;line-height:1.2!important;font-weight:650!important;letter-spacing:-.025em!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg242-page-head p{margin:0!important;color:var(--rg242-muted)!important;font-size:13px!important;line-height:1.55!important}
html body.rg242-theme .rg242-kicker{font-size:10px!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.11em!important;color:var(--rg242-primary)!important}
html body.rg242-theme .rg242-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body.rg242-theme .rg242-page-actions .btn{min-height:38px!important;padding:0 13px!important;font-size:12px!important}
html body.rg242-theme .rg241-preline-app .app-main :is(input,textarea,select){background:var(--rg242-card)!important;background-image:none!important;border:1px solid var(--rg242-border)!important;color:var(--rg242-text)!important;box-shadow:none!important;border-radius:9px!important}
html body.rg242-theme .rg241-preline-app .app-main :is(input,textarea,select):focus{outline:0!important;border-color:#60a5fa!important;box-shadow:0 0 0 3px rgba(59,130,246,.13)!important}

/* ----- New Dashboard -------------------------------------------------------------- */
html body.rg242-theme .rg242-stat-grid,html body.rg242-theme .rg242-admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
html body.rg242-theme .rg242-stat-card{position:relative;min-width:0;min-height:142px;display:flex;flex-direction:column;align-items:flex-start;padding:18px;border:1px solid var(--rg242-border);border-radius:12px;background:var(--rg242-card);box-shadow:var(--rg242-shadow);color:var(--rg242-text);text-decoration:none;transition:border-color .15s ease,background .15s ease}
html body.rg242-theme a.rg242-stat-card:hover{border-color:var(--rg242-border-strong);background:var(--rg242-card-2)}
html body.rg242-theme .rg242-stat-icon{position:absolute;top:18px;right:18px;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--rg242-border);border-radius:9px;background:var(--rg242-card-2);color:var(--rg242-primary)}
html body.rg242-theme .rg242-stat-icon .rg-icon{width:18px!important;height:18px!important;min-width:18px!important}
html body.rg242-theme .rg242-stat-icon.rg242-purple{color:var(--rg242-purple)}
html body.rg242-theme .rg242-stat-icon.rg242-teal{color:var(--rg242-teal)}
html body.rg242-theme .rg242-stat-icon.rg242-blue{color:var(--rg242-primary)}
html body.rg242-theme .rg242-stat-icon.rg242-red{color:var(--rg242-danger)}
html body.rg242-theme .rg242-stat-label{color:var(--rg242-text-2)!important;font-size:13px!important;font-weight:500!important}
html body.rg242-theme .rg242-stat-card>strong{margin-top:13px;font-size:28px;line-height:1;font-weight:650;letter-spacing:-.03em;color:var(--rg242-text)}
html body.rg242-theme .rg242-stat-card>small{margin-top:auto;padding-top:13px;color:var(--rg242-muted);font-size:11px}
html body.rg242-theme .rg242-card{min-width:0;background:var(--rg242-card);border:1px solid var(--rg242-border);border-radius:12px;box-shadow:var(--rg242-shadow);color:var(--rg242-text)}
html body.rg242-theme .rg242-card-head{min-height:66px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 18px;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-card-head h2{margin:0 0 4px!important;font-size:15px!important;font-weight:650!important;letter-spacing:-.015em!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg242-card-head p{margin:0!important;color:var(--rg242-muted)!important;font-size:11.5px!important;line-height:1.45!important}
html body.rg242-theme .rg242-dashboard-grid-main{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(300px,.65fr);gap:16px;margin-bottom:16px}
html body.rg242-theme .rg242-dashboard-grid-bottom{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:16px}
html body.rg242-theme .rg242-range-form select{height:34px!important;min-width:132px!important;padding:0 28px 0 10px!important;font-size:11px!important}
html body.rg242-theme .rg242-chart-tabs{display:flex;gap:18px;padding:0 18px;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-chart-tabs button{height:40px;padding:0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--rg242-muted);font-size:11px;font-weight:600;cursor:pointer}
html body.rg242-theme .rg242-chart-tabs button.active{color:var(--rg242-text);border-bottom-color:var(--rg242-primary)}
html body.rg242-theme .rg242-chart-panel{display:none;padding:16px 18px 18px}.rg242-chart-panel.active{display:block!important}
html body.rg242-theme .rg242-chart-summary{display:flex;align-items:center;gap:34px;margin-bottom:7px}
html body.rg242-theme .rg242-chart-summary div{display:grid;gap:2px}
html body.rg242-theme .rg242-chart-summary span{color:var(--rg242-muted);font-size:10px}
html body.rg242-theme .rg242-chart-summary strong{font-size:19px;font-weight:650;color:var(--rg242-text)}
html body.rg242-theme .rg242-chart-wrap{height:230px;width:100%;overflow:hidden}
html body.rg242-theme .rg242-chart-wrap svg{display:block;width:100%;height:100%;overflow:visible}
html body.rg242-theme .rg242-chart-grid{stroke:var(--rg242-border)!important;stroke-width:1!important;stroke-dasharray:4 7!important}
html body.rg242-theme .rg242-chart-line{fill:none!important;stroke-width:2.5!important;vector-effect:non-scaling-stroke!important;stroke-linecap:round!important;stroke-linejoin:round!important;filter:none!important}
html body.rg242-theme .rg242-chart-primary{stroke:#3b82f6!important}
html body.rg242-theme .rg242-chart-secondary{stroke:#8b5cf6!important}
html body.rg242-theme .rg242-chart-dot{fill:var(--rg242-card)!important;stroke:#3b82f6!important;stroke-width:2!important;vector-effect:non-scaling-stroke!important}
html body.rg242-theme .rg242-chart-labels{display:flex;justify-content:space-between;color:var(--rg242-muted);font-size:9px;margin-top:-4px}
html body.rg242-theme .rg242-health-list{display:grid;padding:3px 18px}
html body.rg242-theme .rg242-health-list>div{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:15px 0;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-health-icon{width:32px;height:32px;border-radius:8px;border:1px solid var(--rg242-border);background:var(--rg242-card-2);display:grid;place-items:center;color:var(--rg242-primary)}
html body.rg242-theme .rg242-health-list span:nth-child(2){display:grid;gap:2px}
html body.rg242-theme .rg242-health-list b{font-size:11.5px;font-weight:600;color:var(--rg242-text)}
html body.rg242-theme .rg242-health-list small{font-size:9.5px;color:var(--rg242-muted)}
html body.rg242-theme .rg242-health-list strong{font-size:15px;color:var(--rg242-text);font-weight:650}
html body.rg242-theme .rg242-text-link{display:inline-flex;align-items:center;gap:5px;color:var(--rg242-primary);font-size:11px;font-weight:600}
html body.rg242-theme .rg242-text-link .rg-icon{width:13px!important;height:13px!important;min-width:13px!important}
html body.rg242-theme .rg242-health-card>.rg242-text-link{margin:15px 18px 18px}
html body.rg242-theme .rg242-segmented{display:flex;gap:3px;margin:14px 18px 8px;padding:3px;border:1px solid var(--rg242-border);border-radius:8px;background:var(--rg242-card-2);width:max-content;max-width:calc(100% - 36px)}
html body.rg242-theme .rg242-segmented button{height:28px;padding:0 9px;border:0;border-radius:6px;background:transparent;color:var(--rg242-muted);font-size:9.5px;font-weight:600;cursor:pointer}
html body.rg242-theme .rg242-segmented button.active{background:var(--rg242-card);color:var(--rg242-text);box-shadow:0 1px 2px rgba(0,0,0,.08)}
html body.rg242-theme .rg242-data-list{display:none!important;padding:0 18px 14px}.rg242-data-list.active{display:block!important}
html body.rg242-theme .rg242-data-list>div{min-height:39px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:8px 0!important;margin:0!important;border:0!important;border-bottom:1px solid var(--rg242-border)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--rg242-text-2)!important}
html body.rg242-theme .rg242-data-list>div:last-child{border-bottom:0!important}
html body.rg242-theme .rg242-data-list>div>span{font-size:10.5px;color:var(--rg242-text-2)}
html body.rg242-theme .rg242-data-list>div>strong{font-size:10.5px;color:var(--rg242-text);font-weight:650}
html body.rg242-theme .rg242-server-ranking>div{justify-content:flex-start!important}
html body.rg242-theme .rg242-server-ranking>div>span:nth-child(2){display:grid;gap:2px;flex:1}
html body.rg242-theme .rg242-server-ranking b{font-size:10.5px;color:var(--rg242-text)}
html body.rg242-theme .rg242-server-ranking small{font-size:9px;color:var(--rg242-muted)}
html body.rg242-theme .rg242-rank{width:22px;height:22px;display:grid!important;place-items:center;border-radius:6px;background:var(--rg242-card-2);border:1px solid var(--rg242-border);color:var(--rg242-muted)!important;font-size:9px!important}
html body.rg242-theme .rg242-recent-list{display:grid;padding:3px 18px 12px}
html body.rg242-theme .rg242-recent-list>div{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-recent-list>div:last-child{border-bottom:0}
html body.rg242-theme .rg242-recent-list img{width:32px!important;height:32px!important;border-radius:8px!important;object-fit:cover!important;border:1px solid var(--rg242-border)!important}
html body.rg242-theme .rg242-recent-list span{display:grid;gap:2px;min-width:0}
html body.rg242-theme .rg242-recent-list b{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--rg242-text)}
html body.rg242-theme .rg242-recent-list small{font-size:9px;color:var(--rg242-muted)}
html body.rg242-theme .rg242-recent-list a{color:var(--rg242-primary);font-size:9.5px;font-weight:600}
html body.rg242-theme .rg242-empty{padding:18px!important;margin:0!important;color:var(--rg242-muted)!important;font-size:11px!important}

/* ----- Admin Users — Preline Users-style table ----------------------------------- */
html body.rg242-theme .rg242-admin-users-card{overflow:hidden}
html body.rg242-theme .rg242-admin-tabs{height:54px;display:flex;align-items:flex-end;gap:18px;padding:0 18px;border-bottom:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-admin-tabs button{height:54px;padding:0;border:0;border-bottom:2px solid var(--rg242-text);background:transparent;color:var(--rg242-text);font-size:11px;font-weight:600}
html body.rg242-theme .rg242-admin-tabs span{margin-left:auto;align-self:center;color:var(--rg242-muted);font-size:10px}
html body.rg242-theme .rg242-admin-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px}
html body.rg242-theme .rg242-table-search{width:min(560px,55%);height:36px;display:flex;align-items:center;gap:8px;padding:0 10px;border-radius:8px;background:var(--rg242-card-2);border:1px solid transparent;color:var(--rg242-muted)}
html body.rg242-theme .rg242-table-search input{width:100%;height:100%;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;font-size:11px!important}
html body.rg242-theme .rg242-admin-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
html body.rg242-theme .rg242-admin-summary span{padding:7px 9px;border:1px solid var(--rg242-border);border-radius:8px;color:var(--rg242-muted);font-size:9.5px}
html body.rg242-theme .rg242-admin-summary b{margin-left:4px;color:var(--rg242-text);font-weight:600}
html body.rg242-theme .rg242-table-wrap{width:100%;overflow:auto;border-top:1px solid var(--rg242-border)}
html body.rg242-theme .rg242-table{width:100%;min-width:1180px;border-collapse:collapse;background:var(--rg242-card);color:var(--rg242-text)}
html body.rg242-theme .rg242-table th{height:42px;padding:0 14px;text-align:left;border-bottom:1px solid var(--rg242-border);border-right:1px solid var(--rg242-border);color:var(--rg242-muted);font-size:9.5px;font-weight:500;white-space:nowrap;background:var(--rg242-card)}
html body.rg242-theme .rg242-table td{height:58px;padding:8px 14px;border-bottom:1px solid var(--rg242-border);border-right:1px solid var(--rg242-border);color:var(--rg242-text-2);font-size:10px;vertical-align:middle;white-space:nowrap}
html body.rg242-theme .rg242-table th:last-child,html body.rg242-theme .rg242-table td:last-child{border-right:0}
html body.rg242-theme .rg242-table tbody tr:hover td{background:var(--rg242-card-2)}
html body.rg242-theme .rg242-user-cell{display:flex;align-items:center;gap:9px;min-width:180px}
html body.rg242-theme .rg242-user-avatar{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;border:1px solid var(--rg242-border);background:var(--rg242-card-2);color:var(--rg242-text);font-size:9px;font-weight:650}
html body.rg242-theme .rg242-user-cell>span:last-child{display:grid;gap:2px;min-width:0}
html body.rg242-theme .rg242-user-cell b{font-size:10.5px;color:var(--rg242-text);font-weight:600}
html body.rg242-theme .rg242-user-cell small,html body.rg242-theme .rg242-cell-note{display:block;margin-top:2px;color:var(--rg242-muted);font-size:9px}
html body.rg242-theme .rg242-badge{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;background:var(--rg242-card-2);border:1px solid var(--rg242-border);color:var(--rg242-text-2);font-size:9px;font-weight:600;text-transform:capitalize}

/* ----- Repair legacy authenticated pages to the same theme ----------------------- */
html body.rg242-theme .rg241-preline-app .app-main :is(.glass-card,.stat-card,.vc-card-flat,.table-list,.empty-state,.price-card,.rg217-admin-card,.rg140-card,.rg140-stat,.rg156-section,.rg156-mini,.rg166-card,.rg166-stat,.rg166o-card,.rg166u-card,.rg168-card,.rg171-card,.v107-card,.v117-stat,.v137-card,.v137-stat,.v149-card,.v149-stat,.v63-settings-card,.v65-panel,.v65-bot-section,.v78-accordion,.v89-security-group,.v89-security-row,.v92-mini,.v96-extra-card,.vc42-panel,.vc42-server-row,.vc42-create-card,.vc43-backup-empty,.vc43-backup-row,.vc43-report-card,.vc44-dev-card,.vc45-create-card,.vc49-chart-card,.vc49-panel,.vc50-search-card,.vc50-table-card,.vc50-status-card,.rg98-panel,[class*="modal-card"]){background:var(--rg242-card)!important;background-image:none!important;border:1px solid var(--rg242-border)!important;border-radius:12px!important;color:var(--rg242-text)!important;box-shadow:none!important;backdrop-filter:none!important;filter:none!important}
html body.rg242-theme .rg241-preline-app .app-main :is(.glass-card,.stat-card,.vc-card-flat,.table-list,.empty-state,.price-card,.rg140-card,.rg156-section,.rg166-card,.rg166o-card,.rg166u-card,.rg168-card,.rg171-card,.v107-card,.v137-card,.v149-card,.v63-settings-card,.v65-panel,.v65-bot-section,.vc42-panel,.vc42-server-row,.vc43-backup-row,.vc44-dev-card,.vc49-chart-card,.vc49-panel,.vc50-search-card,.vc50-table-card,.vc50-status-card)::before,
html body.rg242-theme .rg241-preline-app .app-main :is(.glass-card,.stat-card,.vc-card-flat,.table-list,.empty-state,.price-card,.rg140-card,.rg156-section,.rg166-card,.rg166o-card,.rg166u-card,.rg168-card,.rg171-card,.v107-card,.v137-card,.v149-card,.v63-settings-card,.v65-panel,.v65-bot-section,.vc42-panel,.vc42-server-row,.vc43-backup-row,.vc44-dev-card,.vc49-chart-card,.vc49-panel,.vc50-search-card,.vc50-table-card,.vc50-status-card)::after{display:none!important;background:none!important;box-shadow:none!important}
html body.rg242-theme .rg241-preline-app .app-main :is(.page-head,.vc-page-head,.vc42-topbar,.rg166u-head){background:transparent!important;background-image:none!important;border-color:var(--rg242-border)!important;color:var(--rg242-text)!important;box-shadow:none!important}
html body.rg242-theme .rg241-preline-app .app-main :is(h1,h2,h3,h4,strong,b){color:var(--rg242-text)}
html body.rg242-theme .rg241-preline-app .app-main :is(p,small,label,.muted){color:var(--rg242-muted)}

/* explicitly remove the old bubbly browser/server/traffic source rows */
html body.rg242-theme .rg241-preline-app .app-main .vc49-analytics-list:not(.rg242-data-list)>div{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:38px!important;margin:0!important;padding:8px 2px!important;background:transparent!important;background-image:none!important;border:0!important;border-bottom:1px solid var(--rg242-border)!important;border-radius:0!important;box-shadow:none!important}
html body.rg242-theme .rg241-preline-app .app-main .vc49-analytics-list:not(.rg242-data-list)>div:last-child{border-bottom:0!important}
html body.rg242-theme .rg241-preline-app .app-main .vc49-analytics-tabs button{background:transparent!important;background-image:none!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;box-shadow:none!important;color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .app-main .vc49-analytics-tabs button.active{border-bottom-color:var(--rg242-primary)!important;color:var(--rg242-text)!important}

/* remove all remaining gold chart identity */
html body.rg242-theme .rg238-theme{--rg-chart-1:#3b82f6!important;--rg-chart-2:#8b5cf6!important;--rg-chart-3:#06b6d4!important;--rg-chart-4:#14b8a6!important;--rg-chart-5:#6366f1!important;--rg-chart-6:#a855f7!important}
html body.rg242-theme .rg241-preline-app :is(.rg238-chart-gradient-start,.rg238-chart-gradient-end){stop-color:#3b82f6!important}
html body.rg242-theme .rg241-preline-app .rg238-chart-series-0{stroke:#3b82f6!important}.rg241-preline-app .rg238-chart-series-1{stroke:#8b5cf6!important}.rg241-preline-app .rg238-chart-series-2{stroke:#06b6d4!important}.rg241-preline-app .rg238-chart-series-3{stroke:#14b8a6!important}.rg241-preline-app .rg238-chart-series-4{stroke:#6366f1!important}.rg241-preline-app .rg238-chart-series-5{stroke:#a855f7!important}

/* ----- Auth / register / login: no side bands or partial background --------------- */
html body.rg242-theme .rg227-auth-nav{max-width:1180px!important;width:calc(100% - 40px)!important;margin:14px auto 0!important;padding:8px 10px!important;border:1px solid var(--rg242-border)!important;border-radius:14px!important;background:var(--rg242-card)!important;background-image:none!important;box-shadow:none!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg227-auth-nav:before,html body.rg242-theme .rg227-auth-nav:after{display:none!important}
html body.rg242-theme .rg227-auth-wrap{width:100%!important;max-width:1180px!important;min-height:calc(100vh - 95px)!important;margin:0 auto!important;padding:54px 24px!important;display:grid!important;grid-template-columns:minmax(0,1.15fr) minmax(360px,.72fr)!important;gap:70px!important;align-items:center!important;background:transparent!important;background-image:none!important}
html body.rg242-theme .rg227-auth-wrap:before,html body.rg242-theme .rg227-auth-wrap:after{display:none!important}
html body.rg242-theme .rg227-auth-copy{max-width:650px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
html body.rg242-theme .rg227-auth-copy h1{color:var(--rg242-text)!important;font-size:clamp(48px,5vw,74px)!important;line-height:.98!important;letter-spacing:-.055em!important;margin:16px 0 28px!important}
html body.rg242-theme .rg227-auth-copy>p:not(.eyebrow){max-width:610px!important;color:var(--rg242-muted)!important;font-size:15px!important;line-height:1.7!important}
html body.rg242-theme .rg227-auth-copy .eyebrow{color:var(--rg242-primary)!important}
html body.rg242-theme .rg227-auth-copy .stat-line strong{color:var(--rg242-text)!important}
html body.rg242-theme .rg227-auth-copy .stat-line span{color:var(--rg242-muted)!important}
html body.rg242-theme .rg227-auth-card{width:100%!important;max-width:430px!important;justify-self:end!important;padding:28px!important;background:var(--rg242-card)!important;background-image:none!important;border:1px solid var(--rg242-border)!important;border-radius:14px!important;box-shadow:none!important;backdrop-filter:none!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg227-auth-card:before,html body.rg242-theme .rg227-auth-card:after{display:none!important}
html body.rg242-theme .rg227-auth-card .oauth{background:var(--rg242-card-2)!important;border-color:var(--rg242-border)!important;border-radius:9px!important;box-shadow:none!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg227-auth-card input{background:var(--rg242-card-2)!important;border-color:var(--rg242-border)!important;color:var(--rg242-text)!important}

/* Public control theme parity */
html body.rg242-theme .rg207-public-controls .rg204-control-button{background:var(--rg242-card)!important;border:1px solid var(--rg242-border)!important;box-shadow:none!important;border-radius:9px!important}
html:not(.light) body.rg242-theme .rg207-public-controls .rg204-control-button img{filter:brightness(0) invert(1)!important;opacity:.75!important}

/* Support launcher should be quiet, not a floating neon pill */
html body.rg242-theme :is(.support-launcher,.bug-report-launcher,[class*="support-"][class*="button"]){box-shadow:none!important;filter:none!important}

/* ----- Responsive ---------------------------------------------------------------- */
@media(max-width:1100px){
  html body.rg242-theme .rg242-stat-grid,html body.rg242-theme .rg242-admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.rg242-theme .rg242-dashboard-grid-main{grid-template-columns:1fr}
  html body.rg242-theme .rg242-dashboard-grid-bottom{grid-template-columns:1fr 1fr}
  html body.rg242-theme .rg242-recent-card{grid-column:1/-1}
}
@media(max-width:820px){
  html body.rg242-theme .rg241-preline-app.app-shell{display:block!important}
  html body.rg242-theme .rg241-preline-app .rg242-sidebar{position:fixed!important;left:-260px!important;top:0!important;width:246px!important;transition:left .18s ease!important;box-shadow:0 20px 50px rgba(0,0,0,.25)!important}
  html body.rg242-theme .rg241-preline-app .rg242-sidebar.open{left:0!important}
  html body.rg242-theme .rg242-app-toolbar{padding-left:60px!important;padding-right:12px!important}
  html body.rg242-theme .rg242-toolbar-search{width:min(380px,58vw)}
  html body.rg242-theme .rg242-page-canvas{padding:20px 14px 34px}
  html body.rg242-theme .mobile-menu{display:grid!important;place-items:center!important;top:12px!important;left:12px!important;right:auto!important;width:36px!important;height:36px!important;padding:0!important;border:1px solid var(--rg242-border)!important;border-radius:9px!important;background:var(--rg242-card)!important;color:var(--rg242-text)!important;box-shadow:none!important}
  html body.rg242-theme .rg227-auth-wrap{grid-template-columns:1fr!important;gap:34px!important;padding-top:40px!important}
  html body.rg242-theme .rg227-auth-card{justify-self:stretch!important;max-width:none!important}
  html body.rg242-theme .rg227-auth-copy h1{font-size:48px!important}
}
@media(max-width:640px){
  html body.rg242-theme .rg242-toolbar-search{display:none!important}
  html body.rg242-theme .rg242-app-toolbar{justify-content:flex-end!important}
  html body.rg242-theme .rg242-page-head{display:grid!important}
  html body.rg242-theme .rg242-stat-grid,html body.rg242-theme .rg242-admin-stat-grid,html body.rg242-theme .rg242-dashboard-grid-bottom{grid-template-columns:1fr!important}
  html body.rg242-theme .rg242-recent-card{grid-column:auto}
  html body.rg242-theme .rg242-stat-card{min-height:124px}
  html body.rg242-theme .rg242-admin-tools{align-items:stretch;flex-direction:column}
  html body.rg242-theme .rg242-table-search{width:100%}
  html body.rg242-theme .rg242-admin-summary{justify-content:flex-start}
  html body.rg242-theme .rg227-auth-nav{width:calc(100% - 20px)!important}
  html body.rg242-theme .rg227-auth-wrap{padding:30px 16px!important}
  html body.rg242-theme .rg227-auth-copy h1{font-size:40px!important}
}
/* v242 top controls match Preline: bare utility icons, avatar for profile. */
html body.rg242-theme .rg241-preline-app .rg204-control-button{border-color:transparent!important;background:transparent!important}
html body.rg242-theme .rg241-preline-app .rg204-control-button:hover{border-color:transparent!important;background:var(--rg242-hover)!important}
html body.rg242-theme .rg241-preline-app .rg242-profile-trigger{border-radius:50%!important;overflow:hidden!important}
html body.rg242-theme .rg241-preline-app .rg242-profile-avatar{width:30px!important;height:30px!important;border-radius:50%!important;object-fit:cover!important;filter:none!important;opacity:1!important}
html body.rg242-theme .rg241-preline-app .rg242-profile-initial{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--rg242-card-2);border:1px solid var(--rg242-border);color:var(--rg242-text);font-size:11px;font-weight:700}
/* final specificity corrections */
html body.rg242-theme .rg241-preline-app .app-main .rg242-toolbar-search input{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important}
html body.rg242-theme .rg242-stat-icon{left:18px!important;right:auto!important}
html body.rg242-theme .rg242-stat-label{margin-top:47px!important}
html body.rg242-theme .legal-page{background:transparent!important;background-image:none!important;box-shadow:none!important;border:0!important;color:var(--rg242-text)!important}
html body.rg242-theme .legal-page:before,html body.rg242-theme .legal-page:after{display:none!important;content:none!important;background:none!important;background-image:none!important;box-shadow:none!important}
html body.rg242-theme .legal-page h1,html body.rg242-theme .legal-page h2{color:var(--rg242-text)!important}
html body.rg242-theme .legal-page p,html body.rg242-theme .legal-page li{color:var(--rg242-muted)!important}
html body.rg242-theme .legal-page h2{border-top-color:var(--rg242-border)!important}
html body.rg242-theme .legal-page a:not(.btn){color:var(--rg242-primary)!important}
/* destructive icon buttons stay quiet until hover; no bright icon bubbles */
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-trash,.v65-delete-btn,.v78-remove-media,.v149-close){background:transparent!important;background-image:none!important;border:1px solid var(--rg242-border)!important;color:var(--rg242-muted)!important;box-shadow:none!important;filter:none!important;transform:none!important}
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-trash,.v65-delete-btn,.v78-remove-media,.v149-close):hover{background:rgba(220,38,38,.08)!important;border-color:rgba(220,38,38,.26)!important;color:var(--rg242-danger)!important;box-shadow:none!important}
/* table/list row actions are secondary, not a wall of blue CTA buttons */
html body.rg242-theme .rg241-preline-app .app-main .v149-mini:not(.danger){background:var(--rg242-card)!important;background-image:none!important;border:1px solid var(--rg242-border)!important;color:var(--rg242-text-2)!important;box-shadow:none!important;filter:none!important;transform:none!important;font-weight:600!important}
html body.rg242-theme .rg241-preline-app .app-main .v149-mini:not(.danger):hover{background:var(--rg242-hover)!important;border-color:var(--rg242-border-strong)!important;color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .app-main .v149-mini.danger{background:transparent!important;background-image:none!important;border:1px solid rgba(220,38,38,.28)!important;color:var(--rg242-danger)!important;box-shadow:none!important}
html body.rg242-theme .rg241-preline-app .app-main .v149-mini.danger:hover{background:rgba(220,38,38,.08)!important}
/* remove the old animated shine on subscription upgrade buttons */
html body.rg242-theme .rg241-preline-app .app-main .v57-open-upgrade::after{display:none!important;content:none!important}

/* =============================================================================
   v242 FINAL CONSISTENCY LAYER
   The rules below intentionally sit last so older high-specificity styles cannot
   reintroduce glow, glass, dark-only surfaces or decorative icon bubbles.
   ============================================================================= */

/* Public/auth controls use the same quiet icon treatment as the app toolbar. */
html body.rg242-theme .rg207-public-controls .rg204-control-button,
html body.rg242-theme .rg227-auth-nav .rg204-control-button{
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
  filter:none!important;
}
html body.rg242-theme .rg207-public-controls .rg204-control-button:hover,
html body.rg242-theme .rg227-auth-nav .rg204-control-button:hover{
  background:var(--rg242-hover)!important;
  border-color:transparent!important;
}

/* Bots / marketplace / billing: force complete light + dark parity. */
html body.rg242-theme .rg241-preline-app .app-main :is(
  .vc43-row-card,.vc43-empty-list,.vc43-bot-card,.vc43-help-strip,
  .v149-hero,.v149-payout,.v149-table-wrap,.v149-table,
  .vc55-billing-hero,.vc55-current-plan,.vc55-plan-card,.vc55-feature-table,.vc55-table
){
  background:var(--rg242-card)!important;
  background-image:none!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  filter:none!important;
}
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-row-card,.v149-hero,.v149-payout,.vc55-billing-hero,.vc55-plan-card)::before,
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-row-card,.v149-hero,.v149-payout,.vc55-billing-hero,.vc55-plan-card)::after{
  display:none!important;
  background:none!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app .app-main :is(.v149-table th,.vc55-row.head){
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-muted)!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app .app-main :is(.v149-table td,.vc55-row){
  background:transparent!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-text-2)!important;
}
html body.rg242-theme .rg241-preline-app .app-main :is(.v149-pill,.vc55-pill,.vc43-pill,.vc43-tag){
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-text-2)!important;
  box-shadow:none!important;
}

/* Delete / icon-only actions should never look like luminous blue circles. */
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-trash,.v65-delete-btn,.v78-remove-media,.v149-close){
  background:transparent!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  color:var(--rg242-muted)!important;
  box-shadow:none!important;
  filter:none!important;
}
html body.rg242-theme .rg241-preline-app .app-main :is(.vc43-trash,.v65-delete-btn,.v78-remove-media,.v149-close):hover{
  background:rgba(239,68,68,.08)!important;
  border-color:rgba(239,68,68,.35)!important;
  color:#ef4444!important;
  transform:none!important;
}

/* AI Builder: remove the old grid/glass hero and make it a native dashboard page. */
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page{
  min-height:auto!important;
  background:transparent!important;
  background-image:none!important;
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page::before,
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page::after{
  display:none!important;
  content:none!important;
  background:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-hero{
  min-height:auto!important;
  padding:8px 0 34px!important;
  background:transparent!important;
  background-image:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-nav-pill{
  width:100%!important;
  max-width:none!important;
  min-height:48px!important;
  margin:0 0 28px!important;
  padding:7px 9px!important;
  border-radius:10px!important;
  border:1px solid var(--rg242-border)!important;
  background:var(--rg242-card)!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-nav-pill nav a{
  color:var(--rg242-muted)!important;
  border-radius:7px!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-nav-pill nav a:is(:hover,.active){
  background:var(--rg242-hover)!important;
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-brand{color:var(--rg242-text)!important}
html body.rg242-theme .rg241-preline-app .rg236-ai-title-block{max-width:820px!important}
html body.rg242-theme .rg241-preline-app .rg236-ai-title-block h1,
html body.rg242-theme .rg241-preline-app .rg236-ai-title-block h1:first-line,
html body.rg242-theme .rg241-preline-app .rg236-ai-title-block h1 em{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:clamp(42px,5vw,62px)!important;
  line-height:1.02!important;
  letter-spacing:-.05em!important;
  color:var(--rg242-text)!important;
  text-shadow:none!important;
  -webkit-text-fill-color:currentColor!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-title-block p,
html body.rg242-theme .rg241-preline-app .rg236-trust-row{color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .rg236-ai-kicker{
  background:var(--rg242-primary-soft)!important;
  background-image:none!important;
  border:1px solid color-mix(in srgb,var(--rg242-primary) 25%,transparent)!important;
  color:var(--rg242-primary)!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app :is(
 .rg236-ai-prompt-shell,.rg236-ai-results,.rg236-feature-rail article,
 .rg236-advanced-panel,.rg236-mode-pill,.rg236-ai-studio-page .rg224-ai-section
){
  background:var(--rg242-card)!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg241-preline-app .rg236-feature-rail article::before{display:none!important;content:none!important}
html body.rg242-theme .rg241-preline-app .rg236-feature-rail article span{
  background:var(--rg242-primary-soft)!important;
  color:var(--rg242-primary)!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-feature-rail article b,
html body.rg242-theme .rg241-preline-app .rg236-mode-pill span,
html body.rg242-theme .rg241-preline-app .rg236-advanced-panel summary{
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg241-preline-app :is(.rg236-feature-rail article small,.rg236-mode-pill small,.rg236-builder-options small,.rg236-prompt-cost,.rg236-prompt-label){color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .rg236-prompt-row textarea,
html body.rg242-theme .rg241-preline-app .rg236-builder-options select,
html body.rg242-theme .rg241-preline-app .rg236-advanced-panel input,
html body.rg242-theme .rg241-preline-app .rg236-advanced-panel select{
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-prompt-row textarea{border:0!important;background:transparent!important}
html body.rg242-theme .rg241-preline-app .rg236-prompt-row textarea::placeholder{color:var(--rg242-muted)!important}
html body.rg242-theme .rg241-preline-app .rg236-builder-options{
  background:var(--rg242-card-2)!important;
  border-color:var(--rg242-border)!important;
}
html body.rg242-theme .rg241-preline-app .rg236-builder-options label,
html body.rg242-theme .rg241-preline-app .rg236-advanced-grid label,
html body.rg242-theme .rg241-preline-app .rg236-feature-checks span{color:var(--rg242-text-2)!important}
html body.rg242-theme .rg241-preline-app .rg236-chip{
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  color:var(--rg242-text-2)!important;
  box-shadow:none!important;
  transform:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-chip:is(:hover,.active){
  background:var(--rg242-primary-soft)!important;
  border-color:color-mix(in srgb,var(--rg242-primary) 30%,var(--rg242-border))!important;
  color:var(--rg242-primary)!important;
  transform:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page .rg224-ai-section button,
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page [data-copy]{
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg241-preline-app .rg236-ai-studio-page .rg224-ai-section code{
  background:var(--rg242-primary-soft)!important;
  color:var(--rg242-primary)!important;
}

/* Keep the support launcher quiet and consistent in both themes. */
html body.rg242-theme :is(.support-launcher,.support-button,.support-fab,#supportLauncher){
  background:var(--rg242-card)!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
}

@media(max-width:820px){
  html body.rg242-theme .rg241-preline-app .rg236-ai-title-block h1{font-size:42px!important}
  html body.rg242-theme .rg241-preline-app .rg236-ai-nav-pill{margin-bottom:20px!important}
}

/* Support / bug launchers also follow the current surface; no floating glow badge. */
html body.rg242-theme .rg-support-fab,
html body.rg242-theme .rg209-support-fab,
html body.rg242-theme .rg-bug-fab{
  background:var(--rg242-card)!important;
  background-image:none!important;
  border:1px solid var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
  transform:none!important;
}
html body.rg242-theme .rg-support-fab:hover,
html body.rg242-theme .rg209-support-fab:hover,
html body.rg242-theme .rg-bug-fab:hover{
  background:var(--rg242-hover)!important;
  background-image:none!important;
  border-color:var(--rg242-border-strong)!important;
  color:var(--rg242-text)!important;
  transform:none!important;
}
html body.rg242-theme .rg-support-fab span,
html body.rg242-theme .rg209-support-fab-icon,
html body.rg242-theme .rg-bug-fab span{
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html body.rg242-theme .rg-support-panel{
  background:var(--rg242-card)!important;
  border-color:var(--rg242-border)!important;
  box-shadow:0 18px 48px rgba(0,0,0,.18)!important;
  color:var(--rg242-text)!important;
}
html body.rg242-theme .rg-support-head{
  background:var(--rg242-card-2)!important;
  background-image:none!important;
  border-color:var(--rg242-border)!important;
}
html body.rg242-theme .rg-support-head strong{color:var(--rg242-text)!important}
html body.rg242-theme .rg-support-head small,
html body.rg242-theme .rg-support-note,
html body.rg242-theme .rg-support-result{color:var(--rg242-muted)!important}
html body.rg242-theme .rg-support-form label{color:var(--rg242-text-2)!important}
html body.rg242-theme .rg-support-form :is(input,select,textarea){
  background:var(--rg242-card-2)!important;
  border-color:var(--rg242-border)!important;
  color:var(--rg242-text)!important;
  box-shadow:none!important;
}
