/* OT Terminal — Base / Reset */

.ot-terminal * ,
.ot-terminal *::before,
.ot-terminal *::after {
  box-sizing: border-box;
}

.ot-terminal {
  --scrollbar-w: 8px;
  font-family: var(--ot-font-sans);
  font-size: var(--ot-fs-base);
  color: var(--ot-text-primary);
  background: var(--ot-bg-app);
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.ot-terminal button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.ot-terminal input {
  font-family: inherit;
  color: inherit;
}

.ot-terminal a {
  color: inherit;
  text-decoration: none;
}

.ot-terminal svg {
  display: block;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.ot-terminal ::selection {
  background: var(--ot-gold-wash-strong);
  color: var(--ot-text-primary);
}

/* Thin, unobtrusive scrollbars — consistent across panels */
.ot-terminal ::-webkit-scrollbar {
  width: var(--scrollbar-w);
  height: var(--scrollbar-w);
}
.ot-terminal ::-webkit-scrollbar-track {
  background: transparent;
}
.ot-terminal ::-webkit-scrollbar-thumb {
  background: var(--ot-border-strong);
  border-radius: 8px;
}
.ot-terminal ::-webkit-scrollbar-thumb:hover {
  background: var(--ot-gold-dim);
}
.ot-terminal * {
  scrollbar-width: thin;
  scrollbar-color: var(--ot-border-strong) transparent;
}

.ot-mono {
  font-family: var(--ot-font-mono);
  font-variant-numeric: tabular-nums;
}

.ot-up { color: var(--ot-up); }
.ot-down { color: var(--ot-down); }
.ot-neutral { color: var(--ot-neutral); }

.ot-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ot-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--ot-radius-sm);
  color: var(--ot-text-secondary);
  transition: background var(--ot-transition-fast), color var(--ot-transition-fast);
}
.ot-icon-btn:hover {
  background: var(--ot-bg-panel-raised);
  color: var(--ot-text-primary);
}
.ot-icon-btn.is-active {
  background: var(--ot-gold-wash);
  color: var(--ot-gold-bright);
}
.ot-icon-btn:disabled {
  color: var(--ot-text-disabled);
  cursor: not-allowed;
}
.ot-icon-btn:disabled:hover {
  background: none;
}

.ot-terminal:focus-visible,
.ot-terminal *:focus-visible {
  outline: 1.5px solid var(--ot-gold);
  outline-offset: 1px;
}
