:root {
  --app-blue: #2457a6;
  --app-blue-soft: #e8f0fb;
  --app-nav-text: #687382;
  --app-nav-line: #e3e8ef;
}

.app-bottom-nav {
  position: fixed;
  z-index: 50;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 0;
  width: min(700px, calc(100% - 24px));
  margin: 0 auto;
  padding: 7px;
  border: 1px solid var(--app-nav-line);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(24 35 50 / 13%);
}

.app-bottom-nav__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr;
  align-items: stretch;
  gap: 2px;
}

.app-nav-item {
  display: flex;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 19px;
  background: transparent;
  color: var(--app-nav-text);
  font: 570 11px/1.2 Aptos, 'Segoe UI', system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.app-nav-item__icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 11px;
  transition: background 160ms ease, transform 160ms ease;
}

.app-nav-item__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-nav-item:hover { background: #f3f6fa; color: #202b39; }
.app-nav-item:focus-visible { outline: 2px solid var(--app-blue); outline-offset: 2px; }
.app-nav-item.is-active { background: var(--app-blue); box-shadow: 0 5px 12px rgb(36 87 166 / 20%); color: #fff; font-weight: 730; }
.app-nav-item.is-active .app-nav-item__icon { background: rgb(255 255 255 / 15%); transform: translateY(-1px); }
.app-nav-item--main { border-radius: 20px; background: var(--app-blue-soft); color: var(--app-blue); font-weight: 700; }
.app-nav-item--main .app-nav-item__icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 12px; background: rgb(36 87 166 / 9%); }
.app-nav-item--main .app-nav-item__icon svg { width: 22px; height: 22px; stroke-width: 2.5; }
.app-nav-item--main[aria-expanded="true"] .app-nav-item__icon svg { transform: rotate(45deg); }

.app-more-layer[hidden] { display: none; }
.app-more-layer { position: fixed; z-index: 49; inset: 0; font-family: Aptos, 'Segoe UI', system-ui, sans-serif; }
.app-more-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(17 25 39 / 37%); cursor: default; }
.app-more-sheet { position: absolute; bottom: 0; left: 50%; width: min(700px, calc(100vw - 24px)); max-height: min(86dvh, 650px); overflow-y: auto; padding: 18px 24px calc(113px + env(safe-area-inset-bottom)); border: 1px solid var(--app-nav-line); border-bottom: 0; border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -12px 40px rgb(17 25 39 / 13%); transform: translateX(-50%); box-sizing: border-box; }
.app-more-handle { width: 36px; height: 4px; margin: 0 auto 21px; border-radius: 4px; background: #d8dde3; }
.app-more-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.app-more-heading p { margin: 0 0 5px; color: var(--app-blue); font-size: 12px; font-weight: 700; }
.app-more-heading h2 { margin: 0; color: #202b39; font-size: 25px; font-weight: 750; letter-spacing: -.035em; }
.app-more-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 0; border-radius: 12px; background: #f3f6fa; color: #202b39; font-family: inherit; font-size: 25px; line-height: 1; cursor: pointer; }
.app-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.app-more-option { display: flex; min-width: 0; min-height: 76px; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--app-nav-line); border-radius: 16px; color: #202b39; text-decoration: none; box-sizing: border-box; }
.app-more-option[href]:hover { border-color: #b7c8e1; background: #f8fafd; }
.app-more-option.is-current { border-color: #a8c4e7; background: #f1f7ff; }
.app-more-option strong, .app-more-option small, .app-more-logout strong, .app-more-logout small { display: block; }
.app-more-option strong, .app-more-logout strong { font-size: 13px; font-weight: 720; }
.app-more-option small, .app-more-logout small { margin-top: 4px; color: var(--app-nav-text); font-size: 11px; }
.app-more-symbol { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 12px; background: var(--app-blue-soft); color: var(--app-blue); font-size: 25px; line-height: 1; }
.app-more-symbol::before { content: ''; width: 21px; height: 21px; background: currentColor; -webkit-mask: var(--app-more-icon) center / contain no-repeat; mask: var(--app-more-icon) center / contain no-repeat; }
.app-more-symbol--home { --app-more-icon: url('../icons/home-outline.svg'); }
.app-more-symbol--projects { --app-more-icon: url('../icons/folder-open-outline.svg'); }
.app-more-symbol--calendar { --app-more-icon: url('../icons/calendar-outline.svg'); }
.app-more-symbol--people { --app-more-icon: url('../icons/people-circle-outline.svg'); }
.app-more-symbol--files { --app-more-icon: url('../icons/folder-open-outline.svg'); }
.app-more-symbol--reports { --app-more-icon: url('../icons/bar-chart-outline.svg'); }
.app-more-symbol--settings { --app-more-icon: url('../icons/settings-outline.svg'); }
.app-more-symbol--logout { --app-more-icon: url('../icons/log-out-outline.svg'); }
.app-more-logout { margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--app-nav-line); }
.app-more-logout button { display: flex; width: 100%; min-height: 64px; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid var(--app-nav-line); border-radius: 16px; background: #f3f6fa; color: #202b39; font: inherit; text-align: left; cursor: pointer; }
.app-more-logout button:hover { border-color: #b7c8e1; background: var(--app-blue-soft); }
.app-more-logout-arrow { margin-left: auto; color: var(--app-blue); font-size: 18px; }
.app-more-layer :is(button, a):focus-visible { outline: 2px solid var(--app-blue); outline-offset: 2px; }

@media (max-width: 600px) {
  .app-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .app-bottom-nav { bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 5px; border-radius: 23px; }
  .app-bottom-nav__inner { gap: 0; }
  .app-nav-item { min-height: 58px; gap: 2px; border-radius: 17px; font-size: 10px; }
  .app-nav-item__icon { width: 26px; height: 26px; flex-basis: 26px; border-radius: 9px; }
  .app-nav-item__icon svg { width: 19px; height: 19px; }
  .app-nav-item--main .app-nav-item__icon { width: 28px; height: 28px; flex-basis: 28px; border-radius: 10px; }
  .app-more-sheet { width: calc(100vw - 16px); padding-right: 13px; padding-left: 13px; border-radius: 23px 23px 0 0; }
  .app-more-option { gap: 8px; padding: 9px; }
  .app-more-symbol { width: 35px; height: 35px; flex-basis: 35px; font-size: 22px; }
  .app-more-option strong { font-size: 12px; }
  .app-more-option small { font-size: 10px; }
}
