/* control_island.css — the call controls in the top Dynamic Island (builder, 2026-11-16).
 * Material: the island's own floating-window glass (island.css). Inside it there is no glass on
 * glass: buttons are plain fills. 44px targets everywhere (HIG; island_hig.e2e.js).
 * Responsive by the island's own width: lanes wrap (one row when they fit, two or more when not),
 * the island is never wider than the screen, and lanes B/C scroll inside it on short screens. */
.isl-ctl { display: none; }
#isl.has-ctl { --ib: 44px; padding: 5px; gap: 4px; border-radius: 26px; max-width: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); }
#isl.has-ctl:not(.ctl-open):not(.is-open) { border-radius: 999px; }
#isl.has-ctl .isl-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
#isl.has-ctl .isl-lane { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
#isl.has-ctl .isl-mw { display: none; }
#isl.has-ctl.ctl-open .isl-mw { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-width: 0; max-width: 100%;
  max-height: var(--isl-mw-h, 60dvh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
#isl.has-ctl .isl-mw::-webkit-scrollbar { display: none; }
#isl.has-ctl .isl-b { display: grid; grid-template-columns: repeat(var(--isl-b-cols, 8), var(--ib)); }
#isl.has-ctl.set-open .isl-mw { flex-basis: 100%; }
#isl.has-ctl .isl-c { display: none; flex-basis: 100%; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.12); }
#isl.has-ctl.set-open .isl-c { display: flex; }

/* the sharing status keeps its own width (it folds to a dot) */
#isl.has-ctl .isl-bar { align-self: center; }
/* every control: a plain fill (no glass on glass) */
#isl.has-ctl .isl-ctl .hex-btn { width: var(--ib); height: var(--ib); min-width: var(--ib); border-radius: 999px; margin: 0; transform: none;
  background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); position: relative; flex: none; }
#isl.has-ctl .isl-ctl .hex-btn:hover { background: rgba(255,255,255,.18); transform: none; }
#isl.has-ctl .isl-ctl .hex-btn:active { transform: scale(.94); }
#isl.has-ctl .isl-ctl .hex-btn svg { width: 20px; height: 20px; }
#isl.has-ctl .isl-ctl .hex-label, #isl.has-ctl .isl-ctl .hex-glide { display: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: none !important; }
#isl.has-ctl .isl-ctl button:focus-visible { outline: 2px solid #7fe3d4; outline-offset: 2px; }

/* Mic and Camera: one capsule each, the arrow zone inside it behind a hairline divider */
#isl.has-ctl .isl-a .hex-split { display: inline-flex; flex-direction: row; align-items: stretch; height: var(--ib); width: auto !important; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); flex: none; }
#isl.has-ctl .isl-a .hex-split > .hex-btn { background: transparent; box-shadow: none; border-radius: 0; height: var(--ib) !important; }
#isl.has-ctl .isl-a .hex-split > .hex-btn:not(.hex-split-menu) { width: var(--ib) !important; padding-left: 4px; }
#isl.has-ctl .isl-a .hex-split > .hex-split-menu { width: 44px !important; min-width: 44px; border-left: 1px solid rgba(255,255,255,.22); }
#isl.has-ctl .isl-a .hex-split > .hex-split-menu::before { display: none !important; }
#isl.has-ctl .isl-a .hex-split > .hex-split-menu svg { width: 16px; height: 16px; transition: transform .2s; }
#isl.has-ctl .isl-a .hex-split > .hex-split-menu[aria-expanded="true"] svg { transform: rotate(180deg); }
#isl.has-ctl .isl-a .hex-split > .hex-btn:hover { background: rgba(255,255,255,.12); }
#isl.has-ctl .isl-a .hex-split.is-on { background: rgba(63,224,197,.18); box-shadow: inset 0 0 0 1px rgba(63,224,197,.45); color: #7fe3d4; }
#isl.has-ctl .isl-a .hex-split.is-off { background: rgba(229,72,77,.20); box-shadow: inset 0 0 0 1px rgba(229,72,77,.50); color: #ffb3b5; }

