/* Generated by npm run build. Edit src/styles/components/meniscus.css. */
/* Hallmark · project: Comp Master · scope: existing UI polish · 2026-11-13
   Critique: hierarchy and legibility before decorative surfaces; locked brand retained. */
/* The SVG is the enclosure itself: the saddle and elevated control share geometry. */
[data-meniscus] {
  --meniscus-color: var(--accent-cyan);
  --meniscus-material-top: color-mix(in srgb, var(--bg-surface) 91%, var(--accent-bright));
  --meniscus-material-bottom: var(--bg-deep);
}
[data-meniscus][data-meniscus-tone='1'] {
  --meniscus-color: var(--accent-bright);
}
[data-meniscus][data-meniscus-tone='2'] {
  --meniscus-color: var(--success);
}
html[data-theme='light'] [data-meniscus] {
  --meniscus-material-top: color-mix(in srgb, var(--bg-glass-light) 20%, transparent);
  --meniscus-material-bottom: color-mix(in srgb, var(--surface-sunken) 20%, transparent);
}
html[data-theme='light'] .meniscus-contour {
  filter: drop-shadow(0 8px 16px color-mix(in srgb, var(--ink) 10%, transparent));
}
.meniscus-glass {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  z-index: 0;
}
html[data-theme='light'] .meniscus-ready > .meniscus-glass {
  display: block;
  background: var(--bg-glass);
  backdrop-filter: blur(var(--daylight-glass-blur));
  -webkit-backdrop-filter: blur(var(--daylight-glass-blur));
}
html[data-theme='light'] .meniscus-contour path {
  stroke: var(--daylight-glass-edge);
}
html[data-theme='light'] .meniscus-aura {
  opacity: 0 !important;
}
html[data-theme='light'] .dock_bead > span {
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 var(--glass-highlight);
}
html[data-theme='light'] .dock_bead svg {
  color: var(--text-on-accent);
}
html body :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  padding: 34px 12px 32px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--meniscus-color);
  scrollbar-gutter: auto;
  transition: color 0.28s ease;
}
html body #catalog-filters.cm-meniscus {
  width: min(600px, 100%);
  margin-inline: auto;
}
html body .telemetry-resolutions.cm-meniscus {
  min-width: 252px;
}
html
  body
  :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus
  > :is(.filter-btn, [data-resolution], .admin-tab-btn) {
  flex: 1 0 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  padding: 5px 5px 8px;
  margin: 0;
  border: 0 !important;
  border-radius: 10px;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
  color: var(--text-secondary) !important;
  font: 600 14px/1.4 var(--font-display);
  letter-spacing: 0;
  transform: none;
  animation: none;
  transition: color 0.22s ease;
  white-space: nowrap;
}
html body .cm-meniscus > :is(.filter-btn, [data-resolution], .admin-tab-btn) > i {
  display: none;
}
html
  body
  :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus
  > [data-meniscus-current='true'] {
  color: var(--meniscus-color) !important;
}
html
  body
  :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus
  > :is(.filter-btn, [data-resolution], .admin-tab-btn):not([data-meniscus-current='true']):hover {
  color: var(--text-primary) !important;
}
.meniscus-item-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  opacity: 0.65;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease;
}
.meniscus-item-icon svg {
  display: block;
  width: 23px;
  height: 23px;
}
[data-meniscus-current='true'] .meniscus-item-icon {
  transform: translateY(-22px) scale(0.75);
  opacity: 0;
}
.meniscus-contour {
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
  opacity: 0;
}
.meniscus-contour path {
  stroke: color-mix(in srgb, var(--text-secondary) 42%, transparent);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.meniscus-material-top {
  stop-color: var(--meniscus-material-top);
}
.meniscus-material-bottom {
  stop-color: var(--meniscus-material-bottom);
}
.meniscus-aura {
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 10%,
    color-mix(in srgb, currentColor 22%, transparent),
    transparent 69%
  );
  opacity: 0;
}
html body :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus > .dock_bead {
  appearance: none;
  position: absolute;
  display: grid;
  place-items: center;
  inset: 0 auto auto 0;
  z-index: 4;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none !important;
  color: inherit !important;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: none;
}
.dock_bead > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid color-mix(in srgb, currentColor 45%, white);
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 20%,
    color-mix(in srgb, currentColor 52%, white),
    currentColor 65%,
    color-mix(in srgb, currentColor 82%, black)
  );
  box-shadow:
    0 0 0 4px color-mix(in srgb, currentColor 9%, transparent),
    0 6px 24px -8px color-mix(in srgb, currentColor 70%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.dock_bead svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}
