/* Display preference variants generated by mobile_css.py; Auto specificity is unchanged. */
/* LexVerdia App Shell v2.2 — shared ergonomics and effect policy.
 * Route geometry and scroll ownership moved to Layout Contract v3 in 23.0.80.
 * This layer now owns only shared tokens, control ergonomics, visual-cost limits,
 * consent presentation and reduced-motion behaviour.
 */

html.lexverdia-app-shell-v2,
html.lexverdia-app-shell-v2 body.lexverdia-app{
  --lexverdia-viewport-height:100vh;
  --lexverdia-viewport-width:100vw;
  --lexverdia-viewport-stable-height:100vh;
  --lexverdia-keyboard-inset:0px;
  --lexverdia-shell-gutter:clamp(10px, 3.2vw, 18px);
  --lexverdia-shell-bottom-gap:calc(var(--lexverdia-tabs-height, 72px) + 18px + env(safe-area-inset-bottom, 0px));
  max-width:100%;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}html.lexverdia-app-shell-v2:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){--lexverdia-viewport-width:430px;--lexverdia-shell-gutter:clamp(10px, 13.76px, 18px);}

@supports  (height:100dvh){
  html.lexverdia-app-shell-v2,
  html.lexverdia-app-shell-v2 body.lexverdia-app{
    --lexverdia-viewport-height:100dvh;
    --lexverdia-viewport-stable-height:100dvh;
  }
}

html.lexverdia-app-shell-v2{
  min-height:100%;
  background:#f3f6f9;
  scroll-padding-top:calc(var(--lexverdia-topbar-height, 0px) + 12px + env(safe-area-inset-top, 0px));
  scroll-padding-bottom:var(--lexverdia-shell-bottom-gap);
}

html.lexverdia-app-shell-v2 body.lexverdia-app{
  min-height:var(--lexverdia-viewport-height, 100vh);
  overscroll-behavior-x:none;
}

/* Generic shell ergonomics deliberately exclude the live written Quiz player.
 * Ranking, hotspot, matrix and native question controls retain their established
 * box model and touch-action semantics. Text wrapping is owned by Layout v3. */
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) *,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) *::before,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) *::after{
  box-sizing:border-box;
}

html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) input,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) textarea,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) select,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) button{
  font:inherit;
}

html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) button,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) a,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) summary,
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) [role="button"]{
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

/* Compact-control ergonomics. Layout v3 owns height, position and overflow. */
@media  (max-width:782px){
  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) textarea:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) select:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    font-size:16px !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-btn:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) button:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) [role="button"]:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    min-height:44px;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    max-width:100%;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) img:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) video:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) iframe:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    max-width:100%;
  }
}@media  (min-width:0px){
  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) textarea:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) select:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    font-size:16px !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-btn:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) button:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) [role="button"]:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    min-height:44px;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    max-width:100%;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) img:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) video:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) iframe:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    max-width:100%;
  }
}

/* Lower-cost visual layer for coarse-pointer mobile devices. This intentionally
 * excludes the live written Quiz view, whose existing theme remains protected.
 */
@media  (max-width:980px), (pointer:coarse){
  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-topbar:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-btn:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-tabs:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-topbar:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    box-shadow:0 10px 28px rgba(15,23,42,.07) !important;
  }
}@media  (min-width:0px), (pointer:coarse){
  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-topbar:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-btn:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-tabs:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    -webkit-backdrop-filter:none !important;
    backdrop-filter:none !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-topbar:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    box-shadow:0 8px 24px rgba(15,23,42,.08) !important;
  }

  html.lexverdia-app-shell-v2 body.lexverdia-app:not(.lexverdia-view-quiz) .lexverdia-card:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    box-shadow:0 10px 28px rgba(15,23,42,.07) !important;
  }
}

html.lexverdia-app-shell-v2.lexverdia-vp-android body.lexverdia-app:not(.lexverdia-view-quiz) *,
html.lexverdia-app-shell-v2 body.lexverdia-app.lexverdia-vp-android:not(.lexverdia-view-quiz) *{
  -webkit-backdrop-filter:none !important;
}

/* App-compatible consent presentation. Consent is not removed; known banners are
 * constrained so they cannot cover the entire learning workspace or trap the
 * old nested scroller. */
html.lexverdia-app-shell-v2 body.lexverdia-app :is(
  .cmplz-cookiebanner,
  .cky-consent-container,
  #cookie-law-info-bar,
  .cli-bar-container,
  .cc-window
){
  z-index:20000 !important;
  max-width:min(640px, calc(100vw - 24px)) !important;
  max-height:min(52vh, 420px) !important;
  overflow:auto !important;
  overscroll-behavior:contain;
  border-radius:18px !important;
  box-shadow:0 18px 48px rgba(15,23,42,.20) !important;
}html.lexverdia-app-shell-v2 body.lexverdia-app :is(
  .cmplz-cookiebanner,
  .cky-consent-container,
  #cookie-law-info-bar,
  .cli-bar-container,
  .cc-window
):where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){max-width:min(640px, calc(430px - 24px)) !important;}

