/* Data size converter - a base toggle (decimal/binary) and a grid of live-linked size fields
   for B / KB / MB / GB / TB / PB. Reuses the global .seg toggle and base .btn-outline; colors
   come from theme tokens only. */

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

/* Base toggle row: label beside the shared .seg group. */
.dsz-toggle { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.dsz-toggle-label { font-size: 14px; color: var(--muted); font-weight: 600; }

.dsz-note { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

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

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

.dsz-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;
}
.dsz-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

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