.content-main { text-align: left; }

.ts-card {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.ts-card-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 1.25rem;
}

/* Live timestamp */
.live-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.live-col { display: flex; flex-direction: column; gap: 0.5rem; }
.live-val {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a1a;
    line-height: 1;
    cursor: text;
    user-select: all;
}
.live-label {
    font-size: 0.75rem;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.live-sep { width: 1px; background: #eee; align-self: stretch; }
.live-note { font-size: 0.8rem; color: #bbb; margin-top: 1rem; }

/* Copy button */
.copy-btn {
    background: #f5f5f3;
    border: 1.5px solid #e8e8e6;
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.copy-btn:hover { background: #eee; border-color: #ccc; color: #333; }
.copy-btn.copied { color: #389e0d; border-color: #b7eb8f; background: #f6ffed; }

/* Form */
.field-group:last-child { margin-bottom: 0; }
.input-row { display: flex; gap: 0.5rem; }
.input-row input { flex: 1; }
.field-group input[type="text"],
.field-group input[type="number"] {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
@media (max-width: 400px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

/* Mode toggle */
.mode-toggle {
    display: inline-flex;
    background: #f5f5f3;
    border-radius: 6px;
    padding: 2px;
    margin-bottom: 1rem;
    border: 1.5px solid #eee;
}
.mode-btn {
    background: none;
    border: none;
    border-radius: 4px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.mode-btn.active { background: #fff; color: #1a1a1a; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

/* Convert button */
.convert-btn {
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s;
}
.convert-btn:hover { background: #333; }

/* Result */
.result-box {
    background: #f9f9f7;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}
.result-row:last-child { border-bottom: none; }
.result-label { color: #aaa; flex-shrink: 0; }
.result-val { color: #1a1a1a; font-weight: 500; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 480px) {
    .result-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; padding: 0.6rem 0; }
}

/* Error */
.error-msg {
    display: none;
    font-size: 0.8rem;
    color: #cf1322;
    margin-top: 0.5rem;
}
.error-msg.visible { display: block; }