html
  body
  :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus.meniscus-ready
  > :is(.meniscus-contour, .dock_bead, .meniscus-aura) {
  opacity: 1;
}
html body .cm-meniscus > :is(.dock_bead, .filter-btn, [data-resolution], .admin-tab-btn):focus-visible {
  outline: 2px solid var(--meniscus-color);
  outline-offset: -2px;
}
html
  body
  :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus.meniscus-dragging
  > .dock_bead {
  cursor: grabbing;
}
.dock_bead:hover > span {
  transform: translateY(-1px) scale(1.04);
}
.meniscus-dragging .dock_bead > span {
  transform: scale(1.06);
}
@media (min-width: 901px) {
  html body :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).admin-tabs-nav.cm-meniscus {
    position: fixed;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 10px 16px 46px;
    gap: 7px;
    overflow: visible;
  }
  html
    body
    :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).admin-tabs-nav.cm-meniscus
    > .admin-tab-btn {
    flex: 0 0 auto;
    height: 52px;
    min-height: 52px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 9px 4px;
    gap: 8px;
    font-size: 14px;
    white-space: normal;
  }
  html body .admin-tabs-nav.cm-meniscus::before {
    position: relative;
    z-index: 2;
    padding: 10px 0 15px;
  }
  .admin-tabs-nav[data-meniscus-orientation='vertical'] [data-meniscus-current='true'] .meniscus-item-icon {
    transform: translateX(-22px) scale(0.75);
  }
  .admin-tabs-nav[data-meniscus-orientation='vertical'] .meniscus-aura {
    width: 90px;
    height: 180px;
    background: radial-gradient(
      ellipse at 10% 50%,
      color-mix(in srgb, currentColor 17%, transparent),
      transparent 69%
    );
  }
  html body .admin-tabs-nav.cm-meniscus > .dock_bead > span {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 900px) {
  html body .admin-tabs-nav.cm-meniscus {
    position: relative;
    inset: auto;
    width: 100%;
  }
  html
    body
    :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).admin-tabs-nav.cm-meniscus
    > .admin-tab-btn {
    flex: 0 0 150px;
  }
  html body .admin-tabs-nav.cm-meniscus > .admin-tab-btn .tab-counter-badge {
    position: absolute;
    top: 4px;
    right: 18px;
    margin: 0;
  }
}
@media (max-width: 580px) {
  html body #catalog-filters.cm-meniscus {
    padding-inline: 8px;
    gap: 0;
  }
  html body #catalog-filters.cm-meniscus > .filter-btn {
    padding-inline: 1px;
    font-size: 14px;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  html body .telemetry-resolutions.cm-meniscus {
    width: 100%;
  }
  .dock_bead > span {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#catalog-filters, .telemetry-resolutions, .admin-tabs-nav).cm-meniscus,
  .meniscus-item-icon,
  .dock_bead > span {
    transition: none;
  }
}
@media (forced-colors: active) {
  .meniscus-contour path {
    fill: Canvas;
    stroke: CanvasText;
  }
  .meniscus-aura {
    display: none;
  }
  .dock_bead > span {
    background: Highlight;
    border-color: ButtonText;
    box-shadow: none;
  }
  .dock_bead svg {
    color: HighlightText;
  }
}

/* Catalog: filled SVG saddle, stable labels, no lower outline. */
:root {
  --catalog-filter-edge: rgba(255, 255, 255, 0.05);
}
html[data-theme='light'] {
  --catalog-filter-edge: var(--daylight-glass-edge);
}
html body #catalog-filters.cm-meniscus {
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding-bottom: 32px;
  --meniscus-color: var(--accent-cyan);
}
html body #catalog-filters::before,
html body #catalog-filters::after {
  content: none;
  display: none;
}
html body #catalog-filters .meniscus-contour {
  display: block;
}
html body #catalog-filters .meniscus-surface {
  stroke: none;
}
html body #catalog-filters .meniscus-rim {
  fill: none;
  stroke: var(--catalog-filter-edge);
  stroke-width: 1;
}
html body #catalog-filters .meniscus-aura {
  display: none;
}
html body #catalog-filters.cm-meniscus > .filter-btn {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
  font-weight: 500;
  animation: none !important;
}
html body #catalog-filters.cm-meniscus > .dock_bead {
  backface-visibility: hidden;
  will-change: transform;
}
html body #catalog-filters .meniscus-item-icon {
  transform: translateZ(0);
  opacity: 1;
  transition: none;
}
html body #catalog-filters [data-meniscus-current='true'] .meniscus-item-icon {
  transform: translateZ(0);
  opacity: 0;
}
html body #catalog-filters .dock_bead > span {
  box-shadow: none;
}
html body #catalog-filters .dock_bead:hover > span {
  transform: none;
}
html body #menu .catalog-heading .menu-kicker {
  margin: 0 0 24px;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
html body #menu .catalog-heading h2 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
html body #menu .catalog-heading .catalog-intro {
  margin: 0 auto 40px;
  max-width: 52ch;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  html body #catalog-filters.cm-meniscus > :is(.filter-btn, .dock_bead) {
    will-change: auto;
  }
}
