#app { --sidebar-width: 0px; grid-template-columns: minmax(0, 1fr); }
.topbar-brand { display: flex; min-width: 0; }
.topbar-brand .brand { gap: 8px; font-size: clamp(1.08rem, 4.5vw, 1.35rem); font-weight: 700; }
.topbar-brand .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
.bottom-nav .bottom-menu-toggle { border: 0; width: 100%; font-family: inherit; background: transparent; }
.bottom-nav .bottom-menu-toggle.is-active,
.bottom-nav .bottom-menu-toggle[aria-expanded='true'] { color: var(--accent-strong); background: var(--accent-soft); }
.menu-sheet {
  position: fixed;
  inset: auto 0 calc(var(--menu-nav-height, 60px) + 8px);
  width: min(560px, calc(100% - 16px));
  max-height: min(76dvh, 610px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 35px rgba(var(--accent-rgb), .17);
  transform: translateY(var(--sheet-drag, 0px));
}
.menu-sheet[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); animation: menu-sheet-enter 180ms ease-out; }
.menu-sheet::backdrop { background: rgba(35, 29, 44, .24); }
.menu-sheet-drag { touch-action: none; user-select: none; }
.menu-sheet-handle { height: 21px; display: grid; place-items: center; cursor: grab; }
.menu-sheet-handle > span { width: 42px; height: 5px; border-radius: 9px; background: var(--accent-mid); opacity: .65; }
.menu-sheet-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 6px 22px; }
.menu-sheet-header h2 { font-size: 1.2rem; font-weight: 700; }
.menu-sheet-close { background: transparent; width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; }
.menu-sheet-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 16px 12px; }
.menu-sheet-link { display: flex; align-items: center; gap: 14px; min-height: 59px; padding: 8px 7px; border-radius: 8px; font-size: 1rem; font-weight: 700; }
.menu-sheet-link + .menu-sheet-link { border-top: 1px solid var(--line); }
.menu-sheet-link > span:nth-child(2) { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.menu-sheet-link > svg { color: var(--accent-strong); }
.menu-sheet-link:hover { background: var(--accent-soft); }
.menu-sheet-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 43px; border-radius: 13px; color: var(--accent-strong); background: var(--accent-soft); }
.menu-sheet.is-dragging { animation: none; }
@keyframes menu-sheet-enter { from { opacity: .2; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 360px) {
  .topbar-brand .brand { gap: 6px; font-size: 1.08rem; }
  .topbar-brand .brand-mark { width: 30px; height: 32px; }
  .menu-sheet-header { padding-inline: 18px 10px; }
  .menu-sheet-list { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) { .menu-sheet[open] { animation: none; } }
