@charset "UTF-8";

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

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

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

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

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

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

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

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

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

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

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

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

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

.ozc-input,
.ozc-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;
}

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

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

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

.ozc-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;
}

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

.ozc-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;
}

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

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

.ozc-btn-row {
    display: grid;
    gap: 6px;
}

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

.ozc-reset-btn {
    font-weight: 500;
}

.ozc-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;
}

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

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

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

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

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

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

.ozc-table-section,
.ozc-section {
    padding: 14px;
}

.ozc-table-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ozc-table-help {
    text-align: right;
}

.ozc-table-wrap {
    overflow-x: auto;
    min-width: 0;
}

.ozc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.ozc-table th,
.ozc-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #efe9dd;
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
}

.ozc-table thead th {
    font-size: 12px;
    font-weight: 700;
    color: #6a6258;
    background: #faf7f1;
}

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

.ozc-copy-btn {
    min-height: 32px;
    border: 1px solid #ddd7cb;
    border-radius: 8px;
    background: #fff;
    color: #594f42;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ozc-copy-btn:hover,
.ozc-copy-btn:focus-visible {
    border-color: #d4af37;
    background: #fff9ec;
    color: #7a5d14;
    outline: none;
}

.ozc-copy-btn.is-copied {
    border-color: #59ab79;
    background: #eef8f1;
    color: #2f7d51;
}

.ozc-reference-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #4f4a44;
    font-size: 13px;
    line-height: 1.55;
}

.ozc-disclaimer {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e8e4dc;
    background: #fffdf9;
    color: #5f5a56;
    font-size: 12px;
    line-height: 1.55;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.05);
}

.ozc-disclaimer i {
    color: #d4af37;
    margin-top: 2px;
}

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

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

    .ozc-input,
    .ozc-input-group select {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .ozc-support-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ozc-table-head {
        flex-direction: column;
        align-items: flex-start;
    }

}

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

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

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

    .ozc-unit-chip {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ozc-input,
    .ozc-chip,
    .ozc-copy-btn,
    .ozc-support-card,
    .ozc-result-hero {
        transition: none !important;
    }

    .ozc-chip:hover,
    .ozc-chip:focus-visible {
        transform: none !important;
    }
}
