/* German Vocabulary Audiobook v3.0.12 — beta-only study refinements. */
:root{--gva-learning-tab-height:54px}
#appHeader{position:relative;top:auto}
.gva-learning-nav{position:sticky;top:0;z-index:110;width:100%;height:var(--gva-learning-tab-height);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;padding:6px 8px;background:var(--panel);border-bottom:1px solid var(--line);box-shadow:0 2px 10px rgba(8,20,40,.05)}
.gva-learning-tab{min-width:0;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;gap:9px;font:inherit;font-weight:750;font-size:calc(15px * var(--text-scale));padding:5px 9px;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.gva-learning-tab:hover{background:var(--panel2);border-color:var(--line)}
.gva-learning-tab.active{background:var(--blue2);border-color:var(--blue);color:var(--blue);box-shadow:inset 0 -2px 0 var(--blue)}
.gva-tab-icon{font-size:20px;line-height:1;flex:none}
#persistentPlayerHost,#persistentPlayerHost.search-active-host{top:var(--gva-learning-tab-height)!important}
#continueNextUnread{white-space:normal}
.gva-study-main{max-width:1480px;padding-bottom:64px}
.gva-study-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 15px}
.gva-study-heading h1{margin:0;font-size:calc(25px * var(--text-scale));letter-spacing:-.02em}
.gva-study-heading p{margin:3px 0 0;color:var(--muted);font-size:calc(14px * var(--text-scale))}
.gva-study-progress{white-space:nowrap;font-size:calc(13px * var(--text-scale));font-weight:800;color:var(--ink);background:var(--panel2);border:1px solid var(--line);padding:6px 9px;border-radius:9px}
.gva-study-toolbar{display:grid;grid-template-columns:minmax(110px,175px) minmax(160px,210px) minmax(190px,1fr);gap:10px;align-items:end;margin-bottom:10px}
.gva-study-field{display:flex;flex-direction:column;gap:3px;min-width:0}
.gva-study-field label{font-weight:750;font-size:calc(12px * var(--text-scale));color:var(--muted)}
.gva-study-field select,.gva-study-field input{font:inherit;font-size:calc(15px * var(--text-scale));height:42px;width:100%;min-width:0;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:10px;padding:5px 10px;outline-offset:2px}
.gva-study-info{font-size:calc(13px * var(--text-scale));color:var(--muted);margin:7px 0 11px;display:flex;align-items:center;gap:10px}
.gva-study-table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.gva-study-table{width:100%;border-collapse:collapse;table-layout:fixed;line-height:1.42;font-size:calc(15px * var(--text-scale))}
.gva-study-table thead{background:var(--panel2)}
.gva-study-table th{text-align:left;font-size:calc(13px * var(--text-scale));font-weight:850;color:var(--muted);padding:10px 10px;border-bottom:1px solid var(--line)}
.gva-study-table th:nth-child(1){width:136px}.gva-study-table th:nth-child(2){width:19%}.gva-study-table th:nth-child(3){width:15%}.gva-study-table th:nth-child(4){width:18%}
.gva-study-table td{vertical-align:top;padding:11px 10px;border-top:1px solid var(--line);overflow-wrap:anywhere}
.gva-study-table td:not(:last-child),.gva-study-table th:not(:last-child){border-right:1px solid color-mix(in srgb,var(--line) 55%,transparent)}
.gva-study-table tr:first-child td{border-top:0}
.gva-study-table .gva-study-row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;color:var(--muted);font-size:calc(12px * var(--text-scale));font-weight:750}
.gva-study-table .gva-study-actions{margin-left:auto}
/* Inline playback follows the German text instead of floating at column edges. */
.gva-study-inline{display:inline;min-width:0}
.gva-study-inline>span{overflow-wrap:anywhere}
.gva-study-german{font-size:calc(20px * var(--text-scale));font-weight:850;color:var(--ink)}
.gva-study-table td:nth-child(3){font-size:calc(16px * var(--text-scale))}
.gva-study-grammar{font-size:calc(14px * var(--text-scale));color:var(--muted)}
.gva-study-play{display:inline-flex;vertical-align:baseline;align-items:center;justify-content:center;flex:none;min-width:29px;height:29px;margin-left:7px;padding:0 6px;border-radius:8px;color:var(--blue);background:var(--blue2);border:1px solid var(--line);font-size:12px;line-height:1;font-weight:900;cursor:pointer}
.gva-study-play:hover,.gva-study-play.is-playing{background:var(--blue);color:white}
.gva-study-actions{display:flex;align-items:center;gap:2px;flex:none}
.gva-study-action{width:30px;height:30px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font-size:20px;font-weight:850;cursor:pointer;display:grid;place-items:center;line-height:1}
.gva-study-action:hover{background:var(--panel2);border-color:var(--line)}
.gva-study-bookmark.is-on{color:#bb8f05}.gva-study-read.is-on{color:#118461}
.gva-study-example+.gva-study-example{margin-top:9px;padding-top:9px;border-top:1px dashed var(--line)}
.gva-study-example-de{font-size:calc(16px * var(--text-scale));font-weight:650;color:var(--ink)}
.gva-study-example-en{margin-top:3px;font-size:calc(14px * var(--text-scale));color:var(--muted)}
.gva-study-empty{color:var(--muted)}
.gva-study-mobile-cards{display:none}
.gva-study-more{display:block;margin:18px auto 0;padding:11px 22px;font-size:calc(14px * var(--text-scale));background:var(--blue2);color:var(--blue);font-weight:750;border:1px solid var(--line);border-radius:10px}
.gva-study-no-results{background:var(--panel);border:1px solid var(--line);padding:22px;border-radius:12px;color:var(--muted)}
.gva-study-audio-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);padding:7px 9px;margin-bottom:12px;font-size:calc(13px * var(--text-scale));color:var(--ink)}
.gva-study-audio-banner button{font:inherit;font-size:calc(13px * var(--text-scale));background:var(--blue);color:#fff;border:0;border-radius:7px;padding:7px 10px;cursor:pointer}
/* Keep playback descriptions accessible but not visible beside 'Showing N words'. */
.gva-study-preview-status:empty{display:none}
.gva-learning-future{max-width:750px;text-align:center;padding-top:60px}
.gva-learning-future h1{margin:0 0 10px}
@media(max-width:1100px){
 .gva-study-table{font-size:calc(14px * var(--text-scale))}
 .gva-study-table th:nth-child(1){width:124px}
 .gva-study-table th:nth-child(2){width:18%}
 .gva-study-table th:nth-child(3){width:15%}
 .gva-study-table th:nth-child(4){width:19%}
 .gva-study-table td{padding:10px 8px}
}
@media(max-width:700px){
 :root{--gva-learning-tab-height:56px}
 /* Only the selected mode displays its full title; other tabs are icons. */
 .gva-learning-nav{display:flex;gap:5px;padding:5px 7px}
 .gva-learning-tab{flex:0.8 1 0;gap:0;min-width:0;padding:6px 4px;border-radius:12px;font-size:calc(14px * var(--text-scale))}
 .gva-learning-tab:not(.active) .gva-tab-text{display:none}
 .gva-learning-tab.active{flex:2.8 1 0;gap:7px}
 .gva-tab-icon{font-size:22px}
 .gva-study-main{padding-top:16px}
 .gva-study-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:9px}
 .gva-study-field-search{grid-column:1/-1}
 .gva-study-heading{align-items:start}
 .gva-study-heading h1{font-size:calc(22px * var(--text-scale))}
 .gva-study-heading p{font-size:calc(12px * var(--text-scale))}
 .gva-study-progress{font-size:calc(11px * var(--text-scale));max-width:145px;white-space:normal;text-align:center}
 .gva-study-table-wrap{display:none}
 .gva-study-mobile-cards{display:grid;gap:9px}
 .gva-study-card{padding:12px 13px;border:1px solid var(--line);background:var(--panel);border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.025);font-size:calc(15px * var(--text-scale));line-height:1.42;min-width:0}
 .gva-study-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin:-3px 0 6px}
 .gva-study-small-id{font-size:calc(12px * var(--text-scale));font-weight:800;color:var(--muted)}
 .gva-study-card-german{font-size:calc(20px * var(--text-scale));font-weight:850;color:var(--ink);line-height:1.3}
 .gva-study-card-meaning{font-size:calc(16px * var(--text-scale));margin:2px 0 5px;color:var(--ink)}
 .gva-study-card-grammar{font-size:calc(14px * var(--text-scale));color:var(--muted);border-top:1px solid color-mix(in srgb,var(--line) 56%,transparent);padding-top:6px;margin-top:6px}
 .gva-study-card-examples{border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent);padding-top:7px;margin-top:7px}
 .gva-study-example-de{font-size:calc(16px * var(--text-scale))}
 .gva-study-example-en{font-size:calc(14px * var(--text-scale));margin-top:3px}
 .gva-study-action{width:34px;height:34px;font-size:22px}
 .gva-study-play{height:30px;min-width:30px;margin-left:7px}
 .gva-study-audio-banner{font-size:calc(12px * var(--text-scale))}
}
@media(max-width:355px){
 .gva-learning-tab.active{flex:3.15 1 0;font-size:calc(12.5px * var(--text-scale))}
 .gva-learning-tab:not(.active){flex:.65 1 0}
 .gva-tab-icon{font-size:20px}
}

