/* fselect: the dropdown list of every <select> (static/fb3/js/fselect.js) — a solid navy "ice shard" panel with a thin
   aurora edge on desktop, a bottom sheet on phones. The select itself stays the trigger and keeps its own styling. */
select[data-fs] { cursor: pointer; }
select[data-fs]:disabled { cursor: not-allowed; }
/* selects that were still drawn with the operating system's arrow: same field, site chevron */
select.fs-arrow { -webkit-appearance: none !important; appearance: none !important; padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239fe3ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 13px center !important; background-size: 12px 8px !important; }
select.fs-arrow.fs-open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%231fc8ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }

.fs-wrap { display: none; }
.fs-wrap.fs-on { display: block; }
.fs-wrap, .fs-wrap[popover] { position: fixed; inset: auto; z-index: 2147483000; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible;
  color: #f1f4ff; color-scheme: dark; font: 500 14px/1.35 var(--body, 'Montserrat', system-ui, sans-serif); text-align: left; letter-spacing: normal; text-transform: none; }
.fs-wrap [hidden] { display: none !important; }

.fs-pop { position: relative; display: flex; flex-direction: column; min-width: 100%; overflow: hidden;
  border-radius: var(--sh-m, 4px 18px 4px 18px); background: linear-gradient(170deg, #19204a 0%, #0f1434 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 150, 255, .32), 0 26px 56px -22px rgba(0, 0, 0, .95), 0 0 0 1px rgba(3, 5, 16, .55);
  opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .16s cubic-bezier(.2, .8, .2, 1); }
.fs-pop::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(31, 200, 255, .85) 30%, rgba(75, 85, 240, .9) 70%, transparent); box-shadow: 0 0 10px 1px rgba(75, 120, 255, .55); }
.fs-up .fs-pop { transform: translateY(6px); }
.fs-up .fs-pop::before { top: auto; bottom: 0; }
.fs-in .fs-pop { opacity: 1; transform: none; }

