@charset "UTF-8";

.vuc-main-layout,
.vuc-input-col,
.vuc-result-col,
.vuc-input-section,
.vuc-input-grid,
.vuc-input-group,
.vuc-input,
.vuc-chip-group,
.vuc-btn-row,
.vuc-support-grid,
.vuc-support-card,
.vuc-table-section,
.vuc-table-wrap,
.vuc-reference,
.vuc-disclaimer,
.vuc-input-unit-row,
.vuc-unit-chip {
    box-sizing: border-box;
    max-width: 100%;
}

.vuc-main-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.vuc-input-col {
    position: sticky;
    top: 20px;
    min-width: 0;
}

.vuc-result-col {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.vuc-input-section,
.vuc-result-hero,
.vuc-support-card,
.vuc-table-section,
.vuc-section {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.vuc-input-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.vuc-input-title,
.vuc-table-title,
.vuc-reference-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vuc-input-title i,
.vuc-table-title i,
.vuc-reference-title i {
    color: #d4af37;
}

.vuc-intro,
.vuc-note,
.vuc-table-help,
.vuc-hero-subtext {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6a6258;
}

.vuc-input-grid,
.vuc-chip-section {
    display: grid;
    gap: 8px;
}

.vuc-input-group {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.vuc-label,
.vuc-chip-title,
.vuc-support-label,
.vuc-hero-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.vuc-input-unit-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
}

.vuc-input,
.vuc-input-group select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid #d8d1c6;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vuc-input:hover,
.vuc-input-group select:hover {
    border-color: #d4c67a;
}

.vuc-input:focus,
.vuc-input-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.vuc-input[aria-invalid="true"] {
    border-color: #c65b49;
    box-shadow: 0 0 0 3px rgba(198, 91, 73, 0.12);
    background: #fff8f6;
}

.vuc-unit-chip {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.vuc-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vuc-chip {
    min-height: 34px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vuc-chip:hover,
.vuc-chip:focus-visible {
    border-color: #d4af37;
    color: #594f42;
    background: #fff;
    outline: none;
    transform: translateY(-1px);
}

.vuc-chip.active {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff8e6 0%, #f4ead0 100%);
    color: #7a5d14;
}

.vuc-btn-row {
    display: grid;
    gap: 8px;
}

.vuc-btn-row .tool-btn {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.vuc-result-hero {
    padding: 16px;
    background: linear-gradient(135deg, #fffdf7 0%, #f7f0df 100%);
    border-color: #eadfb8;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.14);
    display: grid;
    gap: 6px;
}

.vuc-hero-eyebrow {
    color: #8a6b18;
}

.vuc-hero-value {
    font-size: clamp(24px, 3.4vw, 30px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #2d2a26;
    word-break: break-word;
}

.vuc-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.vuc-support-card {
    padding: 12px;
    display: grid;
    gap: 4px;
}

.vuc-support-card.is-highlight {
    background: linear-gradient(135deg, #fff9ec 0%, #f9f2e0 100%);
    border-color: #eadfb8;
}

.vuc-support-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.28;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.vuc-table-section {
    padding: 14px;
    display: grid;
    gap: 8px;
}

.vuc-table-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.vuc-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #eee7d8;
}

.vuc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.vuc-table th,
.vuc-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee7d8;
    font-size: 12px;
    line-height: 1.4;
    color: #2d2a26;
    text-align: left;
    vertical-align: middle;
}

.vuc-table thead th {
    background: #fcfaf5;
    font-weight: 700;
    color: #5f5a56;
}

.vuc-table tbody tr:last-child th,
.vuc-table tbody tr:last-child td {
    border-bottom: none;
}

.vuc-copy-btn {
    min-height: 30px;
    border: 1px solid #ddd7cb;
    background: #fff;
    color: #5f5a56;
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.vuc-copy-btn:hover,
.vuc-copy-btn:focus-visible {
    border-color: #d4af37;
    color: #594f42;
    background: #fff9ef;
    outline: none;
}

.vuc-copy-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.vuc-copy-btn.is-copied {
    border-color: #59ab79;
    color: #2f7d4d;
    background: #eff8f2;
}

.vuc-section {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.vuc-reference {
    display: grid;
    gap: 8px;
}

.vuc-reference-list,
.vuc-reference-list li {
    margin: 0;
}

.vuc-reference-list {
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #5f5a56;
    font-size: 12px;
    line-height: 1.5;
}

.vuc-main-layout + .vuc-disclaimer {
    margin-top: 12px;
}

.vuc-disclaimer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(108, 117, 125, 0.08);
    border-radius: 10px;
    color: #5f5a56;
    font-size: 12px;
    line-height: 1.5;
}

.vuc-disclaimer i {
    color: #6c757d;
    font-size: 14px;
    margin-top: 1px;
}

@media (max-width: 900px) {
    .vuc-input,
    .vuc-input-group input:not([type="radio"]):not([type="checkbox"]),
    .vuc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .vuc-input-col,
    .vuc-input-section,
    .vuc-result-col {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .vuc-main-layout {
        grid-template-columns: 1fr;
    }

    .vuc-input-col {
        position: static;
    }

    .vuc-btn-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .vuc-support-grid {
        grid-template-columns: 1fr;
    }

    .vuc-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .vuc-main-layout,
    .vuc-input-col,
    .vuc-result-col {
        max-width: 100%;
        overflow-x: hidden;
    }

    .vuc-input-section,
    .vuc-result-hero,
    .vuc-support-card,
    .vuc-table-section,
    .vuc-section {
        padding: 12px;
    }

    .vuc-input-unit-row {
        grid-template-columns: 1fr;
    }

    .vuc-unit-chip {
        width: 100%;
    }

    .vuc-hero-value {
        font-size: 22px;
    }
}
