.uc-card { padding: 28px; }
.uc-title-bar { background: linear-gradient(135deg, var(--site-dark) 0%, var(--site-dark-2) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.uc-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; }

.uc-category-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.uc-cat-btn { border: 1px solid #e5e7eb; background: #f7f8fa; color: #6b7280; font-weight: 700; font-size: .88em; padding: 10px 16px; border-radius: 30px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.uc-cat-btn.active { background: var(--site-dark); border-color: var(--site-dark); color: #fff; }
.uc-cat-btn:hover:not(.active) { color: var(--site-dark); border-color: var(--site-dark); }

.uc-converter { display: flex; flex-direction: column; gap: 4px; max-width: 640px; margin: 0 auto; }
.uc-field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92em; }
.uc-input-row { display: flex; gap: 10px; }
.uc-input-row input { flex: 1 1 55%; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font-size: 1.1em; outline: none; box-sizing: border-box; min-width: 0; background: #fff; }
.uc-input-row input[readonly] { background: #fafbfc; font-weight: 700; color: var(--site-dark); }
.uc-input-row select { flex: 1 1 45%; border: 1px solid #ddd; border-radius: 8px; padding: 12px 10px; font-size: .95em; outline: none; box-sizing: border-box; background: #fff; min-width: 0; }

.uc-swap-row { display: flex; justify-content: center; }
.uc-swap-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff; color: var(--site-dark); font-size: 1.1em; cursor: pointer; margin: 6px 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(20,22,31,.08); transition: transform .2s ease, background .2s ease, color .2s ease; }
.uc-swap-btn:hover { background: var(--site-dark); color: #fff; transform: rotate(180deg); }

.uc-note { text-align: center; margin-top: 18px; padding: 12px 16px; background: #fafbfc; border: 1px solid #eee; border-radius: 8px; font-size: .92em; color: #6b7280; font-weight: 600; }
.uc-note strong { color: var(--site-dark); }

@media (max-width: 600px) {
    .uc-input-row { flex-direction: column; }
    .uc-input-row input, .uc-input-row select { flex: 1 1 auto; width: 100%; }
    .uc-category-tabs { gap: 6px; }
    .uc-cat-btn { font-size: .82em; padding: 8px 12px; }
}
