#header {
  color: #fff;
  transition: background-color 0.4s;
  background: #2980b9;
  z-index: 17;
}
#header #header-main-bar {
  height: 40px;
  padding: 7px 10px 0;
}
#header #header-main-bar h1 {
  font-size: 20px;
  line-height: 1.7em;
  padding: 0 10px;
  margin: 0;
  margin-right: 10px;
  float: left;
  border-radius: 3px;
}
#header #header-main-bar h1 .board-header-watch-icon {
  padding-left: 7px;
}
#header #header-main-bar h1 a.fa,
#header #header-main-bar h1 a i.fa {
  color: #fff;
}
#header #header-main-bar h1 .back-btn {
  font-size: 0.9em;
  margin-right: 10px;
}
#header #header-main-bar .wekan-logo {
  margin: 3px auto auto;
  width: 97px;
  opacity: 0.6;
  transition: opacity 0.15s;
  float: right;
}
#header #header-main-bar .wekan-logo:hover {
  opacity: 0.9;
}
#header #header-main-bar .board-header-btns {
  display: block;
  margin-top: 3px;
  width: auto;
}
#header #header-main-bar .board-header-btns.left {
  float: left;
}
#header #header-main-bar .board-header-btns.right {
  float: right;
}
#header #header-main-bar .board-header-btn {
  border-radius: 3px;
  color: #f2f2f2;
  padding: 0;
  height: 28px;
  font-size: 13px;
  float: left;
  overflow: hidden;
  line-height: 28px;
  margin: 0 12px;
}
#header #header-main-bar .board-header-btn i.fa {
  float: left;
  display: block;
  line-height: 28px;
  color: #f2f2f2;
  margin: 0 10px;
}
#header #header-main-bar .board-header-btn i.fa + span {
  display: inline-block;
  margin-top: 1px;
  margin-right: 10px;
}
#header #header-main-bar .board-header-btn .board-header-btn-close {
  float: right;
}
#header #header-main-bar .board-header-btn .board-header-btn-close i.fa {
  margin: 0 6px;
}
#header #header-main-bar .board-header-btn.is-active,
#header #header-main-bar h1.is-clickable.is-active,
#header #header-main-bar .board-header-btn:hover:not(.is-disabled),
#header #header-main-bar h1.is-clickable:hover:not(.is-disabled) {
  background: rgba(0,0,0,0.15);
}
#header #header-main-bar .separator {
  margin: 2px 4px;
  border-left: 1px solid rgba(255,255,255,0.3);
  height: 24px;
  float: left;
}
#header-quick-access {
  color: #fff;
  transition: background-color 0.4s;
  background: #2573a7;
  height: 28px;
  font-size: 12px;
  display: flex;
  z-index: 1000;
  padding: 10px 0px;
  align-items: center;
  flex-wrap: nowrap; /* Prevent wrapping to keep single row */
  min-height: 28px;
  overflow: hidden; /* Prevent content from overflowing */
}
#header-quick-access .home-icon {
  display: flex;
  align-items: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

#header-quick-access .home-icon a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

#header-quick-access .home-icon a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

#header-quick-access .home-icon .fa-home {
  font-size: 16px;
  margin-right: 4px;
}

#header-quick-access .allBoards {
  font-size: 14px;
  padding: 4px 15px;
}
#header-quick-access a {
  text-decoration: none;
}
#header-quick-access i.fa {
  color: #fff;
}
#header-quick-access i.fa:hover {
  color: #ccc;
}
#header-quick-access #header-user-bar,
#header-quick-access #header-new-board-icon,
#header-quick-access ul li {
  color: #d4d4d4;
}
#header-quick-access #header-user-bar .fa,
#header-quick-access #header-new-board-icon .fa,
#header-quick-access ul li .fa {
  color: inherit;
}
#header-quick-access #header-user-bar a:hover,
#header-quick-access #header-new-board-icon a:hover,
#header-quick-access ul li a:hover,
#header-quick-access #header-user-bar a.is-active,
#header-quick-access #header-new-board-icon a.is-active,
#header-quick-access ul li a.is-active {
  color: #fff;
}
#header-quick-access ul.header-quick-access-list {
  transition: opacity 0.2s;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 10px;
  margin: -10px;
  flex: 1; /* Take up available space */
  min-width: 0; /* Allow shrinking below content size */
  display: flex; /* Use flexbox for better control */
  align-items: center;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent; /* Firefox */
}

