#chromalytics-converter {
    background: #153A63;
    color: #ffffff;
    padding: 24px;
    border-radius: 14px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    max-width: 980px;
    margin: 0 auto;
}

#chromalytics-converter * {
    box-sizing: border-box;
}

#chromalytics-converter label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

#chromalytics-converter input,
#chromalytics-converter select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
}

.conv-config {
    margin-bottom: 18px;
}

.conv-row {
    display: grid;
    gap: 16px;
}

.conv-card {
    background: rgba(255,255,255,0.08);
    padding: 16px;
    border-radius: 12px;
}

.conv-input-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
}

.conv-inline-label {
    margin: 0 !important;
    display: block;
}

.conv-swatch {
    height: 120px;
    border-radius: 10px;
    margin: 15px 0;
    border: 2px solid rgba(255,255,255,0.8);
    background: #ffffff;
}

.conv-result {
    font-size: 15px;
    line-height: 1.8;
    color: #f8fafc;
}

.conv-result strong {
    color: #7dd3fc;
}

.conv-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.conv-actions button,
.conv-library-header-actions button,
.conv-batch-action-wrap button,
#convClearLibraryBtn {
    background: #38bdf8;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.conv-library-block,
.conv-batch-block {
    margin-top: 20px;
    background: rgba(255,255,255,0.08);
    padding: 16px;
    border-radius: 12px;
}

.conv-library-header,
.conv-batch-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
    margin-bottom: 10px;
}

.conv-library-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.conv-library-block h3,
.conv-batch-block h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
}

.conv-library-note {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 12px;
}

.conv-library-list {
    display: grid;
    gap: 10px;
}

.conv-library-empty {
    min-height: 48px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.28);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    color: #e5eef7;
}

.conv-library-item {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px;
    padding: 10px;
}

.conv-library-swatch {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.65);
}

.conv-library-data {
    font-size: 13px;
    line-height: 1.6;
    color: #f8fafc;
}

.conv-library-data strong {
    color: #7dd3fc;
}

.conv-library-remove {
    background: #ffffff;
    color: #111827;
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.conv-batch-action-wrap {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.conv-batch-results {
    margin-top: 14px;
}

.conv-batch-empty {
    min-height: 48px;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.28);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    color: #e5eef7;
}

.conv-batch-table-wrap {
    overflow-x: auto;
}

.conv-batch-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    overflow: hidden;
}

.conv-batch-table th,
.conv-batch-table td {
    border: 1px solid rgba(255,255,255,0.12);
    padding: 8px 10px;
    text-align: left;
    font-size: 13px;
    color: #f8fafc;
    vertical-align: top;
}

.conv-batch-table th {
    background: rgba(255,255,255,0.10);
    color: #7dd3fc;
}

@media (min-width: 768px) {
    .conv-row.conv-row-top {
        grid-template-columns: 1fr 1fr;
    }
}
.conv-library-header-stacked{align-items:stretch;flex-direction:column}.conv-library-manager{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.conv-library-manager select{min-width:220px;max-width:320px}.conv-library-item{grid-template-columns:32px 120px 1fr auto;align-items:center}.conv-library-check input{width:18px;height:18px}.conv-library-swatch{width:120px;height:120px;border-radius:10px}.conv-library-body{display:grid;gap:8px}.conv-library-topline{display:flex;justify-content:space-between;gap:12px;align-items:center}.conv-library-topline span{font-size:12px;color:#e2e8f0;background:rgba(255,255,255,0.08);padding:4px 8px;border-radius:999px}.conv-library-meta{font-size:13px;line-height:1.6;color:#f8fafc}.conv-library-actions-inline{display:flex;gap:8px;flex-wrap:wrap}.conv-library-actions-inline button{min-width:46px;min-height:46px;font-size:24px;line-height:1}.conv-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.conv-data-grid div{background:rgba(255,255,255,0.08);padding:10px;border-radius:8px}.conv-data-grid strong{display:block;color:#7dd3fc;margin-bottom:4px}

.conv-selection-warning{font-size:12px;color:#6b7280}.conv-selection-warning[data-state="error"]{color:#b91c1c;font-weight:600}.conv-selection-warning[data-state="ok"]{color:#166534;font-weight:600}
