/* island.css — the Ycall island (island.js, 2026-11-15).
 * Material: the signed-off floating-window glass (ycall-bubbles-app-style 2b): one tint, iridescent
 * 1.5px rim on the non-scrolling wrapper, no glass inside glass (inner cards are fills). One accent. */
.isl {
  --isl-teal: #3fe0c5; --isl-danger: #e5484d; --isl-line: rgba(255,255,255,.16);
  position: fixed; z-index: 9996; left: 50%; top: 10px;
  display: flex; flex-direction: column; align-items: stretch;
  width: max-content; max-width: var(--isl-avail-w, calc(100vw - 16px));
  color: #fff; font: 500 14px/1.35 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.4);
  background: rgba(28,30,40,.34); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid var(--isl-line); border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 40px rgba(0,0,0,.35);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: border-radius .32s cubic-bezier(.23,1,.32,1), width .32s cubic-bezier(.23,1,.32,1), height .32s cubic-bezier(.23,1,.32,1);
  interpolate-size: allow-keywords;
}
.isl[hidden] { display: none; }
.isl.is-drag { cursor: grabbing; }
.isl-rim { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px;
  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); opacity: .75; }
.isl-grip { display: none; width: 36px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); margin: 8px auto 0; flex: none; }
.isl.is-open { border-radius: 28px; width: min(440px, var(--isl-avail-w, calc(100vw - 16px))); }
.isl.is-open .isl-grip { display: block; }

/* closed: the status bar (share_dock.js) */
.isl-bar { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 5px; min-height: 46px; }
.isl-bar:empty { display: none; }
.isl.is-open.has-bar .isl-bar { padding: 4px 10px 6px; border-bottom: 1px solid var(--isl-line); }
.sdock-dot { flex: none; width: 36px; height: 36px; min-width: 36px; border-radius: 50%; border: none; padding: 0; cursor: pointer; display: grid; place-items: center; background: transparent; }
.sdock-dot span { width: 12px; height: 12px; border-radius: 50%; background: #9aa3ad; box-shadow: 0 0 0 5px rgba(154,163,173,.22); }
.isl.is-live .sdock-dot span { background: var(--isl-danger); box-shadow: 0 0 0 5px rgba(229,72,77,.22); animation: isl-pulse 2s ease-in-out infinite; }
@keyframes isl-pulse { 50% { box-shadow: 0 0 0 8px rgba(229,72,77,.08); } }
.sdock-t { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 34ch; }
.sdock-bs { display: flex; gap: 12px; flex: none; }
.sdock-b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; cursor: pointer; font: 600 13px Inter, system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.08); border: 1px solid var(--isl-line);
  transition: transform .12s cubic-bezier(.23,1,.32,1), background .15s; }
.sdock-b:hover { background: rgba(255,255,255,.2); }
.sdock-b:active { transform: scale(.96); }
.sdock-b svg { width: 18px; height: 18px; flex: none; }
.sdock-b .sdock-l { display: none; }
.sdock-b.is-go .sdock-l, .sdock-b.is-stop[data-d="unshare"] .sdock-l { display: inline; }
.sdock-b.is-stop { background: var(--isl-danger); border-color: transparent; }
.sdock-b.is-go { background: var(--isl-teal); color: #062a24; text-shadow: none; border-color: transparent; }
.sdock-b:focus-visible, .sdock-dot:focus-visible, .isl .lg-btn:focus-visible, .isl .share-opt:focus-visible { outline: 2px solid var(--isl-teal); outline-offset: 2px; }
.isl.is-folded:not(.is-open) .sdock-t, .isl.is-folded:not(.is-open) .sdock-bs { display: none; }
.isl.is-folded:not(.is-open) .isl-bar { padding: 4px; min-height: 0; }

/* open: a hosted question (the flows' own <dialog>, shown non-modally inside the island) */
.isl-body { display: flex; flex-direction: column; min-height: 0; }
.isl-body:empty { display: none; }
.isl .isl-card { position: static; inset: auto; margin: 0; padding: 12px 16px 16px; width: auto; max-width: none; max-height: min(70dvh, 620px, calc(var(--isl-avail-h, 100dvh) - 70px));
  overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: inherit;
  -webkit-backdrop-filter: none; backdrop-filter: none; cursor: auto; user-select: text; -webkit-user-select: text; animation: isl-in .26s cubic-bezier(.23,1,.32,1); }
@keyframes isl-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.isl .isl-card::backdrop { display: none; }
.isl .isl-card .lg-head { padding: 0 0 10px; }
.isl .isl-card .lg-title { font: 700 17px/1.3 Inter, system-ui, sans-serif; letter-spacing: -.2px; padding-right: 36px; }
.isl .isl-card .lg-sub { font-size: 14px; opacity: .88; margin-top: 4px; }
.isl .isl-card .lg-body { padding: 0; display: grid; gap: 8px; }
.isl .isl-card .lg-close { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--isl-line); color: #fff; }
.isl .share-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 12px; text-align: left; cursor: pointer; color: #fff;
  border-radius: 18px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .15s, transform .12s cubic-bezier(.23,1,.32,1); }
