/* Number base converter - a grid of live-linked binary / octal / decimal / hex fields with
   an error box. Reuses base .btn-outline; colors come from theme tokens only. */

.nbs-intro { color: var(--muted); max-width: 64ch; margin: 8px 0 24px; }

/* The base fields: four across on wide screens, fewer as it narrows. */
.nbs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .nbs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .nbs-grid { grid-template-columns: 1fr; } }

.nbs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nbs-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.nbs-input {
    width: 100%; box-sizing: border-box; padding: 12px;
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 18px; font-weight: 600; color: var(--text);
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    font-variant-numeric: tabular-nums;
}
.nbs-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.nbs-actions { margin: 20px 0 0; }

/* Error box mirrors the JSON formatter's .jf-error: tinted with --bad. */
.nbs-error {
    margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
    color: var(--bad); background: var(--surface); border: 1px solid var(--bad);
    font-size: 14px; font-variant-numeric: tabular-nums;
}
