/* Rigonic V13: targeted controls and support redesign. Other modules unchanged. */

/* Only the switch itself responds to pointer/touch events, never its surrounding card. */
body.rg-dashboard-body .rg13-switch{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 48px!important;width:48px!important;height:28px!important;min-width:48px!important;min-height:28px!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;
  cursor:pointer!important;box-shadow:none!important;overflow:visible!important;
}
body.rg-dashboard-body .rg13-switch input[type="checkbox"]{
  position:absolute!important;inset:0!important;left:0!important;top:0!important;right:0!important;bottom:0!important;
  width:100%!important;height:100%!important;margin:0!important;padding:0!important;
  opacity:0!important;cursor:pointer!important;z-index:2!important;
}
body.rg-dashboard-body .rg13-switch-track{
  position:relative!important;display:block!important;flex:0 0 48px!important;width:48px!important;height:27px!important;
  margin:0!important;padding:0!important;border:1px solid #536d89!important;border-radius:2px!important;
  background:#2e435a!important;box-sizing:border-box!important;pointer-events:none!important;
  transition:background .14s ease,border-color .14s ease!important;
}
body.rg-dashboard-body .rg13-switch-track::after{
  content:"";position:absolute;top:3px;left:3px;width:19px;height:19px;
  background:#d8e3ed;border-radius:1px;box-shadow:0 1px 2px #0004;
  transition:transform .14s ease,background .14s ease;
}
body.rg-dashboard-body .rg13-switch input:checked + .rg13-switch-track{background:#187ee6!important;border-color:#69b7ff!important}
body.rg-dashboard-body .rg13-switch input:checked + .rg13-switch-track::after{transform:translateX(21px);background:#fff}
body.rg-dashboard-body .rg13-switch:focus-within{outline:2px solid #91cfff!important;outline-offset:3px!important}
body.rg-dashboard-body .rg13-switch:hover .rg13-switch-track{border-color:#8bc9ff!important}

/* Custom commands: slim cards, no descriptions, no full-card toggle. */
body.rg-dashboard-body .custom-command-page-v10 .command-global-v10{
  grid-template-columns:minmax(0,1fr) 200px 128px!important;gap:10px!important;
  align-items:center!important;padding:18px 22px!important;min-height:0!important;
}
body.rg-dashboard-body .custom-command-page-v10 .rg10-activation-toggle.rg13-activation-card{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;min-height:59px!important;height:auto!important;box-sizing:border-box!important;
  padding:10px 12px!important;cursor:default!important;border-radius:0!important;
}
body.rg-dashboard-body .custom-command-page-v10 .rg13-activation-card .rg10-activation-label{flex:1 1 auto!important;min-width:0!important}
body.rg-dashboard-body .custom-command-page-v10 .rg13-activation-card .rg10-activation-label b{font-size:12px!important;line-height:1.3!important}
body.rg-dashboard-body .custom-command-page-v10 .command-prefix-v10{
  min-height:59px!important;padding:8px 11px!important;gap:0!important;box-sizing:border-box!important;border-radius:0!important;
}
body.rg-dashboard-body .custom-command-page-v10 .command-prefix-v10 span{font-size:9px!important;margin:0 0 5px!important}
body.rg-dashboard-body .custom-command-page-v10 .command-prefix-v10 input{
  height:30px!important;min-height:30px!important;padding:3px 9px!important;font-size:14px!important;
}
/* Remove old full-card focus outline: focus indication belongs to the real switch. */
body.rg-dashboard-body .custom-command-page-v10 .rg13-activation-card:focus-within{outline:none!important}

/* Creator Updates: compact, balanced bar instead of stretched oversized controls. */
body.rg-dashboard-body .social-v20-page .rg12-social-settings{
  display:grid!important;grid-template-columns:210px 135px 160px!important;
  width:max-content!important;max-width:100%!important;box-sizing:border-box!important;
  gap:8px!important;padding:9px!important;margin-bottom:16px!important;
  align-items:stretch!important;
}
body.rg-dashboard-body .social-v20-page .rg13-social-enable{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:9px!important;min-width:0!important;min-height:52px!important;padding:9px 12px!important;
  cursor:default!important;
}
body.rg-dashboard-body .social-v20-page .rg13-social-enable b{font-size:12px!important}
body.rg-dashboard-body .social-v20-page .rg13-social-enable:focus-within{outline:none!important}
body.rg-dashboard-body .social-v20-page .rg12-social-interval{
  box-sizing:border-box!important;min-height:52px!important;padding:8px 10px!important;gap:5px!important;
}
body.rg-dashboard-body .social-v20-page .rg12-social-interval>span{font-size:9px!important}
body.rg-dashboard-body .social-v20-page .rg12-social-interval select{height:28px!important;min-height:28px!important;padding:1px 8px!important}
body.rg-dashboard-body .social-v20-page .rg12-social-save{
  box-sizing:border-box!important;min-height:52px!important;padding:9px 12px!important;font-size:11px!important;gap:8px!important;
  white-space:normal!important;text-align:center!important;
}

/* AI activation: separate informational card and a small accessible switch. */
body.rg-dashboard-body .rg7-ai-page .rg13-ai-toggle.setting-switch{
  grid-column:1 / -1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  width:100%!important;max-width:350px!important;min-width:0!important;min-height:56px!important;
  padding:10px 14px!important;gap:16px!important;box-sizing:border-box!important;
  cursor:default!important;border-radius:0!important;
}
body.rg-dashboard-body .rg7-ai-page .rg13-ai-toggle.setting-switch>span{flex:1 1 auto!important;min-width:0!important}
body.rg-dashboard-body .rg7-ai-page .rg13-ai-toggle.setting-switch b{font-size:12px!important}

@media(max-width:860px){
  body.rg-dashboard-body .custom-command-page-v10 .command-global-v10{
    grid-template-columns:200px 128px!important;align-items:center!important;
  }
  body.rg-dashboard-body .custom-command-page-v10 .command-global-v10>div:first-child{grid-column:1/-1!important}
}
@media(max-width:600px){
  body.rg-dashboard-body .custom-command-page-v10 .command-global-v10{
    display:grid!important;grid-template-columns:minmax(0,1fr) 128px!important;padding:14px!important;
  }
  body.rg-dashboard-body .custom-command-page-v10 .rg13-activation-card{min-width:0!important}
  body.rg-dashboard-body .social-v20-page .rg12-social-settings{grid-template-columns:minmax(0,1fr) minmax(110px,.7fr)!important;width:100%!important}
  body.rg-dashboard-body .social-v20-page .rg12-social-save{grid-column:1/-1!important}
}
@media(max-width:390px){
  body.rg-dashboard-body .custom-command-page-v10 .command-global-v10{grid-template-columns:1fr!important}
  body.rg-dashboard-body .custom-command-page-v10 .command-global-v10>*{grid-column:1/-1!important}
  body.rg-dashboard-body .social-v20-page .rg12-social-settings{grid-template-columns:1fr!important}
  body.rg-dashboard-body .social-v20-page .rg12-social-save{grid-column:1!important}
}

/* Support page - consistent Rigonic dark, editorial geometry and deliberate spacing. */
body.rg-public-body .rg13-support-page{padding:42px 0 88px;color:#eef7ff;background:#060f1e}
body.rg-public-body .rg13-support-wrap{display:flex;flex-direction:column;gap:0}
body.rg-public-body .rg13-support-hero{
  position:relative;display:grid;grid-template-columns:minmax(0,1.18fr) minmax(295px,.72fr);
  gap:clamp(28px,4vw,66px);align-items:stretch;min-height:360px;
  padding:clamp(28px,4vw,55px);border:1px solid #2b506f;border-left:4px solid #258fff;
  background:linear-gradient(120deg,#102844 0%,#091a30 55%,#0b1e34 100%);overflow:hidden;
}
body.rg-public-body .rg13-support-hero::before{
  content:"";position:absolute;top:0;right:0;width:32%;height:2px;
  background:linear-gradient(90deg,transparent,#2c91f5);opacity:.65;pointer-events:none;
}
body.rg-public-body .rg13-support-hero-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;position:relative;z-index:1}
body.rg-public-body .rg13-support-kicker{display:inline-flex;align-items:center;gap:8px;font-size:10px;font-weight:800;line-height:1.3;letter-spacing:.15em;color:#85c3ff;text-transform:uppercase}
body.rg-public-body .rg13-support-dot{display:inline-block;width:7px;height:7px;background:#288df3}
body.rg-public-body .rg13-support-hero h1{
  font-family:'Space Grotesk',Inter,Arial,sans-serif;
  font-size:clamp(36px,4vw,60px)!important;letter-spacing:-.055em!important;
  line-height:1.05!important;margin:18px 0 16px!important;max-width:710px;color:#f6faff!important;
}
body.rg-public-body .rg13-support-hero-copy>p{
  font-size:clamp(13px,1.25vw,15px);line-height:1.75;color:#b0c9e1;max-width:650px;margin:0;
}
body.rg-public-body .rg13-support-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:29px}
body.rg-public-body .rg13-support-primary,
body.rg-public-body .rg13-support-secondary{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:12px;
  min-height:46px;padding:12px 18px;text-decoration:none;font-size:12px;font-weight:800;
  border-radius:0!important;white-space:normal;transition:background .18s ease,border-color .18s ease;
}
body.rg-public-body .rg13-support-primary{background:#1988f5;color:#fff;border:1px solid #6bb7ff}
body.rg-public-body .rg13-support-primary:hover{background:#3b9eff;color:#fff}
body.rg-public-body .rg13-support-secondary{background:#0b1e32;color:#dcefff;border:1px solid #426180}
body.rg-public-body .rg13-support-secondary:hover{background:#163655;border-color:#6ab2ee}
body.rg-public-body .rg13-support-primary:focus-visible,
body.rg-public-body .rg13-support-secondary:focus-visible{outline:2px solid #a2d7ff;outline-offset:3px}
body.rg-public-body .rg13-support-quick-guide{
  align-self:center;display:flex;flex-direction:column;width:100%;min-width:0;padding:20px 23px;
  box-sizing:border-box;background:#08192c;border:1px solid #2e516f;
}
body.rg-public-body .rg13-support-quick-head{display:flex;align-items:center;gap:10px;padding-bottom:17px;color:#8cbfeb;font-size:10px;font-weight:800;letter-spacing:.12em;border-bottom:1px solid #25425d}
body.rg-public-body .rg13-support-quick-head i{font-size:17px;color:#68b6ff}
body.rg-public-body .rg13-support-quick-step{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;align-items:start;padding:15px 0;border-bottom:1px solid #203a52}
body.rg-public-body .rg13-support-quick-step:last-child{border-bottom:0;padding-bottom:2px}
body.rg-public-body .rg13-support-quick-step>span{color:#6fb8fa;font-size:11px;font-weight:900}
body.rg-public-body .rg13-support-quick-step strong{display:block;font-size:13px;color:#eff8ff;line-height:1.3}
body.rg-public-body .rg13-support-quick-step small{display:block;font-size:11px;color:#9ebbd4;line-height:1.6;margin-top:5px}
body.rg-public-body .rg13-support-section{padding:49px 0 30px}
body.rg-public-body .rg13-support-section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}
body.rg-public-body .rg13-support-section-head h2{font-size:clamp(25px,2.6vw,36px);line-height:1.1;letter-spacing:-.045em;color:#f2f8ff;margin:9px 0 0}
body.rg-public-body .rg13-support-section-head>p{max-width:390px;font-size:12px;line-height:1.7;color:#94b0c8;margin:0;text-align:right}
body.rg-public-body .rg13-support-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.rg-public-body .rg13-support-card{
  position:relative;display:flex;flex-direction:column;min-width:0;min-height:188px;
  padding:23px 24px;box-sizing:border-box;border:1px solid #294a68;
  background:linear-gradient(140deg,#0d2138,#0a192c);overflow:hidden;
  transition:border-color .18s ease,background .18s ease;
}
body.rg-public-body .rg13-support-card:hover{border-color:#5093cd;background:#112b47}
body.rg-public-body .rg13-support-card-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
body.rg-public-body .rg13-support-card-icon{display:grid;place-items:center;width:42px;height:42px;background:#143654;border:1px solid #326188;color:#86c8ff;font-size:17px}
body.rg-public-body .rg13-support-card-index{color:#6087aa;font-size:10px;letter-spacing:.1em;font-weight:800}
body.rg-public-body .rg13-support-card h3{color:#f3f9ff;font-size:18px;margin:18px 0 9px;line-height:1.2;letter-spacing:-.02em}
body.rg-public-body .rg13-support-card p{color:#a1bad0;font-size:12px;line-height:1.65;margin:0;max-width:340px}
body.rg-public-body .rg13-support-footer-cta{
  display:flex;align-items:center;justify-content:space-between;gap:25px;
  padding:27px 30px;margin-top:1px;border:1px solid #305170;background:#0d2239;
}
body.rg-public-body .rg13-support-footer-cta h2{color:#f4f9ff;font-size:clamp(23px,2.6vw,32px);line-height:1.12;letter-spacing:-.04em;margin:9px 0}
body.rg-public-body .rg13-support-footer-cta p{margin:0;font-size:12px;line-height:1.6;color:#a9c2d9}
body.rg-public-body .rg13-support-footer-cta>a{flex:0 0 auto}
@media(max-width:920px){
  body.rg-public-body .rg13-support-hero{grid-template-columns:1fr;min-height:0}
  body.rg-public-body .rg13-support-quick-guide{max-width:none}
  body.rg-public-body .rg13-support-section-head{align-items:start;flex-direction:column}
  body.rg-public-body .rg13-support-section-head>p{text-align:left}
}
@media(max-width:680px){
  body.rg-public-body .rg13-support-page{padding:22px 0 50px}
  body.rg-public-body .rg13-support-hero{padding:25px 20px;gap:24px}
  body.rg-public-body .rg13-support-hero h1{font-size:clamp(32px,8vw,45px)!important}
  body.rg-public-body .rg13-support-cards{grid-template-columns:1fr}
  body.rg-public-body .rg13-support-card{min-height:145px;padding:18px}
  body.rg-public-body .rg13-support-section{padding:30px 0 20px}
  body.rg-public-body .rg13-support-footer-cta{align-items:flex-start;flex-direction:column;padding:22px}
  body.rg-public-body .rg13-support-footer-cta>a{width:100%}
}
