/*
 * The shadow tab (lane t29-fixIZ, 4 Nov 2026; js/v29_shadowtab.js 1.0.0). Only the desk's own tokens, so every theme
 * follows. No inline styles. Nothing here draws unless that file adds #st-panel, #st-tab or #st-tabs (a leader's own
 * login with the server's switch on).
 */

/* While the tab is chosen its cards stand in for the board's list (the board keeps working underneath). */
#board-main.st-open > :not(.board-head):not(#lt-tabs):not(#st-tabs):not(#st-panel) { display: none !important; }

.st-panel { display: grid; gap: 14px; margin: 0 0 24px; min-width: 0; }
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.st-head-l { min-width: 0; }
.st-head-r { display: flex; flex-wrap: wrap; gap: 4px; }
.st-title { margin: 0; font-size: 1.125rem; line-height: 1.5rem; font-weight: 700; color: var(--ink); }
.st-run { margin: 2px 0 0; }
.st-empty { margin: 8px 2px 16px; color: var(--ink-2); font-size: .9375rem; }
.st-foot { margin: 0 2px; }

.st-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-cards > li { display: block; min-width: 0; }
.st-card { display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--r-card); min-width: 0; overflow-wrap: anywhere; }
.st-card.is-old { opacity: .78; }
.st-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st-action { margin: 0; font-size: 1.0625rem; line-height: 1.45rem; font-weight: 700; color: var(--ink); }
.st-why { margin: 0; color: var(--ink); }
.st-card p { margin: 0; }
.st-happened { display: grid; gap: 2px; }
.st-happened h4, .st-sec-t { margin: 0; }
.st-human { padding: 6px 10px; border-radius: 10px; background: var(--solid-2); color: var(--ink); }
.st-bad { color: var(--warn); font-weight: 600; }
.st-more { justify-self: start; }

.st-work { display: grid; gap: 12px; padding-top: 4px; border-top: 1px solid var(--glass-edge); min-width: 0; }
.st-sec { display: grid; gap: 6px; min-width: 0; }
.st-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.st-list a { color: var(--brand-text); }
.st-changes .st-from { text-decoration: line-through; color: var(--ink-2); }
.st-changes .st-to { font-weight: 600; color: var(--ink); }
.st-checks summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.st-checks .is-fail { color: var(--danger); }
.st-shadow { display: grid; gap: 4px; }

.st-drafts { display: grid; gap: 10px; min-width: 0; }
.st-paper { display: grid; gap: 8px; padding: 14px 16px; border-radius: 12px; background: var(--solid); border: 1px solid var(--glass-edge); min-width: 0; overflow-x: auto; }
.st-mail { margin: 0; display: grid; gap: 2px; font-size: .875rem; }
.st-mail-r { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 8px; }
.st-mail dt { color: var(--ink-3); font-weight: 600; }
.st-mail dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.st-paper-body { font-family: Arial, Helvetica, sans-serif; font-size: .9375rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.st-paper-body p { margin: 0 0 .75em; }
.st-paper-body table { border-collapse: collapse; max-width: 100%; }
.st-paper-body td, .st-paper-body th { border: 1px solid var(--glass-edge); padding: 4px 8px; vertical-align: top; }
.st-paper-body a { color: var(--brand-text); }

.st-verdict { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--glass-edge); }
.st-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-note-box { display: grid; gap: 6px; }
.st-note { width: 100%; box-sizing: border-box; min-height: 72px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--edge-strong); background: var(--solid); color: var(--ink); font: inherit; resize: vertical; }
.st-note:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.st-line { margin: 0; }

@media (max-width: 560px) {
  .st-card { padding: 14px; }
  .st-mail-r { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .st-tabs { width: 100%; }
}

/* ---------- round 3: the one desk (features.oneDesk) ---------- */
/* a FREYA seat sees FREYA alone: the board's own head controls and the Today rail stay out of sight */
#board-main.st-only #board-sub, #board-main.st-only #clr-link, #board-main.st-only #v21-head { display: none !important; }
#board-wrap:has(#board-main.st-only) > #rail { display: none !important; }
.st-locked { color: var(--ink-3); }
.st-lock {
  position: relative; display: inline-block; width: 10px; height: 8px; margin-left: 2px; border-radius: 2px;
  background: currentColor; top: 2px;
}
.st-lock::before {
  content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; border: 1.5px solid currentColor;
  border-bottom: 0; border-radius: 4px 4px 0 0; box-sizing: border-box;
}
.st-restricted { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-card); max-width: 640px; }
.st-rline { margin: 0; font-size: 1rem; color: var(--ink); }
.st-ask { display: grid; gap: 6px; }
.st-select {
  min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--edge-strong); background: var(--solid);
  color: var(--ink); font: inherit; max-width: 100%;
}
.st-select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.st-press { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--glass-edge); }
.st-working { margin: 0; font-weight: 600; color: var(--info); }
.st-done { margin: 0; font-weight: 600; color: var(--ok); }
.st-done.is-bad { color: var(--warn); }
.st-viewonly { margin: 0; }
.st-ap { justify-self: start; }
.st-ap-box { display: grid; gap: 6px; }
.od-pop {
  position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(380px, calc(100vw - 32px)); display: grid; gap: 8px;
  padding: 14px 16px; border-radius: var(--r-card); background: var(--solid); box-shadow: var(--shadow-2);
}
.od-pop-t { margin: 0; font-size: 1rem; line-height: 1.4rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.od-note { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.od-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.od-row .micro { min-width: 2.5rem; }

.st-plist summary { cursor: pointer; font-size: .8125rem; color: var(--ink-2); min-height: 28px; }
.st-draft { font-size: .8125rem; }
/* t29-fixRD: round 3's one desk styles above, placed on the served stage by page_fixRD */
