/* Review Today layer-only sheet. Does not modify learner card CSS. */
.gic-lr-backdrop{position:fixed;inset:0;z-index:2147482000;background:rgba(7,27,22,.66);display:flex;justify-content:flex-end;align-items:stretch;box-sizing:border-box}
.gic-lr-backdrop *{box-sizing:border-box}
.gic-lr-sheet{height:100%;width:min(760px,90vw);display:flex;flex-direction:column;background:#f7faf8;color:#163f37;box-shadow:-16px 0 60px rgba(0,0,0,.2);overflow:hidden;min-height:0}
.gic-lr-header{background:#fff;border-bottom:1px solid #d8e4df;padding:24px 26px 18px;flex:0 0 auto}
.gic-lr-eyebrow{color:#b39240;font-size:11px;letter-spacing:.11em;font-weight:800;text-transform:uppercase;display:flex;justify-content:space-between}
.gic-lr-toprow{display:flex;align-items:center;gap:16px;margin-top:9px}
.gic-lr-toprow h2{font:700 clamp(24px,3vw,34px)/1.16 Georgia,serif;color:#0c5746;flex:1;margin:0}
.gic-lr-close{flex:0 0 auto;width:42px;height:42px;border:1px solid #d4e4dc;border-radius:50%;background:#fff;color:#17493e;font-size:29px;cursor:pointer;line-height:1}
.gic-lr-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.gic-lr-badges span:not(:empty){font-size:13px;font-weight:700;border-radius:99px;background:#e5f3ed;color:#115c4a;padding:7px 12px}
.gic-lr-scroll{flex:1;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:24px 26px;min-height:0}
.gic-lr-lesson{background:#fff;border:1px solid #d9e7df;border-radius:20px;padding:22px 24px;line-height:1.65;color:#17342c;overflow-wrap:anywhere}
.gic-lr-lesson .gic-v2-panel,.gic-lr-lesson .gic-layer-panel,.gic-lr-lesson [data-gic-layer-panel]{display:block!important;visibility:visible!important;opacity:1!important;max-height:none!important;overflow:visible!important;margin:0!important}
.gic-lr-lesson [hidden]{display:initial!important}
.gic-lr-lesson button:not(.gic-lr-audio-button){cursor:pointer}
.gic-lr-lesson button[data-src],.gic-lr-lesson button[data-gic-layer-audio],.gic-lr-lesson button[data-gic-aqc-src],.gic-lr-lesson button[data-gic-audio]{touch-action:manipulation}
.gic-lr-message{border-radius:12px;padding:12px 15px;background:#eef4f1;color:#174a40;margin-bottom:14px;font-size:13px}
.gic-lr-message[data-kind="error"]{background:#fff0ef;color:#a04742}
.gic-lr-source{display:inline-block;padding:10px 14px;border:1px solid #a4c5ba;border-radius:12px;color:#126a58;text-decoration:none;margin-top:12px;font-weight:700}
.gic-lr-footer{background:#fff;border-top:1px solid #d7e6de;padding:15px 26px 18px;flex:0 0 auto}
.gic-lr-q{font-size:16px;font-weight:800;color:#516760;margin-bottom:12px}
.gic-lr-ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.gic-lr-ratings button{display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:center;text-align:center;border:1.5px solid #a9cabc;border-radius:13px;background:#ebf8f3;color:#115b49;padding:11px 5px;min-height:63px;cursor:pointer;font-family:inherit}
.gic-lr-ratings button strong{font-size:13px}
.gic-lr-ratings button small{font-size:10px;opacity:.82}
.gic-lr-ratings button[data-lr-rate="needs_practice"]{border-color:#e4b9b5;background:#fff2f1;color:#8f423c}
.gic-lr-ratings button[data-lr-rate="learning"]{border-color:#dcc887;background:#fffbed;color:#796122}
.gic-lr-ratings button[data-lr-rate="mastered"]{border-color:#9fbfac;background:#e4f4eb;color:#135943}
.gic-lr-ratings button:disabled{opacity:.5;cursor:not-allowed}
.gic-lr-footer-line{margin-top:9px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.gic-lr-skip{background:transparent;border:0;padding:10px 5px;color:#246756;font-weight:700;cursor:pointer}
.gic-lr-footer-line span{font-size:12px;color:#1b674f}
.gic-lr-is-playing{outline:2px solid #c39e43!important;outline-offset:3px}
.gic-lr-audio-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid #8dbdaf;background:#e6f7ef;color:#145c4a;border-radius:99px;width:37px;height:37px;cursor:pointer;margin-left:8px;vertical-align:middle}
.gic-lr-additional-audio{border:1px solid #d6e3da;border-radius:14px;background:#f6faf7;margin-top:20px;padding:14px}
.gic-lr-additional-audio h3{font-size:15px;margin:0 0 10px}
.gic-lr-additional-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e1eae4}
.gic-lr-additional-row:last-child{border-bottom:0}
.gic-lr-done{text-align:center;padding:30px 14px;color:#16644f;font-size:35px}
.gic-lr-done h3{font:700 27px Georgia,serif;margin:8px 0}
.gic-lr-done p{font:400 15px system-ui,sans-serif;color:#65756e}
.gic-lr-close:focus-visible,.gic-lr-ratings button:focus-visible,.gic-lr-skip:focus-visible{outline:3px solid #bb993f;outline-offset:2px}
@media(max-width:700px){
 .gic-lr-backdrop{align-items:stretch;justify-content:stretch}
 .gic-lr-sheet{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 .gic-lr-header{padding:14px 18px 12px}
 .gic-lr-toprow h2{font-size:25px}
 .gic-lr-scroll{padding:12px 13px}
 .gic-lr-lesson{padding:17px 14px;border-radius:16px}
 .gic-lr-footer{padding:10px 12px calc(12px + env(safe-area-inset-bottom))}
 .gic-lr-q{font-size:14px;margin-bottom:7px}
 .gic-lr-ratings{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .gic-lr-ratings button{min-height:49px;padding:6px 3px;gap:2px}
 .gic-lr-ratings button strong{font-size:13px}
 .gic-lr-ratings button small{font-size:10px}
}
/* Respect the HTML hidden attribute even when a site stylesheet overrides display. */
.gic-lr-ratings[hidden],.gic-lr-q[hidden],.gic-lr-message[hidden]{display:none!important}
/* Comfortable touch targets for lesson buttons whose styling came from a page-specific stylesheet. */
.gic-lr-lesson button.pl,.gic-lr-lesson button.gic-mini-audio,.gic-lr-lesson button.gic-aqc-pub-play,.gic-lr-lesson button.gic-manual-sound{
 min-width:38px;min-height:38px;border-radius:999px;vertical-align:middle;border:1px solid #a4cdbd;background:#e6f5ee;color:#145c4a;cursor:pointer;margin-inline:4px;
}

/* V2 — Premium, distraction-free layer review UI. Scoped to the drawer only. */
.gic-lr-backdrop{background:rgba(11,32,28,.72);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.gic-lr-sheet{background:linear-gradient(155deg,#edf6f2 0%,#f9faf6 53%,#f4f7f4 100%);border-left:1px solid rgba(212,224,216,.7)}
.gic-lr-header{position:relative;padding:20px 26px 16px;background:radial-gradient(ellipse at 98% 0%,rgba(220,239,226,.75),transparent 60%),linear-gradient(165deg,#ffffff,#f6fbf8);border-bottom:1px solid #dce7df;box-shadow:0 7px 22px rgba(28,70,53,.035);z-index:2}
.gic-lr-header::before{content:"";display:block;position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#0b6250,#43a48c 50%,#d0a64e 90%)}
.gic-lr-eyebrow{letter-spacing:.13em;font-size:10px;color:#a17c2b}
.gic-lr-toprow{gap:10px;margin-top:8px}
.gic-lr-toprow h2{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:-.025em;line-height:1.12;color:#135947;font-size:clamp(23px,2.7vw,32px)}
.gic-lr-close{background:#fff;border:1px solid #d1dfd6;color:#2c594b;width:40px;height:40px;font-size:26px;box-shadow:0 3px 12px rgba(26,65,48,.045);transition:background .15s ease}
.gic-lr-close:hover{background:#eaf3ee}
.gic-lr-badges{margin-top:11px;gap:7px}
.gic-lr-badges span:not(:empty){font-size:12px;padding:5px 11px;line-height:1.45;background:#e5f1ec;color:#135c49;font-weight:700}
.gic-lr-badges span[data-lr-state]:not(:empty){background:#fff5dc;color:#84651e}
.gic-lr-progress{height:4px;width:100%;border-radius:9px;background:#e2ebe5;margin-top:13px;overflow:hidden}
.gic-lr-progress span{height:100%;display:block;width:0%;border-radius:9px;background:linear-gradient(90deg,#156b58,#58b79b);transition:width .25s ease}
.gic-lr-scroll{padding:18px 22px 26px;background:transparent;scrollbar-color:#bfd3c9 transparent;scrollbar-width:thin}
.gic-lr-lesson{border:1px solid #dde8df;background:#fff;border-radius:19px;padding:22px 24px;box-shadow:0 8px 24px rgba(20,60,48,.045);line-height:1.65;overflow-x:hidden;overflow-y:visible}
.gic-lr-lesson :is(h1,h2,h3){overflow-wrap:anywhere}
.gic-lr-lesson :is(.gic-layer-actions,.gic-v2-layer-actions,.gic-layer-toolbar,.gic-v2-layer-toolbar,.gic-focus-toolbar,.gic-focus-controls,.gic-layer-rail,.gic-v2-layer-rail,.gic-layer-float,.gic-layer-floating,.gic-layer-dock,.gic-v2-layer-dock){display:none!important}
/* All site-level fixed navigation from the original card must not float over review. */
.gic-lr-lesson [style*="position: fixed"],.gic-lr-lesson [style*="position:fixed"],.gic-lr-lesson [style*="position: sticky"],.gic-lr-lesson [style*="position:sticky"]{position:static!important}
.gic-lr-footer{z-index:2;background:linear-gradient(180deg,#fff,#fbfdfb);border-top:1px solid #dce7df;box-shadow:0 -7px 20px rgba(23,54,45,.045);padding:13px 22px 16px}
.gic-lr-q{font-size:14px;color:#405e52;margin-bottom:10px;letter-spacing:-.01em}
.gic-lr-ratings{gap:8px}
.gic-lr-ratings button{transition:transform .12s ease,box-shadow .15s ease;border-radius:13px;min-height:58px;box-shadow:0 2px 0 rgba(20,64,50,.02)}
.gic-lr-ratings button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 9px rgba(14,67,45,.07)}
.gic-lr-ratings button strong{font-size:13px;letter-spacing:-.01em}
.gic-lr-ratings button small{font-size:10px}
.gic-lr-footer-line{margin-top:5px}
.gic-lr-skip{font-size:13px}
.gic-lr-additional-audio{background:#f4faf7}
@media(max-width:700px){
 .gic-lr-sheet{border-left:0;max-height:100dvh}
 .gic-lr-header{padding:11px 16px 10px}
 .gic-lr-toprow h2{font-size:23px;line-height:1.13}
 .gic-lr-close{width:38px;height:38px}
 .gic-lr-badges{margin-top:8px}
 .gic-lr-badges span:not(:empty){padding:4px 10px;font-size:12px}
 .gic-lr-progress{margin-top:10px}
 .gic-lr-scroll{padding:12px 13px 19px}
 .gic-lr-lesson{border-radius:16px;padding:18px 16px}
 .gic-lr-footer{padding:10px 13px calc(10px + env(safe-area-inset-bottom))}
 .gic-lr-q{font-size:13px;margin-bottom:7px}
 .gic-lr-ratings{gap:7px}
 .gic-lr-ratings button{min-height:50px;padding:7px 5px}
 .gic-lr-ratings button strong{font-size:12px}
 .gic-lr-ratings button small{font-size:10px}
 .gic-lr-footer-line{margin-top:3px}
}
@media(prefers-reduced-motion:reduce){.gic-lr-ratings button,.gic-lr-progress span{transition:none}}

/* V3: Study first. The V4 scheduling controls remain in the DOM and are
   clicked only by the drawer after the selected layer has been studied. */
.gic-rv-center [data-host] .gic-rv-item .gic-rv-status-btn{display:none!important}
.gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-item{
  border:1px solid #dce8e1;border-radius:18px;padding:18px 19px;
  box-shadow:0 5px 16px rgba(13,65,48,.045);background:linear-gradient(160deg,#fff,#fcfefc);
}
.gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-item-title{
  font-family:Georgia,"Times New Roman",serif;font-size:clamp(21px,3.4vw,26px);
  color:#164f40;font-weight:700;line-height:1.2;overflow-wrap:anywhere;
}
.gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-chips{margin:11px 0 14px;gap:7px}
.gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-chip{
  font-size:12px;padding:6px 10px;background:#eaf4ef;border-radius:999px;color:#225f51;
}
.gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-row{display:block}
.gic-rv-center.gic-lr-review-entry-list [data-host] a.gic-rv-open{
  display:flex;justify-content:center;align-items:center;min-height:48px;
  border-radius:13px;border:1px solid #b2d0c1;background:#e9f6ef;color:#105943;
  font-size:14px;font-weight:800;text-decoration:none;width:100%;box-sizing:border-box;
}
.gic-rv-center.gic-lr-review-entry-list [data-host] a.gic-rv-open:focus-visible{
  outline:3px solid #b8963e;outline-offset:2px;
}
.gic-rv-center .gic-lr-study-hint{font-size:13px;color:#657b70;margin:5px 0 16px;line-height:1.55}
@media(max-width:640px){
 .gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-item{padding:15px 14px;margin-top:12px}
 .gic-rv-center.gic-lr-review-entry-list [data-host] .gic-rv-item-title{font-size:22px}
}

/* GIC_RATING_BUTTONS_V1 */
html body .gic-lr-ratings button[data-lr-rate]{border-radius:18px!important;min-height:78px!important;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 4px 0 rgba(0,0,0,.14),0 10px 18px rgba(20,60,50,.12)!important}
html body .gic-lr-ratings button[data-lr-rate]{box-shadow:inset 0 1px 0 rgba(255,255,255,.85),0 4px 0 color-mix(in srgb,currentColor 30%,transparent),0 10px 18px rgba(20,60,50,.12)!important}
html body .gic-lr-ratings button[data-lr-rate]:not(:disabled):active{transform:translateY(3px)!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.12),0 1px 0 rgba(0,0,0,.14)!important}
html body .gic-lr-ratings button[data-lr-rate]:focus-visible{outline:3px solid rgba(20,131,109,.45);outline-offset:3px}