/* Webkit scrollbar styling for better UX */
#header-quick-access ul.header-quick-access-list::-webkit-scrollbar {
  height: 4px;
}

#header-quick-access ul.header-quick-access-list::-webkit-scrollbar-track {
  background: transparent;
}

#header-quick-access ul.header-quick-access-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

#header-quick-access ul.header-quick-access-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
#header-quick-access ul.header-quick-access-list li {
  display: inline-block; /* Keep inline-block for proper spacing */
  width: auto;
  color: #d9d9d9;
  padding: 12px 0px;
  margin: -10px 0px;
  flex-shrink: 0; /* Prevent items from shrinking */
  white-space: nowrap; /* Prevent text wrapping within items */
}
#header-quick-access ul.header-quick-access-list li a {
  padding: 12px 10px;
  margin: -10px 0px;
}
#header-quick-access ul.header-quick-access-list li a .viewer {
  display: inline;
  white-space: nowrap;
}
#header-quick-access ul.header-quick-access-list li a .viewer p {
  display: inline;
  white-space: nowrap;
}
#header-quick-access ul.header-quick-access-list li.current {
  color: #f2f2f2;
}
#header-quick-access ul.header-quick-access-list li.current.empty {
  padding: 12px 10px 12px 10px;
}
#header-quick-access ul.header-quick-access-list li:first-child .fa-home,
#header-quick-access ul.header-quick-access-list li:nth-child(3) .fa-globe {
  margin-right: 5px;
}
#header-quick-access ul.header-quick-access-list li a.js-create-board {
  margin-left: 5px;
}
#header-quick-access #header-user-bar,
#header-quick-access #header-new-board-icon {
  flex-shrink: 0;
}
#header-quick-access #header-user-bar {
  margin: 2px 0;
}
#header-quick-access #header-user-bar .header-user-bar-avatar {
  float: left;
  position: relative;
  top: -5px;
  margin-right: 5px;
}
#header-quick-access #header-user-bar .header-user-bar-avatar .member,
#header-quick-access #header-help {
  width: 24px;
  height: 24px;
  margin: 0;
  margin-top: 1px;
}

#header-quick-access #header-user-bar .header-user-bar-name,
#header-quick-access #header-help  {
  margin: 4px 8px 0 0;
  float: left;
}

/* Zoom Controls in Header */
#header-quick-access .zoom-controls {
  display: flex;
  align-items: center;
  gap: 0.5vw;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5vh 1vw;
  border-radius: 0.5vw;
  box-shadow: 0 0.2vh 0.5vh rgba(0,0,0,0.1);
  margin: 0 1vw;
  float: left;
}

#header-quick-access .zoom-controls .board-header-btn {
  padding: 0.5vh 0.8vw !important;
  border-radius: 0.3vw !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  transition: all 0.2s ease !important;
  color: #000 !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  float: none !important;
  overflow: visible !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.3vw !important;
}

#header-quick-access .zoom-controls .board-header-btn i {
  color: #000 !important;
  float: none !important;
  display: inline !important;
  line-height: normal !important;
  margin: 0 !important;
}

#header-quick-access .zoom-controls .board-header-btn:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

#header-quick-access .zoom-controls .board-header-btn:hover i {
  color: #fff !important;
}

#header-quick-access .zoom-controls .zoom-level {
  font-weight: bold;
  color: #333;
  min-width: 3vw;
  text-align: center;
  font-size: clamp(12px, 2vw, 14px);
  cursor: pointer;
  padding: 0.3vh 0.5vw;
  border-radius: 0.3vw;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#header-quick-access .zoom-controls .zoom-level:hover {
  background: #f0f0f0;
  color: #000;
}

