/* JG v568 approved landing/login concept */
.jg-public-pricing{width:min(1180px,calc(100% - 36px));margin:34px auto 0;padding:42px;border:1px solid rgba(117,214,205,.35);border-radius:28px;background:linear-gradient(145deg,rgba(14,39,69,.96),rgba(8,25,47,.96));box-sizing:border-box}
.jg-pricing-head{text-align:center;max-width:720px;margin:0 auto 28px}.jg-pricing-head h2{font-size:clamp(1.8rem,4vw,3rem);margin:8px 0}.jg-pricing-head p{color:#b9c9dd;line-height:1.55}
.jg-pricing-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.jg-price-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:24px 18px;border:1px solid #3f5872;border-radius:20px;background:#0c1b2b;text-align:left}.jg-price-card.featured{border:2px solid #6ee7d8;box-shadow:0 0 0 4px rgba(110,231,216,.08),0 18px 42px rgba(0,0,0,.22);transform:translateY(-5px)}
.jg-price-card>em{position:absolute;top:-13px;right:15px;padding:5px 10px;border-radius:999px;background:#6ee7d8;color:#06211f;font-size:.68rem;font-weight:900;font-style:normal;letter-spacing:.1em}.jg-price-card h3{min-height:2.5em;margin:0 0 12px;font-size:1.08rem}.jg-price-card>strong{font-size:2rem;color:#fff}.jg-price-card>small{display:block;flex:1;margin:8px 0 20px;color:#aebed2;line-height:1.4}.jg-price-card button,.jg-preview-link,.jg-preview-actions button,.jg-preview-case>button{border:1px solid #68cfc5;border-radius:12px;background:#1876f2;color:white;padding:12px 14px;font:inherit;font-weight:850;cursor:pointer}.jg-preview-link{display:block;margin:24px auto 0;background:transparent}
.jg-pass-dialog{width:min(920px,calc(100% - 24px));max-width:920px}.jg-pass-dialog form{width:100%;max-width:none}.jg-pass-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.jg-pass-options label{display:flex!important;flex-direction:column;align-items:flex-start!important;min-width:0;min-height:142px;padding:16px!important}.jg-pass-options label input{position:absolute;opacity:0}.jg-pass-options label span{font-weight:850}.jg-pass-options label strong{font-size:1.35rem;margin-top:7px}.jg-pass-options label small{margin-top:auto;color:#b8c6d8}.jg-pass-options label.featured{position:relative}.jg-account-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.jg-account-fields label{margin:0!important}.jg-pass-dialog .jg-access-note{min-height:1.4em;color:#ffb3ae}
.jg-preview-shell{width:min(960px,calc(100% - 28px));margin:24px auto 60px;color:#eef6ff}.jg-preview-shell>header{text-align:center;padding:24px}.jg-preview-shell>header>button{display:block;border:0;background:transparent;color:#8fb9ff;font-weight:800}.jg-preview-shell h1{font-size:clamp(2rem,5vw,3.4rem);margin:10px 0}.jg-preview-shell header p{color:#b8c7d9}.jg-preview-case,.jg-preview-includes{padding:28px;border:1px solid #405a73;border-radius:22px;background:#0d1b2a}.jg-preview-case>span{color:#7ee7d9;font-size:.75rem;font-weight:900;letter-spacing:.14em}.jg-preview-case>p{font-size:1.08rem;line-height:1.65}.jg-preview-case fieldset{display:grid;gap:10px;border:0;padding:12px 0}.jg-preview-case legend{font-weight:850;margin-bottom:10px}.jg-preview-case label{display:block;padding:14px;border:1px solid #39546d;border-radius:12px;background:#101f30}.jg-preview-case output{display:block;min-height:3em;margin-top:16px;line-height:1.5}.jg-preview-includes{margin-top:18px}.jg-preview-includes>div{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.jg-preview-includes span{padding:13px;border-radius:10px;background:#14283d;text-align:center}.jg-preview-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.jg-preview-actions button:last-child{background:transparent}
@media(max-width:900px){.jg-pricing-grid,.jg-pass-options{grid-template-columns:repeat(2,minmax(0,1fr))}.jg-account-fields{grid-template-columns:1fr}.jg-price-card.featured{transform:none}.jg-preview-includes>div{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.jg-public-pricing{width:min(100% - 20px,1180px);padding:28px 14px}.jg-pricing-grid,.jg-pass-options{grid-template-columns:1fr}.jg-price-card h3{min-height:0}.jg-pass-options label{min-height:112px}.jg-preview-includes>div{grid-template-columns:1fr}.jg-preview-actions{flex-direction:column}}

/* v722 — full-screen package selection and automatic desktop/Windows reflow. */
.jg-package-page{box-sizing:border-box;min-height:100vh;padding:0 0 56px;background:radial-gradient(circle at 78% 0,#174d80 0,#092746 28%,#06162b 66%);color:#f7fbff;outline:0}
.jg-package-nav{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:76px;padding:0 clamp(20px,5vw,76px);border-bottom:1px solid #bcefff22;background:#06162bd9}.jg-package-nav button{border:0;background:transparent;color:#fff;font:750 clamp(1rem,1.6vw,1.35rem)/1 Inter,system-ui,sans-serif;cursor:pointer}.jg-package-nav button b{color:#8cefff}.jg-package-nav span{color:#a9c5dc;font-size:.78rem;font-weight:750;letter-spacing:.08em;text-transform:uppercase}
.jg-package-intro{box-sizing:border-box;width:min(1180px,calc(100% - 40px));margin:0 auto;padding:clamp(42px,6vw,76px) 0 28px}.jg-package-intro h1{max-width:850px;margin:12px 0 16px;color:#fff;font:850 clamp(2.25rem,5vw,4.8rem)/.98 Inter,system-ui,sans-serif;letter-spacing:-.05em}.jg-package-intro p{max-width:760px;margin:0;color:#c2d5e6;font-size:clamp(.98rem,1.4vw,1.14rem);line-height:1.6}
.jg-package-form{box-sizing:border-box;width:min(1180px,calc(100% - 40px));margin:0 auto;padding:clamp(22px,3vw,34px);border:1px solid #66dcd050;border-radius:24px;background:#081b30e8;box-shadow:0 28px 80px #0006}.jg-package-form .jg-pass-options{display:grid!important}.jg-package-form .jg-pass-options label{position:relative;border:1px solid #405c75;border-radius:16px;background:#0d2439;cursor:pointer}.jg-package-form .jg-pass-options label.selected{border-color:#75ece5;background:linear-gradient(145deg,#123c53,#0c2a40);box-shadow:0 0 0 3px #62e7df1c}.jg-package-form .jg-pass-options label.featured em{position:absolute;top:10px;right:10px;color:#71eee5;font-size:.62rem;font-style:normal;font-weight:900;text-transform:uppercase}.jg-package-form .jg-account-fields label{display:grid;gap:7px;color:#c5d8e7;font-size:.75rem;font-weight:800}.jg-package-form input:not([type=radio]):not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid #486783;border-radius:10px;background:#061727;color:#fff;font:inherit}.jg-package-agreement{display:flex!important;align-items:flex-start!important;gap:10px;margin:20px 0!important;color:#d3e0eb!important}.jg-package-agreement input{flex:0 0 auto;width:19px;height:19px}.jg-package-submit{display:grid;grid-template-columns:minmax(240px,360px) minmax(0,1fr);align-items:center;gap:12px 22px}.jg-package-submit .jg-primary-action{min-height:52px}.jg-package-submit small{color:#9fb6ca}.jg-package-submit .jg-access-note{grid-column:1/-1;min-height:1.4em;margin:0;color:#ffb3ae}
@media(max-width:1000px){.jg-package-form .jg-pass-options{grid-template-columns:repeat(2,minmax(0,1fr))}.jg-package-form .jg-account-fields{grid-template-columns:1fr}.jg-landing-hero{grid-template-columns:minmax(0,1fr) minmax(280px,.62fr);gap:28px;padding-left:clamp(24px,5vw,72px);padding-right:clamp(24px,5vw,72px)}}
@media(max-width:620px){.jg-package-nav{min-height:64px;padding:0 14px}.jg-package-nav span{font-size:.62rem}.jg-package-intro,.jg-package-form{width:calc(100% - 20px)}.jg-package-intro{padding:34px 2px 20px}.jg-package-form{padding:16px;border-radius:18px}.jg-package-form .jg-pass-options{grid-template-columns:1fr}.jg-package-submit{grid-template-columns:1fr}.jg-package-submit small{text-align:center}}
@media(min-width:761px) and (max-height:760px){.jg-landing-hero{min-height:540px;padding-top:34px;padding-bottom:34px}.jg-proof-row{margin-top:24px}.jg-package-intro{padding-top:34px}}
@media(min-width:1200px) and (max-width:1700px){.jg-public-shell,.jg-package-page{font-size:clamp(15px,.92vw,17px)}.jg-landing-hero{min-height:min(720px,calc(100vh - 76px))}}
body.jg-landing-active{margin:0;background:#07162b;color:#f7fbff;overflow:auto;min-height:100vh}
body.jg-landing-active>.topbar,body.jg-landing-active>.approved-bottom-nav{display:none!important}
body.jg-landing-active #app.jg-public-app{width:100%;max-width:none;padding:0;margin:0;min-height:100vh}
.jg-public-shell{min-height:100vh;background:radial-gradient(circle at 75% 4%,#245c96 0,#0a284d 25%,#061428 64%);color:#f7fbff;outline:0}
.jg-public-shell:focus,.jg-public-shell:focus-visible{outline:none!important}
.jg-public-nav{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 clamp(22px,5vw,76px);border-bottom:1px solid #bcefff22;background:#06162bd9;backdrop-filter:blur(16px);position:relative;z-index:5}
.jg-public-brand{border:0;background:transparent;color:#fff;font:700 clamp(1.25rem,2vw,1.65rem)/1.1 Inter,system-ui,sans-serif;cursor:pointer}.jg-public-brand b{color:#8cefff;margin-right:6px}
.jg-public-nav nav{display:flex;align-items:center;gap:clamp(8px,2vw,26px)}.jg-public-nav nav button{border:0;background:transparent;color:#dcecff;font:700 .78rem/1 Inter,system-ui,sans-serif;cursor:pointer;padding:10px 4px}.jg-public-nav nav button:last-child{border-left:1px solid #8cefff55;padding-left:24px}
.jg-landing-hero{min-height:660px;position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(350px,.68fr);align-items:center;gap:clamp(30px,5vw,80px);padding:clamp(50px,7vw,90px) clamp(22px,7vw,110px);overflow:hidden}
.jg-hero-scene{position:absolute;inset:0;width:100%;height:100%;z-index:-2;object-fit:cover;object-position:center;opacity:.98}.jg-landing-hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#06162bf5 0%,#06162bc9 37%,#06162b24 69%,#06162b4d 100%)}
.jg-landing-copy{align-self:center;max-width:670px;text-shadow:0 3px 25px #0008}.jg-kicker{display:block;color:#8cefff;font:800 .72rem/1.4 Inter,system-ui,sans-serif;letter-spacing:.18em}.jg-landing-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(2.7rem,5.1vw,5.15rem);line-height:.98;letter-spacing:-.045em;margin:20px 0 22px;color:#fff}.jg-landing-copy>p{font-size:clamp(1rem,1.45vw,1.25rem);line-height:1.55;color:#d9eafe}
.jg-proof-row{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:46px;max-width:560px}.jg-proof-row span{font:750 .78rem/1.35 Inter,system-ui,sans-serif;color:#eaf7ff}.jg-proof-row b{display:grid;place-items:center;width:40px;height:40px;margin-bottom:10px;border:1px solid #69e7ef66;border-radius:50%;font-size:1.15rem;color:#72e9e8;background:#082845aa}
.jg-trial-card{align-self:center;justify-self:end;width:min(100%,430px);padding:24px;border-radius:22px;background:#f9fbff;color:#0b2142;box-shadow:0 28px 80px #0008;border:1px solid #fff;position:relative}.jg-preview-badge{position:absolute;right:20px;top:17px;color:#2e628b;font:850 .57rem/1 Inter,sans-serif;letter-spacing:.1em}.jg-trial-card h2{font:800 1.38rem/1.15 Inter,system-ui,sans-serif;margin:3px 0 5px}.jg-trial-card h3{font:800 1rem/1.2 Inter,system-ui,sans-serif;margin:0 0 12px}.jg-trial-card p{margin:0 0 14px;color:#58708e;font:500 .82rem/1.4 Inter,system-ui,sans-serif}.jg-trial-choice>small,.jg-signup-dialog small{display:block;text-align:center;color:#60738c;font-size:.73rem;margin-top:8px}
.jg-plan-options{display:grid;gap:8px;margin:14px 0}.jg-plan-options label{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:11px;border:1px solid #c9d8eb;border-radius:10px;font:700 .78rem/1 Inter,system-ui,sans-serif;cursor:pointer}.jg-plan-options label.selected{border:2px solid #2776ee;background:#eef6ff;padding:10px}.jg-plan-options input{accent-color:#2878ed}.jg-plan-options b{font-size:.82rem}.jg-plan-options em{font-style:normal;font-size:.57rem;padding:5px 7px;border-radius:999px;background:#d7fff6;color:#087c69}
.jg-primary-action{width:100%;border:0;border-radius:9px;padding:12px 16px;background:linear-gradient(135deg,#2d7ff2,#1261d9);color:#fff;font:800 .86rem/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 7px 18px #1261d933}.jg-primary-action:hover{filter:brightness(1.06);transform:translateY(-1px)}
.jg-card-divider{display:flex;align-items:center;gap:10px;margin:12px 0;color:#71839b;font-size:.7rem}.jg-card-divider:before,.jg-card-divider:after{content:"";height:1px;background:#d7e0ec;flex:1}.jg-login-form{display:grid;gap:9px}.jg-login-form label,.jg-signup-dialog label{display:grid;gap:5px;color:#183153;font:750 .7rem/1.2 Inter,system-ui,sans-serif}.jg-login-form input:not([type=checkbox]),.jg-signup-dialog input:not([type=checkbox]){border:1px solid #cad7e8;border-radius:8px;background:#fff;color:#10213d;padding:10px 11px;font:500 .78rem/1 Inter,system-ui,sans-serif}.jg-login-form .jg-remember,.jg-signup-dialog .jg-remember{display:flex;align-items:center;gap:7px;font-weight:600}.jg-login-form .jg-remember input,.jg-signup-dialog .jg-remember input{accent-color:#2677ed}.jg-text-action,.jg-explore{display:block;border:0;background:transparent;color:#075fd0;font:700 .7rem/1.2 Inter,system-ui,sans-serif;cursor:pointer;margin:0 auto}.jg-explore{margin-top:11px}.jg-access-note{min-height:1.2em;text-align:center!important;color:#7d4d00!important;margin:8px 0 0!important}
.jg-public-trust{display:grid;grid-template-columns:.72fr 1.45fr;gap:60px;padding:70px clamp(22px,7vw,110px);background:linear-gradient(180deg,#061326,#081b35);border-top:1px solid #8cefff22}.jg-public-trust h2{font-family:Georgia,serif;font-size:clamp(2rem,3vw,3.2rem);line-height:1.05;margin:12px 0}.jg-public-trust p{color:#c4d6ea}.jg-trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;align-items:center}.jg-trust-grid span{display:grid;text-align:center;gap:7px}.jg-trust-grid b{font-size:1.8rem;color:#66e4e5}.jg-trust-grid strong{font-size:.82rem}.jg-trust-grid small{color:#a8bed6;line-height:1.4}.jg-public-footer{display:flex;justify-content:space-between;gap:20px;padding:24px clamp(22px,7vw,110px);border-top:1px solid #8cefff22;color:#b8cae0;text-transform:uppercase;letter-spacing:.16em;font-size:.65rem}.jg-public-footer strong{color:#fff;font-size:.85rem;text-transform:none;letter-spacing:0}
.jg-signup-dialog{width:min(92vw,470px);border:1px solid #cbd9ea;border-radius:20px;background:#f9fbff;color:#10213d;padding:0;box-shadow:0 30px 90px #0009}.jg-signup-dialog::backdrop{background:#031026d9;backdrop-filter:blur(5px)}.jg-signup-dialog form{display:grid;gap:13px;padding:28px;position:relative}.jg-signup-dialog h2{font:850 1.55rem/1.15 Inter,system-ui,sans-serif;margin:0}.jg-signup-dialog p{color:#5b708b;line-height:1.45;margin:0}.jg-dialog-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:#38516f;font-size:1.7rem;cursor:pointer}
body.dashboard-active:not(.mock-mode-active){background:radial-gradient(circle at 72% 0,#174f82 0,#092746 29%,#061427 72%)!important}.dashboard-welcome{border:1px solid #72dfe644!important;background:linear-gradient(135deg,#08223ee8,#0a3457e8)!important;box-shadow:0 22px 48px #00102666!important}.dashboard-welcome h1{font-family:Georgia,serif!important;color:#fff!important}.dashboard-welcome p,.dashboard-welcome small{color:#b9cfe4!important}.jg-v568-grid .home-tile{background:linear-gradient(145deg,#0a2948,#082038)!important;border-color:#5cdfe344!important;box-shadow:0 18px 36px #00102255!important;color:#f5fbff!important}.jg-v568-grid .home-tile:hover{border-color:#6ee9ed!important;transform:translateY(-3px)!important}.jg-v568-grid .home-tile em,.jg-v568-grid .home-tile small{color:#a9c9de!important}.jg-v568-grid .tile-explain{color:#8feef0!important;border-color:#62dfe566!important}.jg-v568-grid .tile-mini .tile-screen{filter:hue-rotate(12deg)}
@media(min-width:701px){body.dashboard-active:not(.mock-mode-active) #app{width:min(100% - 44px,1180px)!important}.jg-v568-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(190px,1fr))!important}.jg-v568-grid .home-tile{min-height:190px!important}.jg-v568-grid .tile-progress{grid-column:auto!important}.jg-v568-grid .tile-games{display:flex!important;grid-column:auto!important;text-align:center!important;height:auto!important;min-height:190px!important;max-height:none!important;padding:18px!important}.jg-v568-grid .tile-games>.tile-games-art{width:88px!important;height:88px!important}}
@media(max-width:760px){.jg-public-nav{height:62px;padding:0 16px}.jg-public-nav nav{gap:9px}.jg-public-nav nav [data-jg-about]{display:none}.jg-public-nav nav [data-jg-packages]{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 8px;color:#dcecff;font-size:.72rem}.jg-public-nav nav button:last-child{border:1px solid #8cefff88;padding:0 13px}.jg-landing-hero{min-height:auto;display:block;padding:34px 16px 54px}.jg-landing-hero:after{background:linear-gradient(180deg,#06162b18 0%,#06162b45 22%,#06162bd9 62%,#06162b 100%)}.jg-landing-copy{padding:0 4px}.jg-landing-copy h1{font-size:clamp(2.2rem,11vw,3.35rem);line-height:1.01;margin:14px 0}.jg-landing-copy>p{font-size:.98rem}.jg-proof-row{margin:28px 0 24px;gap:8px}.jg-proof-row span{font-size:.67rem}.jg-proof-row b{width:34px;height:34px}.jg-trial-card{justify-self:auto;width:auto;padding:19px;border-radius:18px}.jg-preview-badge{font-size:.5rem;top:14px;right:14px}.jg-public-trust{grid-template-columns:1fr;padding:48px 20px;gap:30px}.jg-trust-grid{grid-template-columns:repeat(2,1fr)}.jg-public-footer{padding:20px;flex-direction:column;align-items:flex-start}.jg-hero-scene{height:100%;width:100%;left:0;object-position:68% center}}
@media(max-width:700px){body.dashboard-active:not(.mock-mode-active) #app .jg-v568-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr)) minmax(72px,.62fr)!important}.jg-v568-grid .tile-mini{grid-column:auto}.jg-v568-grid .tile-games{grid-column:auto!important;display:flex!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-template-areas:none!important;height:100%!important;min-height:0!important;max-height:100%!important;padding:7px!important;text-align:center!important;overflow:hidden!important}.jg-v568-grid .tile-games>.tile-games-art{width:min(70px,8.5svh)!important;height:min(70px,8.5svh)!important;margin:0 auto 2px!important}.jg-v568-grid .tile-games>span:nth-child(2){text-align:center!important}.jg-v568-grid .tile-progress{grid-column:1/-1!important;display:grid!important;grid-template-columns:76px 1fr 28px!important;align-items:center!important;text-align:left!important}.jg-v568-grid .tile-progress .tile-bars{margin:0 auto!important}.jg-v568-grid .tile-progress .tile-explain{position:static!important}}
@media(max-width:390px){.jg-landing-copy h1{font-size:2.15rem}.jg-proof-row{display:none}.jg-trial-card{margin-top:22px}.jg-login-form{gap:7px}.jg-public-trust{padding-top:38px}}
@media(prefers-reduced-motion:reduce){.jg-primary-action:hover,.jg-v568-grid .home-tile:hover{transform:none!important}}

/* v739 mobile Home authority: eight equal full-width rows fill the complete usable canvas. */
@media(max-width:700px){
 body.dashboard-active:not(.mock-mode-active) #app{
  position:fixed!important;
  top:calc(var(--jg-topbar-h) + env(safe-area-inset-top))!important;
  right:var(--jg-phone-gutter,8px)!important;
  bottom:calc(var(--jg-phone-dock-h) + env(safe-area-inset-bottom))!important;
  left:var(--jg-phone-gutter,8px)!important;
  width:auto!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  padding:6px 0!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:repeat(8,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  grid-auto-rows:0!important;
  gap:6px!important;
  align-content:stretch!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile{
  position:relative!important;
  grid-column:1!important;
  grid-row:auto!important;
  display:grid!important;
  grid-template-columns:76px minmax(0,1fr) 28px!important;
  grid-template-rows:1fr!important;
  grid-template-areas:none!important;
  align-content:center!important;
  align-items:center!important;
  justify-content:stretch!important;
  justify-items:stretch!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  padding:5px 9px!important;
  gap:8px!important;
  text-align:left!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>span:first-child{
  grid-column:1!important;
  grid-row:1!important;
  place-self:center!important;
  width:min(58px,7svh)!important;
  height:min(58px,7svh)!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>span:nth-child(2){
  grid-column:2!important;
  grid-row:1!important;
  justify-self:stretch!important;
  align-self:center!important;
  text-align:left!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile strong{
  margin:0!important;
  font-size:.96rem!important;
  line-height:1.06!important;
  white-space:normal!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile em{
  margin-top:3px!important;
  font-size:.64rem!important;
  line-height:1.14!important;
  max-height:2.28em!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain{
  grid-column:3!important;
  grid-row:1!important;
  position:static!important;
  place-self:center!important;
  width:24px!important;
  height:24px!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .tile-printables strong{font-size:.9rem!important}
}


/* v772 — unified warm public dialogs and purchase flow. */
body.jg-landing-active :is(.jg-account-dialog,.jg-explainer-dialog){--public-ink:#211f1d;--public-muted:#6d625a;--public-orange:#b45124;--public-dark:#7f381a;--public-cream:#faf7f2;--public-soft:#f3ebe3;--public-line:#d8cec5}
body.jg-landing-active :is(.jg-account-dialog,.jg-explainer-dialog)::backdrop{background:rgba(44,32,25,.78)!important;backdrop-filter:blur(8px)!important}
body.jg-landing-active .jg-account-dialog{border:1px solid var(--public-line)!important;background:var(--public-cream)!important;color:var(--public-ink)!important;box-shadow:0 28px 85px rgba(54,34,22,.42)!important}
body.jg-landing-active .jg-account-dialog form{background:var(--public-cream)!important;color:var(--public-ink)!important}
body.jg-landing-active .jg-account-dialog :is(h2,label,.jg-login-security-note){color:var(--public-ink)!important;-webkit-text-fill-color:var(--public-ink)!important}
body.jg-landing-active .jg-account-dialog p{color:var(--public-muted)!important;-webkit-text-fill-color:var(--public-muted)!important}
body.jg-landing-active .jg-account-dialog .jg-kicker{color:var(--public-orange)!important;-webkit-text-fill-color:var(--public-orange)!important}
body.jg-landing-active .jg-account-dialog .jg-dialog-close{color:var(--public-dark)!important;-webkit-text-fill-color:var(--public-dark)!important}
body.jg-landing-active .jg-account-dialog :is(input[type=email],input[type=password],input[type=text]){border-color:#cbbeb3!important;background:#fff!important;color:var(--public-ink)!important;-webkit-text-fill-color:var(--public-ink)!important;box-shadow:none!important}
body.jg-landing-active .jg-account-dialog :is(input[type=email],input[type=password],input[type=text]):focus{border-color:var(--public-orange)!important;outline:3px solid rgba(180,81,36,.22)!important;outline-offset:2px!important}
body.jg-landing-active .jg-account-dialog input[type=checkbox]{accent-color:var(--public-orange)!important}

body.jg-landing-active .jg-explainer-shell{border-color:#c9b7a8!important;background:linear-gradient(145deg,#b85a2b,#8f3d1d)!important;box-shadow:0 30px 95px rgba(54,34,22,.48)!important}
body.jg-landing-active .jg-explainer-copy{color:#fff!important}
body.jg-landing-active .jg-explainer-copy>span{color:#ffe0c5!important;-webkit-text-fill-color:#ffe0c5!important}
body.jg-landing-active .jg-explainer-copy :is(h2,p){color:#fff!important;-webkit-text-fill-color:#fff!important}
body.jg-landing-active .jg-explainer-copy p{color:#fff3e9!important;-webkit-text-fill-color:#fff3e9!important}
body.jg-landing-active .jg-live-caption{border-left-color:#f1c3a2!important;background:rgba(74,25,8,.28)!important;color:#fff8f2!important;-webkit-text-fill-color:#fff8f2!important}
body.jg-landing-active .jg-explainer-close{border-color:#ead8ca!important;background:#f3ebe3!important;color:var(--public-dark)!important;-webkit-text-fill-color:var(--public-dark)!important;box-shadow:0 5px 14px rgba(73,39,20,.18)!important}
body.jg-landing-active .jg-story-progress{background:#e4d7cc!important}
body.jg-landing-active .jg-story-progress i{background:linear-gradient(90deg,#c65e2d,#8d3a1b)!important}
body.jg-landing-active .jg-explainer-controls{background:#f3ebe3!important;border-top-color:#d8cec5!important}
body.jg-landing-active .jg-explainer-controls>button{border-color:#c9b7a8!important;background:#fffaf5!important;color:var(--public-dark)!important;-webkit-text-fill-color:var(--public-dark)!important}
body.jg-landing-active .jg-explainer-controls>span{color:var(--public-muted)!important;-webkit-text-fill-color:var(--public-muted)!important}
body.jg-landing-active .jg-explainer-dots button{background:#c7b8ac!important}
body.jg-landing-active .jg-explainer-dots button.active{background:var(--public-orange)!important}
body.jg-landing-active .jg-presentation-end-card{background:radial-gradient(circle at 50% 42%,#c76836 0,#a64a21 48%,#713017 100%)!important}
body.jg-landing-active .jg-end-exit{border-color:#ead8ca!important;background:#f3ebe3!important;color:var(--public-dark)!important;-webkit-text-fill-color:var(--public-dark)!important}
body.jg-landing-active .jg-end-trial{border-color:#7f381a!important;background:linear-gradient(135deg,#fffaf5,#ead8ca)!important;color:var(--public-dark)!important;-webkit-text-fill-color:var(--public-dark)!important}

body.jg-landing-active #app.jg-package-app .jg-package-page{background:linear-gradient(180deg,#fffdf9 0%,#f4ede6 100%)!important;color:#211f1d!important}
body.jg-landing-active #app.jg-package-app .jg-package-intro :is(h1,p){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
body.jg-landing-active #app.jg-package-app .jg-package-intro .jg-kicker{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
body.jg-landing-active #app.jg-package-app .jg-package-form{border-color:#d8cec5!important;background:#fff!important;color:#211f1d!important;box-shadow:0 18px 48px rgba(77,58,43,.12)!important}
body.jg-landing-active #app.jg-package-app .jg-pass-card{border-color:#d8cec5!important;background:#f3ebe3!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;box-shadow:none!important}
body.jg-landing-active #app.jg-package-app .jg-pass-card :is(span,strong){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
body.jg-landing-active #app.jg-package-app .jg-pass-card small{color:#6d625a!important;-webkit-text-fill-color:#6d625a!important}
body.jg-landing-active #app.jg-package-app .jg-pass-card:is(:hover,:focus-visible){border-color:#a94f24!important;background:#ead8ca!important;box-shadow:0 0 0 3px rgba(169,79,36,.15)!important}
body.jg-landing-active #app.jg-package-app .jg-package-close{border-color:#c9b7a8!important;background:#f3ebe3!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;box-shadow:0 5px 14px rgba(73,39,20,.18)!important}
body.jg-landing-active #app.jg-package-app .jg-package-secure-note{color:#6d625a!important;-webkit-text-fill-color:#6d625a!important}

/* v768 — approved dimensional Study Guides control-panel artwork. */
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .tile-study>span:first-child{
 background-color:#f3ebe3!important;
 background-image:url('assets/branding/study-guides-head-v768.png')!important;
 background-position:center!important;background-repeat:no-repeat!important;background-size:88% 88%!important;
}

/* v769 — exact approved warm lighthouse landing. Public landing only. */
body.jg-landing-active{background:#faf7f2!important;color:#241b19!important}
body.jg-landing-active .jg-public-shell{background:#faf7f2!important;color:#241b19!important}
body.jg-landing-active .jg-public-nav{background:rgba(255,253,249,.98)!important;border-bottom:1px solid #e2d6ca!important;box-shadow:0 4px 18px rgba(80,43,24,.08)!important}
body.jg-landing-active .jg-public-brand{color:#241b19!important;-webkit-text-fill-color:#241b19!important}
body.jg-landing-active .jg-public-brand b{background:linear-gradient(145deg,#cc602c,#a84620)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body.jg-landing-active .jg-public-nav nav button{color:#9b411e!important;-webkit-text-fill-color:#9b411e!important;border-color:#b54f23!important;background:#fffaf5!important}
body.jg-landing-active .jg-public-nav nav [data-jg-login-open]{background:linear-gradient(145deg,#ce602c,#aa451f)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 6px 14px rgba(135,54,22,.18)!important}
body.jg-landing-active .jg-landing-hero{background:#fbf5ed!important;color:#241b19!important}
body.jg-landing-active .jg-landing-hero:after{background:linear-gradient(180deg,rgba(251,245,237,0) 0%,rgba(251,245,237,.05) 38%,rgba(251,245,237,.72) 57%,#fbf5ed 76%,#fbf5ed 100%)!important}
body.jg-landing-active .jg-landing-copy{color:#fff!important;text-shadow:0 2px 14px rgba(18,10,8,.56)!important}
body.jg-landing-active .jg-landing-copy .jg-kicker{color:#a94720!important;-webkit-text-fill-color:#a94720!important}
body.jg-landing-active .jg-landing-copy h1{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.jg-landing-active .jg-landing-copy>p{color:#f7f0e8!important;-webkit-text-fill-color:#f7f0e8!important}
body.jg-landing-active .jg-primary-action{background:linear-gradient(145deg,#cf602b,#b24920)!important;border-color:#a8431e!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 8px 18px rgba(135,54,22,.17)!important}
body.jg-landing-active .jg-secondary-action{background:#fffaf5!important;border:2px solid #b64e22!important;color:#9a3e1b!important;-webkit-text-fill-color:#9a3e1b!important}
body.jg-landing-active .jg-front-actions button span{margin-left:8px;font-size:1.4em;line-height:.7}
body.jg-landing-active .jg-inside-preview-link{box-sizing:border-box!important;display:grid!important;grid-template-columns:56px minmax(0,1fr) auto!important;align-items:center!important;gap:12px!important;width:100%!important;margin:12px 0 0!important;padding:11px 14px!important;border:1px solid #e3d8ce!important;border-radius:16px!important;background:#fff!important;color:#241b19!important;-webkit-text-fill-color:#241b19!important;text-align:left!important;box-shadow:0 7px 18px rgba(80,43,24,.08)!important}
body.jg-landing-active .jg-inside-preview-link .jg-preview-doc{display:grid!important;place-items:center!important;width:52px!important;height:52px!important;border-radius:12px!important;background:#f3ebe3!important;color:#aa4b21!important;-webkit-text-fill-color:#aa4b21!important;font-size:1.8rem!important}
body.jg-landing-active .jg-inside-preview-link strong{display:block;color:#241b19!important;-webkit-text-fill-color:#241b19!important;font-size:.92rem!important}
body.jg-landing-active .jg-inside-preview-link small{display:block;margin-top:3px;color:#766d66!important;-webkit-text-fill-color:#766d66!important;font-size:.68rem!important;font-weight:600!important}
body.jg-landing-active .jg-inside-preview-link>b{color:#512b1c!important;-webkit-text-fill-color:#512b1c!important;font-size:1.65rem!important}
body.jg-landing-active .jg-front-note{color:#766d66!important;-webkit-text-fill-color:#766d66!important}
@media(max-width:760px){
 body.jg-landing-active .jg-public-nav{height:72px!important;padding:0 14px!important}
 body.jg-landing-active .jg-public-brand{font-size:1rem!important;white-space:nowrap!important}
 body.jg-landing-active .jg-public-brand b{width:42px!important;height:42px!important;border-radius:11px!important}
 body.jg-landing-active .jg-public-nav nav{gap:7px!important}
 body.jg-landing-active .jg-public-nav nav [data-jg-packages],body.jg-landing-active .jg-public-nav nav [data-jg-login-open]{min-height:40px!important;padding:0 11px!important;border-radius:10px!important;font-size:.72rem!important}
 body.jg-landing-active .jg-landing-hero{--jg-warm-art:clamp(330px,47svh,470px);min-height:calc(100svh - 72px)!important;padding:var(--jg-warm-art) 18px max(24px,calc(env(safe-area-inset-bottom) + 18px))!important}
 body.jg-landing-active .jg-landing-hero .jg-hero-scene{inset:0!important;height:100%!important;object-position:66% center!important}
 body.jg-landing-active .jg-landing-hero:after{inset:0!important;height:100%!important}
 body.jg-landing-active .jg-landing-copy h1{font-size:clamp(2rem,9.1vw,2.8rem)!important;line-height:1.02!important;letter-spacing:-.045em!important}
 body.jg-landing-active .jg-landing-copy>p{font-size:.92rem!important;line-height:1.42!important}
 body.jg-landing-active .jg-front-actions{gap:12px!important;margin-top:22px!important}
 body.jg-landing-active .jg-front-actions [data-jg-about],body.jg-landing-active .jg-front-actions [data-jg-packages]{min-height:68px!important;border-radius:15px!important;font-size:.84rem!important}
 body.jg-landing-active .jg-inside-preview-link{display:grid!important;min-height:86px!important;margin-top:14px!important;padding:14px!important}
}
@media(max-width:760px) and (max-height:760px){
 body.jg-landing-active .jg-landing-hero{--jg-warm-art:clamp(240px,39svh,310px);padding-right:14px!important;padding-left:14px!important}
 body.jg-landing-active .jg-landing-copy h1{font-size:clamp(1.65rem,7.9vw,2.15rem)!important}
 body.jg-landing-active .jg-inside-preview-link{margin-top:8px!important;padding:8px 10px!important}
 body.jg-landing-active .jg-inside-preview-link .jg-preview-doc{width:42px!important;height:42px!important}
}

/* v764 — complete approved warm interior, light mode only. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast){--warm-ink:#211f1d;--warm-muted:#675f58;--warm-orange:#a94f24;--warm-dark:#7f381a;--warm-cream:#faf8f5;--warm-soft:#f3ebe3;--warm-line:#d8cec5}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.study-library-premium,.study-library-shell,.study-library-head,.study-official-domain,.study-domain-topics button,.study-hub-tabs,.study-pane,.study-anchor-strip,.memory-chip){background:#fff!important;background-image:none!important;border-color:var(--warm-line)!important;color:var(--warm-ink)!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-grid{gap:10px!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-head :is(strong,small),
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain>p,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-domain-topics button :is(span,small){color:var(--warm-ink)!important;-webkit-text-fill-color:var(--warm-ink)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-head small{color:var(--warm-orange)!important;-webkit-text-fill-color:var(--warm-orange)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-icon{background:var(--warm-soft)!important;border-color:#d5b9a6!important;color:var(--warm-dark)!important;filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-head>b{background:var(--warm-soft)!important;border-color:var(--warm-line)!important;color:var(--warm-dark)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-domain-topics button:is(:hover,:focus-visible){background:#ead9cc!important;border-color:var(--warm-orange)!important}

/* Decision sequence is a real readable diagram instead of a compressed sentence. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header .clinical-decision-hierarchy{display:grid!important;gap:8px!important;margin:14px 0 0!important;padding:11px!important;background:rgba(255,255,255,.13)!important;border:1px solid rgba(255,255,255,.38)!important;border-radius:12px!important}
.clinical-hierarchy-flow{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap}.clinical-hierarchy-flow span{position:relative;display:flex;align-items:center;gap:6px;flex:1 1 110px;min-height:38px;padding:7px 18px 7px 8px;border-radius:9px;background:rgba(255,255,255,.93);color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;font-size:.68rem;font-weight:850;line-height:1.15}.clinical-hierarchy-flow span:not(:last-child):after{content:'›';position:absolute;right:5px;color:#a94f24;font-size:1.2rem}.clinical-hierarchy-flow b{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:#a94f24;color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:.65rem}

/* Active plan and its task artwork. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.adaptive-day-hero,.adaptive-carry-note){background:#a94f24!important;background-image:linear-gradient(135deg,#b95b2c,#7f381a)!important;border-color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.adaptive-day-hero,.adaptive-carry-note) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .adaptive-progress-ring{background:conic-gradient(#fff var(--p),rgba(255,255,255,.25) 0)!important}.jg-theme-light #app .adaptive-progress-ring:after{background:#8d3e1e!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-task{background:#fff!important;border-color:var(--warm-line)!important}.jg-theme-light #app .adaptive-day-task.current{background:#f8eee7!important;border-color:var(--warm-orange)!important}.jg-theme-light #app .adaptive-day-task.done{background:#f4eee9!important;border-color:#cba78f!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .adaptive-task-icon{background:var(--warm-soft)!important;color:var(--warm-dark)!important;filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}.jg-theme-light #app .adaptive-day-task.done .adaptive-task-icon{background:#e4d4c8!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .adaptive-task-copy :is(strong,span,small),.jg-theme-light #app .adaptive-priority-links>button :is(span,small,i){color:var(--warm-ink)!important;-webkit-text-fill-color:var(--warm-ink)!important}.jg-theme-light #app .adaptive-priority-links>button>b{background:var(--warm-orange)!important}

/* Explore Concept and Exam Example: every nested surface uses the approved family. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-scroll,.exam-example-scroll){background:var(--warm-cream)!important;background-image:none!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-top,.exam-example-top,.concept-lesson-section,.concept-lesson-traps,.concept-lesson-remember,.concept-quick-item,.exam-example-question,.exam-example-record,.exam-example-choices,.exam-inline-teaching,.exam-answer-result,.exam-why-best,.exam-choice-analysis){background:#fff!important;background-image:none!important;border-color:var(--warm-line)!important;color:var(--warm-ink)!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-top,.exam-example-top,.concept-lesson-section,.concept-lesson-traps,.concept-lesson-remember,.concept-quick-item,.exam-example-question,.exam-example-record,.exam-example-choices,.exam-inline-teaching,.exam-answer-result,.exam-why-best,.exam-choice-analysis) :is(h1,h2,h3,h4,p,li,strong,b,span,small){color:var(--warm-ink)!important;-webkit-text-fill-color:var(--warm-ink)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-kicker,.exam-example-question>span,.exam-choice-analysis>span,.exam-why-best>div>span){color:var(--warm-orange)!important;-webkit-text-fill-color:var(--warm-orange)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-lesson-lead{background:var(--warm-orange)!important}.jg-theme-light .concept-lesson-lead *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .exam-example-choice{background:#fff!important;border-color:var(--warm-line)!important;color:var(--warm-ink)!important}.jg-theme-light .exam-example-choice.selected{background:#f3e6dc!important;border-color:var(--warm-orange)!important}.jg-theme-light .exam-example-choice.answer-correct{background:#efe5dc!important;border-color:var(--warm-orange)!important}.jg-theme-light .exam-example-choice.answer-incorrect{background:#eee9e5!important;border-color:#8a7262!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .exam-why-best{border-left:5px solid var(--warm-orange)!important}.jg-theme-light .teaching-bulb,.jg-theme-light .exam-choice-analysis b{background:var(--warm-soft)!important;color:var(--warm-dark)!important}
.concept-quick-choices button{position:relative}.quick-checkmark{position:absolute;right:12px;color:#fff!important}.concept-quick-choices button.quick-nudge{animation:jgQuickNudge .36s ease-in-out}.jg-theme-light .concept-quick-choices button.is-correct{background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}.jg-theme-light .concept-quick-choices button.is-correct *{color:#fff!important;-webkit-text-fill-color:#fff!important}.jg-theme-light .concept-quick-choices button.is-wrong{background:#eee8e2!important;border-color:#8a7262!important;color:#211f1d!important}.jg-theme-light .concept-quick-feedback.correct{background:#f3e6dc!important;border-left:4px solid #a94f24!important}.jg-theme-light .concept-quick-feedback.incorrect{background:#eee8e2!important;color:#7f381a!important}
@keyframes jgQuickNudge{0%,100%{transform:translateX(0)}25%{transform:translateX(-5px)}55%{transform:translateX(4px)}75%{transform:translateX(-2px)}}

/* Mini-Mocks: chooser and study/debrief path. */
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) :is(.mini-mode-dialog,.mini-mode-dialog form,.mini-mode-card,.mini-mode-note,.mini-mock-hub,.mini-mock-card,.mini-prescription,.mini-app-dashboard,.mini-coverage-matrix,.mini-reading-signals,.mini-debrief-route){background:#fff!important;background-image:none!important;border-color:var(--warm-line)!important;color:var(--warm-ink)!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) :is(.mini-mode-dialog,.mini-mode-dialog form,.mini-mode-card,.mini-mode-note,.mini-mock-hub,.mini-mock-card,.mini-prescription,.mini-app-dashboard,.mini-coverage-matrix,.mini-reading-signals,.mini-debrief-route) :is(h1,h2,h3,p,strong,b,span,small){color:var(--warm-ink)!important;-webkit-text-fill-color:var(--warm-ink)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) .mini-mode-card:is(:hover,:focus-visible){background:#f3e6dc!important;border-color:var(--warm-orange)!important;box-shadow:0 0 0 3px rgba(169,79,36,.12)!important}.jg-theme-light .mini-mode-note{border-left:4px solid var(--warm-orange)!important}.jg-theme-light .mini-mode-close{background:var(--warm-soft)!important;border-color:var(--warm-orange)!important;color:var(--warm-dark)!important}

/* Learning games and remaining printables accents. */
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.game-retrieval-due,.domain-game-progress,.game-card,.purpose-game-body,.purpose-game-prompt){background:#fff!important;background-image:none!important;border-color:var(--warm-line)!important;color:var(--warm-ink)!important}.jg-theme-light body.game-mode-active #app .game-retrieval-due{background:var(--warm-soft)!important;border-left:5px solid var(--warm-orange)!important}.jg-theme-light body.game-mode-active #app .game-retrieval-due *{color:var(--warm-ink)!important;-webkit-text-fill-color:var(--warm-ink)!important}.jg-theme-light body.game-mode-active #app :is(.domain-mechanic-mark,.game-icon,.games-hero img){filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printables-back,.jg-printables-hero span,.jg-printable-card small,.jg-printable-domain header small){color:var(--warm-orange)!important;-webkit-text-fill-color:var(--warm-orange)!important}.jg-theme-light #app .jg-printables-hero>img{filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}

/* Colored boxes always carry white copy in light mode. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.study-domain-header,.adaptive-day-hero,.adaptive-carry-note,.jg-printable-integrated,.btn-primary){color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.study-domain-header,.adaptive-day-hero,.adaptive-carry-note,.jg-printable-integrated,.btn-primary) :is(h1,h2,h3,h4,p,span,strong,b,small,li){color:#fff!important;-webkit-text-fill-color:#fff!important}

@media(max-width:700px){.clinical-hierarchy-flow{display:grid;grid-template-columns:1fr 1fr}.clinical-hierarchy-flow span{min-height:34px}.jg-theme-light #app .study-domain-header .clinical-decision-hierarchy{grid-column:1/-1!important;margin-left:-90px!important}.mini-mode-grid{grid-template-columns:1fr!important}}

.tile-dashboard-premium{display:grid;place-items:center;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}
.tile-dashboard-premium img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;border-radius:13px;filter:drop-shadow(0 5px 10px #00101f88)}

.tile-printables-art{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 2px;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important}.tile-printables-art img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 10px #00101f88)}.jg-printables-page{max-width:1080px;margin:0 auto;padding:18px 0 118px}.jg-printables-back{border:0;background:transparent;color:#8feef0;font-weight:800;padding:8px 0;cursor:pointer}.jg-printables-hero{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:center;gap:18px;margin:12px 0 18px}.jg-printables-hero>img{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 10px 22px #00101f88)}.jg-printables-hero span,.jg-printable-card small,.jg-printable-domain header small{color:#6fe4df;font-size:.66rem;font-weight:850;letter-spacing:.12em}.jg-printables-hero h1{margin:.35rem 0;font-family:Georgia,serif;font-size:clamp(2rem,5vw,3.4rem)}.jg-printables-hero p,.jg-printable-card p,.jg-printable-domain header p{color:#adc4d6;line-height:1.5}.jg-printables-summary{display:grid;grid-template-columns:auto 1fr auto 1fr auto 1fr;align-items:center;gap:6px 10px;margin:0 0 24px;padding:13px 18px;border:1px solid #5cdfe333;border-radius:15px;background:#061c30}.jg-printables-summary b{font-size:1.45rem;color:#76ece8}.jg-printables-summary span{color:#c5d7e5;font-size:.82rem}.jg-printable-domain{margin:18px 0 28px;padding-top:6px}.jg-printable-domain>header{display:grid;grid-template-columns:54px minmax(0,1fr);align-items:start;gap:13px;margin:0 0 11px}.jg-printable-domain>header>span{display:grid;place-items:center;width:46px;height:46px;border:1px solid #66e7e7;border-radius:50%;background:#0a2948;color:#7cf4ef;font-weight:900;box-shadow:0 0 22px #3dded433}.jg-printable-domain header h2{margin:.2rem 0 .15rem;font-size:1.42rem}.jg-printable-domain header p{margin:0;max-width:760px}.jg-printables-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.jg-printable-card{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:start;gap:15px;padding:19px;border:1px solid #5cdfe344;border-radius:18px;background:linear-gradient(145deg,#0a2948,#082038);box-shadow:0 18px 36px #00102255}.jg-printable-card h3{margin:.3rem 0;font-size:1.12rem}.jg-printable-card p{min-height:4.5em;margin:.35rem 0 .9rem}.jg-printable-icon{display:grid;place-items:center;width:68px;height:82px;border-radius:8px;background:linear-gradient(#eaffff,#bceff2);color:#07324c;box-shadow:0 10px 24px #00101f77}.jg-printable-icon b{font-size:.78rem}.jg-printable-integrated{margin-top:36px;padding:22px;border:1px solid #69ece866;border-radius:22px;background:linear-gradient(160deg,#08253f,#061c30)}@media(max-width:700px){.jg-printables-page{padding:10px 8px 104px}.jg-printables-hero{grid-template-columns:74px minmax(0,1fr);gap:10px}.jg-printables-hero>img{width:74px;height:74px}.jg-printables-hero h1{font-size:1.7rem}.jg-printables-summary{grid-template-columns:auto 1fr;padding:12px}.jg-printables-grid{grid-template-columns:1fr}.jg-printable-card{grid-template-columns:62px 1fr;padding:14px;gap:11px}.jg-printable-icon{width:54px;height:66px}.jg-printable-card p{min-height:0}.jg-printable-domain>header{grid-template-columns:44px 1fr}.jg-printable-domain>header>span{width:38px;height:38px}.jg-printable-integrated{padding:14px}.tile-printables-art{width:min(58px,7svh);height:min(58px,7svh)}}

/* v570 — Mini-Mocks is a first-class destination, not a scroll target inside Study. */
#app.jg-mini-mocks-active{width:min(100%,1020px);max-width:1020px;margin:0 auto;padding-bottom:118px}
.jg-mini-mocks-page{padding:18px 0 24px;outline:0}
.jg-mini-mocks-back{border:0;background:transparent;color:#8feef0;font-weight:800;padding:8px 0;cursor:pointer}
.jg-mini-mocks-hero{margin:10px 0 16px;padding:22px;border:1px solid #5cdfe344;border-radius:20px;background:radial-gradient(circle at 88% 12%,#1b6a8055,transparent 34%),linear-gradient(145deg,#0a2948,#082038);box-shadow:0 18px 36px #00102255}
.jg-mini-mocks-hero>span{color:#6fe4df;font-size:.66rem;font-weight:850;letter-spacing:.12em}
.jg-mini-mocks-hero h1{margin:.32rem 0;font-family:Georgia,serif;font-size:clamp(2rem,5vw,3.25rem)}
.jg-mini-mocks-hero p{max-width:760px;margin:.25rem 0 0;color:#b6cbdc;line-height:1.5}
.jg-mini-mocks-page .mini-mock-hub{margin-top:0}
@media(max-width:700px){#app.jg-mini-mocks-active{padding:0 8px 104px!important}.jg-mini-mocks-page{padding:10px 0 20px}.jg-mini-mocks-hero{padding:16px;margin:6px 0 12px}.jg-mini-mocks-hero h1{font-size:2rem}.jg-mini-mocks-page .mini-mock-hub{padding:14px}.jg-mini-mocks-page .mini-mock-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.jg-mini-mocks-page .actions{display:grid;grid-template-columns:1fr}.jg-mini-mocks-page .actions .btn{width:100%}}

/* v572 public front door and whiteboard presentation */
body.jg-dialog-open{overflow:hidden!important}
.jg-landing-copy>p{max-width:610px}
.jg-front-actions{display:grid;grid-template-columns:1fr;gap:10px;max-width:650px;margin-top:28px}
.jg-front-actions button{min-height:52px;border-radius:12px;padding:12px 16px;font:800 .9rem/1.15 Inter,system-ui,sans-serif;cursor:pointer}
.jg-front-actions .jg-primary-action{display:flex;align-items:center;justify-content:center;gap:8px}.jg-front-actions .jg-primary-action span{font-size:.72rem}
.jg-secondary-action{border:1px solid #71e8e9;background:#eaffff;color:#09223e;box-shadow:0 13px 30px #00132966}
.jg-login-action{border:1px solid #9eeff266;background:#071b34b8;color:#fff}
.jg-front-note{display:block;margin-top:14px;color:#b8cee1;font-size:.72rem;letter-spacing:.035em}
.jg-account-dialog,.jg-explainer-dialog{padding:0;border:0;background:transparent;color:#10213d}
.jg-account-dialog::backdrop,.jg-explainer-dialog::backdrop{background:#020b19ed;backdrop-filter:blur(8px)}
.jg-account-dialog{width:min(94vw,490px);max-height:calc(100dvh - 32px);overflow:auto;border-radius:22px;background:#f9fbff;box-shadow:0 32px 100px #000b;overscroll-behavior:contain}
.jg-account-dialog form{display:grid;gap:13px;padding:30px;position:relative}.jg-account-dialog h2{margin:0;font:850 1.65rem/1.12 Inter,system-ui,sans-serif}.jg-account-dialog p{margin:0;color:#5b708b;line-height:1.45}.jg-account-dialog label{font-size:.76rem;font-weight:800;color:#304d6c}.jg-account-dialog input[type=email],.jg-account-dialog input[type=password],.jg-account-dialog input[type=text]{display:block;width:100%;min-height:48px;margin-top:5px;padding:11px 12px;border:1px solid #b7c8dc;border-radius:10px;background:#fff;color:#10213d;font:500 16px/1.2 Inter,system-ui,sans-serif}.jg-account-dialog .jg-remember{display:flex;align-items:flex-start;gap:8px;font-weight:600}.jg-account-dialog .jg-remember input{margin-top:2px}.jg-account-dialog .jg-primary-action{min-height:49px}.jg-account-dialog .jg-text-action{justify-self:center;border:0;background:transparent;color:#17678a;font-weight:750;cursor:pointer}.jg-account-dialog .jg-access-note{min-height:1.2em;text-align:center;font-size:.78rem}.jg-trial-dialog{width:min(94vw,540px)}.jg-trial-dialog .jg-plan-options{margin:1px 0 3px}
.jg-explainer-dialog{width:min(96vw,1120px);height:min(90dvh,690px);max-height:calc(100dvh - 24px)}
.jg-explainer-shell{height:100%;display:grid;grid-template-rows:minmax(0,1fr) auto;position:relative;overflow:hidden;border:1px solid #6ee9ed55;border-radius:26px;background:radial-gradient(circle at 80% 10%,#174e78,#071a32 45%,#040f20);box-shadow:0 35px 120px #000c}
.jg-explainer-close{position:absolute;z-index:5;right:15px;top:13px;width:42px;height:42px;border:1px solid #9feff255;border-radius:999px;background:#06172dde;color:#fff;font-size:1.8rem;cursor:pointer}
.jg-explainer-stage{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.35fr);min-height:0;align-items:stretch}
.jg-explainer-copy{align-self:center;padding:clamp(32px,6vw,76px);padding-right:24px;color:#fff}.jg-explainer-copy>span{color:#73e4e3;font:850 .68rem/1 Inter,system-ui,sans-serif;letter-spacing:.14em}.jg-explainer-copy h2{margin:13px 0 16px;font:750 clamp(2rem,4vw,3.75rem)/1.02 Georgia,serif}.jg-explainer-copy p{max-width:460px;margin:0;color:#bfd3e5;font:500 clamp(.95rem,1.5vw,1.15rem)/1.55 Inter,system-ui,sans-serif}.jg-explainer-copy small{display:block;margin-top:28px;color:#86a6bf;font-size:.68rem}
.jg-explainer-visual{min-width:0;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#fdfefe,#eef4f5)}.jg-jamie-scene{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.jg-system-art{position:relative;display:grid;place-items:center;width:min(64%,390px);aspect-ratio:1;border:2px solid #17334a;border-radius:50%;color:#102b42}.jg-system-art b{display:grid;place-items:center;width:46%;aspect-ratio:1;border-radius:50%;background:#092b48;color:#fff;font:850 clamp(2.2rem,6vw,4.6rem)/1 Inter,system-ui,sans-serif;box-shadow:0 18px 45px #0a365044}.jg-system-art strong{position:absolute;top:75%;font:850 clamp(1rem,2vw,1.45rem)/1 Inter,system-ui,sans-serif}.jg-system-art i{position:absolute;width:18px;height:18px;border:3px solid #20aeb0;border-radius:50%;background:#fff}.jg-system-art i:nth-of-type(1){left:6%;top:35%}.jg-system-art i:nth-of-type(2){right:8%;top:24%}.jg-system-art i:nth-of-type(3){right:16%;bottom:15%}.jg-system-orbit{position:absolute;inset:-10%;border:2px dashed #2eb7ba;border-radius:50%;animation:jgOrbit 15s linear infinite}.jg-system-loop .jg-system-orbit{border-width:5px;border-style:solid;border-color:#2eb7ba transparent #2eb7ba transparent}
@keyframes jgOrbit{to{transform:rotate(360deg)}}
.jg-explainer-controls{display:flex;align-items:center;justify-content:center;gap:12px;min-height:68px;padding:10px 18px;background:#041225;border-top:1px solid #6ee9ed33}.jg-explainer-controls>button{min-width:42px;height:42px;border:1px solid #87edf055;border-radius:999px;background:#0a2845;color:#fff;font-size:1.45rem;cursor:pointer}.jg-explainer-controls .jg-play{min-width:75px;padding:0 14px;font-size:.75rem;font-weight:800}.jg-explainer-dots{display:flex;gap:7px}.jg-explainer-dots button{width:9px;height:9px;padding:0;border:0;border-radius:99px;background:#6e8ba4;cursor:pointer;transition:.2s}.jg-explainer-dots button.active{width:27px;background:#70e7e7}
@media(max-width:760px){
 .jg-public-nav nav button:first-child{display:none}.jg-landing-hero{min-height:auto;display:block;padding:224px 18px max(30px,env(safe-area-inset-bottom));background:#06162b}.jg-landing-hero:after{background:linear-gradient(180deg,#06162b0d 0%,#06162b26 18%,#06162bc9 36%,#06162bf8 46%,#06162b 100%)}.jg-hero-scene{inset:0 0 auto 0;width:100%;height:260px;opacity:1;object-position:68% 42%}.jg-landing-copy{position:relative;z-index:1;align-self:auto;width:100%;min-width:0;max-width:670px;text-shadow:0 2px 18px #0007}.jg-landing-copy h1{font-family:Inter,system-ui,sans-serif;font-size:clamp(2rem,9.4vw,2.65rem);font-weight:900;line-height:1.02;letter-spacing:-.045em;margin:11px 0 14px;max-width:100%;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;white-space:normal}.jg-landing-copy>p{max-width:34rem;font-size:.94rem;line-height:1.42;overflow-wrap:normal;word-break:normal}.jg-front-actions{grid-template-columns:1fr;margin-top:18px;gap:8px}.jg-front-actions button{min-height:47px}.jg-front-actions .jg-primary-action{box-shadow:0 10px 28px #21b9f544}.jg-front-note{margin-top:12px;text-align:center;font-size:.68rem}
 .jg-account-dialog{position:fixed;inset:auto 8px max(8px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));border-radius:22px}.jg-account-dialog form{padding:26px 20px max(22px,env(safe-area-inset-bottom))}
 .jg-explainer-dialog{position:fixed;inset:max(6px,env(safe-area-inset-top)) 6px max(6px,env(safe-area-inset-bottom));width:auto;height:auto;max-height:none}.jg-explainer-shell{border-radius:20px}.jg-explainer-stage{grid-template-columns:1fr;grid-template-rows:minmax(210px,42%) minmax(0,1fr)}.jg-explainer-copy{grid-row:2;padding:24px 22px 18px;align-self:start}.jg-explainer-copy h2{font-size:clamp(1.65rem,7vw,2.35rem);margin:9px 0 10px}.jg-explainer-copy p{font-size:.9rem;line-height:1.45}.jg-explainer-copy small{margin-top:11px}.jg-explainer-visual{grid-row:1}.jg-jamie-scene{object-position:65% center}.jg-system-art{width:min(46%,190px)}.jg-system-art strong{top:73%;font-size:.9rem}.jg-explainer-controls{min-height:62px;padding:8px;gap:8px}.jg-explainer-dots{gap:5px}.jg-explainer-controls>button{min-width:38px;width:38px;height:38px}.jg-explainer-controls .jg-play{min-width:62px;width:auto}
}
@media(max-width:390px){.jg-account-dialog form{gap:10px;padding-top:24px}.jg-account-dialog h2{font-size:1.4rem}.jg-account-dialog .jg-plan-options{gap:6px}.jg-account-dialog .jg-plan-options label{padding:9px}.jg-explainer-stage{grid-template-rows:minmax(175px,38%) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.jg-system-orbit{animation:none}.jg-explainer-dots button{transition:none}}

/* v575 continuous narrated pencil story */
.jg-continuous-explainer .jg-explainer-shell{grid-template-rows:minmax(0,1fr) 4px auto}
.jg-continuous-explainer .jg-explainer-stage{position:relative}
.jg-continuous-explainer .jg-explainer-copy{z-index:3}
.jg-live-caption{margin-top:24px;padding:12px 14px;border-left:3px solid #69e2df;background:#0b2945a8;color:#d7e7f3;font:500 .78rem/1.48 Inter,system-ui,sans-serif}
.jg-continuous-explainer .jg-explainer-visual{position:relative;isolation:isolate;background:#fff;overflow:hidden}
.jg-drawing-canvas{position:relative;flex:0 0 auto;overflow:visible;background:#fff}
.jg-continuous-image,.jg-sharp-image{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;clip-path:inset(0 0 100% 0);will-change:clip-path}.jg-continuous-image{z-index:1;opacity:.16;filter:grayscale(1) blur(.75px) contrast(1.35)}.jg-sharp-image{z-index:2}
.jg-trace-svg{position:absolute;z-index:3;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.jg-trace-svg .jg-draw-path{fill:none;stroke:transparent;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round}
.jg-anime-pencil{transform-origin:0 0;will-change:transform;filter:drop-shadow(0 5px 4px #07121d45)}.jg-anime-pencil-wiggle{transform-origin:0 0;will-change:transform}.jg-pencil-eraser{fill:#e993a3;stroke:#9b5261;stroke-width:1}.jg-pencil-ferrule{fill:#bcc6ca;stroke:#718087;stroke-width:1}.jg-pencil-body{fill:#f2c94c;stroke:#a87716;stroke-width:1}.jg-pencil-wood{fill:#e4bd87;stroke:#9c754e;stroke-width:1}.jg-pencil-lead{fill:#17222a}
.drawing-complete .jg-continuous-image{opacity:0}.drawing-complete .jg-sharp-image{clip-path:inset(0)}.drawing-complete .jg-trace-svg{opacity:0;transition:opacity .3s ease}.drawing-complete .jg-anime-pencil{opacity:0;transition:opacity .2s ease}
.story-paused *{animation-play-state:paused!important}
.jg-story-progress{height:4px;background:#203b53;overflow:hidden}.jg-story-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#4ed9d5,#a8fbfa);transition:width .45s ease}
.jg-continuous-explainer .jg-explainer-controls{justify-content:flex-start;min-height:64px}.jg-continuous-explainer .jg-explainer-controls>button{width:auto;min-width:78px;padding:0 15px;border-radius:12px;font-size:.72rem;font-weight:850}.jg-continuous-explainer .jg-explainer-controls>span{margin-left:auto;color:#9ab4c8;font-size:.72rem;font-weight:700}
.jg-continuous-explainer .jg-explainer-controls>button:disabled{opacity:.62;cursor:default}
@media(max-width:760px){
 .jg-continuous-explainer .jg-explainer-stage{grid-template-rows:minmax(215px,43%) minmax(0,1fr)}
 .jg-continuous-explainer .jg-explainer-copy{overflow:auto;padding:20px 20px 14px}
 .jg-continuous-explainer .jg-explainer-copy h2{font-size:clamp(1.55rem,6.7vw,2.15rem)}
 .jg-live-caption{margin-top:13px;padding:9px 11px;font-size:.7rem;line-height:1.38}
 .jg-continuous-image{object-position:center}
 .jg-continuous-explainer .jg-explainer-controls{gap:6px;padding:8px}
 .jg-continuous-explainer .jg-explainer-controls>button{min-width:0;height:38px;padding:0 11px;font-size:.66rem}
}
@media(max-width:390px){.jg-continuous-explainer .jg-explainer-stage{grid-template-rows:minmax(190px,40%) minmax(0,1fr)}.jg-live-caption{font-size:.66rem}.jg-continuous-explainer .jg-explainer-controls>span{display:none}}
@media(prefers-reduced-motion:reduce){.jg-continuous-image{opacity:0}.jg-sharp-image{clip-path:inset(0)}.jg-trace-svg,.jg-anime-pencil{display:none}.jg-story-progress i{transition:none}}

/* v628 collision-safe responsive handwriting ending and bottom CTA */
.jg-presentation-end-card{grid-column:1/-1;grid-row:1/-1;position:relative;box-sizing:border-box;display:grid;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;justify-items:center;gap:16px;width:100%;height:100%;min-width:0;min-height:0;padding:62px 28px 22px;background:radial-gradient(circle at 50% 43%,#0c3654 0,#06162b 52%,#041123 100%);color:#fff;text-align:center;overflow:hidden}
.jg-end-exit{position:absolute;z-index:4;top:16px;right:16px;width:46px;height:46px;border:1px solid #9feff277;border-radius:999px;background:#06172de8;color:#fff;font:400 1.9rem/1 Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 20px #0007}.jg-end-exit:hover,.jg-end-exit:focus-visible{border-color:#75f3ed;background:#0b3150;outline:3px solid #75f3ed55;outline-offset:2px}
.jg-end-message{container-type:size;align-self:stretch;display:grid;grid-template-rows:repeat(3,minmax(0,1fr));place-items:center;width:min(100%,980px);height:100%;min-width:0;min-height:0;padding:4px 28px;overflow:visible}
.jg-end-line{box-sizing:border-box;display:block;width:max-content;max-width:100%;padding:.05em .32em .15em;overflow:visible;color:#75f3ed;text-shadow:0 0 3px #d8fffd,0 0 9px #75f3edcc,0 0 19px #35c9c588;font:400 clamp(4.5rem,24vmin,14rem)/.95 "Brush Script MT","Segoe Script","Apple Chancery",cursive;font-size:clamp(4rem,min(30cqw,25cqh),14rem);letter-spacing:2px;white-space:nowrap;transform:translateX(clamp(-44px,-6vw,-24px));clip-path:inset(0 100% 0 0);animation:jgEndWriteReveal .84s steps(6,end) forwards,jgEndUnclip 0s linear .86s forwards}
.jg-end-line-2{animation:jgEndWriteReveal .42s steps(3,end) .84s forwards,jgEndUnclip 0s linear 1.28s forwards}.jg-end-line-3{animation:jgEndWriteReveal .7s steps(5,end) 1.26s forwards,jgEndUnclip 0s linear 1.98s forwards}
.jg-end-trial{align-self:end;width:min(94%,760px);min-height:62px;padding:15px 24px;border:1px solid #a8fffb;border-radius:13px;background:linear-gradient(135deg,#36ded7,#159aa2);color:#03182b;font:850 1.05rem/1 Inter,system-ui,sans-serif;box-shadow:0 0 0 0 #6ff6ef88;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(16px) scale(.96);animation:jgEndButtonIn .38s cubic-bezier(.2,.8,.2,1) 2.18s forwards,jgTrialPulse 1.1s ease-in-out 2.75s infinite}
@keyframes jgEndWriteReveal{to{clip-path:inset(0 0 0 0)}}
@keyframes jgEndUnclip{to{clip-path:none}}
@keyframes jgEndButtonIn{to{opacity:1;visibility:visible;transform:translateY(0) scale(1)}}
@keyframes jgTrialPulse{0%,100%{opacity:1;transform:scale(1);box-shadow:0 0 0 0 #6ff6ef66}50%{opacity:.72;transform:scale(1.035);box-shadow:0 0 0 13px #6ff6ef00}}

@media(prefers-reduced-motion:reduce){.jg-end-line{clip-path:none;animation:none}.jg-end-trial{opacity:1;visibility:visible;transform:none;animation:none}}
@media(max-width:760px){
 .jg-presentation-end-card{padding:58px 14px 14px;gap:12px}
 .jg-end-message{width:100%;padding:0 20px}
 .jg-end-line{font-size:clamp(4.7rem,25vmin,10rem)}
 .jg-end-trial{width:100%;min-height:58px}
}
@media(orientation:landscape) and (max-height:600px){
 .jg-explainer-dialog{inset:4px;width:auto;height:auto;max-height:none}
 .jg-continuous-explainer .jg-explainer-shell{grid-template-rows:minmax(0,1fr) 3px 52px}
 .jg-continuous-explainer .jg-explainer-stage{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);grid-template-rows:minmax(0,1fr);min-height:0}
 .jg-continuous-explainer .jg-explainer-copy{grid-row:1;align-self:stretch;min-height:0;overflow:auto;padding:40px 18px 10px}
 .jg-continuous-explainer .jg-explainer-copy h2{margin:7px 0 8px;font-size:clamp(1.3rem,5.5vh,2rem)}
 .jg-continuous-explainer .jg-explainer-copy p{font-size:clamp(.72rem,2.5vh,.9rem);line-height:1.32}
 .jg-continuous-explainer .jg-live-caption{margin-top:8px;padding:7px 9px;font-size:clamp(.61rem,2.15vh,.74rem);line-height:1.3}
 .jg-continuous-explainer .jg-explainer-visual{grid-row:1;min-height:0}
 .jg-continuous-explainer .jg-explainer-controls{min-height:52px;padding:5px 10px}
 .jg-presentation-end-card{padding:46px 20px 10px;gap:8px}
 .jg-end-message{grid-template-rows:repeat(3,minmax(0,1fr));width:min(100%,980px);padding:0 54px}
 .jg-end-line{font-size:clamp(3.25rem,17vh,7rem);line-height:.9}
 .jg-end-trial{width:min(76%,760px);min-height:48px;padding:10px 20px}
 .jg-end-exit{top:8px;right:10px;width:38px;height:38px;font-size:1.55rem}
}
@media(max-width:760px){
 .jg-public-nav{box-sizing:border-box;height:62px;padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
 .jg-public-brand{min-height:44px;padding:8px 0;text-align:left}
 .jg-public-nav nav button:last-child{display:inline-flex;align-items:center;justify-content:center;min-width:88px;min-height:42px;padding:0 15px;border:1px solid #8cefff88;border-radius:10px;background:#0a2947;color:#f4fcff;font-size:.78rem;box-shadow:0 6px 18px #00122555}
 .jg-landing-hero{box-sizing:border-box;min-height:calc(100svh - 62px);padding:188px 16px calc(18px + env(safe-area-inset-bottom));overflow:hidden}
 .jg-hero-scene{inset:0 0 auto 0;width:100%;height:218px;max-width:none;opacity:1;object-position:68% 42%}
 .jg-landing-copy{max-width:none;padding:0;width:100%}
 .jg-landing-copy h1{font-size:clamp(1.95rem,9vw,2.45rem);line-height:1;margin:9px 0 12px}
 .jg-landing-copy>p{font-size:.9rem;line-height:1.38}
 .jg-front-actions{grid-template-columns:1fr;gap:8px;margin-top:15px;max-width:none}
 .jg-front-actions button{min-width:0;min-height:46px;padding:10px 8px;font-size:.8rem}
 .jg-front-note{margin-top:10px}
}
@media(max-width:390px){
 .jg-landing-hero{padding-top:174px}
 .jg-hero-scene{height:202px}
 .jg-landing-copy h1{font-size:1.9rem}
}
@media(max-width:760px) and (max-height:740px){
 .jg-landing-hero{padding-top:148px}
 .jg-hero-scene{height:174px}
 .jg-landing-copy h1{font-size:1.72rem;margin:7px 0 9px}
 .jg-landing-copy>p{font-size:.84rem;line-height:1.32}
 .jg-front-actions{margin-top:11px}
 .jg-front-actions button{min-height:42px}
 .jg-front-note{display:none}
}

/* v634 — iPad/tablet Home uses the full canvas: two wide tiles by four even rows. */
@media(min-width:701px) and (max-width:1366px){
 body.dashboard-active:not(.mock-mode-active) #app{
  box-sizing:border-box!important;
  width:calc(100% - 32px)!important;
  max-width:none!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(4,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:12px!important;
  align-content:stretch!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr) 30px!important;
  grid-template-rows:minmax(0,1fr)!important;
  grid-template-areas:none!important;
  align-items:center!important;
  justify-items:stretch!important;
  gap:14px!important;
  padding:12px 16px!important;
  text-align:left!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>span:first-child{
  grid-column:1!important;
  grid-row:1!important;
  place-self:center!important;
  width:72px!important;
  height:72px!important;
  margin:0!important;
  transform:none!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>span:nth-child(2){
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:stretch!important;
  text-align:left!important;
  overflow:hidden!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile strong{
  margin:4px 0 0!important;
  font-size:clamp(.94rem,1.55vw,1.14rem)!important;
  line-height:1.08!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile em{
  margin-top:4px!important;
  font-size:clamp(.66rem,1vw,.76rem)!important;
  line-height:1.2!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain{
  grid-column:3!important;
  grid-row:1!important;
  position:static!important;
  place-self:center!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .tile-games{
  grid-column:auto!important;
  grid-row:auto!important;
 }
 body.dashboard-active:not(.mock-mode-active) #app .approved-home-grid.jg-v568-grid .tile-games>.tile-games-art{
  width:72px!important;
  height:72px!important;
 }

 .study-plan-dialog{
  box-sizing:border-box!important;
  position:fixed!important;
  inset:50% auto auto 50%!important;
  width:min(92vw,1100px)!important;
  height:min(90dvh,820px)!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  transform:translate(-50%,-50%)!important;
  overflow:hidden!important;
 }
 .study-plan-dialog>form{
  box-sizing:border-box!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  padding:24px!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
  align-content:start!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
 }
 .study-plan-dialog .plan-dialog-head,
 .study-plan-dialog>form>p.muted,
 .study-plan-dialog>form>.plan-form-grid,
 .study-plan-dialog .plan-reminders,
 .study-plan-dialog .plan-reset-zone,
 .study-plan-dialog .plan-dialog-preview,
 .study-plan-dialog .actions{
  grid-column:1/-1!important;
 }
 .study-plan-dialog>form>.plan-form-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
 }
 .study-plan-dialog .plan-accommodations,
 .study-plan-dialog .plan-profile-settings{
  grid-column:1/-1!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  align-self:start!important;
 }
 .study-plan-dialog .plan-profile-settings .plan-form-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
 }
 .study-plan-dialog .plan-accommodation-fields{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 .study-plan-dialog .actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}

/* v581 — keep the complete mobile action stack above Safari's bottom chrome. */
@media(max-width:760px){
 .jg-landing-hero{padding:148px 16px calc(12px + env(safe-area-inset-bottom));overflow:hidden}
 .jg-hero-scene{height:176px}
 .jg-landing-copy h1{font-size:clamp(1.72rem,8.1vw,2.18rem);line-height:.98;margin:7px 0 9px}
 .jg-landing-copy>p{font-size:.84rem;line-height:1.32}
 .jg-front-actions{margin-top:11px;gap:7px}
 .jg-front-actions button{min-height:42px;padding:8px;font-size:.76rem}
 .jg-front-note{display:none}
}
@media(max-width:390px){
 .jg-landing-hero{padding-top:136px}
 .jg-hero-scene{height:162px}
 .jg-landing-copy h1{font-size:1.64rem}
}
@media(max-width:760px) and (max-height:740px){
 .jg-landing-hero{padding-top:122px}
 .jg-hero-scene{height:148px}
 .jg-landing-copy h1{font-size:1.55rem;margin:5px 0 7px}
 .jg-landing-copy>p{font-size:.79rem;line-height:1.26}
 .jg-front-actions{margin-top:8px}
 .jg-front-actions button{min-height:40px}
}

/* v637 — the mobile front door occupies and balances the full visible viewport. */
@media(max-width:760px){
 html:has(body.jg-landing-active),
 body.jg-landing-active{
  box-sizing:border-box!important;
  min-height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow-x:hidden!important;
 }
 body.jg-landing-active #app.jg-public-app{
  box-sizing:border-box!important;
  min-height:100dvh!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
 }
 .jg-public-shell{
  box-sizing:border-box;
  min-height:100dvh;
 }
 .jg-public-nav{
  flex:0 0 62px;
  margin:0!important;
 }
 .jg-landing-hero{
  --jg-mobile-art-height:clamp(176px,27dvh,238px);
  box-sizing:border-box!important;
  display:flex!important;
  min-height:calc(100dvh - 62px)!important;
  height:calc(100dvh - 62px);
  padding:var(--jg-mobile-art-height) 16px max(14px,env(safe-area-inset-bottom))!important;
  align-items:stretch!important;
 }
 .jg-hero-scene{
  height:calc(var(--jg-mobile-art-height) + 26px)!important;
 }
 .jg-landing-copy{
  box-sizing:border-box;
  display:flex;
  flex:1 1 auto;
  min-height:0;
  flex-direction:column;
  justify-content:space-evenly;
  gap:clamp(5px,1.1dvh,11px);
 }
 .jg-landing-copy h1,
 .jg-landing-copy>p,
 .jg-front-actions,
 .jg-front-note{
  flex:0 0 auto;
 }
 .jg-landing-copy h1{margin:0!important}
 .jg-landing-copy>p{margin:0!important}
 .jg-front-actions{margin:0!important}
 .jg-front-note{margin:0!important}
}
@media(max-width:760px) and (max-height:740px){
 .jg-landing-hero{--jg-mobile-art-height:clamp(126px,23dvh,162px)}
 .jg-landing-copy{gap:4px}
}

/* v638 — iPhone Safari safe viewport and compact public preview. */
@media(max-width:760px){
 body.jg-landing-active #app.jg-public-app,
 .jg-public-shell{
  min-height:100svh!important;
 }
 .jg-landing-hero{
  --jg-mobile-art-height:clamp(150px,23svh,210px);
  min-height:calc(100svh - 62px)!important;
  height:calc(100svh - 62px)!important;
  padding-bottom:max(18px,env(safe-area-inset-bottom))!important;
 }
 .jg-landing-copy{
  gap:clamp(4px,.85svh,9px);
 }
 .jg-landing-copy h1{
  font-size:clamp(1.72rem,8.2vw,2.2rem)!important;
  line-height:.99!important;
 }
 .jg-landing-copy>p{
  font-size:.86rem!important;
  line-height:1.34!important;
 }
 .jg-front-actions{
  gap:7px!important;
 }
 .jg-front-actions button{
  min-height:42px!important;
 }
 .jg-preview-shell{
  box-sizing:border-box;
  width:calc(100% - 20px);
  margin:0 auto;
  padding:10px 0 max(104px,calc(70px + env(safe-area-inset-bottom)));
 }
 .jg-preview-shell>header{
  padding:10px 4px 16px;
 }
 .jg-preview-shell>header>button{
  min-height:42px;
  padding:8px 2px;
  font-size:.9rem;
 }
 .jg-preview-shell h1{
  font-size:clamp(1.72rem,8.2vw,2.15rem);
  line-height:1.02;
  margin:7px 0 10px;
 }
 .jg-preview-shell header p{
  max-width:32rem;
  margin:0 auto;
  font-size:.88rem;
  line-height:1.4;
 }
 .jg-preview-case,
 .jg-preview-includes{
  padding:18px;
  border-radius:17px;
 }
 .jg-preview-case h2{
  margin:6px 0 12px;
  font-size:1.35rem;
 }
 .jg-preview-case>p{
  margin:0 0 12px;
  font-size:.96rem;
  line-height:1.5;
 }
 .jg-preview-case fieldset{
  gap:8px;
  padding:8px 0;
 }
 .jg-preview-case legend{
  margin-bottom:7px;
  font-size:.98rem;
 }
 .jg-preview-case label{
  padding:12px;
  font-size:.9rem;
  line-height:1.38;
 }
 .jg-preview-actions{
  padding-bottom:env(safe-area-inset-bottom);
 }
}

/* v639 — reserve mobile landing space for both actions above Safari chrome. */
@media(max-width:760px){
 .jg-landing-hero{
  --jg-mobile-art-height:clamp(118px,18svh,158px);
  padding:var(--jg-mobile-art-height) 14px max(12px,env(safe-area-inset-bottom))!important;
 }
 .jg-hero-scene{
  height:var(--jg-mobile-art-height)!important;
 }
 .jg-landing-copy{
  justify-content:space-between;
  gap:4px!important;
 }
 .jg-landing-copy .jg-kicker{
  font-size:.62rem;
  line-height:1.2;
 }
 .jg-landing-copy h1{
  font-size:clamp(1.48rem,7.35vw,1.9rem)!important;
  line-height:.98!important;
 }
 .jg-landing-copy>p{
  font-size:.78rem!important;
  line-height:1.28!important;
 }
 .jg-front-actions{
  flex:0 0 auto!important;
  gap:6px!important;
 }
 .jg-front-actions button{
  min-height:39px!important;
  padding:7px 8px!important;
  font-size:.74rem!important;
 }
 .jg-front-note{
  display:none!important;
 }
}
@media(max-width:760px) and (max-height:700px){
 .jg-landing-hero{--jg-mobile-art-height:104px}
 .jg-landing-copy h1{font-size:1.38rem!important}
 .jg-landing-copy>p{font-size:.72rem!important}
 .jg-front-actions button{min-height:36px!important}
}

/* v761 light-theme authority.
   This file loads after styles.css, so the authenticated dashboard and
   Mini-Mocks rules live here to defeat older dark !important declarations.
   A colored (burnt-orange) box always carries white copy; white and light-gray
   boxes always carry black copy. Dark mode and authentic mock mode are untouched. */
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast){
 background:#faf8f5!important;
 background-image:linear-gradient(180deg,#fff 0%,#f1ece7 100%)!important;
 color:#211f1d!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile{
 background:#fff!important;
 background-image:none!important;
 border-color:#d8cec5!important;
 color:#211f1d!important;
 box-shadow:0 10px 25px rgba(77,58,43,.10)!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile:hover,
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile:focus-visible{
 background:#f1ece7!important;
 border-color:#a94f24!important;
 box-shadow:0 12px 28px rgba(77,58,43,.14)!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile::before{background:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile :is(strong,b){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile :is(em,small){color:#5f5953!important;-webkit-text-fill-color:#5f5953!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain{
 background:#a94f24!important;
 border-color:#7f381a!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav{
 background:#fff!important;
 background-image:none!important;
 border-color:#d8cec5!important;
 box-shadow:0 -7px 22px rgba(77,58,43,.12)!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button{
 background:transparent!important;
 color:#211f1d!important;
 -webkit-text-fill-color:#211f1d!important;
}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button.active{
 background:#eee8e2!important;
 color:#7f381a!important;
 -webkit-text-fill-color:#7f381a!important;
}

html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app.jg-mini-mocks-active{
 color:#211f1d!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-back{
 color:#7f381a!important;
 -webkit-text-fill-color:#7f381a!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-hero{
 background:#a94f24!important;
 background-image:linear-gradient(145deg,#b95b2c,#7f381a)!important;
 border-color:#7f381a!important;
 box-shadow:0 12px 28px rgba(77,58,43,.16)!important;
 color:#fff!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-hero :is(span,h1,p){
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub{
 background:#fff!important;
 background-image:none!important;
 border-color:#d8cec5!important;
 color:#211f1d!important;
 box-shadow:0 10px 26px rgba(77,58,43,.10)!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(h1,h2,h3,strong,b,p,summary){
 color:#211f1d!important;
 -webkit-text-fill-color:#211f1d!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.muted,small,.mini-source-note){
 color:#5f5953!important;
 -webkit-text-fill-color:#5f5953!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub .eyebrow{
 color:#7f381a!important;
 -webkit-text-fill-color:#7f381a!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-stats>div,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-topic-chips button,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.mini-prescription,.mini-app-dashboard,.mini-reading-signals,.mini-gap-grid>div,.mini-filter-bar,.practice-case-move){
 background:#eee8e2!important;
 background-image:none!important;
 border-color:#d4c9bf!important;
 color:#211f1d!important;
 box-shadow:none!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-stats>div :is(b,span),
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card :is(strong,small,span),
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-topic-chips button,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .practice-case-move :is(summary,p,strong,small,span){
 color:#211f1d!important;
 -webkit-text-fill-color:#211f1d!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card:hover,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card:focus-visible{
 background:#e2d9d1!important;
 border-color:#a94f24!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.btn-primary,.badge.good,.badge.warn){
 background:#a94f24!important;
 background-image:none!important;
 border-color:#7f381a!important;
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.btn-primary,.badge.good,.badge.warn) *{
 color:#fff!important;
 -webkit-text-fill-color:#fff!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.badge.neutral,.badge.provisional){
 background:#eee8e2!important;
 color:#211f1d!important;
 -webkit-text-fill-color:#211f1d!important;
}

/* v732 — approved compact iPhone access-pass selector.
   Four equal tabs fit in one view, the retired Best Value treatment stays gone,
   and the public page always remains vertically scrollable under Safari chrome. */
@media(max-width:560px){
 html:has(body.jg-landing-active),
 body.jg-landing-active{
  height:auto!important;
  min-height:100%!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
 }
 body.jg-landing-active #app.jg-public-app,
 body.jg-landing-active .jg-public-shell{
  height:auto!important;
  min-height:100svh!important;
  overflow:visible!important;
 }
 body.jg-landing-active .jg-public-pricing{
  box-sizing:border-box!important;
  width:calc(100% - 20px)!important;
  margin:12px auto max(96px,calc(70px + env(safe-area-inset-bottom)))!important;
  padding:17px 12px!important;
  border-radius:20px!important;
 }
 body.jg-landing-active .jg-pricing-head{margin:0 auto 13px!important}
 body.jg-landing-active .jg-pricing-head .jg-kicker{font-size:.58rem!important}
 body.jg-landing-active .jg-pricing-head h2{margin:5px 0 6px!important;font-size:1.38rem!important;line-height:1.05!important}
 body.jg-landing-active .jg-pricing-head p{margin:0!important;font-size:.72rem!important;line-height:1.3!important}
 body.jg-landing-active .jg-pricing-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
 }
 body.jg-landing-active .jg-price-card{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:auto auto 1fr!important;
  min-width:0!important;
  min-height:0!important;
  padding:11px!important;
  border:1px solid #405d78!important;
  border-radius:13px!important;
  transform:none!important;
  box-shadow:none!important;
 }
 body.jg-landing-active .jg-price-card h3{min-height:2.2em!important;margin:0 0 4px!important;font-size:.75rem!important;line-height:1.1!important}
 body.jg-landing-active .jg-price-card>strong{margin:0 0 7px!important;font-size:1.28rem!important;line-height:1!important}
 body.jg-landing-active .jg-price-card>small{display:none!important}
 body.jg-landing-active .jg-price-card button{align-self:end!important;min-height:36px!important;padding:8px 6px!important;border-radius:9px!important;font-size:.7rem!important;line-height:1!important}
}

/* v640 — final iPhone landing composition with a reserved Safari action zone. */
@media(max-width:760px){
 .jg-landing-hero{
  --jg-mobile-art-height:clamp(132px,20svh,176px);
  padding:var(--jg-mobile-art-height) 14px max(94px,calc(76px + env(safe-area-inset-bottom)))!important;
 }
 .jg-hero-scene{
  height:var(--jg-mobile-art-height)!important;
 }
 .jg-landing-copy{
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto auto!important;
  align-items:center!important;
  align-content:stretch!important;
  gap:clamp(8px,1.25svh,13px)!important;
 }
 .jg-landing-copy .jg-kicker{
  align-self:start;
 }
 .jg-landing-copy h1{
  align-self:center;
 }
 .jg-landing-copy>p{
  align-self:end;
 }
 .jg-front-actions{
  align-self:end;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
 }
 .jg-front-actions button{
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  min-height:40px!important;
  align-items:center!important;
  justify-content:center!important;
 }
}
@media(max-width:760px) and (max-height:700px){
 .jg-landing-hero{
  --jg-mobile-art-height:108px;
  padding-bottom:max(82px,calc(68px + env(safe-area-inset-bottom)))!important;
 }
 .jg-landing-copy{gap:5px!important}
 .jg-landing-copy h1{font-size:1.34rem!important}
 .jg-front-actions button{min-height:36px!important}
}


/* v645 — restore the public iPhone hero as a complete one-screen front door. */
@media(max-width:760px){
 body.jg-landing-active #app.jg-public-app,.jg-public-shell{height:auto!important;min-height:100svh!important}
 .jg-landing-hero{
  --jg-mobile-art-height:clamp(132px,20svh,176px);
  box-sizing:border-box!important;
  height:calc(100svh - 62px)!important;
  min-height:calc(100svh - 62px)!important;
  padding:var(--jg-mobile-art-height) 14px max(78px,calc(62px + env(safe-area-inset-bottom)))!important;
 }
 .jg-landing-copy{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:clamp(7px,1.05svh,11px)!important;
  min-height:0!important;
 }
 .jg-landing-copy .jg-kicker{margin:0!important;align-self:auto!important}
 .jg-landing-copy h1{margin:0!important;align-self:auto!important}
 .jg-landing-copy>p{margin:0!important;align-self:auto!important}
 .jg-front-actions{margin:0!important;margin-top:auto!important;align-self:stretch!important}
 .jg-front-note{display:none!important}
}
@media(max-width:760px) and (max-height:700px){
 .jg-landing-hero{--jg-mobile-art-height:108px;padding-bottom:max(68px,calc(54px + env(safe-area-inset-bottom)))!important}
 .jg-landing-copy{gap:5px!important}.jg-landing-copy h1{font-size:1.34rem!important}.jg-landing-copy>p{font-size:.72rem!important}.jg-front-actions button{min-height:36px!important}
}

/* v656 final mobile landing override — actions follow the description, never Safari chrome. */
@media(max-width:760px){
 .jg-landing-copy{justify-content:flex-start!important;gap:0!important}
 .jg-landing-copy .jg-kicker{margin:0 0 8px!important}
 .jg-landing-copy h1{margin:0 0 14px!important}
 .jg-landing-copy>p{margin:0 0 18px!important}
 .jg-front-actions{display:grid!important;visibility:visible!important;opacity:1!important;position:relative!important;inset:auto!important;width:100%!important;margin:0!important;margin-top:0!important;align-self:stretch!important;gap:9px!important;z-index:10!important}
 .jg-front-actions button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:48px!important}
}

/* v723 — full-height mobile lighthouse hero.
   The art now fills the complete usable viewport while the copy and both
   actions remain in a protected high-contrast zone above browser chrome. */
@media(max-width:760px){
 body.jg-landing-active #app.jg-public-app,
 body.jg-landing-active .jg-public-shell{
  width:100%!important;
  min-height:100dvh!important;
 }
 body.jg-landing-active .jg-landing-hero{
  --jg-v723-art-clearance:clamp(178px,29dvh,286px);
  box-sizing:border-box!important;
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:calc(100dvh - 62px)!important;
  min-height:calc(100dvh - 62px)!important;
  max-height:calc(100dvh - 62px)!important;
  padding:var(--jg-v723-art-clearance) 18px max(14px,env(safe-area-inset-bottom))!important;
  overflow:hidden!important;
 }
 body.jg-landing-active .jg-landing-hero .jg-hero-scene{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:68% 24%!important;
  opacity:1!important;
  transform:none!important;
 }
 body.jg-landing-active .jg-landing-hero:after{
  background:
   linear-gradient(180deg,rgba(3,16,34,.04) 0%,rgba(3,16,34,.12) 24%,rgba(3,16,34,.72) 42%,rgba(3,16,34,.96) 64%,#06162b 100%)!important;
 }
 body.jg-landing-active .jg-landing-copy{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:640px!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  gap:0!important;
 }
 body.jg-landing-active .jg-landing-copy .jg-kicker{
  margin:0 0 clamp(7px,1.2dvh,11px)!important;
  font-size:clamp(.64rem,2.7vw,.76rem)!important;
 }
 body.jg-landing-active .jg-landing-copy h1{
  margin:0 0 clamp(10px,1.7dvh,16px)!important;
  font-size:clamp(1.85rem,8.8vw,3rem)!important;
  line-height:.99!important;
 }
 body.jg-landing-active .jg-landing-copy>p{
  margin:0 0 clamp(12px,2dvh,19px)!important;
  font-size:clamp(.79rem,3.45vw,.98rem)!important;
  line-height:1.38!important;
 }
 body.jg-landing-active .jg-front-actions{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:clamp(8px,1.25dvh,11px)!important;
  width:100%!important;
  margin:auto 0 0!important;
  padding:0!important;
  visibility:visible!important;
  opacity:1!important;
 }
 body.jg-landing-active .jg-front-actions button{
  box-sizing:border-box!important;
  width:100%!important;
  min-height:clamp(44px,6.2dvh,54px)!important;
  padding:10px 14px!important;
 }
 body.jg-landing-active .jg-front-note{display:none!important}
}

@media(max-width:760px) and (max-height:700px){
 body.jg-landing-active .jg-landing-hero{
  --jg-v723-art-clearance:clamp(126px,24dvh,164px);
  padding-right:14px!important;
  padding-left:14px!important;
  padding-bottom:max(9px,env(safe-area-inset-bottom))!important;
 }
 body.jg-landing-active .jg-landing-copy .jg-kicker{margin-bottom:5px!important;font-size:.59rem!important}
 body.jg-landing-active .jg-landing-copy h1{margin-bottom:7px!important;font-size:clamp(1.45rem,7.5vw,2rem)!important}
 body.jg-landing-active .jg-landing-copy>p{margin-bottom:8px!important;font-size:.72rem!important;line-height:1.28!important}
 body.jg-landing-active .jg-front-actions{gap:6px!important}
 body.jg-landing-active .jg-front-actions button{min-height:38px!important;padding:7px 10px!important}
}

/* v731 approved iPhone landing controls lock.
   Mobile-only: keep Packages + Log In visible and the approved two hero actions intact. */
@media(max-width:760px){
 body.jg-landing-active .jg-public-nav nav [data-jg-about]{display:none!important}
 body.jg-landing-active .jg-public-nav nav [data-jg-packages],
 body.jg-landing-active .jg-public-nav nav [data-jg-login-open]{display:inline-flex!important;align-items:center!important;justify-content:center!important}
 body.jg-landing-active .jg-front-actions [data-jg-about],
 body.jg-landing-active .jg-front-actions [data-jg-packages]{display:flex!important;width:100%!important}
}

/* v724 — reserve space for iPhone Safari's floating bottom toolbar.
   Some iOS browser states overlay their chrome instead of reducing 100dvh. */
@media(max-width:760px){
 body.jg-landing-active .jg-landing-hero{
  --jg-v724-browser-guard:clamp(78px,10.5dvh,96px);
  padding-bottom:max(var(--jg-v724-browser-guard),calc(env(safe-area-inset-bottom) + 68px))!important;
 }
}

/* TEST23_VISUAL_GEOMETRY_START
   Approved iPhone landing geometry: lighthouse, copy, description, then two
   full-width actions in normal flow. No absolute/fixed action positioning. */
@media(max-width:760px){
 body.jg-landing-active .jg-landing-hero{
  --jg-test23-art:clamp(154px,24svh,210px);
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:calc(100svh - 62px)!important;
  max-height:none!important;
  padding:var(--jg-test23-art) 18px max(24px,calc(env(safe-area-inset-bottom) + 18px))!important;
  overflow:visible!important;
 }
 body.jg-landing-active .jg-landing-copy{
  box-sizing:border-box!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
 }
 body.jg-landing-active .jg-landing-copy .jg-kicker{margin:0 0 8px!important}
 body.jg-landing-active .jg-landing-copy h1{margin:0 0 14px!important}
 body.jg-landing-active .jg-landing-copy>p{margin:0 0 18px!important}
 body.jg-landing-active .jg-front-actions{
  position:static!important;
  inset:auto!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:9px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  visibility:visible!important;
  opacity:1!important;
 }
 body.jg-landing-active .jg-front-actions [data-jg-about],
 body.jg-landing-active .jg-front-actions [data-jg-packages]{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:48px!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
 }
 body.jg-landing-active .jg-public-trust,
 body.jg-landing-active .jg-public-footer{display:none!important}
}
@media(max-width:760px) and (max-height:760px){
 body.jg-landing-active .jg-landing-hero{
  --jg-test23-art:clamp(112px,19svh,145px);
  padding-right:14px!important;
  padding-left:14px!important;
  padding-bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px))!important;
 }
 body.jg-landing-active .jg-landing-copy .jg-kicker{margin-bottom:5px!important;font-size:.59rem!important}
 body.jg-landing-active .jg-landing-copy h1{margin-bottom:8px!important;font-size:clamp(1.42rem,7.3vw,1.92rem)!important}
 body.jg-landing-active .jg-landing-copy>p{margin-bottom:10px!important;font-size:.72rem!important;line-height:1.28!important}
 body.jg-landing-active .jg-front-actions{gap:6px!important}
 body.jg-landing-active .jg-front-actions [data-jg-about],
 body.jg-landing-active .jg-front-actions [data-jg-packages]{min-height:38px!important;padding:7px 10px!important}
}
/* TEST23_VISUAL_GEOMETRY_END */

/* TEST 23 IPHONE PURCHASE CONTRACT.
   Protected authority: four equal compact choices, top-right close button,
   no featured badge and no account form before Stripe. */
.jg-package-page{position:relative}
.jg-package-close{position:fixed;z-index:30;top:max(12px,env(safe-area-inset-top));right:14px;display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #aeeff066;border-radius:50%;background:#06162be8;color:#fff;font:500 1.75rem/1 system-ui,sans-serif;cursor:pointer;box-shadow:0 8px 24px #0006}
.jg-package-picker .jg-pass-options{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0!important}
.jg-package-picker .jg-pass-card{box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:142px;padding:16px;border:1px solid #405c75;border-radius:16px;background:#0d2439;color:#fff;text-align:left;cursor:pointer;font:inherit}
.jg-package-picker .jg-pass-card:hover,.jg-package-picker .jg-pass-card:focus-visible{border-color:#75ece5;background:linear-gradient(145deg,#123c53,#0c2a40);box-shadow:0 0 0 3px #62e7df1c;outline:0}
.jg-package-picker .jg-pass-card:disabled{opacity:.62;cursor:wait}
.jg-package-picker .jg-pass-card span{font-weight:850}.jg-package-picker .jg-pass-card strong{margin-top:7px;font-size:1.35rem}.jg-package-picker .jg-pass-card small{margin-top:auto;color:#b8c6d8;line-height:1.25}
.jg-package-secure-note{margin:13px 0 0;color:#9fb6ca;text-align:center;font-size:.76rem}.jg-package-picker>.jg-access-note{min-height:1.3em;margin:7px 0 0!important;color:#ffb3ae!important}
@media(max-width:1000px){.jg-package-picker .jg-pass-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.jg-package-picker .jg-pass-options{grid-template-columns:1fr!important}}
@media (max-width:620px) and (hover:none) and (pointer:coarse){
 .jg-package-page{min-height:100svh;padding-bottom:max(14px,env(safe-area-inset-bottom))}
 .jg-package-close{top:max(9px,env(safe-area-inset-top));right:10px;width:36px;height:36px;font-size:1.55rem}
 .jg-package-intro{width:calc(100% - 24px);padding:16px 0 8px}.jg-package-intro .jg-kicker{font-size:.62rem}.jg-package-intro h1{margin:5px 0;font-size:clamp(1.55rem,7.8vw,1.95rem)}.jg-package-intro p{font-size:.73rem;line-height:1.26;padding-right:28px}
 .jg-package-form.jg-package-picker{width:calc(100% - 24px);padding:8px;border-radius:15px}
 .jg-package-picker .jg-pass-options{gap:6px!important}
 .jg-package-picker .jg-pass-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;min-height:0;padding:8px 11px;border-radius:11px}
 .jg-package-picker .jg-pass-card span{grid-column:1;grid-row:1;font-size:.82rem;line-height:1.08}.jg-package-picker .jg-pass-card strong{grid-column:2;grid-row:1;margin:0;font-size:1.03rem;line-height:1;white-space:nowrap}.jg-package-picker .jg-pass-card small{grid-column:1/-1;grid-row:2;margin:0;font-size:.64rem;line-height:1.08}
 .jg-package-secure-note{margin:7px 4px 0;font-size:.61rem;line-height:1.2}.jg-package-picker>.jg-access-note{font-size:.66rem;min-height:1em;margin-top:3px!important}
}
@media (max-width:700px){
 body #app.jg-package-app{pointer-events:auto!important;position:relative;z-index:2}
 body #app.jg-package-app .jg-package-page,
 body #app.jg-package-app .jg-package-page *{pointer-events:auto!important}
 body #app.jg-package-app .jg-package-close{touch-action:manipulation!important;z-index:2147483000!important}
 body #app.jg-package-app .jg-pass-card{touch-action:manipulation!important;position:relative;z-index:3}
}
/* TEST23_IPHONE_PURCHASE_CONTRACT_END */
.jg-paid-account-page{box-sizing:border-box;display:grid;place-items:center;min-height:100dvh;padding:max(22px,env(safe-area-inset-top)) 16px max(22px,env(safe-area-inset-bottom));background:radial-gradient(circle at 78% 0,#174d80 0,#092746 28%,#06162b 66%);color:#f7fbff;outline:0}
.jg-paid-account-card{box-sizing:border-box;width:min(100%,620px);padding:clamp(24px,5vw,42px);border:1px solid #66dcd050;border-radius:24px;background:#081b30f2;box-shadow:0 28px 80px #0006}.jg-paid-account-card h1{margin:8px 0 10px;color:#fff;font:850 clamp(1.9rem,5vw,3rem)/1 Inter,system-ui,sans-serif;letter-spacing:-.035em}.jg-paid-account-card>p{margin:0 0 20px;color:#c2d5e6;line-height:1.5}.jg-paid-account-card form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.jg-paid-account-card label{display:grid;gap:6px;color:#c5d8e7;font-size:.76rem;font-weight:800}.jg-paid-account-card label:nth-of-type(1),.jg-paid-account-card label:nth-of-type(2),.jg-paid-account-card label:nth-of-type(3){grid-column:1/-1}.jg-paid-account-card input{box-sizing:border-box;width:100%;min-width:0;min-height:48px;padding:11px 12px;border:1px solid #486783;border-radius:10px;background:#061727;color:#fff;font:500 16px/1.2 Inter,system-ui,sans-serif}.jg-paid-account-card .jg-primary-action,.jg-paid-account-card .jg-access-note{grid-column:1/-1}.jg-paid-account-card .jg-access-note{color:#ffb3ae!important}
@media(max-width:620px){.jg-paid-account-card form{grid-template-columns:1fr}.jg-paid-account-card label{grid-column:1!important}.jg-paid-account-page{min-height:100svh;padding:10px 10px max(12px,env(safe-area-inset-bottom))}.jg-paid-account-card{padding:18px 15px;border-radius:18px}.jg-paid-account-card h1{font-size:1.65rem}.jg-paid-account-card>p{margin-bottom:13px;font-size:.82rem}.jg-paid-account-card form{gap:8px}.jg-paid-account-card input{min-height:43px;padding:9px 10px}.jg-paid-account-card .jg-primary-action{min-height:44px}}
@media(max-width:760px) and (max-height:700px){
 body.jg-landing-active .jg-landing-hero{
  --jg-v723-art-clearance:clamp(116px,21dvh,148px);
  --jg-v724-browser-guard:clamp(70px,10dvh,82px);
  padding-bottom:max(var(--jg-v724-browser-guard),calc(env(safe-area-inset-bottom) + 58px))!important;
 }
 body.jg-landing-active .jg-landing-copy h1{font-size:clamp(1.35rem,7vw,1.82rem)!important}
 body.jg-landing-active .jg-landing-copy>p{font-size:.68rem!important}
 body.jg-landing-active .jg-front-actions button{min-height:36px!important}
}

/* v761 FINAL light-mode cascade authority — must remain the final stylesheet block. */
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast){background:#faf8f5!important;background-image:linear-gradient(180deg,#fff,#f1ece7)!important;color:#211f1d!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 10px 25px rgba(77,58,43,.10)!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile:hover,
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile:focus-visible{background:#eee8e2!important;border-color:#a94f24!important;box-shadow:0 12px 28px rgba(77,58,43,.14)!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile::before{background:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile :is(strong,b){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile :is(em,small){color:#5f5953!important;-webkit-text-fill-color:#5f5953!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain{background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;box-shadow:0 -7px 22px rgba(77,58,43,.12)!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button{background:transparent!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button.active{background:#eee8e2!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app.jg-mini-mocks-active{color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-back{color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-hero{background:#a94f24!important;background-image:linear-gradient(145deg,#b95b2c,#7f381a)!important;border-color:#7f381a!important;box-shadow:0 12px 28px rgba(77,58,43,.16)!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-mini-mocks-hero :is(span,h1,p){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 10px 26px rgba(77,58,43,.10)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(h1,h2,h3,strong,b,p,summary){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.muted,small,.mini-source-note){color:#5f5953!important;-webkit-text-fill-color:#5f5953!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub .eyebrow{color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-stats>div,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-topic-chips button,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.mini-prescription,.mini-app-dashboard,.mini-reading-signals,.mini-gap-grid>div,.mini-filter-bar,.practice-case-move){background:#eee8e2!important;background-image:none!important;border-color:#d4c9bf!important;color:#211f1d!important;box-shadow:none!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-stats>div :is(b,span),
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card :is(strong,small,span),
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-topic-chips button,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .practice-case-move :is(summary,p,strong,small,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card:hover,
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-card:focus-visible{background:#e2d9d1!important;border-color:#a94f24!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.btn-primary,.badge.good,.badge.warn){background:#a94f24!important;background-image:none!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.btn-primary,.badge.good,.badge.warn) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .mini-mock-hub :is(.badge.neutral,.badge.provisional){background:#eee8e2!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}

/* v762 FINAL authenticated light-palette authority.
   Landing, dark mode, authentic mock workspaces, and high contrast are excluded. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast){
 --v762-paper:#faf8f5;--v762-white:#fff;--v762-gray:#eee8e2;--v762-gray2:#d8cec5;
 --v762-ink:#211f1d;--v762-muted:#625b54;--v762-orange:#a94f24;--v762-orange-dark:#7f381a;
 background:#faf8f5!important;color:#211f1d!important
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav{
 background:#fff!important;background-image:none!important;border-color:#d8cec5!important;box-shadow:0 -7px 22px rgba(77,58,43,.12)!important
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button{background:transparent!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .approved-bottom-nav button.active{background:#eee8e2!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}

/* Keep the approved artwork exactly intact; recolor only its light-mode pixels. */
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid :is(.tile-feature-art img,.tile-games-art img,.tile-printables-art img,.tile-art){filter:grayscale(1) sepia(1) saturate(4.2) hue-rotate(332deg) brightness(.78) contrast(1.08) drop-shadow(0 5px 10px rgba(127,56,26,.22))!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid :is(.tile-feature-art,.tile-games-art,.tile-printables-art){background:#f3ebe5!important;border-color:#d8cec5!important;box-shadow:none!important}

/* Study lesson colored header: orange surface, white content. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header{background:linear-gradient(145deg,#b65a2b,#7f381a)!important;border-color:#7f381a!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header :is(h1,h2,h3,p,span,strong,b,small,.lead,.eyebrow,.clinical-decision-hierarchy){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header .clinical-decision-hierarchy{border-top-color:rgba(255,255,255,.42)!important}

/* Adaptive study plan. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-hero{background:linear-gradient(145deg,#b65a2b,#7f381a)!important;border:1px solid #7f381a!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-hero :is(h1,h2,h3,p,span,strong,b,small,.eyebrow){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.adaptive-carry-note,.adaptive-recovery-note){background:rgba(255,255,255,.13)!important;border-color:rgba(255,255,255,.38)!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.adaptive-carry-note,.adaptive-recovery-note) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-progress-ring{background:conic-gradient(#fff var(--p),rgba(255,255,255,.23) 0)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-progress-ring:after{background:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-progress-bar{background:#d8cec5!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-progress-bar span{background:#a94f24!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-task{background:#fff!important;border-color:#d8cec5!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-task.current{background:#f4ece6!important;border-color:#a94f24!important;box-shadow:0 8px 20px rgba(127,56,26,.12)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-task.done{background:#eee8e2!important;border-color:#c7b7aa!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-task-icon{background:#eee8e2!important;color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-task-copy :is(strong,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-task-copy small{color:#625b54!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-priority-links>button{background:#fff!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-priority-links>button>b{background:#a94f24!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-priority-links>button i{color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .adaptive-daily-case-record .official-case-instruction{border-left-color:#a94f24!important}

/* Progress control center and readiness evidence. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-center{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-stat-grid>div{background:#eee8e2!important;border-color:#d8cec5!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-stat-grid :is(b,strong){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-stat-grid small{color:#625b54!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-domain-grid button{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-domain-grid :is(strong,b){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-domain-grid small{color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-domain-grid i{background:linear-gradient(90deg,#a94f24 var(--domain-progress),#d8cec5 0)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .control-actions button{background:#eee8e2!important;background-image:none!important;border-color:#c9b9ac!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.progress-control-active>.readiness-dial-card{display:grid!important;background:linear-gradient(145deg,#b65a2b,#7f381a)!important;border-color:#7f381a!important;color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.progress-control-active>.readiness-dial-card :is(h1,h2,h3,h4,p,span,strong,b,small,.eyebrow,.muted){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .readiness-dial-track{background:conic-gradient(from 225deg,rgba(255,255,255,.38) 0 75%,transparent 75% 100%)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .readiness-dial-needle{background:#fff!important;box-shadow:0 0 14px rgba(255,255,255,.55)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .readiness-dial-cap{background:#fff!important;border-color:#7f381a!important}

/* Mock-result reports (not the protected authentic test workspace). */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .mock-domain-label span{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .mock-domain-track{background:#d8cec5!important;border-color:#c8bbb0!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .mock-domain-track>span{background:#a94f24!important;background-image:none!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .tested-domain-tag{background:#eee8e2!important;border-color:#c8bbb0!important;color:#211f1d!important}

/* Printable library and curriculum. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-advanced-curriculum-card{background:linear-gradient(145deg,#b65a2b,#7f381a)!important;border-color:#7f381a!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-advanced-curriculum-card :is(h1,h2,h3,p,span,strong,b,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printables-summary{background:#eee8e2!important;border-color:#d8cec5!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printables-summary b{color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printables-summary span{color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printable-domain,.jg-printable-domain-disclosure,.jg-printable-card){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 10px 26px rgba(77,58,43,.09)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printable-domain,.jg-printable-domain-disclosure,.jg-printable-card) :is(h1,h2,h3,p,span,strong,b){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printable-card small,.jg-printable-domain small,.jg-printable-domain-disclosure small){color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printable-domain>header>span,.jg-printable-domain-disclosure>summary>span){background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printable-domain-disclosure>summary>b{border-color:#a94f24!important;color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printable-icon{background:#eee8e2!important;background-image:none!important;color:#211f1d!important;box-shadow:none!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printable-integrated{background:linear-gradient(145deg,#b65a2b,#7f381a)!important;border-color:#7f381a!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .jg-printable-integrated *{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Learning-game controls; the approved scene artwork itself is intentionally unchanged. */
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.game-exit,.game-score span){background:#eee8e2!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress{background:rgba(127,56,26,.94)!important;border-color:#a94f24!important;color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress :is(strong,span,b,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress em{background:rgba(255,255,255,.28)!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress em i{background:#fff!important;background-image:none!important;box-shadow:none!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-game-body,.purpose-game-prompt,.game-card){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-game-prompt :is(h1,h2,h3,p,strong,b,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-game-prompt p{background:#eee8e2!important;border-left-color:#a94f24!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-game-prompt small{color:#7f381a!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button{background:#eee8e2!important;background-image:none!important;border-color:#c8bbb0!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button.correct{background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button.wrong{background:#7f381a!important;border-color:#5e2813!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* v763 APPROVED exact warm-interface system — authenticated light mode only. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast){background:#faf8f5!important;background-image:none!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .topbar{background:#fff!important;border-bottom:1px solid #d8cec5!important;box-shadow:0 4px 18px rgba(77,58,43,.06)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .brand-mark{background:#a94f24!important;background-image:none!important;color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .brand :is(strong,small){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .menu-btn{background:#fff!important;border-color:#d8cec5!important}.jg-theme-light body:not(.jg-landing-active) .menu-btn span{background:#403a35!important}

html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app{background:#faf8f5!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .dashboard-welcome{display:block!important;margin:0 0 10px!important;padding:10px 12px!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .dashboard-welcome .eyebrow,
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .dashboard-welcome .welcome-metrics{display:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .dashboard-welcome h1{margin:0 0 5px!important;font-family:Inter,system-ui,sans-serif!important;font-size:clamp(1.65rem,6.7vw,2.25rem)!important;line-height:1!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .dashboard-welcome p{display:block!important;margin:0!important;color:#625b54!important;font-size:.88rem!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid{position:static!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:repeat(8,minmax(82px,auto))!important;gap:9px!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:0 10px 20px!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile{display:grid!important;grid-template-columns:74px minmax(0,1fr) 26px!important;grid-template-rows:1fr!important;grid-template-areas:"art copy help"!important;align-items:center!important;min-height:82px!important;height:auto!important;max-height:none!important;padding:8px 11px!important;gap:11px!important;text-align:left!important;border:1px solid #ded5cb!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>span:first-child{grid-area:art!important;display:block!important;width:66px!important;height:66px!important;margin:0!important;border:0!important;border-radius:13px!important;background-color:#f3ebe3!important;background-repeat:no-repeat!important;background-position:center!important;background-size:100% 100%!important;box-shadow:none!important;filter:none!important;overflow:hidden!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>span:first-child img,
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>span:first-child>*{display:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-plan>span:first-child{background-image:url('assets/branding/light-plan-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-study>span:first-child{background-image:url('assets/branding/light-study-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-practice>span:first-child{background-image:url('assets/branding/light-practice-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-games>span:first-child{background-image:url('assets/branding/light-games-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-mini>span:first-child{background-image:url('assets/branding/light-mini-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-mock>span:first-child{background-image:url('assets/branding/light-mock-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-progress>span:first-child{background-image:url('assets/branding/light-progress-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .tile-printables>span:first-child{background-image:url('assets/branding/light-printables-v763.svg')!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>span:nth-child(2){grid-area:copy!important;display:block!important;align-self:center!important;min-width:0!important;text-align:left!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>span:nth-child(2)>small{display:none!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile strong{display:block!important;margin:0!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;font-size:1.04rem!important;line-height:1.1!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile em{display:block!important;margin:5px 0 0!important;color:#625b54!important;-webkit-text-fill-color:#625b54!important;font-size:.74rem!important;line-height:1.25!important;font-style:normal!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain{grid-area:help!important;position:static!important;display:grid!important;place-items:center!important;width:25px!important;height:40px!important;border:0!important;background:transparent!important;color:transparent!important;font-size:0!important}
html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app .approved-home-grid.jg-v568-grid .home-tile>.tile-explain:before{content:'›';color:#403a35!important;font:400 2rem/1 Georgia,serif!important}

/* Exact approved Study Guide/domain cards. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header{position:relative!important;min-height:170px!important;padding:24px 24px 24px 150px!important;border:0!important;border-radius:20px!important;background:#a94f24!important;background-image:linear-gradient(135deg,#b95b2c,#94411f)!important;box-shadow:0 10px 24px rgba(127,56,26,.18)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header:before{content:'';position:absolute;left:24px;top:50%;width:100px;height:100px;transform:translateY(-50%);background:url('assets/branding/light-study-v763.svg') center/contain no-repeat;border-radius:18px}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header :is(.eyebrow,h1,p,.lead,strong){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header .clinical-decision-hierarchy{margin:14px 0 0!important;padding:10px 12px!important;border:1px solid rgba(255,255,255,.32)!important;border-radius:11px!important;background:rgba(255,255,255,.12)!important;color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-pane-head{padding:18px 6px 10px!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-pane-head :is(h2,p){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-pane-count{background:#f3ebe3!important;border-color:#d8cec5!important;color:#7f381a!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-list{display:grid!important;gap:10px!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;gap:12px!important;padding:14px!important;border:1px solid #ded5cb!important;border-radius:17px!important;background:#fff!important;background-image:none!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-icon{grid-column:1!important;grid-row:1/3!important;width:62px!important;height:62px!important;font-size:0!important;border:0!important;border-radius:13px!important;background:#f3ebe3 url('assets/branding/light-study-v763.svg') center/100% no-repeat!important;box-shadow:none!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-copy{grid-column:2!important;grid-row:1!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-copy small{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-copy :is(h3,p){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-actions{grid-column:2!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-actions button{min-height:44px!important;border:1px solid #a94f24!important;border-radius:9px!important;background:#fff!important;color:#a94f24!important;-webkit-text-fill-color:#a94f24!important;box-shadow:none!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-actions .concept-explore-launch{background:#a94f24!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-actions button *{color:inherit!important;-webkit-text-fill-color:inherit!important}

/* Exam Example and teaching overlays use the same approved component family. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-overlay,.concept-lesson-overlay){background:rgba(33,31,29,.46)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-shell,.concept-lesson-shell){background:#faf8f5!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-top,.concept-lesson-top){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-concept,.concept-lesson-lead){background:#a94f24!important;background-image:none!important;border-color:#7f381a!important;color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-concept,.concept-lesson-lead) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-question,.exam-example-record,.exam-example-choices,.exam-example-teaching,.concept-lesson-section,.concept-lesson-traps,.concept-lesson-remember,.concept-quick-item,.concept-quick-feedback){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .exam-example-choice{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .exam-example-choice[aria-checked="true"]{background:#f3ebe3!important;border-color:#a94f24!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.exam-example-back,.concept-lesson-back){color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}

@media(max-width:700px){
 html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast){overflow:auto!important;height:auto!important;max-height:none!important;padding-bottom:calc(82px + env(safe-area-inset-bottom))!important}
 html.jg-theme-light body.dashboard-active:not(.mock-mode-active):not(.high-contrast) #app{position:relative!important;inset:auto!important;width:auto!important;height:auto!important;min-height:calc(100dvh - 150px)!important;max-height:none!important;padding:8px 0 104px!important;overflow:visible!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header{min-height:0!important;padding:18px 16px 18px 104px!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header:before{left:14px;width:76px;height:76px}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header h1{font-size:1.62rem!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header .lead{font-size:.78rem!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .study-domain-header .clinical-decision-hierarchy{grid-column:1/-1;margin-left:-90px!important;font-size:.69rem!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row{grid-template-columns:56px minmax(0,1fr)!important;padding:11px!important;gap:10px!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-icon{width:52px!important;height:52px!important}
 html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .concept-row-actions{grid-column:1/-1!important}
}

/* v764 FINAL AUTHORITY — intentionally last. */
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) :is(.study-library-premium,.study-library-shell,.study-library-head,.study-official-domain,.study-domain-topics button,.study-pane,.study-anchor-strip,.concept-lesson-scroll,.exam-example-scroll,.concept-lesson-top,.exam-example-top,.concept-lesson-section,.concept-lesson-traps,.concept-lesson-remember,.concept-quick-item,.exam-example-question,.exam-example-record,.exam-example-choices,.exam-inline-teaching,.exam-answer-result,.exam-why-best,.exam-choice-analysis,.mini-mode-dialog,.mini-mode-dialog form,.mini-mode-card,.mini-mode-note,.mini-mock-hub,.mini-mock-card,.mini-prescription,.mini-app-dashboard,.mini-coverage-matrix,.mini-reading-signals,.mini-debrief-route){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) :is(.study-official-domain,.study-domain-topics button,.concept-lesson-top,.exam-example-top,.concept-lesson-section,.concept-lesson-traps,.concept-lesson-remember,.concept-quick-item,.exam-example-question,.exam-example-record,.exam-example-choices,.exam-inline-teaching,.exam-answer-result,.exam-why-best,.exam-choice-analysis,.mini-mode-dialog,.mini-mode-card,.mini-mode-note,.mini-mock-hub,.mini-mock-card,.mini-prescription,.mini-app-dashboard,.mini-coverage-matrix,.mini-reading-signals,.mini-debrief-route) :is(h1,h2,h3,h4,p,li,strong,b,span,small){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.study-official-domain-icon,.adaptive-task-icon){background:#f3ebe3!important;border-color:#d5b9a6!important;color:#7f381a!important;filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .study-official-domain-head small,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-kicker,.exam-example-question>span,.exam-choice-analysis>span,.exam-why-best>div>span){color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app :is(.adaptive-day-hero,.adaptive-carry-note){background:linear-gradient(135deg,#b95b2c,#7f381a)!important;border-color:#7f381a!important}.jg-theme-light #app :is(.adaptive-day-hero,.adaptive-carry-note) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .adaptive-day-task{background:#fff!important;border-color:#d8cec5!important}.jg-theme-light #app .adaptive-day-task.current{background:#f8eee7!important;border-color:#a94f24!important}.jg-theme-light #app .adaptive-task-copy :is(strong,span,small){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-lesson-lead{background:#a94f24!important}.jg-theme-light .concept-lesson-lead *{color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) .exam-example-choice{background:#fff!important;border-color:#d8cec5!important;color:#211f1d!important}.jg-theme-light .exam-example-choice.selected{background:#f3e6dc!important;border-color:#a94f24!important}.jg-theme-light .exam-example-choice.answer-correct{background:#f3e6dc!important;border-color:#a94f24!important}.jg-theme-light .exam-example-choice.answer-incorrect{background:#eee8e2!important;border-color:#8a7262!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) .exam-why-best{border-left:5px solid #a94f24!important}.jg-theme-light .teaching-bulb,.jg-theme-light .exam-choice-analysis b{background:#f3ebe3!important;color:#7f381a!important}
.concept-quick-choices button.quick-nudge{animation:jgQuickNudge .36s ease-in-out!important}.jg-theme-light .concept-quick-choices button.is-correct{background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}.jg-theme-light .concept-quick-choices button.is-correct *{color:#fff!important;-webkit-text-fill-color:#fff!important}.jg-theme-light .concept-quick-choices button.is-wrong{background:#eee8e2!important;border-color:#8a7262!important;color:#211f1d!important}.jg-theme-light .concept-quick-feedback.correct{background:#f3e6dc!important;border-left:4px solid #a94f24!important}.jg-theme-light .concept-quick-feedback.incorrect{background:#eee8e2!important;color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.high-contrast) .mini-mode-card:is(:hover,:focus-visible){background:#f3e6dc!important;border-color:#a94f24!important}.jg-theme-light .mini-mode-note{border-left:4px solid #a94f24!important}.jg-theme-light .mini-mode-close{background:#f3ebe3!important;border-color:#a94f24!important;color:#7f381a!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.game-retrieval-due,.domain-game-progress,.game-card,.purpose-game-body,.purpose-game-prompt){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}.jg-theme-light body.game-mode-active #app .game-retrieval-due{background:#f3ebe3!important;border-left:5px solid #a94f24!important}.jg-theme-light body.game-mode-active #app .game-retrieval-due *{color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}.jg-theme-light body.game-mode-active #app :is(.domain-mechanic-mark,.game-icon,.games-hero img){filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app :is(.jg-printables-back,.jg-printables-hero span,.jg-printable-card small,.jg-printable-domain header small){color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}.jg-theme-light #app .jg-printables-hero>img{filter:grayscale(1) sepia(.9) saturate(2) hue-rotate(335deg)!important}
.jg-pdf-open{overflow:hidden!important}.jg-pdf-viewer{position:fixed;inset:0;z-index:12000;display:grid;grid-template-rows:auto 1fr;background:#faf8f5}.jg-pdf-viewer header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:calc(9px + env(safe-area-inset-top)) 12px 9px;background:#fff;border-bottom:1px solid #d8cec5;box-shadow:0 3px 12px rgba(77,58,43,.12)}.jg-pdf-viewer header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#211f1d}.jg-pdf-viewer header button,.jg-pdf-viewer header a{min-height:40px;display:grid;place-items:center;padding:0 12px;border:1px solid #a94f24;border-radius:10px;background:#fff;color:#7f381a;text-decoration:none;font-weight:850}.jg-pdf-viewer header button:last-child{width:40px;padding:0;font-size:1.3rem;background:#a94f24;color:#fff}.jg-pdf-viewer iframe{width:100%;height:100%;border:0;background:#eee8e2}@media(max-width:620px){.jg-pdf-viewer header{grid-template-columns:auto minmax(0,1fr) auto}.jg-pdf-viewer header a{grid-column:1/-1;grid-row:2}.jg-pdf-viewer header button:last-child{grid-column:3;grid-row:1}.jg-pdf-viewer header strong{font-size:.82rem}}

/* v765 — Study screen residue correction from live iPhone review. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-official-domain-icon{
 background:#f3ebe3!important;background-color:#f3ebe3!important;background-image:none!important;
 border:1px solid #d8cec5!important;color:#7f381a!important;box-shadow:none!important;
 filter:grayscale(1) sepia(.75) saturate(1.65) hue-rotate(335deg)!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-track-selector{
 background:#f3ebe3!important;background-image:none!important;border-color:#d8cec5!important;box-shadow:none!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-track-selector .track-control button,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-library-quick button{
 background:#eee8e2!important;background-image:none!important;border:1px solid #d8cec5!important;color:#211f1d!important;box-shadow:none!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-track-selector .track-control button :is(strong,small),
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-library-quick button :is(b,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-track-selector .track-control button.selected{
 background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-track-selector .track-control button.selected :is(strong,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-library-quick button:is(:hover,:focus-visible){background:#e5d6ca!important;border-color:#a94f24!important}

/* v765 approved six-domain artwork and control-panel-matched Study flow. */
html.jg-theme-light #app.study-control-active .study-official-domain-icon{font-size:0!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;filter:none!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(1) .study-official-domain-icon{background-image:url('assets/branding/domain-ethics-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(2) .study-official-domain-icon{background-image:url('assets/branding/domain-assessment-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(3) .study-official-domain-icon{background-image:url('assets/branding/domain-focus-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(4) .study-official-domain-icon{background-image:url('assets/branding/domain-treatment-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(5) .study-official-domain-icon{background-image:url('assets/branding/domain-skills-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain:nth-child(6) .study-official-domain-icon{background-image:url('assets/branding/domain-attributes-v765.svg')!important}
html.jg-theme-light #app.study-control-active .study-official-domain{min-height:112px!important;padding:13px 16px!important;border:1px solid #ded5cb!important;border-radius:17px!important;background:#fff!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light #app.study-control-active .study-official-domain-head{grid-template-columns:68px minmax(0,1fr) auto!important;gap:14px!important}
html.jg-theme-light #app.study-control-active .study-official-domain-icon{width:62px!important;height:62px!important;border:0!important;border-radius:13px!important}
html.jg-theme-light #app.study-control-active .study-official-domain-head small{color:#a94f24!important;font-size:.68rem!important;letter-spacing:.1em!important}
html.jg-theme-light #app.study-control-active .study-official-domain-head strong{color:#211f1d!important;font-size:1rem!important;line-height:1.15!important}
html.jg-theme-light #app.study-control-active .study-official-domain-head>b{background:#eee8e2!important;border-color:#d8cec5!important;color:#211f1d!important}

html.jg-theme-light #app.study-domain-active{background:#faf8f5!important}
html.jg-theme-light #app.study-domain-active :is(.study-hub-tabs,.study-pane,.concept-row,.study-anchor-strip,.memory-chip){background:#fff!important;background-image:none!important;border-color:#ded5cb!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light #app.study-domain-active .study-hub-tabs{border-radius:17px!important;padding:7px!important;gap:7px!important}
html.jg-theme-light #app.study-domain-active .study-hub-tabs button{background:#eee8e2!important;border:1px solid #d8cec5!important;border-radius:11px!important;color:#211f1d!important}
html.jg-theme-light #app.study-domain-active .study-hub-tabs button.active{background:#a94f24!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light #app.study-domain-active .concept-row-icon{background-color:#f3ebe3!important;background-position:center!important;background-repeat:no-repeat!important;background-size:100% 100%!important;filter:none!important}
html.jg-theme-light #app.study-domain-active.official-domain-ethics :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-ethics-v765.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-assessmentDiagnosis :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-assessment-v765.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-clinicalFocus :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-focus-v765.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-treatmentPlanning :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-treatment-v765.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-counselingSkills :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-skills-v765.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-coreAttributes :is(.study-domain-header:before,.concept-row-icon){background-image:url('assets/branding/domain-attributes-v765.svg')!important}

/* Domain lesson hero: carry the selected domain artwork and the approved
   control-panel palette into the lesson, with an always-legible sequence. */
html.jg-theme-light #app.study-domain-active .study-domain-header{
 position:relative!important;display:block!important;min-height:210px!important;
 padding:24px 24px 24px 150px!important;border:1px solid #7f381a!important;
 border-radius:20px!important;background:linear-gradient(135deg,#b95b2c,#94411f)!important;
 color:#fff!important;box-shadow:0 10px 24px rgba(127,56,26,.18)!important;overflow:hidden!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-domain-active .study-domain-header{
 display:grid!important;grid-template-columns:122px minmax(0,1fr)!important;align-items:center!important;gap:18px!important;
 min-height:188px!important;padding:22px!important;border:0!important;border-radius:20px!important;
 background:#b45325!important;background-image:linear-gradient(135deg,#c4612d 0%,#a74720 72%,#8b381a 100%)!important;
 color:#fff!important;box-shadow:0 9px 23px rgba(127,56,26,.19)!important;overflow:hidden!important;
}
html.jg-theme-light #app.study-domain-active .study-domain-header:before{
 content:''!important;position:absolute!important;left:24px!important;top:30px!important;
 width:100px!important;height:100px!important;transform:none!important;border-radius:18px!important;
 background-color:#f3ebe3!important;background-position:center!important;background-repeat:no-repeat!important;
 background-size:100% 100%!important;box-shadow:0 5px 14px rgba(65,34,19,.2)!important;
}
html.jg-theme-light #app.study-domain-active .study-domain-header :is(.eyebrow,h1,p,.lead,strong,span,b){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html.jg-theme-light #app.study-domain-active .study-domain-header .clinical-decision-hierarchy{
 margin:18px 0 0!important;padding:13px!important;border:1px solid rgba(255,255,255,.44)!important;
 border-radius:13px!important;background:rgba(75,27,9,.24)!important;color:#fff!important;
}
html.jg-theme-light #app.study-domain-active .clinical-decision-hierarchy>strong{
 display:block!important;margin-bottom:10px!important;font-size:.72rem!important;letter-spacing:.12em!important;text-transform:uppercase!important;
}
html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow{
 display:flex!important;align-items:stretch!important;gap:7px!important;flex-wrap:wrap!important;
}
html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow span{
 position:relative!important;display:flex!important;align-items:center!important;gap:7px!important;flex:1 1 118px!important;
 min-height:42px!important;padding:7px 22px 7px 8px!important;border:1px solid rgba(255,255,255,.35)!important;
 border-radius:10px!important;background:rgba(255,255,255,.14)!important;font-size:.72rem!important;font-weight:800!important;line-height:1.15!important;
}
html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow span:not(:last-child):after{
 content:'›'!important;position:absolute!important;right:7px!important;top:50%!important;transform:translateY(-50%)!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:1.2rem!important;
}
html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow span b{
 display:grid!important;place-items:center!important;flex:0 0 24px!important;width:24px!important;height:24px!important;
 border-radius:50%!important;background:#f3ebe3!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;font-size:.72rem!important;
}
@media(max-width:700px){html.jg-theme-light #app.study-control-active .study-official-domain{min-height:92px!important;padding:10px 12px!important}html.jg-theme-light #app.study-control-active .study-official-domain-head{grid-template-columns:54px minmax(0,1fr) auto!important;gap:10px!important}html.jg-theme-light #app.study-control-active .study-official-domain-icon{width:52px!important;height:52px!important}html.jg-theme-light #app.study-control-active .study-official-domain-head strong{font-size:.9rem!important}}
@media(max-width:700px){
 html.jg-theme-light #app.study-domain-active .study-domain-header{min-height:0!important;padding:18px 14px 16px 104px!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header:before{left:14px!important;top:18px!important;width:76px!important;height:76px!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header h1{font-size:1.55rem!important;line-height:1.05!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header .lead{font-size:.82rem!important;line-height:1.35!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header .clinical-decision-hierarchy{margin:16px 0 0 -90px!important}
 html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow{display:grid!important;grid-template-columns:1fr 1fr!important}
 html.jg-theme-light #app.study-domain-active .clinical-hierarchy-flow span{min-height:40px!important;font-size:.68rem!important}
}

/* v766 approved warm application shell. The public landing, dark theme, high
   contrast, and the entered test simulator are intentionally out of scope. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast){background:#faf8f5!important;color:#211f1d!important}

/* The selected domain mark sits directly on the orange hero—no icon tile. */
html.jg-theme-light #app.study-domain-active.official-domain-ethics .study-domain-header:before{background-image:url('assets/branding/domain-ethics-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-assessmentDiagnosis .study-domain-header:before{background-image:url('assets/branding/domain-assessment-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-clinicalFocus .study-domain-header:before{background-image:url('assets/branding/domain-focus-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-treatmentPlanning .study-domain-header:before{background-image:url('assets/branding/domain-treatment-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-counselingSkills .study-domain-header:before{background-image:url('assets/branding/domain-skills-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active.official-domain-coreAttributes .study-domain-header:before{background-image:url('assets/branding/domain-attributes-mark-v766.svg')!important}
html.jg-theme-light #app.study-domain-active .study-domain-header:before{background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}

/* The hierarchy is a distinct white teaching card below the orange hero. */
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy{
 margin:14px 0!important;padding:16px!important;border:1px solid #ded5cb!important;border-radius:17px!important;
 background:#fff!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.08)!important;
}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy>strong{display:block!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;font-size:1rem!important;letter-spacing:0!important;text-transform:none!important}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy>p{margin:4px 0 14px!important;color:#625b54!important;-webkit-text-fill-color:#625b54!important;font-size:.82rem!important}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow{display:flex!important;align-items:flex-start!important;gap:22px!important;flex-wrap:nowrap!important}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span{
 position:relative!important;display:grid!important;justify-items:center!important;align-content:start!important;gap:7px!important;flex:1 1 0!important;
 min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;text-align:center!important;
}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span:not(:last-child):after{
 content:'→'!important;position:absolute!important;right:-18px!important;top:14px!important;transform:none!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;font-size:1.15rem!important;
}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span b{
 display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border:0!important;border-radius:50%!important;
 background:#f3ebe3!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;font-size:.9rem!important;box-shadow:inset 0 0 0 1px #d8cec5!important;
}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span:nth-child(n+3) b{background:#a94f24!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:none!important}
html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span em{color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;font-size:.7rem!important;font-style:normal!important;font-weight:800!important;line-height:1.16!important}

/* Learning Games menu follows the control-panel palette and approved target. */
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .games-hero{
 background:#fff!important;background-image:none!important;border-color:#ded5cb!important;color:#211f1d!important;box-shadow:0 8px 20px rgba(77,58,43,.08)!important;
}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .games-hero :is(h1,p,strong,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .games-hero .eyebrow{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-controller-hero img{filter:none!important;border-radius:22px!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-retrieval-due{background:#f3ebe3!important;border:1px solid #d8cec5!important;border-left:5px solid #a94f24!important;color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-retrieval-due *{color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-domain-card{background:#fff!important;background-image:none!important;border-color:#ded5cb!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-domain-index{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-domain-card :is(h2,p,strong,small){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-domain-card button{background:#eee8e2!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body.secondary-screen-active:not(.mock-mode-active):not(.high-contrast) #app .games-hub .game-domain-card button span{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}

/* Learning Game workspace: warm controls with guaranteed readable contrast;
   the full-scene artwork remains untouched. */
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress{background:rgba(127,56,26,.96)!important;border-color:#a94f24!important;color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress :is(strong,span,b,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress em{background:rgba(255,255,255,.28)!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-game-progress em i{background:#fff!important;background-image:none!important;box-shadow:none!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-game-body,.game-card,.purpose-game-prompt,.flash-card,.game-case-record,.instrument-match-target){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-game-body,.game-card,.purpose-game-prompt,.flash-card,.game-case-record,.instrument-match-target) :is(h1,h2,h3,p,strong,b,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-game-prompt,.flash-card)>small{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-game-prompt,.flash-card)>p,
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-case-record{background:#eee8e2!important;border-left-color:#a94f24!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.purpose-options button,.sequence-pieces button,.game-options button){background:#eee8e2!important;background-image:none!important;border-color:#c8bbb0!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.game-top .eyebrow,.game-footer span){color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app :is(.game-exit,.game-score span,.game-score button,.game-footer button){background:#eee8e2!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button.correct{background:#237a48!important;border-color:#145d34!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button.wrong{background:#a33831!important;border-color:#79251f!important;color:#fff!important;-webkit-text-fill-color:#fff!important}

/* Warm pre-exam mode chooser. The simulator begins only after a choice. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog{background:#faf8f5!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 24px 70px rgba(77,58,43,.28)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog::backdrop{background:rgba(70,62,56,.48)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog form{background:#faf8f5!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog :is(h2,p,strong,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog .eyebrow,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-dialog small{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-card{background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;box-shadow:0 5px 14px rgba(77,58,43,.07)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-card:is(:hover,:focus-visible){background:#f3ebe3!important;border-color:#a94f24!important;box-shadow:0 0 0 3px rgba(169,79,36,.12)!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-note{background:#eee8e2!important;border-left:4px solid #a94f24!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .mini-mode-close{background:#f3ebe3!important;border-color:#a94f24!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;box-shadow:none!important}

/* Full-mock selection is still part of the warm application. The deliberately
   plain blue exam UI begins only after Begin Mock changes the route to exam. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-control{
 padding:18px!important;border:1px solid #ded5cb!important;border-radius:22px!important;background:#fff!important;background-image:none!important;color:#211f1d!important;box-shadow:0 8px 22px rgba(77,58,43,.09)!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-control :is(h1,h2,h3,p,strong,b,small,span){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-control :is(.eyebrow,.mock-choice-label>strong){color:#a94f24!important;-webkit-text-fill-color:#a94f24!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-control :is(.badge.neutral,.mock-selection-live){background:#f3ebe3!important;border-color:#d8cec5!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .track-control button,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-grid button{
 background:#eee8e2!important;background-image:none!important;border:1px solid #d8cec5!important;color:#211f1d!important;box-shadow:none!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .track-control button.selected,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-grid button.selected{
 background:#a94f24!important;background-image:linear-gradient(135deg,#b95b2c,#94411f)!important;border-color:#7f381a!important;color:#fff!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active :is(.track-control button.selected,.mock-direct-grid button.selected) :is(strong,small){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-summary>div{
 background:#faf8f5!important;border:1px solid #d8cec5!important;color:#211f1d!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-direct-summary small{color:#625b54!important;-webkit-text-fill-color:#625b54!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.mock-control-active .mock-launch{
 background:#a94f24!important;background-image:linear-gradient(135deg,#c6612d,#a94f24)!important;border-color:#7f381a!important;color:#fff!important;-webkit-text-fill-color:#fff!important;box-shadow:0 7px 16px rgba(127,56,26,.18)!important;
}

@media(max-width:700px){
 html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy{padding:14px 11px!important}
 html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow{gap:15px!important;overflow-x:auto!important;padding-bottom:3px!important}
 html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span{min-width:82px!important}
 html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy .clinical-hierarchy-flow span:not(:last-child):after{right:-13px!important}
}

/* v767 exact approved domain art and iPhone layout authority. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art{
 display:block!important;background-color:transparent!important;
 background-image:url('assets/branding/domain-art-sprite-v767.png')!important;
 background-repeat:no-repeat!important;background-size:200% 300%!important;filter:none!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-1{background-position:0 0!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-2{background-position:100% 0!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-3{background-position:0 50%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-4{background-position:100% 50%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-5{background-position:0 100%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art-6{background-position:100% 100%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-control-active .study-official-domain-icon.domain-art,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-domain-active .domain-hero-art.domain-art,
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-domain-active .concept-row-icon.domain-art{
 background-image:url('assets/branding/domain-art-sprite-v767.png')!important;
 background-repeat:no-repeat!important;background-size:200% 300%!important;filter:none!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-1{background-position:0 0!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-2{background-position:100% 0!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-3{background-position:0 50%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-4{background-position:100% 50%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-5{background-position:0 100%!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app .domain-art.domain-art-6{background-position:100% 100%!important}
html.jg-theme-light #app.study-control-active .study-official-domain-icon{
 width:66px!important;height:66px!important;border:1px solid #ead4be!important;border-radius:15px!important;
 background-color:#f8efe5!important;box-shadow:0 4px 11px rgba(105,54,25,.1)!important;
}

html.jg-theme-light #app.study-domain-active .study-domain-header{
 display:grid!important;grid-template-columns:122px minmax(0,1fr)!important;align-items:center!important;gap:18px!important;
 min-height:188px!important;padding:22px!important;border:0!important;border-radius:20px!important;
 background:#b45325!important;background-image:linear-gradient(135deg,#c4612d 0%,#a74720 72%,#8b381a 100%)!important;
 color:#fff!important;box-shadow:0 9px 23px rgba(127,56,26,.19)!important;overflow:hidden!important;
}
html.jg-theme-light #app.study-domain-active .study-domain-header:before{content:none!important;display:none!important}
html.jg-theme-light #app.study-domain-active .domain-hero-art{width:122px!important;height:122px!important;align-self:center!important}
html.jg-theme-light #app.study-domain-active .study-domain-hero-copy{min-width:0!important}
html.jg-theme-light #app.study-domain-active .study-domain-header :is(.eyebrow,h1,p,.lead,strong,span,b){color:#fff!important;-webkit-text-fill-color:#fff!important}
html.jg-theme-light #app.study-domain-active .study-domain-header h1{margin:.3rem 0 .55rem!important;font-size:clamp(1.55rem,5vw,2.25rem)!important;line-height:1.02!important}
html.jg-theme-light #app.study-domain-active .study-domain-header .lead{margin:0!important;font-size:.87rem!important;line-height:1.4!important;opacity:.96!important}

html.jg-theme-light #app.study-domain-active>.clinical-decision-hierarchy{display:block!important;visibility:visible!important;opacity:1!important}
html.jg-theme-light #app.study-domain-active .concept-row-icon{
 width:66px!important;height:66px!important;border:1px solid #ead4be!important;border-radius:14px!important;
 background-color:#f8efe5!important;box-shadow:none!important;
}

/* Warm, readable game chrome; scene artwork itself remains untouched. */
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-top{grid-template-columns:auto minmax(0,1fr)!important;gap:10px!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-score{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;width:100%!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-score>span,
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-score>button{min-width:0!important;min-height:58px!important;margin:0!important;padding:7px 5px!important;border:1px solid #d8cec5!important;border-radius:12px!important;background:#eee8e2!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;text-align:center!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .game-score>button{font-size:.76rem!important;font-weight:850!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-stage-badge{background:rgba(250,248,245,.94)!important;border-color:#d8cec5!important;box-shadow:0 4px 13px rgba(33,31,29,.18)!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .domain-stage-badge :is(small,b){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .match-arrow{color:#a94f24!important;-webkit-text-fill-color:#a94f24!important;font-weight:900!important}
html.jg-theme-light body.game-mode-active:not(.mock-mode-active):not(.high-contrast) #app .purpose-options button{color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;opacity:1!important}

@media(max-width:700px){
 html.jg-theme-light #app.study-control-active .study-official-domain-icon{width:58px!important;height:58px!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header{grid-template-columns:96px minmax(0,1fr)!important;gap:14px!important;min-height:172px!important;padding:18px!important}
 html.jg-theme-light #app.study-domain-active .domain-hero-art{width:96px!important;height:96px!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header h1{font-size:1.5rem!important}
 html.jg-theme-light #app.study-domain-active .study-domain-header .lead{font-size:.78rem!important}
 html.jg-theme-light #app.study-domain-active .concept-row-icon{width:58px!important;height:58px!important}
 html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) #app.study-domain-active .study-domain-header{grid-template-columns:96px minmax(0,1fr)!important;gap:14px!important;min-height:172px!important;padding:18px!important}
}

/* v773: the public landing page remains complete and readable when a phone or
   tablet is rotated. This deliberately overrides the portrait viewport lock. */
@media (orientation:landscape) and (max-height:600px) and (max-width:1100px){
 html:has(body.jg-landing-active),body.jg-landing-active{min-height:100%!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important}
 body.jg-landing-active #app.jg-public-app,.jg-public-shell{min-height:100dvh!important;height:auto!important;overflow:visible!important}
 body.jg-landing-active .jg-public-nav{box-sizing:border-box;height:56px!important;padding-left:max(16px,env(safe-area-inset-left))!important;padding-right:max(16px,env(safe-area-inset-right))!important}
 body.jg-landing-active .jg-public-brand{font-size:1rem!important;white-space:nowrap}.jg-public-brand b{width:38px!important;height:38px!important;border-radius:10px!important}
 body.jg-landing-active .jg-public-nav nav{gap:7px!important}.jg-public-nav nav [data-jg-about]{display:none!important}
 body.jg-landing-active .jg-public-nav nav [data-jg-packages],body.jg-landing-active .jg-public-nav nav [data-jg-login-open]{display:inline-flex!important;min-height:38px!important;padding:0 12px!important;font-size:.72rem!important}
 body.jg-landing-active .jg-landing-hero{
  display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(280px,.95fr)!important;align-items:center!important;
  width:100%!important;min-height:calc(100dvh - 56px)!important;height:auto!important;
  padding:18px max(20px,env(safe-area-inset-right)) 24px max(20px,env(safe-area-inset-left))!important;overflow:hidden!important;
 }
 body.jg-landing-active .jg-hero-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:70% center!important}
 body.jg-landing-active .jg-landing-hero:after{background:linear-gradient(90deg,rgba(8,18,31,.92) 0%,rgba(8,18,31,.73) 48%,rgba(8,18,31,.08) 78%,rgba(8,18,31,.16) 100%)!important}
 body.jg-landing-active .jg-landing-copy{grid-column:1!important;display:grid!important;align-content:center!important;justify-content:stretch!important;gap:8px!important;width:100%!important;max-width:620px!important;padding:0!important;color:#fff!important;text-shadow:0 2px 16px rgba(18,10,8,.68)!important}
 body.jg-landing-active .jg-landing-copy .jg-kicker{font-size:.58rem!important;color:#f0a278!important;-webkit-text-fill-color:#f0a278!important}
 body.jg-landing-active .jg-landing-copy h1{margin:0!important;font-size:clamp(1.7rem,6.5vh,2.45rem)!important;line-height:.98!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.jg-landing-active .jg-landing-copy>p{margin:0!important;max-width:540px!important;font-size:clamp(.72rem,2.7vh,.92rem)!important;line-height:1.32!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.jg-landing-active .jg-front-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:2px 0 0!important}
 body.jg-landing-active .jg-front-actions button{min-height:40px!important;padding:7px 10px!important;font-size:.74rem!important}
 body.jg-landing-active .jg-inside-preview-link{grid-column:1/-1!important;grid-template-columns:42px minmax(0,1fr) auto!important;margin:0!important;padding:7px 10px!important;border-radius:12px!important}
 body.jg-landing-active .jg-inside-preview-link .jg-preview-doc{width:38px!important;height:38px!important;font-size:1.25rem!important}
 body.jg-landing-active .jg-inside-preview-link strong{font-size:.78rem!important}.jg-inside-preview-link small{font-size:.61rem!important}
 body.jg-landing-active .jg-front-note{display:none!important}
}

/* v781 — Explore Concept is mounted directly under body, outside #app. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-back,.concept-lesson-close){background:#eee8e2!important;background-image:none!important;border-color:#d8cec5!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important;box-shadow:none!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) :is(.concept-lesson-back,.concept-lesson-close):is(:hover,:focus-visible){background:#f3e6dc!important;border-color:#a94f24!important;color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-lesson-section :is(ul,ol,li){color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-head span{background:#f3ebe3!important;border-color:#d8cec5!important;color:#7f381a!important;-webkit-text-fill-color:#7f381a!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-item{border-color:#d8cec5!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-item>strong{color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-choices button:not(.is-correct):not(.is-wrong){background:#fff!important;background-image:none!important;border-color:#d8cec5!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important;box-shadow:none!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-choices button:not(.is-correct):not(.is-wrong):is(:hover,:focus-visible){background:#f3e6dc!important;border-color:#a94f24!important;color:#211f1d!important}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-quick-feedback:not(.correct):not(.incorrect){background:#f3ebe3!important;border-color:#d8cec5!important;color:#211f1d!important;-webkit-text-fill-color:#211f1d!important}

/* v804 FINAL AUTHORITY — burnt-orange Explore Concept lead cards always use
   high-contrast white copy. The lesson overlay is mounted directly under the
   document body, and this must remain after the general white-card rules. */
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-lesson-section.concept-lesson-lead{
 background:#a94f24!important;background-image:none!important;border-color:#d8cec5!important;
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}
html.jg-theme-light body:not(.jg-landing-active):not(.mock-mode-active):not(.high-contrast) .concept-lesson-section.concept-lesson-lead :is(.concept-lesson-kicker,p,span,strong,b,em,ul,ol,li){
 color:#fff!important;-webkit-text-fill-color:#fff!important;
}

/* PDF controls stay outside the document and visible at every viewport height. */
.jg-pdf-viewer{height:100vh;height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr) auto;background:#edf4f8;isolation:isolate}
.jg-pdf-viewer .jg-pdf-toolbar{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;background:#071e32;color:white;position:relative;z-index:2}
.jg-pdf-toolbar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.95rem;color:white}
.jg-pdf-viewer .jg-pdf-toolbar button,.jg-pdf-viewer .jg-pdf-toolbar a,.jg-pdf-viewer .jg-pdf-exit button{min-height:44px;padding:9px 13px;border:1px solid #60d9cf;border-radius:10px;background:#fff;color:#073b45;font:700 14px/1.3 system-ui;text-decoration:none;cursor:pointer}
.jg-pdf-viewer .jg-pdf-toolbar button:last-child{font-size:20px;min-width:44px}
.jg-pdf-viewer iframe{display:block;min-height:0;min-width:0;width:100%;height:100%;border:0}
.jg-pdf-viewer .jg-pdf-exit{display:flex;justify-content:center;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#071e32;position:relative;z-index:2}
.jg-pdf-viewer .jg-pdf-exit button{background:#60d9cf;color:#071e32;min-width:230px}
.jg-pdf-viewer button:focus-visible,.jg-pdf-viewer a:focus-visible{outline:3px solid #ffcd68;outline-offset:2px}
@media(max-width:620px){.jg-pdf-viewer .jg-pdf-toolbar{grid-template-columns:minmax(0,1fr) auto}.jg-pdf-toolbar strong{grid-column:1;grid-row:2;font-size:12px}.jg-pdf-viewer .jg-pdf-toolbar a{grid-column:2;grid-row:2;font-size:12px;padding:6px}.jg-pdf-viewer .jg-pdf-toolbar button:last-child{grid-column:2;grid-row:1}.jg-pdf-viewer .jg-pdf-toolbar button:first-child{justify-self:start}}