.fs-head { display: none; }
.fs-sr { flex: none; display: flex; align-items: center; gap: 9px; height: 40px; margin: 8px 8px 2px; padding: 0 12px; border-radius: var(--sh-s, 3px 12px 3px 12px);
  background: rgba(5, 8, 22, .8); box-shadow: inset 0 0 0 1px rgba(124, 150, 255, .3); color: #8fa0d8; }
.fs-sr:focus-within { box-shadow: inset 0 0 0 1.5px #2aa8ff; color: #9fe3ff; }
.fs-sr svg { flex: none; width: 16px; height: 16px; }
.fs-q { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; box-shadow: none; color: #fff; font: 500 14px var(--body, system-ui); -webkit-appearance: none; appearance: none; }
.fs-q::placeholder { color: #8d98c4; opacity: 1; }

.fs-list { flex: 1 1 auto; min-height: 0; max-height: 340px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; outline: 0;
  scrollbar-width: thin; scrollbar-color: #3a4890 transparent; }
.fs-list::-webkit-scrollbar { width: 8px; } .fs-list::-webkit-scrollbar-thumb { background: #3a4890; border-radius: 8px; } .fs-list::-webkit-scrollbar-track { background: transparent; }
.fs-opt { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 38px; padding: 8px 14px 8px 10px;
  border-radius: var(--sh-s, 3px 12px 3px 12px); color: #dbe2f7; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.fs-t { min-width: 0; overflow-wrap: anywhere; }
.fs-ck { width: 16px; height: 16px; color: #1fc8ff; visibility: hidden; filter: drop-shadow(0 0 4px rgba(31, 200, 255, .55)); }
.fs-opt[aria-selected="true"] { color: #fff; font-weight: 600; }
.fs-opt[aria-selected="true"] .fs-ck { visibility: visible; }
.fs-opt.fs-act { background: linear-gradient(90deg, rgba(75, 85, 240, .34), rgba(31, 120, 255, .16)); color: #fff; box-shadow: inset 2px 0 0 #1fc8ff; }
.fs-opt[aria-disabled="true"] { color: #7b86b4; cursor: not-allowed; opacity: .6; }
.fs-opt[aria-disabled="true"].fs-act { background: none; box-shadow: none; }
.fs-grp + .fs-grp, .fs-opt + .fs-grp { margin-top: 4px; padding-top: 4px; border-top: 1px solid rgba(124, 140, 255, .14); }
.fs-gh { padding: 8px 10px 4px; color: #a1acd6; font: 700 10.5px/1.3 var(--body, system-ui); letter-spacing: .16em; text-transform: uppercase; cursor: default; }
.fs-grp .fs-opt { padding-left: 14px; }
.fs-empty { margin: 0; padding: 14px 16px 16px; color: #a1acd6; font-size: 13.5px; }

/* phones: the same list as a bottom sheet over a dimmed page (like the article / account sheets) */
.fs-wrap.fs-sheet, .fs-wrap.fs-sheet[popover] { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; display: none; align-items: flex-end;
  background: rgba(4, 6, 18, 0); transition: background .22s ease; cursor: pointer; }
.fs-wrap.fs-sheet.fs-on { display: flex; }
.fs-wrap.fs-sheet.fs-in { background: rgba(4, 6, 18, .62); }
.fs-sheet .fs-pop { width: 100%; max-height: 78vh; max-height: 78dvh; border-radius: 6px 22px 0 0; cursor: auto; opacity: 1;
  background: linear-gradient(180deg, #1a2052, #11153a); box-shadow: 0 -20px 50px -20px #000, inset 0 1px 0 rgba(140, 160, 255, .22);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom); }
.fs-sheet.fs-in .fs-pop { transform: none; }
.fs-sheet .fs-pop::before { display: none; }
.fs-sheet .fs-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 14px 8px 20px; }
.fs-sheet .fs-head[hidden] { display: none !important; }
.fs-grip { position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.fs-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font: 700 17px var(--head, system-ui); }
.fs-x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 3px 10px 3px 10px; background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer; }
.fs-x svg { width: 16px; height: 16px; }
.fs-x:focus-visible { outline: 2px solid #2aa8ff; outline-offset: 2px; }
.fs-sheet .fs-sr { height: 46px; margin: 2px 14px 6px; }
.fs-sheet .fs-q { font-size: 16px; }
.fs-sheet .fs-list { max-height: none; padding: 4px 12px 18px; }
.fs-sheet .fs-opt { min-height: 52px; padding: 12px 14px; gap: 12px; grid-template-columns: 18px minmax(0, 1fr); font-size: 16px; }
.fs-sheet .fs-ck { width: 18px; height: 18px; }
.fs-sheet .fs-gh { padding: 12px 14px 6px; font-size: 11px; }

@media (prefers-reduced-motion: reduce) {
  .fs-pop, .fs-sheet .fs-pop, .fs-wrap.fs-sheet { transition: none !important; }
  .fs-pop, .fs-up .fs-pop { transform: none; }
}
@media (forced-colors: active) {
  .fs-pop { border: 1px solid CanvasText; }
  .fs-opt.fs-act { outline: 2px solid Highlight; }
}

/* Same shape and highlight as the hub sidebar (store.css .tree): rounded capsule rows, the hovered/keyboard row lights
   up as the indigo→cyan capsule of the current sidebar item, the chosen one keeps its check */
.fs-opt { border-radius: 14px; min-height: 42px; font: 500 14.5px/1.25 var(--head, system-ui); transition: background .18s, color .18s, box-shadow .18s; }
.fs-opt.fs-act { color: #fff; box-shadow: 0 10px 28px -12px rgba(47, 120, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
  background: linear-gradient(90deg, #3b3fd3 0%, #2f5cf0 55%, #33b8ff 100%); }
.fs-opt.fs-act .fs-ck { color: #fff; filter: none; }
.fs-opt[aria-selected="true"]:not(.fs-act) { background: rgba(255, 255, 255, .045); }
@media (prefers-reduced-motion: reduce) { .fs-opt { transition: none; } }
