@media (min-width: 769px) {
  .chemora-mobile-dock,
  .chemora-floating-ask {
    display: none !important;
  }
}
@media (max-width: 768px) {
  body {
    padding-bottom: calc(var(--chemora-dock-height, 64px) + var(--chemora-dock-bottom-offset, 20px) + 24px);
  }
  main {
    padding-bottom: calc(var(--chemora-dock-height, 64px) + var(--chemora-dock-bottom-offset, 20px) + 20px) !important;
  }
  .chemora-mobile-dock {
    position: fixed;
    bottom: var(--chemora-dock-bottom-offset, calc(14px + env(safe-area-inset-bottom, 0px)));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw - 24px);
    max-width: 420px;
    height: 60px;
    z-index: 45;
    background: var(--chemora-dock-bg, rgba(6, 14, 28, 0.84));
    border: 1px solid var(--chemora-dock-border, rgba(255, 255, 255, 0.14));
    border-radius: var(--chemora-radius-pill, 9999px);
    box-shadow: var(--chemora-shadow-dock, 0 12px 32px -4px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(var(--chemora-glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--chemora-glass-blur, 12px));
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    pointer-events: auto;
    transition: transform var(--chemora-dur-normal, 260ms) var(--chemora-ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
                opacity var(--chemora-dur-normal, 260ms) var(--chemora-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
  }
  .chemora-mobile-dock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.28) 50%, transparent 100%);
    pointer-events: none;
    border-radius: 9999px;
  }
  .chemora-mobile-dock.chemora-dock--hidden {
    transform: translate(-50%, calc(100% + 32px + env(safe-area-inset-bottom, 0px)));
    opacity: 0;
    pointer-events: none;
  }
  .chemora-dock-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
  }
  .chemora-dock-blob {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 20%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(129, 140, 248, 0.28) 100%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    pointer-events: none;
    transform: translateX(0);
    transition: transform var(--chemora-dur-normal, 260ms) var(--chemora-ease-out, cubic-bezier(0.16, 1, 0.3, 1));
    z-index: 1;
  }
  .chemora-dock-item {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--chemora-text-secondary, #94a3b8);
    transition: transform 120ms ease, color 180ms ease;
    -webkit-tap-highlight-color: transparent;
  }
  .chemora-dock-item:active {
    transform: scale(0.94);
  }
  .chemora-dock-item:focus-visible {
    outline: 2px solid var(--chemora-accent-cyan, #38bdf8);
    outline-offset: -2px;
    border-radius: 9999px;
  }
  .chemora-dock-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease, color 200ms ease;
  }
  .chemora-dock-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
    transition: stroke 200ms ease, fill 200ms ease, transform 200ms ease;
  }
  .chemora-dock-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    color: var(--chemora-text-secondary, #94a3b8);
    transition: color 200ms ease, transform 200ms ease;
  }
  .chemora-dock-item[aria-current="page"] {
    color: var(--chemora-text-primary, #ffffff);
  }
  .chemora-dock-item[aria-current="page"] .chemora-dock-label {
    color: var(--chemora-accent-cyan, #38bdf8);
    font-weight: 800;
  }
  .chemora-dock-item[aria-current="page"] .chemora-dock-icon svg {
    stroke: var(--chemora-accent-cyan, #38bdf8);
    transform: translateY(-1px);
    filter: drop-shadow(0 0 6px var(--chemora-accent-cyan-glow, rgba(56, 189, 248, 0.5)));
  }
  .chemora-floating-ask {
    position: fixed;
    right: 14px;
    bottom: var(--chemora-dock-bottom-offset, calc(14px + env(safe-area-inset-bottom, 0px)));
    z-index: 44;
    height: 60px;
    padding: 0 16px 0 12px;
    border-radius: var(--chemora-radius-pill, 9999px);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25) 0%, rgba(99, 102, 241, 0.35) 100%);
    background-color: var(--chemora-dock-bg, rgba(6, 14, 28, 0.88));
    border: 1px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px -2px rgba(6, 182, 212, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(var(--chemora-glass-blur, 12px));
    -webkit-backdrop-filter: blur(var(--chemora-glass-blur, 12px));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--chemora-text-primary, #ffffff);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: transform var(--chemora-dur-normal, 260ms) var(--chemora-ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
                padding var(--chemora-dur-normal, 260ms) var(--chemora-ease-out, cubic-bezier(0.16, 1, 0.3, 1)),
                opacity var(--chemora-dur-fast, 200ms) ease;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
  }
  .chemora-floating-ask:active {
    transform: scale(0.95);
  }
  .chemora-floating-ask:focus-visible {
    outline: 2px solid var(--chemora-accent-cyan, #38bdf8);
    outline-offset: 2px;
  }
  .chemora-floating-ask .ask-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--chemora-accent-cyan, #38bdf8);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
    animation: chemoraAskGlow 2.8s infinite ease-in-out;
  }
  .chemora-floating-ask .ask-text {
    white-space: nowrap;
    transition: opacity 180ms ease, width 200ms ease;
  }
  .chemora-floating-ask.chemora-ask--collapsed {
    padding: 0;
    width: 44px;
    justify-content: center;
  }
  .chemora-floating-ask.chemora-ask--collapsed .ask-text {
    display: none;
  }
  .chemora-floating-ask.chemora-ask--hidden {
    transform: translateY(20px) scale(0.8);
    opacity: 0;
    pointer-events: none;
  }
}
@keyframes chemoraAskGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9));
  }
}
@media (prefers-reduced-motion: reduce) {
  .chemora-mobile-dock,
  .chemora-dock-blob,
  .chemora-dock-item,
  .chemora-floating-ask,
  .chemora-floating-ask .ask-icon,
  .chemora-stagger > * {
    transition: none !important;
    animation: none !important;
  }
}
.chemora-card {
  border-radius: var(--chemora-radius-md, 24px);
  background: var(--chemora-glass-surface, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--chemora-glass-border, rgba(255, 255, 255, 0.12));
  box-shadow: var(--chemora-shadow-card, 0 4px 16px -2px rgba(0, 0, 0, 0.35));
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform var(--chemora-dur-fast, 200ms) var(--chemora-ease-out),
              box-shadow var(--chemora-dur-fast, 200ms) var(--chemora-ease-out);
}
@media (prefers-reduced-transparency: reduce) {
  .chemora-card {
    background: #0a1424 !important;
  }
}
@keyframes chemoraCardEnter {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.chemora-stagger > *:nth-child(1) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 0ms forwards; }
.chemora-stagger > *:nth-child(2) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 40ms forwards; }
.chemora-stagger > *:nth-child(3) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 80ms forwards; }
.chemora-stagger > *:nth-child(4) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards; }
.chemora-stagger > *:nth-child(5) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 160ms forwards; }
.chemora-stagger > *:nth-child(6) { animation: chemoraCardEnter 280ms cubic-bezier(0.16, 1, 0.3, 1) 200ms forwards; }
.chemora-ring-svg {
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.chemora-ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
  fill: none;
}
.chemora-ring-fill {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
