.shell aside nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  background: none;
  color: #acc0b8;
  font-weight: bold;
  text-decoration: none;
}

.shell aside nav a:hover,
.shell aside nav a:focus-visible,
.shell aside nav a.active {
  background: #ffffff14;
  color: #fff;
  outline: none;
}

.mobile-nav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 0;
  background: none;
  color: var(--green);
  font-weight: bold;
  text-decoration: none;
}

.mobile-nav a.active {
  color: var(--orange);
}

.mobile-nav .mobile-add {
  display: grid;
  width: 48px;
  height: 48px;
  margin-top: -25px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

/* The desktop sidebar is hidden at 800px; every module must remain reachable. */
.mobile-nav {
  z-index: 100;
}

.mobile-module-menu summary {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--green);
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
}

.mobile-module-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-module-menu nav {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 12px;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  margin: 0;
  padding: 8px;
  background: white;
  border: 1px solid #ccd1cd;
  border-radius: 10px;
  box-shadow: 0 8px 30px #14251f30;
}

.mobile-module-menu nav a {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 6px;
}

.mobile-module-menu nav a:hover,
.mobile-module-menu nav a:focus-visible,
.mobile-module-menu nav a[aria-current="page"] {
  background: #e3f0e7;
  color: var(--green);
  outline-offset: -2px;
}

/* Scroll the established sidebar; keep every destination reachable. */
.shell>aside{overflow-y:auto;overscroll-behavior:contain}.shell>aside>.logo{flex-shrink:0}.shell>aside nav{flex-shrink:0}.shell>aside nav.bottom{margin-top:20px}.mc-nav-parent{display:flex;align-items:stretch;gap:2px}.mc-nav-parent>a{flex:1;min-width:0}.mc-nav-parent>button{min-width:44px;min-height:44px;padding:8px;border:1px solid #8da78c;border-radius:8px;background:#f1f6ee;color:#225336}.mc-nav-shortcuts{padding:4px 0 8px 18px;border-left:2px solid #8da78c;margin-left:14px}.mc-nav-shortcuts[hidden]{display:none}.shell aside .mc-nav-shortcuts a{padding:9px;font-size:13px;min-height:40px}.mc-nav-destination :is(a,button):focus-visible{outline:3px solid #e66a2c;outline-offset:2px}.mobile-module-menu .mc-nav-destination{width:100%}.mobile-module-menu .mc-nav-parent a,.mobile-module-menu .mc-nav-shortcuts a{display:flex;justify-content:flex-start}.mc-nav-shortcuts a:hover{background:#205638;color:white}.mc-nav-parent button[aria-expanded=true]{background:#dcebdc}

/* Existing Add Part modal must sit above the sticky route header. */
.parts-screen .add-part-panel.open{z-index:120}

@media(max-width:650px){.parts-screen .parts-nav{display:flex;flex-wrap:wrap;gap:8px;max-width:100%}.parts-screen .parts-nav a{max-width:100%;font-size:12px;padding:8px 10px;white-space:normal}.parts-screen .parts-nav-actions{display:flex;flex:1 1 100%;flex-wrap:wrap;gap:8px;min-width:0}.parts-screen .equipment-documents{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}.parts-screen .equipment-documents>*{min-width:0;max-width:100%}.parts-screen .document-upload{grid-template-columns:minmax(0,1fr)}.parts-screen .document-upload label,.parts-screen .document-upload select,.parts-screen .document-upload input{min-width:0;max-width:100%;width:100%}}

.mc-nav-parent>button{display:inline-flex;align-items:center;justify-content:center;gap:4px;font-size:11px;flex-shrink:0}

/* Keep the More panel stable while explicit shortcut rows expand. */
.mobile-module-menu nav{height:min(650px,calc(100dvh - 100px));align-content:start;overflow-anchor:none}

/* Arrow-only disclosure; retain a comfortable pointer and touch target. */
.mc-nav-parent>button{font-size:22px}

/* Calm disclosure motion without delaying pointer or keyboard input. */
.mc-nav-shortcuts:not([hidden]){animation:mc-shortcut-reveal 180ms ease-out both;transform-origin:top}
@keyframes mc-shortcut-reveal{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.mc-nav-shortcuts:not([hidden]){animation:none}}

/* Bare disclosure arrow; preserve touch target and keyboard focus. */
.mc-nav-parent>button,.mc-nav-parent>button:is(:hover,:active,[aria-expanded=true]){border:0;border-radius:0;background:transparent;box-shadow:none;color:#225336}

/* Dashboard fuel actions: presentation only, no tank or fuel logic changes. */
.dashboard-fuel-tanks>header h2,.dashboard-fuel-tanks>header small{color:#fff;text-shadow:0 1px 3px #14251f}
.dashboard-fuel-tanks>header a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #8da78c;border-radius:8px;background:#f1f6ee;color:#225336;font-weight:800;text-decoration:none}
.dashboard-fuel-tanks>header a:hover{background:#205638;color:#fff}.dashboard-fuel-tanks>header a:focus-visible{outline:3px solid #e66a2c;outline-offset:2px}

/* Inline submenu: normal flow inside the established scrollable sidebar. */
.mc-nav-shortcuts{position:static;width:auto;max-height:none;overflow:visible;box-shadow:none}
.shell aside .mc-nav-shortcuts{margin:4px 0 8px 14px;padding:4px 0 4px 8px;border-left:2px solid #7aa18e;border-radius:0;background:#1c4c3e}
.shell aside .mc-nav-shortcuts a{color:#f4f2eb;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.shell aside .mc-nav-shortcuts a:hover,.shell aside .mc-nav-shortcuts a:focus-visible{background:#2d6553;color:#fff}
.shell aside .mc-nav-parent>button{color:#f4f2eb}
.shell>aside{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none}.shell>aside>.profile{flex-shrink:0}
.mobile-module-menu .mc-nav-shortcuts{position:static;background:#edf4ed;border-left-color:#6b8a6c}.mobile-module-menu .mc-nav-shortcuts a{color:#173f35;min-height:44px}
