/* Give each material enough room to read and operate comfortably. */
.yz-home #yzPane2 .yz-learn{width:100%;max-width:900px;margin-inline:auto;gap:14px;padding-bottom:20px}
.yz-home #yzPane2 .yz-learn>.yz-next{display:none}
.yz-home #yzPane2 .flow-resource-card{display:grid;grid-template-columns:minmax(100px,34%) minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:12px 16px;align-content:start;align-items:start;min-width:0;padding:16px;border-radius:24px}
.yz-home #yzPane2 .flow-resource-card>.flow-section-body,
.yz-home #yzPane2 .flow-resource-card :is(#flowVideoBody,#flowBookBody,#flowSlidesBody,.flow-material-content,.material-cover-card),
.yz-home #yzPane2 .flow-resource-card .material-cover-card>div{display:contents}
.yz-home #yzPane2 .flow-resource-card>h3.yz-friend-host,
.yz-home #yzPane2 .flow-resource-card>h3{grid-column:1/-1;grid-row:1;min-height:32px;gap:9px;padding:0!important;margin:0;font:700 18px/1.4 var(--round)}
.yz-home #yzPane2 .flow-resource-card>h3::before{width:32px;height:32px;border-radius:10px}
.yz-home #yzPane2 .flow-resource-card>h3::after{left:6px;width:20px;height:20px;margin-top:-10px}
.yz-home #yzPane2 .flow-resource-card>h3 .yz-friend{display:none}
.yz-home #yzPane2 .flow-resource-card .flow-material-title{grid-column:2;grid-row:2;align-self:end;min-width:0;margin:0;padding:0;border:0;font:700 15px/1.6 var(--jp);overflow-wrap:break-word}
.yz-home #yzPane2 .flow-resource-card .material-cover-summary{grid-column:2;grid-row:3;align-self:start;margin:0;color:var(--ink-2);font:400 13px/1.65 var(--jp);overflow-wrap:break-word}
.yz-home #yzPane2 .flow-resource-card .material-cover-card>.textbook-cover-button,
.yz-home #yzPane2 .flow-resource-card .material-cover-card>.slides-cover-button{grid-column:1;grid-row:2/4;align-self:center;justify-self:center;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:7px;background:transparent;box-shadow:none;line-height:0}
.yz-home #yzPane2 .flow-resource-card .material-cover-card>.textbook-cover-button{width:min(100%,140px)}
.yz-home #yzPane2 .flow-resource-card .slides-cover-image{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.yz-home #yzPane2 .flow-resource-card .vocab-cover-actions{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-self:end;align-items:stretch;gap:10px;min-width:0;margin:2px 0 0}
.yz-home #yzPane2 .flow-resource-card .vocab-cover-actions>.vocab-button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:48px;margin:0;padding:8px 6px;border:1px solid var(--line-2);border-radius:12px;font:700 13px/1.45 var(--jp);text-align:center;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.yz-home #yzPane2 .flow-resource-card .vocab-cover-actions>.has-resume-page{flex-direction:column;gap:0}
.yz-home #yzPane2 .flow-resource-card .vocab-resume-page{font-size:11px}
.yz-home #yzPane2 .flow-resource-card .flow-picker{grid-column:1/-1;grid-row:2;min-width:0;margin:0;padding:0;border:0;background:none;gap:0}
.yz-home #yzPane2 .flow-resource-card:has(.flow-picker:not([hidden])) .flow-material-title{display:none}
.yz-home #yzPane2 .flow-resource-card .flow-picker>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.yz-home #yzPane2 .flow-resource-card .flow-picker>select{box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:44px;padding:9px 32px 9px 12px;border:1px solid var(--line-2);border-radius:12px;background:var(--paper-2);color:var(--ink);font:700 14px/1.5 var(--jp)}
.yz-home #yzPane2 #flowBook.flow-resource-card:has(.flow-picker:not([hidden])) .textbook-cover-button{grid-row:3/5}
.yz-home #yzPane2 #flowBook.flow-resource-card:has(.flow-picker:not([hidden])) .material-cover-summary{grid-row:3}
.yz-home #yzPane2 #flowBook.flow-resource-card:has(.flow-picker:not([hidden])) .vocab-cover-actions{grid-row:5}
/* The video uses the full card width, with its controls underneath. */
.yz-home #yzPane2 #flowVideo.flow-resource-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto}
.yz-home #yzPane2 #flowVideo.flow-resource-card .study-meta{display:none}
.yz-home #yzPane2 #flowVideo.flow-resource-card .study-video-surface,
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-material-content>.study-video{grid-column:1/-1;grid-row:3;align-self:start;width:100%;min-width:0;margin:0;border-radius:12px;aspect-ratio:16/9;overflow:hidden}
.yz-home #yzPane2 #flowVideo.flow-resource-card .study-video{display:block;width:100%;height:auto;aspect-ratio:16/9;margin:0;border:0;border-radius:12px}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;min-width:0;margin:0}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation button{min-width:0;min-height:42px;margin:0;padding:8px 6px;border:1px solid var(--line-2);border-radius:11px;font:700 13px/1.4 var(--jp);white-space:nowrap}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-count{font-size:12px;white-space:nowrap}
/* Lecture slides keep their landscape proportions at a useful preview size. */
.yz-home #yzPane2 #flowSlides.flow-resource-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto auto}
.yz-home #yzPane2 #flowSlides.flow-resource-card .flow-material-title{grid-column:1/-1;grid-row:2}
.yz-home #yzPane2 #flowSlides.flow-resource-card .material-cover-summary{grid-column:1/-1;grid-row:3}
.yz-home #yzPane2 #flowSlides.flow-resource-card .material-cover-card>.slides-cover-button{grid-column:1/-1;grid-row:4;width:100%;max-width:700px}
.yz-home #yzPane2 #flowSlides.flow-resource-card .vocab-cover-actions{grid-row:5}
.yz-home #yzPane2 #flowSlides.flow-resource-card .flow-material-content>.study-help{display:none}
.yz-home #yzPane2 .flow-resource-card :is(.study-paywall,.study-error,.flow-material-notice){grid-column:1/-1;grid-row:auto;margin:4px 0 0}
.yz-home:has(#yzTab2[aria-selected="true"]) .lh-launch{width:44px;height:44px;min-height:44px;padding:10px;gap:0;border-radius:50%;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));font-size:0;line-height:0}
.yz-home:has(#yzTab2[aria-selected="true"]) .lh-launch::before{width:22px;height:22px}
@media(max-width:359px){
 .yz-home #yzPane2 .flow-resource-card{grid-template-columns:96px minmax(0,1fr);gap:10px 12px;padding:14px;border-radius:22px}
 .yz-home #yzPane2 .flow-resource-card>h3{font-size:17px}
 .yz-home #yzPane2 .flow-resource-card .flow-material-title{font-size:14px}
 .yz-home #yzPane2 .flow-resource-card .material-cover-summary{font-size:12px}
 .yz-home #yzPane2 .flow-resource-card .vocab-cover-actions{gap:8px}
 .yz-home #yzPane2 .flow-resource-card .vocab-cover-actions>.vocab-button{font-size:12px;padding-inline:4px}
 .yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation{gap:7px}
 .yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation button{font-size:12px}
}
@media(min-width:768px){
 .yz-home #yzPane2 .flow-resource-card{grid-template-columns:160px minmax(0,1fr);gap:14px 24px;padding:22px}
 .yz-home #yzPane2 .flow-resource-card>h3{font-size:20px}
 .yz-home #yzPane2 .flow-resource-card .flow-material-title{font-size:17px}
 .yz-home #yzPane2 .flow-resource-card .material-cover-summary{font-size:14px}
 .yz-home #yzPane2 .flow-resource-card .vocab-cover-actions>.vocab-button{font-size:14px}
}

/* Compact video above a left-hand textbook and right-hand slide deck. */
.yz-home #yzPane2 .yz-learn{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.yz-home #yzPane2 .yz-learn>:not(#flowBook):not(#flowSlides){grid-column:1/-1}
.yz-home #yzPane2 #flowBook{grid-column:1}
.yz-home #yzPane2 #flowSlides{grid-column:2}
.yz-home #yzPane2 #flowVideo.flow-resource-card{grid-template-columns:64px minmax(0,1fr);grid-template-rows:auto auto auto;gap:6px 8px;padding:10px 12px}
.yz-home #yzPane2 #flowVideo.flow-resource-card>h3{grid-column:1;grid-row:1;min-height:28px;font-size:15px;gap:5px}
.yz-home #yzPane2 #flowVideo.flow-resource-card>h3::before{width:24px;height:24px}
.yz-home #yzPane2 #flowVideo.flow-resource-card>h3::after{width:16px;height:16px;left:4px;margin-top:-8px}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-picker{grid-column:2;grid-row:1}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-picker>select{min-height:36px;padding:5px 26px 5px 8px;font-size:12px}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-material-title{display:none}
.yz-home #yzPane2 #flowVideo.flow-resource-card .study-video-surface,
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-material-content>.study-video{grid-column:1/-1;grid-row:2;width:80%;justify-self:center;aspect-ratio:16/9}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation{grid-row:3;gap:6px}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-navigation button{min-height:34px;padding:4px 6px;font-size:12px}
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-video-count{font-size:10px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 148px auto auto;gap:7px;min-width:0;padding:10px;border-radius:20px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card>h3{grid-column:1;min-height:26px;gap:5px;font-size:14px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card>h3::before{width:24px;height:24px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card>h3::after{width:16px;height:16px;left:4px;margin-top:-8px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .flow-material-title{grid-column:1;grid-row:2;font-size:11px;line-height:1.4}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .flow-picker{grid-column:1;grid-row:2}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .flow-picker>select{min-height:36px;padding:5px 22px 5px 6px;font-size:11px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .material-cover-card>:is(.textbook-cover-button,.slides-cover-button){grid-column:1;grid-row:3;align-self:center;justify-self:center;width:min(100%,104px);max-height:148px}
.yz-home #yzPane2 #flowSlides.flow-resource-card .material-cover-card>.slides-cover-button{width:100%}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .material-cover-summary{grid-column:1;grid-row:4;margin:0;font-size:10px;line-height:1.4}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .vocab-cover-actions{grid-column:1;grid-row:5;grid-template-columns:minmax(0,1fr);gap:6px;margin:0}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .vocab-cover-actions>.vocab-button{min-height:40px;padding:6px 3px;font-size:11px;line-height:1.4}
/* Compact material cards and recognizable flashcard action. */
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card{grid-template-rows:auto auto 125px auto auto;gap:5px;padding-block:8px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .material-cover-card>:is(.textbook-cover-button,.slides-cover-button){max-height:125px}
.yz-home #yzPane2 #flowBook.flow-resource-card .material-cover-card>.textbook-cover-button{width:min(100%,88px)}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .vocab-cover-actions{gap:5px}
.yz-home #yzPane2 :is(#flowBook,#flowSlides).flow-resource-card .vocab-cover-actions>.vocab-button{min-height:36px;padding-block:4px}
.yz-home #flowCards .yz-pane-head h2{font-size:clamp(22.32px,3.162vw,27.9px)}
.yz-home #flowVocabulary .vocab-open-flashcards{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff2bd;color:#554722;border:1px solid #ddc777;box-shadow:0 2px 0 #ddc77755}
.yz-home #flowVocabulary .vocab-open-flashcards::before{content:"";width:25px;height:19px;flex:none;border:2px solid currentColor;border-radius:4px;background:linear-gradient(currentColor,currentColor) center 6px/13px 2px no-repeat,linear-gradient(currentColor,currentColor) center 11px/9px 2px no-repeat,#fff9df;box-shadow:-4px -4px 0 -1px #fff9df,-4px -4px 0 1px #aa9351;transform:rotate(-7deg)}
.yz-home #flowVocabulary .vocab-open-flashcards:hover{background:#ffedaa}

/* Reduce the video by 15% and contain the complete slide cover. */
.yz-home #yzPane2 #flowVideo.flow-resource-card .study-video-surface,
.yz-home #yzPane2 #flowVideo.flow-resource-card .flow-material-content>.study-video{width:68%}
.yz-home #yzPane2 #flowSlides.flow-resource-card .material-cover-card>.slides-cover-button{height:125px;max-height:125px;width:100%;overflow:hidden}
.yz-home #yzPane2 #flowSlides.flow-resource-card .slides-cover-button>.slides-cover-image{width:100%;height:100%;max-height:125px;object-fit:contain;object-position:center}
