/* Controle oculto — estilos do dock (override fiável; bundle WozTyP6T não inclui estes) */

.rbc-dock {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.rbc-dock .rbc-dock-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.rbc-dock .rbc-dock-link {
  font-size: 12px;
  font-weight: 500;
}

.rbc-dock .rbc-dock-input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  padding: 0.45rem 0.65rem;
}

.rbc-dock .rbc-dock-url {
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.01em;
  width: 100%;
}

.rbc-dock .rbc-dock-btn {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 0.38rem 0.5rem;
  gap: 0.3rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}

.rbc-dock .rbc-dock-tab {
  font-size: 12px;
  padding: 0.35rem 0.55rem;
  max-width: 200px;
}

.rbc-dock .rbc-dock-key {
  font-size: 12px;
  font-weight: 500;
  min-width: 2rem;
  padding: 0.35rem 0.5rem;
}

.rbc-dock .rbc-dock-alert {
  font-size: 12px;
  line-height: 1.4;
}

.rbc-viewport-shell {
  display: block;
  width: 100%;
  min-height: 0;
  height: fit-content;
  flex-shrink: 0;
  background: #000;
  position: relative;
}

.rbc-viewport-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  vertical-align: top;
}

/* URL + botões em coluna */
.rbc-dock .px-3:has(.rbc-dock-url) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0.5rem !important;
}

.rbc-dock-controls-grid,
.rbc-dock .rbc-dock-url ~ div.flex.flex-wrap,
.rbc-dock .rbc-dock-controls-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
}

.rbc-dock-control-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.15rem;
  gap: 0.12rem;
  align-items: center;
  min-width: 0;
}

.rbc-dock-control-cell--no-tip {
  grid-template-columns: minmax(0, 1fr) 1.15rem;
}

.rbc-dock-control-cell--no-tip::after {
  content: '';
  grid-column: 2;
  width: 1.15rem;
}

.rbc-dock-control-cell > .rbc-dock-btn,
.rbc-dock-control-cell > label {
  width: 100%;
  min-width: 0;
  margin: 0;
  font-size: 11px;
}

.rbc-dock-help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.04);
  color: rgb(148 163 184 / 0.9);
  cursor: help;
  line-height: 0;
  flex-shrink: 0;
}

.rbc-dock-help-tip:hover {
  color: rgb(0 255 163);
  background: rgb(0 255 163 / 0.12);
}

.rbc-dock-help-panel {
  margin: 0.15rem 0 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(0 255 163 / 0.22);
  background: rgb(0 255 163 / 0.07);
  font-size: 10px;
  line-height: 1.45;
  color: rgb(203 213 225);
}

.rbc-dock-help-panel-inner {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.rbc-dock-help-panel-icon {
  color: rgb(0 255 163);
  font-weight: 700;
  flex-shrink: 0;
}

.rbc-dock-help-panel-text {
  flex: 1;
  min-width: 0;
}

.rbc-dock-help-panel-close {
  background: none;
  border: none;
  color: rgb(148 163 184);
  cursor: pointer;
  padding: 0 0.1rem;
  line-height: 1;
}

.rbc-dock-kb-help,
.rbc-dock-vk-help {
  margin-left: 0.1rem;
}

.rbc-dock-vk-wrap {
  display: inline-flex !important;
  align-items: center;
  gap: 0.12rem;
}

/* Teclado operador — grelha QWERTY */
.rbc-operator-kb {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
}

.rbc-operator-kb-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.15rem;
  width: 100%;
}

.rbc-operator-kb-gap {
  display: block;
  min-width: 0;
}

.rbc-operator-kb-key {
  width: 100%;
  min-width: 0 !important;
  height: 1.65rem;
  padding: 0 0.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rbc-operator-kb-row--bottom {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.rbc-operator-kb-key--shift {
  grid-column: span 2;
}

.rbc-operator-kb-key--space {
  grid-column: span 2;
}

.rbc-operator-kb-key--clear {
  grid-column: span 2;
  font-size: 9px;
}

/* Logs — painel lateral / fundo */
.rbc-dock .rbc-dock-log {
  min-height: 14rem;
  max-height: min(22rem, 38vh);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 0.375rem;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: rgb(0 0 0 / 0.55);
  padding: 0.55rem 0.65rem;
  font-family: 'Share Tech Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgb(203 213 225);
}

.rbc-dock.rbc-dock--immersive .rbc-dock-log:not(.rbc-dock-log--dock-bottom) {
  min-height: 16rem;
  max-height: min(28rem, 48vh);
}

.rbc-dock-log--dock-bottom {
  min-height: 8rem;
  max-height: min(14rem, 28vh);
}

.rbc-dock.rbc-dock--immersive .rbc-dock-log--dock-bottom {
  min-height: 9rem;
  max-height: min(16rem, 32vh);
}

.rbc-dock .rbc-dock-log-line {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  padding: 0.15rem 0;
}

.rbc-dock .rbc-dock-log-label {
  font-size: 12px;
}

/* Viewport — scroll visível */
.grid.h-full > div:first-child > div.overflow-auto,
.grid.h-full > div:first-child > div[class*='overflow-auto'] {
  overflow-y: scroll !important;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgb(0 255 163 / 0.45) rgb(0 0 0 / 0.55);
}

.grid.h-full > div:first-child > div.overflow-auto::-webkit-scrollbar,
.grid.h-full > div:first-child > div[class*='overflow-auto']::-webkit-scrollbar {
  width: 11px;
}

.grid.h-full > div:first-child > div.overflow-auto::-webkit-scrollbar-thumb,
.grid.h-full > div:first-child > div[class*='overflow-auto']::-webkit-scrollbar-thumb {
  background: rgb(0 255 163 / 0.45);
  border-radius: 6px;
}
