/* Time standards converter - moment picker + reverse panel, then an output grid.
   Reuses base .field / .btn-outline; colors from theme tokens only. */

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

.tsc-card {
    padding: 18px; margin-bottom: 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.tsc-card h2 { margin: 0 0 14px; font-size: 18px; }
.tsc-sub { margin: 20px 0 12px; font-size: 15px; color: var(--text); }

.tsc-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tsc-label { font-size: 14px; color: var(--muted); font-weight: 600; }
.tsc-input { flex: 1 1 240px; min-width: 0; }
.tsc-now-btn { flex: 0 0 auto; }
.tsc-state {
    flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted);
    padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px;
}
.tsc-state[data-live="true"] { color: var(--accent); border-color: var(--accent); }
.tsc-picker-local { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

.tsc-reverse {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 640px) { .tsc-reverse { grid-template-columns: 1fr; } }
.tsc-reverse-field { display: flex; flex-direction: column; gap: 6px; }
.tsc-reverse-field .field { font-variant-numeric: tabular-nums; }

.tsc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; }
@media (max-width: 640px) { .tsc-grid { grid-template-columns: 1fr; } }
.tsc-item {
    padding: 14px 0; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 6px; min-width: 0;
}
/* Two-column rows: keep a tidy vertical rhythm by removing the top border on the first row. */
.tsc-grid > .tsc-item:nth-child(1),
.tsc-grid > .tsc-item:nth-child(2) { border-top: none; }
@media (max-width: 640px) {
    .tsc-grid > .tsc-item:nth-child(2) { border-top: 1px solid var(--border); }
}
.tsc-grid > .tsc-item { padding-right: 18px; }

.tsc-item dt { color: var(--muted); font-size: 13px; font-weight: 600; margin: 0; }
.tsc-item dd {
    margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0;
}
.tsc-val {
    font-family: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 16px; color: var(--accent-strong); font-variant-numeric: tabular-nums;
    word-break: break-word; min-width: 0;
}
.tsc-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.tsc-copy {
    font: inherit; font-size: 13px; padding: 4px 12px; cursor: pointer;
    border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--text);
    transition: border-color .15s, color .15s; flex: 0 0 auto;
}
.tsc-copy:hover { border-color: var(--accent); color: var(--accent-strong); }

.tsc-error {
    margin: 12px 0 0; padding: 10px 14px; border-radius: 10px;
    color: var(--bad); background: var(--surface); border: 1px solid var(--bad); font-size: 14px;
}