/* the call time: status only (builder 2026-11-16: the timer is not a menu) */
#isl.has-ctl .isl-status { display: inline-flex; align-items: center; gap: 7px; height: var(--ib); padding: 0 10px; color: #fff;
  font: 600 14px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; flex: none; }
#isl.has-ctl.ctl-open #hex-toggle { background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
/* (old status pill styles kept for the activity button that phase 2 adds) */
#isl.has-ctl .isl-open { display: inline-flex; align-items: center; gap: 7px; height: var(--ib); padding: 0 8px 0 12px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; font: 600 14px/1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; flex: none; }
#isl.has-ctl .isl-open:hover { background: rgba(255,255,255,.10); }
#isl.has-ctl .isl-live { width: 8px; height: 8px; border-radius: 50%; background: #3fe0c5; box-shadow: 0 0 0 4px rgba(63,224,197,.22); }
#isl.has-ctl .isl-chev { display: inline-flex; width: 16px; transition: transform .25s cubic-bezier(.23,1,.32,1); }
#isl.has-ctl.ctl-open .isl-chev { transform: rotate(180deg); }
#isl.has-ctl #hex-end { width: calc(var(--ib) + 12px) !important; background: #e5484d; box-shadow: none; }
#isl.has-ctl #hex-end:hover { background: #f05a5f; }
#isl.has-ctl #hex-end svg, #isl.has-ctl #hex-end .hex-svg { color: #fff; fill: currentColor; }
#isl.has-ctl .isl-rec { color: #ff6b6f; }

/* settings: the flower's actions as labelled pills, each with its petal colour */
#isl.has-ctl .isl-pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ib); padding: 0 14px 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.10); color: #fff; font: 600 13px/1 Inter, system-ui, sans-serif; flex: 0 0 auto; justify-content: center; }
#isl.has-ctl .isl-pill:hover { background: rgba(255,255,255,.16); }
#isl.has-ctl .isl-pill-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: oklch(var(--petal-l, 62%) 0.16 var(--petal-hue, 280) / .55); }
#isl.has-ctl .isl-pill-ico svg { width: 16px; height: 16px; }

/* hide mode: one small way back */
.isl-show { display: none; }
html.ui-hidden #isl.has-ctl .isl-a, html.ui-hidden #isl.has-ctl .isl-mw { display: none !important; }
html.ui-hidden #isl.has-ctl .isl-show { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ib); padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: #fff; font: 600 13px/1 Inter, system-ui, sans-serif; cursor: pointer; }

/* in a call the controls live in the island: the empty rail and the corner flower step aside
   (the flower stays on the join page; every action is in the island) */
html.y-ctl-island #hex-menu, html.y-ctl-island #flower-root { display: none !important; }

@media (prefers-reduced-motion: reduce) { #isl.has-ctl .isl-chev, #isl.has-ctl .hex-split-menu svg { transition: none; } }
@media (prefers-reduced-transparency: reduce) { #isl.has-ctl { background: rgb(28,30,40); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { #isl.has-ctl .isl-ctl .hex-btn, #isl.has-ctl .isl-pill { box-shadow: inset 0 0 0 1.5px #fff; } }
/* with Settings open the island has a calm, fixed width (rows wrap inside it), never the whole screen */
#isl.has-ctl.set-open { width: min(700px, calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); }

/* Mirror: applies to the whole call (each attendee's app flips that person's video) */
video.y-mirrored { transform: scaleX(-1); }
#isl.has-ctl .isl-mirror[aria-pressed="true"] { background: rgba(255,214,90,.22); box-shadow: inset 0 0 0 1px rgba(255,214,90,.6); }
#isl.has-ctl .isl-mirror .isl-pill-ico { color: #3a2e00; }
