
/* Free CV Studio v273 — phone header spacing, screen-fit CV zoom, compact colour toolbar. */
@media (max-width: 800px) {
  /* Header action buttons: visible separation, no flex shrink or overlap. */
  html:root body.shell[class][class] #appHeader #headerUtilityGroup {
    display:flex!important;
    flex:0 0 auto!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:7px!important;
    min-width:0!important;
    margin-left:auto!important;
    overflow:visible!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > .site-language-top {
    flex:0 0 auto!important;
    margin:0!important;
    position:relative!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    white-space:nowrap!important;
  }

  /* The swatches and fullscreen action fit in the preview toolbar without a redundant label. */
  html:root body.shell[class][class] #colPreview #cvThemeSlot #cvThemeBar > .lbl {
    display:none!important;
  }
  html:root body.shell[class][class] #colPreview #cvThemeSlot {
    gap:6px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scrollbar-width:none!important;
  }
  html:root body.shell[class][class] #colPreview #cvThemeSlot::-webkit-scrollbar {
    display:none!important;
  }
  html:root body.shell[class][class] #colPreview #cvThemeSlot #cvThemeBar {
    min-width:0!important;
    gap:6px!important;
  }

  /* Full-screen CV viewer uses almost the complete phone width, with minimal side gutters. */
  html:root body.shell[class][class] #cvZoomViewer {
    left:0!important;
    right:0!important;
    width:100vw!important;
    max-width:100vw!important;
    box-sizing:border-box!important;
  }
  html:root body.shell[class][class] #cvZoomViewer .zv-scroll {
    padding:4px!important;
    box-sizing:border-box!important;
  }
  html:root body.shell[class][class] #cvZoomViewer .zv-wrap {
    margin:0 auto!important;
  }
}
@media (max-width: 380px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup {gap:5px!important;}
}

@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn {
    width:72px!important;min-width:72px!important;max-width:72px!important;
    flex:0 0 72px!important;font-size:9px!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:74px!important;min-width:74px!important;max-width:74px!important;
    flex:0 0 74px!important;font-size:9px!important;
  }
}
@media (max-width: 380px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn {
    width:70px!important;min-width:70px!important;max-width:70px!important;
    flex:0 0 70px!important;font-size:8.5px!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:72px!important;min-width:72px!important;max-width:72px!important;
    flex:0 0 72px!important;font-size:8.5px!important;
  }
}

@media (max-width: 800px) {
  html:root body.shell[class][class] #colPreview #cvThemeSlot #stBtn {
    font-size:0!important;line-height:1!important;
    width:28px!important;min-width:28px!important;max-width:28px!important;
    flex:0 0 28px!important;height:28px!important;padding:0!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
  }
  html:root body.shell[class][class] #colPreview #cvThemeSlot #stBtn::before {
    content:"🎨";font-size:16px!important;line-height:1!important;
  }
}
@media (max-width: 350px) {
  html:root body.shell[class][class] #colPreview #cvThemeSlot #stBtn {
    width:24px!important;min-width:24px!important;max-width:24px!important;
    flex:0 0 24px!important;
  }
}

@media (max-width: 800px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn {
    min-width:77px!important;
  }
}
@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn {
    width:77px!important;min-width:77px!important;max-width:77px!important;flex:0 0 77px!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:77px!important;min-width:77px!important;max-width:77px!important;flex:0 0 77px!important;
  }
}

@media (max-width: 800px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn {
    width:80px!important;min-width:80px!important;max-width:80px!important;
    flex:0 0 80px!important;font-size:8.5px!important;padding-left:2px!important;padding-right:2px!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    min-width:80px!important;font-size:8.5px!important;padding-left:2px!important;padding-right:2px!important;
  }
  html:root body.shell[class][class] #appHeader .site-language-top {
    min-width:48px!important;width:48px!important;flex:0 0 48px!important;
  }
}
@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:80px!important;max-width:80px!important;flex:0 0 80px!important;
  }
}
@media (max-width: 350px) {
  html:root body.shell[class][class] #appHeader .brand {
    width:72px!important;min-width:72px!important;max-width:72px!important;
    flex:0 0 72px!important;font-size:12px!important;letter-spacing:-.05em!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup {gap:5px!important;}
}

