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

.conv-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
}
.conv-side label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    margin-bottom: 0.4rem;
}
.conv-arrow {
    color: #ddd;
    font-size: 1.2rem;
    padding-bottom: 0.55rem;
    user-select: none;
}

/* 12h compound input */
.tc-row { display: flex; gap: 0.3rem; }
.tc-row > * {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.3rem;
    font-size: 0.95rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    text-align: center;
    -moz-appearance: textfield;
    box-sizing: border-box;
}
.tc-row input::-webkit-outer-spin-button,
.tc-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tc-row > *:focus { border-color: #999; }
.tc-row select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
}

.mil-input-wrap { position: relative; }
.mil-input {
    width: 100%;
    padding: 0.55rem 2.5rem 0.55rem 0.7rem;
    font-size: 1.05rem;
    font-family: inherit;
    font-variant-numeric: tabular-nums;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
    text-align: center;
    letter-spacing: 0.05em;
    box-sizing: border-box;
}
.mil-input:focus { border-color: #999; }
.mil-input.error { border-color: #dc3545; box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.18); }
.copy-btn {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    padding: 0.3rem;
    border-radius: 4px;
    line-height: 0;
    transition: color 0.12s, background 0.12s;
}
.copy-btn:hover { color: #555; background: #f0f0ee; }
.copy-btn.copied { color: #2a7a52; }

.now-btn {
    margin-top: 1rem;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.now-btn:hover { border-color: #bbb; color: #333; }

/* Chart */
.chart-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}
.chart-table th {
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    border-bottom: 1.5px solid #eee;
}
.chart-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #f5f5f3;
    color: #444;
}
.chart-table tr:last-child td { border-bottom: none; }
.chart-table .mil { font-weight: 600; color: #1a1a1a; }
.chart-table tr.current { background: #e3f1ea; }
.chart-table tr.current td { color: #1a4a35; font-weight: 600; }
.chart-table tr.current td:first-child { box-shadow: inset 3px 0 0 #2a7a52; }
.chart-table tr.current .mil { color: #2a7a52; }

@media (max-width: 540px) {
    .card { padding: 1.25rem; }
    .conv-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .conv-arrow {
        text-align: center;
        padding-bottom: 0;
        transform: rotate(90deg);
        justify-self: center;
    }
    .chart-table { font-size: 0.85rem; }
    .chart-table th, .chart-table td { padding: 0.45rem 0.5rem; }
}
