
/* Scoped tutorial layouts retain Retavia's existing teal and mint palette. */
.rg-standalone{max-width:1320px;margin:0 auto;padding:28px 36px 60px}
.rg-public-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:38px}
.rg-public-header .auth-brand{font-size:27px}.rg-public-header>a:last-child{color:#49666c;font-size:14px}
.rg-intro{display:flex;gap:22px;align-items:flex-start;margin-bottom:30px}
.rg-icon{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border-radius:20px;background:#daf2eb;color:#103e48;font-size:24px}
.rg-intro h1{font-size:clamp(27px,3vw,39px);margin:5px 0 10px;letter-spacing:-1px}
.rg-intro p:last-child{color:#577077;line-height:1.65;max-width:790px;font-size:16px;margin:0}
.rg-tools{display:flex;gap:24px;align-items:flex-end;justify-content:space-between;margin-bottom:24px}
.rg-tools label{display:block;color:#49666c;font-size:13px;font-weight:600;max-width:560px;flex:1}
.rg-tools input{display:block;width:100%;margin-top:8px;background:white;padding:13px 16px;border:1px solid #d3e3e2;border-radius:12px;color:#103e48;font:inherit;font-size:15px}
.rg-tools input:focus{outline:2px solid #62dbbd;outline-offset:2px}
.rg-tools>span{font-size:13px;color:#6b8085;white-space:nowrap;padding-bottom:14px}
.rg-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.rg-card{background:white;border:1px solid #dce8e6;border-radius:20px;overflow:hidden;box-shadow:0 8px 25px #103e4806}
.rg-card[hidden],.rg-guide [hidden],.rg-dialog [hidden]{display:none!important}
.rg-preview{position:relative;border:0;display:block;width:100%;padding:0;background:#edf5f2;cursor:pointer}
.rg-preview img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover}
.rg-preview:hover .rg-play{transform:translate(-50%,-50%) scale(1.08)}
.rg-preview:focus-visible,.rg-close:focus-visible{outline:3px solid #62dbbd;outline-offset:-3px}
.rg-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:55px;height:55px;border-radius:50%;background:#103e48ed;color:white;font-size:21px;transition:transform .15s}
.rg-duration{position:absolute;right:12px;bottom:12px;background:#103e48e8;color:#e5faf3;padding:5px 9px;font-size:12px;border-radius:8px}
.rg-cardbody{padding:21px 22px 24px}.rg-cardbody h2{font-size:20px;line-height:1.3;margin:8px 0}
.rg-cardbody>p:not(.rg-tag){font-size:14px;color:#6a7d81;line-height:1.6;min-height:45px;margin-bottom:18px}
.rg-tag{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#648076}
.rg-cardbody .btn{min-height:40px;font-size:13px}.rg-seen{display:inline-block;font-size:12px;color:#21705d;margin-left:12px}
.rg-note{display:flex;gap:10px;align-items:baseline;background:#eaf5ef;border:1px solid #d9eae0;border-radius:14px;padding:18px 20px;margin-top:28px;color:#365e54}
.rg-note p{margin:0;font-size:14px;line-height:1.7}.rg-note>strong{white-space:nowrap;font-size:14px}
.rg-empty{text-align:center;padding:45px 20px;background:white;border:1px solid #dce8e6;border-radius:18px}
.rg-empty p{color:#6a7d81;margin:12px 0 20px}
.rg-dialog{width:min(1140px,calc(100vw - 32px));max-width:1140px;max-height:94dvh;box-sizing:border-box;margin:auto;padding:24px;border:1px solid #cfdfda;border-radius:22px;color:#103e48;background:#f7faf8;overflow:auto}
.rg-dialog::backdrop{background:#082e38a6}
.rg-dialog-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:18px}
.rg-dialog-header h2{font-size:23px;margin:0 0 7px}.rg-dialog-header p{font-size:14px;line-height:1.6;color:#6a7d81;margin:0}
.rg-close{font-size:25px;border:0;background:#e8f0ed;cursor:pointer;color:#3e665e;flex:0 0 36px;width:36px;height:36px;border-radius:50%}
.rg-video{display:block;width:100%;max-height:70vh;border-radius:15px;background:#0c3037;aspect-ratio:8/5}
.rg-caption{color:#728884;font-size:12px;margin:11px 0 24px}
.rg-steps{list-style:none;margin:0;padding:0}.rg-steps li{display:flex;gap:16px;padding:15px 0}
.rg-steps li>span{display:grid;place-items:center;background:#d9efe7;border-radius:11px;flex:0 0 35px;width:35px;height:35px;font-weight:700}
.rg-steps h3{font-size:16px;margin:2px 0 7px}.rg-steps p{font-size:14px;line-height:1.7;color:#5c7378;margin:0}
.rg-practice{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 2px}
.rg-error{background:#fff3e5;padding:15px 18px;border-radius:12px;margin-top:12px;color:#76563c}
.rg-error p{line-height:1.6;margin-bottom:12px}.rg-error .btn{font-size:13px;margin-right:10px}
.rg-home-link{display:flex;gap:13px;align-items:center;padding:15px 18px;margin-bottom:24px;background:#edf7f3;border:1px solid #d3e9de;border-radius:13px;color:#315d52;text-decoration:none}
.rg-home-link .icon{flex:0 0 21px}.rg-home-link span:nth-child(2){flex:1;font-size:13px}
.rg-home-link strong{display:block;margin-bottom:3px;font-size:14px}.rg-home-link span:last-child{font-size:13px;font-weight:600;white-space:nowrap}
@media(max-width:1050px){.rg-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){
 .rg-standalone{padding:20px 16px 32px}.rg-public-header{margin-bottom:28px}
 .rg-intro{gap:13px}.rg-icon{width:43px;height:43px;flex-basis:43px;border-radius:14px;font-size:17px}
 .rg-intro h1{font-size:28px;letter-spacing:-.6px}.rg-intro .eyebrow{font-size:9px}
 .rg-intro p:last-child{font-size:14px}.rg-tools{display:block}.rg-tools>span{display:block;padding-top:13px;padding-bottom:0}
 .rg-grid{grid-template-columns:1fr;gap:20px}.rg-note{display:block}.rg-note strong{display:block;margin-bottom:7px}
 .rg-dialog{padding:15px;border-radius:15px;width:calc(100vw - 16px);max-height:95dvh}.rg-dialog-header h2{font-size:20px}
 .rg-video{border-radius:10px}.rg-practice .btn{width:100%}.rg-home-link{align-items:flex-start}.rg-home-link span:last-child{padding-top:3px}
}
@media(prefers-reduced-motion:reduce){.rg-play{transition:none}}

