/* glass_rail.css — the call control rail, "Glassy sidebar V3" (builder, 2026-11-15), loaded after
 * style_hex_buttons.css. One glass panel (signed-off side-panel tint and iridescent rim), concentric
 * radii (panel 24 = item 14 + padding 10), a highlight that glides to the hovered item, labels that
 * slide out toward the screen, Mic and Camera as split buttons (choice A: toggle zone + menu zone inside
 * one outline). Sizes: 40px with a mouse, 44px on touch (HIG). Short screens wrap into a second column
 * (or row) instead of running off screen. Light only through the glass; reduced motion, transparency
 * and contrast variants at the end. */
#hex-menu { --btn-icon: 22px; --btn-gap: 5px; --btn-radius: 999px; }   /* scoped to the menu only: nothing else changes */
/* Width: the panel stays exactly the settings-bud width (--y-ctrl-w, the builder's earlier ruling #3 in
 * style_flower.css); buttons fill it as capsules (concentric with the capsule panel), >= 44px. */

/* the panel */
#hex-menu:not(.collapsed) .hex-cluster {
  padding: 4px 0; gap: var(--btn-gap); border-radius: calc(var(--y-ctrl-w, 46px) / 2);
  background: rgba(30,32,42,.42); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.42), inset 0 0 0 1px rgba(255,255,255,.14), 0 24px 60px -24px rgba(0,0,0,.6);
}
#hex-menu:not(.collapsed) .hex-cluster::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: .6;
  background: conic-gradient(from 215deg,rgba(255,255,255,.95),rgba(170,210,255,.45) 12%,rgba(255,255,255,.08) 26%,rgba(255,190,235,.35) 40%,rgba(255,255,255,.10) 55%,rgba(190,255,235,.40) 70%,rgba(255,255,255,.12) 84%,rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* items: borderless on the glass (no glass on glass), tint only for state */
.hex-btn { border-radius: var(--btn-radius); background: transparent; transition: background .18s, box-shadow .18s, transform .12s cubic-bezier(.23,1,.32,1); z-index: 1; }
.hex-btn:hover { background: transparent; transform: none; }
.hex-btn:active { transform: scale(.95); background: rgba(255,255,255,.08); }
.hex-btn .hex-svg { width: var(--btn-icon); height: var(--btn-icon); color: rgba(255,255,255,.9); }
.hex-btn:focus-visible { outline: 2px solid #3fe0c5; outline-offset: 2px; }
.hex-btn.is-on { background: rgba(63,224,197,.16); box-shadow: inset 0 0 0 1px rgba(63,224,197,.42); }
.hex-btn.is-on .hex-svg { color: #3fe0c5; filter: none; }
.hex-btn.is-off { background: rgba(229,72,77,.18); box-shadow: inset 0 0 0 1px rgba(229,72,77,.45); }
.hex-btn.is-off .hex-svg { color: #ff6b6f; filter: none; }
.hex-toggle { background: rgba(63,224,197,.12); }
.hex-toggle .hex-svg { color: #3fe0c5; }
.hex-end-call { background: rgba(229,72,77,.22); }
.hex-end-call .hex-svg { color: #ff6b6f; }

/* the glide: one highlight that springs to the hovered item */
.hex-glide { position: absolute; z-index: 0; left: 0; top: 0; width: var(--btn-size); height: var(--btn-size); border-radius: var(--btn-radius); pointer-events: none;
  background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); opacity: 0;
  transition: transform .32s cubic-bezier(.23,1,.32,1), width .32s cubic-bezier(.23,1,.32,1), height .32s cubic-bezier(.23,1,.32,1), opacity .18s; }
.hex-glide.is-on { opacity: 1; }
#hex-menu.collapsed .hex-glide { display: none; }

/* labels: readable glass capsules that slide out toward the middle of the screen */
.hex-label { font: 600 12px/1 Inter, system-ui, -apple-system, sans-serif; text-transform: none; letter-spacing: 0; padding: 7px 10px; border-radius: 999px;
  color: #fff; background: rgba(28,30,40,.72); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 24px rgba(0,0,0,.35); z-index: 5;
  transition: opacity .18s, transform .22s cubic-bezier(.23,1,.32,1); }
#hex-menu.on-left .hex-label { right: auto; left: calc(100% + 14px); transform: translate(-6px, -50%); }
#hex-menu.on-right .hex-label { left: auto; right: calc(100% + 14px); transform: translate(6px, -50%); }
@media (hover: hover) { .hex-btn:hover .hex-label, .hex-btn:focus-visible .hex-label { opacity: 1; transform: translate(0, -50%); } }
.hex-btn .hex-label.is-visible { opacity: 1; transform: translate(0, -50%); }

/* split buttons (Mic, Camera): one outline, toggle zone + menu zone */
.hex-split { position: relative; z-index: 1; display: flex; flex-direction: column; border-radius: 22px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); flex: none; }
.hex-split.is-on { background: rgba(63,224,197,.16); box-shadow: inset 0 0 0 1px rgba(63,224,197,.42); }
.hex-split.is-off { background: rgba(229,72,77,.18); box-shadow: inset 0 0 0 1px rgba(229,72,77,.45); }
.hex-split > .hex-btn.is-on, .hex-split > .hex-btn.is-off { background: transparent; box-shadow: none; }
.hex-split > .hex-btn:not(.hex-split-menu) { border-radius: 22px 22px 8px 8px; }
#hex-menu .hex-btn.hex-split-menu { height: 26px; border-radius: 8px 8px 22px 22px; color: rgba(255,255,255,.85); }
.hex-btn.hex-split-menu::before { content: ""; display: block; position: absolute; top: 0; left: 10px; right: 10px; height: 1px; background: rgba(255,255,255,.22); }
.hex-split-ico { width: 15px; height: 15px; transition: transform .22s cubic-bezier(.23,1,.32,1); }
.hex-split-menu[aria-expanded="true"] .hex-split-ico { transform: rotate(180deg); }
.hex-split-menu[aria-expanded="true"] { background: rgba(255,255,255,.12); }
@media (pointer: coarse) { #hex-menu .hex-btn.hex-split-menu { height: 44px; } .hex-split-ico { width: 17px; height: 17px; } }
#hex-menu.collapsed .hex-split { background: none; box-shadow: none; }

/* One column on every screen (builder, 2026-11-15: never two columns). When the rail is taller than
 * the screen (any orientation), glass_rail.js adds .rail-scroll: it scrolls inside its own panel with
 * full-size buttons and soft fades at the edges that have more. */
#hex-menu:not(.collapsed) .hex-cluster { flex-wrap: nowrap !important; border: 0 !important; align-items: stretch; }
#hex-menu:not(.collapsed) .hex-cluster > .hex-btn, #hex-menu:not(.collapsed) .hex-cluster > .hex-split { width: auto; align-self: stretch; }
#hex-menu:not(.collapsed) .hex-split > .hex-btn { width: 100% !important; }
@media (max-height: 600px) and (orientation: landscape) {
  #hex-menu:not(.collapsed) .hex-cluster { display: flex; flex-direction: column; grid-template-columns: none; grid-auto-rows: auto; width: var(--y-ctrl-w); box-sizing: border-box; }
}
#hex-menu:not(.collapsed).rail-scroll .hex-cluster {
  max-height: var(--rail-max, calc(100dvh - 24px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y proximity; scrollbar-width: none;
}
#hex-menu:not(.collapsed).rail-scroll .hex-cluster::-webkit-scrollbar { display: none; }
#hex-menu:not(.collapsed).rail-scroll .hex-cluster > * { flex: none; scroll-snap-align: start; }
#hex-menu:not(.collapsed).rail-scroll.can-up .hex-cluster { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }
#hex-menu:not(.collapsed).rail-scroll.can-down .hex-cluster { -webkit-mask-image: linear-gradient(to top, transparent 0, #000 28px); mask-image: linear-gradient(to top, transparent 0, #000 28px); }
#hex-menu:not(.collapsed).rail-scroll.can-up.can-down .hex-cluster { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
@media (prefers-reduced-motion: reduce) { .hex-glide, .hex-label, .hex-btn, .hex-split-ico { transition: none; } }
@media (prefers-reduced-transparency: reduce) { #hex-menu:not(.collapsed) .hex-cluster { background: rgb(30,32,42); -webkit-backdrop-filter: none; backdrop-filter: none; } .hex-label { background: rgb(28,30,40); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { #hex-menu:not(.collapsed) .hex-cluster { background: rgba(16,18,24,.94); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); } .hex-split { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); } }

/* Buttons fill the full panel width (the glass panel has no border to subtract): >= 44px on phones. */
#hex-menu:not(.collapsed) .hex-cluster > .hex-btn, #hex-menu:not(.collapsed) .hex-split > .hex-btn:not(.hex-split-menu) { height: var(--y-ctrl-w); }

/* Menu-only overrides of the older rail rules (style_flower.css / style_hex_buttons.css), 2026-11-15:
 * whenever the menu is open its panel is one column at the settings-bud width with no border, so the
 * buttons get the full width (44px on phones). Position, the call stage and the attendee tiles are
 * not touched by anything in this file. */
#hex-menu:not(.collapsed) .hex-cluster.hex-cluster {
  border: 0 !important; display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
  grid-template-columns: none !important; grid-auto-rows: auto !important;
  width: var(--y-ctrl-w) !important; box-sizing: border-box !important; padding-left: 0 !important; padding-right: 0 !important;
}
#hex-menu:not(.collapsed) .hex-cluster > .hex-btn, #hex-menu:not(.collapsed) .hex-cluster > .hex-split { width: 100% !important; }
#hex-menu:not(.collapsed) .hex-split > .hex-btn { width: 100% !important; }
