/* RC20.2 - Imoral study skills studio, adult-only, isolated from family and progress engines */
.study-overlay[hidden]{display:none!important}
.study-overlay{position:fixed;inset:0;z-index:240;display:flex;align-items:center;justify-content:center;background:rgba(3,5,9,.87);padding:env(safe-area-inset-top) 9px env(safe-area-inset-bottom)}
.study-dialog{background:#121417;border:1px solid #6b4d49;border-radius:19px;box-shadow:0 16px 70px #000b;color:#f6f1ec;width:min(780px,100%);max-height:min(95dvh,980px);display:flex;flex-direction:column;overflow:hidden}
.study-head{background:#151518;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #453130;padding:16px 18px;flex:none}
.study-head h2{font:700 clamp(20px,5vw,30px)/1.12 Georgia,serif;margin:5px 0 0;color:#fff}
.study-head small{color:#e7a89e;letter-spacing:.1em;font-size:10px;font-weight:800}
.study-head button{border-radius:11px;flex:none;width:44px;height:44px;border:1px solid #785751;background:#281f24;color:#fff;font-size:21px}
.study-body{overflow-y:auto;overscroll-behavior:contain;padding:18px;flex:1}
.study-body p{line-height:1.56;color:#e2d9d4}
.study-body button,.study-body select,.study-body textarea,.study-body input{font:inherit}
.study-body button{cursor:pointer}
.study-body button:focus-visible,.study-body textarea:focus-visible,.study-body select:focus-visible,.study-head button:focus-visible{outline:3px solid #f2ca84;outline-offset:2px}
.study-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:16px}
.study-tabs button{min-width:0;padding:11px 5px;border-radius:10px;border:1px solid #5e5657;background:#242124;color:#eee;min-height:48px;font-size:13px}
.study-tabs button[aria-selected="true"]{border-color:#dd9e98;background:#653632;font-weight:800}
.study-card{padding:17px 15px;margin:12px 0;border:1px solid #625150;border-radius:14px;background:#1c1c20}
.study-card h3{font-family:Georgia,serif;font-size:22px;margin:0 0 9px}
.study-card h4{font-size:17px;margin:4px 0 9px}
.study-muted{color:#c7bbb4;font-size:13px}
.study-small{font-size:12px;color:#c4b6b2}
.study-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.study-field{display:grid;gap:7px;margin-bottom:12px;font-size:14px;font-weight:700}
.study-field input,.study-field select,.study-field textarea{color:#fff;background:#131a1e;border:1px solid #84706b;border-radius:10px;padding:11px;font-size:16px;max-width:100%;min-height:46px}
.study-field textarea{min-height:82px;resize:vertical;line-height:1.4}
.study-primary{background:#ab5149;color:#fff;border:1px solid #e2a59d;border-radius:12px;padding:12px 17px;min-height:47px;font-weight:750}
.study-secondary{background:#262930;color:#fff;border:1px solid #8d807d;border-radius:12px;padding:12px 14px;min-height:47px}
.study-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.study-actions>*{flex:1 1 150px}
.study-steps{display:grid;gap:10px;padding:0;margin:12px 0;list-style:none;counter-reset:s}
.study-steps li{counter-increment:s;display:flex;gap:12px;align-items:flex-start;background:#171f23;border:1px solid #455659;padding:12px;border-radius:12px;line-height:1.45}
.study-steps li:before{content:counter(s);display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#d0e9e2;color:#163b3c;font-size:13px;font-weight:800}
.study-timer{font:700 44px/1.2 ui-monospace,monospace;text-align:center;font-variant-numeric:tabular-nums;padding:12px;color:#f6e8df}
.study-banner{background:#172727;border:1px solid #547b78;padding:14px;border-radius:12px;line-height:1.5;margin:10px 0}
.study-banner strong{color:#d1f3e6}
.study-history{list-style:none;padding:0;display:grid;gap:9px}
.study-history li{border:1px solid #524846;padding:12px;border-radius:9px;background:#1e1c20;line-height:1.5;font-size:14px}
.study-source{font-size:12px;margin:7px 0;line-height:1.5}
.study-source a{color:#abdfdc;text-decoration:underline}
.study-badge{display:inline-block;color:#f4b4a8;font-size:11px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;margin-bottom:5px}
@media(max-width:550px){.study-dialog{max-height:100dvh;border-radius:13px}.study-body{padding:12px}.study-card{padding:13px 11px}.study-grid{grid-template-columns:1fr}.study-tabs{gap:4px}.study-tabs button{font-size:12px}.study-timer{font-size:38px}}
body.study-open #travessiaAudioPanel{display:none!important}
