/* flight-ui.css -- shared control styling for the Landing Lab and the Shipyard: soft frosted pills, no outlines. */
button, select, input[type=text], input[type=number] { outline: none; }
button, select {
  background: rgba(255, 255, 255, 0.075); -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25);
  border: 0; border-radius: 999px; padding: 6px 15px; color: var(--text, #dbe5f3); font: inherit; line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .08s ease;
}
button { cursor: pointer; }
button:hover:not(:disabled), select:hover { background: rgba(255, 255, 255, 0.15); border: 0; }
button:active:not(:disabled) { transform: scale(0.97); background: rgba(255, 255, 255, 0.2); }
button:focus-visible, select:focus-visible { box-shadow: inset 0 0 0 1px rgba(127, 195, 255, 0.35); }
button:disabled { opacity: 0.38; cursor: default; }
button.primary { background: rgba(127, 195, 255, 0.24); color: #fff; box-shadow: inset 0 0 0 1px rgba(127, 195, 255, 0.28); }
button.primary:hover:not(:disabled) { background: rgba(127, 195, 255, 0.36); }
button.on { background: rgba(127, 195, 255, 0.24); color: #bfe0ff; border: 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238a9bb8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
select option { background: #151a22; color: #dbe5f3; }
input[type=text], input[type=number] { background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
input[type=text]:focus, input[type=number]:focus { box-shadow: inset 0 0 0 1px rgba(127, 195, 255, 0.35); }
/* switches */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 32px; height: 19px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); position: relative; cursor: pointer; flex: none; transition: background .15s ease; border: 0; margin: 0; }
input[type=checkbox]::after { content: ""; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #e8eef7; transition: transform .15s ease; }
input[type=checkbox]:checked { background: rgba(127, 195, 255, 0.7); } input[type=checkbox]:checked::after { transform: translateX(13px); background: #fff; }
/* the control bar is a frosted pill rail */
#bar { justify-content: center; pointer-events: none; }
#bar .rail { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; max-width: 100%; flex-wrap: wrap;
  background: rgba(16, 22, 32, 0.5); -webkit-backdrop-filter: blur(22px) saturate(1.35); backdrop-filter: blur(22px) saturate(1.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 28px rgba(0, 0, 0, 0.35); }
#bar .rail button, #bar .rail select { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
#bar .rail button:hover:not(:disabled), #bar .rail select:hover { background: rgba(255, 255, 255, 0.12); }
#bar .rail button.primary { background: rgba(127, 195, 255, 0.3); }
#bar .rail label { display: inline-flex; align-items: center; gap: 7px; padding: 0 8px; color: #b9c6da; font-size: 13.5px; white-space: nowrap; }
#bar .rail .sep { width: 1px; height: 18px; background: rgba(255, 255, 255, 0.12); margin: 0 4px; }

/* icon rail (flight-rail.js): icon buttons, icon labels, an icon toggle, and tooltips */
#bar .rail .ib { width: 34px; height: 30px; padding: 0 !important; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; }
#bar .rail .ib:disabled { opacity: .35; }
#bar .rail .ric { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#bar .rail .ib .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#bar .rail label.il { gap: 5px; padding: 0 6px; border-radius: 999px; cursor: pointer; }
#bar .rail label.il > .ric { color: #9fb2cc; }
#bar .rail label.tg { padding: 0; width: 34px; height: 30px; justify-content: center; }
#bar .rail label.tg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#bar .rail label.tg:hover { background: rgba(255, 255, 255, 0.12); }
#bar .rail label.tg.on { background: rgba(127, 195, 255, 0.3); }
#bar .rail label.tg.on > .ric { color: #e8f4ff; }
#bar .rail [data-tip] { position: relative; }
#bar .rail [data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 11px); transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 7px;
  background: rgba(10, 14, 22, 0.96); border: 1px solid rgba(255, 255, 255, 0.14); color: #e8eef7; font: 500 12px/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  text-shadow: none; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s ease, transform .12s ease; z-index: 30; }
#bar .rail [data-tip]:hover:not(:focus-within)::after, #bar .rail [data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); transition-delay: .2s; }
