/* Watch & Learn video-library presentation. Isolated to this dialog only.
   Uses the existing official privacy-enhanced YouTube iframe; no third-party player download. */
#learningLounge.learning-lounge:not(.learning-lounge-peek){
 position:fixed;inset:50% auto auto 50%!important;transform:translate(-50%,-50%);
 width:min(1120px,calc(100vw - 32px))!important;
 height:min(760px,calc(100dvh - 32px));max-height:calc(100dvh - 32px)!important;
 padding:0;margin:0;overflow:hidden;z-index:130;
 border:1px solid #3d5067;border-radius:19px;background:#101927!important;color:#ecf4ff!important;
 box-shadow:0 24px 80px #020812bb;
}
#learningLounge::backdrop{background:#020811bf}
#learningLounge:not(.learning-lounge-peek) .learning-lounge-shell{
 display:grid;grid-template-columns:minmax(0,1.38fr) minmax(310px,.92fr);
 grid-template-rows:auto auto minmax(0,1fr);
 gap:16px;height:100%;max-height:none;padding:22px;overflow:hidden;
 background:#101927!important;
}
#learningLounge .learning-lounge-head{grid-column:1/-1;align-items:center;min-width:0}
#learningLounge .learning-lounge-head .eyebrow{color:#9cd6f7;font:700 11px/1.3 system-ui,sans-serif;letter-spacing:.15em}
#learningLounge .learning-lounge-head h2{color:#f1f7ff;font-size:clamp(26px,3vw,36px);margin:5px 0 0;line-height:1.12}
#learningLounge .learning-lounge-head .icon-btn{flex:0 0 auto;width:44px;height:44px;background:#25364b!important;color:#f4f9ff!important;border:1px solid #577089!important}
#learningLounge .learning-library-tools{grid-column:1/-1;display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;min-width:0}
#learningLounge .learning-library-tabs{display:flex;align-items:center;gap:6px}
#learningLounge .learning-library-tab{min-height:42px;padding:9px 15px;background:#1c2b3c;color:#d2deed;border:1px solid #40546b;border-radius:11px;font-weight:700;font-size:13px}
#learningLounge .learning-library-tab[aria-pressed="true"]{background:#c5e8ff;color:#102336;border-color:#c5e8ff}
#learningLounge .learning-library-filters{display:flex;gap:8px;align-items:center;flex:1;justify-content:flex-end;min-width:0}
#learningLounge .learning-library-search,#learningLounge .learning-library-category-filter{
 box-sizing:border-box;min-height:42px;max-width:100%;min-width:0;
 border:1px solid #4e6881;border-radius:10px;padding:9px 12px;
 color:#e9f3ff;background:#192b3d!important;font:500 14px/1.3 system-ui,sans-serif;
}
#learningLounge .learning-library-search{width:min(270px,100%);flex:1}
#learningLounge .learning-library-search::placeholder{color:#b8c9dc;opacity:1}
#learningLounge .learning-library-category-filter{width:min(205px,44%);flex:0 1 205px}
#learningLounge .learning-player{
 grid-column:1;grid-row:3;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 display:flex;flex-direction:column;align-content:start;gap:12px;
 border:1px solid #344e69;border-radius:14px;padding:14px;background:#131f2e!important;
 color:#ecf4ff!important;
}
#learningLounge .learning-player[hidden]{display:none}
#learningLounge .learning-video-placeholder{
 position:relative;isolation:isolate;min-height:175px;aspect-ratio:16/9;
 display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;overflow:hidden;
 border:1px solid #3c5875;border-radius:11px;
 background:radial-gradient(circle at 65% 25%,#234c69,#152d46 48%,#0a1424 100%);
}
#learningLounge .learning-video-placeholder:before{content:"";position:absolute;inset:16px;border:1px solid #ffffff18;border-radius:9px;pointer-events:none}
#learningLounge .learning-video-placeholder-label{font:750 11px/1.2 system-ui,sans-serif;letter-spacing:.15em;color:#c7e9ff}
#learningLounge .learning-preview-play{
 display:grid;place-items:center;width:72px;height:72px;border-radius:50%;
 border:1px solid #f4f9ff;background:#d1ecff;color:#0f2840;font-size:30px;
 box-shadow:0 6px 26px #071728aa;cursor:pointer;
}
#learningLounge .learning-video-placeholder-hint{font:600 13px/1.3 system-ui,sans-serif;color:#e1efff}
#learningLounge .learning-preview-title{color:#f4f8ff;font:750 clamp(19px,2.2vw,25px)/1.24 system-ui,sans-serif;margin:2px 0 0}
#learningLounge .learning-preview-summary{color:#e3ebf5;font-size:15px;line-height:1.55;margin:0}
#learningLounge .learning-preview-owner,#learningLounge .learning-player .muted{color:#b3c8de;font-size:13px;margin:0}
#learningLounge .learning-player-head strong{color:#f0f6ff;line-height:1.4}
#learningLounge .learning-player iframe{width:100%;aspect-ratio:16/9;min-height:200px;border:0;border-radius:10px;background:#07101d}
#learningLounge .learning-player .learning-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:8px}
#learningLounge .learning-player .button{min-height:41px;padding:9px 13px;border:1px solid #52708e;border-radius:9px;background:#24394d!important;color:#ebf5ff!important;font-weight:700;font-size:13px}
#learningLounge .learning-player .button.primary{background:#c6e9ff!important;color:#0d253a!important;border-color:#c6e9ff}
#learningLounge .learning-player .notice{background:#24344a!important;color:#e6f1ff!important;border-color:#6a8299!important}
#learningLounge .learning-player .badge{background:#294259!important;color:#f1f7ff!important;border:1px solid #496b88!important}
#learningLounge .learning-library-sidebar{
 grid-column:2;grid-row:3;min-width:0;min-height:0;overflow:hidden;
 display:flex;flex-direction:column;border:1px solid #344e69;border-radius:14px;
 background:#142132!important;
}
#learningLounge .learning-library-results{flex:0 0 auto;padding:15px 16px 13px;color:#dbeaff;font:750 13px/1.3 system-ui,sans-serif;border-bottom:1px solid #364c62}
#learningLounge .learning-library-feed{
 display:grid;align-content:start;grid-auto-rows:max-content;gap:8px;min-height:0;min-width:0;
 max-height:none;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:none;
 padding:10px!important;
}
#learningLounge .learning-library-item{
 display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:12px;
 min-width:0;scroll-snap-align:none;border:1px solid #364e66;border-radius:11px;
 padding:12px;background:#1b2b3e!important;color:#eef6ff!important;
}
#learningLounge .learning-library-item.is-selected{border-color:#9dd4f3;background:#243e56!important}
#learningLounge .learning-library-art{
 display:grid;place-items:center;width:64px;height:64px;border-radius:10px;
 background:linear-gradient(145deg,#315b78,#192f47);font-size:24px;color:#cfeaff;
}
#learningLounge .learning-library-item-info{min-width:0}
#learningLounge .learning-library-category{display:block;color:#aad7f4;font:750 11px/1.3 system-ui,sans-serif;margin-bottom:5px}
#learningLounge .learning-library-item h3{margin:0;color:#f4f9ff!important;font:750 14px/1.35 system-ui,sans-serif;overflow-wrap:anywhere}
#learningLounge .learning-library-owner{margin:5px 0 9px;color:#c4d2e2!important;font:500 12px/1.35 system-ui,sans-serif}
#learningLounge .learning-library-item-actions{display:flex;flex-wrap:wrap;gap:8px}
#learningLounge .learning-library-item-actions :is(button,a){
 display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;
 padding:7px 11px;border:1px solid #8dbbdc;border-radius:8px;background:#2b4a65!important;
 color:#e8f6ff!important;font:700 12px/1.25 system-ui,sans-serif;text-decoration:none;
}
#learningLounge .learning-library-item-actions :is(button,a):hover{background:#365d7c!important}
#learningLounge .learning-library-empty{margin:12px 8px;color:#d4e4f6;font-size:14px}
#learningLounge :is(button,input,select,a):focus-visible{outline:3px solid #a7e5ff!important;outline-offset:3px}
@media(max-width:850px){
 #learningLounge.learning-lounge:not(.learning-lounge-peek){width:min(740px,calc(100vw - 16px))!important;height:min(94dvh,980px);max-height:94dvh!important}
 #learningLounge:not(.learning-lounge-peek) .learning-lounge-shell{display:flex;flex-direction:column;gap:12px;padding:16px;overflow-y:auto;overscroll-behavior:contain}
 #learningLounge .learning-library-tools{align-items:stretch;flex-direction:column;gap:10px}
 #learningLounge .learning-library-filters{justify-content:stretch}
 #learningLounge .learning-player{flex:0 0 auto;min-height:0;overflow:visible}
 #learningLounge .learning-library-sidebar{flex:0 0 auto;min-height:220px;overflow:visible}
 #learningLounge .learning-library-feed{overflow:visible;max-height:none!important}
}
@media(max-width:480px){
 #learningLounge.learning-lounge:not(.learning-lounge-peek){width:calc(100vw - 10px)!important;height:96dvh;max-height:96dvh!important;border-radius:13px}
 #learningLounge:not(.learning-lounge-peek) .learning-lounge-shell{padding:12px}
 #learningLounge .learning-library-search{width:auto;flex:1}
 #learningLounge .learning-library-category-filter{flex:0 1 42%;width:42%}
 #learningLounge .learning-library-item{grid-template-columns:50px minmax(0,1fr);gap:10px;padding:10px}
 #learningLounge .learning-library-art{width:50px;height:50px}
 #learningLounge .learning-video-placeholder{min-height:160px}
 #learningLounge .learning-library-tab{font-size:12px}
 #learningLounge .learning-player{padding:10px}
 #learningLounge .learning-player iframe{min-height:200px}
}

