html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Agent Client: 4-panel layout (mirrors WPF) */
.agent-client {
  height: calc(100vh - 180px);
  min-height: 320px;
}

.agent-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 100%;
  align-items: stretch;
}

.agent-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.25rem;
}

.agent-panel + .agent-panel {
  border-left: 4px solid #ccc;
  padding-left: calc(0.25rem + 4px);
}

.panel-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.panel-input,
.panel-output {
  flex: 1;
  min-height: 120px;
  resize: none;
  padding: 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.panel-output {
  background: #f8f9fa;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Word Help page */
.wordhelp-client {
  height: calc(100vh - 180px);
  min-height: 320px;
}

.wordhelp-client .lines-list {
  flex: 1;
  min-height: 120px;
  overflow: auto;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.25rem;
  background: #f8f9fa;
}

.wordhelp-client .line-item {
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 0.9rem;
}

.wordhelp-client .line-item:hover {
  background: #e9ecef;
}

.wordhelp-client .line-item.selected {
  background: #0d6efd;
  color: #fff;
}

.wordhelp-client .action-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}