/* Shared bottom navigation. Keep it outside filtered header containers. */
html { --dock-height: 72px; --dock-bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
html #root { padding-bottom: calc(var(--dock-height) + var(--dock-bottom) + 24px); }
html body.has-bottom-navigation { padding-bottom: calc(var(--dock-height) + var(--dock-bottom) + 24px); }
html .bottom-dock {
  position: fixed; inset: auto 0 var(--dock-bottom); z-index: 250;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none;
  width: calc(100% - 24px); max-width: 620px; height: var(--dock-height); margin: 0 auto; padding: 6px;
  gap: 4px; border-radius: 36px; border: 1px solid rgba(255,255,255,.88);
  background: linear-gradient(155deg,rgba(255,255,255,.46),rgba(238,246,255,.16) 38%,rgba(224,235,255,.2) 68%,rgba(255,255,255,.42));
  box-shadow: 0 16px 36px rgba(34,57,99,.2), 0 3px 9px rgba(34,57,99,.08), inset 0 2px 2px rgba(255,255,255,.95), inset 0 -2px 3px rgba(83,116,168,.16);
  -webkit-backdrop-filter: blur(26px) saturate(185%) contrast(1.06); backdrop-filter: blur(26px) saturate(185%) contrast(1.06);
  overflow: visible;
}
html .bottom-dock::before {
  content: ''; position: absolute; inset: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(172deg,rgba(255,255,255,.58),transparent 32%,transparent 65%,rgba(255,255,255,.32));
  box-shadow: inset 1px 0 1px rgba(255,255,255,.8), inset -1px 0 1px rgba(255,255,255,.55);
}
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
  html .bottom-dock::after {
    content: ''; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
    background: conic-gradient(from 205deg,rgba(169,195,239,.5),#fff 14%,rgba(255,255,255,.16) 34%,rgba(255,255,255,.94) 54%,rgba(135,170,228,.44) 73%,rgba(255,255,255,.9) 89%,rgba(169,195,239,.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite: exclude;
  }
}
html .bottom-dock[data-liquid-ready='true'] { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
html .bottom-dock, html .bottom-dock button, html .bottom-dock a { -webkit-tap-highlight-color: transparent; }
html .bottom-dock > button, html .bottom-dock > a, html .bottom-dock > .more-wrap > button { outline: none; }
html[data-dock-input='keyboard'] .bottom-dock > button:focus, html[data-dock-input='keyboard'] .bottom-dock > a:focus,
html[data-dock-input='keyboard'] .bottom-dock > .more-wrap > button:focus { outline: 3px solid #315fc5; outline-offset: 2px; }
@supports selector(:focus-visible) {
  html:not([data-dock-input='pointer']) .bottom-dock > button:focus-visible,
  html:not([data-dock-input='pointer']) .bottom-dock > a:focus-visible,
  html:not([data-dock-input='pointer']) .bottom-dock > .more-wrap > button:focus-visible { outline: 3px solid #315fc5; outline-offset: 2px; }
}
html .dock-liquid-pill {
  position: absolute; left: 0; top: 6px; bottom: 6px; z-index: 1; pointer-events: none;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.92); transform-origin: center;
  background: linear-gradient(165deg,rgba(255,255,255,.5),rgba(221,237,255,.12) 38%,rgba(183,207,247,.2) 64%,rgba(255,255,255,.38));
  box-shadow: 0 5px 14px rgba(46,76,129,.16),0 1px 3px rgba(52,82,137,.08),inset 0 2px 2px rgba(255,255,255,.96),inset 0 -1px 2px rgba(89,121,176,.3),inset 1px 0 2px #fff;
  overflow: hidden;
}
html .dock-liquid-pill::after { content: ''; position: absolute; inset: 1px; border-radius: inherit; border: 1px solid rgba(255,255,255,.36); pointer-events: none; }
html .dock-liquid-glint { position: absolute; inset: -2px -18px; background: linear-gradient(118deg,transparent 20%,rgba(255,255,255,.54) 32%,transparent 45%,transparent 68%,rgba(255,255,255,.25) 83%,transparent 94%); pointer-events: none; }
html .bottom-dock[data-motion-state='moving'] .dock-liquid-pill, html .bottom-dock[data-motion-state='moving'] .dock-liquid-glint { will-change: transform; }
html .bottom-dock > button, html .bottom-dock > a, html .bottom-dock > .more-wrap > button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; min-width: 0; min-height: 44px; margin: 0; padding: 5px 3px; border: 1px solid transparent;
  position: relative; z-index: 2; border-radius: 23px; color: #3a4d69; background: transparent; box-shadow: none;
  font: 600 11px/1.2 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer; letter-spacing: 0; transform: none;
  transition: color .16s, background-color .16s;
}
html .bottom-dock > .more-wrap { display: flex; min-width: 0; position: relative; }
html .bottom-dock > .more-wrap { z-index: 2; }
html .bottom-dock > button.active, html .bottom-dock > a.active, html .bottom-dock > .primary,
html .bottom-dock > .more-wrap > button[aria-expanded='true'] {
  color: #1f55cf; background: linear-gradient(150deg,rgba(255,255,255,.92),rgba(195,215,253,.58) 58%,rgba(239,247,255,.75));
  border-color: rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(51,80,135,.1), inset 0 1px 2px #fff, inset 0 -1px 1px rgba(106,139,194,.14);
}
html .bottom-dock[data-liquid-ready='true'] > button, html .bottom-dock[data-liquid-ready='true'] > a,
html .bottom-dock[data-liquid-ready='true'] > .more-wrap > button { background: transparent; border-color: transparent; box-shadow: none; }
html .bottom-dock[data-dragging='true'] > button.active { color: #3a4d69; }
html .bottom-dock[data-page-tracking='true'] > button.active { color: #3a4d69; }
html .bottom-dock[data-liquid-ready='true'] .dock-preview { color: #1f55cf; }
html .bottom-dock > button > svg, html .bottom-dock > .more-wrap > button > svg { transition: transform .18s cubic-bezier(.2,.8,.2,1); }
html .bottom-dock[data-pressed='true'] .dock-preview > svg { transform: translateY(-1px) scale(1.08); }
html .bottom-dock .home-nav-icon { display: grid; place-items: center; width: 26px; height: 26px; color: inherit; }
html .bottom-dock .home-nav-label { font-size: 11px; color: inherit; letter-spacing: 0; }
html .bottom-dock svg { display: block; width: 25px; height: 25px; flex-shrink: 0; }
html .bottom-dock .more-dropdown {
  inset: auto 0 calc(100% + 16px) auto; width: min(250px, calc(100vw - 36px)); min-width: 0;
  max-height: min(480px, calc(100dvh - 150px)); overflow-y: auto; overscroll-behavior: contain; margin: 0;
  background: linear-gradient(145deg,rgba(255,255,255,.97),rgba(231,241,255,.96)); border: 1px solid #fff;
  box-shadow: 0 16px 40px rgba(35,56,96,.22), inset 0 1px 2px #fff;
}
html .more-dropdown a { display: block; padding: 10px 16px; color: inherit; text-decoration: none; font-size: 14px; border-radius: 10px; }
html .workspace-navigation { border: 0; background: transparent; padding: 0; }
html .workspace-secondary { padding: 12px; border: 1px solid #d4def0; border-radius: 18px; background: linear-gradient(140deg,rgba(255,255,255,.96),rgba(235,243,255,.88)); box-shadow: 0 4px 14px rgba(42,68,114,.06),inset 0 1px #fff; }
html .workspace-section-label { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; font-size: 13px; font-weight: 700; color: #344d72; }
html .workspace-section-label span { font-size: 11px; font-weight: 500; color: #627793; }
html .workspace-tabs { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 0; }
html .workspace-tabs button { flex: 1 1 98px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: #eaf1fb; color: #3d5374; font-size: 14px; line-height: 1.3; font-weight: 650; }
html .workspace-tabs button.active { border-color: #2857c0; background: linear-gradient(145deg,#3a6bdf,#2856bf); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(43,85,180,.2),inset 0 1px rgba(255,255,255,.22); }
html .workspace-tabs button:not(.active):hover { background: #dfeafb; }
html[data-surface='solid'] .workspace-secondary { background: #f1f5fc; box-shadow: none; }
html .dock-page-area { position: relative; min-height: min(420px, calc(100svh - 250px)); }
html .dock-page-primary { min-height: min(420px, calc(100svh - 220px)); }
html .presidium-app { min-height: calc(100svh - var(--dock-height) - var(--dock-bottom) - 24px); }
html [data-page-clip='true'] { overflow: hidden; overflow: clip; }
html [data-page-moving='true'] { will-change: transform, opacity; }
html .fab, html .toast-container { bottom: calc(var(--dock-height) + var(--dock-bottom) + 14px); }
html .home-page { padding: max(24px, env(safe-area-inset-top, 0px)) 0 calc(var(--dock-height) + var(--dock-bottom) + 30px); overflow-y: auto; }
html .home-hint { margin: 0; font-size: 12px; color: #6d809f; }
html .home-page.home-launcher { flex-direction: column; padding: max(24px, env(safe-area-inset-top, 0px)) 0 max(24px, env(safe-area-inset-bottom, 0px)); }
html .home-launcher .home-content { flex-shrink: 0; margin: auto; }
html[data-surface='solid'] .bottom-dock { background: #fff; border-color: #cfdaea; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-surface='solid'] .bottom-dock::before, html[data-surface='solid'] .bottom-dock::after { display: none; }
html[data-surface='solid'] .dock-liquid-pill { background: #e4ecff; border-color: #d8e3ff; box-shadow: none; }
html[data-surface='solid'] .dock-liquid-glint, html[data-surface='solid'] .dock-liquid-pill::after { display: none; }
html[data-surface='solid'] .bottom-dock > button.active, html[data-surface='solid'] .bottom-dock > .primary { background: #eaf0ff; }
html[data-surface='solid'] .bottom-dock[data-liquid-ready='true'] > button.active { background: transparent; }
html[data-reduced-motion='true'] .bottom-dock[data-pressed='true'] .dock-preview > svg { transform: none; }
html[data-keyboard='true'] .bottom-dock, html[data-keyboard='true'] .fab { visibility: hidden; pointer-events: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { html .bottom-dock { background: #f8fbff; } }
@media (max-height: 560px) { html .home-page { display: block; } html .home-content { margin: 0 auto; } }