/* v3.0.12 — Study-specific sidebar: the audiobook sidebar remains unchanged. */
.gva-study-sidebar-panel{display:none;flex-direction:column;gap:10px;flex:0 0 auto;padding:12px 7px 14px;color:var(--ink)}
.sidebar.gva-study-sidebar-mode .side-nav{display:none}
.sidebar.gva-study-sidebar-mode .gva-study-sidebar-panel{display:flex}
.gva-study-sidebar-head{display:flex;align-items:center;gap:9px;font-size:calc(16px * var(--text-scale));font-weight:850}
.gva-study-sidebar-course{font-size:calc(14px * var(--text-scale));font-weight:700;margin:6px 0 3px;color:var(--muted)}
.gva-study-sidebar-count{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:calc(14px * var(--text-scale))}
.gva-study-sidebar-count strong{font-size:calc(18px * var(--text-scale));font-weight:850}
.gva-study-sidebar-count span{color:var(--muted);font-weight:700}
.gva-study-sidebar-meter{height:7px;background:var(--line);border-radius:999px;overflow:hidden}
.gva-study-sidebar-meter>div{height:100%;width:0;background:var(--blue);border-radius:inherit;transition:width .2s ease}
.gva-study-sidebar-caption{font-size:calc(12px * var(--text-scale));margin:0 0 7px;color:var(--muted)}
.gva-study-next-unread{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;width:100%;padding:10px 12px;border:1px solid var(--blue);border-radius:11px;background:var(--blue);color:#fff;font:inherit;font-size:calc(14px * var(--text-scale));font-weight:800;cursor:pointer;line-height:1.25}
.gva-study-next-unread:hover:not(:disabled){filter:brightness(.94)}
.gva-study-next-unread:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.gva-study-next-unread:disabled{opacity:.55;cursor:default}
.gva-study-next-unread-hint{min-height:1.3em;font-size:calc(12px * var(--text-scale));color:var(--muted);overflow-wrap:anywhere;margin:0}
.gva-study-current-target{background:color-mix(in srgb,var(--blue2) 64%,var(--panel))!important;outline:2px solid var(--blue);outline-offset:-2px}
.gva-study-current-target:focus{outline:2px solid var(--blue);outline-offset:-2px}
.gva-study-mobile-next-row{display:none}
@media(max-width:900px){
  /* Same shortcut remains usable on touch devices without opening the drawer. */
  .gva-study-mobile-next-row{display:flex;flex-direction:column;gap:6px;margin:2px 0 10px}
  .gva-study-mobile-next-row .gva-study-next-unread{width:auto;align-self:flex-start;min-width:180px}
  .gva-study-mobile-next-result{font-size:calc(12px * var(--text-scale));color:var(--muted);overflow-wrap:anywhere}
}

/* v3.0.12 — compact mode-specific Study Dashboard. Audiobook sidebar unchanged. */
.gva-study-sidebar-panel{gap:9px;padding:0 4px 14px}
.gva-study-home-link{width:100%;cursor:pointer;min-height:43px;font:inherit;font-weight:650;font-size:calc(15px * var(--text-scale))}
.gva-study-home-link span:first-child{font-size:20px;line-height:1;color:var(--blue)}
.gva-study-side-divider{border-top:1px solid color-mix(in srgb,var(--line) 68%,transparent);height:0;margin:5px 0}
.gva-study-sidebar-course{color:var(--ink);font-weight:800;font-size:calc(15px * var(--text-scale));margin:2px 4px 0}
.gva-study-sidebar-count{margin:0 4px}
.gva-study-sidebar-meter{margin:0 4px}
.gva-study-sidebar-caption{margin:0 4px 5px}
.gva-study-side-label{margin:1px 4px 0;font-weight:850;font-size:calc(13px * var(--text-scale));color:var(--ink)}
.gva-study-filter-list{display:flex;flex-direction:column;gap:3px}
.gva-study-filter{display:flex;gap:10px;align-items:center;width:100%;min-height:41px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--ink);padding:8px 9px;font:inherit;font-size:calc(14px * var(--text-scale));text-align:left;cursor:pointer}
.gva-study-filter:hover{background:var(--panel2)}
.gva-study-filter.active{background:var(--blue2);border-color:color-mix(in srgb,var(--blue) 35%,transparent);font-weight:800;color:var(--blue)}
.gva-study-filter:focus-visible,.gva-study-mobile-filter:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.gva-study-filter-icon{font-size:20px;color:var(--muted);width:22px;line-height:1;text-align:center}
.gva-study-filter.active .gva-study-filter-icon{color:var(--blue)}
.gva-study-filter-count{font-size:calc(12px * var(--text-scale));font-variant-numeric:tabular-nums;margin-left:auto;color:var(--muted);font-weight:650}
.gva-study-sidebar-panel>.gva-study-next-unread{margin-top:3px}
/* The study count is in the sidebar on desktop, where the course total is visible. */
.gva-study-heading{margin:2px 0 11px}
.gva-study-heading h1{font-size:calc(23px * var(--text-scale))}
.gva-study-progress{display:none}
.gva-study-mobile-filters{display:none}
/* Mobile has no permanently visible left sidebar: show quick filters above the word list. */
@media(max-width:900px){
  .gva-study-progress{display:inline-flex;align-items:center}
  .gva-study-mobile-filters{display:flex;gap:7px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:2px 0 8px;margin-bottom:2px}
  .gva-study-mobile-filters::-webkit-scrollbar{display:none}
  .gva-study-mobile-filter{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--ink);min-height:38px;padding:7px 12px;font:inherit;font-size:calc(13px * var(--text-scale));font-weight:650;cursor:pointer}
  .gva-study-mobile-filter.active{background:var(--blue2);border-color:var(--blue);color:var(--blue);font-weight:800}
}
@media(max-width:700px){
  .gva-study-heading{gap:8px;align-items:center}
  .gva-study-heading h1{font-size:calc(21px * var(--text-scale))}
  .gva-study-progress{font-size:calc(11px * var(--text-scale));padding:5px 7px;max-width:145px;line-height:1.2}
}
/* Keep all four Study filters visible together on phones; avoid a clipped first pill. */
@media(max-width:700px){
  .gva-study-mobile-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible}
  .gva-study-mobile-filter{min-width:0;white-space:nowrap;padding:7px 3px;font-size:calc(11.4px * var(--text-scale));text-align:center}
}
@media(max-width:355px){
  .gva-study-mobile-filter{font-size:calc(10.3px * var(--text-scale));padding:6px 2px}
}


