/* MYC V1.7.9 — nav-adjacent visit counter, desktop + mobile UI only. */
.mycNavRow {
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; width:100%; min-width:0; box-sizing:border-box;
  margin:0 0 18px;
}
.mycNavRow > nav {
  display:flex; align-items:center; flex-wrap:wrap;
  flex:1 1 auto; min-width:0; width:auto; max-width:none;
  margin:0; padding:0; gap:10px;
}
.mycNavRow > nav > .tab { flex:0 0 auto; white-space:nowrap; }
.mycNavRow > .mycVisitCounter {
  flex:0 0 auto; margin-left:auto; min-width:0;
  padding:8px 11px; white-space:nowrap;
  background:rgba(18,32,60,.48);
  border:1px solid rgba(113,151,218,.23);
  border-radius:12px;
}
.mycNavRow > .mycVisitCounter .mycVisitCounterLabel {
  background:none!important; border:0!important; border-radius:0!important;
  padding:0!important; font-weight:500!important; color:#b9c9e8!important;
}
.mycNavRow > .mycVisitCounter .mycVisitCounterNum {font-size:17px;}
/* Leave the brand name and version in the top banner, independent of the counter. */
@media screen and (min-width:768px) and (max-width:1060px) {
  .mycNavRow {flex-wrap:wrap; row-gap:12px;}
  .mycNavRow > .mycVisitCounter {margin-left:auto;}
}
@media screen and (max-width:767px) {
  /* Keep V1.7.8's six-tab, three-column navigation without changing desktop rules. */
  body > .wrap > header .mycHeaderRight {
    width:100%!important; justify-content:flex-end!important;
    align-items:center!important;
  }
  body > .wrap > .mycNavRow {
    display:flex!important; flex-direction:column!important;
    gap:10px!important; align-items:stretch!important;
    width:100%!important; margin:0 0 14px!important;
  }
  body > .wrap > .mycNavRow > nav:not(.mrQuickDock) {
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    gap:8px!important; align-items:stretch!important;
    justify-items:stretch!important;
    flex:0 0 auto!important; width:100%!important;
    max-width:100%!important; min-width:0!important;
    min-height:0!important; padding:0!important; margin:0!important;
    overflow:visible!important; box-sizing:border-box!important;
  }
  body > .wrap > .mycNavRow > nav:not(.mrQuickDock) > .tab {
    display:flex!important; align-items:center!important; justify-content:center!important;
    width:100%!important; max-width:100%!important; min-width:0!important;
    height:auto!important; min-height:43px!important;
    padding:10px 4px!important; margin:0!important;
    text-align:center!important; font-size:clamp(11px,2.8vw,13px)!important;
    line-height:1.25!important; white-space:normal!important;
    word-break:keep-all!important; overflow-wrap:normal!important;
    writing-mode:horizontal-tb!important; border-radius:11px!important;
    box-sizing:border-box!important; box-shadow:none!important;
  }
  body > .wrap > .mycNavRow > nav:not(.mrQuickDock) > .tab.active {
    background:#6857f2!important; color:white!important;
    box-shadow:0 3px 12px rgba(100,83,234,.19)!important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter {
    align-self:flex-end!important; flex:0 1 auto!important;
    max-width:100%!important; width:auto!important; min-width:0!important;
    margin:0!important; padding:8px 10px!important;
    gap:6px!important; justify-content:flex-end!important;
    white-space:normal!important; border-radius:11px!important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter .mycVisitCounterLabel {
    white-space:normal!important; word-break:keep-all!important;
    font-size:10.5px!important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter .mycVisitCounterNum {
    font-size:15px!important; white-space:nowrap!important;
  }
}
@media screen and (max-width:359px) {
  body > .wrap > .mycNavRow > nav:not(.mrQuickDock) {gap:6px!important;}
  body > .wrap > .mycNavRow > nav:not(.mrQuickDock) > .tab {
    font-size:10.5px!important; padding:9px 2px!important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter .mycVisitCounterLabel {font-size:10px!important;}
}

/* V1.7.10: desktop counter stays beside navigation; mobile remains by the header version. */
.mycHeaderRight > .mycMobileVisitCounter { display:none !important; }
@media screen and (max-width:767px) {
  body > .wrap > header .mycHeaderRight {
    display:flex!important;flex-direction:row!important;
    justify-content:space-between!important;align-items:center!important;
    flex-wrap:wrap!important;gap:8px!important;width:100%!important;
  }
  body > .wrap > header .mycHeaderRight > .mycMobileVisitCounter {
    display:flex!important;flex:0 1 auto!important;max-width:100%!important;
    width:auto!important;min-width:0!important;margin:0!important;
    padding:7px 9px!important;gap:5px!important;
    justify-content:flex-start!important;white-space:normal!important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter {display:none!important;}
  body > .wrap > header .mycMobileVisitCounter .mycVisitCounterLabel {
    font-size:10.5px!important;white-space:normal!important;
    overflow-wrap:normal!important;word-break:keep-all!important;
  }
  body > .wrap > header .mycMobileVisitCounter .mycVisitCounterNum {font-size:15px!important;}
  body > .wrap > .mycNavRow {gap:0!important;}
}

/* V1.7.12: desktop breathing room between header card and navigation.
   This rule does not affect the mobile header/counter/nav arrangement. */
@media screen and (min-width:768px) {
  body > .wrap > .mycNavRow {
    margin-top:24px !important;
  }
}

/* V1.7.13 — desktop service-counter redesign, preserving all mobile rules.
   Purple pill is the label only; no outer container border/background. */
@media screen and (min-width:768px) {
  body > .wrap > .mycNavRow > .mycVisitCounter {
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    gap:8px !important;
    padding:0 !important;
    margin-left:auto !important;
    background:transparent !important;
    background-image:none !important;
    border:0 !important;
    outline:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter > .mycVisitCounterDot {
    width:9px !important;
    height:9px !important;
    border-radius:999px !important;
    background:#64e7d2 !important;
    box-shadow:0 0 10px rgba(100,231,210,.48) !important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter > .mycVisitCounterLabel {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:linear-gradient(115deg,#7966ff 0%,#6553e9 100%) !important;
    border:0 !important;
    border-radius:999px !important;
    padding:8px 13px !important;
    color:#fff !important;
    font-size:11px !important;
    font-weight:600 !important;
    line-height:1.25 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    box-shadow:0 3px 12px rgba(86,77,223,.20) !important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter > .mycVisitCounterNum {
    font-size:18px !important;
    font-weight:800 !important;
    line-height:1 !important;
    color:#75f4dd !important;
  }
  body > .wrap > .mycNavRow > .mycVisitCounter > .mycVisitCounterUnit {
    font-size:11px !important;
    color:#c3d5f4 !important;
    white-space:nowrap !important;
  }
}

/* MYC V1.7.14 — mobile counter pill, matched to the mobile violet header.
   Counter remains in header beneath/by version; desktop V1.7.13 is untouched.
   Keep the teal indicator dot on both desktop and mobile. */
@media screen and (max-width:767px) {
  body > .wrap > header .mycHeaderRight > .mycMobileVisitCounter {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    flex:0 1 auto !important;
    width:max-content !important;
    min-width:0 !important;
    max-width:100% !important;
    box-sizing:border-box !important;
    gap:6px !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    background-image:none !important;
    border:0 !important;
    outline:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    white-space:nowrap !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterDot {
    display:block !important;
    flex:0 0 auto !important;
    width:8px !important;
    height:8px !important;
    border-radius:999px !important;
    background:#65e6d1 !important;
    box-shadow:0 0 10px rgba(101,230,209,.48) !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterLabel {
    display:inline-flex !important;
    flex:0 1 auto !important;
    align-items:center !important;
    justify-content:center !important;
    min-width:0 !important;
    padding:7px 10px !important;
    border:0 !important;
    border-radius:999px !important;
    background:linear-gradient(110deg,#7464ed 0%,#6053c6 100%) !important;
    color:#f9f7ff !important;
    font-weight:600 !important;
    font-size:10px !important;
    line-height:1.3 !important;
    letter-spacing:0 !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    box-shadow:0 3px 12px rgba(81,65,181,.16) !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterNum {
    flex:0 0 auto !important;
    color:#78f1dc !important;
    font-size:16px !important;
    font-weight:800 !important;
    line-height:1 !important;
    white-space:nowrap !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterUnit {
    flex:0 0 auto !important;
    color:#cbd6f1 !important;
    font-size:10px !important;
    font-style:normal !important;
    white-space:nowrap !important;
  }
}
@media screen and (max-width:359px) {
  body > .wrap > header .mycMobileVisitCounter {gap:4px !important;}
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterLabel {
    font-size:9px !important;
    padding:6px 8px !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterNum {
    font-size:14px !important;
  }
}

/* MYC V1.7.15: hide only the mobile counter indicator dot.
   Desktop dot, mobile violet label, visit count, and positioning are unchanged. */
@media screen and (max-width:767px) {
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterDot {
    display: none !important;
  }
}


/* MYC V1.7.16 — mobile header precision layout ONLY.
   Version goes to the header's top-right, while visit total starts flush left.
   Title and process subtitle are kept in a single line. Desktop unchanged. */
@media screen and (max-width:767px) {
  body > .wrap > header {
    position:relative !important;
    padding-top:40px !important; /* dedicated top row for small version badge */
    overflow:hidden !important;
    gap:9px !important;
  }
  body > .wrap > header > div:first-child {
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
  body > .wrap > header h1 {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    font-size:clamp(14px,4.05vw,19px) !important;
    line-height:1.3 !important;
    letter-spacing:-0.5px !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    text-overflow:clip !important;
    margin:0 0 9px !important;
  }
  body > .wrap > header > div:first-child > p {
    display:block !important;
    max-width:100% !important;
    width:100% !important;
    font-size:clamp(9px,2.55vw,11px) !important;
    letter-spacing:-0.3px !important;
    line-height:1.55 !important;
    white-space:nowrap !important;
    overflow-wrap:normal !important;
    word-break:keep-all !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    scrollbar-width:none !important;
  }
  body > .wrap > header > div:first-child > p::-webkit-scrollbar {
    display:none !important;
  }
  body > .wrap > header .mycHeaderRight {
    position:static !important;
    display:flex !important;
    flex-direction:row !important;
    justify-content:flex-start !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    min-width:0 !important;
    margin:5px 0 0 !important;
    padding:0 !important;
    gap:0 !important;
  }
  body > .wrap > header .mycHeaderRight > #mycWorkbenchVersion {
    position:absolute !important;
    top:13px !important;
    right:14px !important;
    left:auto !important;
    z-index:2 !important;
    display:inline-flex !important;
    font-size:10px !important;
    font-weight:700 !important;
    line-height:1 !important;
    padding:6px 9px !important;
    margin:0 !important;
    min-width:0 !important;
    width:auto !important;
    height:auto !important;
    white-space:nowrap !important;
  }
  body > .wrap > header .mycHeaderRight > .mycMobileVisitCounter {
    display:inline-flex !important;
    align-self:flex-start !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    flex:0 1 auto !important;
    margin:0 !important;
    margin-left:0 !important;
    margin-right:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    text-align:left !important;
    white-space:nowrap !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterLabel {
    font-size:clamp(8.4px,2.45vw,10.5px) !important;
    padding:7px 9px !important;
    white-space:nowrap !important;
    flex:0 1 auto !important;
    min-width:0 !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterNum {
    font-size:clamp(14px,3.7vw,16px) !important;
    white-space:nowrap !important;
  }
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterDot {
    display:none !important;
  }
}
@media screen and (max-width:359px) {
  body > .wrap > header { padding-top:35px !important; }
  body > .wrap > header .mycHeaderRight > #mycWorkbenchVersion {
    top:10px !important;right:11px !important;
    font-size:9px !important;padding:5px 8px !important;
  }
  body > .wrap > header h1 {
    font-size:clamp(13px,4.0vw,14px) !important;
    letter-spacing:-.55px !important;
  }
  body > .wrap > header .mycMobileVisitCounter {gap:4px !important;}
  body > .wrap > header .mycMobileVisitCounter > .mycVisitCounterLabel {
    font-size:8.5px !important;
    padding:6px 8px !important;
  }
}

/* MYC V1.7.17 — Restore a prominent mobile main heading.
   Keep the V1.7.16 one-line layout, top-right version badge and left-aligned
   counter unchanged. Do not modify desktop layout or feature panels. */
@media screen and (max-width:767px) {
  body > .wrap > header h1 {
    font-size:clamp(18px,5.75vw,24px) !important;
    line-height:1.28 !important;
    letter-spacing:-.5px !important;
    white-space:nowrap !important;
    word-break:keep-all !important;
    overflow-wrap:normal !important;
  }
}


/* MYC V1.7.18 — compact mobile heading row: title and version on the same
   visual line. Remove V1.7.16's empty top badge row. Only phone widths.
   Counter, navigation, and desktop positions are unchanged. */
@media screen and (max-width:767px) {
  body > .wrap > header {
    position:relative !important;
    padding-top:17px !important;
    padding-bottom:17px !important;
    gap:7px !important;
  }
  body > .wrap > header > div:first-child {
    overflow:hidden !important;
    min-width:0 !important;
  }
  body > .wrap > header h1 {
    font-size:clamp(18px,5.75vw,24px) !important;
    line-height:1.28 !important;
    white-space:nowrap !important;
    width:calc(113.64% - 66px) !important;
    max-width:none !important;
    transform:scaleX(.88) !important;
    transform-origin:left center !important;
    margin:0 0 8px !important;
    padding:0 !important;
    letter-spacing:-.5px !important;
    text-overflow:clip !important;
  }
  body > .wrap > header .mycHeaderRight > #mycWorkbenchVersion {
    position:absolute !important;
    top:20px !important;
    right:15px !important;
    left:auto !important;
    z-index:2 !important;
    font-size:9px !important;
    padding:6px 8px !important;
    line-height:1 !important;
    white-space:nowrap !important;
    margin:0 !important;
  }
  body > .wrap > header .mycHeaderRight {
    margin-top:3px !important;
  }
}
@media screen and (max-width:359px) {
  body > .wrap > header { padding-top:17px !important; }
  body > .wrap > header h1 {
    font-size:clamp(18px,5.75vw,24px) !important;
    width:calc(121.95% - 71px) !important;
    transform:scaleX(.82) !important;
  }
  body > .wrap > header .mycHeaderRight > #mycWorkbenchVersion {
    top:20px !important;
    right:12px !important;
    font-size:8.5px !important;
    padding:5px 7px !important;
  }
}
@media screen and (min-width:360px) and (max-width:389px) {
  body > .wrap > header h1 {
    width:calc(114.94% - 67px) !important;
    transform:scaleX(.87) !important;
  }
}
@media screen and (min-width:390px) and (max-width:409px) {
  body > .wrap > header h1 {
    width:calc(111.11% - 65px) !important;
    transform:scaleX(.90) !important;
  }
}
@media screen and (min-width:410px) and (max-width:424px) {
  body > .wrap > header h1 {
    width:calc(108.70% - 63px) !important;
    transform:scaleX(.92) !important;
  }
}
@media screen and (min-width:425px) and (max-width:767px) {
  body > .wrap > header h1 {
    width:calc(105.26% - 61px) !important;
    transform:scaleX(.95) !important;
  }
}


/* MYC V1.7.25 | Mobile title glyph proportion fix.
   The V1.7.18 scaleX(.82-.95) compressed glyph width while retaining height,
   creating a vertically stretched appearance. Keep a natural aspect ratio.
   Do not change desktop styles, the version badge or the visit counter. */
@media screen and (max-width: 767px) {
  body > .wrap > header h1 {
    transform: none !important;
    transform-origin: initial !important;
    width: calc(100% - 53px) !important;
    max-width: calc(100% - 53px) !important;
    min-width: 0 !important;
    font-size: clamp(15px, 5vw, 22px) !important;
    font-stretch: normal !important;
    line-height: 1.28 !important;
    letter-spacing: -.65px !important;
    white-space: nowrap !important;
  }
}
@media screen and (max-width: 359px) {
  body > .wrap > header h1 {
    font-size: clamp(15px, 5vw, 17px) !important;
    width: calc(100% - 50px) !important;
    max-width: calc(100% - 50px) !important;
    letter-spacing: -.7px !important;
  }
}