.isl .share-opt:hover { background: rgba(255,255,255,.14); }
.isl .share-opt:active { transform: scale(.98); }
.isl .share-opt strong { display: block; font-weight: 650; }
.isl .share-opt-txt span { display: block; font-size: 13px; opacity: .82; margin-top: 2px; }
.isl .share-opt-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(63,224,197,.16); color: var(--isl-teal); flex: none; }
.isl .share-opt-ico svg { width: 22px; height: 22px; }
.isl .share-skip { display: flex; gap: 8px; align-items: center; font-size: 13px; opacity: .85; padding: 4px 2px; }
.isl .lg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 12px 0 0; }
.isl .lg-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 600 14px Inter, system-ui, sans-serif; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid var(--isl-line); -webkit-backdrop-filter: none; backdrop-filter: none; transition: transform .12s cubic-bezier(.23,1,.32,1); }
.isl .lg-btn:active { transform: scale(.96); }
.isl .lg-btn-primary { background: var(--isl-teal); color: #062a24; text-shadow: none; border-color: transparent; }

/* notices: under the island, capsule while one line, 20px radius once it wraps */
#media-notice.isl-notice { transform: translateX(-50%); border-radius: 999px; background: rgba(28,30,40,.34) !important; border: 1px solid rgba(255,255,255,.16) !important; }
#media-notice.isl-notice.is-wrap { border-radius: 20px; }

/* phones: the open island is a bottom-anchored card width; targets stay 44px */
@media (max-width: 420px) { .sdock-t { max-width: 15ch; } }
@media (prefers-reduced-motion: reduce) { .isl, .isl .isl-card, .sdock-b, .isl .lg-btn, .isl .share-opt { transition: none; animation: none; } .isl.is-live .sdock-dot span { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .isl { background: rgb(28,30,40); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .isl { border-color: rgba(255,255,255,.7); background: rgba(16,18,24,.92); } .isl .share-opt, .sdock-b { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); } }
/* older sheet styles give subtitles a dark ink: in the island every line is light on the glass */
.isl .isl-card .lg-sub, .isl .isl-card .share-sub, .isl .isl-card .lg-sub strong, .isl .isl-card .lk-exp, .isl .isl-card p, .isl .isl-card li { color: rgba(255,255,255,.88); }
.isl .isl-card .lg-title { color: #fff; }

/* ── Liquid-glass bubbles (liquid-glass-bubbles + ycall-bubbles-app-style 2a, CSS sphere fallback) ──
 * Every icon in the island is a glass sphere: fresnel rim (brighter toward the edge), fixed specular arc,
 * faint iridescent ring, a coloured "gas" inside, soft drop shadow, jelly press. No blur inside the
 * island glass (no glass on glass): the sphere is drawn with gradients only. */
.isl .share-opt-ico, .isl .isl-bub, .isl .sdock-b:not(.is-stop):not(.is-go), .isl .sdock-dot, .isl .isl-card .lg-close {
  --gas: 63,224,197; position: relative; isolation: isolate; border-radius: 50%; color: #fff; border: 0;
  background:
    radial-gradient(circle at 50% 112%, rgba(var(--gas), .85) 0, rgba(var(--gas), .32) 44%, transparent 68%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.03) 52%, rgba(255,255,255,.16) 68%, rgba(255,255,255,.5) 88%, rgba(255,255,255,.85) 99%),
    radial-gradient(circle at 34% 30%, rgba(var(--gas), .34), rgba(10,14,22,.3) 75%);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.55), inset 0 -2px 6px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.5);
  transition: transform .42s linear(0, .55 14%, .96 28%, 1.08 40%, 1.02 55%, .99 70%, 1), --gas .2s;
}
.isl .share-opt-ico::before, .isl .isl-bub::before, .isl .sdock-b:not(.is-stop):not(.is-go)::before, .isl .sdock-dot::before, .isl .isl-card .lg-close::before {
  /* iridescent rim: a 1.5px conic ring masked to the edge */
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px; z-index: -1; pointer-events: none;
  background: conic-gradient(from 215deg, rgba(255,255,255,.9), rgba(170,210,255,.5) 12%, rgba(255,255,255,.1) 26%, rgba(255,190,235,.45) 40%, rgba(255,255,255,.12) 55%, rgba(190,255,235,.5) 70%, rgba(255,255,255,.14) 84%, rgba(255,255,255,.9));
  -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);
}
.isl .share-opt-ico::after, .isl .isl-bub::after, .isl .sdock-b:not(.is-stop):not(.is-go)::after, .isl .sdock-dot::after, .isl .isl-card .lg-close::after {
  /* fixed specular arc, upper left, and a small caustic at the lower right */
  content: ""; position: absolute; inset: 7% 12% 52% 14%; border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0) 85%); opacity: .7; filter: blur(.3px);
}
.isl .share-opt-ico svg, .isl .isl-bub svg, .isl .sdock-b svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); color: #fff; }
.isl .share-opt-ico { width: 46px; height: 46px; }
.isl .share-opt-ico svg { width: 22px; height: 22px; }
.isl .share-opt:hover .share-opt-ico, .isl .sdock-b:not(.is-stop):not(.is-go):hover, .isl .isl-bub:hover { transform: scale(1.08); }
.isl .share-opt:active .share-opt-ico, .isl .sdock-b:not(.is-stop):not(.is-go):active { transform: scale(.94); }
/* gas colours by meaning (one accent family, light only, never a solid fill) */
.isl .share-opt[data-act="tab"] .share-opt-ico, .isl [data-sw="h-chrome"] .share-opt-ico, .isl [data-sw="app"] .share-opt-ico { --gas: 63,224,197; }
.isl .share-opt[data-act="screen"] .share-opt-ico, .isl [data-sw="h-edge"] .share-opt-ico, .isl [data-sw="edge"] .share-opt-ico { --gas: 120,170,255; }
.isl .share-opt[data-act="file"] .share-opt-ico { --gas: 190,140,255; }
.isl .share-opt[data-act="switch"] .share-opt-ico, .isl [data-sw="copy"] .share-opt-ico { --gas: 255,196,110; }
.isl .sdock-b[data-d="flip"], .isl .sdock-b[data-d="listen"] { --gas: 140,190,255; }
.isl .sdock-b[data-d="again"] { --gas: 63,224,197; }
.isl .sdock-b:not(.is-stop):not(.is-go) { width: 44px; min-width: 44px; height: 44px; padding: 0; }
/* the live dot is itself a small bubble with red gas */
.isl .sdock-dot { --gas: 154,163,173; width: 34px; height: 34px; min-width: 34px; }
.isl.is-live .sdock-dot { --gas: 229,72,77; }
.isl .sdock-dot span { position: relative; z-index: 1; width: 9px; height: 9px; }
/* Stop and the one primary action stay capsules (one prominent action, destructive never the bubble) */
.isl .sdock-b.is-stop, .isl .sdock-b.is-go { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .isl .share-opt-ico, .isl .isl-bub, .isl .sdock-b, .isl .sdock-dot { transition: none; } }
@media (prefers-contrast: more) { .isl .share-opt-ico, .isl .isl-bub, .isl .sdock-b:not(.is-stop):not(.is-go), .isl .sdock-dot { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); } }

.isl .isl-card .lg-close { --gas: 200,205,215; }
.isl .isl-card .lg-close svg { position: relative; z-index: 1; }
/* HIG fixes: no glass inside the island glass; the fold dot is a full 44px target */
.isl .isl-card .lg-close { -webkit-backdrop-filter: none; backdrop-filter: none; }
.isl .sdock-dot { width: 44px; height: 44px; min-width: 44px; }
