/* TimeGo bottom dock fix.
 * Makes "More" look exactly like the other tabs (icon over label, no circle),
 * so the dock on place.html matches the dashboard dock.
 * Load this LAST, after every other stylesheet:
 *   <link rel="stylesheet" href="dock-fix.css">
 * The doubled .dock.dock raises specificity so it also beats styles injected by dock-global.js.
 */

html body .dock.dock { align-items: center; }

/* wrapper around the More button: no ring, no fixed size */
html body .dock.dock .dock-more {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: center;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}
html body .dock.dock .dock-more::before,
html body .dock.dock .dock-more::after { display: none !important; }

/* every tab, including More, shares one look */
html body .dock.dock .dock-btn,
html body .dock.dock #dock-more-btn,
html body .dock.dock .dock-more > :not([class*="menu"]):not([class*="pop"]):not([class*="sheet"]):not([class*="panel"]) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  min-width: 84px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: .68rem !important;
  font-weight: 700 !important;
  line-height: normal !important;
  color: #6b645f;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

html body .dock.dock .dock-btn:hover,
html body .dock.dock #dock-more-btn:hover { transform: translateY(-4px); color: #1c1b19; background: transparent !important; }

html body .dock.dock .dock-btn.is-active,
html body .dock.dock .dock-btn.active { background: #ead8c8 !important; color: #7a4a2a; }

/* icons share one box so every label sits on the same line */
html body .dock.dock .di {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.6rem;
  font-size: 1.45rem;
  line-height: 1;
}

/* the popup menu opened by More */
html body .dock.dock .dock-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  min-width: 200px;
}

/* keep the last section clear of the dock */
body { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }

@media (max-width: 860px) {
  html body .dock.dock .dock-btn,
  html body .dock.dock #dock-more-btn,
  html body .dock.dock .dock-more > :not([class*="menu"]):not([class*="pop"]):not([class*="sheet"]):not([class*="panel"]) {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 2px !important;
    font-size: .6rem !important;
  }
  html body .dock.dock .di { font-size: 1.3rem; }
  html body .dock.dock .dock-more { flex: 1 1 0; min-width: 0; }
}