o/.gic-final-study-page{max-width:820px;margin:0 auto;padding:34px 18px 64px;color:var(--ink,#173f3c)}
.gic-final-study-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.gic-final-study-head h1{margin:6px 0 0;font-size:clamp(32px,5vw,48px);letter-spacing:-.035em;color:#173f3c}.gic-final-study-head p{margin:8px 0 0;color:#7d8e89;font-size:14px}.gic-final-eyebrow{font-size:11px;letter-spacing:.15em;font-weight:950;color:#a17a36}.gic-final-counter{display:flex;align-items:baseline;gap:4px;background:#eef7f4;border:1px solid #dce9e4;border-radius:999px;padding:9px 13px;color:#176f6b}.gic-final-counter strong{font-size:17px}.gic-final-counter span{font-size:11px;color:#78908b;font-weight:800}
.gic-study-card{position:relative;min-height:680px;background:#fff;border:1px solid #dbe6e2;border-radius:34px;box-shadow:0 24px 54px rgba(28,63,59,.11);overflow:hidden;padding:26px;isolation:isolate}.gic-study-card:before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,#20a19e 0 52%,#9ca35d 74%,#ec9440 100%)}.gic-study-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.gic-study-chip{display:inline-flex;align-items:center;min-height:42px;border-radius:999px;padding:10px 15px;background:linear-gradient(90deg,#eaf6f2,#fbf7e9);border:1px solid #d7e6e0;color:#196e69;font-size:12px;font-weight:950;letter-spacing:.02em}.gic-study-level{font-size:14px;color:#9aa7a4}.gic-study-progress{height:7px;border-radius:999px;background:#e7efec;overflow:hidden;margin:28px 0 0}.gic-study-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1f8f88,#bd9236)}
.gic-study-core{position:relative;display:grid;place-items:center;min-height:475px;padding:36px 0 92px}.gic-study-front,.gic-study-back{width:100%;text-align:center}.gic-study-front{transition:opacity .22s ease,transform .22s ease}.gic-study-front.is-leaving{opacity:0;transform:translateY(-8px)}.gic-study-back{opacity:0;transform:translateY(10px)}.gic-study-back.is-visible{animation:gicBackIn .34s cubic-bezier(.2,.8,.2,1) forwards}@keyframes gicBackIn{to{opacity:1;transform:none}}.gic-study-prompt{font-size:16px;color:#8b9995;margin-bottom:44px}.gic-study-front-text{font-size:clamp(36px,7vw,54px);line-height:1.08;font-weight:800;letter-spacing:-.035em;color:#405a56;white-space:pre-line}.gic-reveal-button{margin-top:42px;border:1px solid #dce8e4;border-radius:16px;background:#f7fbf9;color:#176f6b;padding:13px 22px;font-weight:950;cursor:pointer;box-shadow:0 8px 18px rgba(20,63,60,.04)}.gic-study-front-hint{margin-top:12px;color:#a1aaa8;font-size:11px}.gic-study-answer-label{font-size:11px;letter-spacing:.17em;font-weight:950;color:#83948f;margin-bottom:18px}.gic-study-german{font-size:clamp(37px,7vw,58px);line-height:1.04;font-weight:950;letter-spacing:-.045em;color:#168582;white-space:pre-line}.gic-main-audio{width:60px;height:60px;border-radius:50%;border:1px solid rgba(21,151,156,.18);background:linear-gradient(145deg,#15979c,#238f87);color:#fff;display:grid;place-items:center;margin:22px auto 0;font-size:23px;cursor:pointer;box-shadow:0 12px 26px rgba(21,151,156,.2),inset 0 1px 0 rgba(255,255,255,.25)}.gic-main-audio.is-playing{animation:gicPulse .72s ease}@keyframes gicPulse{50%{transform:scale(1.08)}}.gic-study-english-small{margin-top:14px;color:#9aa6a3;font-size:14px;line-height:1.45}.gic-layer-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0;padding:10px 2px 2px;border-top:1px solid #edf2ef;max-width:100%;position:absolute;left:0;right:0;bottom:0;z-index:30}.gic-layer-tabs::-webkit-scrollbar{display:none}.gic-layer-tabs button{flex:0 0 auto;min-width:128px;border:1px solid #e2e9e6;border-radius:14px;background:#f2f5f4;color:#8a9693;padding:12px 13px;font-size:11px;font-weight:950;cursor:pointer;transition:background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease}.gic-layer-tabs button.active{background:#fff;color:#176f6b;border-color:#d4e2dd;box-shadow:0 8px 18px rgba(20,63,60,.09);transform:translateY(-1px)}.gic-layer-tabs button.selection-pop{animation:gicTabPop .28s ease}@keyframes gicTabPop{0%{transform:scale(.96)}65%{transform:scale(1.025)}100%{transform:translateY(-1px) scale(1)}}
.gic-layer-drawer{position:absolute;left:14px;right:14px;bottom:14px;z-index:20;max-height:var(--gic-drawer-max,400px);transform:translateY(calc(100% + 30px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .34s cubic-bezier(.18,.86,.24,1),opacity .22s ease,visibility .22s ease}.gic-layer-drawer.is-open{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}.gic-layer-drawer-inner{max-height:var(--gic-drawer-max,400px);overflow-y:auto;background:rgba(255,255,255,.99);border:1px solid #e1e9e6;border-radius:28px 28px 24px 24px;box-shadow:0 -18px 40px rgba(22,61,57,.14);padding:14px 22px 24px;overscroll-behavior:contain}.gic-drawer-handle{width:58px;height:6px;border-radius:999px;background:#d8e5e0;margin:0 auto 17px}.gic-layer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.gic-layer-title{display:inline-flex;padding:8px 12px;border-radius:999px;font-size:11px;font-weight:950;letter-spacing:.07em}.gic-layer-title-pron{background:#fbf2df;color:#8a6829}.gic-layer-title-grammar{background:#eaf6f1;color:#21776f}.gic-layer-title-related{background:#faeded;color:#9a4e4e}.gic-layer-title-culture{background:#f2eefb;color:#6757a0}.gic-layer-title-social{background:#eef6f5;color:#3d7872}.gic-layer-title-work{background:#edf5fb;color:#3f7895}.gic-layer-close{width:40px;height:40px;border-radius:50%;border:1px solid #dce7e3;background:#fff;color:#82918d;font-size:19px;cursor:pointer}.gic-layer-copy,.gic-layer-editorial{font-size:14px;line-height:1.65;color:#31524e}.gic-layer-editorial p:first-child{margin-top:0}.gic-layer-items{display:grid;gap:11px;margin-top:14px}.gic-layer-item{padding:13px 14px;border:1px solid #e7e9e8;border-radius:17px;background:#fff}.gic-layer-item-row,.gic-layer-item-row-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.gic-layer-item-row strong,.gic-layer-item>strong{font-size:15px;line-height:1.3;color:#233f3c}.gic-layer-item small{display:block;margin-top:4px;color:#9baaa6;font-size:11px;line-height:1.4}.gic-mini-badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#eaf5ef;color:#397b67;font-size:8px;font-weight:950;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}.gic-mini-badge-related{background:#f9ecec;color:#a15353}.gic-mini-badge-culture{background:#f2eefb;color:#6757a0}.gic-mini-badge-work{background:#edf5fb;color:#3f7895}.gic-mini-audio{width:38px;height:38px;flex:0 0 38px;border:0;border-radius:50%;background:#1a9995;color:#fff;cursor:pointer}.gic-pronunciation-check{margin-top:16px;padding-top:16px;border-top:1px solid #edf2ef}.gic-record-button,.gic-queue-button,.gic-secondary-action{border:1px solid #d9e6e2;border-radius:14px;background:#fff;color:#176f6b;padding:12px 15px;font-weight:950;cursor:pointer}.gic-record-button{background:#176f6b;color:#fff;border-color:#176f6b}.gic-record-button.recording{background:#a14f4f;border-color:#a14f4f}.gic-queue-button{margin-top:10px}.gic-speech-result{margin-top:14px;padding:14px;border-radius:17px;background:#f7faf9;border:1px solid #e1e9e6}.gic-score-line{display:flex;align-items:center;justify-content:space-between;gap:10px}.gic-score-line strong{font-size:28px;color:#173f3c}.gic-score-status{font-size:11px;font-weight:950;border-radius:999px;padding:6px 9px}.gic-score-status.pass{background:#e8f6ef;color:#26765f}.gic-score-status.mid{background:#fbf2df;color:#8a6829}.gic-score-status.retry{background:#faeaea;color:#a15050}.gic-speech-result p{margin:8px 0 0;color:#6e817c;font-size:12px;line-height:1.5}.gic-word-check{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.gic-word-chip{border:1px solid #dde8e4;border-radius:999px;background:#fff;padding:6px 9px;font-size:11px;font-weight:900;color:#57706b;cursor:pointer}.gic-word-chip.ok{background:#e9f6f0;color:#28745f;border-color:#d4eadf}.gic-word-chip.weak{background:#faecec;color:#9e5151;border-color:#efd8d8}
.gic-rating-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.gic-rating-bar button{border:1px solid #dbe6e2;border-radius:18px;background:#fff;padding:13px 7px;color:#48615d;cursor:pointer;box-shadow:0 8px 18px rgba(20,63,60,.04)}.gic-rating-bar button strong{display:block;font-size:14px}.gic-rating-bar button span{display:block;margin-top:3px;font-size:9px;color:#98a5a2}.gic-rating-bar button:disabled{opacity:.55}.gic-study-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.gic-study-nav a{display:inline-flex;align-items:center;min-height:58px;padding:0 20px;border:1px solid #dbe6e2;border-radius:18px;background:#fff;color:#173f3c;font-weight:900;text-decoration:none}.gic-study-utility-row{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:18px}.gic-study-utility-row a{font-size:12px;color:#54706a;text-decoration:none;font-weight:850}
.gic-pron-card,.gic-plan-card,.gic-pron-empty{background:#fff;border:1px solid #dbe6e2;border-radius:30px;box-shadow:0 22px 48px rgba(21,63,59,.09);padding:28px}.gic-pron-card{text-align:center}.gic-pron-label{font-size:11px;letter-spacing:.15em;font-weight:950;color:#84938f}.gic-pron-sentence{font-size:clamp(36px,7vw,58px);line-height:1.05;font-weight:950;letter-spacing:-.045em;color:#168582;margin-top:16px}.gic-pron-divider{height:1px;background:#edf2ef;margin:28px 0}.gic-pron-instruction{max-width:560px;margin:0 auto 16px;color:#667b76;font-size:13px;line-height:1.6}.gic-record-button-large{min-width:210px}.gic-pron-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}.gic-pron-empty{text-align:center}.gic-master-check{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#e9f6f0;color:#28745f;font-size:28px;font-weight:950;margin:0 auto 15px}.gic-pron-empty h2{margin:0}.gic-pron-empty p{color:#7c8c88}
.gic-plan-card{display:grid;gap:26px}.gic-plan-label{display:block;font-size:12px;font-weight:950;color:#294b47;margin-bottom:10px}.gic-minute-options{display:flex;gap:8px;flex-wrap:wrap}.gic-minute-options input{position:absolute;opacity:0}.gic-minute-options span{display:inline-flex;min-width:78px;justify-content:center;border:1px solid #dbe6e2;border-radius:14px;padding:10px 12px;background:#f8fbfa;color:#6d817c;font-size:12px;font-weight:900;cursor:pointer}.gic-minute-options input:checked+span{background:#176f6b;color:#fff;border-color:#176f6b}.gic-plan-range-head{display:flex;align-items:end;justify-content:space-between;gap:12px}.gic-plan-range-head span{font-size:11px;color:#71847f}.gic-plan-card input[type=range]{width:100%;accent-color:#176f6b}.gic-plan-result{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gic-plan-result div{background:#f7faf9;border:1px solid #e2ebe7;border-radius:17px;padding:15px}.gic-plan-result small{display:block;color:#8a9995;font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}.gic-plan-result strong{display:block;margin-top:7px;font-size:24px;color:#173f3c}
.gic-practice-dashboard{margin-top:26px;border:1px solid #dbe6e2;border-radius:24px;background:#fff;padding:20px;box-shadow:0 14px 30px rgba(21,63,59,.06)}.gic-practice-dashboard-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.gic-practice-dashboard-head span{font-size:10px;letter-spacing:.08em;color:#a17a36;font-weight:950}.gic-practice-dashboard-head h3{margin:5px 0 0}.gic-small-link{font-size:11px;color:#176f6b;font-weight:900}.gic-practice-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.gic-practice-dashboard-stat{background:#f7faf9;border:1px solid #e1e9e6;border-radius:16px;padding:14px}.gic-practice-dashboard-stat small{display:block;color:#859590;font-size:9px;text-transform:uppercase;font-weight:900;letter-spacing:.07em}.gic-practice-dashboard-stat strong{display:block;margin-top:5px;font-size:24px}.gic-plan-strip{margin-top:10px;padding:12px 14px;border-radius:15px;background:#fbf7eb;border:1px solid #eee1bb}.gic-plan-strip span{display:block;font-size:9px;color:#997a44;font-weight:950;text-transform:uppercase}.gic-plan-strip strong{font-size:12px}.gic-practice-dashboard-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.gic-practice-dashboard-actions a{border:1px solid #dce7e3;border-radius:12px;padding:9px 11px;color:#176f6b;text-decoration:none;font-size:10px;font-weight:900}
@media(max-width:650px){.gic-final-study-page{padding:24px 14px 48px}.gic-final-study-head h1{font-size:34px}.gic-final-study-head{align-items:flex-start}.gic-study-card{min-height:620px;padding:20px;border-radius:30px}.gic-study-core{min-height:440px;padding-top:30px}.gic-study-front-text{font-size:40px}.gic-study-german{font-size:40px}.gic-layer-tabs{margin-top:19px}.gic-layer-tabs button{min-width:118px;padding:11px 12px}.gic-layer-drawer{left:8px;right:8px;bottom:8px}.gic-layer-drawer-inner{padding:12px 16px 20px;border-radius:25px 25px 22px 22px}.gic-rating-bar{gap:6px}.gic-rating-bar button{padding:12px 4px;border-radius:15px}.gic-rating-bar button strong{font-size:12px}.gic-study-nav a{min-height:54px;padding:0 16px}.gic-pron-card,.gic-plan-card,.gic-pron-empty{padding:20px}.gic-plan-result{grid-template-columns:1fr}.gic-practice-dashboard-grid{grid-template-columns:1fr 1fr}}

/* === GiC Study Card Polish V3 === */
.gic-study-core{padding-bottom:72px}
.gic-study-german{max-width:100%;margin-inline:auto;white-space:normal;text-wrap:balance;overflow-wrap:normal;word-break:normal;line-height:1.09;letter-spacing:-.035em}
.gic-study-german.gic-size-short{font-size:clamp(38px,9vw,46px)}
.gic-study-german.gic-size-medium{font-size:clamp(32px,7.2vw,38px)}
.gic-study-german.gic-size-long{font-size:clamp(28px,6.2vw,34px)}
.gic-study-german.gic-size-xlong{font-size:clamp(24px,5.3vw,30px);line-height:1.14}

.gic-main-actions{display:flex;align-items:flex-start;justify-content:center;gap:18px;margin-top:20px}
.gic-main-action{appearance:none;border:0;background:transparent;padding:0;color:#53706a;cursor:pointer;display:grid;justify-items:center;gap:7px;min-width:72px}
.gic-main-action-icon{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#15979c,#238f87);color:#fff;font-size:21px;box-shadow:0 11px 24px rgba(21,151,156,.18),inset 0 1px 0 rgba(255,255,255,.28);transition:transform .2s ease,box-shadow .2s ease}
.gic-main-action:hover .gic-main-action-icon,.gic-main-action:focus-visible .gic-main-action-icon{transform:translateY(-1px);box-shadow:0 14px 27px rgba(21,151,156,.23)}
.gic-main-action.is-playing .gic-main-action-icon{animation:gicPulse .72s ease}
.gic-main-action-label{font-size:10px;font-weight:900;letter-spacing:.02em;color:#81908c}
.gic-main-action-speak .gic-main-action-icon{background:linear-gradient(145deg,#2a8b82,#176f6b)}

.gic-universal-speech{max-width:610px;margin:16px auto 0;padding:15px 16px 16px;border:1px solid #dce7e3;border-radius:20px;background:linear-gradient(180deg,#fbfdfc,#f7faf9);box-shadow:0 10px 24px rgba(24,63,59,.06);text-align:left;animation:gicSpeechOpen .24s ease both}
@keyframes gicSpeechOpen{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.gic-speech-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.gic-speech-head>div{display:grid;gap:2px}.gic-speech-head span{font-size:10px;font-weight:950;letter-spacing:.09em;color:#176f6b}.gic-speech-head small{font-size:9px;color:#97a4a0}.gic-record-status{font-size:12px;color:#71827d;margin-bottom:10px;min-height:18px}.gic-record-status.is-recording{color:#9e5151;font-weight:850}.gic-record-status.is-processing{color:#8a6829;font-weight:850}
.gic-universal-speech .gic-record-button{width:100%;min-height:46px}
.gic-universal-speech .gic-queue-button{width:100%}

.gic-layer-tabs{position:relative;display:flex!important;flex-shrink:0!important;gap:0;overflow:visible;max-width:640px;width:min(100%,640px);margin:22px auto 0;padding:5px;border:1px solid #e1e7e5;border-top:1px solid #e1e7e5;border-radius:18px;background:#edf1ef;isolation:isolate}
.gic-layer-tabs[hidden]{display:none!important}.gic-layer-indicator{position:absolute;top:5px;bottom:5px;left:0;width:0;border-radius:14px;background:#fff;box-shadow:0 7px 18px rgba(27,59,55,.10);z-index:0;transition:transform .30s cubic-bezier(.2,.8,.2,1),width .30s cubic-bezier(.2,.8,.2,1)}
.gic-layer-tabs button{position:relative;z-index:1;flex:1 1 0;min-width:0;min-height:52px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0!important;background:transparent!important;border-radius:14px;padding:12px 8px;color:#929c99;box-shadow:none!important;transform:none!important;transition:color .22s ease;font-size:11px;font-weight:950;white-space:nowrap}
.gic-layer-tabs button.active{background:transparent!important;box-shadow:none!important;transform:none!important}.gic-layer-tabs button.selection-pop{animation:gicTabTextPop .25s ease}@keyframes gicTabTextPop{0%{transform:scale(.97)}65%{transform:scale(1.025)}100%{transform:scale(1)}}
.gic-layer-tabs button.active[data-gic-layer="pronunciation"]{color:#936f29}.gic-layer-tabs button.active[data-gic-layer="grammar"]{color:#397aa2}.gic-layer-tabs button.active[data-gic-layer="toolkit"]{color:#a15252}

.gic-layer-drawer-inner{background:#fff;border-top-width:2px;transition:border-color .22s ease,background .22s ease}.gic-layer-drawer[data-open-layer="pronunciation"] .gic-layer-drawer-inner{border-top-color:#e3c778;background:linear-gradient(180deg,#fffdf8 0,#fff 34%)}.gic-layer-drawer[data-open-layer="grammar"] .gic-layer-drawer-inner{border-top-color:#b8d9ef;background:linear-gradient(180deg,#f8fcff 0,#fff 34%)}.gic-layer-drawer[data-open-layer="toolkit"] .gic-layer-drawer-inner{border-top-color:#efcaca;background:linear-gradient(180deg,#fff9f9 0,#fff 34%)}
.gic-layer-title-pron{background:#f7e7bd;color:#8c6828}.gic-layer-title-grammar{background:#e3f1fa;color:#397aa2}.gic-layer-title-toolkit{background:#f7dfdf;color:#9f4f4f}
.gic-layer-drawer[data-open-layer="pronunciation"] .gic-layer-item{background:#fffdf8;border-color:#eee1bd}.gic-layer-drawer[data-open-layer="grammar"] .gic-layer-item{background:#f9fcff;border-color:#dcecf7}.gic-layer-drawer[data-open-layer="toolkit"] .gic-layer-item{background:#fffafa;border-color:#f0dddd}
.gic-layer-drawer[data-open-layer="pronunciation"] .gic-mini-audio{background:#a7853e}.gic-layer-drawer[data-open-layer="grammar"] .gic-mini-audio{background:#4b8db5}.gic-layer-drawer[data-open-layer="toolkit"] .gic-mini-audio{background:#b26767}
.gic-toolkit-section-label{display:inline-flex;margin:14px 0 8px;padding:4px 8px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.07em}.gic-toolkit-section-culture{background:#f2eefb;color:#6757a0}.gic-toolkit-section-social{background:#eaf5ef;color:#397b67}.gic-toolkit-section-work{background:#edf5fb;color:#3f7895}
.gic-mini-badge-related{background:#f9ecec;color:#a15353}.gic-mini-badge-culture{background:#f2eefb;color:#6757a0}.gic-mini-badge-social{background:#eaf5ef;color:#397b67}.gic-mini-badge-work{background:#edf5fb;color:#3f7895}
.gic-layer-close{display:grid!important;place-items:center;flex:0 0 auto}

@media(max-width:560px){
  .gic-study-card{padding:22px 18px;min-height:650px}.gic-study-core{padding:30px 0 72px}.gic-study-prompt{margin-bottom:32px}.gic-study-front-text{font-size:clamp(32px,9vw,44px)}
  .gic-layer-tabs{width:100%;border-radius:16px}.gic-layer-tabs button{font-size:10px;padding:11px 5px}.gic-main-actions{gap:16px}.gic-main-action-icon{width:54px;height:54px}
  .gic-layer-drawer{left:8px;right:8px;bottom:8px}.gic-layer-drawer-inner{padding:12px 16px 20px;border-radius:24px 24px 20px 20px}
}
/* === END GiC Study Card Polish V3 === */


/* === GiC Fixed Study Stage v2 ===
   User-requested behavior:
   - card stays fixed
   - sentence sits high in the card, not vertically centered
   - light English line directly below the German on reveal
   - bonus tabs stay near the bottom of the card
   - bonus drawer rises upward from the bottom and scrolls internally
   - rating bar remains fixed at bottom of viewport
   - chapter/topic + progress percent in card top-right
*/
.gic-final-study-page{
  max-width:820px!important;
  margin:0 auto!important;
  padding:14px 14px 138px!important;
}
.gic-final-study-head{margin-bottom:10px!important;align-items:flex-start!important}
.gic-final-study-head h1,
.gic-final-study-head .gic-final-counter{display:none!important}
.gic-final-study-head .gic-final-eyebrow{
  margin:0!important;
  font-size:13px!important;
  letter-spacing:.12em!important;
}

.gic-study-card{
  position:relative!important;
  overflow:hidden!important;
  min-height:0!important;
  height:clamp(540px,64dvh,690px)!important;
  padding:20px 18px 18px!important;
  border-radius:32px!important;
}
.gic-study-card-top{
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:14px!important;
}
.gic-study-chip{
  min-height:38px!important;
  padding:9px 14px!important;
  font-size:11px!important;
}
.gic-study-level{display:none!important}
.gic-study-meta{
  margin-left:auto!important;
  display:grid!important;
  justify-items:end!important;
  gap:4px!important;
  text-align:right!important;
}
.gic-study-percent{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#eef7f4!important;
  border:1px solid #dce9e4!important;
  color:#176f6b!important;
  font-size:12px!important;
  font-weight:950!important;
}
.gic-study-topic{
  font-size:10px!important;
  line-height:1.42!important;
  color:#84948f!important;
  max-width:210px!important;
}
.gic-study-progress{margin:14px 0 0!important}

.gic-study-core{
  position:relative!important;
  display:block!important;
  min-height:0!important;
  height:calc(100% - 86px)!important;
  padding:22px 0 12px!important;
}
.gic-study-front,
.gic-study-back{
  width:100%!important;
  height:100%!important;
  text-align:center!important;
}
.gic-study-front{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding-top:18px!important;
}
.gic-study-back{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  padding-top:8px!important;
}
.gic-study-front[hidden],
.gic-study-back[hidden]{display:none!important}
.gic-study-prompt{
  font-size:16px!important;
  color:#8b9995!important;
  margin:0 0 24px!important;
}
.gic-study-front-text{
  font-size:clamp(34px,7vw,52px)!important;
  line-height:1.08!important;
  max-width:100%!important;
  text-wrap:balance!important;
  white-space:normal!important;
}
.gic-reveal-button{
  margin-top:26px!important;
}
.gic-study-front-hint{
  margin-top:12px!important;
}
.gic-study-answer-label{
  margin:0 0 10px!important;
}
.gic-study-german{
  max-width:100%!important;
  margin:0!important;
  font-size:clamp(35px,6.8vw,54px)!important;
  line-height:1.08!important;
  text-wrap:balance!important;
}
.gic-study-english-small{
  margin:12px 0 0!important;
  color:#a0aaa7!important;
  font-size:17px!important;
  line-height:1.5!important;
  max-width:92%!important;
}
.gic-main-actions{
  margin-top:20px!important;
}
.gic-universal-speech{
  max-width:640px!important;
  margin-top:16px!important;
}
.gic-layer-tabs{
  margin-top:0!important;
  padding-top:16px!important;
  width:100%!important;
  max-width:100%!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  z-index:30!important;
}
.gic-layer-tabs button{
  min-width:116px!important;
}
.gic-layer-drawer{
  left:10px!important;
  right:10px!important;
  bottom:76px!important;
  z-index:20!important;
  max-height:min(52dvh, 390px)!important;
}
.gic-layer-drawer-inner{
  max-height:min(52dvh, 390px)!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}

.gic-rating-bar{
  position:fixed!important;
  left:50%!important;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 10px)!important;
  transform:translateX(-50%)!important;
  width:min(calc(100vw - 24px), 760px)!important;
  z-index:80!important;
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  margin:0!important;
  padding:10px!important;
  border:1px solid #dce5e2!important;
  border-radius:22px!important;
  background:rgba(248,251,250,.97)!important;
  box-shadow:0 14px 36px rgba(18,60,57,.12)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
}
.gic-rating-bar[hidden]{display:none!important}
.gic-rating-bar button{
  min-width:0!important;
  min-height:54px!important;
  padding:11px 4px!important;
  border-radius:16px!important;
  box-shadow:none!important;
}
.gic-rating-bar button strong{font-size:13px!important}
.gic-rating-bar button span{font-size:9px!important}

.gic-study-nav{margin-top:16px!important}
.gic-study-utility-row{margin-top:14px!important}

@media(max-width:650px){
  .gic-final-study-page{padding:12px 12px 130px!important}
  .gic-final-study-head{margin-bottom:8px!important}
  .gic-final-study-head .gic-final-eyebrow{font-size:12px!important}
  .gic-study-card{
    height:clamp(500px,58dvh,620px)!important;
    padding:16px 14px 14px!important;
    border-radius:28px!important;
  }
  .gic-study-chip{min-height:34px!important;padding:8px 12px!important;font-size:10px!important}
  .gic-study-percent{min-height:24px!important;padding:0 8px!important;font-size:11px!important}
  .gic-study-topic{max-width:168px!important;font-size:9px!important}
  .gic-study-progress{margin-top:12px!important}
  .gic-study-core{height:calc(100% - 80px)!important;padding:16px 0 10px!important}
  .gic-study-front{padding-top:10px!important}
  .gic-study-back{padding-top:2px!important}
  .gic-study-prompt{font-size:14px!important;margin-bottom:16px!important}
  .gic-study-front-text{font-size:clamp(27px,8.1vw,40px)!important}
  .gic-reveal-button{margin-top:20px!important;padding:12px 18px!important}
  .gic-study-answer-label{font-size:10px!important;margin-bottom:8px!important}
  .gic-study-german{font-size:clamp(29px,8.6vw,42px)!important}
  .gic-study-english-small{font-size:13px!important;margin-top:10px!important;max-width:95%!important}
  .gic-main-actions{margin-top:16px!important;gap:16px!important}
  .gic-main-action-icon{width:52px!important;height:52px!important}
  .gic-main-action-label{font-size:9px!important}
  .gic-layer-tabs{padding-top:14px!important;margin-top:auto!important}
  .gic-layer-tabs button{min-width:100px!important;padding:10px 10px!important;font-size:10px!important}
  .gic-layer-drawer{
    left:8px!important;
    right:8px!important;
    bottom:68px!important;
    max-height:min(48dvh, 350px)!important;
  }
  .gic-layer-drawer-inner{
    max-height:min(48dvh, 350px)!important;
    padding:12px 14px 18px!important;
    border-radius:24px 24px 20px 20px!important;
  }
  .gic-rating-bar{
    width:calc(100vw - 16px)!important;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 8px)!important;
    padding:8px!important;
    gap:6px!important;
    border-radius:18px!important;
  }
  .gic-rating-bar button{min-height:50px!important;padding:10px 2px!important;border-radius:14px!important}
  .gic-rating-bar button strong{font-size:12px!important}
  .gic-rating-bar button span{display:none!important}
}
/* === END GiC Fixed Study Stage v2 === */


/* ============================================================
   === GiC Premium Concept Skin ===
   Visual restyle on top of the fixed-stage layout above:
   dark hero band, ring progress, glass icon buttons, serif
   headword, icon-tabs, premium rating bar. No layout/position
   rules are changed here — only color, type and surface treatment.
   ============================================================ */

.gic-premium.gic-study-card{
  padding:0!important;
  background:#fffdf9!important;
  border:0!important;
  box-shadow:0 2px 6px rgba(20,30,28,.08),0 26px 50px -14px rgba(20,30,28,.34)!important;
}

/* --- Hero band --- */
.gic-hero-band{
  position:relative;
  overflow:hidden;
  background:linear-gradient(160deg,#132523 0%,#0e3a35 62%,#124c45 100%);
  border-radius:32px 32px 0 0;
  padding:18px 20px 20px;
}
.gic-hero-glow{
  position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(60% 90% at 88% 0%, rgba(240,178,92,.16) 0%, rgba(240,178,92,0) 60%);
}
.gic-hero-top{
  position:relative;
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.gic-premium .gic-study-chip{
  background:transparent!important;
  border:1px solid rgba(240,201,140,.45)!important;
  color:#f0c98c!important;
  min-height:30px!important;
  padding:0 13px!important;
}
.gic-percent-ring{position:relative;width:46px;height:46px;flex:0 0 auto}
.gic-percent-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.gic-ring-track{fill:none;stroke:rgba(255,255,255,.16);stroke-width:4}
.gic-ring-fill{
  fill:none;stroke:#f0c98c;stroke-width:4;stroke-linecap:round;
  stroke-dasharray:132;
  stroke-dashoffset:calc(132 - (132 * var(--gic-pct,0) / 100));
  transition:stroke-dashoffset .5s ease;
}
.gic-percent-ring-value{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  color:#fdf7ea;font-size:10.5px;font-weight:800;
}
.gic-hero-meta{
  position:relative;
  margin-top:12px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.gic-premium .gic-study-topic{
  color:rgba(233,240,237,.64)!important;
  max-width:none!important;
  font-size:11px!important;
}
.gic-streak-badge{
  display:inline-flex;align-items:center;gap:5px;
  color:#f0c98c;font-size:11px;font-weight:800;white-space:nowrap;
}
.gic-streak-badge svg{width:13px;height:13px}
.gic-premium .gic-study-progress{
  position:relative;
  margin:12px 0 0!important;
  background:rgba(255,255,255,.14)!important;
}
.gic-premium .gic-study-progress span{
  background:linear-gradient(90deg,#3fb8ac,#f0c98c)!important;
  box-shadow:0 0 10px rgba(240,201,140,.55);
}

/* --- Content area --- */
.gic-premium .gic-study-core{padding:24px 20px 12px!important}
.gic-study-eyebrow{display:flex!important;flex-direction:column;align-items:center;gap:6px;margin:0 0 4px!important}
.gic-study-eyebrow span{color:#a97f38;font-size:10.5px;font-weight:800;letter-spacing:.2em}
.gic-study-eyebrow i{display:block;width:26px;height:2px;border-radius:2px;background:linear-gradient(90deg,#f0c98c,#3fb8ac);font-style:normal}

.gic-premium .gic-study-front-text{
  font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif!important;
  font-style:normal!important;
  font-weight:600!important;
  color:#33534d!important;
  font-size:clamp(22px,5.4vw,34px)!important;
  line-height:1.32!important;
  letter-spacing:-.01em!important;
}
.gic-premium .gic-study-german{
  font-family:'Newsreader',Georgia,serif!important;
  font-weight:700!important;
  font-style:normal;
  color:#0e3a35!important;
  letter-spacing:-.01em!important;
}
.gic-premium .gic-study-english-small{
  font-style:italic;
  color:#8a938e!important;
}
.gic-premium .gic-reveal-button{
  border:0!important;
  background:linear-gradient(120deg,#17827c,#0e3a35)!important;
  color:#eafbf7!important;
  box-shadow:0 8px 18px -6px rgba(14,58,53,.5)!important;
}
.gic-premium .gic-study-front-hint{color:#9aa39d!important}

/* --- Listen / Speak icon buttons --- */
.gic-premium .gic-main-action-icon{
  width:60px!important;height:60px!important;
  background:linear-gradient(150deg,#17827c,#0e3a35)!important;
  border:1px solid rgba(63,184,172,.35);
  box-shadow:0 10px 22px -6px rgba(14,58,53,.55), inset 0 1px 0 rgba(255,255,255,.18)!important;
}
.gic-premium .gic-main-action-icon svg{width:22px;height:22px;color:#eafbf7}
.gic-premium .gic-main-action-speak .gic-main-action-icon{
  background:linear-gradient(150deg,#e7b467,#a97f38)!important;
  border-color:rgba(240,201,140,.5);
  box-shadow:0 10px 22px -6px rgba(169,127,56,.5), inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.gic-premium .gic-main-action-speak .gic-main-action-icon svg{color:#3a2a10}
.gic-premium .gic-main-action-label{color:#5c6864!important;font-weight:700}

/* --- Quick speech check panel --- */
.gic-premium .gic-universal-speech{
  background:#f7f4ec!important;
  border:1px solid #ece5d3!important;
  box-shadow:inset 0 1px 3px rgba(20,30,28,.05)!important;
}
.gic-premium .gic-speech-head span{color:#0e3a35!important}
.gic-premium .gic-record-button{
  display:flex!important;align-items:center;justify-content:center;gap:9px;
  border:0!important;
  background:linear-gradient(120deg,#17827c,#0e3a35)!important;
  color:#eafbf7!important;
  box-shadow:0 8px 18px -6px rgba(14,58,53,.5)!important;
}
.gic-premium .gic-record-button svg{width:15px;height:15px}
.gic-premium .gic-record-button.recording{background:linear-gradient(120deg,#a14f4f,#7c3535)!important}

/* --- Layer tabs (icon + label) --- */
.gic-premium .gic-layer-tabs{background:#efe9db!important;border-color:#e5ddc8!important}
.gic-premium .gic-layer-tabs button{
  display:flex!important;flex-direction:column;align-items:center;gap:4px;
  color:#9aa39d!important;
}
.gic-premium .gic-layer-tabs button svg{width:15px;height:15px}
.gic-premium .gic-layer-tabs button.active{color:#0e3a35!important}
.gic-premium .gic-layer-tabs button.active[data-gic-layer="pronunciation"]{color:#8a6829!important}
.gic-premium .gic-layer-tabs button.active[data-gic-layer="grammar"]{color:#176f6b!important}
.gic-premium .gic-layer-tabs button.active[data-gic-layer="toolkit"]{color:#a15252!important}
.gic-premium .gic-layer-indicator{background:#fffdf9!important;box-shadow:0 6px 16px rgba(20,30,28,.12)!important}

/* --- Nav --- */
.gic-premium.gic-study-nav,
.gic-study-nav{margin-top:14px!important}
.gic-study-nav a{
  display:inline-flex!important;align-items:center;gap:6px;
  background:#fffdf9!important;border-color:#e2dac4!important;color:#334441!important;
}
.gic-study-nav a svg{width:13px;height:13px}

/* --- Premium rating bar --- */
.gic-premium-rating{
  background:#fffdf9!important;
  border-color:#e5ddc8!important;
}
.gic-premium-rating button{
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gic-premium-rating button svg{width:16px;height:16px}
.gic-premium-rating button strong{font-size:11px!important}
.gic-premium-rating button[data-gic-rating="again"]{background:#faf0ef!important;color:#b1495a!important}
.gic-premium-rating button[data-gic-rating="hard"]{background:#faf1de!important;color:#8a6829!important}
.gic-premium-rating button[data-gic-rating="good"]{background:#e6f3ec!important;color:#1f7a5c!important}
.gic-premium-rating button.gic-rating-easy{
  position:relative;
  background:linear-gradient(150deg,#17827c,#0e3a35)!important;
  color:#eafbf7!important;
  box-shadow:0 8px 16px -6px rgba(14,58,53,.5)!important;
}
.gic-rating-star{
  position:absolute;top:-7px;right:6px;width:18px;height:18px;border-radius:50%;
  background:#f0c98c;display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(169,127,56,.5);
}
.gic-rating-star svg{width:10px;height:10px;color:#3a2a10}

@media(max-width:560px){
  .gic-hero-band{padding:16px 16px 18px}
  .gic-premium .gic-study-core{padding:20px 16px 10px!important}
}
/* === END GiC Premium Concept Skin === */

/* === GiC Premium Learning Card FINAL v1 === */
.gic-final-study-page{max-width:820px!important;margin:0 auto!important;padding:10px 12px 132px!important}.gic-final-study-head{display:none!important}.gic-premium.gic-study-card{height:clamp(560px,68dvh,720px)!important;min-height:0!important;overflow:hidden!important;border-radius:32px!important}.gic-hero-band{height:148px!important;box-sizing:border-box!important}.gic-premium .gic-study-core{position:relative!important;height:calc(100% - 148px)!important;min-height:0!important;padding:24px 20px 78px!important;box-sizing:border-box!important;display:block!important}.gic-premium .gic-study-front,.gic-premium .gic-study-back{position:absolute!important;inset:24px 20px 78px!important;width:auto!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important}.gic-premium .gic-study-front[hidden],.gic-premium .gic-study-back[hidden]{display:none!important}.gic-study-eyebrow{margin:2px 0 18px!important}.gic-premium .gic-study-front-text{max-width:92%!important;text-wrap:balance!important}.gic-premium .gic-study-german{font-size:clamp(34px,7vw,50px)!important;line-height:1.04!important;max-width:94%!important;text-wrap:balance!important}.gic-premium .gic-study-english-small{font-size:15px!important;margin-top:10px!important}.gic-premium .gic-main-actions{margin-top:22px!important;gap:30px!important}.gic-premium .gic-main-action-icon{width:62px!important;height:62px!important}.gic-premium .gic-layer-tabs{position:absolute!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;max-width:100%!important;margin:0!important;min-height:54px!important;padding:5px!important;display:grid!important;grid-template-columns:repeat(var(--gic-tab-count,3),minmax(0,1fr))!important;overflow:visible!important;z-index:34!important}.gic-premium .gic-layer-tabs button{min-width:0!important;min-height:44px!important;padding:8px 5px!important;font-size:12px!important;font-weight:800!important;white-space:normal!important;line-height:1.08!important}.gic-premium .gic-layer-tabs button.active{font-weight:950!important}.gic-premium .gic-layer-indicator{top:5px!important;bottom:5px!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 20px rgba(20,30,28,.14)!important}.gic-premium .gic-layer-drawer{position:absolute!important;left:10px!important;right:10px!important;bottom:68px!important;z-index:31!important;max-height:var(--gic-drawer-max,340px)!important}.gic-premium .gic-layer-drawer-inner{max-height:var(--gic-drawer-max,340px)!important;overflow-y:auto!important;background:#fffdf9!important;border-radius:24px 24px 20px 20px!important;padding:12px 18px 18px!important;box-shadow:0 -18px 38px rgba(14,58,53,.16)!important}.gic-premium .gic-universal-speech{position:absolute!important;left:10px!important;right:10px!important;bottom:68px!important;z-index:32!important;max-height:340px!important;overflow-y:auto!important;margin:0!important;background:#fffdf9!important;border-radius:24px!important;padding:16px!important;box-shadow:0 -18px 38px rgba(14,58,53,.16)!important}.gic-layer-head-actions{display:flex;align-items:center;gap:8px}.gic-grammar-save{width:38px;height:38px;border-radius:50%;border:1px solid #d7e4df;background:#fff;color:#176f6b;font-size:22px;font-weight:700;cursor:pointer;display:grid;place-items:center}.gic-grammar-save.saved{background:#e7f5ef;color:#1f7a5c;border-color:#cfe8dc}.gic-voice-saved{font-size:10px;color:#1f7a5c;font-weight:800}.gic-premium-rating{position:fixed!important;left:50%!important;bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;transform:translateX(-50%)!important;width:min(calc(100vw - 16px),760px)!important;z-index:90!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:9px!important;margin:0!important;border-radius:22px!important;box-shadow:0 12px 30px rgba(20,30,28,.12)!important}.gic-premium-rating[hidden]{display:none!important}.gic-premium-rating button{min-height:64px!important;border-radius:16px!important}.gic-premium-rating button svg{width:21px!important;height:21px!important}.gic-profile-library-links{margin-top:18px;padding:18px;border:1px solid #dce6e2;border-radius:18px;background:#f8fbfa}.gic-profile-library-links h3{margin:0 0 10px}.gic-profile-library-links a{display:inline-flex;margin:6px 8px 0 0;padding:9px 12px;border-radius:12px;background:#fff;border:1px solid #dce6e2;text-decoration:none;color:#176f6b;font-weight:850}.gic-library-list{display:grid;gap:14px;margin-top:22px}.gic-library-card{background:#fff;border:1px solid #dce6e2;border-radius:20px;padding:18px;box-shadow:0 10px 26px rgba(20,63,60,.06)}.gic-library-meta{color:#176f6b;font-weight:900}.gic-library-copy{color:#405a56;line-height:1.65}.gic-library-card audio{width:100%;margin-top:12px}.gic-library-empty{margin-top:24px;padding:20px;border-radius:18px;background:#f7faf9;border:1px solid #dce6e2}
@media(max-width:560px){.gic-premium.gic-study-card{height:clamp(540px,67dvh,660px)!important;border-radius:28px!important}.gic-hero-band{height:142px!important;padding:15px 16px 17px!important}.gic-premium .gic-study-core{height:calc(100% - 142px)!important;padding:20px 14px 72px!important}.gic-premium .gic-study-front,.gic-premium .gic-study-back{inset:18px 14px 72px!important}.gic-premium .gic-study-german{font-size:clamp(30px,9vw,43px)!important}.gic-premium .gic-layer-tabs button{font-size:11px!important;padding:8px 3px!important}.gic-premium .gic-layer-drawer,.gic-premium .gic-universal-speech{left:6px!important;right:6px!important;bottom:64px!important}.gic-premium-rating button{min-height:60px!important}}
/* === END FINAL === */


/* === GiC Pronunciation + Notes Upgrade v1 === */
.gic-premium .gic-main-action:not(.gic-main-action-speak) .gic-main-action-icon{
  background:rgba(255,252,244,.78)!important;
  border:2px solid #b58a35!important;
  color:#b58a35!important;
  box-shadow:0 8px 20px rgba(181,138,53,.10)!important;
}
.gic-premium .gic-main-action:not(.gic-main-action-speak) .gic-main-action-icon svg{color:#b58a35!important}
.gic-premium .gic-main-action:not(.gic-main-action-speak):hover .gic-main-action-icon,
.gic-premium .gic-main-action:not(.gic-main-action-speak):focus-visible .gic-main-action-icon{
  background:#fffaf0!important;box-shadow:0 10px 24px rgba(181,138,53,.16)!important;
}
.gic-toolkit-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.gic-language-save{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:0 10px;border:1px solid #ead8d8;border-radius:999px;background:#fff;color:#9b5757;font-size:9px;font-weight:900;text-decoration:none;cursor:pointer;white-space:nowrap}
.gic-language-save.saved{background:#e9f5ef;border-color:#d2e8dd;color:#26765f}
.gic-language-save.gic-premium-locked-action{opacity:.72}
.gic-library-source{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.gic-library-open-card{display:inline-flex;padding:7px 10px;border-radius:10px;background:#f1f7f5;color:#176f6b;font-size:10px;font-weight:900;text-decoration:none}
.gic-pron-attempt-score{display:inline-flex;padding:6px 9px;border-radius:999px;background:#eef7f4;color:#176f6b;font-weight:950}
/* === END GiC Pronunciation + Notes Upgrade v1 === */

/* ============================================================
   Phase 1 · Free voice recording + Premium Pronunciation Lab
   ============================================================ */
.gic-premium .gic-universal-speech .gic-record-button.gic-ready-pulse{
  animation:gicRecordReadyPulse .9s ease;
}
@keyframes gicRecordReadyPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(23,111,107,0)}
  35%{box-shadow:0 0 0 10px rgba(23,111,107,.14)}
}
.gic-local-recording{
  margin-top:12px;
  padding:12px;
  border:1px solid #dfe8e4;
  border-radius:16px;
  background:#fbfdfc;
}
.gic-local-recording[hidden]{display:none!important}
.gic-local-recording audio{display:none}
.gic-recording-primary-actions,
.gic-recording-manage-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.gic-recording-manage-actions{margin-top:8px}
.gic-recording-text-action{
  min-height:40px;
  border:1px solid #dce6e2;
  border-radius:12px;
  background:#fff;
  color:#5b6e69;
  font-weight:850;
  cursor:pointer;
}
.gic-lab-cta{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  margin-top:12px;
  min-height:54px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#183f3b,#0f6e68);
  color:#fff;
  text-decoration:none;
  cursor:pointer;
  font:inherit;
  box-shadow:0 10px 24px rgba(23,111,107,.16);
}
.gic-lab-cta span{font-size:13px;font-weight:950}
.gic-lab-cta small{font-size:9px;opacity:.76;font-weight:700}
.gic-lab-cta:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.gic-lab-cta-locked{background:linear-gradient(135deg,#4f4534,#8a6829)}
.gic-lab-preview{
  margin-top:12px;
  padding:15px;
  border:1px solid #eadfc5;
  border-radius:18px;
  background:linear-gradient(180deg,#fffdf8,#fbf6e9);
  text-align:left;
}
.gic-lab-preview[hidden]{display:none!important}
.gic-lab-preview-kicker{
  font-size:9px;
  font-weight:950;
  letter-spacing:.09em;
  color:#8a6829;
}
.gic-lab-preview h3{
  margin:6px 0 11px;
  font-size:18px;
  line-height:1.2;
  color:#263d39;
}
.gic-lab-preview-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 10px;
}
.gic-lab-preview-grid span{
  font-size:10px;
  font-weight:800;
  color:#536762;
}
.gic-go-premium,
.gic-open-full-lab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:13px;
  padding:10px 14px;
  border-radius:12px;
  background:#176f6b;
  color:#fff!important;
  text-decoration:none;
  font-size:11px;
  font-weight:950;
}
.gic-speech-result .gic-word-chip small{
  display:block;
  margin-top:2px;
  font-size:8px;
  font-weight:750;
  opacity:.78;
}
@media(max-width:560px){
  .gic-recording-primary-actions,
  .gic-recording-manage-actions,
  .gic-lab-preview-grid{grid-template-columns:1fr}
}


/* === GIC LEARNING UI PHASE2 === */
/* German answer: modern, calm and highly readable for learners. */
.gic-premium .gic-study-german,
.gic-pron-sentence,
.gic-voice-target-german{
  font-family:'Manrope',Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;
  font-style:normal!important;
  font-weight:650!important;
  letter-spacing:-.028em!important;
}

/* Keep the target sentence visible inside Voice Practice. */
.gic-voice-target{margin:10px 0 15px;padding:14px 16px;border:1px solid #dde8e4;border-radius:18px;background:#fff;text-align:center;box-shadow:0 6px 18px rgba(20,63,60,.045)}
.gic-voice-target-label{display:block;color:#a97f38;font-size:9px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}
.gic-voice-target-german{display:block;margin-top:7px;color:#0e3a35;font-size:clamp(21px,5.6vw,30px);line-height:1.18;text-wrap:balance}
.gic-voice-target-english{display:block;margin-top:5px;color:#8d9995;font-size:11px;line-height:1.35;font-style:italic}

/* Learning tabs: Grammar is the first/default active learning layer; rail can grow and scroll. */
.gic-premium .gic-layer-tabs{
  display:flex!important;
  grid-template-columns:none!important;
  gap:6px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
  padding:5px!important;
  isolation:isolate;
}
.gic-premium .gic-layer-tabs::-webkit-scrollbar{display:none}
.gic-premium .gic-layer-tabs button{
  position:relative;z-index:2;
  flex:1 0 108px!important;
  min-width:108px!important;
  max-width:none!important;
  scroll-snap-align:center;
  flex-direction:row!important;
  justify-content:center!important;
  gap:7px!important;
  white-space:nowrap!important;
  font-size:11px!important;
  color:#899792!important;
}
.gic-premium .gic-layer-tabs button svg{width:17px!important;height:17px!important;flex:0 0 17px}
.gic-premium .gic-layer-tabs button.active{background:transparent!important;box-shadow:none!important;transform:none!important}
.gic-premium .gic-layer-indicator{z-index:1!important;transition:width .26s cubic-bezier(.2,.8,.2,1),transform .26s cubic-bezier(.2,.8,.2,1)!important}

/* The default-open learning sheet should feel like part of the card, not a blocking modal. */
.gic-premium .gic-layer-drawer{max-height:min(var(--gic-drawer-max,300px),300px)!important}
.gic-premium .gic-layer-drawer-inner{max-height:min(var(--gic-drawer-max,300px),300px)!important;border-radius:22px!important;box-shadow:0 -12px 32px rgba(14,58,53,.12)!important}
.gic-premium .gic-drawer-handle{width:42px;height:4px;margin-bottom:12px}

@media(max-width:560px){
  .gic-premium .gic-study-german{font-size:clamp(29px,8.3vw,40px)!important;line-height:1.12!important}
  .gic-premium .gic-layer-tabs button{flex-basis:106px!important;min-width:106px!important;padding:8px 7px!important}
  .gic-premium .gic-layer-drawer{max-height:min(34dvh,260px)!important}
  .gic-premium .gic-layer-drawer-inner{max-height:min(34dvh,260px)!important}
  .gic-voice-target{margin-top:6px;padding:12px 13px}
  .gic-voice-target-german{font-size:clamp(20px,6.2vw,27px)}
}
/* === END GIC LEARNING UI PHASE2 === */

/* ===== GiC Smooth Card-to-Card Transition ===== */
main.gic-final-study-page{
  transition: opacity .16s ease, transform .18s ease;
}
main.gic-final-study-page.gic-study-page-leaving{
  opacity:.28;
  transform:translateY(4px);
  pointer-events:none;
}
main.gic-final-study-page.gic-study-page-enter{
  opacity:0;
  transform:translateY(8px);
}
main.gic-final-study-page.gic-study-page-ready{
  opacity:1;
  transform:translateY(0);
}
[data-gic-rating-bar].is-submitting{
  opacity:.68;
  pointer-events:none;
}
[data-gic-rating-bar].is-submitting button{
  cursor:wait;
}
[data-gic-rating-bar] button:disabled{
  opacity:.62;
}
@media (prefers-reduced-motion: reduce){
  main.gic-final-study-page{
    transition:none!important;
  }
}

/* ===== GiC Instant Card Swap Override ===== */
main.gic-final-study-page,
main.gic-final-study-page.gic-study-page-leaving,
main.gic-final-study-page.gic-study-page-enter,
main.gic-final-study-page.gic-study-page-ready{
  transition:none!important;
  animation:none!important;
  opacity:1!important;
  transform:none!important;
}

/* ===== GiC Learning Layer Tabs Premium Clarity v1 ===== */
.gic-premium .gic-layer-tabs{
  background:linear-gradient(180deg,#f5f2ea 0%,#efebe1 100%)!important;
  border:1px solid #d6ddd8!important;
  border-radius:18px!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.86),
    0 7px 18px rgba(18,58,53,.07)!important;
  padding:5px!important;
  gap:3px!important;
}

.gic-premium .gic-layer-tabs button{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
  min-height:46px!important;
  padding:8px 7px!important;
  border-radius:14px!important;
  color:#536762!important;
  font-size:12.5px!important;
  font-weight:800!important;
  letter-spacing:.005em!important;
  line-height:1.08!important;
  opacity:1!important;
  transition:color .14s ease,transform .14s ease!important;
}

.gic-premium .gic-layer-tabs button svg{
  width:17px!important;
  height:17px!important;
  stroke-width:2!important;
  opacity:.95!important;
}

.gic-premium .gic-layer-tabs button:hover,
.gic-premium .gic-layer-tabs button:focus-visible{
  color:#173f39!important;
}

.gic-premium .gic-layer-tabs button.active{
  color:#123f39!important;
  font-weight:900!important;
  transform:translateY(-1px)!important;
}

.gic-premium .gic-layer-tabs button.active[data-gic-layer="grammar"]{
  color:#12685f!important;
}

.gic-premium .gic-layer-tabs button.active[data-gic-layer="pronunciation"]{
  color:#80601f!important;
}

.gic-premium .gic-layer-tabs button.active[data-gic-layer="toolkit"]{
  color:#6e4f48!important;
}

.gic-premium .gic-layer-indicator{
  top:5px!important;
  bottom:5px!important;
  border:1px solid rgba(204,216,211,.9)!important;
  border-radius:14px!important;
  background:#ffffff!important;
  box-shadow:
    0 8px 18px rgba(17,54,50,.15),
    0 2px 5px rgba(17,54,50,.08)!important;
  opacity:1!important;
}

.gic-premium .gic-layer-drawer-inner{
  border:1px solid #e2e7e3!important;
  background:#fffefb!important;
  box-shadow:0 -16px 36px rgba(14,58,53,.15)!important;
}

.gic-premium .gic-layer-title{
  color:#173f39!important;
  font-weight:900!important;
  letter-spacing:.08em!important;
}

@media(max-width:560px){
  .gic-premium .gic-layer-tabs{
    border-radius:16px!important;
    padding:4px!important;
  }
  .gic-premium .gic-layer-tabs button{
    min-height:45px!important;
    padding:7px 4px!important;
    font-size:11.5px!important;
  }
  .gic-premium .gic-layer-tabs button svg{
    width:16px!important;
    height:16px!important;
  }
  .gic-premium .gic-layer-indicator{
    top:4px!important;
    bottom:4px!important;
    border-radius:13px!important;
  }
}

/* ===== GiC Default Tabs + Swipe Extras v1 ===== */
.gic-premium .gic-layer-tabs{
  display:flex!important;
  align-items:stretch!important;
  gap:5px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  overscroll-behavior-inline:contain;
}
.gic-premium .gic-layer-tabs::-webkit-scrollbar{display:none!important}

/* Three defaults fill the complete rail. */
.gic-premium .gic-layer-tabs:not(.gic-layer-tabs-scroll) button{
  flex:1 1 0!important;
  min-width:0!important;
}

/* Fourth tab and beyond are reached naturally by horizontal swipe. */
.gic-premium .gic-layer-tabs.gic-layer-tabs-scroll{
  justify-content:flex-start!important;
  scroll-snap-type:x proximity;
}
.gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
  flex:0 0 118px!important;
  min-width:118px!important;
  scroll-snap-align:center;
}

/* No-content tabs stay visible, but clearly inactive and untappable. */
.gic-premium .gic-layer-tabs button:disabled,
.gic-premium .gic-layer-tabs button[aria-disabled="true"]{
  color:#aeb8b4!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:.58!important;
  cursor:default!important;
  pointer-events:none!important;
  transform:none!important;
}
.gic-premium .gic-layer-tabs button:disabled svg,
.gic-premium .gic-layer-tabs button[aria-disabled="true"] svg{
  opacity:.48!important;
}
.gic-premium .gic-layer-tabs button:not(:disabled):not(.active){
  color:#536762!important;
  opacity:1!important;
}
.gic-premium .gic-layer-tabs button.active{
  background:transparent!important;
  color:#123f39!important;
  font-weight:900!important;
}

/* Preserve the solid white premium moving selection. */
.gic-premium .gic-layer-indicator{
  background:#fff!important;
  border:1px solid rgba(204,216,211,.9)!important;
  box-shadow:0 8px 18px rgba(17,54,50,.15),0 2px 5px rgba(17,54,50,.08)!important;
  opacity:1!important;
}

@media(max-width:560px){
  .gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
    flex-basis:112px!important;
    min-width:112px!important;
  }
}

/* ===== GiC Premium Dashboard + Daily Study Plan v1 ===== */
.gic-dashboard-v3,.gic-study-plan-v3{width:min(100% - 28px,920px);margin:0 auto;padding:30px 0 72px;color:#173f39}
.gic-dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px}
.gic-dashboard-eyebrow{color:#a17a36;font-size:10px;font-weight:950;letter-spacing:.14em}
.gic-dashboard-welcome h1{margin:6px 0 5px;color:#173f39;font-size:clamp(30px,5vw,44px);line-height:1.05;letter-spacing:-.035em}
.gic-dashboard-welcome p{margin:0;color:#7c8e89;font-size:13px}
.gic-dashboard-goal-chip{flex:0 0 auto;display:grid;gap:2px;min-width:112px;padding:12px 14px;border:1px solid #dce7e2;border-radius:17px;background:#fff;box-shadow:0 10px 25px rgba(20,63,58,.07);text-decoration:none;text-align:right}
.gic-dashboard-goal-chip span{color:#9a7b44;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.gic-dashboard-goal-chip strong{color:#176b62;font-size:18px}
.gic-recall-card{overflow:hidden;margin-bottom:16px;border:1px solid #d9e4df;border-radius:28px;background:#fff;box-shadow:0 20px 45px rgba(18,62,57,.10)}
.gic-recall-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:105px;padding:20px 22px;background:radial-gradient(circle at 92% 15%,rgba(224,187,96,.18),transparent 30%),linear-gradient(135deg,#163f3a 0%,#0f6258 100%);color:#fff}
.gic-recall-hero>div{display:grid;gap:8px}.gic-recall-chip{width:max-content;padding:6px 10px;border:1px solid rgba(225,190,101,.78);border-radius:999px;color:#f1d693;font-size:9px;font-weight:950;letter-spacing:.12em}
.gic-recall-hero small{color:#cbded9;font-size:11px}.gic-recall-memory{display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(255,255,255,.08);color:#f0d28b;font-size:24px}
.gic-recall-body{min-height:248px;padding:27px 24px 25px;background:linear-gradient(180deg,#fff 0%,#fffefb 100%)}.gic-recall-question,.gic-recall-answer{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.gic-recall-question[hidden],.gic-recall-answer[hidden]{display:none!important}
.gic-recall-question>span,.gic-recall-answer>span{margin-bottom:14px;color:#8d9b97;font-size:10px;font-weight:950;letter-spacing:.13em}
.gic-recall-question>strong{max-width:720px;color:#173f39;font-size:clamp(23px,4.7vw,36px);line-height:1.15;letter-spacing:-.025em}.gic-recall-answer>strong{max-width:720px;color:#14786f;font-size:clamp(30px,6vw,45px);line-height:1.08;letter-spacing:-.035em}.gic-recall-answer>small{margin-top:8px;color:#899894;font-size:14px;font-style:italic}
.gic-recall-reveal{display:inline-flex;align-items:center;justify-content:center;margin-top:22px;min-height:44px;padding:0 18px;border:0;border-radius:13px;background:#176f66;color:#fff;box-shadow:0 8px 20px rgba(23,111,102,.17);font:inherit;font-size:12px;font-weight:900;text-decoration:none;cursor:pointer}
.gic-recall-meta{margin-top:18px;padding:8px 12px;border:1px solid #e7e1d0;border-radius:999px;background:#fbf7ec;color:#8e713d;font-size:10px;font-weight:850}
.gic-recall-actions{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:13px}.gic-recall-actions button,.gic-recall-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border:1px solid #d9e4df;border-radius:12px;background:#fff;color:#17685f;font:inherit;font-size:11px;font-weight:900;text-decoration:none;cursor:pointer}.gic-recall-empty .gic-recall-body{min-height:210px}
.gic-today-plan-card{padding:21px;border:1px solid #dae5e0;border-radius:25px;background:#fff;box-shadow:0 14px 34px rgba(20,63,58,.07)}.gic-today-plan-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.gic-today-plan-head>div>span,.gic-dashboard-section-head span{color:#a17a36;font-size:9px;font-weight:950;letter-spacing:.12em}.gic-today-plan-head h2{margin:5px 0 4px;color:#173f39;font-size:23px}.gic-today-plan-head p{margin:0;color:#83918d;font-size:11px}.gic-today-plan-head>a{flex:0 0 auto;color:#176c63;font-size:10px;font-weight:900}
.gic-today-progress{margin-top:18px;padding:14px 15px;border:1px solid #e4ebe7;border-radius:16px;background:#f8faf9}.gic-today-progress-row{display:flex;justify-content:space-between;gap:12px;color:#5c716c;font-size:10px;font-weight:900}.gic-today-progress-row strong{color:#173f39}.gic-today-progress-track{height:9px;margin-top:9px;overflow:hidden;border-radius:999px;background:#e4ebe7}.gic-today-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#176f66,#bc9652)}.gic-today-progress>small{display:block;margin-top:6px;color:#94a09d;font-size:9px}
.gic-today-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}.gic-plan-task{display:flex;align-items:center;gap:11px;min-height:92px;padding:13px;border:1px solid #e2e9e6;border-radius:17px;background:#fff}.gic-plan-task-icon{flex:0 0 39px;display:grid;place-items:center;width:39px;height:39px;border-radius:13px;font-size:18px;font-weight:900}
.gic-plan-task-review .gic-plan-task-icon{background:#edf6f3;color:#176f66}.gic-plan-task-learn .gic-plan-task-icon{background:#fbf4e5;color:#9a7738}.gic-plan-task-pron .gic-plan-task-icon{background:#f3eef9;color:#705899}.gic-plan-task span{display:block;color:#7d8e89;font-size:9px;font-weight:900;text-transform:uppercase}.gic-plan-task strong{display:block;margin-top:2px;color:#173f39;font-size:22px}.gic-plan-task small{display:block;margin-top:2px;color:#9aa5a2;font-size:8.5px}
.gic-plan-primary-cta,.gic-study-plan-save{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;margin-top:14px;padding:0 18px;border:0;border-radius:15px;background:linear-gradient(135deg,#176f66,#12584f);color:#fff;box-shadow:0 10px 22px rgba(23,111,102,.18);font:inherit;font-size:12px;font-weight:950;text-decoration:none;cursor:pointer}.gic-plan-primary-cta span{color:#ebcf8d;font-size:18px}
.gic-plan-complete{display:flex;align-items:center;gap:11px;margin-top:14px;padding:14px;border:1px solid #d5e8df;border-radius:16px;background:#f1f9f5}.gic-plan-complete>span{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#dcefe6;color:#246d59;font-weight:950}.gic-plan-complete strong,.gic-plan-complete small{display:block}.gic-plan-complete small{margin-top:2px;color:#7a8f89;font-size:9px}
.gic-dashboard-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.gic-dashboard-stats article{padding:16px;border:1px solid #e0e8e4;border-radius:18px;background:#fff}.gic-dashboard-stats span{display:block;color:#899794;font-size:8px;font-weight:950;letter-spacing:.08em}.gic-dashboard-stats strong{display:block;margin-top:8px;color:#173f39;font-size:24px}.gic-dashboard-stats small{display:block;margin-top:3px;color:#9da7a4;font-size:8.5px}
.gic-dashboard-recent{margin-top:14px;padding:18px;border:1px solid #e0e8e4;border-radius:20px;background:#fff}.gic-dashboard-section-head h3{margin:4px 0 9px}.gic-dashboard-recent-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid #edf1ef;color:#506862;font-size:11px}.gic-dashboard-recent-row:last-child{border-bottom:0}.gic-dashboard-recent-row b{color:#a17a36}.gic-dashboard-recent-row small{color:#9aa5a2;font-size:9px}
.gic-plan-back{display:inline-flex;margin-bottom:12px;color:#5b756f;font-size:11px;font-weight:900;text-decoration:none}.gic-study-plan-shell{overflow:hidden;border:1px solid #d9e4df;border-radius:30px;background:#fff;box-shadow:0 22px 48px rgba(18,62,57,.11)}
.gic-study-plan-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 27px;background:radial-gradient(circle at 90% 18%,rgba(224,187,96,.18),transparent 30%),linear-gradient(135deg,#173f3a,#0e645a);color:#fff}.gic-study-plan-chip{display:inline-flex;padding:6px 10px;border:1px solid rgba(225,190,101,.78);border-radius:999px;color:#efd48f;font-size:9px;font-weight:950;letter-spacing:.12em}
.gic-study-plan-hero h1{margin:12px 0 7px;color:#fff;font-size:clamp(30px,5vw,43px);line-height:1.05;letter-spacing:-.04em}.gic-study-plan-hero p{max-width:610px;margin:0;color:#c8dbd7;font-size:12px;line-height:1.6}.gic-study-plan-minute-badge{flex:0 0 108px;display:grid;place-items:center;padding:13px 10px;border:1px solid rgba(255,255,255,.16);border-radius:19px;background:rgba(255,255,255,.08);text-align:center}.gic-study-plan-minute-badge span{color:#c6dad5;font-size:8px;font-weight:900}.gic-study-plan-minute-badge strong{margin-top:3px;color:#efd28a;font-size:30px}.gic-study-plan-minute-badge small{color:#d6e4e1;font-size:9px}
.gic-study-plan-body{display:grid;gap:18px;padding:24px;background:linear-gradient(180deg,#fff,#fffefb)}.gic-plan-saved{padding:10px 12px;border:1px solid #d4e8df;border-radius:13px;background:#eff8f4;color:#276a59;font-size:10px;font-weight:900}.gic-study-plan-section{padding:18px;border:1px solid #e2e9e6;border-radius:19px;background:#fff}
.gic-study-plan-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:14px}.gic-study-plan-section-head>div>span,.gic-study-plan-preview-head>span{color:#a17a36;font-size:8px;font-weight:950;letter-spacing:.1em}.gic-study-plan-section-head h2{margin:4px 0 0;color:#173f39;font-size:18px}.gic-study-plan-section-head>small{color:#8f9c98;font-size:9px}.gic-study-plan-section-head b{color:#176f66}
.gic-study-minute-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.gic-study-minute-options input{position:absolute;opacity:0}.gic-study-minute-options span{display:flex;align-items:baseline;justify-content:center;gap:3px;min-height:48px;border:1px solid #dfe7e3;border-radius:14px;background:#f8faf9;color:#617771;font-size:15px;font-weight:950;cursor:pointer}.gic-study-minute-options span small{color:#9aa6a2;font-size:8px}.gic-study-minute-options input:checked+span{border-color:#176f66;background:#176f66;color:#fff;box-shadow:0 8px 17px rgba(23,111,102,.16)}.gic-study-minute-options input:checked+span small{color:#d7e9e5}
.gic-study-mix-slider{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;color:#7a8c87;font-size:9px;font-weight:900}.gic-study-mix-slider input{width:100%;accent-color:#176f66}
.gic-study-plan-preview{padding:19px;border:1px solid #eadfbe;border-radius:20px;background:linear-gradient(180deg,#fdf9ef,#fbf7ec)}.gic-study-plan-preview-head{display:grid;gap:4px}.gic-study-plan-preview-head strong{color:#5f543d;font-size:12px}.gic-study-plan-preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}.gic-study-plan-preview-grid article{padding:13px;border:1px solid #ebe1c5;border-radius:15px;background:rgba(255,255,255,.72)}.gic-study-plan-preview-grid span{display:block;color:#927b4c;font-size:8px;font-weight:950;text-transform:uppercase}.gic-study-plan-preview-grid strong{display:block;margin-top:4px;color:#173f39;font-size:23px}.gic-study-plan-preview-grid small{display:block;margin-top:2px;color:#a08f6c;font-size:8px}.gic-study-plan-rule{margin:12px 0 0;color:#8f805f;font-size:9px;line-height:1.6}.gic-study-plan-save{justify-content:center;margin-top:0}
@media(max-width:720px){.gic-dashboard-v3,.gic-study-plan-v3{width:min(100% - 20px,920px);padding-top:18px}.gic-dashboard-welcome{align-items:flex-start}.gic-today-plan-grid{grid-template-columns:1fr 1fr}.gic-plan-task-pron{grid-column:1/-1}.gic-study-minute-options{grid-template-columns:repeat(3,1fr)}}
@media(max-width:520px){.gic-dashboard-welcome h1{font-size:30px}.gic-recall-hero{min-height:92px;padding:17px 18px}.gic-recall-body{padding:22px 16px}.gic-today-plan-card{padding:16px}.gic-today-plan-grid{grid-template-columns:1fr}.gic-plan-task-pron{grid-column:auto}.gic-dashboard-stats{grid-template-columns:1fr 1fr}.gic-dashboard-stats article:last-child{grid-column:1/-1}.gic-study-plan-hero{align-items:flex-start;padding:22px 18px}.gic-study-plan-minute-badge{flex-basis:82px}.gic-study-plan-body{padding:16px}.gic-study-plan-preview-grid{grid-template-columns:1fr 1fr}.gic-study-plan-preview-grid article:last-child{grid-column:1/-1}}

/* ===== GiC Dynamic Dashboard Greeting + Return Awareness v1 ===== */
.gic-dashboard-welcome.gic-dashboard-welcome-dynamic{
  display:block;
  margin-bottom:20px;
}
.gic-dashboard-welcome-copy{
  min-width:0;
}
.gic-dashboard-greeting{
  white-space:nowrap;
  font-size:clamp(22px,6.3vw,42px)!important;
  letter-spacing:-.045em!important;
}
.gic-dashboard-greeting-subtitle{
  max-width:720px;
  margin-top:8px!important;
  color:#728681!important;
  font-size:12.5px!important;
  line-height:1.55;
}
.gic-dashboard-notice-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:15px;
}
.gic-dashboard-notice{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 11px;
  border-radius:12px;
  text-decoration:none;
  font-size:10px;
  font-weight:900;
  box-shadow:0 5px 14px rgba(22,62,57,.05);
}
.gic-dashboard-notice-plan{
  border:1px solid #d7e5df;
  background:#f4faf7;
  color:#17685f;
}
.gic-dashboard-notice-review{
  border:1px solid #e9dfc4;
  background:#fcf8ee;
  color:#84672f;
}
.gic-dashboard-notice-icon{
  display:grid;
  place-items:center;
  width:22px;
  height:22px;
  border-radius:8px;
  background:rgba(255,255,255,.82);
  font-size:13px;
}
.gic-dashboard-notice small{
  margin-left:3px;
  color:#8a9b96;
  font-size:8px;
  font-weight:850;
}
.gic-dashboard-last-login{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 4px;
  color:#879691;
  font-size:9.5px;
  font-weight:750;
}

/* Daily Recall is deliberately NOT styled like a main flash card. */
.gic-dashboard-v3 .gic-recall-card{
  border:1px solid #e4dfd2;
  border-radius:22px;
  background:#fffdf8;
  box-shadow:0 12px 28px rgba(51,55,48,.07);
}
.gic-dashboard-v3 .gic-recall-hero{
  min-height:0;
  padding:14px 17px;
  border-bottom:1px solid #ebe5d8;
  background:linear-gradient(135deg,#f6f2e8,#f1f5f1);
  color:#173f39;
}
.gic-dashboard-v3 .gic-recall-chip{
  border-color:#d8bd7b;
  background:rgba(255,255,255,.56);
  color:#8c6b2e;
}
.gic-dashboard-v3 .gic-recall-hero small{
  color:#778983;
}
.gic-dashboard-v3 .gic-recall-memory{
  width:39px;
  height:39px;
  border:1px solid #d8dfda;
  background:#fff;
  color:#7b8f88;
  font-size:18px;
}
.gic-dashboard-v3 .gic-recall-body{
  min-height:205px;
  padding:22px 20px;
  background:#fffdf9;
}
.gic-dashboard-v3 .gic-recall-question,
.gic-dashboard-v3 .gic-recall-answer{
  min-height:158px;
}
.gic-dashboard-v3 .gic-recall-question>strong{
  font-size:clamp(21px,4.5vw,31px);
}
.gic-dashboard-v3 .gic-recall-answer>strong{
  color:#176d63;
  font-size:clamp(27px,5.5vw,38px);
}
.gic-dashboard-v3 .gic-recall-reveal{
  margin-top:18px;
  min-height:41px;
  background:#fff;
  border:1px solid #cfdcd7;
  color:#17685f;
  box-shadow:none;
}
.gic-dashboard-v3 .gic-recall-meta{
  background:#f8f4e9;
}

/* Retire the old detached top-right Daily Plan card if cached markup ever appears. */
.gic-dashboard-goal-chip{
  display:none!important;
}

@media(max-width:520px){
  .gic-dashboard-greeting{
    font-size:clamp(21px,6.05vw,29px)!important;
  }
  .gic-dashboard-greeting-subtitle{
    font-size:11.5px!important;
  }
  .gic-dashboard-notice-row{
    gap:7px;
  }
  .gic-dashboard-notice{
    min-height:36px;
    padding:0 9px;
  }
  .gic-dashboard-last-login{
    width:100%;
    min-height:22px;
    padding-left:2px;
  }
}

/* ===== GiC TABS BAR ONLY v1 BEGIN ===== */
.gic-premium .gic-layer-tabs{
  display:flex!important;
  align-items:stretch!important;
  gap:5px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  overscroll-behavior-inline:contain;
}
.gic-premium .gic-layer-tabs::-webkit-scrollbar{display:none!important}

.gic-premium .gic-layer-tabs:not(.gic-layer-tabs-scroll) button{
  flex:1 1 0!important;
  min-width:0!important;
}

.gic-premium .gic-layer-tabs.gic-layer-tabs-scroll{
  justify-content:flex-start!important;
  scroll-snap-type:x proximity;
}
.gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
  flex:0 0 118px!important;
  min-width:118px!important;
  scroll-snap-align:center;
}

.gic-premium .gic-layer-tabs button:disabled,
.gic-premium .gic-layer-tabs button[aria-disabled="true"]{
  color:#aeb8b4!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:.58!important;
  cursor:default!important;
  pointer-events:none!important;
  transform:none!important;
}
.gic-premium .gic-layer-tabs button:disabled svg,
.gic-premium .gic-layer-tabs button[aria-disabled="true"] svg{
  opacity:.48!important;
}
.gic-premium .gic-layer-tabs button:not(:disabled):not(.active){
  color:#536762!important;
  opacity:1!important;
}
.gic-premium .gic-layer-tabs button.active{
  background:transparent!important;
  color:#123f39!important;
  font-weight:900!important;
}

.gic-premium .gic-layer-indicator{
  background:#fff!important;
  border:1px solid rgba(204,216,211,.9)!important;
  box-shadow:0 8px 18px rgba(17,54,50,.15),0 2px 5px rgba(17,54,50,.08)!important;
  opacity:1!important;
}

@media(max-width:560px){
  .gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
    flex-basis:112px!important;
    min-width:112px!important;
  }
}
/* ===== GiC TABS BAR ONLY v1 END ===== */

/* ============================================================
   GiC V3.2 — Free pronunciation checks (5/day)
   Recording stays local; only explicit successful checks consume quota.
   ============================================================ */
.gic-lab-cta-free{
  background:linear-gradient(135deg,#176b5f 0%,#0f5f56 64%,#9b792f 135%);
  box-shadow:0 12px 28px rgba(18,91,81,.18),inset 0 1px 0 rgba(255,255,255,.16);
}
.gic-lab-cta-free:not(:disabled):hover,
.gic-lab-cta-free:not(:disabled):focus-visible{
  transform:translateY(-1px);
  box-shadow:0 15px 34px rgba(18,91,81,.22),inset 0 1px 0 rgba(255,255,255,.18);
}
.gic-lab-cta[data-free-exhausted="1"]{
  background:linear-gradient(135deg,#5f665f,#72766e);
  color:#f7f8f6;
}
.gic-free-analysis-note{
  margin:8px 6px 0;
  color:#7b8b86;
  font-size:9px;
  line-height:1.5;
  text-align:center;
}
.gic-free-quota-result{
  margin-top:10px!important;
  padding:8px 10px;
  border-radius:12px;
  background:#eef7f3;
  border:1px solid #d7e8e1;
  color:#42645c!important;
}
.gic-free-quota-result b{color:#176f6b}

/* GIC_PRONUNCIATION_SAVE_MIRROR_V1 */
.gic-pronunciation-save{width:38px;height:38px;border-radius:50%;border:1px solid #d7e4df;background:#fff;color:#176f6b;font-size:22px;font-weight:700;cursor:pointer;display:grid;place-items:center}.gic-pronunciation-save.saved{background:#e7f5ef;color:#1f7a5c;border-color:#cfe8dc}

@media (max-width:768px){
  html body .gic-study-card{
    padding:40px 20px 36px !important;
  }

  html body .gic-study-card .gic-study-core{
    min-height:520px !important;
  }
}
@media (max-width:768px){

  html body .gic-recording-primary-actions{
      margin-bottom:40px !important;
  }

  html body .gic-main-audio{
      margin-bottom:20px !important;
  }

}
@media (max-width:768px){

html body .gic-study-card{
    min-height:760px !important;
    height:auto !important;
}

html body .gic-study-card .gic-study-core{
    min-height:620px !important;
    padding:50px 20px 70px !important;
}

html body .gic-study-german{
    margin-top:20px !important;
    margin-bottom:35px !important;
}

html body .gic-main-audio{
    transform:scale(1.12);
    margin-top:60px !important;
    margin-bottom:50px !important;
}

}
@media (max-width:768px){

  html body .gic-learning-layer-open .gic-hero-band{
      height:82px !important;
      padding:10px 14px !important;
  }

  html body .gic-learning-layer-open .gic-study-core{
      height:calc(100% - 82px) !important;
  }

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    top:90px !important;
    bottom:68px !important;
    max-height:none !important;
}

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    max-height:none !important;
    height:100% !important;
    overflow-y:auto !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    max-height:none !important;
    top:82px !important;
    bottom:70px !important;
}

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    max-height:none !important;
    height:100% !important;
    overflow-y:auto !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    display:flex !important;
    flex-direction:column !important;
}

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    flex:1 !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    overflow-y:auto !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    max-height:none !important;
    height:auto !important;
}

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    max-height:none !important;
    height:auto !important;
    overflow-y:auto !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-panel{
    height:100% !important;
    max-height:none !important;
    overflow-y:auto !important;
}

html body .gic-learning-layer-open .gic-layer-editorial{
    max-height:none !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-panel{
    height:100% !important;
    max-height:none !important;
    overflow-y:auto !important;
}

html body .gic-learning-layer-open .gic-layer-editorial{
    max-height:none !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    padding-bottom:120px !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    max-height:none !important;
    height:auto !important;
    bottom:70px !important;
}

html body .gic-learning-layer-open .gic-layer-drawer-inner{
    max-height:none !important;
    height:auto !important;
    padding-bottom:80px !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-tabs-wrap{
    transform:translateY(20px) !important;
}

}
@media (max-width:768px){

html body .gic-learning-layer-open .gic-layer-drawer{
    padding-bottom:100px !important;
}

}


.gic-layer-focus{
    width:40px !important;
    height:40px !important;
    border-radius:50% !important;
    border:1px solid #dce6e2 !important;
    background:#fff !important;
    color:#6b7774 !important;
    display:grid !important;
    place-items:center !important;
    font-size:20px !important;
    cursor:pointer !important;
    padding:0 !important;
}
\n
/* prevent white flash during card swap */
.gic-swapping .gic-ah-card{
    opacity:0 !important;
}


/* GIC layer fixed height restore */
.gic-layer-panel,
.gic-layer-editorial,
.gic-layer-items {
    min-height: 220px !important;
}
/* ===== Premium Language Kit ===== */

.gic-language-kit-items {
    display:flex;
    flex-direction:column;
    gap:14px;
}

.gic-language-kit-item {
    background:#fff;
    border:1px solid #ece6df;
    border-radius:22px;
    padding:18px;
    box-shadow:0 8px 24px rgba(20,30,40,.06);
}

.gic-language-kit-item .gic-layer-item-row-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.gic-language-kit-item strong {
    display:block;
    font-size:20px;
    line-height:1.5;
    color:#17233c;
    margin-bottom:8px;
}

.gic-language-kit-item small {
    display:block;
    font-size:14px;
    color:#6b7280;
    line-height:1.6;
}

.gic-language-kit-item .gic-mini-audio {
    width:42px;
    height:42px;
    border-radius:50%;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gic-language-kit-item .gic-relation-badge {
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:800;
}

/* ===== GiC Dynamic Layer Rail Visibility Fix ===== */
@media (max-width:560px){
  .gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
    flex:0 0 29%!important;
    min-width:96px!important;
    scroll-snap-align:start!important;
  }
}

/* ===== GiC Dynamic Layer Rail Visibility Fix ===== */
@media (max-width:560px){
  .gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
    flex:0 0 29%!important;
    min-width:96px!important;
    scroll-snap-align:start!important;
  }
}
/* ===== GiC Dynamic Layer Rail Visibility Fix ===== */
@media (max-width:560px){
  .gic-premium .gic-layer-tabs.gic-layer-tabs-scroll button{
    flex:0 0 29%!important;
    min-width:96px!important;
    scroll-snap-align:start!important;
  }
}
