@charset "UTF-8";

.csc-main-layout,
.csc-input-col,
.csc-result-col,
.csc-input-section,
.csc-result-summary,
.csc-table-section,
.csc-table-wrap,
.csc-input,
.csc-profile-tab,
.csc-quick-chip,
.csc-btn-row,
.csc-kpi-card,
.csc-measure-card,
.csc-disclaimer {
    box-sizing: border-box;
    max-width: 100%;
}

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

.csc-input-col {
    display: grid;
    gap: 12px;
    position: sticky;
    top: 20px;
    min-width: 0;
}

.csc-result-col {
    display: grid;
    gap: 12px;
    min-width: 0;
}

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

.csc-input-section {
    display: grid;
    gap: 12px;
}

.csc-guide-section {
    gap: 10px;
}

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

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

.csc-profile-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.csc-profile-tab {
    min-height: 42px;
    border: 1px solid #ddd7cb;
    border-radius: 10px;
    background: #f8f5ee;
    color: #5f5a56;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.csc-profile-tab:hover,
.csc-profile-tab:focus-visible {
    border-color: #d4af37;
    background: #fffaf1;
    color: #594f42;
    outline: none;
}

.csc-profile-tab.is-active,
.csc-profile-tab.active {
    border-color: #d4af37;
    background: linear-gradient(135deg, #fff9ec 0%, #f5ead0 100%);
    color: #2d2a26;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.16);
}

.csc-input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.csc-input-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.csc-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
}

.csc-input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #d8d1c6;
    border-radius: 8px;
    background: #fff;
    color: #2d2a26;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.csc-input:hover {
    border-color: #d4c67a;
}

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

.csc-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.csc-quick-chip:hover,
.csc-quick-chip:focus-visible {
    border-color: #d4af37;
    color: #594f42;
    background: #fff;
    outline: none;
}

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

.csc-btn-row .tool-btn {
    width: 100%;
    min-width: 0;
}

.csc-note,
.csc-fit-note p {
    margin: 0;
    color: #685a4b;
    font-size: 13px;
    line-height: 1.6;
}

.csc-guide-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
    color: #5f5a56;
    font-size: 13px;
    line-height: 1.55;
}

.csc-result-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.csc-kpi-card {
    border: 1px solid #eadfca;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.csc-kpi-label,
.csc-measure-label {
    font-size: 12px;
    font-weight: 600;
    color: #5f5a56;
}

.csc-kpi-value,
.csc-measure-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1.35;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.csc-table-section {
    display: grid;
    gap: 10px;
}

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

.csc-table-help {
    font-size: 12px;
    color: #8c8578;
}

.csc-table-wrap {
    overflow-x: auto;
}

.csc-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.csc-table th,
.csc-table td {
    border-bottom: 1px solid #eee7db;
    padding: 10px 8px;
    text-align: left;
    font-size: 13px;
    color: #2d2a26;
    vertical-align: middle;
}

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

.csc-table-value {
    font-weight: 600;
}

.csc-copy-btn {
    border: 1px solid #ddd7cb;
    background: #fff;
    color: #5f5a56;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

.csc-measure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.csc-measure-card {
    border: 1px solid #eee4d2;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.csc-measure-card.is-highlight {
    background: #fffaf1;
    border-color: #e7d3a4;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.1);
}

.csc-measure-value {
    font-size: 16px;
}

.csc-disclaimer {
    margin-top: 16px;
    border: 1px solid #eadfca;
    border-radius: 12px;
    background: #fffaf1;
    color: #5f5a56;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.csc-disclaimer i {
    color: #d4af37;
    font-size: 16px;
    margin-top: 2px;
}

.csc-system-chip.is-active {
    border-color: #d4af37;
    color: #594f42;
    background: #fff9ef;
}

.csc-table tr.is-current th,
.csc-table tr.is-current td {
    background: #fffaf1;
}

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

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

    .csc-result-summary,
    .csc-measure-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .csc-input-section,
    .csc-section,
    .csc-result-summary,
    .csc-table-section {
        padding: 14px;
    }

    .csc-profile-tabs,
    .csc-result-summary,
    .csc-measure-grid {
        grid-template-columns: 1fr;
    }

    .csc-table {
        min-width: 360px;
    }

    .csc-kpi-value,
    .csc-measure-value {
        font-size: 16px;
    }

    .csc-disclaimer {
        padding: 12px 14px;
    }
}
