/* font-lab.css — UI for the dev font picker.
 * Only takes effect when font-lab.js mounts the panel (?fonts query).
 * Uses literal values, not tokens, so the panel itself is unaffected
 * when the picker swaps the design-system font variables.
 */

#font-lab {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99999;
  width: 280px;
  padding: 0.85rem 0.95rem 0.95rem;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #f4efe2;
  background: rgba(14, 14, 22, 0.96);
  border: 1px solid rgba(234, 160, 28, 0.35);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  user-select: none;
}

#font-lab * {
  box-sizing: border-box;
}

#font-lab .fl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(244, 239, 226, 0.08);
}

#font-lab .fl-title {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #eaa01c;
  font-weight: 700;
}

#font-lab .fl-close {
  background: none;
  border: none;
  color: rgba(244, 239, 226, 0.55);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}

#font-lab .fl-close:hover {
  color: #f4efe2;
}

#font-lab .fl-slot {
  margin-bottom: 0.55rem;
}

#font-lab .fl-slot-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

#font-lab .fl-slot-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 226, 0.45);
  font-weight: 600;
}

#font-lab .fl-slot-current {
  font-size: 11px;
  color: rgba(244, 239, 226, 0.75);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

#font-lab .fl-slot-controls {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  gap: 4px;
}

#font-lab button {
  background: rgba(244, 239, 226, 0.04);
  border: 1px solid rgba(244, 239, 226, 0.12);
  color: #f4efe2;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  padding: 3px 0;
  line-height: 1;
}

#font-lab button:hover {
  background: rgba(234, 160, 28, 0.18);
  border-color: rgba(234, 160, 28, 0.4);
  color: #eaa01c;
}

#font-lab .fl-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(244, 239, 226, 0.04);
  border: 1px solid rgba(244, 239, 226, 0.12);
  color: #f4efe2;
  font-family: inherit;
  font-size: 11px;
  padding: 3px 6px;
  width: 100%;
  cursor: pointer;
}

#font-lab .fl-select:focus {
  outline: 1px solid rgba(234, 160, 28, 0.5);
  outline-offset: 0;
}

#font-lab .fl-copy {
  width: 100%;
  margin-top: 0.65rem;
  padding: 7px 0;
  background: rgba(234, 160, 28, 0.18);
  border-color: rgba(234, 160, 28, 0.45);
  color: #eaa01c;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 10px;
}

#font-lab .fl-copy:hover {
  background: rgba(234, 160, 28, 0.28);
  color: #f4efe2;
}

#font-lab .fl-hint {
  margin-top: 0.5rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(244, 239, 226, 0.35);
  text-align: center;
}
