/* V98: restore the country cards/list shown in the original student interface. */
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page{width:100%;max-width:none;margin:0;color:var(--yt-text)}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page [hidden]{display:none!important}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:118px;margin:0 0 24px!important;padding:24px 26px!important;border-radius:22px!important;background:linear-gradient(100deg,#5b55f5,#795bef)!important;color:#fff!important;box-shadow:none}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner h2{margin:0 0 7px!important;max-width:none!important;font-size:clamp(20px,1.8vw,28px)!important;font-weight:750;line-height:1.25;letter-spacing:-.4px;color:#fff!important}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner p{margin:0!important;padding:0!important;font-size:15px!important;line-height:1.5;color:#f0edff!important}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-art{position:static;transform:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex-shrink:0;margin:0}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-bubble{color:#5a46d7;background:#fff;font-size:12px;padding:6px 10px;white-space:nowrap}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-popular{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin-bottom:26px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-card,.lp-country){font:inherit;color:var(--yt-text);background:var(--yt-card);border:1px solid var(--yt-line);margin:0;width:100%;min-width:0;box-shadow:none;cursor:pointer;transition:border-color .15s,background .15s}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-pop-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;position:relative;min-height:165px;padding:20px 10px!important;border-radius:18px;text-align:center}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-card,.lp-country):hover:not(:disabled){background:var(--yt-card-alt);border-color:var(--yt-accent);transform:none}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-card,.lp-country).selected{border-color:var(--yt-accent);background:var(--yt-card-alt);box-shadow:inset 0 0 0 1px var(--yt-accent);transform:none}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-card,.lp-country):disabled{opacity:.65;cursor:not-allowed}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-big-flag{display:block;margin-bottom:10px;line-height:1}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-big-flag .flag-img{width:52px!important;height:36px!important;object-fit:cover;border-radius:5px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-name,.lp-country-name){display:block;color:var(--yt-text);font-size:16px;font-weight:750;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-pop-country,.lp-country-lang){display:block;color:var(--yt-muted);font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;margin-top:3px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-word-pill{display:inline-block;margin-top:11px;border-radius:20px;padding:5px 10px;background:var(--yt-wash,#6d50b92b);color:var(--yt-accent);font-size:11px;font-weight:700;line-height:1.2}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-all-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:0 0 14px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-section-title{color:var(--yt-text);font-size:16px;font-weight:750}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-all-tools{display:flex;align-items:center;gap:10px;min-width:0}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-search{min-width:220px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-search input{height:44px;min-height:44px;padding:9px 12px 9px 36px;border:1px solid var(--yt-line);border-radius:12px;background:var(--yt-card);color:var(--yt-text);font:inherit;font-size:13px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(.lp-sort,.lp-more-link){min-height:44px;width:auto;margin:0;box-shadow:none;background:transparent;border:0;font:inherit;font-size:13px;color:var(--yt-accent)}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-sort{color:var(--yt-muted);white-space:nowrap}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-country{display:flex;flex-direction:column;align-items:stretch;justify-content:center;text-align:left;border-radius:14px;min-height:75px;padding:12px 14px 9px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-country-flag{display:flex;align-items:center;justify-content:center;flex:0 0 38px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-country-flag .flag-img{width:34px!important;height:24px!important;object-fit:cover;border-radius:3px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-row-count{color:var(--yt-accent);font-size:11px;line-height:1.25;white-space:normal}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:20px;margin-top:24px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-suggest{display:flex;align-items:center;gap:14px;min-width:0;padding:15px 18px;background:var(--yt-card);border:1px solid var(--yt-line);border-radius:16px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-bulb{flex:0 0 42px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-suggest-text{min-width:0;font-size:14px;line-height:1.4}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-suggest button{flex-shrink:0;min-height:44px;font-size:13px}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-continue{min-height:64px;width:100%;padding:15px 24px;background:linear-gradient(110deg,#6344f4,#6542ea);border:1px solid #8a73ff;border-radius:15px;color:#fff;font:inherit;font-size:16px;font-weight:700}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-continue:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-empty{grid-column:1/-1;padding:22px;color:var(--yt-muted);border:1px dashed var(--yt-line);border-radius:14px;font-size:14px;text-align:center}
body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page :is(button,input):focus-visible{outline:3px solid var(--yt-accent);outline-offset:3px}
@media(max-width:1200px){body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-popular{grid-template-columns:repeat(3,minmax(0,1fr))}body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-art{display:none}body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-bottom{grid-template-columns:minmax(0,1fr) 220px}}
@media(max-width:760px){
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner{padding:22px 18px!important;min-height:0;display:block}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner h2{font-size:23px!important}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-banner p{font-size:14px!important}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-hero-art{display:none!important}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-popular{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-pop-card{min-height:152px;padding:16px 10px!important}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-all-head{flex-direction:column;align-items:stretch;gap:10px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-all-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;gap:6px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-search{min-width:0}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-search input{font-size:16px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-sort{font-size:11px;padding:0 3px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-grid{grid-template-columns:1fr!important}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-bottom{grid-template-columns:1fr!important;gap:14px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-suggest{flex-wrap:wrap;padding:14px}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-suggest button{width:100%}
  body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page .lp-continue{min-height:54px}
}
@media(prefers-reduced-motion:reduce){body.yt-student-ui :is(#dashboard-language-picker,#dashboard-grammar-country-picker,#dashboard-activity-country-picker).yt-country-list-page *{transition:none!important;scroll-behavior:auto!important}}