/* Final header fit tuning: keep button text and language label fully inside their controls. */
@media (max-width: 800px) {
  html:root body.shell[class][class] #appHeader .site-language-top {
    width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;
  }
}
@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader .site-language-top {
    width:48px!important;min-width:48px!important;max-width:48px!important;flex:0 0 48px!important;
  }
  html:root body.shell[class][class] #appHeader #langBtn {
    width:48px!important;min-width:48px!important;max-width:48px!important;flex:0 0 48px!important;
  }
}
@media (max-width: 350px) {
  html:root body.shell[class][class] #appHeader .brand {
    width:76px!important;min-width:76px!important;max-width:76px!important;
    flex:0 0 76px!important;font-size:11.4px!important;letter-spacing:-.05em!important;
  }
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:78px!important;min-width:78px!important;max-width:78px!important;
    flex:0 0 78px!important;font-size:8px!important;
  }
}

@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader .site-language-top,
  html:root body.shell[class][class] #appHeader .site-language-top #langPick {
    width:48px!important;min-width:48px!important;max-width:48px!important;flex:0 0 48px!important;
  }
  html:root body.shell[class][class] #appHeader .site-language-top #langBtn {
    width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 auto!important;
  }
}
@media (min-width: 421px) and (max-width: 800px) {
  html:root body.shell[class][class] #appHeader .site-language-top,
  html:root body.shell[class][class] #appHeader .site-language-top #langPick {
    width:68px!important;min-width:68px!important;max-width:68px!important;flex:0 0 68px!important;
  }
  html:root body.shell[class][class] #appHeader .site-language-top #langBtn {
    width:100%!important;min-width:0!important;max-width:100%!important;flex:1 1 auto!important;
  }
}
@media (max-width: 350px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup {gap:4px!important;}
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:79px!important;min-width:79px!important;max-width:79px!important;flex:0 0 79px!important;
  }
}

@media (max-width: 350px) {
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    font-size:7.5px!important;
  }
}

@media (max-width: 420px) {
  html:root body.shell[class][class] #appHeader .site-language-top,
  html:root body.shell[class][class] #appHeader .site-language-top #langPick {
    width:50px!important;min-width:50px!important;max-width:50px!important;flex:0 0 50px!important;
  }
  html:root body.shell[class][class] #appHeader #langBtn {width:100%!important;min-width:0!important;max-width:100%!important;}
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v200ImportBtn,
  html:root body.shell[class][class] #appHeader #headerUtilityGroup > #v117Downloads {
    width:80px!important;min-width:80px!important;max-width:80px!important;flex:0 0 80px!important;
  }
}
@media (max-width: 350px) {
  html:root body.shell[class][class] #appHeader .brand {
    width:73px!important;min-width:73px!important;max-width:73px!important;
    flex:0 0 73px!important;font-size:10.95px!important;letter-spacing:-.05em!important;
  }
}
@media (min-width: 521px) and (max-width: 800px) {
  html:root body.shell[class][class] #appHeader .site-language-top,
  html:root body.shell[class][class] #appHeader .site-language-top #langPick {
    width:78px!important;min-width:78px!important;max-width:78px!important;flex:0 0 78px!important;
  }
  html:root body.shell[class][class] #appHeader #langBtn {width:100%!important;min-width:0!important;max-width:100%!important;}
}

@media (max-width: 800px) {
  html:root body.shell[class][class] #appHeader #langBtn img {
    width:20px!important;height:14px!important;flex:0 0 20px!important;
  }
  html:root body.shell[class][class] #appHeader #langBtn .ln {
    font-size:9px!important;
  }
  html:root body.shell[class][class] #appHeader #langBtn i {
    font-size:8px!important;
  }
}

@media (max-width: 800px) {
  /* True phone full-screen mode: the viewer covers the site header and bottom tabs too. */
  html:root body.shell[class][class] #cvZoomViewer {
    top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important;height:100dvh!important;max-height:100dvh!important;
    z-index:2147483647!important;box-sizing:border-box!important;
  }
  html:root body.shell[class][class] #cvZoomViewer .zv-bar {
    gap:5px!important;padding:6px 4px!important;
  }
  html:root body.shell[class][class] #cvZoomViewer .zv-bar button {
    min-width:40px!important;min-height:40px!important;height:40px!important;
    padding:0 9px!important;border-radius:9px!important;
  }
  html:root body.shell[class][class] #cvZoomViewer .zv-scroll {
    padding:4px!important;
  }
}
