/* TAG Legal Desk v2.1: the guest view (J243 and J244, js\v21_guest.js). The thin band across the top, the guest sign
   in, the read only job, and the Guests panel of the Director and the GM. Every colour is a desk token, so each theme
   carries it; nothing moves. */

/* ---------- the band: in the practice band's place, calm amber ---------- */
.pband.gband { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 700;
  background: color-mix(in srgb, var(--warn) 12%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, var(--warn) 38%, transparent); }
.pband.gband .gb-line { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pband.gband .gb-line .ico { color: var(--warn); flex: none; }
.pband.gband .gb-prac { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--practice); }
.pband.gband > :not(.gb-line):not(.gb-prac) { display: none; }
:root[data-theme="high_contrast"] .pband.gband { background: #fff; color: #000; border-bottom: 2px solid #000; }
:root[data-theme="high_contrast"] .pband.gband .gb-line .ico, :root[data-theme="high_contrast"] .pband.gband .gb-prac { color: #000; }

/* ---------- the guest sign in ---------- */
.guest-choose { display: grid; gap: 8px; justify-items: center; width: 100%; padding-top: 14px; border-top: 1px solid var(--glass-rim); }
.guest-choose .meta { margin: 0; max-width: 380px; }
.guest-form { display: grid; gap: 10px; width: min(360px, 100%); text-align: left; }
.guest-form label, .gst-add label { font-weight: 700; font-size: .875rem; }
.guest-form input, .gst-add input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--edge-strong); background: var(--solid); color: var(--ink); font: inherit; font-size: 1rem; }
.guest-form input:focus-visible, .gst-add input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.guest-form #guest-code { font-size: 1.5rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.guest-form .btn-primary { width: 100%; }
.guest-form .guest-msg { text-align: left; }
.guest-links { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: center; }
.guest-hint { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--practice); }

/* ---------- the read only job ---------- */
.job-bar.guest-bar .sum { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.job-bar.guest-bar .sum .ico { color: var(--warn); flex: none; }
.job-panel.guest-ro .ed-region { cursor: default; }
.job-panel.guest-ro .chip:disabled, .job-panel.guest-ro .pick-opt:disabled { cursor: default; opacity: 1; }

/* ---------- defence in depth: controls a guest never gets, wherever they are drawn ---------- */
.guest-view .card .holder .btn, .guest-view #leave-root, .guest-view #wf-slot, .guest-view .sa-doit, .guest-view .sa-done,
.guest-view .sa-notebtn, .guest-view #you-chip .pts, .guest-view .ember, .guest-view .job-panel .ask, .guest-view #send-btn,
.guest-view #takeover-btn, .guest-view #fca-fix-btn { display: none !important; }
/* Cleared by Fred is never a guest's read (js\shell.js openCleared), so its board buttons are not drawn dead for a guest. */
.guest-view .rail-card > .btn, .guest-view #clr-link, .guest-view #clear-slot .clear > .btn-text { display: none !important; }

/* ---------- the Guests panel (the Director and the GM) ---------- */
.gst { display: grid; gap: 18px; }
.gst-intro { margin: 0; }
.gst-add { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--solid); border: 1px solid var(--glass-rim); }
.gst-add h3, .gst-listbox h3 { margin: 0 0 4px; font-size: 1rem; }
.gst-days { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-top: 4px; }
.gst-k { font-weight: 700; font-size: .875rem; }
.gst-listbox { display: grid; gap: 10px; }
.gst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gst-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; }
.gst-who { display: grid; gap: 2px; min-width: 0; }
.gst-who .meta { overflow-wrap: anywhere; }
.gst-when { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.gst-end { grid-column: 2; grid-row: 1 / span 2; }
.gst-row.gst-over { opacity: .8; }
@media (max-width: 480px) {
  .gst-row { grid-template-columns: minmax(0, 1fr); }
  .gst-end { grid-column: 1; grid-row: auto; justify-self: start; }
}
@media print { .pband.gband { background: none; border-bottom: 1px solid #000; } }