/* v3.0.14 — final visual consistency pass for Vocabulary Study */
#appHomeView .page-main{padding-top:10px}
#appHomeView .section-head.simple{margin:6px 0 10px}
.gva-study-main{max-width:1480px;padding-top:16px}
.gva-study-heading{display:none!important}
.gva-study-toolbar{margin-bottom:12px}
.gva-study-field label{font-size:calc(11.5px * var(--text-scale));letter-spacing:.02em;color:var(--muted);font-weight:800}
.gva-study-field select,.gva-study-field input{height:44px;border-radius:12px;border-color:var(--line);font-size:calc(15px * var(--text-scale));background:var(--panel)}
.gva-study-info{font-size:calc(13px * var(--text-scale));margin:4px 0 12px;color:var(--muted)}
.gva-study-table{font-size:calc(15px * var(--text-scale));line-height:1.45}
.gva-study-table thead{background:color-mix(in srgb,var(--panel2) 88%,var(--panel))}
.gva-study-table th{padding:12px 14px;font-size:calc(13px * var(--text-scale));font-weight:850;letter-spacing:-.01em;color:var(--muted)}
.gva-study-table td{padding:13px 14px}
.gva-study-table td:nth-child(3){font-size:calc(16px * var(--text-scale));color:var(--ink)}
.gva-study-row-meta{align-items:center;min-height:30px}
.gva-study-small-id,.gva-study-table .gva-study-row-meta{font-size:calc(12px * var(--text-scale));font-weight:800}
.gva-study-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.gva-study-inline>span{overflow-wrap:anywhere}
.gva-study-german{font-size:calc(17px * var(--text-scale));font-weight:850;line-height:1.3}
.gva-study-grammar{font-size:calc(15px * var(--text-scale));line-height:1.45;color:var(--muted)}
.gva-study-example+.gva-study-example{margin-top:10px;padding-top:10px;border-top:1px dashed color-mix(in srgb,var(--line) 78%,transparent)}
.gva-study-example-de{font-size:calc(16px * var(--text-scale));font-weight:700;line-height:1.42;color:var(--ink)}
.gva-study-example-en{margin-top:4px;font-size:calc(14.5px * var(--text-scale));line-height:1.42;color:var(--muted)}
.gva-study-play{height:30px;min-width:30px;margin-left:0;border-radius:10px;background:var(--blue2);border:1px solid color-mix(in srgb,var(--blue) 10%,var(--line));box-shadow:none}
.gva-study-play:hover,.gva-study-play.is-playing{background:var(--blue);color:#fff;border-color:var(--blue)}
.gva-study-action{width:30px;height:30px;border-radius:9px}
.gva-study-current-target{background:color-mix(in srgb,var(--blue2) 56%,var(--panel))!important;outline:2px solid color-mix(in srgb,var(--blue) 72%,transparent);outline-offset:-2px}
.gva-study-mobile-cards{gap:10px}
.gva-study-card{padding:13px 14px;border-radius:13px;box-shadow:none}
.gva-study-card-german{font-size:calc(18px * var(--text-scale));line-height:1.32}
.gva-study-card-meaning{font-size:calc(16px * var(--text-scale));margin:3px 0 6px}
.gva-study-card-grammar{font-size:calc(15px * var(--text-scale));padding-top:7px;margin-top:7px}
.gva-study-card-examples{padding-top:8px;margin-top:8px}
.sidebar.gva-study-sidebar-mode{padding-top:14px}
.sidebar.gva-study-sidebar-mode .gva-study-sidebar-panel{display:flex}
.gva-study-sidebar-panel{display:none;flex-direction:column;gap:0;padding:0 4px 14px;color:var(--ink)}
.gva-study-home-link{min-height:42px;font-weight:800;font-size:calc(15px * var(--text-scale));padding:10px 11px;border-radius:11px}
.gva-study-home-link:hover{background:var(--panel2)}
.gva-study-home-link span:first-child{font-size:18px;line-height:1;color:var(--blue)}
.gva-study-side-divider{border-top:1px solid color-mix(in srgb,var(--line) 75%,transparent);height:0;margin:16px 6px}
.gva-study-sidebar-course{margin:0 10px 4px;font-size:calc(12px * var(--text-scale));font-weight:900;letter-spacing:.01em;color:var(--ink)}
.gva-study-sidebar-count{margin:0 10px 4px;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.gva-study-sidebar-count strong{font-size:calc(17px * var(--text-scale));font-weight:850}
.gva-study-sidebar-count span{font-size:calc(12px * var(--text-scale));font-weight:800;color:var(--muted)}
.gva-study-sidebar-meter{margin:0 10px;height:8px;background:var(--ring-bg)}
.gva-study-sidebar-caption{margin:10px 10px 0;font-size:calc(11px * var(--text-scale));color:var(--muted);font-weight:500}
.gva-study-side-label{margin:0 10px 7px;font-size:9px;letter-spacing:.12em;color:var(--muted);font-weight:900;text-transform:uppercase}
.gva-study-filter-list{display:grid;gap:5px}
.gva-study-filter{display:flex;align-items:center;gap:10px;min-height:42px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);padding:9px 11px;font:inherit;font-size:calc(15px * var(--text-scale));font-weight:650;text-align:left;cursor:pointer}
.gva-study-filter:hover{background:var(--panel2)}
.gva-study-filter.active{background:var(--blue2);border-color:color-mix(in srgb,var(--blue) 32%,var(--line));color:var(--blue);font-weight:850}
.gva-study-filter-icon{font-size:18px;color:var(--muted);width:18px;line-height:1;text-align:center}
.gva-study-filter.active .gva-study-filter-icon{color:var(--blue)}
.gva-study-filter-count{font-size:calc(11px * var(--text-scale));font-variant-numeric:tabular-nums;margin-left:auto;color:var(--muted);font-weight:800}
.gva-study-sidebar-panel>.gva-study-next-unread{margin:16px 10px 0;min-height:42px;border-radius:11px;font-size:calc(15px * var(--text-scale))}
.gva-study-next-unread-hint{margin:8px 10px 0;min-height:1.25em;font-size:calc(11.5px * var(--text-scale));line-height:1.35;color:var(--muted)}
.gva-study-mobile-next-row{margin:2px 0 10px}
.gva-study-mobile-filter{border-radius:999px;font-size:calc(12px * var(--text-scale));font-weight:700}
.gva-study-mobile-filter.active{font-weight:850}
.gva-article{font-weight:inherit}
.gva-article-der{color:#c93f55}
.gva-article-die{color:#158f68}
.gva-article-das{color:#b78400}
:root[data-theme="dark"] .gva-article-der{color:#ff8a9c}
:root[data-theme="dark"] .gva-article-die{color:#67dcb0}
:root[data-theme="dark"] .gva-article-das{color:#ffd166}
@media(max-width:900px){
  #appHomeView .page-main{padding-top:6px}
  #appHomeView .section-head.simple{margin-top:4px}
}
@media(max-width:700px){
  .gva-study-field label{font-size:calc(11px * var(--text-scale))}
  .gva-study-info{margin-top:2px}
  .gva-study-card-german{font-size:calc(17px * var(--text-scale))}
  .gva-study-card-meaning,.gva-study-example-de{font-size:calc(15.5px * var(--text-scale))}
  .gva-study-example-en,.gva-study-card-grammar{font-size:calc(14px * var(--text-scale))}
}


/* v3.0.14 — align Study UI with established Audiobook design system */
#appHomeView .page-main{padding-top:0!important;display:block}
#appHomeView .section-head.simple{margin:8px 0 10px!important}
#appHomeView .section-head.simple h2{font-size:calc(22px * var(--text-scale));letter-spacing:-.02em;color:var(--ink)}
.gva-study-main{padding-top:14px}
.gva-study-progress.hidden{display:none!important}
.gva-study-summary-card,.gva-study-filter-card{background:var(--panel2);border:1px solid var(--line);border-radius:13px;padding:12px 10px}
.gva-study-summary-card{padding-bottom:11px}
.gva-study-filter-card{padding-top:10px;padding-bottom:10px}
.gva-study-side-divider{margin:12px 6px}
.gva-study-sidebar-panel{padding:0 6px 14px;gap:0}
.gva-study-home-link{padding:10px 11px;font-size:calc(15px * var(--text-scale));font-weight:800;border-radius:11px}
.gva-study-home-link span:first-child{font-size:18px}
.gva-study-sidebar-course{margin:0 0 6px;font-size:calc(15px * var(--text-scale));font-weight:820;color:var(--ink)}
.gva-study-sidebar-count{margin:0;display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.gva-study-sidebar-count strong{font-size:calc(17px * var(--text-scale));font-weight:850;color:var(--ink)}
.gva-study-sidebar-count span{font-size:calc(12px * var(--text-scale));font-weight:800;color:var(--muted)}
.gva-study-sidebar-meter{margin:0;height:8px;border-radius:999px;overflow:hidden;background:var(--ring-bg)}
#gvaStudySidebarProgressFill{display:block;height:100%;border-radius:999px;background:var(--blue)}
.gva-study-sidebar-caption{margin:10px 0 0;font-size:calc(11.5px * var(--text-scale));color:var(--muted);font-weight:550}
.gva-study-side-label{margin:0 0 8px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:900}
.gva-study-filter-list{display:grid;gap:5px}
.gva-study-filter{min-height:42px;padding:9px 10px;font-size:calc(14px * var(--text-scale));font-weight:700;border-radius:11px}
.gva-study-filter-icon{font-size:18px;width:18px}
.gva-study-filter-count{font-size:calc(11px * var(--text-scale));font-weight:800}
.gva-study-next-unread{width:calc(100% - 20px);margin:0 10px;min-height:42px;border:1px solid transparent;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-size:calc(15px * var(--text-scale));font-weight:850;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px}
.gva-study-next-unread:hover{filter:brightness(.97)}
.gva-study-next-unread:disabled{opacity:.55;cursor:not-allowed}
.gva-study-next-unread-hint{margin:8px 10px 0;min-height:1.25em;font-size:calc(11.5px * var(--text-scale));line-height:1.35;color:var(--muted)}
.gva-study-info{font-size:calc(13px * var(--text-scale));margin:2px 0 12px;color:var(--muted)}
.gva-study-table,.gva-study-table th,.gva-study-table td,.gva-study-card{font-family:inherit}
.gva-study-table{font-size:calc(15px * var(--text-scale));line-height:1.45}
.gva-study-table th{font-size:calc(13px * var(--text-scale));font-weight:850;color:var(--muted);padding:12px 14px}
.gva-study-table td{padding:13px 14px;line-height:1.45;color:var(--ink)}
.gva-study-table td:nth-child(3){font-size:calc(15px * var(--text-scale));color:var(--ink)}
.gva-study-german{font-size:calc(17px * var(--text-scale));font-weight:850;line-height:1.32;color:var(--ink)}
.gva-study-grammar{font-size:calc(15px * var(--text-scale));line-height:1.45;color:var(--muted)}
.gva-study-example-de{font-size:calc(15px * var(--text-scale));font-weight:750;line-height:1.42;color:var(--ink)}
.gva-study-example-en{font-size:calc(15px * var(--text-scale));font-weight:500;line-height:1.42;color:var(--muted)}
.gva-study-inline{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}
.gva-study-play{height:30px;min-width:30px;border-radius:10px;padding:0 7px;margin-left:0;font-size:12px;font-weight:900}
.gva-study-card-german{font-size:calc(17px * var(--text-scale));font-weight:850;line-height:1.32}
.gva-study-card-meaning,.gva-study-card-grammar,.gva-study-card-examples .gva-study-example-en,.gva-study-card-examples .gva-study-example-de{font-family:inherit}
.gva-study-card-meaning{font-size:calc(15px * var(--text-scale));font-weight:500;color:var(--ink)}
.gva-study-card-grammar{font-size:calc(15px * var(--text-scale));color:var(--muted)}
.gva-study-mobile-next-row{margin:3px 0 10px}
.gva-study-mobile-next-row .gva-study-next-unread{width:100%;margin:0}
@media(max-width:900px){.gva-study-summary-card,.gva-study-filter-card{background:transparent;border:0;padding:0}.gva-study-side-divider{margin:16px 6px}.gva-study-sidebar-panel{padding:0 4px 14px}}
@media(max-width:700px){.gva-study-table td,.gva-study-card{font-size:calc(14.5px * var(--text-scale))}.gva-study-card-german{font-size:calc(16.5px * var(--text-scale))}.gva-study-card-meaning,.gva-study-card-grammar,.gva-study-example-de,.gva-study-example-en{font-size:calc(14.5px * var(--text-scale))}}


/* v3.0.15 — tap-to-listen & scroll continuity (all course audio files unchanged) */
/* The header scrolls away; leave no blank 66px band above the fixed sidebar. */
.sidebar{top:var(--gva-visible-header,66px)!important}
.sidebar-backdrop{top:var(--gva-visible-header,66px)!important}
/* Give the example column the recovered width from the abbreviated first column. */
.gva-study-table th:nth-child(1){width:104px!important}
.gva-study-table th:nth-child(2){width:18%!important}
.gva-study-table th:nth-child(3){width:14%!important}
.gva-study-table th:nth-child(4){width:16%!important}
.gva-study-table .gva-study-row-meta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;white-space:nowrap}
.gva-study-table .gva-study-actions{margin-left:0;gap:0;display:flex;flex-wrap:nowrap}
.gva-study-table .gva-study-action{width:30px;height:30px}
/* Each timed German unit itself is the accessible playback button. */
.gva-study-speech{display:block;width:100%;min-width:0;background:transparent;border:1px solid transparent;border-radius:8px;padding:7px 9px;text-align:left;font:inherit;line-height:inherit;font-weight:inherit;color:inherit;white-space:normal;overflow-wrap:anywhere;cursor:pointer;transition:background .14s,border-color .14s}
.gva-study-speech:hover,.gva-study-speech:focus-visible,.gva-study-speech.is-playing{background:color-mix(in srgb,var(--blue) 12%,var(--panel));border-color:color-mix(in srgb,var(--blue) 27%,transparent)}
.gva-study-speech:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.gva-study-speech.is-playing{box-shadow:inset 3px 0 0 var(--blue)}
.gva-study-table td.gva-study-german,.gva-study-table td.gva-study-grammar{position:relative;padding:0}
.gva-study-table td.gva-study-german>.gva-study-speech,.gva-study-table td.gva-study-grammar>.gva-study-speech{position:absolute;inset:0;width:100%;height:100%;padding:13px 14px;border-radius:0;display:block}
/* The article is the only colored part of the main German word. */
.gva-study-table td.gva-study-grammar>.gva-study-speech{font-weight:500}
.gva-study-table td.gva-study-grammar>.gva-study-static,.gva-study-table td.gva-study-grammar>.gva-study-empty{display:block;padding:13px 14px}
.gva-study-example-de>.gva-study-speech{margin:0 0 1px;width:100%;padding:8px 9px;min-height:35px}
.gva-study-example-de>.gva-study-static{display:block;padding:8px 9px}
.gva-study-table .gva-study-example-de{margin:-6px -9px 0}
.gva-study-table .gva-study-example-en{margin-top:5px}
.gva-study-card .gva-study-speech{padding:7px 8px;min-height:35px}
.gva-study-card-german>.gva-study-speech{font-size:inherit;font-weight:inherit}
.gva-study-card-grammar>.gva-study-speech{font-size:inherit;color:inherit}
.gva-study-card-examples .gva-study-example-de{margin:-4px -8px 0}
/* Native hint on desktop hover; compact confirmation on mobile/tap. */
.gva-study-audio-toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:180;max-width:min(90vw,360px);padding:8px 13px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--ink);box-shadow:var(--shadow);font-size:calc(13px * var(--text-scale));font-weight:700;text-align:center;pointer-events:none}
/* Preserve existing screen-reader errors but do not show playback description by word count. */
.gva-study-preview-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:1100px){
  .gva-study-table th:nth-child(1){width:97px!important}
  .gva-study-table td.gva-study-german>.gva-study-speech,.gva-study-table td.gva-study-grammar>.gva-study-speech{padding:10px 8px}
}
@media(max-width:700px){
  .gva-study-card .gva-study-speech{padding:8px 9px}
  .gva-study-audio-toast{bottom:calc(22px + env(safe-area-inset-bottom,0px))}
}

/* Keep every clickable German field top-aligned even in tall rows. */
.gva-study-speech{display:flex;align-items:flex-start;justify-content:flex-start}
.gva-study-speech-text{display:block;max-width:100%;width:100%;text-align:left;overflow-wrap:anywhere}
.gva-study-table td.gva-study-german>.gva-study-speech,.gva-study-table td.gva-study-grammar>.gva-study-speech{display:flex;align-items:flex-start;justify-content:flex-start}
/* Ensure Home is tall enough for the title bar to scroll away on tab switches. */
#appHomeView{min-height:calc(100vh - var(--gva-learning-tab-height))}


/* v3.0.16 — compact mobile Study controls and consistent accessible text */
/* Give short coming-soon views sufficient scroll range to retain the header state. */
.content-shell{min-height:100vh}
/* Study grammar and translations are learning content, not de-emphasized metadata. */
.gva-study-grammar,.gva-study-grammar .gva-study-speech,
.gva-study-card-grammar,.gva-study-card-grammar .gva-study-speech,
.gva-study-example-en,.gva-study-card-examples .gva-study-example-en{
  color:var(--ink)!important;
}
/* The mobile quick-filter and next-unread controls were removed by request. */
.gva-study-mobile-filters,.gva-study-mobile-next-row{display:none!important}
@media(max-width:700px){
  .gva-study-main{padding-top:12px}
  .gva-study-toolbar{
    grid-template-columns:minmax(62px,.7fr) minmax(110px,1.28fr) minmax(92px,1.25fr);
    align-items:end;
    gap:6px;
    margin-bottom:8px;
  }
  .gva-study-field-search{grid-column:auto}
  .gva-study-field label{font-size:calc(11px * var(--text-scale))}
  .gva-study-field select,.gva-study-field input{
    min-width:0;width:100%;height:44px;
    font-size:calc(14px * var(--text-scale));
    border-radius:10px;
    padding:5px 6px;
  }
  .gva-study-field select{padding-right:0;font-size:calc(13px * var(--text-scale))}
  .gva-study-info{margin-top:6px}
}
@media(max-width:355px){
  .gva-study-toolbar{grid-template-columns:minmax(55px,.66fr) minmax(96px,1.25fr) minmax(75px,1.12fr);gap:5px}
  .gva-study-field select,.gva-study-field input{font-size:calc(12px * var(--text-scale));padding-left:5px}
}


/* v3.0.17 — long grammar rows, neutral home, visible mobile drawer */
/* Avoid absolute-positioned grammar/word buttons: they did not contribute to
   row height, causing long inflections to overflow into the next entry. */
.gva-study-table td.gva-study-german > .gva-study-speech,
.gva-study-table td.gva-study-grammar > .gva-study-speech{
  position:relative!important;
  inset:auto!important;
  height:auto!important;
  min-height:0!important;
  width:100%;
  display:block;
  padding:13px 14px;
  border-radius:0;
  white-space:normal;
}
.gva-study-table td.gva-study-german:has(>.gva-study-speech),
.gva-study-table td.gva-study-grammar:has(>.gva-study-speech){cursor:pointer}
.gva-study-table td.gva-study-german:has(>.gva-study-speech):hover,
.gva-study-table td.gva-study-grammar:has(>.gva-study-speech):hover{
  background:color-mix(in srgb,var(--blue) 11%,var(--panel));
}
/* Word and grammar buttons still align to the first line of each row. */
.gva-study-table td.gva-study-german > .gva-study-speech,
.gva-study-table td.gva-study-grammar > .gva-study-speech{align-self:flex-start}
/* Open phone drawers must begin below both the remaining visible header and
   the sticky four-mode bar, rather than underneath the bar. */
@media(max-width:900px){
  .sidebar.open{top:calc(var(--gva-visible-header,66px) + var(--gva-learning-tab-height,54px))!important}
  .sidebar-backdrop.show{top:calc(var(--gva-visible-header,66px) + var(--gva-learning-tab-height,54px))!important}
}

/* v3.0.18 — less visual clutter and matched meanings/grammar size */
.gva-study-table td:nth-child(3),.gva-study-table td.gva-study-grammar,
.gva-study-table td.gva-study-grammar .gva-study-speech{font-size:calc(15px * var(--text-scale))!important}
.gva-study-speech:hover{outline:0!important;box-shadow:none!important;border-color:transparent!important}
.gva-study-table td.gva-study-grammar>.gva-study-speech,
.gva-study-table td.gva-study-german>.gva-study-speech{border:0!important}
.gva-study-table td.gva-study-grammar>.gva-study-speech:focus-visible,
.gva-study-table td.gva-study-german>.gva-study-speech:focus-visible{outline:2px solid var(--blue)!important;outline-offset:-2px}
/* One identical Home symbol and baseline in audiobook/study/flashcards. */
.gva-unified-home{font-size:calc(15px * var(--text-scale))!important;font-weight:700!important;min-height:42px;align-items:center}
.gva-unified-home span:first-child{color:var(--blue);font:normal 20px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif!important;width:19px;display:inline-flex;align-items:center;justify-content:center}
.gva-study-table td:nth-child(3){font-weight:500}
.gva-study-table td.gva-study-grammar{font-weight:500}


/* v3.0.23 — Audiobook semantic text roles (light & dark).
   Match .de-word / .en-meaning / .grammar / .de-example / .en-example
   from the established player. Headword articles retain their own colors. */
:root {
  --gva-study-word-tone:#123d68;
  --gva-study-meaning-tone:#765006;
  --gva-study-grammar-tone:#5d21af;
  --gva-study-example-tone:#183f66;
  --gva-study-translation-tone:#75510a;
}
:root[data-theme="dark"] {
  --gva-study-word-tone:#72b7ff;
  --gva-study-meaning-tone:#efc66d;
  --gva-study-grammar-tone:#c8a7ff;
  --gva-study-example-tone:#9ac9ff;
  --gva-study-translation-tone:#e8c67d;
}

/* Only instructional content is color-coded; metadata and controls remain
   themed as before, and the article prefix color takes precedence. */
#studyView .gva-study-german,
#studyView .gva-study-german .gva-study-speech,
#studyView .gva-study-card-german,
#studyView .gva-study-card-german .gva-study-speech {color:var(--gva-study-word-tone)!important}
#studyView .gva-study-table td:nth-child(3),
#studyView .gva-study-card-meaning {color:var(--gva-study-meaning-tone)!important}
#studyView .gva-study-grammar,
#studyView .gva-study-grammar .gva-study-speech,
#studyView .gva-study-card-grammar,
#studyView .gva-study-card-grammar .gva-study-speech {color:var(--gva-study-grammar-tone)!important}
#studyView .gva-study-example-de,
#studyView .gva-study-example-de .gva-study-speech {color:var(--gva-study-example-tone)!important}
#studyView .gva-study-example-en,
#studyView .gva-study-card-examples .gva-study-example-en {color:var(--gva-study-translation-tone)!important}
/* All articles only in the German headword: do not recolor noun plurals. */
#studyView .gva-article-der {color:#c93f55!important}
#studyView .gva-article-die {color:#158f68!important}
#studyView .gva-article-das {color:#b78400!important}
:root[data-theme="dark"] #studyView .gva-article-der{color:#ff8a9c!important}
:root[data-theme="dark"] #studyView .gva-article-die{color:#67dcb0!important}
:root[data-theme="dark"] #studyView .gva-article-das{color:#ffd166!important}


/* v3.0.24 — mobile vocabulary typesetting matches Audiobook hierarchy.
   Keep German spellings (especially lowercase verbs) unchanged. */
@media(max-width:700px){
  #studyView .gva-study-mobile-cards{gap:11px}
  #studyView .gva-study-card{
    padding:13px 16px 16px;
    border-radius:17px;
    line-height:1.45;
  }
  #studyView .gva-study-card-top{margin:0 0 7px;min-height:31px}
  #studyView .gva-study-card-german{
    font-size:calc(20px * var(--text-scale));
    font-weight:850;line-height:1.3;
    margin:7px 0 1px;
    text-align:left;
  }
  #studyView .gva-study-card-german>.gva-study-speech{
    box-sizing:content-box;
    margin:0 0 0 -9px;
    width:100%;padding:6px 9px;
    min-height:0;
  }
  #studyView .gva-study-card-meaning{
    font-size:calc(16px * var(--text-scale));
    font-weight:500;line-height:1.42;
    margin:3px 0 10px;
    text-align:left;
  }
  #studyView .gva-study-card-grammar{
    font-size:calc(14px * var(--text-scale));
    line-height:1.45;font-weight:700;
    border-top:1px solid color-mix(in srgb,var(--line) 75%,transparent);
    margin:7px 0 0;padding:9px 0 0;
    text-align:left;
  }
  #studyView .gva-study-card-grammar>.gva-study-speech{
    box-sizing:content-box;
    margin:0 0 0 -9px;
    width:100%;padding:5px 9px;
    min-height:0;
  }
  #studyView .gva-study-card-examples{
    border-top:1px solid color-mix(in srgb,var(--line) 75%,transparent);
    margin:10px 0 0;padding:10px 0 0;
    text-align:left;
  }
  #studyView .gva-study-card-examples .gva-study-example-de{
    margin:0;line-height:1.45;
    font-size:calc(16px * var(--text-scale));
    font-weight:700;
  }
  #studyView .gva-study-card-examples .gva-study-example-de>.gva-study-speech{
    box-sizing:content-box;
    margin:0 0 0 -9px;
    width:100%;padding:6px 9px;
    min-height:0;
  }
  #studyView .gva-study-card-examples .gva-study-example-en{
    font-size:calc(14px * var(--text-scale));
    font-weight:500;line-height:1.45;
    margin:4px 0 0;
    text-align:left;
  }
  #studyView .gva-study-card-examples .gva-study-example+.gva-study-example{
    border-top:1px dashed var(--line);
    margin-top:10px;padding-top:10px;
  }
}

