/* MT-252, MT-264, MT-265: the alpha track (alpha.js). None of it exists for anyone who is not an alpha tester. */
.alpha-mark {
  position: fixed; z-index: 40; display: none; flex-direction: column; align-items: center; justify-content: center;
  pointer-events: none; border: 2px solid rgba(140, 240, 255, .7); border-radius: 50%;
  background: rgba(0, 20, 30, .28); color: rgba(150, 245, 255, .8); text-shadow: 0 0 18px rgba(80, 220, 255, .85);
  font-family: Orbitron, system-ui, sans-serif; line-height: 1; opacity: .6;
}
.alpha-glyph { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
/* α and ALPHA are one block centred in the ring: the lift carries α a little above the centre, leaving ALPHA room under it. The mark's font-size is 78% of its width, so every em here scales with the circle. */
.alpha-mark span { transform: translateY(-.08em); }
.alpha-mark .alpha-glyph { width: .56em; height: .56em; filter: drop-shadow(0 0 .09em rgba(80, 220, 255, .85)); }
/* The left padding balances the letter-spacing after the last letter, so the word centres too. */
.alpha-mark small { position: absolute; left: 0; right: 0; bottom: 21%; text-align: center; padding-left: .3em; font-size: .125em; letter-spacing: .3em; }
body[data-screen="launch"] .alpha-mark { display: flex; }
.alpha-fab {
  position: fixed; z-index: 26; left: calc(8px + var(--safe-l)); bottom: calc(72px + var(--safe-b)); width: 49px; height: 49px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 0; border-radius: 50%; background: #bff7ff; color: #00141e; font-size: 26px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 2px 10px rgba(0, 0, 0, .6);
}
.alpha-fab { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.alpha-fab .alpha-glyph { width: .9em; height: .9em; }
.alpha-badge {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; box-sizing: border-box; padding: 0 4px;
  border-radius: 9px; background: #e5322d; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; pointer-events: none;
}
.alpha-badge[hidden] { display: none; }
body[data-screen="launch"] .alpha-fab { display: none; }
/* MT-372: the note in place of a held-back video keeps clear of the button on either side, so its clock is never under it. */
body:has(.alpha-fab) .unavailable-box { max-width: min(760px, calc(100% - 2 * (65px + var(--safe-l, 0px)))); }
/* MT-342: above the menus and sheets (z 20) so it stays tappable, gone only while the alpha's own sheets are open. */
body:has(.sheet.alpha-ui:not([hidden])) .alpha-fab { display: none; }
/* MT-429: the player hides its own controls sideways (player.js sets controls-off); the button goes with them and a touch brings both back. */
@media (orientation: landscape) {
  body[data-screen="player"]:has(#player.controls-off) .alpha-fab { opacity: 0; pointer-events: none; transition: opacity .4s; }
}
/* Transform and opacity only, so the pulse keeps running on the compositor while the screenshot holds the main thread. */
.alpha-fab:active { transform: scale(.88); }
.alpha-fab.busy { animation: alpha-pulse .7s ease-in-out infinite; }
.alpha-fab.busy::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px #bff7ff; animation: alpha-ring .7s ease-out infinite; }
@keyframes alpha-pulse { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); } }
@keyframes alpha-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.sheet.alpha-ui .sheet-panel { background: #0f4f5e; border: 2px solid #bff7ff; box-shadow: 0 12px 40px rgba(0, 0, 0, .7); }
.sheet.alpha-ui .report-text { background: rgba(0, 0, 0, .35); }
.alpha-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff5d6c; vertical-align: middle; }
.alpha-dot[hidden] { display: none; }
.alpha-panel { max-width: 640px; }
.alpha-list { margin-bottom: 12px; }
.alpha-item { border-top: 1px solid var(--line); }
.alpha-head { display: block; width: 100%; padding: 10px 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.alpha-line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.alpha-status { color: var(--muted); font-size: 13px; }
.alpha-when { color: var(--muted); font-size: 13px; }
.alpha-main { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.alpha-main .alpha-when { color: inherit; font-weight: 700; font-size: 15px; white-space: nowrap; }
.alpha-main .alpha-line { flex: 1; min-width: 0; color: inherit; font-size: 15px; }
.alpha-meta { display: block; color: var(--muted); font-size: 13px; }
.alpha-hide, .alpha-show-hidden { font-size: 12px; margin: 0 0 8px; min-height: 40px; min-width: 64px; }
.alpha-progress { color: var(--muted); font-size: 12px; margin: 2px 0; }
.alpha-fixed { color: var(--muted); font-size: 12px; margin: 2px 0; }
.alpha-welcome p { margin: 4px 0 10px; }
.alpha-about { display: block; margin-top: 12px; }
.alpha-release-notes { white-space: pre-wrap; }
.alpha-release-fixed { display: block; text-align: left; margin: 4px 0; }
.alpha-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.alpha-sheet-head h2 { flex: 1 1 0; min-width: 0; margin: 0; }
.alpha-close { margin-left: auto; flex: none; }
.alpha-inbox-chip { flex: none; padding: 6px 14px; font-size: 14px; }
.alpha-retake { margin-left: 8px; }
.alpha-inbox-chip:disabled { opacity: .5; }
.alpha-more { padding-bottom: 12px; }
.alpha-text { margin: 4px 0 8px; white-space: pre-wrap; }
.alpha-reply { margin: 8px 0; padding: 8px 10px; border-left: 3px solid rgba(140, 240, 255, .6); background: rgba(140, 240, 255, .06); }
.alpha-shot { display: block; max-width: 100%; max-height: 38vh; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }
.alpha-shot[hidden] { display: none; }
.alpha-shot-box { position: relative; margin: 8px 0; }
.alpha-shot-box[hidden] { display: none; }
.alpha-shot-box .alpha-shot { margin: 4px 0 0; }
.alpha-shot-label { color: var(--muted); font-size: 13px; }
.alpha-shot-del { position: absolute; top: 28px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: 20px; line-height: 28px; }
.alpha-text-input { width: 100%; min-height: 96px; resize: vertical; box-sizing: border-box; }
.alpha-actions { margin-top: 8px; }
.alpha-actions[hidden], .alpha-list[hidden], .alpha-chat[hidden], .alpha-compose[hidden], .alpha-closed[hidden] { display: none; }
.alpha-chat-bar { display: flex; align-items: center; gap: 10px; }
.alpha-msgs { display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow-y: auto; margin: 8px 0; }
.alpha-msg { max-width: 86%; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.alpha-msg-me { align-self: flex-end; background: rgba(140, 240, 255, .14); }
.alpha-msg-craig { align-self: flex-start; border-left: 3px solid rgba(140, 240, 255, .6); }
.alpha-msg-head { color: var(--muted); font-size: 12px; }
.alpha-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.alpha-thumb { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; cursor: zoom-in; }
.alpha-thumb[hidden] { display: none; }
.alpha-att-box { margin: 0; }
.alpha-att-box .alpha-shot-del { top: 4px; }
.alpha-attach-row { margin: 8px 0; }
.alpha-form .alpha-att-box { display: inline-block; margin: 0 0 8px; }
.alpha-form .alpha-att-box[hidden] { display: none; }
.alpha-form .alpha-att-box .alpha-thumb { display: block; cursor: default; }
.alpha-file { display: inline-block; max-width: 100%; margin: 6px 0 0; padding: 8px 40px 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; overflow-wrap: anywhere; }
.alpha-msg .alpha-file { padding-right: 12px; }
.alpha-compose-row { flex-wrap: wrap; }
.alpha-compose-row button:disabled { opacity: .5; }
.alpha-zoom { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.alpha-zoom img { max-width: 96vw; max-height: 96vh; }
.alpha-markup-edit { margin: 4px 0 0; }
.alpha-markup { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; background: #000; }
.alpha-markup-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; justify-content: center; }
.alpha-markup-bar button.on { outline: 2px solid #ff3b30; }
.alpha-markup-bar button:disabled { opacity: .5; }
.alpha-markup-canvas { flex: 1 1 0; min-height: 0; width: 100%; object-fit: contain; touch-action: none; cursor: crosshair; }
.report-actions.alpha-actions { flex-direction: column; align-items: stretch; }
/* MT-360: Craig's questions. */
.alpha-section { margin: 14px 0 4px; font-size: 14px; color: var(--muted); }
.alpha-qview[hidden] { display: none; }
.alpha-pop .sheet-panel { max-width: 520px; max-height: 80vh; overflow-y: auto; }
.alpha-pop-count { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.alpha-pop-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.alpha-q-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.alpha-q-choice { padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: inherit; font: inherit; }
.alpha-q-opt { display: flex; align-items: center; gap: 8px; }
.alpha-q-choice.on { border-color: #bff7ff; background: rgba(140, 240, 255, .2); }
.alpha-q-star { min-width: 44px; text-align: center; }
.alpha-q-done { margin: 10px 0 2px; font-weight: 700; }
.alpha-q-mine { margin: 0 0 8px; }
.alpha-steps { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.alpha-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); }
.alpha-step-n { min-width: 22px; }
.alpha-step-text { flex: 1 1 160px; }
.alpha-step-works, .alpha-step-problem { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .25); color: inherit; font: inherit; }
.alpha-step-works.on { border-color: #9be8a8; background: rgba(110, 220, 130, .22); }
.alpha-step-problem.on { border-color: #ff9d9d; background: rgba(255, 110, 110, .22); }
.alpha-step-works:disabled, .alpha-step-problem:disabled { opacity: .5; }
.alpha-tally-row { margin: 2px 0; font-size: 14px; white-space: pre; }
