.show-dialog { width: min(520px, 94vw); }
.show-form { display: grid; gap: 12px; }
.show-dialog [hidden] { display: none !important; }
.show-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.show-check { display: flex; align-items: start; gap: 8px; font-size: 0.875rem; min-width: 0; }
.show-check input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--orange); }
.show-list { max-height: min(37vh, 330px); overflow: auto; }
.show-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.show-list-row > button:first-child { text-align: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-record-item { display: grid; gap: 4px; }
.show-record-preview { width: 100%; max-height: 275px; background: #191719; }
.show-record-controls {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 225;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(calc(100vw - 24px), 560px);
  padding: 6px;
  border: 1px solid #d9d3ce;
  border-radius: 8px;
  color: #1b1b1d;
  background: #fff;
  box-shadow: 0 3px 14px #1b1b1d26;
}
.show-record-status { margin-inline-start: 5px; color: #a62b1c; font-size: .875rem; font-weight: 700; }
.show-record-clock, .show-record-note { font-size: .8rem; }
.show-record-clock { min-width: 3ch; font-variant-numeric: tabular-nums; }

.show-ink-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.show-ink-layer:not([data-ink-tool="pointer"]) {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}
.show-ink-layer[data-ink-tool="eraser"] { cursor: cell; }
.show-ink-stroke { position: absolute; overflow: visible; pointer-events: none; }
.presentation-overlay .presentation-controls:has(.show-ink-widget) { z-index: 40; }
.show-ink-widget [hidden] { display: none !important; }
.presentation-controls .show-ink-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: 6px;
  white-space: nowrap;
}
.presentation-controls .show-ink-button > svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.presentation-controls .show-ink-button > span { min-width: 0; font-size: inherit; }
.presentation-controls .show-ink-toggle[aria-pressed="true"] { background: #854320; color: #fff3e9; }
.show-ink-panel {
  position: absolute;
  inset: auto auto calc(100% + 8px) 50%;
  translate: -50% 0;
  display: grid;
  gap: 10px;
  width: min(355px, calc(100vw - 24px));
  max-height: min(300px, 70vh);
  overflow: auto;
  padding: 11px;
  border: 1px solid #716258;
  border-radius: 8px;
  color: #fff7ef;
  background: #302722;
  box-shadow: 0 8px 30px #0007;
  font: 500 .8rem/1.3 Arial, sans-serif;
}
.show-ink-tool-list, .show-ink-options, .show-ink-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.show-ink-actions { justify-content: space-between; }
.presentation-controls .show-ink-panel .show-ink-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: auto;
  min-height: 31px;
  padding: 4px 6px;
  border: 1px solid #76665e;
  border-radius: 5px;
  font-size: .78rem;
  text-align: left;
}
.presentation-controls .show-ink-panel .show-ink-button[aria-pressed="true"] {
  border-color: #dc9d70;
  background: #834925;
  color: #fff3e9;
}
.presentation-controls .show-ink-panel .show-ink-button:enabled:hover { background: #574337; }
.presentation-controls .show-ink-panel .show-ink-button[aria-pressed="true"]:enabled:hover { background: #97582d; }
.show-ink-panel .dialog-field { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.show-ink-panel .dialog-field > span { min-width: 0; text-align: left; }
.show-ink-panel .dialog-field :is(input, select) {
  width: auto;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid #796a62;
  color: #fff7ef;
  background: #43372f;
}
.show-ink-panel .dialog-field input[type="color"] { width: 35px; }
.show-ink-panel .dialog-field input[type="number"] { width: 52px; }
.show-ink-widget :is(button, input, select):focus-visible { outline: 2px solid #ffd0aa; outline-offset: 2px; }
.show-ink-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
