/* v1.4.1: respect the HTML hidden attribute even when theme/Safari author CSS sets display */
#mrspPublicApp [hidden]{display:none!important}
.mrsp-simple{--gold:#d3aa50;--bg:#0c0d10;--panel:#14161b;--line:rgba(255,255,255,.11);max-width:1560px;margin:18px auto 46px;font-family:inherit;color:#fff}.mrsp-simple *{box-sizing:border-box}.mrsp-simple-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px;margin-bottom:12px;background:#111318;border:1px solid var(--line);border-radius:16px}.mrsp-simple-brand strong{display:block;font-size:22px;line-height:1.15}.mrsp-simple-brand span{display:block;color:#a9afb9;font-size:13px;margin-top:4px}.mrsp-simple-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mrsp-simple select,.mrsp-simple textarea,.mrsp-simple button{font:inherit}.mrsp-simple-actions select{max-width:260px;background:#202329;color:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 32px 9px 11px}.mrsp-btn{appearance:none;border:1px solid rgba(255,255,255,.15);background:#1e2127;color:#f4f4f4;border-radius:10px;padding:10px 14px;text-decoration:none!important;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1.15}.mrsp-btn:hover{color:#fff;border-color:rgba(255,255,255,.3)}.mrsp-btn-gold{background:linear-gradient(135deg,#f0c65f,#b9851e);border-color:#d7aa43;color:#1c1609!important}.mrsp-btn:disabled{opacity:.56;cursor:wait}.mrsp-present-btn.disabled{pointer-events:none;opacity:.42}.mrsp-input-card{background:#fff;color:#1b1e23;border-radius:15px;margin-bottom:12px;overflow:hidden;border:1px solid #e1e3e7;transition:.2s}.mrsp-input-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;border:0;background:#fff;color:#20242a;padding:14px 18px;cursor:pointer}.mrsp-input-toggle span{display:block}.mrsp-input-toggle strong{display:block;font-size:15px}.mrsp-input-toggle small{display:block;color:#747b86;margin-top:3px}.mrsp-input-toggle b{font-size:18px;transition:.2s}.mrsp-input-body{padding:0 18px 16px;max-height:310px;opacity:1;transition:max-height .25s ease,opacity .15s ease,padding .25s ease}.mrsp-input-card.is-collapsed .mrsp-input-body{max-height:0;opacity:0;padding-top:0;padding-bottom:0;overflow:hidden}.mrsp-input-card.is-collapsed .mrsp-input-toggle b{transform:rotate(180deg)}#mrspSource,#mrspAppendSource{display:block;width:100%!important;min-height:105px;max-height:180px;resize:vertical;background:#363636!important;color:#fff!important;border:1px solid #d1b56d!important;border-radius:12px!important;padding:13px 14px!important;font:inherit!important;line-height:1.5!important;margin:0!important}.mrsp-create-row{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;margin-top:10px}.mrsp-create-row label{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:700;color:#626975}.mrsp-create-row select{width:72px;background:#fff;color:#20242a;border:1px solid #cfd3da;border-radius:9px;padding:9px}.mrsp-create{min-height:41px}.mrsp-notice{margin-top:10px;border-radius:9px;padding:10px 12px;background:#edf7ee;color:#176b2c;font-size:13px}.mrsp-notice.error{background:#fff0f0;color:#a11e1e}.mrsp-preview-card{background:#0b0d11;border:1px solid rgba(255,255,255,.1);border-radius:16px;overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,.22)}.mrsp-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;background:#111318;border-bottom:1px solid var(--line)}.mrsp-preview-head strong{display:block;font-size:16px}.mrsp-preview-head small{display:block;color:#9399a4;margin-top:3px;font-size:12px}.mrsp-preview-stage{position:relative;width:100%;height:min(76vh,830px);min-height:610px;background:radial-gradient(circle at 72% 18%,rgba(211,170,80,.11),transparent 30%),#090b0e}.mrsp-preview-stage iframe{display:block;width:100%;height:100%;border:0;background:#090b0e}.mrsp-empty-preview{height:100%;display:flex;align-items:center;justify-content:center;text-align:center;padding:40px;color:#dfe3e8}.mrsp-empty-preview span{font-size:12px;letter-spacing:.17em;color:var(--gold);font-weight:800}.mrsp-empty-preview h2{color:#fff;font-size:clamp(30px,4vw,58px);margin:10px 0 12px;letter-spacing:-.035em}.mrsp-empty-preview p{color:#939aa5;font-size:17px;margin:0}.mrsp-progress-overlay{position:absolute;inset:0;z-index:8;background:rgba(8,10,13,.88);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:25px}.mrsp-progress-box{width:min(520px,92%);text-align:center;padding:32px;border-radius:18px;border:1px solid rgba(211,170,80,.22);background:#14171c;box-shadow:0 30px 90px rgba(0,0,0,.5)}.mrsp-progress-box strong{display:block;font-size:24px;margin-top:15px}.mrsp-progress-box small{display:block;color:#a8aeb8;margin-top:7px}.mrsp-progressbar{height:6px;margin-top:20px;background:#262a31;border-radius:99px;overflow:hidden}.mrsp-progressbar i{display:block;height:100%;width:5%;background:var(--gold);transition:width .3s;border-radius:99px}.mrsp-spinner{display:inline-block;width:30px;height:30px;border:3px solid rgba(211,170,80,.24);border-top-color:var(--gold);border-radius:50%;animation:mrspSpin .8s linear infinite}@keyframes mrspSpin{to{transform:rotate(360deg)}}
@media(max-width:850px){.mrsp-simple-top,.mrsp-preview-head{align-items:flex-start;flex-direction:column}.mrsp-simple-actions{width:100%}.mrsp-simple-actions select{flex:1;max-width:none}.mrsp-preview-stage{height:68vh;min-height:520px}}@media(max-width:600px){.mrsp-simple{margin:8px auto 30px}.mrsp-simple-top{border-radius:12px;padding:13px}.mrsp-simple-brand strong{font-size:19px}.mrsp-create-row{align-items:stretch;flex-wrap:wrap}.mrsp-create{flex:1}.mrsp-preview-stage{height:70vh;min-height:500px}.mrsp-edit-source{width:100%}}
/* v1.4 Auto Presenter */
.mrsp-create-row-auto{align-items:center;justify-content:space-between;gap:16px}
.mrsp-auto-hint{display:flex;align-items:center;gap:10px;min-width:0;color:#656d78;font-size:13px;line-height:1.35}
.mrsp-auto-hint strong{flex:0 0 auto;color:#8a651b;background:#fff4d2;border:1px solid #e8cf8f;border-radius:999px;padding:5px 8px;font-size:11px;letter-spacing:.08em}
.mrsp-auto-hint span{display:block}
@media(max-width:700px){.mrsp-create-row-auto{align-items:stretch;flex-direction:column}.mrsp-auto-hint{align-items:flex-start}.mrsp-create{width:100%}}
/* v1.8 — public cleanup + non-blocking visual generation */
.mrsp-btn-danger{background:#2a181b!important;border-color:rgba(231,94,104,.35)!important;color:#ffb8be!important}
.mrsp-btn-danger:hover{background:#3a1c21!important;border-color:rgba(231,94,104,.65)!important;color:#ffd7da!important}
.mrsp-preview-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.mrsp-live-status{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:#1a1d22;color:#aeb4be;font-size:11px;font-weight:750;white-space:nowrap}
.mrsp-live-status:before{content:'';width:7px;height:7px;border-radius:50%;background:#777f89;box-shadow:0 0 0 3px rgba(119,127,137,.12)}
.mrsp-live-status.is-working{color:#e4c77d;border-color:rgba(211,170,80,.24)}
.mrsp-live-status.is-working:before{background:#d3aa50;box-shadow:0 0 0 3px rgba(211,170,80,.14);animation:mrspPulse 1.1s ease-in-out infinite}
.mrsp-live-status.is-ready{color:#9ed6a8;border-color:rgba(99,190,116,.2)}
.mrsp-live-status.is-ready:before{background:#63be74;box-shadow:0 0 0 3px rgba(99,190,116,.12)}
.mrsp-live-status.is-error{color:#ffb8be;border-color:rgba(231,94,104,.25)}
.mrsp-live-status.is-error:before{background:#e75e68;box-shadow:0 0 0 3px rgba(231,94,104,.12)}
@keyframes mrspPulse{50%{opacity:.35;transform:scale(.75)}}
@media(max-width:850px){.mrsp-preview-actions{width:100%;justify-content:space-between}.mrsp-live-status{white-space:normal}}

/* v1.10 — Dark / Light mode */
.mrsp-theme-toggle{min-width:88px}
body.mrsp-builder-page-light{background:#f2f4f7!important;color:#1c2026!important}
body.mrsp-builder-page-light #outer-wrap,body.mrsp-builder-page-light #wrap,body.mrsp-builder-page-light #main,body.mrsp-builder-page-light .site-main,body.mrsp-builder-page-light .content-area{background:#f2f4f7!important}
.mrsp-simple.mrsp-theme-light{--bg:#f4f5f7;--panel:#fff;--line:rgba(27,31,38,.12);color:#1d2127}
.mrsp-simple.mrsp-theme-light .mrsp-simple-top{background:#fff;border-color:#dfe3e8;box-shadow:0 10px 30px rgba(26,31,38,.06)}
.mrsp-simple.mrsp-theme-light .mrsp-simple-brand span{color:#6c7480}
.mrsp-simple.mrsp-theme-light .mrsp-simple-actions select{background:#fff;color:#20242a;border-color:#d7dce2}
.mrsp-simple.mrsp-theme-light .mrsp-btn{background:#fff;color:#262b32;border-color:#d8dde3;box-shadow:0 2px 7px rgba(25,30,36,.04)}
.mrsp-simple.mrsp-theme-light .mrsp-btn:hover{color:#111;border-color:#bfc6cf;background:#f8f9fa}
.mrsp-simple.mrsp-theme-light .mrsp-btn-gold{background:linear-gradient(135deg,#f0c65f,#c38c22);color:#1c1609!important;border-color:#d3a546}
.mrsp-simple.mrsp-theme-light .mrsp-btn-danger{background:#fff2f3!important;color:#a72d36!important;border-color:#efc7ca!important}
.mrsp-simple.mrsp-theme-light .mrsp-input-card{background:#fff;color:#1b1e23;border-color:#dfe3e8;box-shadow:0 8px 26px rgba(25,30,36,.05)}
.mrsp-simple.mrsp-theme-light .mrsp-input-toggle{background:#fff;color:#20242a}
.mrsp-simple.mrsp-theme-light #mrspSource{background:#f7f8fa!important;color:#20242a!important;border-color:#d7bd76!important}
.mrsp-simple.mrsp-theme-light .mrsp-preview-card{background:#eef1f4;border-color:#d9dde3;box-shadow:0 18px 50px rgba(31,37,44,.10)}
.mrsp-simple.mrsp-theme-light .mrsp-preview-head{background:#fff;border-color:#dde2e7;color:#22272d}
.mrsp-simple.mrsp-theme-light .mrsp-preview-head small{color:#6d7580}
.mrsp-simple.mrsp-theme-light .mrsp-preview-stage,.mrsp-simple.mrsp-theme-light .mrsp-preview-stage iframe{background:#f3f4f6}
.mrsp-simple.mrsp-theme-light .mrsp-empty-preview{color:#353b43;background:#f3f4f6}
.mrsp-simple.mrsp-theme-light .mrsp-empty-preview h2{color:#1c2026}
.mrsp-simple.mrsp-theme-light .mrsp-empty-preview p{color:#68717d}
.mrsp-simple.mrsp-theme-light .mrsp-live-status{background:#f6f7f9;color:#646d78;border-color:#dfe3e8}
.mrsp-simple.mrsp-theme-light .mrsp-progress-overlay{background:rgba(245,247,249,.90)}
.mrsp-simple.mrsp-theme-light .mrsp-progress-box{background:#fff;color:#20242a;border-color:#dfc786;box-shadow:0 30px 90px rgba(35,41,48,.14)}
.mrsp-simple.mrsp-theme-light .mrsp-progress-box small{color:#69717c}
.mrsp-simple.mrsp-theme-light .mrsp-progressbar{background:#e7e9ec}

/* v1.14 — seminar / section library */
.mrsp-library-field{display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid rgba(255,255,255,.10);background:#171a1f;border-radius:11px}
.mrsp-library-field>span{font-size:10px;line-height:1;text-transform:uppercase;letter-spacing:.09em;color:#8f97a3;font-weight:800;white-space:nowrap}
.mrsp-library-field select{min-width:150px;max-width:230px!important;padding:7px 30px 7px 9px!important;border:0!important;background:#202329!important}
.mrsp-simple.mrsp-theme-light .mrsp-library-field{background:#f7f8fa;border-color:#dde2e7}
.mrsp-simple.mrsp-theme-light .mrsp-library-field>span{color:#6c7480}
.mrsp-simple.mrsp-theme-light .mrsp-library-field select{background:#fff!important;color:#20242a!important}
@media(max-width:1050px){.mrsp-library-field{flex:1 1 230px}.mrsp-library-field select{width:100%;max-width:none!important}}
@media(max-width:650px){.mrsp-library-field{width:100%;flex-basis:100%}.mrsp-simple-actions .mrsp-btn{flex:1}}

/* v1.15 — Pro creation modes */
.mrsp-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;padding:5px;border:1px solid #d9dde3;border-radius:13px;background:#f3f4f6}
.mrsp-mode-option{appearance:none;border:1px solid transparent;background:transparent;color:#5d6570;border-radius:10px;padding:10px 12px;text-align:left;cursor:pointer;transition:.18s ease;font:inherit}
.mrsp-mode-option strong{display:block;font-size:13px;color:#30353c;margin-bottom:2px}
.mrsp-mode-option small{display:block;font-size:11px;line-height:1.35;color:#757d88}
.mrsp-mode-option:hover{background:rgba(255,255,255,.72)}
.mrsp-mode-option.is-active{background:#fff;border-color:#d2ad55;box-shadow:0 5px 16px rgba(38,42,47,.08)}
.mrsp-mode-option.is-active strong{color:#8a6419}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-switch{background:#191c21;border-color:rgba(255,255,255,.10)}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option{color:#afb5be}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option strong{color:#e2e5e9}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option small{color:#929aa5}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option:hover{background:#22262c}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option.is-active{background:#25231e;border-color:rgba(211,170,80,.56);box-shadow:none}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option.is-active strong{color:#edcb7a}
@media(max-width:650px){.mrsp-mode-switch{grid-template-columns:1fr}.mrsp-mode-option{padding:9px 10px}}
.mrsp-style-switch{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin-top:12px}
@media(max-width:900px){.mrsp-style-switch{grid-template-columns:1fr}}


/* v1.16.1 — clarity + responsive polish */
.mrsp-simple{padding-inline:clamp(6px,1.1vw,18px)}
.mrsp-simple-top{position:relative;align-items:flex-start;padding:18px 20px;gap:20px}
.mrsp-simple-brand{flex:1 1 320px;min-width:240px;padding-top:3px}
.mrsp-simple-actions{flex:2 1 760px;justify-content:flex-end;align-items:flex-end;row-gap:10px}
.mrsp-library-field{min-height:46px}
.mrsp-library-field select{min-height:34px}

/* The old 310px limit clipped the new controls. */
.mrsp-input-body{max-height:620px!important;padding:0 18px 18px}
.mrsp-input-card.is-collapsed .mrsp-input-body{max-height:0!important}

.mrsp-setting-label{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:14px 4px 6px;color:#59616c}
.mrsp-setting-label strong{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:#272d34}
.mrsp-setting-label span{font-size:11px;color:#7b838e;text-align:right}
.mrsp-setting-label-spaced{margin-top:16px}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-setting-label{color:#aab1bb}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-setting-label strong{color:#eef0f3}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-setting-label span{color:#8f98a4}

/* Reset theme/global button styling so inactive/active state is unmistakable. */
.mrsp-mode-switch{gap:10px!important;padding:6px!important;background:#eef1f4!important;border:1px solid #d8dde4!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.mrsp-mode-option{position:relative!important;min-height:64px!important;border:1px solid #d6dbe2!important;background:#fff!important;background-image:none!important;color:#4f5864!important;box-shadow:none!important;padding:12px 42px 12px 14px!important;text-shadow:none!important;opacity:1!important}
.mrsp-mode-option strong{color:#242a31!important;font-size:13px!important;line-height:1.2!important}
.mrsp-mode-option small{color:#6f7884!important;font-size:11px!important;line-height:1.35!important;margin-top:3px!important}
.mrsp-mode-option:hover{background:#faf7ef!important;border-color:#d3aa50!important;transform:translateY(-1px)}
.mrsp-mode-option.is-active{background:#171a1f!important;background-image:none!important;border:2px solid #d3aa50!important;box-shadow:0 8px 24px rgba(30,34,40,.15)!important;padding:11px 41px 11px 13px!important}
.mrsp-mode-option.is-active strong{color:#fff!important}
.mrsp-mode-option.is-active small{color:#d8dde5!important}
.mrsp-mode-option.is-active:after{content:"✓";position:absolute;right:13px;top:50%;transform:translateY(-50%);width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#d3aa50;color:#17130b;font-weight:950;font-size:13px;box-shadow:0 0 0 4px rgba(211,170,80,.12)}
.mrsp-mode-option:focus-visible{outline:3px solid rgba(211,170,80,.28)!important;outline-offset:2px!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-switch{background:#111419!important;border-color:rgba(255,255,255,.10)!important;box-shadow:none}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option{background:#1a1e24!important;border-color:rgba(255,255,255,.10)!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option strong{color:#e9edf2!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option small{color:#99a2ae!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option:hover{background:#222730!important;border-color:#d3aa50!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option.is-active{background:#332812!important;border-color:#efc75f!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option.is-active strong{color:#fff6dc!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-mode-option.is-active small{color:#ead7a8!important}

.mrsp-create-row-auto{border-top:1px solid #e1e5ea;padding-top:13px;margin-top:15px}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-create-row-auto{border-color:rgba(255,255,255,.10)}
.mrsp-create{min-width:220px;white-space:nowrap}
.mrsp-preview-card{margin-bottom:24px}

/* Tablet */
@media(max-width:1100px){
  .mrsp-simple{padding-inline:8px;margin-top:10px}
  .mrsp-simple-top{flex-direction:column;gap:12px}
  .mrsp-simple-brand{flex:auto;width:100%}
  .mrsp-simple-actions{width:100%;justify-content:flex-start;align-items:stretch}
  .mrsp-library-field{flex:1 1 calc(50% - 6px)}
  .mrsp-library-field select{min-width:0!important;width:100%!important}
  .mrsp-preview-stage{height:min(68vh,700px);min-height:520px}
}

/* Phone */
@media(max-width:700px){
  .mrsp-simple{width:100%;margin:4px auto 20px;padding-inline:5px}
  .mrsp-simple-top{padding:13px 12px;border-radius:13px;margin-bottom:8px}
  .mrsp-simple-brand strong{font-size:20px}
  .mrsp-simple-brand span{font-size:12px;line-height:1.35}
  .mrsp-simple-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%}
  .mrsp-library-field{grid-column:1/-1;width:100%;min-height:44px;padding:5px 7px}
  .mrsp-library-field>span{min-width:68px}
  .mrsp-library-field select{font-size:14px!important;height:34px!important}
  .mrsp-simple-actions>.mrsp-btn{width:100%!important;min-height:42px!important;padding:9px 8px!important;font-size:13px!important;white-space:normal!important;text-align:center!important}
  #mrspThemeToggle,#mrspPresent{grid-column:auto}
  #mrspDelete{grid-column:1/-1}
  .mrsp-input-card{border-radius:13px;margin-bottom:8px}
  .mrsp-input-toggle{padding:12px 13px}
  .mrsp-input-toggle strong{font-size:14px}
  .mrsp-input-toggle small{font-size:11px;line-height:1.3}
  .mrsp-input-body{padding:0 11px 13px!important;max-height:1100px!important}
  #mrspSource{min-height:150px!important;max-height:280px!important;padding:11px!important;font-size:14px!important}
  .mrsp-setting-label{display:block;margin:13px 2px 6px}
  .mrsp-setting-label strong{display:block;font-size:11px;margin-bottom:2px}
  .mrsp-setting-label span{display:block;text-align:left;font-size:10.5px;line-height:1.35}
  .mrsp-mode-switch,.mrsp-style-switch{grid-template-columns:1fr!important;gap:7px!important;padding:5px!important;margin-top:0!important}
  .mrsp-mode-option{min-height:58px!important;padding:10px 40px 10px 12px!important;border-radius:9px!important}
  .mrsp-mode-option.is-active{padding:9px 39px 9px 11px!important}
  .mrsp-mode-option strong{font-size:12.5px!important}
  .mrsp-mode-option small{font-size:10.5px!important}
  .mrsp-mode-option.is-active:after{right:11px;width:21px;height:21px;font-size:12px}
  .mrsp-create-row-auto{padding-top:11px;margin-top:12px;gap:10px}
  .mrsp-auto-hint{font-size:11px;line-height:1.35}
  .mrsp-create{width:100%!important;min-width:0!important;min-height:46px!important;font-size:14px!important}
  .mrsp-preview-card{border-radius:13px}
  .mrsp-preview-head{padding:11px 12px;gap:9px}
  .mrsp-preview-head strong{font-size:14px}
  .mrsp-preview-head small{font-size:10.5px;line-height:1.35}
  .mrsp-preview-actions{display:grid;grid-template-columns:1fr auto;gap:7px;width:100%}
  .mrsp-live-status{min-width:0;white-space:normal;font-size:10px;line-height:1.25;padding:6px 8px}
  .mrsp-edit-source{width:auto!important;min-height:36px!important;font-size:12px!important}
  .mrsp-preview-stage{height:68dvh;min-height:430px;max-height:680px}
  .mrsp-progress-box{padding:22px 16px;border-radius:14px}
  .mrsp-progress-box strong{font-size:19px}
  .mrsp-progress-box small{font-size:11px;line-height:1.4}
}

@media(max-width:390px){
  .mrsp-simple-actions{grid-template-columns:1fr!important}
  #mrspDelete,#mrspThemeToggle,#mrspPresent{grid-column:1}
  .mrsp-preview-actions{grid-template-columns:1fr}
  .mrsp-edit-source{width:100%!important}
  .mrsp-preview-stage{height:64dvh;min-height:390px}
}

/* v1.17 — private presentation access code */
.mrsp-access-gate[hidden],.mrsp-access-modal[hidden],#mrspPublicApp[hidden]{display:none!important}
.mrsp-access-gate{min-height:68vh;display:grid;place-items:center;padding:28px 16px;font-family:inherit}
.mrsp-access-card{width:min(620px,100%);padding:30px;border-radius:22px;background:#111318;color:#fff;border:1px solid rgba(211,170,80,.24);box-shadow:0 28px 90px rgba(0,0,0,.28)}
.mrsp-access-kicker{font-size:11px;letter-spacing:.16em;font-weight:900;color:#d3aa50;margin-bottom:9px}
.mrsp-access-card h2,.mrsp-access-modal-card h2{margin:0 0 9px;font-size:clamp(26px,4vw,40px);line-height:1.08;letter-spacing:-.035em;color:#fff}
.mrsp-access-card p,.mrsp-access-modal-card p{margin:0;color:#aab0ba;line-height:1.55}
.mrsp-access-login-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;margin-top:22px}
.mrsp-access-login-row input{width:100%;min-height:46px;border-radius:11px;border:1px solid rgba(255,255,255,.15);background:#202329;color:#fff;padding:10px 13px;font:inherit;font-weight:800;letter-spacing:.06em;text-transform:uppercase;outline:none}
.mrsp-access-login-row input:focus{border-color:#d3aa50;box-shadow:0 0 0 3px rgba(211,170,80,.12)}
.mrsp-access-error{margin-top:10px;padding:10px 12px;border-radius:10px;background:#32191d;color:#ffbdc2;border:1px solid rgba(231,94,104,.28);font-size:13px}
.mrsp-access-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:#747c87;font-size:12px;text-transform:uppercase;letter-spacing:.12em}
.mrsp-access-divider:before,.mrsp-access-divider:after{content:"";height:1px;flex:1;background:rgba(255,255,255,.10)}
.mrsp-access-new{width:100%;min-height:46px}
.mrsp-access-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:20px;background:rgba(6,7,9,.78);backdrop-filter:blur(8px)}
.mrsp-access-modal-card{width:min(560px,100%);padding:28px;border-radius:20px;background:#14171c;color:#fff;border:1px solid rgba(211,170,80,.30);box-shadow:0 30px 100px rgba(0,0,0,.5)}
.mrsp-access-code-value{margin:20px 0;padding:16px;border-radius:13px;background:#090b0e;border:1px solid rgba(211,170,80,.35);color:#f2cc6d;font-size:clamp(22px,5vw,34px);font-weight:950;letter-spacing:.08em;text-align:center;user-select:all}
.mrsp-access-modal-actions{display:flex;gap:9px;flex-wrap:wrap}
.mrsp-access-modal-actions .mrsp-btn{flex:1;min-height:43px}
.mrsp-access-modal-card small{display:block;margin-top:13px;color:#89919c;line-height:1.45}
@media(max-width:620px){
 .mrsp-access-card,.mrsp-access-modal-card{padding:21px 16px;border-radius:16px}
 .mrsp-access-login-row{grid-template-columns:1fr}
 .mrsp-access-login-row .mrsp-btn{width:100%}
 .mrsp-access-modal-actions{display:grid;grid-template-columns:1fr}
}

/* v1.19 — user-selected presentation code */
.mrsp-access-new-label{margin:0 0 8px!important;color:#d8dde5!important;font-size:13px;font-weight:800}
.mrsp-access-new-row{margin-top:0}
.mrsp-access-help{display:block;margin-top:8px;color:#89919c;line-height:1.45}

/* v1.20 — direct editing of existing slides + camera photo capture */
body.mrsp-slide-editor-open{overflow:hidden}
.mrsp-slide-editor[hidden]{display:none!important}
.mrsp-slide-editor{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:18px;background:rgba(5,7,10,.82);backdrop-filter:blur(10px)}
.mrsp-slide-editor-card{width:min(1120px,96vw);max-height:94vh;overflow:auto;border:1px solid rgba(211,170,80,.28);border-radius:20px;background:#12151a;color:#fff;box-shadow:0 34px 120px rgba(0,0,0,.58);padding:22px}
.mrsp-slide-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.mrsp-slide-editor-head h2{margin:0;color:#fff;font-size:clamp(23px,3vw,34px);line-height:1.08;letter-spacing:-.025em}
.mrsp-slide-editor-close{appearance:none;border:1px solid rgba(255,255,255,.14);background:#1d2128;color:#fff;width:40px;height:40px;border-radius:50%;font-size:27px;line-height:1;cursor:pointer}
.mrsp-slide-editor-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:20px}
.mrsp-slide-editor-fields{display:grid;gap:12px}
.mrsp-slide-editor-fields label,.mrsp-slide-editor-image>label{display:grid;gap:6px;color:#e8ebef;font-size:12px;font-weight:850;letter-spacing:.02em}
.mrsp-slide-editor-fields label small{font-weight:500;color:#8f98a4}
.mrsp-slide-editor-fields input,.mrsp-slide-editor-fields textarea,.mrsp-slide-editor-fields select{width:100%;border:1px solid rgba(255,255,255,.13);border-radius:11px;background:#20242b;color:#fff;padding:11px 12px;font:inherit;outline:none}
.mrsp-slide-editor-fields input:focus,.mrsp-slide-editor-fields textarea:focus,.mrsp-slide-editor-fields select:focus{border-color:#d3aa50;box-shadow:0 0 0 3px rgba(211,170,80,.12)}
.mrsp-slide-editor-fields textarea{resize:vertical;line-height:1.45}
.mrsp-slide-editor-image{min-width:0}
.mrsp-slide-photo-preview{width:100%;aspect-ratio:4/3;margin-top:6px;padding:0;overflow:hidden;border-radius:15px;border:1px dashed rgba(211,170,80,.45);background:#0a0c10;color:#c7ccd4;display:grid;place-items:center;cursor:pointer}
.mrsp-slide-photo-preview span{text-align:center;font-size:14px;line-height:1.5}
.mrsp-slide-photo-preview img{display:block;width:100%;height:100%;object-fit:contain;background:#090b0e}
.mrsp-slide-photo-preview.has-image{border-style:solid}
.mrsp-slide-photo-actions{display:grid;gap:8px;margin-top:10px}
.mrsp-slide-photo-actions .mrsp-btn{width:100%;min-height:43px}
.mrsp-slide-camera-help{display:block;margin-top:9px;color:#8e97a3;line-height:1.45}
.mrsp-slide-editor-footer{display:flex;justify-content:flex-end;gap:9px;margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.10)}
.mrsp-slide-editor-footer .mrsp-btn{min-width:150px}
@media(max-width:820px){
 .mrsp-slide-editor{padding:8px}
 .mrsp-slide-editor-card{width:100%;max-height:97dvh;padding:16px;border-radius:15px}
 .mrsp-slide-editor-grid{grid-template-columns:1fr}
 .mrsp-slide-editor-image{order:-1}
 .mrsp-slide-photo-preview{aspect-ratio:16/10;max-height:42dvh}
 .mrsp-slide-editor-footer{position:sticky;bottom:-16px;background:#12151a;padding:12px 0 16px;z-index:2}
 .mrsp-slide-editor-footer .mrsp-btn{flex:1;min-width:0}
}
@media(max-width:700px){
 .mrsp-preview-actions{grid-template-columns:1fr 1fr!important}
 .mrsp-live-status{grid-column:1/-1}
 .mrsp-edit-slides,.mrsp-edit-source{width:100%!important}
}
.mrsp-camera-live[hidden]{display:none!important}
.mrsp-camera-live{margin-top:6px;border-radius:15px;overflow:hidden;border:1px solid rgba(211,170,80,.45);background:#05070a}
.mrsp-camera-live video{display:block;width:100%;max-height:52vh;aspect-ratio:4/3;object-fit:cover;background:#000}
.mrsp-camera-live-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px;background:#0d1014}
.mrsp-camera-live-actions .mrsp-btn{width:100%;min-height:43px}
@media(max-width:560px){.mrsp-camera-live-actions{grid-template-columns:1fr}}

/* v1.32.2 — compact, cleaner pre-presentation workspace */
@media(min-width:851px){
  .mrsp-preview-card{
    max-width:1240px;
    margin:18px auto 30px;
    padding:12px;
    border-radius:20px;
    background:linear-gradient(180deg,#11141a,#0b0d11);
    border:1px solid rgba(211,170,80,.18);
    box-shadow:0 24px 70px rgba(0,0,0,.24);
    overflow:visible;
  }
  .mrsp-preview-head{
    position:relative;
    z-index:3;
    margin:0 0 12px;
    padding:11px 13px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:13px;
    background:#15181e;
    box-shadow:none;
  }
  .mrsp-preview-head strong{font-size:15px}
  .mrsp-preview-head small{font-size:11px}
  .mrsp-preview-actions{gap:7px}
  .mrsp-preview-actions .mrsp-btn{min-height:36px;padding:8px 12px;font-size:12px}
  .mrsp-live-status{padding:6px 9px;font-size:10px}
  .mrsp-preview-stage{
    width:min(100%,980px);
    height:auto!important;
    min-height:0!important;
    aspect-ratio:16/9;
    margin:0 auto;
    border:1px solid rgba(211,170,80,.24);
    border-radius:16px;
    overflow:hidden;
    background:#080a0d;
    box-shadow:0 18px 48px rgba(0,0,0,.36);
  }
  .mrsp-preview-stage iframe{border-radius:15px}
}

@media(min-width:851px) and (max-height:900px){
  .mrsp-preview-card{max-width:1120px}
  .mrsp-preview-stage{width:min(100%,900px)}
}

@media(max-width:850px){
  .mrsp-preview-card{margin:10px 4px 22px;padding:8px;border-radius:15px;background:#0d1014}
  .mrsp-preview-head{position:sticky;top:0;z-index:6;border-radius:11px;margin-bottom:8px;background:rgba(17,19,24,.97);backdrop-filter:blur(12px)}
  .mrsp-preview-stage{height:58dvh!important;min-height:390px!important;max-height:560px!important;border-radius:12px;overflow:hidden;border:1px solid rgba(211,170,80,.20)}
  .mrsp-preview-stage iframe{border-radius:11px}
}

@media(max-width:520px){
  .mrsp-preview-card{margin-inline:0;padding:6px}
  .mrsp-preview-head{padding:9px 10px}
  .mrsp-preview-head>div:first-child small{display:none}
  .mrsp-preview-actions{grid-template-columns:1fr!important}
  .mrsp-live-status{grid-column:1!important}
  .mrsp-edit-source{width:100%!important}
  .mrsp-preview-stage{height:54dvh!important;min-height:360px!important;max-height:500px!important}
}


/* v1.33.0 — mobile workspace: no white gaps, reliable pseudo-fullscreen, easier editing */
@media(max-width:850px){
 .mrsp-simple{width:100%!important;max-width:none!important;margin:0 auto 16px!important;padding:0 5px!important;background:transparent!important}
 .mrsp-simple-top{margin:0 0 7px!important;padding:10px!important;border-radius:12px!important}
 .mrsp-preview-card{margin:6px 0 12px!important;padding:5px!important;border-radius:13px!important;background:#0b0e12!important}
 .mrsp-preview-head{padding:8px 9px!important;margin-bottom:5px!important;border-radius:9px!important}
 .mrsp-preview-actions{gap:5px!important}
 .mrsp-preview-actions .mrsp-btn{min-height:38px!important;padding:8px 10px!important}
 .mrsp-preview-stage{height:min(62dvh,560px)!important;min-height:0!important;max-height:none!important;border-radius:10px!important;background:#080a0d!important}
 .mrsp-preview-stage iframe{width:100%!important;height:100%!important;border-radius:9px!important;background:#080a0d!important}
 .mrsp-input-card{margin-bottom:7px!important}
 .mrsp-slide-editor{padding:0!important;place-items:stretch!important;background:#080a0d!important}
 .mrsp-slide-editor-card{width:100%!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;padding:12px!important;padding-top:max(12px,env(safe-area-inset-top))!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
 .mrsp-slide-editor-head{position:sticky;top:-12px;z-index:5;margin:-12px -12px 10px;padding:12px;background:#12151a;border-bottom:1px solid rgba(255,255,255,.08)}
 .mrsp-slide-editor-grid{grid-template-columns:1fr!important;gap:10px!important}
 .mrsp-slide-editor-image{order:0!important}
 .mrsp-slide-photo-preview{height:180px!important;max-height:30dvh!important;aspect-ratio:auto!important}
 .mrsp-slide-editor-footer{bottom:-12px!important;margin-top:10px!important;padding:10px 0 12px!important}
}
@media(max-width:520px){
 .mrsp-preview-head>div:first-child{display:none!important}
 .mrsp-preview-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important}
 .mrsp-live-status{font-size:9px!important;line-height:1.2!important;max-width:46vw!important}
 .mrsp-edit-source{width:auto!important;min-width:88px!important}
 .mrsp-preview-stage{height:min(60dvh,520px)!important;min-height:0!important}
}
body.mrsp-mobile-preview-fullscreen{overflow:hidden!important;touch-action:none!important}
body.mrsp-mobile-preview-fullscreen .mrsp-preview-card{position:fixed!important;inset:0!important;z-index:2147482000!important;width:100vw!important;height:100dvh!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#080a0d!important;box-shadow:none!important}
body.mrsp-mobile-preview-fullscreen .mrsp-preview-head{display:none!important}
body.mrsp-mobile-preview-fullscreen .mrsp-preview-stage{width:100vw!important;height:100dvh!important;min-height:0!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;background:#080a0d!important}
body.mrsp-mobile-preview-fullscreen .mrsp-preview-stage iframe{width:100%!important;height:100%!important;border:0!important;border-radius:0!important}

/* v1.33.1 — mobile EDIT stays in normal page flow. This avoids Safari's blank/white fixed-iframe bug. */
@media(max-width:850px){
 body.mrsp-mobile-edit-focus{overflow:auto!important;touch-action:auto!important;background:#080a0d!important}
 body.mrsp-mobile-edit-focus .mrsp-preview-card{position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;height:auto!important;max-width:none!important;margin:4px 0 12px!important;padding:4px!important;border:0!important;border-radius:12px!important;background:#080a0d!important;box-shadow:none!important}
 body.mrsp-mobile-edit-focus .mrsp-preview-head{display:none!important}
 body.mrsp-mobile-edit-focus .mrsp-preview-stage{display:block!important;width:100%!important;height:calc(100dvh - max(18px,env(safe-area-inset-top)) - max(18px,env(safe-area-inset-bottom)))!important;min-height:520px!important;max-height:none!important;margin:0!important;border:0!important;border-radius:10px!important;background:#080a0d!important;overflow:hidden!important}
 body.mrsp-mobile-edit-focus .mrsp-preview-stage iframe{display:block!important;width:100%!important;height:100%!important;min-height:100%!important;border:0!important;border-radius:10px!important;background:#080a0d!important}
}
@media(max-width:520px){
 body.mrsp-mobile-edit-focus .mrsp-preview-stage{height:calc(100dvh - 12px)!important;min-height:460px!important}
}


/* v1.33.5 — mobile builder cleanup.
   Remove WordPress/theme white gutters and oversized vertical whitespace only on Presenter. */
@media(max-width:850px){
  html:has(body.mrsp-builder-page),
  body.mrsp-builder-page{
    background:#080a0d!important;
  }

  body.mrsp-builder-page #outer-wrap,
  body.mrsp-builder-page #wrap,
  body.mrsp-builder-page #main,
  body.mrsp-builder-page #content-wrap,
  body.mrsp-builder-page #primary,
  body.mrsp-builder-page .site-main,
  body.mrsp-builder-page .site-content,
  body.mrsp-builder-page .content-area,
  body.mrsp-builder-page .container,
  body.mrsp-builder-page .content-wrap,
  body.mrsp-builder-page .entry-content,
  body.mrsp-builder-page article,
  body.mrsp-builder-page .page-content{
    background:#080a0d!important;
  }

  body.mrsp-builder-page #main,
  body.mrsp-builder-page #content-wrap,
  body.mrsp-builder-page #primary,
  body.mrsp-builder-page .site-main,
  body.mrsp-builder-page .site-content,
  body.mrsp-builder-page .content-area,
  body.mrsp-builder-page .content-wrap,
  body.mrsp-builder-page .entry-content,
  body.mrsp-builder-page .page-content{
    margin-top:0!important;
    padding-top:0!important;
  }

  body.mrsp-builder-page .mrsp-simple{
    margin:0 auto 10px!important;
    padding:3px 4px 8px!important;
  }

  /* On a phone the app name/description wastes a lot of vertical space.
     The controls themselves are the useful part. */
  body.mrsp-builder-page .mrsp-simple-brand{
    display:none!important;
  }

  body.mrsp-builder-page .mrsp-simple-top{
    gap:5px!important;
    margin:0 0 4px!important;
    padding:6px!important;
    border-radius:10px!important;
  }

  body.mrsp-builder-page .mrsp-simple-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:5px!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
  }

  body.mrsp-builder-page .mrsp-library-field{
    grid-column:1/-1!important;
    min-height:38px!important;
    padding:3px 5px!important;
    border-radius:8px!important;
    gap:5px!important;
  }

  body.mrsp-builder-page .mrsp-library-field>span{
    min-width:62px!important;
    font-size:9px!important;
  }

  body.mrsp-builder-page .mrsp-library-field select{
    height:31px!important;
    min-height:31px!important;
    padding:5px 26px 5px 7px!important;
    font-size:12px!important;
  }

  body.mrsp-builder-page .mrsp-simple-actions>.mrsp-btn{
    min-height:36px!important;
    padding:7px 6px!important;
    font-size:11px!important;
    border-radius:8px!important;
  }

  /* The chapter card must start immediately below the controls. */
  body.mrsp-builder-page .mrsp-input-card{
    margin:0 0 5px!important;
    border-radius:10px!important;
  }

  body.mrsp-builder-page .mrsp-input-toggle{
    min-height:0!important;
    padding:9px 10px!important;
    gap:8px!important;
  }

  body.mrsp-builder-page .mrsp-input-toggle strong{
    font-size:13px!important;
    line-height:1.2!important;
  }

  body.mrsp-builder-page .mrsp-input-toggle small{
    margin-top:1px!important;
    font-size:9.5px!important;
    line-height:1.2!important;
  }

  body.mrsp-builder-page .mrsp-input-body{
    padding:0 8px 9px!important;
  }

  body.mrsp-builder-page .mrsp-input-card.is-collapsed .mrsp-input-body{
    display:none!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
  }

  body.mrsp-builder-page #mrspSource{
    min-height:112px!important;
    max-height:210px!important;
    padding:9px!important;
    font-size:13px!important;
  }

  body.mrsp-builder-page .mrsp-setting-label{
    margin:9px 2px 4px!important;
  }

  body.mrsp-builder-page .mrsp-mode-switch,
  body.mrsp-builder-page .mrsp-style-switch{
    gap:5px!important;
    padding:4px!important;
  }

  body.mrsp-builder-page .mrsp-mode-option{
    min-height:50px!important;
    padding:8px 36px 8px 9px!important;
  }

  body.mrsp-builder-page .mrsp-mode-option.is-active{
    padding:7px 35px 7px 8px!important;
  }

  body.mrsp-builder-page .mrsp-create-row-auto{
    margin-top:8px!important;
    padding-top:8px!important;
  }

  body.mrsp-builder-page .mrsp-preview-card{
    margin:4px 0 8px!important;
  }
}

@media(max-width:520px){
  body.mrsp-builder-page .mrsp-simple-actions{
    grid-template-columns:1fr 1fr!important;
  }

  body.mrsp-builder-page #mrspDelete,
  body.mrsp-builder-page #mrspPresent{
    grid-column:auto!important;
  }

  body.mrsp-builder-page .mrsp-preview-stage{
    height:52dvh!important;
    min-height:0!important;
  }
}


/* v1.34.1 — final mobile builder cleanup. Scoped only to Presenter page. */
@media(max-width:850px){
  html:has(body.mrsp-builder-page),
  body.mrsp-builder-page{
    margin:0!important;
    padding:0!important;
    background:#080a0d!important;
  }

  body.mrsp-builder-page .page-header,
  body.mrsp-builder-page .page-header-title,
  body.mrsp-builder-page .entry-header,
  body.mrsp-builder-page .page-title,
  body.mrsp-builder-page .site-breadcrumbs{
    display:none!important;
  }

  body.mrsp-builder-page #outer-wrap,
  body.mrsp-builder-page #wrap,
  body.mrsp-builder-page #main,
  body.mrsp-builder-page #content,
  body.mrsp-builder-page #content-wrap,
  body.mrsp-builder-page #primary,
  body.mrsp-builder-page .site-content,
  body.mrsp-builder-page .site-main,
  body.mrsp-builder-page .content-area,
  body.mrsp-builder-page .content-wrap,
  body.mrsp-builder-page .entry-content,
  body.mrsp-builder-page .page-content,
  body.mrsp-builder-page article{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:#080a0d!important;
  }

  body.mrsp-builder-page .container{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0 4px!important;
    background:#080a0d!important;
  }

  body.mrsp-builder-page .mrsp-simple{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:2px 3px 8px!important;
  }

  body.mrsp-builder-page .mrsp-simple-top{
    margin:0 0 4px!important;
  }

  body.mrsp-builder-page .mrsp-input-card{
    margin:0 0 4px!important;
  }

  body.mrsp-builder-page .mrsp-preview-card{
    margin:3px 0 7px!important;
  }

  body.mrsp-builder-page:not(.mrsp-mobile-edit-focus):not(.mrsp-mobile-preview-fullscreen) .mrsp-preview-stage{
    height:min(56dvh,520px)!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* iPhone Safari fallback: parent preview really fills all usable viewport pixels. */
body.mrsp-mobile-preview-fullscreen{
  position:fixed!important;
  inset:0!important;
  z-index:2147481000!important;
  width:100vw!important;
  height:var(--mrsp-builder-vh,100dvh)!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#080a0d!important;
  overscroll-behavior:none!important;
}

body.mrsp-mobile-preview-fullscreen .mrsp-preview-card{
  position:fixed!important;
  inset:0!important;
  z-index:2147482000!important;
  width:100vw!important;
  height:var(--mrsp-builder-vh,100dvh)!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#080a0d!important;
}

body.mrsp-mobile-preview-fullscreen .mrsp-preview-head{
  display:none!important;
}

body.mrsp-mobile-preview-fullscreen .mrsp-preview-stage{
  width:100vw!important;
  height:var(--mrsp-builder-vh,100dvh)!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#080a0d!important;
}

body.mrsp-mobile-preview-fullscreen .mrsp-preview-stage iframe{
  display:block!important;
  width:100vw!important;
  height:var(--mrsp-builder-vh,100dvh)!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#080a0d!important;
}


/* v1.35.1 — iPad native fullscreen lives on the parent preview card.
   The iframe can rerender EDIT mode without causing WebKit to leave fullscreen. */
.mrsp-preview-card:fullscreen,
.mrsp-preview-card:-webkit-full-screen{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:#080a0d!important;
  overflow:hidden!important;
}

.mrsp-preview-card:fullscreen .mrsp-preview-head,
.mrsp-preview-card:-webkit-full-screen .mrsp-preview-head{
  display:none!important;
}

.mrsp-preview-card:fullscreen .mrsp-preview-stage,
.mrsp-preview-card:-webkit-full-screen .mrsp-preview-stage{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  background:#080a0d!important;
}

.mrsp-preview-card:fullscreen .mrsp-preview-stage iframe,
.mrsp-preview-card:-webkit-full-screen .mrsp-preview-stage iframe{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#080a0d!important;
}


/* v1.41.0 — University Thesis Template */
.mrsp-academic-template{margin-top:16px;border:1px solid #d8dde4;border-radius:14px;background:#f7f8fa;overflow:hidden}
.mrsp-academic-template summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;color:#252b33}
.mrsp-academic-template summary::-webkit-details-marker{display:none}.mrsp-academic-template summary strong{display:block;font-size:13px}.mrsp-academic-template summary small{display:block;margin-top:3px;color:#747d89;font-size:10.5px;line-height:1.35}.mrsp-academic-template summary b{font-size:16px;transition:.2s}.mrsp-academic-template[open] summary b{transform:rotate(180deg)}
.mrsp-academic-template-body{padding:0 14px 14px}.mrsp-academic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mrsp-academic-grid label{display:grid;gap:4px}.mrsp-academic-grid label.wide{grid-column:1/-1}.mrsp-academic-grid label>span{font-size:10px;font-weight:800;color:#59616b;letter-spacing:.02em}.mrsp-academic-grid input,.mrsp-academic-grid select,.mrsp-academic-grid textarea{width:100%;min-width:0;border:1px solid #cfd5dd;border-radius:9px;background:#fff;color:#20252c;padding:8px 9px;font:inherit;font-size:12px}.mrsp-academic-grid textarea{resize:vertical}.mrsp-academic-baseline{margin-top:10px;padding:9px 10px;border-radius:9px;background:#fff8e8;color:#665224;font-size:10.5px;line-height:1.45;border:1px solid #ead9a7}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-template{background:#111419;border-color:rgba(255,255,255,.11)}.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-template summary{color:#eef0f3}.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-template summary small,.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-grid label>span{color:#9ba5b1}.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-grid input,.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-grid select,.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-grid textarea{background:#1a1e24;color:#f2f3f5;border-color:rgba(255,255,255,.13)}.mrsp-simple:not(.mrsp-theme-light) .mrsp-academic-baseline{background:#1a1710;color:#d9c695;border-color:rgba(211,170,80,.24)}
.mrsp-input-body{max-height:1100px!important}
@media(max-width:650px){.mrsp-academic-grid{grid-template-columns:1fr}.mrsp-academic-grid label.wide{grid-column:auto}.mrsp-academic-template summary{padding:10px 11px}.mrsp-academic-template-body{padding:0 10px 10px}}

.mrsp-create-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.mrsp-create-actions .mrsp-btn{white-space:nowrap}
@media(max-width:900px){.mrsp-create-actions{width:100%;justify-content:stretch}.mrsp-create-actions .mrsp-btn{flex:1 1 220px}}

.mrsp-btn-danger-soft{background:#fff7f7!important;color:#a53a3a!important;border:1px solid #efcaca!important}.mrsp-btn-danger-soft:hover{background:#ffecec!important;border-color:#e9a9a9!important}


.mrsp-slide-editor-ai-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
.mrsp-slide-editor-ai-actions .mrsp-btn{flex:1;min-width:180px}
.mrsp-slide-editor-ai-help{margin-top:8px;color:#8f98a6;font-size:12px;line-height:1.45}
@media (max-width: 700px){.mrsp-slide-editor-ai-actions{gap:8px}.mrsp-slide-editor-ai-actions .mrsp-btn{flex:1 1 100%;min-width:0}}

.mrsp-slide-editor-nav{display:flex;align-items:center;gap:8px}.mrsp-slide-editor-nav .mrsp-btn{min-height:36px;padding:7px 11px}.mrsp-slide-editor-nav .mrsp-slide-editor-close{position:static;margin-left:4px}.mrsp-preview-actions #mrspEditSlides{border-color:rgba(211,167,71,.4);color:#f0d79d}@media(max-width:700px){.mrsp-slide-editor-head{align-items:flex-start}.mrsp-slide-editor-nav{flex-wrap:wrap;justify-content:flex-end}.mrsp-slide-editor-nav .mrsp-btn{font-size:11px;padding:6px 8px}}

/* v1.41.7 — presentation style cards */
.mrsp-mode-option[data-style="kids-friendly"]{background:linear-gradient(145deg,rgba(255,188,92,.08),rgba(96,204,190,.08))}
.mrsp-mode-option[data-style="kids-friendly"].is-active{box-shadow:inset 0 0 0 1px rgba(255,188,92,.45),0 10px 30px rgba(0,0,0,.08)}


.mrsp-redesign-style-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mrsp-redesign-style-inline label{font-size:12px;font-weight:700;opacity:.82}
.mrsp-redesign-style-inline select{min-width:190px;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:inherit}
.mrsp-redesign-style-inline-slide{margin-top:10px}
@media (max-width:700px){.mrsp-redesign-style-inline{width:100%}.mrsp-redesign-style-inline select{width:100%;min-width:0}}

.mrsp-redesign-style-note{font-size:13px;line-height:1.5;opacity:.78;max-width:540px;margin-top:6px}

/* v1.61 - Messages remain visible inside the fixed editor; no silent redesign failures. */
.mrsp-slide-redesign-status{margin:12px 0 2px;padding:11px 14px;border:1px solid rgba(89,183,150,.35);border-radius:12px;color:#d3f7df;background:rgba(28,102,78,.15);font-size:13px;line-height:1.45}
.mrsp-slide-redesign-status.is-error{border-color:rgba(232,114,103,.45);color:#ffd6cf;background:rgba(146,52,45,.18)}
.mrsp-slide-redesign-status[hidden]{display:none!important}

/* v1.64: unified editing workflow. The slide is the canvas; these are auxiliary AI tools. */
.mrsp-slide-editor{place-items:stretch end;background:rgba(5,7,10,.32);backdrop-filter:blur(2px);padding:12px}
.mrsp-slide-editor-card{width:min(510px,100%);max-height:calc(100dvh - 24px);padding:20px;overflow-y:auto;border-radius:18px}
.mrsp-slide-editor-head{align-items:center;margin-bottom:10px}
.mrsp-slide-editor-head h2{font-size:clamp(20px,2vw,26px)}
.mrsp-slide-editor-nav{justify-content:flex-end}
.mrsp-slide-editor-nav .mrsp-btn{padding:7px 8px;font-size:11px}
.mrsp-unified-intro{color:#c7ccd4;font-size:13px;line-height:1.5;margin:0 0 17px}
.mrsp-unified-intro strong{color:#f0cb77}
.mrsp-layout-picker{display:block;margin-bottom:14px}
.mrsp-layout-picker label{display:grid;gap:7px;color:#e8ebef;font-size:13px;font-weight:800}
.mrsp-layout-picker select{width:100%;border:1px solid rgba(211,170,80,.5);border-radius:11px;background:#20242b;color:#fff;padding:11px 12px;font:inherit}
.mrsp-slide-editor-ai-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;padding-top:8px}
.mrsp-slide-editor-ai-actions .mrsp-btn{min-width:0;padding:12px 8px;font-size:12px;white-space:normal}
.mrsp-slide-editor-advanced{margin-top:16px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#191c22;overflow:hidden}
.mrsp-slide-editor-advanced>summary{list-style:none;cursor:pointer;display:block;padding:14px;font-size:13px;font-weight:800;color:#f1d59b}
.mrsp-slide-editor-advanced>summary::-webkit-details-marker{display:none}
.mrsp-slide-editor-advanced>summary small{display:block;font-size:11px;font-weight:400;color:#9ca6b2;margin-top:5px}
.mrsp-slide-editor-advanced .mrsp-slide-editor-grid{display:grid;grid-template-columns:1fr;gap:14px;padding:14px}
.mrsp-slide-editor-advanced .mrsp-slide-editor-image{order:0}
.mrsp-slide-editor-advanced .mrsp-slide-photo-preview{max-height:180px;aspect-ratio:16/8}
.mrsp-slide-editor-footer{position:sticky;bottom:-20px;background:#12151a;z-index:4}
.mrsp-slide-editor-footer .mrsp-btn{min-width:0;flex:1}
@media(max-width:700px){
 .mrsp-slide-editor{z-index:2147483000!important;place-items:stretch!important;padding:0!important;background:#080a0d!important}
 .mrsp-slide-editor-card{width:100%!important;height:100dvh!important;max-height:none!important;border-radius:0!important;padding:12px!important}
 .mrsp-slide-editor-ai-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mrsp-slide-editor-ai-actions .mrsp-btn{flex:none;min-width:0}
 .mrsp-slide-editor-nav{gap:4px;flex-wrap:wrap}
 .mrsp-slide-editor-nav .mrsp-btn{font-size:10px}
}
/* Explicit box sizing also protects the modal when a theme overrides global defaults. */
.mrsp-slide-editor,.mrsp-slide-editor-card,.mrsp-slide-editor-card *{box-sizing:border-box}
@media(max-width:700px){.mrsp-slide-editor-head{flex-wrap:wrap;gap:8px}.mrsp-slide-editor-nav{max-width:100%}.mrsp-slide-editor-head h2{font-size:21px}}

/* v1.78 unified Design & AI, safe preview; no duplicate action grid. */
.mrsp-design-main-actions{display:grid;grid-template-columns:1fr;gap:9px;margin:14px 0}
.mrsp-design-main-actions .mrsp-btn{text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:13px 15px;white-space:normal;min-width:0;line-height:1.35;font-family:inherit}
.mrsp-design-main-actions .mrsp-btn strong{font-size:15px}
.mrsp-design-main-actions .mrsp-btn small{font-size:11px;font-weight:500;line-height:1.45;opacity:.86;color:inherit}
.mrsp-design-more{border:1px solid rgba(211,170,80,.28);border-radius:12px;padding:12px;margin:12px 0;color:#e8d29b}
.mrsp-design-more summary{cursor:pointer;font-size:13px;font-weight:700}
.mrsp-design-more p{font-size:12px;color:#d1d5dd;line-height:1.45}
.mrsp-design-more .mrsp-layout-picker{margin-top:12px}
.mrsp-design-proposal{border:1px solid #d6ac59;border-radius:14px;padding:12px;margin:14px 0;background:#1b2028;color:#fff}
.mrsp-design-proposal[hidden]{display:none!important}
.mrsp-design-proposal h3{font-size:17px;margin:0 0 5px}
.mrsp-design-proposal p{color:#d6dbe1;font-size:12px;line-height:1.4;margin:0 0 12px}
.mrsp-design-proposal iframe{display:block;width:100%;height:clamp(270px,43vh,510px);border:1px solid #56616c;border-radius:10px;background:#20252d}
.mrsp-design-proposal-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.mrsp-design-proposal-buttons .mrsp-btn{flex:1;min-width:145px;padding:12px 7px;white-space:normal;font-size:12px}
/* Audio → presentation source */
.mrsp-audio-import{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px;padding:10px 12px;border:1px solid #dfe2e7;border-radius:12px;background:#f7f8fa}.mrsp-audio-copy{margin-right:auto;min-width:220px}.mrsp-audio-copy strong,.mrsp-audio-copy small{display:block}.mrsp-audio-copy small{margin-top:2px;color:#747b86;font-size:11px}.mrsp-audio-import select{background:#fff;color:#252a31;border:1px solid #cfd3da;border-radius:9px;padding:9px 10px}.mrsp-audio-status{margin-top:8px;padding:9px 11px;border-radius:9px;background:#eef6ff;color:#245b91;font-size:12px}.mrsp-simple:not(.mrsp-theme-light) .mrsp-audio-import{background:#24272d;border-color:rgba(255,255,255,.12)}.mrsp-simple:not(.mrsp-theme-light) .mrsp-audio-copy small{color:#9ca4af}.mrsp-simple:not(.mrsp-theme-light) .mrsp-audio-import select{background:#17191d;color:#f3f4f5;border-color:rgba(255,255,255,.14)}


/* Audio recorder controls v1.86 */
.mrsp-audio-copy{display:flex;flex-direction:column;gap:3px}.mrsp-audio-copy strong{line-height:1.2}.mrsp-audio-import .mrsp-btn{cursor:pointer}.mrsp-audio-import .mrsp-btn:disabled{cursor:not-allowed;opacity:.55}.mrsp-audio-stop{border-color:#b84141!important;background:#6f2323!important;color:#fff!important}.mrsp-audio-timer{display:inline-flex;align-items:center;justify-content:center;min-width:58px;height:38px;padding:0 10px;border-radius:10px;border:1px solid rgba(184,65,65,.38);background:rgba(184,65,65,.08);font-variant-numeric:tabular-nums;font-weight:800}.mrsp-audio-timer[hidden],.mrsp-audio-stop[hidden]{display:none!important}
@media(max-width:760px){.mrsp-audio-import{align-items:stretch}.mrsp-audio-copy{flex:1 0 100%;margin-right:0}.mrsp-audio-import select{flex:1 0 100%;width:100%}.mrsp-audio-import .mrsp-btn{flex:1 1 calc(50% - 6px)}.mrsp-audio-timer{flex:0 0 auto}}

/* v1.87: three analysis modes on desktop; slide styles keep their existing grid. */
@media(min-width:701px){
  #mrspModeSwitch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

.mrsp-append-card{border-color:#d7bf84}.mrsp-append-meta{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f7f2e3;color:#5f4b1c;font-size:12px;line-height:1.45}.mrsp-simple:not(.mrsp-theme-light) .mrsp-append-meta{background:#2c2618;color:#ead9aa}.mrsp-simple-actions #mrspAppendSlidesTop[hidden]{display:none!important}

#mrspAppendModeSwitch{margin-top:8px}.mrsp-append-card #mrspAppendModeSwitch .mrsp-mode-option{min-width:0}@media(max-width:760px){.mrsp-append-card #mrspAppendModeSwitch{grid-template-columns:1fr!important}}

/* v1.93 — compact creation controls + optional AI images */
.mrsp-compact-settings{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.85fr) minmax(0,1.45fr);gap:10px;margin-top:10px;align-items:start}
.mrsp-compact-settings-append{grid-template-columns:minmax(0,1.55fr) minmax(240px,.85fr)}
.mrsp-compact-group{min-width:0}
.mrsp-compact-label{display:block;margin:0 0 5px 2px;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#68717c}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-compact-label{color:#aab2bd}
.mrsp-compact-switch{margin:0!important;padding:4px!important;gap:5px!important;border-radius:11px!important;background:#eef1f4!important}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-compact-switch{background:#111419!important}
.mrsp-compact-analysis .mrsp-compact-switch,#mrspAppendModeSwitch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.mrsp-visual-switch{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.mrsp-compact-style .mrsp-compact-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.mrsp-compact-settings .mrsp-mode-option{min-height:36px!important;padding:7px 28px 7px 9px!important;border-radius:8px!important;display:flex!important;align-items:center!important;line-height:1.08!important}
.mrsp-compact-settings .mrsp-mode-option.is-active{padding:6px 27px 6px 8px!important}
.mrsp-compact-settings .mrsp-mode-option strong{font-size:11.5px!important;line-height:1.12!important;margin:0!important}
.mrsp-compact-settings .mrsp-mode-option small{display:none!important}
.mrsp-compact-settings .mrsp-mode-option.is-active:after{right:7px!important;width:17px!important;height:17px!important;font-size:10px!important;box-shadow:none!important}
.mrsp-compact-settings .mrsp-mode-option:hover{transform:none!important}

.mrsp-compact-audio{margin-top:8px;border:1px solid #dfe3e8;border-radius:10px;background:#f7f8fa;overflow:hidden}
.mrsp-compact-audio summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;padding:7px 10px;color:#30363d;font-size:12px}
.mrsp-compact-audio summary::-webkit-details-marker{display:none}
.mrsp-compact-audio summary:after{content:'⌄';margin-left:auto;font-weight:900;color:#8b6b20;transition:.15s}
.mrsp-compact-audio[open] summary:after{transform:rotate(180deg)}
.mrsp-compact-audio summary strong{font-size:12px}
.mrsp-compact-audio summary small{color:#79818c;font-size:10.5px}
.mrsp-compact-audio .mrsp-audio-import{margin:0 8px 8px;padding:7px 8px;gap:6px;border-radius:8px}
.mrsp-compact-audio .mrsp-audio-import .mrsp-btn{min-height:34px;padding:7px 10px;font-size:11.5px}
.mrsp-compact-audio .mrsp-audio-import select{min-height:34px;padding:6px 9px;font-size:11.5px}
.mrsp-compact-audio .mrsp-audio-status{margin:0 8px 8px}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-compact-audio{background:#181b20;border-color:rgba(255,255,255,.1)}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-compact-audio summary{color:#eef1f5}
.mrsp-simple:not(.mrsp-theme-light) .mrsp-compact-audio summary small{color:#929aa5}
.mrsp-simple.mrsp-theme-light #mrspAppendSource{background:#f7f8fa!important;color:#20242a!important;border-color:#d7bd76!important}

/* The academic export form is intentionally collapsed by default in v1.93. */
.mrsp-academic-template{margin-top:9px!important}

@media(max-width:1180px){
 .mrsp-compact-settings{grid-template-columns:1fr 1fr}
 .mrsp-compact-style{grid-column:1/-1}
 .mrsp-compact-settings-append{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
 .mrsp-compact-settings,.mrsp-compact-settings-append{grid-template-columns:1fr!important;gap:8px}
 .mrsp-compact-style{grid-column:auto}
 .mrsp-compact-analysis .mrsp-compact-switch,#mrspAppendModeSwitch{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mrsp-compact-analysis .mrsp-mode-option[data-mode="research"],#mrspAppendModeSwitch .mrsp-mode-option[data-append-mode="research"]{grid-column:1/-1}
 .mrsp-visual-switch{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .mrsp-compact-style .mrsp-compact-switch{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .mrsp-compact-settings .mrsp-mode-option{min-height:34px!important;padding-top:6px!important;padding-bottom:6px!important}
 .mrsp-compact-settings .mrsp-mode-option strong{font-size:11px!important}
 .mrsp-compact-audio summary{align-items:flex-start;flex-wrap:wrap}
 .mrsp-compact-audio summary small{flex:1 0 100%}
}


/* v1.94 — compact professional top app toolbar */
body.mrsp-builder-page .mrsp-simple-top{
  display:grid!important;
  grid-template-columns:minmax(210px,270px) minmax(0,1fr)!important;
  align-items:center!important;
  gap:12px!important;
  padding:10px 12px!important;
  min-height:0!important;
  margin-bottom:9px!important;
}
body.mrsp-builder-page .mrsp-simple-brand{
  min-width:0!important;
  padding:0!important;
  flex:none!important;
}
body.mrsp-builder-page .mrsp-simple-brand strong{
  font-size:17px!important;
  line-height:1.1!important;
  letter-spacing:-.015em!important;
}
body.mrsp-builder-page .mrsp-simple-brand span{
  font-size:10.5px!important;
  line-height:1.3!important;
  margin-top:3px!important;
  max-width:260px!important;
}
body.mrsp-builder-page .mrsp-simple-actions{
  display:grid!important;
  grid-template-columns:minmax(350px,1fr) auto!important;
  align-items:center!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  flex:none!important;
}
body.mrsp-builder-page .mrsp-top-pickers{
  display:grid!important;
  grid-template-columns:minmax(220px,1.35fr) minmax(150px,.75fr)!important;
  gap:6px!important;
  min-width:0!important;
}
body.mrsp-builder-page .mrsp-library-field{
  min-height:38px!important;
  height:38px!important;
  padding:3px 5px!important;
  border-radius:9px!important;
  gap:5px!important;
  min-width:0!important;
  margin:0!important;
  flex:none!important;
}
body.mrsp-builder-page .mrsp-library-field>span{
  font-size:8.5px!important;
  min-width:auto!important;
  letter-spacing:.075em!important;
}
body.mrsp-builder-page .mrsp-library-field select{
  height:30px!important;
  min-height:30px!important;
  min-width:0!important;
  width:100%!important;
  max-width:none!important;
  padding:4px 25px 4px 7px!important;
  border-radius:7px!important;
  font-size:11.5px!important;
  line-height:1!important;
}
body.mrsp-builder-page .mrsp-top-toolbar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  min-width:0!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn{
  height:38px!important;
  min-height:38px!important;
  min-width:0!important;
  width:auto!important;
  padding:0 9px!important;
  gap:4px!important;
  border-radius:9px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:#1a1e24!important;
  background-image:none!important;
  color:#e9edf2!important;
  box-shadow:none!important;
  text-shadow:none!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn:hover{
  background:#222730!important;
  border-color:rgba(211,170,80,.58)!important;
  color:#fff7df!important;
  transform:none!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-icon{
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
}
body.mrsp-builder-page .mrsp-top-toolbar #mrspThemeToggle{
  width:38px!important;
  padding:0!important;
  font-size:15px!important;
  flex:0 0 38px!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-primary{
  background:linear-gradient(135deg,#edc45d,#bd861d)!important;
  border-color:#d7aa43!important;
  color:#181307!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-primary:hover{
  background:linear-gradient(135deg,#f4ce70,#c99125)!important;
  color:#181307!important;
}
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn:disabled,
body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn.disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
}
body.mrsp-builder-page .mrsp-manage-menu{
  position:relative!important;
  margin:0!important;
  padding:0!important;
}
body.mrsp-builder-page .mrsp-manage-menu>summary{
  list-style:none!important;
}
body.mrsp-builder-page .mrsp-manage-menu>summary::-webkit-details-marker{display:none!important}
body.mrsp-builder-page .mrsp-manage-menu[open]>summary{
  border-color:rgba(211,170,80,.7)!important;
  background:#282318!important;
}
body.mrsp-builder-page .mrsp-manage-popover{
  position:absolute!important;
  z-index:120!important;
  right:0!important;
  top:44px!important;
  width:210px!important;
  padding:6px!important;
  border-radius:10px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  background:#15181d!important;
  box-shadow:0 18px 42px rgba(0,0,0,.38)!important;
}
body.mrsp-builder-page .mrsp-manage-action{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-height:34px!important;
  margin:0!important;
  padding:7px 9px!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#e8ebef!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:700!important;
  text-align:left!important;
  cursor:pointer!important;
}
body.mrsp-builder-page .mrsp-manage-action:hover{background:#22262d!important}
body.mrsp-builder-page .mrsp-manage-danger{color:#ffb9bf!important}
body.mrsp-builder-page .mrsp-manage-danger:hover{background:#351c20!important;color:#ffd8db!important}
body.mrsp-builder-page .mrsp-manage-action[hidden],
body.mrsp-builder-page .mrsp-top-toolbar [hidden]{display:none!important}

body.mrsp-builder-page .mrsp-theme-light .mrsp-top-toolbar .mrsp-toolbar-btn{
  background:#f7f8fa!important;
  border-color:#dce1e7!important;
  color:#30363e!important;
}
body.mrsp-builder-page .mrsp-theme-light .mrsp-top-toolbar .mrsp-toolbar-btn:hover{
  background:#fffaf0!important;
  border-color:#d4aa50!important;
  color:#2c2515!important;
}
body.mrsp-builder-page .mrsp-theme-light .mrsp-top-toolbar .mrsp-toolbar-primary{
  background:linear-gradient(135deg,#efc65f,#c48d25)!important;
  border-color:#d1a345!important;
  color:#1b160a!important;
}
body.mrsp-builder-page .mrsp-theme-light .mrsp-manage-popover{
  background:#fff!important;
  border-color:#dfe3e8!important;
  box-shadow:0 16px 36px rgba(24,30,38,.14)!important;
}
body.mrsp-builder-page .mrsp-theme-light .mrsp-manage-action{color:#30363e!important}
body.mrsp-builder-page .mrsp-theme-light .mrsp-manage-action:hover{background:#f3f5f7!important}
body.mrsp-builder-page .mrsp-theme-light .mrsp-manage-danger{color:#a7333b!important}
body.mrsp-builder-page .mrsp-theme-light .mrsp-manage-danger:hover{background:#fff0f1!important}

@media(max-width:1320px){
  body.mrsp-builder-page .mrsp-simple-top{grid-template-columns:190px minmax(0,1fr)!important}
  body.mrsp-builder-page .mrsp-simple-brand span{display:none!important}
  body.mrsp-builder-page .mrsp-simple-actions{grid-template-columns:minmax(300px,1fr) auto!important}
  body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn{padding:0 7px!important;font-size:9.8px!important}
}
@media(max-width:1080px){
  body.mrsp-builder-page .mrsp-simple-top{grid-template-columns:1fr!important;gap:6px!important}
  body.mrsp-builder-page .mrsp-simple-brand{display:none!important}
  body.mrsp-builder-page .mrsp-simple-actions{grid-template-columns:1fr!important;gap:5px!important}
  body.mrsp-builder-page .mrsp-top-toolbar{justify-content:flex-start!important;flex-wrap:wrap!important}
}
@media(max-width:650px){
  body.mrsp-builder-page .mrsp-simple-top{padding:5px!important}
  body.mrsp-builder-page .mrsp-top-pickers{grid-template-columns:1fr!important;gap:4px!important}
  body.mrsp-builder-page .mrsp-library-field{height:35px!important;min-height:35px!important}
  body.mrsp-builder-page .mrsp-library-field select{height:27px!important;min-height:27px!important;font-size:11px!important}
  body.mrsp-builder-page .mrsp-top-toolbar{
    display:grid!important;
    grid-template-columns:38px repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
  }
  body.mrsp-builder-page .mrsp-top-toolbar .mrsp-toolbar-btn{
    width:100%!important;
    height:35px!important;
    min-height:35px!important;
    padding:0 6px!important;
    font-size:9.5px!important;
  }
  body.mrsp-builder-page .mrsp-top-toolbar #mrspThemeToggle{width:38px!important;height:35px!important;min-height:35px!important}
  body.mrsp-builder-page .mrsp-manage-menu{width:100%!important}
  body.mrsp-builder-page .mrsp-manage-menu>summary{width:100%!important}
  body.mrsp-builder-page .mrsp-manage-popover{position:fixed!important;left:10px!important;right:10px!important;top:auto!important;bottom:14px!important;width:auto!important;z-index:9999!important}
}

.mrsp-top-toolbar #mrspDeleteSlideTop{border-color:rgba(239,68,68,.42)!important;color:#ffd2d2!important;background:rgba(127,29,29,.20)!important}.mrsp-top-toolbar #mrspDeleteSlideTop:hover:not(:disabled){background:rgba(153,27,27,.38)!important;border-color:rgba(248,113,113,.72)!important;color:#fff!important}.mrsp-top-toolbar #mrspDeleteSlideTop:disabled{opacity:.38!important;cursor:not-allowed!important}
.mrsp-theme-light .mrsp-top-toolbar #mrspDeleteSlideTop{background:#fff1f2!important;color:#991b1b!important;border-color:#fecaca!important}
/* 1.99.31 — bulk theme button stays readable on phone without horizontal scrolling */
.mrsp-create-actions #mrspRedesignKeepImages,.mrsp-create-actions #mrspUndoKeepImages{white-space:normal;line-height:1.35;min-height:42px}
@media(max-width:700px){.mrsp-create-actions #mrspRedesignKeepImages,.mrsp-create-actions #mrspUndoKeepImages{flex-basis:100%;width:100%}}
