/* show.css - Show and Patch tabs, present mode. Tokens only (see style.css :root). */

/* ---- Show tab ---- */
#tab-show .row .k.narrow, #tab-patch .row .k.narrow { color: var(--muted); }
#tab-show input[type="color"] { -webkit-appearance: none; appearance: none; width: 44px; height: 32px; padding: 3px;
  background: var(--panel-2); border: 1px solid var(--hair-2); border-radius: var(--radius-s); cursor: pointer; }
#tab-show input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
#tab-show input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
#tab-show input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
#tab-show input:disabled, #tab-show select:disabled { opacity: .45; cursor: not-allowed; }
#shColRow.sh-dis .k { opacity: .55; }
.sh-check { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.sh-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

.sh-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.sh-actions .btn { flex: 1; text-align: center; padding: 9px 6px; white-space: nowrap; }
.sh-status { font-size: 11.5px; color: var(--ink-2); font-family: var(--mono); background: var(--panel-2);
  border: 1px solid var(--hair); border-radius: var(--radius-s); padding: 7px 9px; min-height: 30px; line-height: 1.4; }

#shJson { font-family: var(--mono); font-size: 11px; line-height: 1.45; resize: vertical; min-height: 180px; white-space: pre; overflow: auto; tab-size: 2; }
.sh-msg { font-size: 11.5px; line-height: 1.45; color: var(--muted); min-height: 17px; margin: 6px 0 4px; word-break: break-word; }
.sh-msg.err { color: var(--accent); font-weight: 600; }
.sh-msg.ok { color: var(--ink-2); }
.note.sh-lead { margin: 0 0 8px; }

/* ---- Patch tab ---- */
.pt-scroll { overflow-x: auto; margin: 4px -4px 0; padding: 0 4px; border: 1px solid var(--hair); border-radius: var(--radius-s); }
.pt-table { border-collapse: collapse; font-size: 11px; width: max-content; min-width: 100%; }
.pt-table th, .pt-table td { padding: 5px 7px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--hair); }
.pt-table th { font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--panel-2); }
.pt-table td { color: var(--ink-2); }
.pt-table td.n { font-family: var(--mono); text-align: right; }
.pt-table td.nm { font-weight: 700; color: var(--ink); }
.pt-table th:first-child, .pt-table td.nm { position: sticky; left: 0; background: var(--panel); z-index: 1; }
.pt-table th:first-child { background: var(--panel-2); }
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table tr.warn td { color: var(--accent); }
.pt-table tr.warn td.nm { box-shadow: inset 3px 0 0 var(--accent); color: var(--accent); }
.pt-table td.empty { color: var(--muted); text-align: center; padding: 14px; white-space: normal; }
.pt-warn { font-size: 11.5px; line-height: 1.45; color: var(--accent); font-weight: 600; margin: 4px 0 8px; }

/* ---- Present mode ---- */
.rs-exit, .rs-hud { display: none; }
body.rs-present { overflow: hidden; }
body.rs-present header, body.rs-present #toolbar, body.rs-present #panel { display: none !important; }
body.rs-present #app { max-width: none; padding: 0; }
body.rs-present #layout { display: block; }
body.rs-present #stageWrap { border: 0; border-radius: 0; width: 100vw; height: 100vh; }
body.rs-present #stage { width: 100%; height: 100%; }
body.rs-present .rs-exit { display: block; position: fixed; top: 12px; right: 12px; z-index: 60; opacity: .55; padding: 7px 12px; }
body.rs-present .rs-exit:hover, body.rs-present .rs-exit:focus { opacity: 1; }
body.rs-present .rs-hud:not(:empty) { display: block; position: fixed; left: 12px; bottom: 12px; z-index: 60; opacity: .7;
  font-size: 11px; font-family: var(--mono); color: var(--ink-2); background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--radius-s); padding: 5px 9px; pointer-events: none; }