/* v3.0.31 bilingual display preference — compact in desktop and mobile */
.gva-translation-field-head{display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;min-height:21px}
.gva-translation-field-head>label{min-width:0;white-space:nowrap}
.gva-study-field .gva-translation-mode{width:86px;min-width:0;max-width:100%;height:24px;padding:1px 18px 1px 6px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);font-size:calc(11px * var(--text-scale));font-weight:750;cursor:pointer}
.gva-translation-mode:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.gva-bn-translation{font-family:inherit;font-size:1.1em;line-height:1.6;overflow-wrap:anywhere}
.gva-translation-fallback{display:inline-block;vertical-align:baseline;margin-inline-start:5px;padding:1px 3px;border:1px solid var(--line);border-radius:4px;color:var(--muted);font-size:10px;font-weight:700;line-height:1.15}
@media(max-width:700px){.gva-study-field .gva-translation-mode{width:76px;height:22px;padding:1px 15px 1px 3px;font-size:10px}.gva-study-field .gva-translation-field-head>label{font-size:calc(10.5px * var(--text-scale))}}
@media(max-width:350px){.gva-study-field .gva-translation-mode{width:73px;font-size:10px}.gva-translation-field-head>label{position:absolute;clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;overflow:hidden}}

/* v3.0.32 — four equally aligned learning selectors, on ONE row everywhere. */
#studyView .gva-study-toolbar,#flashcardsView .gva-study-toolbar{
 display:grid!important;
 grid-template-columns:minmax(100px,175px) minmax(130px,210px) minmax(90px,116px) minmax(140px,1fr)!important;
 gap:10px!important;align-items:end!important;
}
#studyView .gva-study-field-translation,#flashcardsView .gva-study-field-translation{grid-column:auto!important}
#studyView .gva-study-field-search,#flashcardsView .gva-study-field-search{grid-column:auto!important}
#studyView .gva-study-field-translation .gva-translation-mode,#flashcardsView .gva-study-field-translation .gva-translation-mode{
 display:block!important;box-sizing:border-box;width:100%!important;max-width:none!important;
 height:42px!important;padding:5px 8px!important;
 border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);
 font:inherit;font-size:calc(14px * var(--text-scale))!important;font-weight:650;cursor:pointer
}
/* Match the surrounding EN typography; don't magnify Bengali by 10%. */
#studyView .gva-bn-translation,#flashcardsView .gva-bn-translation{
 font-family:"Noto Sans Bengali UI","Noto Sans Bengali",system-ui,sans-serif;
 font-size:1em!important;line-height:1.45!important;font-weight:inherit;
 overflow-wrap:anywhere;word-break:normal;
}
@media(max-width:700px){
 #studyView .gva-study-toolbar,#flashcardsView .gva-study-toolbar{
  grid-template-columns:minmax(0,.63fr) minmax(0,1.16fr) minmax(0,.74fr) minmax(0,.89fr)!important;
  gap:5px!important;margin-bottom:8px!important;
 }
 #studyView .gva-study-field label,#flashcardsView .gva-study-field label{
  font-size:calc(10.5px * var(--text-scale))!important;min-height:16px!important;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 }
 #studyView .gva-study-field select,#flashcardsView .gva-study-field select,
 #studyView .gva-study-field input,#flashcardsView .gva-study-field input,
 #studyView .gva-study-field-translation .gva-translation-mode,
 #flashcardsView .gva-study-field-translation .gva-translation-mode{
  box-sizing:border-box;min-width:0!important;width:100%!important;height:42px!important;
  padding:4px 5px!important;border-radius:10px!important;
  font-size:calc(12.5px * var(--text-scale))!important;
 }
 #studyView .gva-study-field-translation .gva-translation-mode,#flashcardsView .gva-study-field-translation .gva-translation-mode{
  font-size:calc(11px * var(--text-scale))!important;padding:4px 2px!important;
 }
 #studyView .gva-study-field-search input,#flashcardsView .gva-study-field-search input{padding-left:5px!important}
 #studyView .gva-study-field-search input::placeholder,#flashcardsView .gva-study-field-search input::placeholder{font-size:calc(11px * var(--text-scale))}
}
@media(max-width:350px){
 #studyView .gva-study-toolbar,#flashcardsView .gva-study-toolbar{gap:3px!important;grid-template-columns:minmax(0,.58fr) minmax(0,1.15fr) minmax(0,.77fr) minmax(0,.77fr)!important}
 #studyView .gva-study-field select,#flashcardsView .gva-study-field select,
 #studyView .gva-study-field input,#flashcardsView .gva-study-field input{font-size:calc(11.5px * var(--text-scale))!important;padding-left:3px!important}
 #studyView .gva-study-field-translation .gva-translation-mode,#flashcardsView .gva-study-field-translation .gva-translation-mode{font-size:calc(10px * var(--text-scale))!important}
}

