/* Installed Android home. The APK supplies the original controls and their destinations. */
html.android-webview.magic-vivid .native-home.vivid-home.android-home-compact {
  --ink:#302443;
  --line:#e0dbe8;
  height:100%; min-height:0!important; justify-content:flex-start;
  gap:clamp(6px,1.4dvh,12px)!important;
  padding:clamp(12px,2.6dvh,24px) clamp(14px,4.6vw,24px) 4px!important;
}
html.android-webview.magic-vivid .native-home.android-home-compact {
  > * { flex-shrink:0; }
  .vivid-wordmark { text-align:center; font-size:clamp(23px,3.7dvh,32px); letter-spacing:.065em; color:var(--ink); }
  #nativeHomeTitle { height:23px!important; min-height:23px!important; margin:-3px 0 2px!important; text-align:center!important; color:#705e85; }
  #nativeHomeTitle .native-greeting-rail>span { text-align:center!important; height:23px!important; line-height:23px!important; }
  [lang=bn], #nativeHomeTitle .native-greeting-rail>span[lang=bn] { font-family:"Hadi Rounded",sans-serif!important; font-weight:400!important; font-synthesis:none; letter-spacing:0; }
  #nativeHomeTitle .native-greeting-rail>span[lang=bn] { font-size:16px!important; }
  .native-book {
    position:relative; overflow:hidden; order:0; margin:0!important;
    height:clamp(100px,23dvh,192px)!important; min-height:0!important;
    padding:0 clamp(18px,5vw,26px)!important; border-radius:18px!important;
    background:linear-gradient(112deg,#32214e 8%,#573689 61%,#8664c2)!important;
    box-shadow:0 6px 14px -9px #34234580!important;
  }
  .native-book::after {
    width:78%; height:190%; left:46%; top:-42%; bottom:auto;
    border-radius:50%; background:none; border:1px solid #ffffff38;
    box-shadow:0 0 0 12px #ffffff09,0 0 0 13px #ffffff24,0 0 0 26px #ffffff09,0 0 0 27px #ffffff22;
    transform:rotate(24deg); pointer-events:none;
  }
  .native-book-art { right:4%!important; bottom:4%!important; height:89%!important; width:33%!important; transform:rotate(4deg); }
  .vivid-book-copy { width:60%; gap:9px; }
  .vivid-book-copy strong { max-width:7.8em; font:600 clamp(24px,7.3vw,34px)/1.02 Arial,sans-serif; letter-spacing:-.045em; }
  .vivid-book-copy [lang=bn] { color:#f0e6ff; font-size:clamp(14px,4vw,17px); line-height:1.5; }
  >.qb-entry {
    order:0!important; min-height:0!important; height:clamp(50px,9dvh,76px)!important;
    padding:7px 15px!important; margin:0!important; gap:13px!important;
    border-radius:15px!important; border:1px solid #ecd4da!important; background:#fff4f4!important;
  }
  .qb-sheet-emblem { flex:none; width:30px!important; height:37px!important; min-width:30px!important; padding:0!important; }
  .qb-sheet-emblem b { font:22px/1 Norwester,sans-serif!important; }
  .qb-entry-name { font:700 19px/1.2 Arial,sans-serif!important; text-transform:none; letter-spacing:-.04em; }
  .qb-entry-caption { font-size:12px!important; line-height:1.4!important; }
  .qb-entry-arrow { width:27px!important; height:27px!important; }
  .qb-entry-arrow img { width:16px!important; height:16px!important; }
  .android-study-pair { display:grid; grid-template-columns:0.85fr 1.15fr; gap:9px; height:clamp(90px,17dvh,150px); }
  .vivid-learning { display:block!important; min-width:0; margin:0; }
  .android-home-original-actions[hidden] { display:none!important; }
  .vivid-learning .android-home-quiz-launcher {
    height:100%; width:100%; min-height:0!important; display:grid!important;
    grid-template-columns:auto 1fr; grid-template-rows:1fr auto; align-items:end;
    gap:3px 6px; padding:clamp(10px,3.5vw,17px)!important; text-align:left;
    border-radius:16px!important; background:#ffe5b0!important; color:#4a3318!important; box-shadow:none!important;
  }
  .android-home-quiz-launcher svg, .vivid-video svg {
    width:29px; height:29px; padding:6px; box-sizing:border-box; border-radius:9px;
  }
  .android-home-quiz-launcher .quiz-paper {
    grid-column:1/-1; align-self:center; justify-self:center;
    width:clamp(63px,23vw,100px); height:clamp(40px,9dvh,78px); padding:0;
  }
  .android-home-quiz-launcher>span { font:700 clamp(18px,5vw,23px)/1.2 Arial,sans-serif; }
  .android-home-quiz-launcher>span[lang=bn] { padding-left:7px; border-left:1px solid #bc965a; font-size:clamp(14px,4vw,18px); }
  .vivid-video { min-height:0!important; height:100%; border-radius:16px; }
  .vivid-video>img { object-position:76% center; }
  .vivid-video::after { background:linear-gradient(0deg,#091d1df2,#102a2c5c 55%,transparent); }
  .vivid-video svg { position:absolute; top:12px; left:12px; z-index:1; background:#193230d9; color:white; }
  .vivid-video>span { position:absolute; bottom:0; padding:10px 13px!important; gap:2px; }
  .vivid-video strong { font:700 clamp(16px,4.5vw,21px)/1.15 Arial,sans-serif; letter-spacing:-.04em; }
  .vivid-video small { font:400 12px/1.4 "Hadi Rounded",Arial,sans-serif; }
  .vivid-tools { gap:0; padding:4px 0; margin:0; background:#fff; border:1px solid var(--line); border-radius:15px; }
  .vivid-tools button {
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:4px; padding:2px!important; min-height:44px!important; height:clamp(44px,7dvh,60px);
    border:0!important; border-radius:0!important; background:transparent!important; color:#4c405b!important; box-shadow:none!important;
  }
  .vivid-tools button+button { border-left:1px solid #edeaf1!important; }
  .vivid-tools button::after { display:none; }
  .vivid-tools svg { width:20px; height:20px; }
  .vivid-tools span { font:600 11px/1.3 Arial,sans-serif; }
}
@media(max-height:600px) {
  html.android-webview.magic-vivid .native-home.vivid-home.android-home-compact { gap:6px!important; }
}
html.android-webview.magic-vivid[data-native-study-screen=home] .native-dock {
  width:min(calc(100% - 46px),400px)!important; min-height:56px!important;
  border-radius:22px!important; padding:5px 9px!important; box-shadow:0 5px 20px #34274114!important;
}
html.android-webview.magic-vivid .native-dock .vivid-dock-home { display:grid; place-items:center; width:46px; height:44px; min-height:44px!important; gap:0; padding:0!important; }
html.android-webview.magic-vivid .native-dock .vivid-dock-home img { width:21px; height:21px; }
/* The book title interrupts the fine outline like a printed exercise sheet. */
html.android-webview .android-home-quiz-overlay {
  position:fixed; inset:0; z-index:3000; overflow:auto; overscroll-behavior:contain;
  background:var(--atlas-paper,#faf8fe); padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
html.android-webview .android-home-quiz-overlay .android-home-quiz-panel {
  width:min(100%, 38rem); min-height:100%; margin:auto; box-sizing:border-box;
  border:0; border-radius:0; box-shadow:none; color:var(--atlas-ink,#272238); background:transparent;
  padding:12px clamp(16px,5vw,32px) 24px;
}
html.android-webview .android-home-quiz-heading {display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px}
html.android-webview .android-home-quiz-heading h2 {font:600 30px/1.15 var(--atlas-title,Georgia,serif); margin:0}
html.android-webview .android-home-quiz-heading .android-home-quiz-close {
  --figure-paper: var(--atlas-paper, white);
  --figure-ink: var(--atlas-ink, #342943);
  width:48px; height:48px; margin:0; padding:0; border:0; background:transparent; box-shadow:none;
}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-group {margin:0 0 16px; min-width:0; padding:10px 12px 14px; border:1px solid #d6cde0; border-radius:16px}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-group legend {padding:0 7px; font:600 22px/1.2 var(--atlas-title,Georgia,serif); color:#342943}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-group .android-home-quiz-choice,
:is(html.android-webview, #quizModeOverlay) .quiz-hub-mode {width:100%; box-sizing:border-box; min-height:54px; border:0; border-radius:10px; box-shadow:none; text-align:start; text-decoration:none; cursor:pointer}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-group .android-home-quiz-choice {display:flex; align-items:center; gap:14px; padding:10px 14px; background:#fff0cd; color:#51360c}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-group .android-home-quiz-choice + button {margin-top:7px; background:#def2e8; color:#214639}
:is(html.android-webview, #quizModeOverlay) .android-home-quiz-choice>img {width:26px;height:26px;object-fit:contain}
:is(html.android-webview, #quizModeOverlay) .android-home-quiz-choice>span {display:grid;gap:2px}
html.android-webview .android-home-quiz-panel strong {font:650 16px/1.25 Arial,sans-serif}
html.android-webview .android-home-quiz-panel [lang=bn] {font:400 16px/1.45 "Hadi Rounded",sans-serif; letter-spacing:0}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-caption {margin:0 6px 8px;color:#60586c;font-size:14px}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-mode {display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-content:center;padding:10px 14px;background:#eee9f8;color:#3d2c5b}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-mode [lang=bn] {grid-column:1;color:#5b4872}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-mode::after {content:"";grid-column:2;grid-row:1/3;align-self:center;width:22px;height:22px;background:url('/icons/next.png') center/contain no-repeat}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-chapters {margin-top:7px}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-chapters summary {list-style:none}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-chapters summary::-webkit-details-marker {display:none}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-chapters summary::after {transform:rotate(90deg)}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-chapters[open] summary::after {transform:rotate(-90deg)}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-options label {display:grid; grid-template-columns:20px 2ch 1fr; align-items:center;gap:10px;min-height:44px;padding:4px 6px;border-bottom:1px solid #e2dbe8;font:500 15px/1.35 Arial,sans-serif;cursor:pointer}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-options input {width:18px;height:18px;accent-color:#65429b}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-options b,.quiz-hub-count {color:#655773;font-variant-numeric:tabular-nums}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-footer {position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--atlas-paper,#faf8fe);padding:8px 0}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-start {width:auto;min-height:44px;padding:8px 16px;color:white;background:#4d337a;border:0;border-radius:11px}
:is(html.android-webview, #quizModeOverlay) .quiz-hub-start:disabled {background:#e3dfeb;color:#665d72}
html.android-webview .android-home-quiz-overlay :is(button,a,input,summary):focus-visible {outline:3px solid #8150b0;outline-offset:2px}
@media(orientation:landscape) and (max-height:500px){
 html.android-webview.magic-vivid .native-home.vivid-home.android-home-compact{display:flex;max-width:510px;height:auto;min-height:100%!important;}
 html.android-webview .android-home-quiz-panel{padding:16px;}
 html.android-webview .android-home-quiz-choice{min-height:70px;padding:12px;}
}
@media(prefers-reduced-motion:reduce){html.android-webview .android-home-quiz-panel{animation:none;}}
html.android-webview.magic-vivid .native-home.android-home-compact #nativeHomeTitle .native-greeting-rail {
  position:relative; display:flex; align-items:center; justify-content:center; gap:6px;
  transform:none!important; animation:none!important;
}
html.android-webview.magic-vivid .native-home.android-home-compact #nativeHomeTitle .native-greeting-rail>span {
  display:block!important; font:600 14px/23px Arial,sans-serif;
}
html.android-webview.magic-vivid .native-home.android-home-compact #nativeHomeTitle .native-greeting-rail>span:first-child::after { content:"·"; margin-left:6px; }
html.android-webview.magic-vivid .native-home.android-home-compact #nativeHomeTitle .native-greeting-rail>span:last-child { position:absolute; inset:0; opacity:0; }
