.jh-navigation-icon { display: none; }
#mobileFunctionsDialog { width: min(430px, 100%); max-width: 100%; max-height: 90dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; color: #1c2c43; background: #fff; box-shadow: 0 -8px 36px #1c2c4314; overflow: hidden; }
#mobileFunctionsDialog::backdrop { background: #17294166; backdrop-filter: blur(2px); }
#mobileFunctionsDialog[open] { display: flex; animation: mobile-functions-enter .24s cubic-bezier(.2,.8,.2,1); }
.mobile-functions-sheet { display: flex; flex-direction: column; min-width: 0; width: 100%; max-height: 90dvh; padding-bottom: max(14px, env(safe-area-inset-bottom)); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.mobile-functions-handle { display: grid; place-items: center; height: 25px; min-height: 25px; touch-action: none; }
.mobile-functions-handle::before { content: ""; width: 32px; height: 4px; border-radius: 4px; background: #d5dce6; }
.mobile-functions-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
.mobile-functions-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.4px; }
.mobile-functions-heading p { margin: 4px 0 0; color: #78859a; font-size: 11px; line-height: 1.5; }
.mobile-functions-close { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; color: #748297; background: #f3f5f9; font-size: 25px; cursor: pointer; }
.mobile-functions-search { display: flex; align-items: center; gap: 8px; flex-shrink: 0; height: 42px; margin: 0 20px 16px; padding: 0 12px; border-radius: 10px; background: #f5f7fa; }
.mobile-functions-search svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #8d9aae; stroke-width: 1.7; stroke-linecap: round; }
.mobile-functions-search input { min-width: 0; width: 100%; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 0; color: #1c2c43; background: transparent; box-shadow: none; font: 16px -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
.mobile-functions-search input::placeholder { font-size: 12px; color: #8b97a7; }
#mobileFunctionSearch { background: transparent !important; }
.mobile-functions-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px 7px; scrollbar-width: none; }
.mobile-functions-scroll::-webkit-scrollbar { display: none; }
.mobile-function-group + .mobile-function-group { margin-top: 14px; padding-top: 16px; border-top: 1px solid #e8ecf2; }
.mobile-function-group h3 { margin: 0 0 8px; color: #8b96a5; font-size: 11px; font-weight: 550; letter-spacing: .5px; }
.mobile-function-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3px; row-gap: 8px; }
.mobile-function-grid > button { position: static; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; min-height: 83px; height: auto; padding: 9px 2px; border: 0; border-radius: 10px; color: #1c2c43; background: transparent; box-shadow: none; font-size: 0; text-align: center; transform: none; cursor: pointer; }
.mobile-function-grid > button::after { content: attr(data-mobile-label); color: inherit; font-size: 11px; font-weight: 550; line-height: 1.5; white-space: nowrap; }
.mobile-function-grid > button.nav-item { display: flex; grid-column: auto; grid-row: auto; }
.mobile-function-grid > button > span { display: grid; place-items: center; width: 40px; height: 40px; margin: 0; border-radius: 12px; color: #54749c; background: #f0f4fa; font-size: 0; }
.mobile-function-grid > button:nth-child(3n + 2) > span { color: #5d8b80; background: #edf5f3; }
.mobile-function-grid > button:nth-child(3n + 3) > span { color: #9e875d; background: #f5f1e9; }
.mobile-function-grid > button.active { color: #285cce; background: #f5f8ff; }
.mobile-function-grid > button.active > span { color: #285cce; background: #eaf1ff; }
.mobile-function-grid > button:hover { transform: none; background: #f5f7fb; }
.mobile-function-grid > button[hidden], .mobile-function-grid > button.mobile-function-filtered, .mobile-function-group[hidden] { display: none !important; }
.mobile-function-grid .jh-navigation-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mobile-functions-empty { padding: 24px 0 30px; color: #78859a; text-align: center; font-size: 13px; }
.mobile-functions-account { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 66px; margin: 8px 20px 0; padding: 12px 0 0; border: 0; border-top: 1px solid #e8ecf2; background: #fff; color: #1c2c43; text-align: left; font: inherit; cursor: pointer; }
.mobile-functions-account > [data-functions-avatar] { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 1px solid #dbe3ee; border-radius: 50%; background: #e9eff8; color: #526c8f; font-size: 12px; }
.mobile-functions-account strong { display: block; font-size: 12px; font-weight: 650; }
.mobile-functions-account small { display: block; margin-top: 2px; color: #78859a; font-size: 10px; }
.mobile-functions-account-label { margin-left: auto; color: #78859a; font-size: 11px; white-space: nowrap; }
.mobile-functions-sheet button:focus-visible { outline: 2px solid #7aa2f5; outline-offset: -2px; }
body.mobile-functions-open { overflow: hidden; }
@keyframes mobile-functions-enter { from { transform: translateY(35px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #mobileFunctionsDialog[open] { animation: none; } }
@media (max-width: 760px) {
  .app-shell { display: block; }
  .app-shell .sidebar { position: fixed; inset: auto 0 0; z-index: 100; display: flex; width: 100%; height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 9px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid #e6ebf3; background: #fffffff5; box-shadow: none; backdrop-filter: blur(16px); transition: none; }
  .sidebar .brand, .sidebar .sidebar-user, .sidebar .account-controls { display: none; }
  .sidebar .main-nav { display: grid; grid-template-columns: repeat(var(--mobile-navigation-columns, 5), minmax(0, 1fr)); grid-template-rows: 56px; gap: 0; width: 100%; min-width: 0; margin: 0; padding: 0; overflow: visible; }
  .sidebar .main-nav .nav-item, .sidebar .main-nav .mobile-nav-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; grid-column: auto; grid-row: 1; width: auto; min-width: 0; min-height: 56px; height: 56px; margin: 0; padding: 3px 0; border: 0; border-radius: 10px; color: #8794a7; background: transparent; box-shadow: none; font-size: 0; text-align: center; transform: none; }
  .sidebar .main-nav .nav-item::after, .sidebar .main-nav .mobile-nav-more::after { content: attr(data-mobile-label); font: 550 11px/1.3 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; color: inherit; letter-spacing: 0; white-space: nowrap; }
  .sidebar .main-nav .nav-item > span, .sidebar .main-nav .mobile-nav-more > span { display: grid; place-items: center; width: 42px; height: 29px; margin: 0; border-radius: 9px; color: inherit; background: transparent; font-size: 0; }
  .sidebar .main-nav .jh-navigation-icon { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .sidebar .main-nav .nav-item.active, .sidebar .main-nav .mobile-nav-more.active { color: #285cce; background: transparent; }
  .sidebar .main-nav .nav-item.active > span, .sidebar .main-nav .mobile-nav-more.active > span { color: #285cce; background: #edf3ff; }
  .sidebar .main-nav .nav-item:active, .sidebar .main-nav .mobile-nav-more:active { background: #f3f6fa; }
  .sidebar .main-nav .mobile-account-trigger, .sidebar .main-nav .mobile-secondary, .sidebar .main-nav [hidden] { display: none !important; }
  .sidebar .main-nav button:focus-visible { outline: 2px solid #7aa2f5; outline-offset: -2px; }
  .app-shell .workspace { width: 100%; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .shared-sync-notice { right: 10px; left: 10px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
}