/* Match field label baselines and input heights precisely at all widths. */
#studyView .gva-study-toolbar > .gva-study-field > label,
#flashcardsView .gva-study-toolbar > .gva-study-field > label{
 display:block;height:18px!important;min-height:18px!important;
 line-height:18px!important;box-sizing:border-box;
}
@media(min-width:701px){
 #studyView .gva-study-toolbar > .gva-study-field > select,
 #studyView .gva-study-toolbar > .gva-study-field > input,
 #flashcardsView .gva-study-toolbar > .gva-study-field > select,
 #flashcardsView .gva-study-toolbar > .gva-study-field > input{
  height:42px!important;box-sizing:border-box!important;
 }
}

/* v3.0.34 — same typography as the Level / Episode dropdowns.
   The earlier selector still used 14px on desktop, 11px on mobile and
   a heavier weight; changing weight alone did not make it match. */
#studyView .gva-study-field-translation .gva-translation-mode,
#flashcardsView .gva-study-field-translation .gva-translation-mode{
 font-family:inherit!important;
 font-style:normal!important;
 font-size:calc(15px * var(--text-scale))!important;
 font-weight:400!important;
 letter-spacing:normal!important;
}
@media(max-width:700px){
 #studyView .gva-study-field-translation .gva-translation-mode,
 #flashcardsView .gva-study-field-translation .gva-translation-mode{
  font-size:calc(12.5px * var(--text-scale))!important;
  padding:4px 5px!important;
 }
}
@media(max-width:350px){
 #studyView .gva-study-field-translation .gva-translation-mode,
 #flashcardsView .gva-study-field-translation .gva-translation-mode{
  font-size:calc(11.5px * var(--text-scale))!important;
  padding-left:3px!important;
 }
}


