/* px / pt / pc / in / cm / mm converter - a grid of live-linked unit fields and a px-to-pt
   reference table. Reuses base .btn-outline; colors come from theme tokens only. */

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

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

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

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

/* Reference table. */
.ptx-reference { margin-top: 32px; }
.ptx-reference-title { font-size: 18px; margin: 0 0 12px; }
.ptx-reference-note { color: var(--muted); font-weight: 400; font-size: 15px; }

.ptx-table {
    border-collapse: collapse; width: 100%; max-width: 320px;
    font-variant-numeric: tabular-nums;
}
.ptx-table th, .ptx-table td {
    text-align: left; padding: 8px 16px;
    border-bottom: 1px solid var(--border);
}
.ptx-table th {
    font-size: 13px; text-transform: uppercase; letter-spacing: .04em;
    color: var(--muted); font-weight: 600;
}
.ptx-table td { color: var(--text); }
.ptx-table tbody tr:last-child td { border-bottom: 0; }
