body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #ebe9d8;
  color: #1e293b;
  user-select: none;
}
.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
  border: 2px solid #e2e8f0;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
/* Classic AsProgrammer Toolbar Button */
.tb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  min-width: 52px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: all 0.1s ease;
  position: relative;
}
.tb-btn:hover:not(:disabled) {
  background: linear-gradient(to bottom, #ffffff, #e2e8f0);
  border-color: #94a3b8;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.tb-btn:active:not(:disabled) {
  background: #cbd5e1;
  transform: translateY(1px);
}
.tb-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.hex-cell {
  width: 23px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}
.hex-cell:hover {
  background-color: #dbeafe;
  color: #1d4ed8;
}
.hex-cell.selected {
  background-color: #2563eb !important;
  color: #ffffff !important;
  font-weight: 600;
}
.hex-cell.modified {
  color: #dc2626;
  font-weight: 700;
  background-color: #fef2f2;
}
.hex-cell.mismatch {
  background-color: #fecaca !important;
  color: #991b1b !important;
  font-weight: 700;
  outline: 1px solid #dc2626;
}
.ascii-cell {
  width: 9.5px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}
.ascii-cell.selected {
  background-color: #2563eb !important;
  color: #ffffff !important;
}
.ascii-cell.modified {
  color: #dc2626;
  font-weight: 700;
}
.group-box {
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #f8fafc;
  position: relative;
  padding-top: 11px;
}
.group-box-title {
  position: absolute;
  top: -8px;
  left: 8px;
  background: #f8fafc;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}
