@charset "UTF-8";

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

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

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

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

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

.fsz-input-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

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

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

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

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

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

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

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

.fsz-chip {
    min-height: 30px;
    border: 1px solid #ddd7cb;
    background: #f7f4ee;
    color: #5f5a56;
    border-radius: 999px;
    padding: 5px 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;
}

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

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

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

.fsz-btn-row.is-realtime .tool-btn {
    font-size: 14px;
    line-height: 1.35;
}

.fsz-note {
    margin: 0;
    color: #685a4b;
    font-size: 12px;
    line-height: 1.5;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.fsz-reference {
    display: grid;
    gap: 10px;
}

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

.fsz-disclaimer {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

.fsz-disclaimer i {
    color: #d4af37;
    flex-shrink: 0;
    margin-top: 2px;
}

.fsz-waiting {
    text-align: center;
    color: #9e9a96;
    padding: 32px 16px;
}

.fsz-waiting i {
    display: block;
    font-size: 30px;
    margin-bottom: 8px;
    color: #d4af37;
    opacity: 0.4;
}

.fsz-waiting p {
    margin: 0;
    font-size: 13px;
}

.fsz-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .fsz-main-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 16px;
    }
}

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

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

    .fsz-result-summary {
        grid-template-columns: 1fr;
    }

}

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

    .fsz-table {
        min-width: 460px;
    }

    .fsz-kpi-value {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fsz-input,
    .fsz-chip,
    .fsz-copy-btn {
        transition: none !important;
    }
}
