/* MR LEE V4 - photography-first, responsive child pages.
   ONE content system, two palettes. No fake dashboard statistics or copied mockup text.
   Original official brand mark and all native forms/apps remain intact. */
html[data-mrlee-v4]{
 --v4-ink:#eef8ff;--v4-hint:#adcdea;--v4-frame:rgba(57,188,254,.62);
 --v4-panel:rgba(4,19,45,.91);--v4-accent:#5beeff;
 --v4-glass:linear-gradient(125deg,rgba(5,24,57,.97),rgba(11,31,76,.91));
}
html[data-mrlee-theme="fresh"][data-mrlee-v4]{
 --v4-ink:#173356;--v4-hint:#496887;--v4-frame:rgba(46,128,206,.33);
 --v4-panel:rgba(255,255,255,.98);--v4-accent:#0b74c8;
 --v4-glass:linear-gradient(135deg,rgba(255,255,255,.97),rgba(234,246,255,.97));
}
html[data-mrlee-v4] body{overflow-x:clip}
html[data-mrlee-v4] main{
 width:min(1580px,calc(100% - 30px))!important;
 max-width:1580px!important;margin-inline:auto!important;min-width:0;
}
html[data-mrlee-v4] main>.mrlee-v4-root{
 margin:12px 0 12px;position:relative;
 font-family:"Be Vietnam Pro","Noto Sans KR",system-ui,sans-serif;
 color:var(--v4-ink);box-sizing:border-box;
}
html[data-mrlee-v4] .mrlee-v4-root *{box-sizing:border-box}
html[data-mrlee-v4] .mrlee-v4-root :is(h1,h2,h3,p){text-wrap:pretty}
html[data-mrlee-v4] .mrlee-v4-hero{
 min-height:clamp(260px,30vw,410px);width:100%;
 position:relative;isolation:isolate;overflow:hidden;
 display:flex;align-items:center;
 padding:clamp(24px,4.7vw,66px);
 border-radius:21px;border:1px solid var(--v4-frame);
 background:
 radial-gradient(circle at 72% 20%,#43369b63,transparent 46%),
 linear-gradient(105deg,#03122c,#13234f);
 box-shadow:0 20px 48px #02071c7a,inset 0 1px #6beeff29;
}
html[data-mrlee-v4] .mrlee-v4-hero::after{
 content:"";position:absolute;inset:0;z-index:-1;
 background:
 linear-gradient(90deg,#020d25f5 0%,#041331e8 26%,#0718318f 54%,#07132b16 100%),
 repeating-linear-gradient(120deg,transparent 0 110px,#40dfff0c 111px 112px);
 pointer-events:none;
}
html[data-mrlee-theme="fresh"][data-mrlee-v4] .mrlee-v4-hero::after{
 background:linear-gradient(90deg,#052b51e9 0%,#104376bc 35%,#103c5b3d 70%,transparent);
}
html[data-mrlee-v4] .mrlee-v4-hero-photo{
 position:absolute;inset:0;width:100%;height:100%;
 display:block;object-fit:cover;object-position:75% center;z-index:-2;
 filter:saturate(1.18) contrast(1.05);
}
html[data-mrlee-v4] .mrlee-v4-hero-words{
 width:min(680px,61%);position:relative;z-index:2;
 display:flex;flex-direction:column;align-items:flex-start;
}
html[data-mrlee-v4] .mrlee-v4-eyebrow{
 font-size:clamp(13px,1vw,14px);font-weight:900;line-height:1.5;
 letter-spacing:.22em;color:#76eaff!important;
}
html[data-mrlee-v4] .mrlee-v4-hero-words h1{
 color:#faffff!important;margin:10px 0 8px!important;
 font:900 clamp(30px,4.4vw,67px)/1.13 "Be Vietnam Pro",system-ui,sans-serif!important;
 letter-spacing:-.044em!important;overflow-wrap:break-word;
 text-shadow:0 3px 30px #03123d5e;
}
html[data-mrlee-v4] .mrlee-v4-hero-words h2{
 font:800 clamp(15px,1.45vw,23px)/1.38 "Be Vietnam Pro",system-ui,sans-serif!important;
 margin:3px 0 8px!important;color:#e5f4ff!important;
}
html[data-mrlee-v4] .mrlee-v4-hero-words p{
 color:#d8e9f8!important;font-size:clamp(15px,1.15vw,17px)!important;
 line-height:1.72!important;max-width:59ch!important;margin:2px 0 12px!important;
}
html[data-mrlee-v4] .mrlee-v4-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
html[data-mrlee-v4] .mrlee-v4-button{
 display:inline-flex;align-items:center;justify-content:center;
 padding:10px 20px;min-height:45px;
 border:1px solid #8beaff;border-radius:11px;
 background:linear-gradient(105deg,#52eaff,#5397fc);
 color:#04162e!important;font-size:14px;font-weight:900;line-height:1.5;
 text-decoration:none;box-shadow:0 6px 21px #14beff68;
}
html[data-mrlee-v4] .mrlee-v4-button-secondary{
 background:linear-gradient(130deg,#091932d9,#1a2964d9);
 color:#f3fbff!important;border-color:#8678ff;
 box-shadow:0 2px 16px #512de055;
}
html[data-mrlee-v4] .mrlee-v4-directory{
 margin:13px 0 14px;padding:17px;
 border:1px solid var(--v4-frame);border-radius:19px;
 background:var(--v4-glass);
 box-shadow:0 9px 26px #06122b3a;
}
html[data-mrlee-v4] .mrlee-v4-section-title{
 display:flex;align-items:baseline;justify-content:space-between;
 flex-wrap:wrap;gap:4px 18px;margin:0 0 14px;
}
html[data-mrlee-v4] .mrlee-v4-section-title h2{
 font:850 clamp(17px,1.7vw,23px)/1.3 "Be Vietnam Pro",system-ui,sans-serif!important;
 color:var(--v4-ink)!important;margin:0!important;letter-spacing:-.015em;
}
html[data-mrlee-v4] .mrlee-v4-section-title small{
 color:var(--v4-hint)!important;font:600 14px/1.5 "Be Vietnam Pro",system-ui,sans-serif;
}
html[data-mrlee-v4] .mrlee-v4-directory-grid{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;
}
html[data-mrlee-v4="learning"] .mrlee-v4-directory-grid{
 grid-template-columns:repeat(6,minmax(0,1fr));
}
html[data-mrlee-v4="topik"] .mrlee-v4-directory-grid{
 grid-template-columns:repeat(5,minmax(0,1fr));
}
html[data-mrlee-v4="workbook"] .mrlee-v4-directory-grid{
 grid-template-columns:repeat(7,minmax(0,1fr));
}
html[data-mrlee-v4] .mrlee-v4-card{
 min-width:0;min-height:170px;overflow:hidden;position:relative;isolation:isolate;
 display:flex;align-items:flex-end;
 text-decoration:none!important;border-radius:13px;
 border:1px solid var(--v4-frame);background:var(--v4-panel);
 color:#fff!important;
 box-shadow:inset 0 0 0 1px #3bedff1c,0 8px 16px #0010235d;
 transition:transform .19s ease,border-color .19s ease;
}
html[data-mrlee-v4] .mrlee-v4-card:hover{transform:translateY(-3px);border-color:#7efaff}
html[data-mrlee-v4] .mrlee-v4-card img{
 position:absolute;z-index:-2;inset:0;width:100%;height:100%;
 object-fit:cover;object-position:center;opacity:.94;
 filter:saturate(1.14) contrast(1.05);
}
html[data-mrlee-v4] .mrlee-v4-card::before{
 content:"";position:absolute;inset:0;z-index:-1;
 background:linear-gradient(0deg,#020f23f5 1%,#031529ae 45%,#07244809 100%);
}
html[data-mrlee-v4] .mrlee-v4-card-copy{
 display:flex;flex-direction:column;gap:4px;
 padding:12px 11px 14px;min-width:0;
}
html[data-mrlee-v4] .mrlee-v4-card-index{
 font:900 clamp(13px,1.45vw,21px)/1.1 "Be Vietnam Pro",sans-serif;
 color:#55eeff!important;
}
html[data-mrlee-v4] .mrlee-v4-card-copy strong{
 color:#f5faff!important;font:850 clamp(15px,1.2vw,18px)/1.35 "Be Vietnam Pro",sans-serif;
}
html[data-mrlee-v4] .mrlee-v4-card-caption{
 color:#c9e1f3!important;font-size:14px;line-height:1.5;
 padding-right:9px;max-width:27ch;
}
html[data-mrlee-v4] .mrlee-v4-card-arrow{
 position:absolute;right:9px;bottom:10px;
 width:26px;height:26px;border-radius:50%;border:1px solid #7eefff;
 display:grid;place-items:center;color:#b6f7ff!important;background:#083866da;
}
html[data-mrlee-v4] .mrlee-v4-tools{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;
 margin:0 0 14px;
}
html[data-mrlee-v4="topik"] .mrlee-v4-tools,
html[data-mrlee-v4="interview"] .mrlee-v4-tools,
html[data-mrlee-v4="culture"] .mrlee-v4-tools,
html[data-mrlee-v4="universities"] .mrlee-v4-tools,
html[data-mrlee-v4="workbook"] .mrlee-v4-tools,
html[data-mrlee-v4="profile"] .mrlee-v4-tools{
 grid-template-columns:repeat(3,minmax(0,1fr));
}
html[data-mrlee-v4] .mrlee-v4-tool{
 min-height:79px;position:relative;isolation:isolate;overflow:hidden;
 display:flex;align-items:center;gap:9px;
 border:1px solid var(--v4-frame);border-radius:12px;
 background:var(--v4-glass);
 color:var(--v4-ink)!important;text-decoration:none!important;
 font-size:14px;font-weight:800;padding:11px 15px;
}
html[data-mrlee-v4] .mrlee-v4-tool img{
 height:100%;width:35%;position:absolute;inset:0 0 0 auto;
 opacity:.4;object-fit:cover;z-index:-1;
 mask-image:linear-gradient(90deg,transparent,#000);
}
html[data-mrlee-v4] .mrlee-v4-tool span{position:relative;z-index:1}
html[data-mrlee-v4] .mrlee-v4-tool-arrow{margin-left:auto;font-size:17px;color:var(--v4-accent)}
html[data-mrlee-v4] .mrlee-v4-live-intro{
 display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
 padding:12px 18px;margin:14px 0;
 border:1px solid var(--v4-frame);border-radius:12px;
 color:var(--v4-ink);background:var(--v4-glass);font-size:14px;
}
html[data-mrlee-v4] .mrlee-v4-live-intro span{color:var(--v4-hint);font-size:14px}
html[data-mrlee-v4] .mrlee-v4-old-hero{display:none!important}
/* Old automatic galleries/portals caused repeated menus and excess scroll. Keep native apps. */
html[data-mrlee-v4] :is(.mrlee-next-portal,.mrlee-cinematic-gallery,.mrlee-v2-context,
.mrlee-v2-primary-nav,.mrlee-smart-home-hub){display:none!important}
html[data-mrlee-v4] .mrlee-theme-switch{
 margin:8px auto 12px!important;max-width:calc(100% - 20px);
}
html[data-mrlee-v4] .mrlee-v4-root :is(a,button):focus-visible{
 outline:3px solid #ffe89e!important;outline-offset:4px!important;
}
html[data-mrlee-theme="future"][data-mrlee-v4] body{
 background:
 radial-gradient(ellipse at 80% 0%,#172b6f77,transparent 35%),
 radial-gradient(#2059a750 1px,transparent 1px) 0 0 / 43px 43px,
 #040d20!important;
}
html[data-mrlee-theme="fresh"][data-mrlee-v4] body{
 background:linear-gradient(160deg,#ecf8ff,#f9fbff 55%,#eef4fb)!important;
}
html[data-mrlee-theme="fresh"][data-mrlee-v4] .mrlee-v4-card{
 border-color:#7bb5e8;
}
html[data-mrlee-theme="fresh"][data-mrlee-v4] .mrlee-v4-directory,
html[data-mrlee-theme="fresh"][data-mrlee-v4] .mrlee-v4-tool{
 box-shadow:0 8px 22px #2767ad1c;
}
/* Respect screen readers and the actual input UI. */
html[data-mrlee-v4] :is(#topicMenu,#phraseGrid,#universitySearch,#workLevel,#workList,#workGame,#topicSection,#attemptRows){
 scroll-margin-top:115px;
}
@media(max-width:1220px){
 html[data-mrlee-v4] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="learning"] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="workbook"] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="topik"] .mrlee-v4-directory-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
 }
}
@media(max-width:820px){
 html[data-mrlee-v4] main{width:calc(100% - 18px)!important}
 html[data-mrlee-v4] .mrlee-v4-hero{min-height:370px;padding:27px 24px}
 html[data-mrlee-v4] .mrlee-v4-hero-words{width:min(550px,83%)}
 html[data-mrlee-v4] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="learning"] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="workbook"] .mrlee-v4-directory-grid,
 html[data-mrlee-v4="topik"] .mrlee-v4-directory-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 html[data-mrlee-v4] .mrlee-v4-tools{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:520px){
 html[data-mrlee-v4] .mrlee-v4-hero{
 min-height:420px;padding:24px 17px;
 align-items:flex-start;border-radius:15px;
 }
 html[data-mrlee-v4] .mrlee-v4-hero-photo{object-position:63% center}
 html[data-mrlee-v4] .mrlee-v4-hero::after{
 background:linear-gradient(180deg,#05132ded,#061736d9 48%,#07163352 100%);
 }
 html[data-mrlee-v4] .mrlee-v4-hero-words{width:100%}
 html[data-mrlee-v4] .mrlee-v4-hero-words h1{font-size:clamp(27px,7vw,42px)!important}
 html[data-mrlee-v4] .mrlee-v4-hero-words h2{font-size:14px!important}
 html[data-mrlee-v4] .mrlee-v4-hero-words p{font-size:14px!important}
 html[data-mrlee-v4] .mrlee-v4-actions{width:100%}
 html[data-mrlee-v4] .mrlee-v4-button{flex:1;min-width:120px;padding:10px!important}
 html[data-mrlee-v4] .mrlee-v4-directory{padding:11px;border-radius:14px}
 html[data-mrlee-v4] .mrlee-v4-directory-grid{gap:8px}
 html[data-mrlee-v4] .mrlee-v4-card{min-height:165px}
 html[data-mrlee-v4] .mrlee-v4-card-copy{padding:11px}
 html[data-mrlee-v4] .mrlee-v4-card-caption{font-size:14px}
 html[data-mrlee-v4] .mrlee-v4-tools{grid-template-columns:1fr 1fr!important}
 html[data-mrlee-v4] .mrlee-v4-tool{padding:11px;min-height:76px}
}
@media(prefers-reduced-motion:reduce){
 html[data-mrlee-v4] .mrlee-v4-card{transition:none!important}
}
