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

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

.input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    margin-bottom: 0.85rem;
}
.num-cell {
    position: relative;
    flex: 1;
    min-width: 0;
}
.num-cell input {
    width: 100%;
    padding: 0.7rem 2.4rem 0.7rem 0.8rem;
    font-size: 1.1rem;
    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;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.num-cell input::-webkit-outer-spin-button,
.num-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-cell input:focus { border-color: #999; }
.num-cell .unit {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #aaa;
    pointer-events: none;
}

.single-input {
    margin-bottom: 0.85rem;
}
.single-input input {
    width: 100%;
    padding: 0.7rem 2.4rem 0.7rem 0.8rem;
    font-size: 1.1rem;
    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;
    box-sizing: border-box;
    -moz-appearance: textfield;
}
.single-input input::-webkit-outer-spin-button,
.single-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.single-input input:focus { border-color: #999; }
.single-input { position: relative; }
.single-input .unit {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: #aaa;
    pointer-events: none;
}

.arrow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 1.1rem;
    margin: 0.4rem 0 0.85rem;
}

.result-row {
    background: #f9f9f7;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}
.result-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
}
.result-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    font-variant-numeric: tabular-nums;
}

/* Conversion table */
.table-card {
    background: #fff;
    border: 1.5px solid #eee;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 2rem;
}
.table-card h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}
.table-card p {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
    line-height: 1.5;
}
.conv-table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
    font-size: 0.875rem;
}
.conv-table thead th {
    text-align: left;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #aaa;
    padding: 0.4rem 0.6rem;
    border-bottom: 1.5px solid #eee;
}
.conv-table tbody td {
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #f5f5f3;
    color: #444;
}
.conv-table tbody tr:last-child td { border-bottom: none; }
.conv-table .min-col { color: #1a1a1a; font-weight: 600; }
.conv-table .frac-col { color: #888; }
.conv-table .quarter td { background: #fafaf8; }
.conv-table .quarter .min-col { color: #c9512b; }

/* Two-column layout for table on wider screens */
.conv-table-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 600px) {
    .conv-table-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 0 1.5rem;
    }
}