#header-quick-access .zoom-controls .zoom-display {
  display: inline-block;
}

    #header-quick-access .zoom-controls .zoom-input {
      background: #fff;
      color: #000;
      border: 1px solid #ccc;
      border-radius: 0.3vw;
      padding: 0.3vh 0.5vw;
      font-weight: bold;
      text-align: center;
      width: 100%;
      min-width: 3vw;
      font-size: clamp(12px, 2vw, 14px);
    }

    /* Make zoom input wider on all mobile screens */
    @media screen and (max-width: 800px),
       screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) {
      #header-quick-access .zoom-controls .zoom-input {
        min-width: 50px !important; /* Wider on mobile */
        width: 50px !important; /* Fixed width to show all numbers */
        font-size: 14px !important; /* Slightly larger text */
      }
    }

#header-quick-access .zoom-controls .zoom-input:focus {
  outline: 2px solid #005fcc;
  outline-offset: 1px;
}

/* Mobile Mode Toggle in Header */
#header-quick-access .mobile-mode-toggle {
  display: flex;
  align-items: center;
  margin: 0 1vw;
  float: left;
}

#header-quick-access .mobile-mode-toggle .board-header-btn {
  padding: 0.5vh 0.8vw !important;
  border-radius: 0.3vw !important;
  background: #fff !important;
  border: 1px solid #000 !important;
  transition: all 0.2s ease !important;
  color: #000 !important;
  height: auto !important;
  line-height: normal !important;
  margin: 0 !important;
  float: none !important;
  overflow: visible !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  position: relative !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn i {
  color: #666 !important;
  float: none !important;
  display: inline !important;
  line-height: normal !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  font-size: clamp(14px, 2.8vw, 18px) !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn i.active {
  color: #000 !important;
  font-weight: bold !important;
  transform: scale(1.1) !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn:hover i {
  color: #ccc !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn:hover i.active {
  color: #fff !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active {
  background: #fff !important;
  border-color: #000 !important;
  color: #000 !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.mobile-icon {
  color: #000 !important;
  font-weight: bold !important;
  transform: scale(1.1) !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.mobile-active i.desktop-icon {
  color: #666 !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active {
  background: #fff !important;
  border-color: #000 !important;
  color: #000 !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.mobile-icon {
  color: #666 !important;
}

#header-quick-access .mobile-mode-toggle .board-header-btn.desktop-active i.desktop-icon {
  color: #000 !important;
  font-weight: bold !important;
  transform: scale(1.1) !important;
}
#header-quick-access #header-user-bar .header-user-bar-name i.fa-chevron-down {
  margin-right: 4px;
}
#header-quick-access #header-new-board-icon {
  flex-grow: 1;
  margin: 6px 5px 0;
  width: 12px;
}
@media screen and (max-width: 800px),
       screen and (max-device-width: 932px) and (-webkit-min-device-pixel-ratio: 3) {
  #header #header-main-bar {
    height: 40px;
  }
  #header #header-main-bar .board-header-btns {
    margin-top: 0px;
  }
  #header #header-main-bar .board-header-btn {
    height: 32px;
    line-height: 32px;
    font-size: 15px;
  }
  #header #header-main-bar .board-header-btn i.fa {
    line-height: 32px;
  }
  #header #header-main-bar .board-header-btn i.fa + span {
    display: none;
  }
  #header-quick-access {
    transition: background-color 0.4s;
    width: 100%;
    z-index: 30;
    flex-wrap: nowrap !important; /* Force single row on mobile */
    overflow: hidden; /* Prevent content overflow */
  }

  /* Mobile home icon styling */
  #header-quick-access .home-icon {
    margin-right: 0.5rem;
  }

  #header-quick-access .home-icon .fa-home {
    font-size: 16px;
    margin-right: 4px;
  }

  #header-quick-access .home-icon a {
    padding: 4px 8px;
    font-size: 12px;
  }

  /* Ensure All Boards text is visible on mobile */
  #header-quick-access .home-icon.allBoards {
    display: flex;
    align-items: center;
  }

  /* Adjust for very small screens */
  @media screen and (max-width: 480px) {
    #header-quick-access .home-icon a {
      font-size: 11px;
      padding: 3px 6px;
    }

    #header-quick-access .home-icon .fa-home {
      font-size: 14px;
      margin-right: 3px;
    }
  }

  /* Mobile - make all text and icons 2x bigger above #content by default */
  @media screen and (max-width: 800px),
         screen and (max-device-width: 800px),
         screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 800px),
         screen and (max-width: 800px) and (orientation: portrait),
         screen and (max-width: 800px) and (orientation: landscape) {
    #header-quick-access {
      height: 48px !important; /* Fixed height for mobile */
      min-height: 48px !important; /* Minimum height for mobile */
      flex-wrap: nowrap !important; /* Force single row */
      align-items: center !important; /* Center align items */
      padding: 8px 0px !important; /* Adjust padding for mobile */
      overflow: hidden !important; /* Prevent content overflow */
    }
    #header-quick-access {
      font-size: 2em !important; /* 2x bigger base font size */
    }

    #header-quick-access * {
      font-size: inherit !important; /* Inherit the 2x scaling */
    }

    #header-quick-access .fa,
    #header-quick-access .icon {
      font-size: 2em !important; /* 2x bigger icons */
    }

    #header-quick-access .home-icon a {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .home-icon .fa-home {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls .zoom-level {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls .zoom-input {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .mobile-mode-toggle .board-header-btn {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .mobile-mode-toggle .board-header-btn i {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    /* Mobile header wrapping and spacing */
    #header-quick-access .home-icon {
      flex-shrink: 0 !important;
      margin-right: 0.5rem !important;
      margin-bottom: 4px !important;
    }

    #header-quick-access .zoom-controls {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 4px !important;
    }

    #header-quick-access .mobile-mode-toggle {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 4px !important;
    }

    #header-quick-access #notifications {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 4px !important;
    }

    #header-quick-access #header-user-bar {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 4px !important;
    }

    #header-quick-access ul.header-quick-access-list {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 4px !important;
      width: auto !important;
    }
  }

  /* Mobile All Boards page - make logo row elements 2x bigger */
  @media screen and (max-width: 800px),
         screen and (max-device-width: 800px),
         screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 800px),
         screen and (max-width: 800px) and (orientation: portrait),
         screen and (max-width: 800px) and (orientation: landscape) {
    .wrapper ~ #header-quick-access,
    body:not(.board-view) #header-quick-access {
      font-size: 2em !important; /* 2x bigger base font size for logo row */
    }

    /* iPhone 12 Mini specific - 3x bigger for All Boards page */
    @media screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
           screen and (max-width: 375px) and (max-height: 812px), /* iPhone 12 Mini viewport */
           screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 375px) /* iPhone 12 Mini Retina */ {
      .wrapper ~ #header-quick-access,
      body:not(.board-view) #header-quick-access {
        font-size: 3em !important; /* 3x bigger base font size for iPhone 12 Mini All Boards page */
      }
    }

    .wrapper ~ #header-quick-access *,
    body:not(.board-view) #header-quick-access * {
      font-size: inherit !important; /* Inherit the 2x scaling */
    }

    .wrapper ~ #header-quick-access .fa,
    .wrapper ~ #header-quick-access .icon,
    body:not(.board-view) #header-quick-access .fa,
    body:not(.board-view) #header-quick-access .icon {
      font-size: 2em !important; /* 2x bigger icons in logo row */
    }

    .wrapper ~ #header-quick-access .home-icon a,
    body:not(.board-view) #header-quick-access .home-icon a {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .home-icon .fa-home,
    body:not(.board-view) #header-quick-access .home-icon .fa-home {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .zoom-controls,
    body:not(.board-view) #header-quick-access .zoom-controls {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .zoom-controls .zoom-level,
    body:not(.board-view) #header-quick-access .zoom-controls .zoom-level {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .zoom-controls .zoom-input,
    body:not(.board-view) #header-quick-access .zoom-controls .zoom-input {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn,
    body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn i,
    body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn i {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access #notifications,
    body:not(.board-view) #header-quick-access #notifications {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access #notifications .fa,
    body:not(.board-view) #header-quick-access #notifications .fa {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access #header-user-bar,
    body:not(.board-view) #header-quick-access #header-user-bar {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    .wrapper ~ #header-quick-access #header-user-bar .fa,
    body:not(.board-view) #header-quick-access #header-user-bar .fa {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }
  }

  /* iPhone 12 Mini specific - make header elements 3x bigger */
  @media screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
         screen and (max-width: 375px) and (max-height: 812px), /* iPhone 12 Mini viewport */
         screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 375px), /* iPhone 12 Mini Retina */
         screen and (max-width: 375px) and (orientation: portrait), /* iPhone 12 Mini portrait */
         screen and (max-width: 375px) and (orientation: landscape) /* iPhone 12 Mini landscape */ {
    #header-quick-access {
      font-size: 3em !important; /* 3x bigger base font size for iPhone 12 Mini */
      height: auto !important; /* Allow height to grow */
      min-height: 84px !important; /* Much taller minimum height for iPhone 12 Mini */
      flex-wrap: wrap !important; /* Force wrapping */
      align-items: flex-start !important; /* Align to top when wrapping */
      padding: 18px 0px !important; /* More padding for iPhone 12 Mini */
    }

    #header-quick-access * {
      font-size: inherit !important; /* Inherit the 2x scaling */
    }

    #header-quick-access .fa,
    #header-quick-access .icon {
      font-size: 3em !important; /* 3x bigger icons for iPhone 12 Mini */
    }

    #header-quick-access .home-icon a {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .home-icon .fa-home {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls .zoom-level {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .zoom-controls .zoom-input {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .mobile-mode-toggle .board-header-btn {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access .mobile-mode-toggle .board-header-btn i {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access #notifications {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access #notifications .fa {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access #header-user-bar {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    #header-quick-access #header-user-bar .fa {
      font-size: 1em !important; /* Use inherited 2x scaling */
    }

    /* iPhone 12 Mini header wrapping and spacing */
    #header-quick-access .home-icon {
      flex-shrink: 0 !important;
      margin-right: 0.5rem !important;
      margin-bottom: 6px !important;
    }

    #header-quick-access .zoom-controls {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 6px !important;
    }

    #header-quick-access .mobile-mode-toggle {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 6px !important;
    }

    #header-quick-access #notifications {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 6px !important;
    }

    #header-quick-access #header-user-bar {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 6px !important;
    }

    #header-quick-access ul.header-quick-access-list {
      flex-shrink: 0 !important;
      margin: 0 0.5rem !important;
      margin-bottom: 6px !important;
      width: auto !important;
    }
  }

  /* iPhone 12 Mini and very small screens - make header elements much larger */
  @media screen and (max-width: 400px) and (max-height: 900px),
         screen and (max-device-width: 400px) and (max-device-height: 900px),
         screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 400px),
         screen and (max-width: 400px) and (orientation: portrait),
         screen and (max-width: 400px) and (orientation: landscape),
         screen and (max-width: 430px) and (max-height: 950px), /* iPhone 12 Mini range */
         screen and (max-width: 450px) and (max-height: 1000px), /* iPhone range */
         screen and (-webkit-min-device-pixel-ratio: 3) and (max-width: 450px), /* Retina displays */
         screen and (device-width: 375px) and (device-height: 812px), /* iPhone 12 Mini exact */
         screen and (device-width: 390px) and (device-height: 844px), /* iPhone 12/13 */
         screen and (device-width: 428px) and (device-height: 926px) /* iPhone 12 Pro Max */ {
    #header-quick-access {
      height: 40px !important; /* Taller header */
      padding: 12px 0px !important;
    }

    #header-quick-access .home-icon a {
      font-size: 16px !important; /* Much larger text */
      padding: 8px 12px !important;
    }

    #header-quick-access .home-icon .fa-home {
      font-size: 20px !important; /* Much larger icon */
      margin-right: 6px !important;
    }

    #header-quick-access .home-icon {
      margin-right: 1rem !important;
    }

    /* Make zoom controls larger */
    #header-quick-access .zoom-controls {
      padding: 0.8vh 1.5vw !important;
      margin: 0 1.5vw !important;
    }

    #header-quick-access .zoom-controls .zoom-level {
      font-size: 16px !important; /* Larger zoom text */
      padding: 0.5vh 0.8vw !important;
      min-width: 4vw !important;
    }

    #header-quick-access .zoom-controls .zoom-input {
      font-size: 16px !important; /* Larger input text */
      padding: 0.5vh 0.8vw !important;
      min-width: 6vw !important; /* Much wider for mobile */
      width: 60px !important; /* Fixed width to show all numbers */
    }

    /* Make mobile mode toggle larger */
    #header-quick-access .mobile-mode-toggle .board-header-btn {
      padding: 0.8vh 1.2vw !important;
      font-size: 16px !important;
    }

    #header-quick-access .mobile-mode-toggle .board-header-btn i {
      font-size: 18px !important;
    }
  }

  /* Fallback for iPhone devices using JavaScript detection */
  .iphone-device #header-quick-access {
    font-size: 2em !important; /* 2x bigger base font size */
    height: auto !important; /* Allow height to grow */
    min-height: 48px !important; /* Minimum height for mobile */
    flex-wrap: wrap !important; /* Force wrapping */
    align-items: flex-start !important; /* Align to top when wrapping */
    padding: 8px 0px !important; /* Adjust padding for mobile */
  }

  .iphone-device #header-quick-access * {
    font-size: inherit !important; /* Inherit the 2x scaling */
  }

  .iphone-device #header-quick-access .fa,
  .iphone-device #header-quick-access .icon {
    font-size: 2em !important; /* 2x bigger icons */
  }

  .iphone-device #header-quick-access .home-icon a {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .home-icon .fa-home {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls .zoom-level {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls .zoom-input {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn i {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  /* iPhone device header wrapping and spacing */
  .iphone-device #header-quick-access .home-icon {
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
    margin-bottom: 4px !important;
  }

  .iphone-device #header-quick-access .zoom-controls {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 4px !important;
  }

  .iphone-device #header-quick-access .mobile-mode-toggle {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 4px !important;
  }

  .iphone-device #header-quick-access #notifications {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 4px !important;
  }

  .iphone-device #header-quick-access #header-user-bar {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 4px !important;
  }

  .iphone-device #header-quick-access ul.header-quick-access-list {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 4px !important;
    width: auto !important;
  }

  /* iPhone 12 Mini specific - JavaScript detection fallback */
  .iphone-device #header-quick-access {
    font-size: 3em !important; /* 3x bigger base font size for iPhone 12 Mini */
    height: auto !important; /* Allow height to grow */
    min-height: 84px !important; /* Much taller minimum height for iPhone 12 Mini */
    flex-wrap: wrap !important; /* Force wrapping */
    align-items: flex-start !important; /* Align to top when wrapping */
    padding: 18px 0px !important; /* More padding for iPhone 12 Mini */
  }

  .iphone-device #header-quick-access * {
    font-size: inherit !important; /* Inherit the 2x scaling */
  }

  .iphone-device #header-quick-access .fa,
  .iphone-device #header-quick-access .icon {
    font-size: 3em !important; /* 3x bigger icons for iPhone 12 Mini */
  }

  .iphone-device #header-quick-access .home-icon a {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .home-icon .fa-home {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls .zoom-level {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .zoom-controls .zoom-input {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access .mobile-mode-toggle .board-header-btn i {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access #notifications {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access #notifications .fa {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access #header-user-bar {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device #header-quick-access #header-user-bar .fa {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  /* iPhone 12 Mini header wrapping and spacing - JavaScript fallback */
  .iphone-device #header-quick-access .home-icon {
    flex-shrink: 0 !important;
    margin-right: 0.5rem !important;
    margin-bottom: 6px !important;
  }

  .iphone-device #header-quick-access .zoom-controls {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 6px !important;
  }

  .iphone-device #header-quick-access .mobile-mode-toggle {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 6px !important;
  }

  .iphone-device #header-quick-access #notifications {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 6px !important;
  }

  .iphone-device #header-quick-access #header-user-bar {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 6px !important;
  }

  .iphone-device #header-quick-access ul.header-quick-access-list {
    flex-shrink: 0 !important;
    margin: 0 0.5rem !important;
    margin-bottom: 6px !important;
    width: auto !important;
  }

  /* iPhone 12 Mini All Boards page - make logo row elements 3x bigger */
  .iphone-device .wrapper ~ #header-quick-access,
  .iphone-device body:not(.board-view) #header-quick-access {
    font-size: 3em !important; /* 3x bigger base font size for logo row */
  }

  .iphone-device .wrapper ~ #header-quick-access *,
  .iphone-device body:not(.board-view) #header-quick-access * {
    font-size: inherit !important; /* Inherit the 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .fa,
  .iphone-device .wrapper ~ #header-quick-access .icon,
  .iphone-device body:not(.board-view) #header-quick-access .fa,
  .iphone-device body:not(.board-view) #header-quick-access .icon {
    font-size: 2em !important; /* 2x bigger icons in logo row */
  }

  .iphone-device .wrapper ~ #header-quick-access .home-icon a,
  .iphone-device body:not(.board-view) #header-quick-access .home-icon a {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .home-icon .fa-home,
  .iphone-device body:not(.board-view) #header-quick-access .home-icon .fa-home {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .zoom-controls,
  .iphone-device body:not(.board-view) #header-quick-access .zoom-controls {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .zoom-controls .zoom-level,
  .iphone-device body:not(.board-view) #header-quick-access .zoom-controls .zoom-level {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .zoom-controls .zoom-input,
  .iphone-device body:not(.board-view) #header-quick-access .zoom-controls .zoom-input {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn,
  .iphone-device body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access .mobile-mode-toggle .board-header-btn i,
  .iphone-device body:not(.board-view) #header-quick-access .mobile-mode-toggle .board-header-btn i {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access #notifications,
  .iphone-device body:not(.board-view) #header-quick-access #notifications {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access #notifications .fa,
  .iphone-device body:not(.board-view) #header-quick-access #notifications .fa {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access #header-user-bar,
  .iphone-device body:not(.board-view) #header-quick-access #header-user-bar {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  .iphone-device .wrapper ~ #header-quick-access #header-user-bar .fa,
  .iphone-device body:not(.board-view) #header-quick-access #header-user-bar .fa {
    font-size: 1em !important; /* Use inherited 2x scaling */
  }

  #header-quick-access ul {
    width: calc(100% - 60px);
    margin-right: 10px;
  }
  #header-quick-access ul li {
    height: 100%;
  }
  #header-quick-access ul li a {
    height: 100%;
  }
  #header-quick-access #header-new-board-icon {
    display: none;
  }
  #header-quick-access #header-user-bar {
    right: 0px;
    padding: 10px;
    margin: -8px 0 -10px -10px;
  }
}
@media print {
  #header-quick-access .allBoards,
  #header-quick-access ul,
  #header-quick-access .js-toggle-desktop-drag-handles,
  #header-quick-access #notifications,
  #header-quick-access #header-new-board-icon,
  #header #header-main-bar .board-header-btns {
    display: none;
  }
  #header #header-user-bar {
    float: right;
  }
}
.announcement .viewer {
  display: inline-block;
}
.announcement,
.offline-warning {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  background: #f8ecbd;
  clear: both;
}
.announcement p,
.offline-warning p {
  margin: 7px;
  padding: 0;
}
#headerIsSettingDatabaseCallDone {
  display: none;
}