/* Large curated catalogue: incremental browse without an unbounded mobile scroll stack. */
#learningLounge .learning-show-more{
 width:100%;min-height:44px;cursor:pointer;text-align:center;padding:12px 14px;
 color:#d7efff!important;background:#24435e!important;
 border:1px solid #8ab9d9;border-radius:10px;
 font:750 13px/1.35 system-ui,-apple-system,"Segoe UI",sans-serif;
}
#learningLounge .learning-show-more:hover{background:#325979!important}
#learningLounge .learning-show-more:focus-visible{outline:3px solid #a7e5ff;outline-offset:3px}

/* In-place video continuation, never a hidden player or a second iframe.
   The same iframe remains visible at >=200px in both dimensions. */
#learningLounge [hidden]{display:none!important}
#learningLounge .learning-lounge-head-actions,
#learningLounge .learning-player-controls{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
#learningLounge .learning-lounge-head-actions .learning-head-minimize,
#learningLounge .learning-player-controls .learning-player-minimize{
 appearance:none;min-height:44px;padding:9px 13px;border-radius:9px;
 border:1px solid #a9cbea;background:#273e55;color:#f5faff;
 font:700 12px/1.25 system-ui,sans-serif;cursor:pointer
}
#learningLounge .learning-lounge-head-actions .learning-head-minimize:hover,
#learningLounge .learning-player-controls .learning-player-minimize:hover{background:#325a77}
#learningLounge .learning-player-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
#learningLounge .learning-player-head > div:first-child{flex:1;min-width:0}
#learningLounge .learning-player-head strong{display:block;overflow-wrap:anywhere}
#learningLounge .learning-mobile-jumps{display:none}
#learningLounge.learning-lounge.learning-lounge-mini{
 position:fixed!important;inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto!important;
 top:auto!important;left:auto!important;transform:none!important;
 margin:0!important;padding:0!important;width:min(396px,calc(100vw - 24px))!important;
 min-height:0!important;height:auto!important;max-height:calc(100dvh - 18px)!important;
 max-width:calc(100vw - 24px)!important;overflow:hidden!important;z-index:1490;
 border:1px solid #8ab3d0;border-radius:13px;background:#101927!important;
 box-shadow:0 12px 50px #030814c8
}
#learningLounge.learning-lounge-mini .learning-lounge-shell{
 display:block!important;width:100%;height:auto!important;max-height:none!important;
 margin:0!important;padding:8px!important;overflow:visible!important
}
#learningLounge.learning-lounge-mini .learning-lounge-head,
#learningLounge.learning-lounge-mini .learning-library-tools,
#learningLounge.learning-lounge-mini .learning-mobile-jumps,
#learningLounge.learning-lounge-mini .learning-library-sidebar,
#learningLounge.learning-lounge-mini .learning-player .learning-actions,
#learningLounge.learning-lounge-mini .learning-player > p,
#learningLounge.learning-lounge-mini .learning-player .learning-preview-summary,
#learningLounge.learning-lounge-mini .learning-player .learning-preview-owner{display:none!important}
#learningLounge.learning-lounge-mini .learning-player{
 display:flex!important;flex-direction:column;min-width:0;max-height:none!important;
 width:100%;height:auto;overflow:visible!important;gap:6px;padding:4px;
 background:#101927!important;border:0;border-radius:0
}
#learningLounge.learning-lounge-mini .learning-player-head{
 display:flex;flex-direction:column;align-items:stretch;gap:5px
}
#learningLounge.learning-lounge-mini .learning-player-head .badge{font-size:10px;padding:3px 6px}
#learningLounge.learning-lounge-mini .learning-player-head strong{
 font-size:12px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;
 -webkit-box-orient:vertical;overflow:hidden
}
#learningLounge.learning-lounge-mini .learning-player-controls{
 flex-wrap:nowrap;justify-content:space-between;gap:8px
}
#learningLounge.learning-lounge-mini .learning-player-controls button{
 flex:1;min-height:42px!important;padding:8px 11px!important;font-size:12px!important
}
#learningLounge.learning-lounge-mini .learning-player iframe{
 display:block;width:100%;height:220px!important;min-height:200px!important;
 aspect-ratio:auto;border:0;border-radius:7px
}
@media(max-width:850px){
 #learningLounge:not(.learning-lounge-mini):not(.learning-lounge-peek) .learning-lounge-shell{
  display:flex;flex-direction:column;gap:11px;overflow-y:auto;overscroll-behavior:contain
 }
 #learningLounge:not(.learning-lounge-mini) .learning-lounge-head{
  position:sticky;top:-16px;z-index:4;background:#101927;padding:9px 0 12px;
  display:flex;align-items:center;gap:8px
 }
 #learningLounge:not(.learning-lounge-mini) .learning-lounge-head h2{font-size:clamp(22px,5vw,27px)}
 #learningLounge:not(.learning-lounge-mini) .learning-library-tools{display:flex;flex-direction:column;align-items:stretch;gap:9px}
 #learningLounge:not(.learning-lounge-mini) .learning-library-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #learningLounge:not(.learning-lounge-mini) .learning-library-tab{width:100%;min-height:44px}
 #learningLounge:not(.learning-lounge-mini) .learning-library-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
 #learningLounge:not(.learning-lounge-mini) .learning-library-search,
 #learningLounge:not(.learning-lounge-mini) .learning-library-category-filter{
  width:100%!important;max-width:none;min-height:46px;flex:auto
 }
 #learningLounge:not(.learning-lounge-mini) .learning-mobile-jumps{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
 }
 #learningLounge:not(.learning-lounge-mini) .learning-mobile-jumps button{
  min-height:44px;border:1px solid #7daed0;border-radius:9px;background:#223952;
  color:#f2f9ff;font:700 12px/1.3 system-ui,sans-serif;padding:10px 7px;cursor:pointer
 }
 #learningLounge:not(.learning-lounge-mini) .learning-library-sidebar{max-height:min(50dvh,480px);min-height:260px;overflow:hidden}
 #learningLounge:not(.learning-lounge-mini) .learning-library-feed{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #learningLounge:not(.learning-lounge-mini) :is(.learning-player,.learning-library-sidebar){scroll-margin-top:86px}
 #learningLounge:not(.learning-lounge-mini) .learning-library-item-actions :is(button,a){min-height:44px}
 #learningLounge:not(.learning-lounge-mini) .learning-player{padding:12px;overflow:visible}
}
@media(max-width:480px){
 #learningLounge:not(.learning-lounge-mini) .learning-lounge-head{top:-12px}
 #learningLounge:not(.learning-lounge-mini) .learning-lounge-head-actions{gap:5px}
 #learningLounge:not(.learning-lounge-mini) .learning-head-minimize{max-width:135px;padding:7px 9px;font-size:11px}
 #learningLounge:not(.learning-lounge-mini) .learning-player-head{display:flex;flex-direction:column;gap:8px}
 #learningLounge:not(.learning-lounge-mini) .learning-player-controls{align-self:stretch;display:flex;justify-content:space-between}
 #learningLounge:not(.learning-lounge-mini) .learning-player-controls .learning-player-minimize{flex:1}
 #learningLounge.learning-lounge-mini{right:max(10px,env(safe-area-inset-right))!important;bottom:max(10px,env(safe-area-inset-bottom))!important;width:calc(100vw - 20px)!important}
 #learningLounge.learning-lounge-mini .learning-player iframe{height:200px!important;min-height:200px!important}
}
@media(prefers-reduced-motion:reduce){#learningLounge *{transition:none!important}}

/* Entry to dedicated Watch & Learn page. Scoped to the existing media dialog. */
#learningLounge .learning-library-full-link{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:9px 13px;border:1px solid #e4c992;border-radius:9px;background:#423526;color:#f5deb0;font-size:12px;font-weight:800;text-decoration:none}
#learningLounge .learning-library-full-link:hover{background:#695033;color:#fff1cc}
#learningLounge .learning-library-full-link:focus-visible{outline:3px solid #ffe2a0;outline-offset:2px}

/* PREMIUM MEDIA SHARED VISUAL IDENTITY — existing popup only; never global site CSS.
   The same publisher-linked YouTube player and accessible mini-window remain intact. */
#learningLounge.learning-lounge:not(.learning-lounge-peek){
 border-color:#8e7144!important;background:#101416!important;color:#f6eddc!important;
 box-shadow:0 28px 80px #000c,0 0 0 1px #d2b47b17
}
#learningLounge::backdrop{background:#070909da}
#learningLounge:not(.learning-lounge-peek) .learning-lounge-shell,
#learningLounge.learning-lounge-mini .learning-lounge-shell{background:#101416!important}
#learningLounge .learning-lounge-head .eyebrow{color:#e4c992!important}
#learningLounge .learning-lounge-head h2{color:#ffe6ba!important;letter-spacing:-.035em;font-weight:770}
#learningLounge .learning-lounge-head .icon-btn{background:#362d22!important;color:#ffe6ba!important;border-color:#9f7e4e!important}
#learningLounge .learning-library-tab{background:#292721!important;color:#eddbc1!important;border-color:#775f3e!important}
#learningLounge .learning-library-tab[aria-pressed="true"]{background:#e4c992!important;color:#121517!important;border-color:#f2dfa9!important}
#learningLounge .learning-library-search,#learningLounge .learning-library-category-filter{
 color:#fff3df!important;background:#212628!important;border-color:#9d794d!important
}
#learningLounge .learning-library-search::placeholder{color:#c4b9a9}
#learningLounge .learning-player{background:#151a1b!important;border-color:#735b3d!important}
#learningLounge .learning-video-placeholder{
 background:radial-gradient(circle at 55% 38%,#80633a,#101617 67%)!important;
 border-color:#af8750!important;overflow:hidden;isolation:isolate
}
#learningLounge .learning-video-placeholder::after{
 content:"";position:absolute;inset:0;background:linear-gradient(0deg,#101517dd,#10151738);
 pointer-events:none;z-index:0
}
#learningLounge .learning-video-placeholder .learning-publisher-poster{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.84;z-index:-1
}
#learningLounge .learning-video-placeholder >:not(.learning-publisher-poster){position:relative;z-index:1}
#learningLounge .learning-video-placeholder-label{color:#fff1cc!important}
#learningLounge .learning-preview-play{border:2px solid #ffebbb!important;background:#e4c992!important;color:#101315!important;box-shadow:0 8px 34px #0008}
#learningLounge .learning-video-placeholder-hint{color:#fff0d7!important}
#learningLounge .learning-player .muted,#learningLounge .learning-preview-owner{color:#cbbcaa!important}
#learningLounge .learning-player-head strong{color:#fff0d3!important}
#learningLounge .learning-player .button,
#learningLounge .learning-library-item-actions :is(button,a),
#learningLounge .learning-show-more,
#learningLounge .learning-library-full-link,
#learningLounge .learning-head-minimize,
#learningLounge .learning-player-minimize,
#learningLounge .learning-mobile-jumps button{
 background:#362c20!important;color:#ffe6b5!important;border-color:#947345!important
}
#learningLounge .learning-player .button.primary,
#learningLounge .learning-library-item-actions .learning-play-button{
 background:#e4c992!important;color:#141617!important;border-color:#f5deaa!important
}
#learningLounge .learning-player .button:hover,
#learningLounge .learning-library-item-actions :is(button,a):hover,
#learningLounge .learning-library-full-link:hover{background:#644d2d!important;color:#fff4db!important}
#learningLounge .learning-player .button.primary:hover,
#learningLounge .learning-library-item-actions .learning-play-button:hover{background:#ffe5ad!important;color:#141617!important}
#learningLounge .learning-player .notice{background:#332d25!important;color:#f6e3bf!important;border-color:#a28253!important}
#learningLounge .learning-player .badge{background:#4b3b27!important;color:#ffe5b7!important;border-color:#917146!important}
#learningLounge .learning-library-sidebar{background:#14191a!important;border-color:#735d43!important}
#learningLounge .learning-library-results{color:#edd6aa!important;border-bottom-color:#594936!important}
#learningLounge .learning-library-item{background:#1e2221!important;color:#fff2db!important;border-color:#68543c!important}
#learningLounge .learning-library-item.is-selected{background:#373024!important;border-color:#c6a268!important}
#learningLounge .learning-library-art{position:relative;isolation:isolate;background:linear-gradient(145deg,#78603c,#161c1d)!important;color:#e3cc9f!important;overflow:hidden}
#learningLounge .learning-library-art .learning-publisher-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
#learningLounge .learning-library-category{color:#d9bd8c!important}
#learningLounge .learning-library-item h3{color:#ffe9c8!important}
#learningLounge .learning-library-owner{color:#d2c3af!important}
#learningLounge .learning-show-more:focus-visible,
#learningLounge :is(button,input,select,a):focus-visible{outline:3px solid #ffe1a4!important;outline-offset:3px}
#learningLounge .learning-library-thumbnail-disclosure{
 padding:10px 14px;margin:0;border-top:1px solid #5a4933;
 font-size:11px;color:#cab89a;line-height:1.5;background:#14191a
}
#learningLounge .learning-save-button[aria-pressed="true"]{background:#76552c!important;color:#fff3cc!important}
#learningLounge.learning-lounge.learning-lounge-mini{background:#111618!important;border-color:#b8955d!important}
#learningLounge.learning-lounge-mini .learning-player{background:#111618!important}
#learningLounge.learning-lounge-mini .learning-player-controls button{background:#3c3020!important;color:#ffe8bc!important;border-color:#9e7d4d!important}
@media(max-width:850px){
 #learningLounge:not(.learning-lounge-mini) .learning-lounge-head{background:#101416!important}
 #learningLounge:not(.learning-lounge-mini) .learning-library-sidebar{background:#14191a!important}
}
@media(prefers-reduced-motion:reduce){#learningLounge *{animation:none!important;transition:none!important}}