/* v3.0.38 — mobile header hamburger docks to the sticky learning toolbar.
   Only navigation layout changes; transcript and audiobook player are untouched. */
.gva-learning-nav-wrap{
  position:sticky;
  top:0;
  z-index:110;
  height:var(--gva-learning-tab-height);
  background:var(--panel);
}
.gva-learning-nav-wrap .gva-learning-nav{
  position:relative;
  top:auto;
  z-index:auto;
}
.gva-docked-menu-btn{display:none}
@media(max-width:900px){
  .gva-learning-nav-wrap .gva-learning-nav{
    transition:padding-left .23s ease;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-nav{
    padding-left:55px;
  }
  .gva-docked-menu-btn{
    display:grid;
    place-items:center;
    position:absolute;
    left:7px;
    top:50%;
    z-index:2;
    width:40px;
    height:42px;
    padding:0;
    font-size:22px;
    line-height:1;
    /* Match the surrounding learning tabs in both light and dark themes. */
    border:1px solid var(--line);
    background:var(--panel2);
    color:var(--muted);
    box-shadow:0 1px 4px rgba(8,20,40,.05);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translate(-8px,-50%) scale(.92);
    transition:opacity .20s ease,transform .23s ease,visibility .23s;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-docked-menu-btn{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translate(0,-50%) scale(1);
  }
  .gva-docked-menu-btn:hover,
  .gva-docked-menu-btn:active{
    background:var(--blue2);
    color:var(--blue);
    border-color:var(--blue);
  }
  .gva-docked-menu-btn:focus-visible{
    outline:2px solid var(--blue);
    outline-offset:2px;
  }
}
@media(max-width:700px){
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-nav{
    padding-left:52px;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-tab{
    font-size:calc(12px * var(--text-scale));
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-tab.active{
    flex:3.05 1 0;
    gap:5px;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-tab:not(.active){
    flex:.7 1 0;
  }
}
@media(max-width:355px){
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-nav{
    padding-left:47px;
    gap:3px;
  }
  .gva-docked-menu-btn{
    left:5px;
    width:36px;
    height:40px;
    font-size:20px;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-learning-tab.active{
    font-size:calc(10.5px * var(--text-scale));
    flex:3.15 1 0;
    gap:3px;
  }
  .gva-learning-nav-wrap.gva-menu-docked .gva-tab-icon{font-size:18px}
}
@media(prefers-reduced-motion:reduce){
  .gva-learning-nav-wrap .gva-learning-nav,
  .gva-docked-menu-btn{transition:none}
}
