/* V100 grammar: the approved topic browser. */
body.yt-student-ui #dashboard-grammar.grammar-catalogue{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:var(--yt-text);width:100%;min-width:0}
.grammar-catalogue [hidden],.grammar-unit-dialog [hidden]{display:none!important}
.grammar-catalogue button,.grammar-unit-dialog button{font:inherit;cursor:pointer;margin:0;width:auto;box-shadow:none}
.grammar-catalogue .gc-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(108deg,#6146ff,#7852f6);padding:22px 24px;border-radius:18px;color:white;margin-bottom:20px}
.grammar-catalogue .gc-hero h1{font-size:clamp(25px,2.3vw,36px);margin:0 0 6px;color:white;letter-spacing:-.7px;line-height:1.15}
.grammar-catalogue .gc-hero p{font-size:16px;margin:0 0 12px;color:#eee9ff}
.gc-totals{display:flex;gap:9px}.gc-totals span{background:#27216f66;border-radius:30px;padding:5px 13px;font-size:12px}
.gc-flag{font-size:44px;line-height:1.1;display:block}.gc-language .gc-flag img{width:66px;height:48px;border-radius:7px;object-fit:cover}
.gc-language{display:flex;gap:20px;align-items:center;flex-shrink:0}.gc-language img{width:58px;height:42px;object-fit:cover;border-radius:5px}.gc-language strong{display:block;font-size:14px;margin:0 0 7px}.grammar-catalogue .gc-language button{border:1px solid #ffffff66;background:#ffffff14;color:white;padding:8px 12px;border-radius:8px;font-size:13px}
.gc-workspace{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.gc-catalogue{min-width:0}
.gc-toolbar{display:flex;gap:14px;justify-content:space-between;margin-bottom:24px;align-items:center;flex-wrap:wrap}
.gc-search{display:flex;align-items:center;gap:12px;flex:1 1 210px;min-width:0;border:1px solid var(--yt-line);border-radius:12px;background:var(--yt-card);padding:0 14px;height:44px;color:var(--yt-muted)}.gc-search svg{width:19px;height:19px;flex-shrink:0}.grammar-catalogue .gc-search input{border:0;background:transparent;color:var(--yt-text);font:inherit;font-size:13px;box-shadow:none!important;margin:0;padding:10px 0;width:100%;min-width:0}.gc-search input::placeholder{color:var(--yt-muted)}
.gc-filters{display:flex;gap:7px;flex-wrap:wrap}.grammar-catalogue .gc-filter{min-height:42px;padding:9px 10px;border-radius:11px;border:1px solid var(--yt-line);background:transparent;color:var(--yt-text);font-size:12px;font-weight:600}.grammar-catalogue .gc-filter[aria-pressed="true"]{background:#704bf4;color:white;border-color:#a392fb}
.gc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.gc-heading h2{font-size:22px;margin:0;color:var(--yt-text)}.gc-heading span{font-size:12px;color:var(--yt-accent);text-align:right}
.gc-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.grammar-catalogue .gc-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:1fr auto;align-items:center;gap:9px 14px;min-height:105px;padding:16px 14px;border:1px solid var(--yt-line);border-radius:12px;background:var(--yt-card);color:var(--yt-text);text-align:left;width:100%;transition:background .15s,border-color .15s}
.grammar-catalogue .gc-card:hover{background:var(--yt-card-alt);border-color:var(--yt-accent)}.grammar-catalogue .gc-card[aria-pressed="true"]{border:2px solid #b39cfb;background:linear-gradient(115deg,#7953ec55,#6e58bc33);padding:15px 13px;box-shadow:0 0 0 2px #a991ff18}.gc-card[aria-pressed="true"]::after{content:'✓';position:absolute;right:6px;top:6px;font-size:11px;font-weight:700;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#7855fb;color:white}
.gc-icon{width:44px;height:46px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,#6950d3,#5442b3);color:white;font-size:22px;font-weight:700}.gc-icon svg{width:25px;height:25px}.gc-card strong{font-size:13px;line-height:1.45;overflow-wrap:anywhere;padding-right:3px;font-weight:650}.gc-card small{grid-column:2;font-size:11px;color:var(--yt-muted)}.gc-card .gc-arrow{position:absolute;right:13px;bottom:13px;font-size:20px;color:var(--yt-muted);line-height:1}
.gc-detail{border:1px solid var(--yt-line);border-radius:14px;padding:23px 18px;background:var(--yt-card);min-width:0}.gc-kicker{font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;color:var(--yt-accent)}.gc-detail h2{margin:7px 0 6px;font-size:28px;line-height:1.15;color:var(--yt-text)}.gc-detail .gc-description{color:var(--yt-muted);font-size:13px;line-height:1.5;margin:0 0 23px}
.gc-category-introduction{margin:-7px 0 17px;padding:14px 15px;border:1px solid var(--yt-line);border-left:4px solid var(--yt-accent);border-radius:10px;background:var(--yt-wash);color:var(--yt-text)}.gc-category-introduction strong{display:block;margin-bottom:5px;color:var(--yt-accent);font-size:12px}.gc-category-introduction p{margin:0;white-space:pre-line;font-size:13px;line-height:1.6;color:var(--yt-text)}
.gc-units{display:grid;gap:8px;max-height:265px;overflow-y:auto;scrollbar-width:thin;padding:2px}.grammar-catalogue .gc-unit{display:flex;align-items:center;gap:13px;width:100%;padding:13px;border:1px solid var(--yt-line);border-radius:11px;background:transparent;text-align:left;color:var(--yt-text);min-width:0}.gc-unit .gc-icon{width:34px;height:39px;flex:0 0 34px;border-radius:7px}.gc-unit .gc-icon svg{width:21px;height:21px}.gc-unit>span:nth-child(2){min-width:0;flex:1}.gc-unit strong{font-size:13px;display:block;line-height:1.4}.gc-unit small{font-size:12px;display:block;margin-top:4px;color:var(--yt-muted);line-height:1.4}.grammar-catalogue .gc-unit[aria-pressed="true"]{background:var(--yt-wash);border-color:var(--yt-accent)}
.gc-tabs{display:flex;gap:4px;padding:3px;border-radius:10px;border:1px solid var(--yt-line);background:var(--yt-bg);margin:19px 0}.gc-tabs button{border:0;background:transparent;color:var(--yt-muted);padding:10px 7px;flex:1;border-radius:8px;font-size:12px}.gc-tabs button[aria-selected="true"]{background:#704bf4;color:white;box-shadow:inset 0 0 0 1px #aa8ffc}
.gc-preview h3{margin:0 0 7px;font-size:18px;color:var(--yt-text)}.gc-preview p{font-size:13px;color:var(--yt-muted);line-height:1.6;margin:0 0 15px}.gc-preview blockquote{margin:9px 0;padding:13px;background:var(--yt-bg);border:1px solid var(--yt-line);border-radius:10px;font-size:12px;line-height:1.7;color:var(--yt-text);overflow-wrap:anywhere}.gc-example-label{display:inline-block;color:var(--yt-accent);font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;background:var(--yt-wash);margin-right:9px}.gc-example-line+.gc-example-line{margin-top:10px}
.gc-example-preview-list blockquote.has-image{display:grid;grid-template-columns:68px minmax(0,1fr);gap:11px;align-items:center}.gc-example-preview-list figure{width:68px;aspect-ratio:4/3;overflow:hidden;margin:0;border-radius:7px;background:var(--yt-wash)}.gc-example-preview-list figure[hidden]{display:none}.gc-example-preview-list img{display:block;width:100%;height:100%;object-fit:cover}.gc-example-preview-list span{min-width:0}
.grammar-catalogue .gc-primary,.grammar-unit-dialog .gc-primary{display:block;width:100%;min-height:44px;border:1px solid #a086fa;border-radius:10px;background:linear-gradient(105deg,#744af4,#6e44ef);color:#fff;padding:12px;font-weight:650;font-size:14px}.grammar-catalogue .gc-secondary,.grammar-unit-dialog .gc-secondary{display:block;width:100%;min-height:43px;margin-top:8px;border:1px solid var(--yt-accent);border-radius:10px;background:transparent;color:var(--yt-accent);padding:11px;font-weight:650;font-size:13px}.gc-tip{font-size:11px;color:var(--yt-muted);margin:18px 0 0;line-height:1.5}.gc-tip::before{content:'💡';margin-right:8px;font-size:17px}.gc-empty{grid-column:1/-1;color:var(--yt-muted);padding:24px;border:1px dashed var(--yt-line);border-radius:12px;line-height:1.6;font-size:14px}.gc-message{color:var(--yt-muted);font-size:12px;padding:10px 0}.gc-storage-notice{color:var(--yt-muted);font-size:11px;margin-top:12px}
.grammar-catalogue :is(button,input):focus-visible,.grammar-unit-dialog :is(button,input):focus-visible{outline:3px solid var(--yt-accent);outline-offset:3px}
.grammar-unit-dialog{width:min(790px,calc(100% - 28px));max-height:90dvh;padding:0;border:1px solid var(--yt-line);border-radius:20px;background:var(--yt-bg,#27384f);color:var(--yt-text,#f3f5fc);box-shadow:0 20px 80px #0008}.grammar-unit-dialog::backdrop{background:#0a1428b3;backdrop-filter:blur(5px)}.gu-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;gap:20px;padding:23px;background:var(--yt-card,#344960);border-bottom:1px solid var(--yt-line)}.gu-head h2{margin:5px 0;font-size:24px;color:var(--yt-text)}.gu-head small{color:var(--yt-muted)}.gu-close{border:1px solid var(--yt-line);background:transparent;color:var(--yt-text);border-radius:9px;width:40px!important;height:40px;flex-shrink:0;font-size:22px!important}.gu-body{padding:24px}.gu-body h3{font-size:16px;color:var(--yt-text);margin:18px 0 8px}.gu-body p,.gu-body li{font-size:15px;line-height:1.7;white-space:pre-line}.gu-body blockquote{margin:14px 0;padding:16px 18px;border-left:3px solid var(--yt-accent);background:var(--yt-card);border-radius:6px;white-space:pre-line;font-size:15px;line-height:1.7}.gu-body .gc-tabs{margin-top:0}.gu-structure{padding:15px;background:var(--yt-wash);color:var(--yt-text);border:1px solid var(--yt-line);border-radius:10px;white-space:pre-wrap;font-size:14px;line-height:1.6}
.gu-exercise fieldset{border:0;padding:0;margin:18px 0}.gu-exercise legend{font-size:17px;line-height:1.6;margin-bottom:14px;width:100%;white-space:pre-line}.gu-options{display:grid;gap:9px}.gu-options label{display:flex;align-items:center;gap:10px;padding:13px;border:1px solid var(--yt-line);border-radius:10px;background:var(--yt-card);cursor:pointer}.gu-options input{width:auto;margin:0;accent-color:#8b67ff}.gu-answer{width:100%;border:1px solid var(--yt-line);border-radius:10px;padding:14px;background:var(--yt-card);color:var(--yt-text);font:inherit;font-size:16px;margin:0}.gu-feedback{padding:14px;margin:14px 0;background:var(--yt-card);border:1px solid var(--yt-line);border-radius:10px;line-height:1.6}.gu-feedback[data-correct="true"]{border-color:#70c8a9}.gu-feedback[data-correct="false"]{border-color:#e4b069}.gu-actions{display:flex;gap:10px;margin-top:20px}.gu-actions>*{flex:1}.gu-progress{font-size:12px;color:var(--yt-muted);display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.gc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1600px){.gc-workspace{grid-template-columns:minmax(0,1fr) 380px}.grammar-catalogue .gc-card{min-height:118px}.gc-card strong{font-size:15px}.gc-detail{padding:26px 22px}}
@media(max-width:1230px){.gc-workspace{grid-template-columns:minmax(0,1fr) 310px;gap:15px}.gc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.grammar-catalogue .gc-card{grid-template-columns:36px minmax(0,1fr);gap:8px;min-height:110px;padding:13px 10px}.gc-card .gc-icon{width:36px;height:40px}.grammar-catalogue .gc-card[aria-pressed="true"]{padding:12px 9px}.gc-heading h2{font-size:20px}.gc-language{gap:12px}}
@media(max-width:1000px){.gc-workspace{grid-template-columns:1fr}.gc-detail{scroll-margin-top:88px}.gc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gc-toolbar{flex-wrap:nowrap}.gc-detail .gc-units{grid-template-columns:repeat(2,minmax(0,1fr));max-height:260px}.gc-detail{max-width:none}.gc-language img{width:48px;height:34px}}
@media(max-width:600px){.grammar-catalogue .gc-hero{padding:20px 17px;gap:14px;flex-wrap:wrap}.gc-language{width:100%;justify-content:flex-start}.gc-language>div{display:flex;align-items:center;justify-content:space-between;flex:1;gap:10px}.gc-language strong{margin:0}.grammar-catalogue .gc-hero h1{font-size:27px}.grammar-catalogue .gc-hero p{font-size:14px}.gc-toolbar{display:block;margin-bottom:22px}.gc-search{margin-bottom:12px}.grammar-catalogue .gc-search input{font-size:16px}.gc-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.grammar-catalogue .gc-filter{font-size:11px;padding:8px 4px}.gc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.gc-heading h2{font-size:18px}.gc-heading span{font-size:11px}.gc-card strong{font-size:12px}.gc-card small{font-size:10px}.gc-detail .gc-units{grid-template-columns:1fr}.gc-detail h2{font-size:25px}.gu-head,.gu-body{padding:18px}.gu-head h2{font-size:20px}.gu-actions{flex-direction:column}.grammar-unit-dialog{max-height:88dvh}.gc-tabs button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.grammar-catalogue *{transition:none!important;scroll-behavior:auto!important}}

/* V101 · visual long-form lesson opened from “Abrir unidad”. */
.grammar-lesson{width:100%;min-width:0;color:var(--yt-text);--gl-purple:#7652f4;--gl-purple-soft:#eee9ff;--gl-cyan:#55c9c0}
.grammar-lesson button{font:inherit;cursor:pointer;box-shadow:none}
.gl-header{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:end;padding:28px 30px 27px;margin-bottom:18px;border:1px solid #9c86ff66;border-radius:19px;background:linear-gradient(118deg,#5d45df 0%,#7250ed 55%,#354f9d 115%);color:#fff;box-shadow:0 18px 48px #1a174220}
.gl-header::before,.gl-header::after{content:'';position:absolute;border-radius:50%;pointer-events:none}.gl-header::before{width:240px;height:240px;right:80px;top:-180px;background:#fff2}.gl-header::after{width:150px;height:150px;right:-55px;bottom:-100px;background:#3ee0d92a}
.gl-header>div,.gl-header>.gl-status{position:relative;z-index:1}.gl-back{grid-column:1/-1;justify-self:start;padding:8px 12px;border:1px solid #ffffff55;border-radius:9px;background:#251d6b44;color:#fff;font-size:12px;font-weight:700}.gl-back:hover{background:#fff;color:#543cd0}.gl-header .gc-kicker{color:#dad2ff}.gl-header h1{font-size:clamp(29px,3vw,43px);letter-spacing:-1px;line-height:1.08;margin:8px 0 7px;color:#fff}.gl-header p{margin:0;color:#eae6ff;font-size:15px}.gl-status{min-width:130px;text-align:right}.gl-status span{display:block;color:#ddd6ff;font-size:11px;text-transform:uppercase;letter-spacing:.6px}.gl-status strong{display:block;margin-top:6px;font-size:19px;color:#fff}
.gl-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:18px;align-items:start}.gl-aside{position:sticky;top:18px;border:1px solid var(--yt-line);border-radius:15px;background:var(--yt-card);overflow:hidden}.gl-aside-title{display:flex;align-items:center;gap:12px;padding:17px;border-bottom:1px solid var(--yt-line);background:linear-gradient(135deg,var(--yt-card),var(--yt-wash))}.gl-aside-title .gc-icon{width:38px;height:40px;flex:0 0 38px}.gl-aside-title small{display:block;color:var(--yt-muted);font-size:10px;text-transform:uppercase;letter-spacing:.7px;margin-bottom:4px}.gl-aside-title strong{display:block;font-size:14px;line-height:1.3}.gl-unit-list{max-height:540px;overflow:auto;padding:8px;scrollbar-width:thin}.gl-unit-list button{display:grid;grid-template-columns:27px minmax(0,1fr) 13px;gap:9px;align-items:center;width:100%;padding:10px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--yt-text);text-align:left}.gl-unit-list button:hover{background:var(--yt-card-alt)}.gl-unit-list button[aria-current="page"]{background:var(--yt-wash);border-color:#8d70ee;color:var(--yt-text)}.gl-unit-list button>span:first-child{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:var(--yt-bg);color:var(--yt-muted);font-size:11px;font-weight:800}.gl-unit-list button[aria-current="page"]>span:first-child{background:var(--gl-purple);color:#fff}.gl-unit-list button>span:nth-child(2){min-width:0}.gl-unit-list strong{display:block;font-size:12px;line-height:1.35}.gl-unit-list small{display:block;margin-top:3px;color:var(--yt-muted);font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gl-unit-list b{font-size:13px;color:var(--yt-accent)}.gl-aside-progress{display:flex;justify-content:space-between;gap:10px;padding:13px 15px;border-top:1px solid var(--yt-line);color:var(--yt-muted);font-size:11px}.gl-aside-progress strong{color:var(--yt-accent)}
.gl-article{min-width:0;border:1px solid var(--yt-line);border-radius:15px;background:var(--yt-card);padding:20px clamp(18px,3vw,38px) 35px}.gl-article>.gc-tabs{max-width:440px;margin:0 0 27px}.gl-article-heading{margin-bottom:24px}.gl-article-heading>span{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:20px;background:var(--yt-wash);color:var(--yt-accent);font-size:10px;font-weight:800;letter-spacing:.7px;text-transform:uppercase}.gl-article-heading h2{font-size:clamp(27px,3vw,39px);letter-spacing:-.8px;line-height:1.12;margin:10px 0 8px;color:var(--yt-text)}.gl-article-heading p{max-width:780px;margin:0;color:var(--yt-muted);font-size:15px;line-height:1.7;white-space:pre-line}
.gl-visual-section{margin:20px 0 30px}.gl-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gl-gallery-1{grid-template-columns:minmax(0,680px)}.gl-gallery figure{overflow:hidden;margin:0;border:1px solid var(--yt-line);border-radius:13px;background:var(--yt-card-alt)}.gl-gallery figure[hidden]{display:none}.gl-image-frame{aspect-ratio:16/10;overflow:hidden;background:linear-gradient(145deg,var(--yt-wash),var(--yt-bg));display:grid;place-items:center}.gl-image-frame img{display:block;width:100%;height:100%;object-fit:cover}.gl-gallery figcaption{padding:11px 13px;color:var(--yt-text);font-size:12px;line-height:1.55;border-top:1px solid var(--yt-line)}
.gl-section{display:grid;grid-template-columns:38px minmax(0,1fr);gap:15px;padding:27px 0;border-top:1px solid var(--yt-line);scroll-margin-top:20px}.gl-section-number{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(135deg,#7552ef,#5840bd);color:#fff;font-size:13px;font-weight:800;box-shadow:0 7px 18px #644cd14d}.gl-section h3{font-size:21px;margin:4px 0 12px;color:var(--yt-text)}.gl-section p{font-size:14px;line-height:1.75;white-space:pre-line;color:var(--yt-text);margin:0}.gl-callout{position:relative;padding:18px 20px 18px 23px;border:1px solid var(--yt-line);border-left:4px solid var(--gl-cyan);border-radius:10px;background:var(--yt-bg)}.gl-callout::after{content:'Aprende';position:absolute;right:12px;top:-11px;padding:4px 8px;border-radius:12px;background:#43bbb0;color:#fff;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.gl-rule-table{overflow:hidden;margin:20px 0 0;border:1px solid var(--yt-line);border-radius:12px;background:var(--yt-bg)}.gl-rule-table>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;background:linear-gradient(100deg,#6e4ce8,#4a70c4);color:#fff}.gl-rule-table>div strong{font-size:12px;text-transform:uppercase;letter-spacing:.7px}.gl-rule-table>div span{font-size:11px;color:#ebe8ff}.gl-rule-table code{display:block;padding:18px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--yt-text);font:600 14px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace}.gl-rule-table>p{display:grid;grid-template-columns:95px minmax(0,1fr);gap:12px;padding:14px 18px!important;border-top:1px solid var(--yt-line);color:var(--yt-text)!important;background:var(--yt-card-alt)}.gl-rule-table>p b{color:var(--yt-accent);font-size:12px;text-transform:uppercase;letter-spacing:.4px}
.gl-example-list{display:grid;gap:9px}.gl-example-list article{display:grid;grid-template-columns:31px minmax(0,1fr);gap:11px;align-items:start;padding:13px 15px;border:1px solid var(--yt-line);border-radius:10px;background:var(--yt-bg)}.gl-example-list article>span{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:var(--yt-wash);color:var(--yt-accent);font-size:11px;font-weight:800}.gl-example-copy{min-width:0}.gl-example-list article p{padding-top:2px}.gl-example-copy figure{overflow:hidden;margin:13px 0 2px;border:1px solid var(--yt-line);border-radius:11px;background:var(--yt-card-alt);max-width:680px}.gl-example-copy figure[hidden]{display:none}.gl-example-copy figure>div{aspect-ratio:16/9;overflow:hidden;background:var(--yt-wash)}.gl-example-copy figure img{display:block;width:100%;height:100%;object-fit:cover}.gl-example-copy figcaption{padding:10px 12px;border-top:1px solid var(--yt-line);color:var(--yt-muted);font-size:12px;line-height:1.55}.gl-remember{position:relative;margin:25px 0;padding:21px 22px 21px 62px;border:1px solid #9c82ef;border-radius:13px;background:linear-gradient(115deg,var(--yt-wash),var(--yt-card));color:var(--yt-text)}.gl-remember::before{content:'💡';position:absolute;left:19px;top:20px;font-size:27px}.gl-remember strong{display:block;margin-bottom:6px;color:var(--yt-accent);font-size:16px}.gl-remember p{margin:0;font-size:13px;line-height:1.7;white-space:pre-line}.gl-end-actions{padding-top:22px;border-top:1px solid var(--yt-line)}
.gl-conjugation-section{padding:28px 0;border-top:1px solid var(--yt-line)}.gl-conjugation-section>header{margin-bottom:14px}.gl-conjugation-section>header>span{display:block;color:var(--yt-accent);font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}.gl-conjugation-section>header h3{margin:5px 0 0;color:var(--yt-text);font-size:22px}.gl-conjugation-frame{overflow:hidden;margin:16px 0;border:1px solid var(--yt-line);border-radius:13px;background:var(--yt-bg)}.gl-conjugation-heading{padding:16px 18px;background:linear-gradient(110deg,var(--yt-wash),var(--yt-card))}.gl-conjugation-heading h4{margin:0;color:var(--yt-text);font-size:17px}.gl-conjugation-heading p{margin:7px 0 0;color:var(--yt-muted);font-size:13px;line-height:1.65;white-space:pre-line}.gl-conjugation-table-wrap{overflow-x:auto;scrollbar-width:thin}.gl-conjugation-frame table{width:100%;min-width:560px;border-collapse:separate;border-spacing:1px;background:var(--yt-line);font-size:13px}.gl-conjugation-frame th{padding:12px 14px;background:linear-gradient(105deg,#7753ee,#5b70d7);color:#fff;text-align:left;font-size:11px;letter-spacing:.35px;text-transform:uppercase}.gl-conjugation-frame td{padding:11px 14px;background:var(--yt-card);color:var(--yt-text);line-height:1.5;white-space:pre-line}.gl-conjugation-frame tbody tr:nth-child(even) td{background:var(--yt-card-alt)}.gl-conjugation-frame td:first-child{font-weight:750;color:var(--yt-accent)}.gl-conjugation-note{margin:14px;padding:14px 16px;border:1px solid #e5b96588;border-left:4px solid #e5a73e;border-radius:9px;background:#e6aa3b17}.gl-conjugation-note strong{display:block;margin-bottom:4px;color:#d49220;font-size:12px}.gl-conjugation-note p{margin:0;color:var(--yt-text);font-size:13px;line-height:1.65;white-space:pre-line}

/* V110 · paginación automática de cualquier cuadro didáctico con más de diez filas. */
.gl-frame-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-top:1px solid var(--yt-line);background:var(--yt-card-alt)}.gl-frame-pagination>span{color:var(--yt-muted);font-size:11px;font-weight:650}.gl-frame-pagination>div{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.gl-frame-pagination button{display:grid;place-items:center;min-width:34px;height:34px;padding:0 10px;border:1px solid var(--yt-line);border-radius:8px;background:var(--yt-card);color:var(--yt-text);font:750 12px/1 inherit;cursor:pointer}.gl-frame-pagination button:hover{border-color:var(--yt-accent);color:var(--yt-accent)}.gl-frame-pagination button[aria-current="page"]{border-color:var(--yt-accent);background:var(--yt-accent);color:#fff;box-shadow:0 4px 12px #6444d433}.gl-frame-pagination button:focus-visible{outline:3px solid #947cff;outline-offset:2px}
.gl-empty-practice,.gl-practice-finish{max-width:650px;margin:45px auto;padding:35px;text-align:center;border:1px solid var(--yt-line);border-radius:16px;background:var(--yt-bg)}.gl-practice-finish>span{display:grid;place-items:center;width:60px;height:60px;margin:0 auto 16px;border-radius:50%;background:#62c7a5;color:#fff;font-size:30px}.gl-empty-practice h2,.gl-practice-finish h2{margin:0 0 10px;color:var(--yt-text)}.gl-empty-practice p,.gl-practice-finish p{color:var(--yt-muted);line-height:1.65}.gl-article .gu-exercise{max-width:760px}.gl-article .gu-exercise fieldset{border:0;padding:0}.gl-article .gu-options label{color:var(--yt-text)}
.grammar-lesson :is(button,input):focus-visible{outline:3px solid var(--yt-accent);outline-offset:3px}
@media(max-width:1000px){.gl-layout{grid-template-columns:1fr}.gl-aside{position:static}.gl-unit-list{display:flex;max-height:none;overflow:auto}.gl-unit-list button{min-width:210px}.gl-aside-progress{display:none}.gl-header{padding:24px}.gl-article{padding:18px 22px 30px}}
@media(max-width:650px){.gl-header{grid-template-columns:1fr;padding:20px 17px}.gl-header>.gl-status{text-align:left}.gl-status span,.gl-status strong{display:inline;margin:0 8px 0 0}.gl-layout{gap:12px}.gl-gallery,.gl-gallery-1{grid-template-columns:1fr}.gl-article{padding:14px 14px 26px}.gl-article>.gc-tabs{position:sticky;top:5px;z-index:3;background:var(--yt-bg);box-shadow:0 0 0 5px var(--yt-bg)}.gl-section{grid-template-columns:31px minmax(0,1fr);gap:10px}.gl-section-number{width:30px;height:30px}.gl-rule-table>p{grid-template-columns:1fr}.gl-end-actions{flex-direction:column}.gl-image-frame{aspect-ratio:4/3}.gl-conjugation-frame table{min-width:520px}.gl-conjugation-heading{padding:14px}.gl-conjugation-frame th,.gl-conjugation-frame td{padding:10px 11px}.gl-conjugation-frame th:first-child,.gl-conjugation-frame td:first-child{position:sticky;left:0;z-index:1}.gl-conjugation-frame th:first-child{z-index:2}.gl-conjugation-frame td:first-child{background:var(--yt-card)}.gl-frame-pagination{align-items:flex-start;flex-direction:column}.gl-frame-pagination>div{width:100%}.gl-frame-pagination button{flex:1}}
@media(prefers-reduced-motion:reduce){.grammar-lesson *{scroll-behavior:auto!important;transition:none!important}}

/* V108 · searchable, internally scrollable Phrasal verbs and Idioms banks. */
.gl-lexicon{margin:28px 0;padding-top:28px;border-top:1px solid var(--yt-line)}
.gl-lexicon-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.gl-lexicon-heading>div{min-width:0}.gl-lexicon-heading span{display:block;color:var(--yt-accent);font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}
.gl-lexicon-heading h3{margin:5px 0 6px;color:var(--yt-text);font-size:22px}.gl-lexicon-heading p{max-width:700px;margin:0;color:var(--yt-muted);font-size:13px;line-height:1.6}
.gl-lexicon-heading>strong{flex:0 0 auto;padding:7px 11px;border:1px solid #9075f188;border-radius:20px;background:var(--yt-wash);color:var(--yt-text);font-size:11px}
.gl-lexicon-search{display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border:1px solid var(--yt-line);border-radius:11px;background:var(--yt-bg);color:var(--yt-muted)}
.gl-lexicon-search svg{width:19px;height:19px;flex:0 0 auto}.gl-lexicon-search input{min-width:0;width:100%;margin:0!important;padding:10px 0!important;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;color:var(--yt-text)!important;font:inherit;font-size:14px}.gl-lexicon-search input::placeholder{color:var(--yt-muted)}
.gl-lexicon-result{min-height:18px;margin:9px 2px;color:var(--yt-muted);font-size:11px}
.gl-lexicon-scroll{max-height:620px;overflow-y:auto;overscroll-behavior:contain;padding:8px;border:1px solid var(--yt-line);border-radius:13px;background:var(--yt-bg);scrollbar-width:thin;scrollbar-color:#8060e8 transparent}
.gl-lexicon-scroll:focus-visible{outline:3px solid var(--yt-accent);outline-offset:3px}.gl-lexicon-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:15px 14px;border:1px solid var(--yt-line);border-radius:10px;background:var(--yt-card);color:var(--yt-text)}.gl-lexicon-row+.gl-lexicon-row{margin-top:8px}
.gl-lexicon-index{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#7652f4,#506dce);color:#fff;font-size:11px;font-weight:800}.gl-lexicon-copy{min-width:0}.gl-lexicon-copy h4{margin:1px 0 5px;color:var(--yt-text);font-size:16px;line-height:1.4}.gl-lexicon-copy p{white-space:pre-line}
.gl-lexicon-meaning{margin:0;color:var(--yt-text)!important;font-size:14px;font-weight:650;line-height:1.55}.gl-lexicon-english{display:flex;gap:8px;align-items:baseline;margin:5px 0 0;color:var(--yt-muted)!important;font-size:12px;line-height:1.5}.gl-lexicon-english span{flex:0 0 auto;padding:2px 6px;border-radius:5px;background:var(--yt-wash);color:var(--yt-accent);font-size:9px;font-weight:800;text-transform:uppercase}
.gl-lexicon-copy blockquote{display:grid;gap:4px;margin:11px 0 0;padding:10px 12px;border:1px solid var(--yt-line);border-left:3px solid #55c9c0;border-radius:8px;background:var(--yt-card-alt);font-size:12px;line-height:1.55}.gl-lexicon-copy blockquote strong{color:var(--yt-text);font-weight:650}.gl-lexicon-copy blockquote span{color:var(--yt-text);opacity:.88}.gl-lexicon-empty{margin:0;padding:28px;text-align:center;color:var(--yt-muted);font-size:13px}
@media(max-width:650px){.gl-lexicon-heading{display:block}.gl-lexicon-heading>strong{display:inline-flex;margin-top:10px}.gl-lexicon-search input{font-size:16px}.gl-lexicon-scroll{max-height:68dvh;padding:6px}.gl-lexicon-row{grid-template-columns:28px minmax(0,1fr);gap:9px;padding:12px 10px}.gl-lexicon-index{width:27px;height:27px}.gl-lexicon-copy h4{font-size:15px}.gl-lexicon-english{display:block}.gl-lexicon-english span{display:inline-block;margin:0 5px 3px 0}}

/* V116 · encabezados de Gramática aislados de los estilos globales heredados. */
.grammar-catalogue .gc-hero h1,
.grammar-catalogue .gc-hero p,
.grammar-lesson .gl-header h1,
.grammar-lesson .gl-header p,
.grammar-lesson .gl-article-heading h2,
.grammar-lesson .gl-article-heading p{
  padding:0;
}

.grammar-lesson .gl-header{
  min-height:0;
  text-align:left;
}

.grammar-lesson .gl-article-heading{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:0;
  margin:0 0 24px;
  padding:22px 24px;
  border-radius:14px;
  background:linear-gradient(110deg,#5544e8 0%,#694af1 58%,#4b49d8 100%);
  color:#fff;
  text-align:center;
}
.grammar-catalogue .gc-detail .gc-units + .gc-primary{
  margin-top:18px;
}
.grammar-lesson .gl-article-heading>span{
  background:#281f7766;
  color:#fff;
}
.grammar-lesson .gl-article-heading h2{
  width:100%;
  margin:10px 0 7px;
  color:#fff;
  text-align:center;
}
.grammar-lesson .gl-article-heading p{
  width:min(100%,780px);
  max-width:780px;
  margin:0 auto;
  color:#fff;
  opacity:1;
  line-height:1.6;
  text-align:center;
}

@media(min-width:1001px){
  .grammar-catalogue .gc-hero{
    display:grid;
    grid-template-columns:minmax(180px,1fr) minmax(280px,auto) minmax(180px,1fr);
    align-items:center;
    padding-block:20px;
  }
  .grammar-catalogue .gc-hero>div:first-child{
    grid-column:2;
    justify-self:center;
    min-width:0;
    text-align:center;
  }
  .grammar-catalogue .gc-hero .gc-totals{
    justify-content:center;
  }
  .grammar-catalogue .gc-hero .gc-language{
    grid-column:3;
    justify-self:end;
  }

  .grammar-lesson .gl-header{
    grid-template-columns:minmax(170px,1fr) minmax(280px,auto) minmax(170px,1fr);
    align-items:center;
    min-height:138px;
    padding:22px 30px;
  }
  .grammar-lesson .gl-back{
    grid-column:1;
    grid-row:1;
    align-self:center;
    justify-self:start;
  }
  .grammar-lesson .gl-header>div:not(.gl-status){
    grid-column:2;
    grid-row:1;
    align-self:center;
    justify-self:center;
    min-width:0;
    text-align:center;
  }
  .grammar-lesson .gl-header>.gl-status{
    grid-column:3;
    grid-row:1;
    align-self:center;
    justify-self:end;
    text-align:right;
  }
  .grammar-lesson .gl-header h1{
    margin:6px 0 5px;
    font-size:clamp(28px,2.45vw,38px);
  }
}

@media(max-width:650px){
  .grammar-catalogue .gc-hero>div:first-child{
    width:100%;
    text-align:center;
  }
  .grammar-catalogue .gc-hero .gc-totals{
    justify-content:center;
  }
  .grammar-catalogue .gc-detail{
    padding:18px 14px;
  }
  .grammar-catalogue .gc-units{
    gap:7px;
    max-height:245px;
  }
  .grammar-catalogue .gc-unit{
    min-height:59px;
    gap:10px;
    padding:10px 11px;
  }
  .grammar-catalogue .gc-unit .gc-icon{
    width:32px;
    height:36px;
    flex-basis:32px;
  }
  .grammar-catalogue .gc-unit strong{
    font-size:14px;
  }
  .grammar-catalogue .gc-unit small{
    margin-top:2px;
    font-size:11px;
  }

  .grammar-lesson .gl-header{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    gap:12px 10px;
    align-items:center;
    padding:16px;
  }
  .grammar-lesson .gl-back{
    grid-column:1;
    grid-row:1;
    align-self:center;
    justify-self:start;
    padding:8px 10px;
    font-size:13px;
  }
  .grammar-lesson .gl-header>div:not(.gl-status){
    grid-column:1/-1;
    grid-row:2;
    min-width:0;
    text-align:center;
  }
  .grammar-lesson .gl-header>.gl-status{
    grid-column:2;
    grid-row:1;
    display:flex;
    align-items:baseline;
    justify-self:end;
    gap:7px;
    min-width:0;
    text-align:right;
  }
  .grammar-lesson .gl-status span,
  .grammar-lesson .gl-status strong{
    display:block;
    margin:0;
  }
  .grammar-lesson .gl-status span{
    font-size:10px;
  }
  .grammar-lesson .gl-status strong{
    font-size:17px;
  }
  .grammar-lesson .gl-header h1{
    margin:6px 0 5px;
    padding:0;
    font-size:clamp(30px,8.5vw,34px);
    line-height:1.08;
  }
  .grammar-lesson .gl-header p{
    padding:0;
    color:#fff;
    font-size:16px;
    opacity:1;
  }
  .grammar-lesson .gl-aside-title{
    gap:10px;
    padding:13px 14px;
  }
  .grammar-lesson .gl-aside-title .gc-icon{
    width:34px;
    height:36px;
    flex-basis:34px;
  }
  .grammar-lesson .gl-aside-title strong{
    font-size:15px;
  }
  .grammar-lesson .gl-unit-list{
    gap:6px;
    padding:7px;
  }
  .grammar-lesson .gl-unit-list button{
    min-width:170px;
    min-height:62px;
    gap:7px;
    padding:8px 7px;
  }
  .grammar-lesson .gl-unit-list strong{
    font-size:14px;
    line-height:1.25;
  }
  .grammar-lesson .gl-unit-list small{
    margin-top:2px;
    font-size:11px;
  }
  .grammar-lesson .gl-article-heading{
    padding:18px 14px;
  }
  .grammar-lesson .gl-article-heading h2{
    font-size:30px;
  }
  .grammar-lesson .gl-article-heading p{
    font-size:15px;
  }
}