@media  (max-width:782px){
  html.lexverdia-app-shell-v2 body.lexverdia-app :is(
    .cmplz-cookiebanner,
      .cky-consent-container,
    #cookie-law-info-bar,
    .cli-bar-container,
    .cc-window
  ):where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    left:12px !important;
    right:12px !important;
    width:auto !important;
    bottom:var(--lexverdia-consent-bottom, calc(12px + env(safe-area-inset-bottom, 0px))) !important;
  }

  html.lexverdia-app-shell-v2.lexverdia-vp-keyboard-open body.lexverdia-app :is(
    .cmplz-cookiebanner,
      .cky-consent-container,
    #cookie-law-info-bar,
    .cli-bar-container,
    .cc-window
  ):where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){
    bottom:10px !important;
    max-height:min(44vh, 320px) !important;
  }
}@media  (min-width:0px){
  html.lexverdia-app-shell-v2 body.lexverdia-app :is(
    .cmplz-cookiebanner,
      .cky-consent-container,
    #cookie-law-info-bar,
    .cli-bar-container,
    .cc-window
  ):where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    left:12px !important;
    right:12px !important;
    width:auto !important;
    bottom:var(--lexverdia-consent-bottom, calc(12px + env(safe-area-inset-bottom, 0px))) !important;
  }

  html.lexverdia-app-shell-v2.lexverdia-vp-keyboard-open body.lexverdia-app :is(
    .cmplz-cookiebanner,
      .cky-consent-container,
    #cookie-law-info-bar,
    .cli-bar-container,
    .cc-window
  ):where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){
    bottom:10px !important;
    max-height:min(44vh, 320px) !important;
  }
}

html.lexverdia-app-shell-v2.lexverdia-vp-reduced-motion body.lexverdia-app *,
html.lexverdia-app-shell-v2 body.lexverdia-app.lexverdia-vp-reduced-motion *{
  scroll-behavior:auto !important;
}

@media  (prefers-reduced-motion:reduce){
  html.lexverdia-app-shell-v2 body.lexverdia-app *{
    scroll-behavior:auto !important;
  }
}

@media  (prefers-reduced-motion:reduce){
  html.lexverdia-app-shell-v2 body.lexverdia-app *,
  html.lexverdia-app-shell-v2 body.lexverdia-app *::before,
  html.lexverdia-app-shell-v2 body.lexverdia-app *::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

/* 23.6.61: self-service exam settings, scoped to the app cards. */
.qm61-date-card,.qm61-preferences{font-size:16px!important;color:#18314a!important;background:#f3f8fe!important;border:1px solid #c8dbed!important;border-radius:14px!important;padding:22px!important;margin:18px 0!important;box-shadow:none!important;}
.qm61-preferences>.qm61-date-card{background:#fff!important;margin:14px 0!important;}
.qm61-eyebrow{font-size:12px!important;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:#0869a4;display:block;margin-bottom:5px;}
.qm61-date-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;}
.qm61-date-card h3,.qm61-preferences h3{font-size:18px!important;line-height:1.4!important;color:#173a5c!important;margin:4px 0!important;}
.qm61-preferences h2{font-size:24px!important;line-height:1.3!important;margin:4px 0 12px!important;}
.qm61-date-card p,.qm61-preferences p{font-size:14px!important;line-height:1.55!important;margin:8px 0!important;}
.qm61-date-edit{margin-top:14px;}.qm61-date-edit summary{cursor:pointer;color:#075e9a;font-size:15px!important;font-weight:650;padding:8px 0;}
.qm61-date-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0!important;}
.qm61-date-form label{display:flex;flex-direction:column;gap:5px;font-size:14px!important;font-weight:600;max-width:100%;}
.qm61-date-form input:not([type=hidden]),.qm61-date-form select{box-sizing:border-box;min-height:44px!important;min-width:200px;max-width:100%;border:1px solid #a8bfd3!important;border-radius:7px!important;background:white!important;color:#18314a!important;font-size:16px!important;line-height:1.5!important;padding:9px 12px!important;}
.qm61-date-form button,.qm61-date-card .lexverdia-btn{min-height:44px!important;font-size:14px!important;font-weight:650!important;line-height:1.4!important;border-radius:8px!important;padding:12px 16px!important;}
.qm61-date-form .lexverdia-btn--primary{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#086eb2!important;border:1px solid #086eb2!important;}
.qm61-date-form .lexverdia-btn--outline,.qm61-date-card .lexverdia-btn--outline{color:#18314a!important;-webkit-text-fill-color:#18314a!important;background:white!important;border:1px solid #a8bfd3!important;}
.qm61-date-warning{background:#fff6df;border-left:3px solid #9d6600;padding:12px;color:#624b22;}.qm61-date-success{color:#16623e;font-weight:600;}
.qm61-date-card :focus-visible,.qm61-preferences :focus-visible{outline:3px solid #0876bc!important;outline-offset:3px!important;}
@media (max-width:540px){.qm61-date-card:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
.qm61-preferences:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){padding:18px!important;}.qm61-date-form label:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){width:100%;}.qm61-date-form input:not([type=hidden]):where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *),
.qm61-date-form select:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){width:100%;min-width:0;}.qm61-date-summary:where(html:not([data-lexverdia-display="mobile"]),html:not([data-lexverdia-display="mobile"]) *){gap:8px;}}@media (min-width:0px){.qm61-date-card:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
.qm61-preferences:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){padding:18px!important;}.qm61-date-form label:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){width:100%;}.qm61-date-form input:not([type=hidden]):where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *),
.qm61-date-form select:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){width:100%;min-width:0;}.qm61-date-summary:where(html[data-lexverdia-display="mobile"],html[data-lexverdia-display="mobile"] *){gap:8px;}}
