body {
  font-family: system-ui, sans-serif;
}

h1 a {
  text-decoration: none;
  color: inherit;
}

/* Buttons side by side */
.btn-group {
  display: flex;
  gap: 0.5rem;
}

.btn-group button {
  width: auto;
  margin-bottom: 0;
}

/* Charset checkboxes inline */
fieldset {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  margin-bottom: 0;
}

fieldset input[type="checkbox"] {
  margin-bottom: 0;
}

.symbol-max {
  font-size: 0.85em;
  opacity: 0.7;
}

.symbol-max input {
  display: inline;
  width: 3.5rem;
  padding: 0.2rem 0.4rem;
  margin: 0 0.2rem;
  text-align: center;
}

/* Symbols grid */
.symbols-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-bottom: 0.25rem;
}

.symbol-item {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.1rem 0.25rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.symbol-item input[type="checkbox"] {
  margin-bottom: 0;
}

/* Results */
.results {
  padding-left: 0;
  margin-top: 1.5rem;
}

.results li {
  font-family: Menlo, Consolas, 'Courier New', monospace;
  list-style: none;
  display: block;
  cursor: pointer;
  position: relative;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.3rem;
  background: var(--pico-card-background-color);
  border-left: 3px solid var(--pico-primary);
  border-radius: 4px;
  letter-spacing: 0.08em;
  word-break: break-all;
  transition: background 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.results li:hover {
  background: var(--pico-card-sectioning-background-color);
}

.toast {
  font-family: system-ui, sans-serif;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #2ecc71;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  pointer-events: none;
  animation: toast-fade 0.8s ease forwards;
}

@keyframes toast-fade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.results li.copied {
  border-left-color: #2ecc71;
  background: var(--pico-card-sectioning-background-color);
}
