/* Solo workstation (solo.html), laid out as the fifth delivery drew it
   (design/v3, artboards 22–26). Scoped to body.solo; builds on dev.css.
   solo.js places every housing, panel and station part in pixels; this sheet
   gives them their materials. */
#desk { position: relative; flex: 1; min-height: 0; display: flex; gap: 10px; padding: 8px; }

/* ---- the top bar (sixth delivery, artboards 28A–28D) ---------------------------
   Left: the lockup and a plain way back to the start page. Middle: what a
   player sets before a shift, and Start shift. Right: How to play and the
   bench drawer. */
.solo .sbar {
  position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 14px; min-height: 56px; padding: 8px 20px; background: #15181b; border-bottom: 1px solid #2c3138; font-size: 13.5px;
}
.solo .sbar > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.solo .sbar .lockup { display: flex; align-items: center; gap: 7px; text-decoration: none; color: var(--c-ink); font-size: 18px; font-weight: 600; white-space: nowrap; }
.solo .sbar .lockup i { font-style: normal; color: var(--c-amber); }
.solo .sbar .tag { font-size: 11px; letter-spacing: .2em; color: var(--c-copper); padding: 3px 7px; border: 1px solid var(--c-copper); border-radius: 4px; }
.solo .sbar .back { font-size: 13px; color: var(--c-muted); text-decoration: none; padding: 8px 4px; }
.solo .sbar .back:hover, .solo .sbar .back:focus-visible, .solo .sbar .lockup:focus-visible { color: var(--c-ink); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.solo .sbar .k { font-size: 11px; letter-spacing: .2em; color: var(--c-faint); }
.solo .sbar .grp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--c-muted); }
.solo .seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #0b0d0f; border: 1px solid #2c3138; }
.solo .seg button {
  height: 34px; padding: 0 10px; border: none; border-radius: 7px; font: inherit; font-size: 13.5px;
  background: transparent; color: var(--c-ink); cursor: pointer;
}
.solo .seg button:hover { background: #1f2328; }
.solo .seg button.on { background: var(--c-copper); color: #1c0d07; font-weight: 600; }
.solo .seg button:focus-visible, .solo .sbar button:focus-visible, .solo .drawer button:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
/* the switch: the same toggle as the Team step's "List it publicly" */
.solo input.sw {
  appearance: none; -webkit-appearance: none; position: relative; width: 40px; height: 22px; margin: 0; flex-shrink: 0;
  border-radius: 11px; background: #15181b; border: 1.5px solid #454c57; cursor: pointer;
}
.solo input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--c-ink); transition: left .12s; }
.solo input.sw:checked { background: var(--c-copper); }
.solo input.sw:checked::after { left: 19px; }
.solo input.sw:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.solo .sbar .go {
  height: 38px; padding: 0 18px; border-radius: 10px; border: none; background: var(--c-copper); color: #1c0d07;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.solo .sbar .go:hover { filter: brightness(1.08); }
.solo .sbar .ghost {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-bezel); background: transparent;
  color: var(--c-ink); font: inherit; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.solo .sbar .ghost:hover, .solo .sbar .ghost[aria-expanded="true"] { border-color: var(--c-muted); background: #1f2328; }
.solo .sbar .pts { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.solo .sbar .pts b { font-size: 16px; color: var(--c-ink); min-width: 1.2em; }
.solo .sbar .pts .ms { display: inline-flex; gap: 3px; }
.solo .sbar .pts .ms i { font-style: normal; font-size: 11px; padding: 2px 5px; border-radius: 4px; border: 1px solid #2c3138; color: var(--c-faint); }
.solo .sbar .pts .ms i.on { border-color: var(--c-copper); color: #1c0d07; background: var(--c-copper); font-weight: 600; }
.no-mission .mission-only, .fixed .patch-only { display: none !important; }
/* The points counter was not drawn (the owner asked for it back), so the bar
   tightens in two steps before it wraps: below 1600 px it drops the SHIFT
   label and some spacing, below 1400 px the wordmark and the words on How to
   play. A 1280 screen keeps it on one line. */
@media (max-width: 1600px) {
  .solo .sbar { padding: 8px 12px; gap: 8px 10px; }
  .solo .sbar > div { gap: 10px; }
  .solo .sbar .sb-mid > .k { display: none; }
}
@media (max-width: 1400px) {
  .solo .sbar .lockup > span, .solo .sbar #howto .lbl { display: none; }
}

/* ---- the bench drawer ---------------------------------------------------------- */
.solo .drawer {
  position: absolute; right: 16px; top: 62px; z-index: 31; width: 380px; max-width: calc(100vw - 32px);
  border-radius: 14px; background: var(--c-plate); border: 1.5px solid #4a525d; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overflow: hidden;
}
.solo .drawer[hidden] { display: none; }
.solo .drawer .dh {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(180deg, #e2b877, #b8863f); color: #2a1a08; font-size: 12px;
}
.solo .drawer .dh .mono { letter-spacing: .2em; font-weight: 600; }
.solo .drawer .rows { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px 14px; }
.solo .drawer .r { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 13.5px; color: var(--c-ink); }
.solo .drawer .c { display: inline-flex; align-items: center; gap: 8px; }
.solo .drawer button, .solo .drawer select {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--c-bezel); background: #1f2328;
  color: var(--c-ink); font: inherit; font-size: 13px; cursor: pointer;
}
.solo .drawer button:disabled { opacity: .4; cursor: default; }
.solo .drawer #seed { width: 104px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--c-bezel); background: #0b0d0f; color: var(--c-ink); font-size: 13px; }
.solo .drawer input[type=range] { width: 150px; accent-color: var(--c-amber); }
.solo .drawer #speedv { font-size: 12.5px; min-width: 3.4em; text-align: right; }
.solo .drawer .dsep { margin-top: 8px; padding-top: 10px; border-top: 1px solid #2c3138; font-size: 11px; letter-spacing: .2em; color: var(--c-faint); }

/* ---- the shift briefing (artboards 28A–28B) --------------------------------------
   A card in the order sheet's paper stock over the dimmed desk, and a numbered
   brass pin on the desk at each part a line means. */
#brief { position: absolute; inset: 0; z-index: 20; }
#brief[hidden] { display: none; }
#brief .dim { position: absolute; inset: 0; background: rgba(8, 9, 11, .62); }
#pins .pin { position: absolute; width: 0; height: 0; }
#pins .ring {
  position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%;
  border: 2px dashed var(--c-copper); box-shadow: 0 0 30px rgba(224, 122, 95, .45);
}
.solo .num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #f0cd8a, #b8863f 60%, #6e4c1f); color: #2a1a08; font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 3px rgba(11, 12, 14, .9), 0 6px 16px rgba(0, 0, 0, .6);
}
#pins .num { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; font-size: 17px; box-shadow: 0 0 0 3px rgba(11, 12, 14, .9), 0 0 0 5px var(--c-copper), 0 6px 16px rgba(0, 0, 0, .6); }
#brief .bcard {
  position: absolute; width: min(600px, calc(100% - 32px)); transform: translateX(-50%);
  border-radius: 6px; background: var(--c-paper); color: var(--c-paper_ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  padding: 26px 30px 22px; display: flex; flex-direction: column; gap: 16px;
}
#brief .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px dashed #9b917c; padding-bottom: 12px; }
#brief .bh #brief-h { font-size: 14px; letter-spacing: .2em; font-weight: 700; }
#brief .bh #brief-n { font-size: 12px; color: #6b6150; }
#brief ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
#brief li { display: flex; gap: 14px; align-items: flex-start; }
#brief .tx { display: flex; flex-direction: column; gap: 2px; }
#brief .tx b { font-size: 16px; font-weight: 700; }
#brief .tx span { font-size: 14px; line-height: 1.45; color: #4a4336; }
#brief .bf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1.5px dashed #9b917c; padding-top: 16px; margin-top: 2px; }
#brief .bf label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #4a4336; white-space: nowrap; cursor: pointer; }
#brief .bf label input { width: 16px; height: 16px; margin: 0; accent-color: #6e4c1f; }
#brief .bgo { display: inline-flex; align-items: center; gap: 14px; }
#brief .note { font-size: 12.5px; color: #6b6150; white-space: nowrap; }
#brief-go {
  height: 44px; padding: 0 20px; border-radius: 10px; border: none; background: var(--c-copper); color: #1c0d07;
  font: inherit; font-size: 15.5px; font-weight: 700; white-space: nowrap; cursor: pointer;
}
#brief-go:hover { filter: brightness(1.06); }
#brief-go:focus-visible { outline: 3px solid var(--c-paper_ink); outline-offset: 3px; }

/* ---- the console: indicators, patch table, circuit panels ------------------ */
#console { position: relative; flex: 1; min-width: 0; border-radius: 16px; background: #131619; border: 1px solid #262b31; overflow: hidden; }
#status { position: absolute; left: 14px; right: 14px; top: 6px; height: 22px; z-index: 5; display: flex; align-items: center; gap: 12px; font-size: 13px; pointer-events: none; }
#banner { flex: 1; min-width: 0; color: var(--c-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#banner.warn { color: var(--c-amber); }
#banner.bad { color: var(--c-red); font-weight: 600; }
#banner.ok { color: var(--c-green); }
#status .legend { font-size: 12px; color: var(--c-muted); white-space: nowrap; }
#back, #over { position: absolute; left: 0; top: 0; overflow: visible; }
#back { z-index: 0; }
#stage { position: absolute; inset: 0; z-index: 1; }
#over { z-index: 3; pointer-events: none; touch-action: none; }
#over .plug { pointer-events: all; cursor: grab; }
#over .plug.loose { animation: jig .11s linear infinite; }
@keyframes jig { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(2.5px, 1px); } 66% { transform: translate(-2px, -1px); } }
#over .jl { font: 10px 'IBM Plex Mono', monospace; fill: #9aa0a8; }
#over .ls { font: 11px 'IBM Plex Mono', monospace; fill: var(--c-ink); paint-order: stroke; stroke: #15181c; stroke-width: 3px; }

/* an indicator in its housing */
.solo .housing { position: absolute; background: linear-gradient(180deg, #2b303a, #1a1d20 60%); border: 1px solid #3b424d; }
.solo .housing > .ind { position: absolute; user-select: none; -webkit-user-select: none; }
.solo .ind .fsvg svg { display: block; width: 100%; height: auto; }
.solo .housing.red { box-shadow: 0 0 0 1px rgba(214, 40, 40, .55), 0 0 18px rgba(214, 40, 40, .3); }
/* a worn machine's face flickers now and then, each at its own rate */
.solo .housing.worn .fsvg { animation: worn var(--fl, 4s) linear infinite; }
@keyframes worn { 0%, 86%, 100% { filter: none; } 87% { filter: brightness(.4); } 89% { filter: none; } 92% { filter: brightness(.6); } 93% { filter: none; } }

/* a circuit panel: a header band carrying the jacks, the breaker, the controls */
.solo .panel { position: absolute; background: #1a1d20; border: 1.4px solid #4a525d; border-radius: 10px; }
.solo .panel .ph { position: absolute; left: 0; right: 0; top: 0; height: 26px; padding-left: 12px; border-radius: 9px 9px 0 0; background: #22262d; font-size: 10px; font-weight: 600; line-height: 26px; letter-spacing: 1.5px; text-transform: uppercase; color: #9aa0a8; }
.solo .panel.off { border-style: dashed; border-color: #6b2a2a; }
.solo .panel.off .ph { color: var(--c-red); }
.solo .panel.warn { animation: hum .5s ease-in-out infinite alternate; }
@keyframes hum { from { box-shadow: 0 0 0 1px var(--c-amber); } to { box-shadow: 0 0 0 3px var(--c-amber), 0 0 18px rgba(255, 183, 3, .35); } }
.solo .pslot { position: absolute; }
.solo .ctlframe { cursor: grab; }

/* the numbers overlay */
.solo .frame .readout { display: none !important; }
.solo .info { display: none; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; border-radius: 3px; background: rgba(11, 13, 15, .82); font-size: 10px; line-height: 1.4; color: var(--c-muted); white-space: nowrap; pointer-events: none; }
.solo.show-numbers .info { display: block; }

/* ---- the commander's station ----------------------------------------------- */
#station { position: relative; flex: none; align-self: flex-start; }
#station .st { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
#station .cab { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.solo.with-mission #station .st { width: 400px; height: 1040px; }
.solo:not(.with-mission) #station .st { width: 150px; height: 290px; }
#station .stp { position: absolute; }
#station .stp svg { display: block; width: 100%; height: auto; }
#station .fixture svg { height: 100%; }
#station .sw { border-radius: 10px; }
#station .sw.ready::after { content: ''; position: absolute; inset: -5px; border: 2px dashed #2de0b8; border-radius: 12px; box-shadow: 0 0 14px rgba(45, 224, 184, .35); pointer-events: none; }

.solo .nudge { animation: nudge .35s ease; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.solo .err { animation: err .5s ease; }
@keyframes err { 0% { box-shadow: 0 0 0 4px var(--c-red); } 100% { box-shadow: 0 0 0 0 transparent; } }
.solo .fired { animation: fired .8s ease; }
@keyframes fired { 0% { box-shadow: 0 0 0 6px var(--c-amber), 0 0 40px var(--c-amber); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .solo .panel.warn, #over .plug.loose, .solo .housing.worn .fsvg { animation: none; }
  .solo .panel.warn { box-shadow: 0 0 0 3px var(--c-amber); }
}

/* ---- on a phone (D-046) ------------------------------------------------------------
   solo.html's head marks a phone as .handheld. Until its holder opens the desk
   anyway, this notice covers the page at the phone's own scale. Then .zoomable
   lays the page out at 1280 × 800 and lets it scroll, so the browser's
   pinch-zoom and panning move around the desk. */
/* Every part you drag or press takes the touch for itself, so a finger on a
   slider moves the slider, not the page. Pinching and panning start from the
   instruments, the patch table and the gaps. */
.solo .pslot, .solo #station .kp, .solo #station .sw, .solo #over .plug { touch-action: none; }
#gate { display: none; }
html.handheld:not(.zoomable) body.bench { overflow: hidden; }
html.handheld:not(.zoomable) #gate {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 18px; overflow-y: auto;
  padding: 18px 16px 24px; color: var(--c-ink);
  background: linear-gradient(180deg, rgba(11, 12, 14, .82), rgba(11, 12, 14, .7) 40%, rgba(11, 12, 14, .94)), url(start/landing-bg-phone.jpg) center / cover #0f1113;
}
#gate .g-top { display: flex; align-items: center; gap: 12px; }
#gate .lockup { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--c-ink); font-size: 21px; font-weight: 600; }
#gate .lockup i { font-style: normal; color: var(--c-amber); }
#gate .tag { font-size: 11px; letter-spacing: .2em; color: var(--c-copper); padding: 3px 7px; border: 1px solid var(--c-copper); border-radius: 4px; }
#gate .g-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 20px 22px 26px; border-radius: 16px;
  background: linear-gradient(180deg, #252a31, #15181b 70%); border: 1.5px solid var(--c-bezel); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); overflow: hidden;
}
#gate .g-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-copper); }
#gate .g-icon { color: var(--c-amber); }
#gate h1 { margin: 0; font-size: 30px; line-height: 1.1; font-weight: 600; color: var(--c-amber); }
#gate p { margin: 0; font-size: 15px; line-height: 1.5; color: #c9c4ba; }
#gate .g-send {
  height: 52px; border-radius: 12px; border: none; background: var(--c-copper); color: #1c0d07;
  font: inherit; font-size: 16.5px; font-weight: 600; cursor: pointer;
}
#gate .g-msg { font-size: 13px; color: var(--c-muted); overflow-wrap: anywhere; }
#gate .g-msg:empty { display: none; }
#gate .g-team {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 6px; min-height: 52px; padding: 8px 12px;
  border-radius: 12px; border: 1.5px solid var(--c-green); color: var(--c-green); text-decoration: none; font-size: 16px; font-weight: 600; text-align: center;
}
#gate .g-team span { font-weight: 400; font-size: 13.5px; color: var(--c-muted); }
#gate .g-anyway {
  height: 48px; border-radius: 12px; border: 1px solid var(--c-bezel); background: transparent; color: var(--c-ink);
  font: inherit; font-size: 15px; cursor: pointer; margin-top: 6px;
}
#gate .g-note { font-size: 13px; color: var(--c-muted); text-align: center; }
#gate .g-back { align-self: center; padding: 12px; font-size: 14px; color: var(--c-muted); }
#gate button:focus-visible, #gate a:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; }
html.zoomable, html.zoomable body { height: auto; }
html.zoomable body.bench { width: 1280px; height: auto; min-height: 0; overflow: visible; }
html.zoomable #desk { flex: none; height: 744px; }
