/* =====================================================================================================================
 * MAGIC PTT SL DESKTOP · D1 THE COMMAND DESK (2026-11-06). Mock-up: docs/sl-vision/DeskCommand.dc.html (1440 x 900).
 * body.sld (desk.js, 1024 px and wider): three columns under the header, the scope as big as the window allows.
 * ===================================================================================================================== */

.sld-grid, .sld-chips { display: none; }

/* the old desk pieces the command desk replaces */
body.sld .sl-desk-bar,
body.sld #chatPane,
body.sld #opsPane,
body.sld .slv-more,
body.sld .slv-status { display: none !important; }

/* ---------------------------------------------------------------- the header */
body.sld .sl-mast {
  height: 64px; box-sizing: border-box; padding: 0 24px; align-items: center; gap: 28px;
  border-bottom: 1px solid rgba(var(--sl-rgb), 0.16);
}
body.sld .sl-word { flex-direction: column; line-height: 1; }
body.sld .sl-word__magic { font-size: 11px; }
body.sld .sl-word__sl { font-size: 28px; }
body.sld.sl-in .sld-chips { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; order: 1; }
.sld-chip {
  padding: 8px 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12px; color: #efe6d6; overflow: hidden; text-overflow: ellipsis;
}
.sld-chip.on { border-color: rgba(var(--sl-rgb), 0.35); color: var(--sl); }
.sld-chip.dim { color: #8a8174; }
/* the status chips in colour (his ask 2026-11-07: they looked greyed out next to the rest) */
.sld-chip.ok { border-color: rgba(61, 255, 197, 0.35); color: #3dffc5; }
.sld-chip.warn { border-color: rgba(255, 122, 24, 0.45); color: #ff9a4a; }
.sld-chip.crypt { border-color: rgba(176, 124, 255, 0.45); color: #c9a8ff; }
.sld-chip.clock { border-color: rgba(46, 230, 214, 0.22); color: #8fd6cf; }
/* SL ADMIN and EXIT SL: key caps like the screen buttons (A, X), text centred in both */
.sl-kc { display: none; }
body.sld .sl-mast .sl-mast__end a { gap: 10px; justify-content: center; }
body.sld .sl-mast .sl-mast__end a .sl-kc {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px;
  background: #070b0d; font: 800 12px var(--font-mono); letter-spacing: 0;
  border: 1px solid rgba(245, 197, 66, 0.7); color: #f5c542; box-shadow: inset 0 0 10px rgba(245, 197, 66, 0.25);
}
body.sld .sl-mast .sl-mast__end a.sl-exit .sl-kc { border-color: rgba(255, 45, 58, 0.7); color: #ff5a64; box-shadow: inset 0 0 10px rgba(255, 45, 58, 0.25); }
body.sld .sl-mast .sl-mast__end a.sl-admin-link { padding: 0 16px; color: #c9c1b4; }
/* the screen keys: a lit key cap with the letter you press, the name beside it, each in its screen's colour */
body.sld .sld-btn {
  all: unset; box-sizing: border-box; height: 40px; padding: 0 16px 0 6px; border-radius: 11px; cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 10px; color: #c9c1b4;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(0, 0, 0, 0.28)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 0 rgba(var(--kc-rgb), 0) !important;
  font: 800 12px var(--font-display); letter-spacing: 0.16em;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
body.sld .sld-btn kbd {
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px;
  background: #070b0d; border: 1px solid rgba(var(--kc-rgb), 0.7); color: var(--kc);
  font: 800 12px var(--font-mono); letter-spacing: 0;
  box-shadow: inset 0 0 10px rgba(var(--kc-rgb), 0.28), 0 1px 0 rgba(0, 0, 0, 0.6);
}
body.sld .sld-btn:hover, body.sld .sld-btn:focus-visible {
  color: #efe6d6; border-color: rgba(var(--kc-rgb), 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 22px rgba(var(--kc-rgb), 0.35) !important;
}
body.sld .sld-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 rgba(0, 0, 0, 0.5) !important; }
body.sld .sld-btn.on {
  color: #efe6d6; border-color: rgba(var(--kc-rgb), 0.75);
  background: linear-gradient(180deg, rgba(var(--kc-rgb), 0.22), rgba(var(--kc-rgb), 0.06)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(var(--kc-rgb), 0.3) !important;
}
body.sld .sld-btn.on kbd { background: var(--kc); color: #040308; box-shadow: 0 0 12px rgba(var(--kc-rgb), 0.6); }
body.sld .sld-btn[data-k="n"] { margin-left: auto; }
body.sld .sl-mast .sl-mast__end { order: 2; margin-left: 0; gap: 8px; }
/* SL Admin and EXIT SL: the same machined shape, kept quiet */
body.sld .sl-mast .sl-mast__end a {
  box-sizing: border-box; height: 40px; padding: 0 16px; border-radius: 11px; display: flex; align-items: center; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1); color: #8a8174; text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 2px 0 rgba(0, 0, 0, 0.5);
  font: 800 12px var(--font-display); letter-spacing: 0.16em; text-transform: uppercase;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
body.sld .sl-mast .sl-mast__end a:hover { color: #efe6d6; border-color: rgba(var(--sl-rgb), 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(var(--sl-rgb), 0.25); }
body.sld .sl-mast .sl-mast__end a.sl-exit { color: #c9c1b4; }

/* ---------------------------------------------------------------- the three columns */
body.sld .sl-desk { height: auto; }
body.sld .sld-grid {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 340px; height: calc(100vh - 64px); min-height: 560px;
}
.sld-left, .sld-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sld-left { border-right: 1px solid rgba(255, 255, 255, 0.06); }
.sld-right { border-left: 1px solid rgba(255, 255, 255, 0.06); padding: 0 0 14px; overflow-y: auto; }
.sld-h {
  padding: 18px 18px 8px; font-family: var(--font-display); font-size: 11px; letter-spacing: 0.24em; color: #8a8174; font-weight: 700;
}
.sld-h--row { display: flex; justify-content: space-between; }
.sld-key { font-family: var(--font-mono); letter-spacing: 0; }

/* the nets: the real net buttons, as a list */
body.sld #roomRail {
  display: flex !important; flex-direction: column; gap: 4px; padding: 0 10px; position: static !important; inset: auto !important;
  transform: none !important; background: none; border: 0;
}
body.sld #roomRail .room-plate {
  position: static !important; transform: none !important; width: auto !important; flex: none !important;
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 8px 10px; border-radius: 8px;
  background: none; border: 1px solid transparent; filter: none; backdrop-filter: none; box-shadow: none; color: #efe6d6;
}
body.sld #roomRail .room-plate__floor { font-family: var(--font-mono); font-size: 11px; color: #8a8174; min-width: 18px; }
body.sld #roomRail .room-plate__code { order: 3; margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: #8a8174; letter-spacing: 0.06em; }
body.sld #roomRail .room-plate__name { order: 2; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
body.sld #roomRail .room-plate.is-on { background: rgba(var(--sl-rgb), 0.08); border-color: rgba(var(--sl-rgb), 0.35); }
body.sld #roomRail .room-plate.is-on .room-plate__name,
body.sld #roomRail .room-plate.is-on .room-plate__floor,
body.sld #roomRail .room-plate.is-on .room-plate__code { color: var(--sl); }

/* the traffic: the real log, search and send box */
.sld-traffic { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 0 14px 16px; }
body.sld .sld-traffic .sl-traffic-tools { display: flex; flex-direction: column; gap: 6px; }
body.sld .sld-traffic #log { flex: 1; min-height: 0; overflow-y: auto; }
body.sld .sld-traffic #sendForm { display: flex; gap: 8px; margin: 0; }
body.sld .sld-traffic #sendForm input { flex: 1; min-width: 0; }

/* the centre: the scope as big as the window allows */
.sld-centre { display: flex; flex-direction: column; align-items: center; min-height: 0; padding: 8px 20px 12px; gap: 10px; overflow: hidden; }
body.sld .sl-stage { width: 100%; display: flex; justify-content: center; position: relative; inset: auto; height: auto; }
body.sld .sl-floor {
  width: min(calc(100vh - 290px), calc(100vw - 720px), 820px) !important;
  height: min(calc(100vh - 290px), calc(100vw - 720px), 820px) !important;
  margin: 0 !important; position: relative; left: auto; top: auto; transform: none;
}
body.sld .slv-chips,
body.sld .slv-talk,
body.sld .slv-foot,
body.sld .slv-gd-tiles,
body.sld.sl-grid-down .slv-gd-key {
  width: min(calc(100vh - 290px), calc(100vw - 720px), 820px) !important; box-sizing: border-box; margin: 0 !important;
}
body.sld .slv-talk #pttBtn { height: 84px; }
body.sld .slv-gd-key { height: 96px; }
body.sld .slv-foot { margin-top: -2px !important; }

/* the right: operators (the real list), Magic Mesh boxes, Dead Drops */
.sld-ops { padding: 0 14px; }
body.sld #hereList { display: flex; flex-direction: column; gap: 6px; }
.sld-mesh, .sld-drops { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.sld-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-display); font-weight: 700; font-size: 14px; color: #efe6d6;
}
.sld-row small { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: #3dffc5; white-space: nowrap; }
.sld-row.off, .sld-row.off small { color: #8a8174; }
body.sld .sld-drop {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(245, 197, 66, 0.35); color: #f5c542;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; background: none !important; box-shadow: none !important;
}
body.sld .sld-drop small { color: #f5c542; }
.sld-note { margin: 2px 4px; font-family: var(--font-mono); font-size: 11px; color: #8a8174; }
/* someone past the ring sits at the rim with an arrow, as drawn */
body.sld .sl-blip.beyond .sl-blip__tag::before { content: "↑ "; }
body.sld .sl-blip.beyond .sl-blip__dot { opacity: 0.55; }
/* the LINK meter in the right column */
.sld-meter { margin-top: auto; padding: 14px 14px 0; }
body.sld .sld-meter .sl-meter { position: static !important; width: auto !important; right: auto !important; bottom: auto !important; transform: none !important; }
/* the key says the space bar works too */
body.sld .slv-talk { position: relative; }
body.sld .slv-talk::after {
  content: "OR HOLD THE SPACE BAR"; position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--sl);
}
body.sld.sl-tx .slv-talk::after { content: ""; }

/* ---------------------------------------------------------------- D2 · STATION, a console not a sheet (desk-station.js) */
body.sld[data-slv-sheet] .slv-sheet-head {
  top: 64px; left: 0 !important; right: 0 !important; width: auto !important; transform: none !important;
  padding: 14px 24px 12px; z-index: 93;
}
body.sld[data-slv-sheet="radio"] #radioPane {
  top: 112px !important; left: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important;
  transform: none !important; padding: 20px 24px 24px !important;
}
body.sld[data-slv-sheet] .sl-mast { visibility: visible !important; }
body.sld[data-slv-sheet] .sld-grid { visibility: hidden; }
.sldc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sldc__col {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  border: 1px solid rgba(var(--sl-rgb), 0.22); border-radius: 16px; padding: 18px;
}
.sldc__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.sldc__head b { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.24em; font-weight: 800; color: var(--sl); }
.sldc__head small { font-family: var(--font-mono); font-size: 11px; color: #8a8174; text-align: right; }
.sldc__head small.ok { color: #3dffc5; }
.sldc__sub { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.24em; font-weight: 800; color: #efe6d6; }
.sldc .slv-account { margin-top: 14px; }

/* ---------------------------------------------------------------- D3 · NO GRID desk (body.sld.sl-grid-down) */
.sld-works { display: none; }
body.sld.sl-grid-down .sld-works { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
body.sld.sl-grid-down .sld-netsTitle,
body.sld.sl-grid-down .sld-nets,
body.sld.sl-grid-down .sld-opsTitle,
body.sld.sl-grid-down .sld-ops { display: none; }
body.sld .sld-row.amber small { color: #ff7a18; }
body.sld .sld-row.carry { border-color: rgba(255, 122, 24, 0.45); }
body.sld.sl-grid-down .sld-row.carry small { color: #ff7a18; }
/* the banner runs across the top of the desk, the header steps aside (as drawn) */
body.sld.sl-grid-down .slv-gd-banner {
  flex-direction: row; align-items: center; gap: 24px; margin: 18px 24px 0 !important; width: auto !important; padding: 14px 20px;
}
body.sld.sl-grid-down .slv-gd-banner b { font-size: 30px; }
body.sld.sl-grid-down .slv-gd-banner small { font-size: 13px; }
body.sld.sl-grid-down .sld-grid { height: calc(100vh - 100px); padding-top: 12px; box-sizing: border-box; }
body.sld.sl-grid-down .sl-floor {
  width: min(calc(100vh - 330px), calc(100vw - 720px), 760px) !important;
  height: min(calc(100vh - 330px), calc(100vw - 720px), 760px) !important;
}
body.sld.sl-grid-down .slv-gd-tiles,
body.sld.sl-grid-down .slv-gd-key { width: min(calc(100vh - 330px), calc(100vw - 720px), 760px) !important; }
body.sld.sl-grid-down .slv-gd-key::after {
  content: "OR HOLD THE SPACE BAR · OVER THE AIR"; display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: #ff7a18; margin-top: 6px;
}
