@media (max-width:850px) {
  html[data-yz-theme] #yz-portal .yz-nav[data-yz-library=open] {
    --yzlib-ink:#f2f6f6; --yzlib-muted:#b8c9ca; --yzlib-panel:#172024; --yzlib-field:#253135;
    --glass-ink:var(--yzlib-ink) !important; --glass-muted:var(--yzlib-muted) !important;
    --glass-line:#56676a !important;
  }
  html[data-yz-theme=light] #yz-portal .yz-nav[data-yz-library=open] {
    --yzlib-ink:#172d31; --yzlib-muted:#455d60; --yzlib-panel:#f6f9f9; --yzlib-field:#fff;
    --glass-line:#afc1c2 !important;
  }
  html[data-yz-theme] #yz-portal#yz-portal .yz-nav[data-yz-library=open] {
    bottom:max(10px,env(safe-area-inset-bottom)) !important;
    height:min(72dvh,660px) !important; max-height:min(72dvh,660px) !important;
    background:var(--yzlib-panel) !important; mask-image:none !important; -webkit-mask-image:none !important;
    padding-bottom:24px !important; scroll-padding-bottom:24px; isolation:isolate;
  }
  html[data-yz-theme] #yz-portal .yz-nav[data-yz-library=open] .yzlib-head {
    background:var(--yzlib-panel) !important; border-radius:0; z-index:12;
    margin:0 -12px 4px; padding:14px 16px 12px; border-bottom:1px solid var(--glass-line);
  }
  html[data-yz-theme] #yz-portal .yz-nav[data-yz-library=open] .yzlib-titlerow {align-items:center;gap:8px}
  .yzlib-titlerow>div:first-child{flex:1}
  html[data-yz-theme] #yz-portal .yz-nav[data-yz-library=open] button.yzlib-close {
    display:grid !important;place-items:center;width:44px !important;min-width:44px !important;height:44px !important;
    min-height:44px !important;padding:0 !important;border-radius:50%;background:var(--yzlib-field) !important;
    border:1px solid var(--glass-line) !important;font:400 26px/1 Manrope,sans-serif !important;
  }
  html[data-yz-theme] #yz-portal#yz-portal .yz-nav[data-yz-library=open] :is(.yzlib-title,.yzlib-edit,.yzlib-close,.yzlib-group b,button[data-yzlib-item],button[data-yzlib-item] > span,.yzlib-search input) {
    color:var(--yzlib-ink) !important;-webkit-text-fill-color:var(--yzlib-ink) !important;opacity:1;
  }
  html[data-yz-theme] #yz-portal#yz-portal .yz-nav[data-yz-library=open] :is(.yzlib-count,.yzlib-search::before,.yzlib-hint,.yzlib-empty) {color:var(--yzlib-muted) !important;-webkit-text-fill-color:var(--yzlib-muted) !important}
  html[data-yz-theme] #yz-portal#yz-portal .yz-nav[data-yz-library=open] .yzlib-search input {background:var(--yzlib-field) !important}
  html[data-yz-theme] #yz-portal#yz-portal .yz-nav[data-yz-library=open] .yzlib-search input::placeholder {color:var(--yzlib-muted) !important;-webkit-text-fill-color:var(--yzlib-muted) !important;opacity:1}
  html[data-yz-theme] #yz-portal .yz-nav[data-yz-library=open] button[data-yzlib-item] > span {white-space:normal;overflow-wrap:anywhere;line-height:1.3}
  html:has(#yz-portal .yz-nav[data-yz-library=open]) :is(.yz-library-toggle,#yz-quick-access,#yz-ki-coach){visibility:hidden !important;pointer-events:none !important}
}
