/**
 * Financial Income Tax Calculator Styles
 * 금융소득종합과세 계산기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 2컬럼 레이아웃 (데스크탑) ===== */
.fit-main-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}

.fit-input-col {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fit-result-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== 공통 섹션 ===== */
.fit-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
    transition: box-shadow 0.2s ease;
}

.fit-section:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.1);
}

.fit-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-section-title i {
    color: #d4af37;
    font-size: 15px;
}

/* ===== 탭 ===== */
.fit-tabs {
    display: flex;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 3px;
}

.fit-tab {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #9e9a96;
    cursor: pointer;
    transition: all 0.2s;
}

.fit-tab:hover {
    color: #5f5a56;
}

.fit-tab.active {
    background: #fff;
    color: #d4af37;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

/* ===== 탭 콘텐츠 ===== */
.fit-tab-panel {
    display: none;
}

.fit-tab-panel.active {
    display: block;
}

/* 탭 래퍼 내부 간격 */
.fit-tab-panel .fit-section + .fit-section {
    margin-top: 14px;
}

.fit-tab-panel .fit-btn-group {
    margin-top: 14px;
}

/* ===== 입력 그룹 ===== */
.fit-input-group {
    margin-bottom: 12px;
    max-width: 100%;
    box-sizing: border-box;
}

.fit-input-group:last-child {
    margin-bottom: 0;
}

.fit-input-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    margin-bottom: 6px;
}

.fit-input-label .fit-label-hint {
    font-weight: 400;
    color: #9e9a96;
    margin-left: 4px;
}

.fit-amount-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

.fit-amount-input::placeholder {
    font-weight: 400;
    color: #c4c0bc;
}

.fit-number-input {
    width: 80px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

.fit-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%235f5a56' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.fit-select:hover {
    border-color: #d4c67a;
}

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

.fit-korean-amount {
    font-size: 11px;
    color: #d4af37;
    margin-top: 4px;
    text-align: right;
    min-height: 16px;
}

.fit-hint {
    font-size: 11px;
    color: #9e9a96;
    margin-top: 4px;
}

/* ===== 라디오 버튼 ===== */
.fit-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fit-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 13px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.fit-radio-label:hover {
    border-color: #d4af37;
}

.fit-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.fit-radio-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

.fit-radio-desc {
    font-size: 11px;
    color: #9e9a96;
    margin-left: auto;
}

/* ===== 체크박스 ===== */
.fit-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: #5f5a56;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    cursor: pointer;
    transition: all 0.2s;
}

.fit-checkbox-label:hover {
    border-color: #d4af37;
}

.fit-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

.fit-checkbox-label.active {
    border-color: #d4af37;
    background: #fdfbf5;
    color: #2d2a26;
    font-weight: 500;
}

.fit-inline-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fit-inline-group .fit-input-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.fit-inline-group .fit-unit {
    font-size: 12px;
    color: #5f5a56;
    white-space: nowrap;
}

/* ===== 버튼 ===== */
.fit-btn-group {
    display: flex;
    gap: 8px;
}

.fit-calculate-btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4af37, #c9a030);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.25);
}

.fit-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a030, #b8922a);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.fit-reset-btn {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.fit-reset-btn:hover {
    background: #eae7e3;
}

/* ===== 결과 - 대기 영역 ===== */
.fit-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #9e9a96;
}

.fit-waiting i {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
    opacity: 0.4;
}

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

/* ===== 결과 - 요약 카드 ===== */
.fit-result-summary {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.fit-summary-title {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 8px;
}

.fit-summary-main {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 4px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.fit-summary-label {
    font-size: 13px;
    color: #5f5a56;
    margin-bottom: 16px;
}

.fit-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #e8e4dc;
    font-size: 13px;
}

.fit-summary-row-label {
    color: #7a756d;
}

.fit-summary-row-value {
    font-weight: 600;
    color: #2d2a26;
}

/* ===== 결과 - 비교 카드 (분리과세 vs 종합과세) ===== */
.fit-compare-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-compare-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-compare-title i {
    color: #d4af37;
}

.fit-compare-cards {
    display: flex;
    gap: 12px;
}

.fit-compare-card {
    flex: 1;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
}

.fit-compare-card:hover {
    box-shadow: 0 2px 8px rgba(45, 42, 38, 0.08);
}

.fit-compare-card.fit-recommended {
    background: linear-gradient(135deg, #fdfbf5 0%, #faf6ec 100%);
    border: 2px solid #d4af37;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.12);
}

.fit-compare-card-label {
    font-size: 12px;
    color: #7a756d;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fit-compare-card.fit-recommended .fit-compare-card-label {
    color: #d4af37;
    font-weight: 600;
}

.fit-compare-card-label i {
    color: #d4af37;
}

.fit-compare-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 8px;
    line-height: 1.2;
}

.fit-compare-card.fit-recommended .fit-compare-card-value {
    color: #d4af37;
}

.fit-compare-card-desc {
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.4;
}

.fit-compare-saving {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e8e4dc;
    font-size: 13px;
    color: #27ae60;
    font-weight: 600;
    text-align: center;
}

/* ===== 결과 - 계산 흐름 테이블 (14단계) ===== */
.fit-flow-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-flow-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-flow-title i {
    color: #d4af37;
}

.fit-flow-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.fit-flow-table th {
    padding: 8px 12px;
    background: #faf9f7;
    border-bottom: 1px solid #e8e4dc;
    font-weight: 600;
    color: #5f5a56;
    text-align: left;
}

.fit-flow-table th:last-child {
    text-align: right;
}

.fit-flow-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f0ede8;
    color: #2d2a26;
}

.fit-flow-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.fit-flow-table tbody tr:hover td {
    background: #faf9f7;
}

.fit-flow-table tr:last-child td {
    border-bottom: none;
}

.fit-flow-table .fit-highlight-row {
    background: #fdfbf5;
    border: 1px solid #e8dfc0;
}

.fit-flow-table .fit-highlight-row td {
    color: #d4af37;
    font-weight: 700;
    font-size: 14px;
}

.fit-flow-table .fit-separator-row td {
    padding: 4px 0;
    border-bottom: 1px solid #e8e4dc;
}

/* ===== 결과 - 세율 구간 테이블 ===== */
.fit-rate-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-rate-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-rate-title i {
    color: #d4af37;
}

.fit-rate-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fit-rate-table th {
    padding: 8px 10px;
    background: #faf9f7;
    border-bottom: 1px solid #e8e4dc;
    font-weight: 600;
    color: #5f5a56;
    text-align: center;
}

.fit-rate-table th:first-child {
    text-align: left;
}

.fit-rate-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0ede8;
    text-align: center;
    color: #2d2a26;
    transition: background 0.15s ease;
}

.fit-rate-table tbody tr:hover td {
    background: #faf9f7;
}

.fit-rate-table td:first-child {
    text-align: left;
    color: #5f5a56;
}

.fit-rate-table tr:last-child td {
    border-bottom: none;
}

.fit-rate-table .fit-current-rate {
    background: #fdfbf5;
    border: 1px solid #e8dfc0;
    font-weight: 600;
}

.fit-rate-table .fit-current-rate td {
    color: #d4af37;
}

/* ===== 결과 - 도넛 차트 ===== */
.fit-chart-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-chart-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-chart-title i {
    color: #d4af37;
}

.fit-donut-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 220px;
    margin: 0 auto;
}

.fit-chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.fit-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #5f5a56;
}

.fit-legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ===== 결과 - 바 차트 ===== */
.fit-bar-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-bar-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-bar-title i {
    color: #d4af37;
}

.fit-bar-wrap {
    position: relative;
    width: 100%;
    height: 300px;
    margin: 0 auto;
}

/* ===== 건강보험 피부양자 경고 섹션 ===== */
.fit-health-section {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(249, 168, 37, 0.1);
}

.fit-health-title {
    font-size: 14px;
    font-weight: 700;
    color: #6d5800;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-health-title i {
    color: #f9a825;
}

.fit-health-text {
    font-size: 12px;
    color: #6d5800;
    line-height: 1.6;
    margin-bottom: 12px;
}

.fit-health-detail {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.fit-health-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.fit-health-row + .fit-health-row {
    border-top: 1px solid rgba(255, 224, 130, 0.5);
}

.fit-health-row-label {
    color: #6d5800;
}

.fit-health-row-value {
    font-weight: 600;
    color: #2d2a26;
}

.fit-health-excess {
    color: #e65100;
}

.fit-health-premium {
    color: #d4af37;
    font-size: 15px;
}

.fit-health-note {
    font-size: 11px;
    color: #9e8a00;
    line-height: 1.5;
}

/* ===== 절세 팁 섹션 ===== */
.fit-tips-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-tips-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-tips-title i {
    color: #d4af37;
}

.fit-tips-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.fit-tips-body li {
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
    position: relative;
    padding-left: 24px;
}

.fit-tips-body li::before {
    content: '\2022';
    color: #d4af37;
    font-size: 16px;
    position: absolute;
    left: 10px;
    top: 8px;
}

/* ===== 신고 기한 안내 ===== */
.fit-deadline-section {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-deadline-title {
    font-size: 14px;
    font-weight: 700;
    color: #6d5800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-deadline-title i {
    color: #f9a825;
}

.fit-deadline-text {
    font-size: 13px;
    color: #6d5800;
    line-height: 1.6;
}

.fit-deadline-text strong {
    font-weight: 600;
    color: #d4af37;
}

/* ===== 금융상품 비교 테이블 ===== */
.fit-product-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-product-title i {
    color: #d4af37;
}

.fit-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.fit-product-table th {
    padding: 8px 10px;
    background: #faf9f7;
    border-bottom: 1px solid #e8e4dc;
    font-weight: 600;
    color: #5f5a56;
    text-align: center;
}

.fit-product-table th:first-child {
    text-align: left;
}

.fit-product-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0ede8;
    text-align: center;
    color: #2d2a26;
}

.fit-product-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.fit-product-table tbody tr:hover td {
    background: #faf9f7;
}

.fit-product-table tr:last-child td {
    border-bottom: none;
}

/* ===== 2026 변경사항 섹션 ===== */
.fit-changes-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

.fit-changes-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fit-changes-title i {
    color: #d4af37;
}

.fit-changes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fit-changes-list li {
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 12px;
    color: #5f5a56;
    line-height: 1.5;
}

.fit-changes-list li strong {
    color: #2d2a26;
}

/* ===== 정보 안내 박스 ===== */
.fit-info-box {
    display: flex;
    align-items: start;
    gap: 10px;
    padding: 14px 16px;
    background: #f0f7ff;
    border: 1px solid #bbdefb;
    border-radius: 10px;
}

.fit-info-box i {
    font-size: 18px;
    color: #1976d2;
    flex-shrink: 0;
    margin-top: 1px;
}

.fit-info-box div {
    font-size: 12px;
    color: #1565c0;
    line-height: 1.6;
}

.fit-info-box strong {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #0d47a1;
}

.fit-info-box p {
    margin: 2px 0;
}

/* ===== 엑셀 다운로드 버튼 ===== */
.fit-excel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    background: #f5f3f0;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.fit-excel-btn:hover {
    background: #eae7e3;
    border-color: #d4af37;
    color: #2d2a26;
}

.fit-excel-btn i {
    font-size: 14px;
    color: #27ae60;
}

/* ===== 면책 조항 ===== */
.fit-disclaimer {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    font-size: 11px;
    color: #9e9a96;
    line-height: 1.5;
}

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

/* ===== 유틸리티 ===== */
.fit-hidden {
    display: none !important;
}

/* ===== 모션 감소 접근성 ===== */
@media (prefers-reduced-motion: reduce) {
    .fit-section,
    .fit-amount-input,
    .fit-number-input,
    .fit-select,
    .fit-calculate-btn,
    .fit-tab,
    .fit-rate-table td,
    .fit-compare-card {
        transition: none !important;
    }
    .fit-section:hover,
    .fit-calculate-btn:hover {
        transform: none !important;
    }
}

/* ===== 반응형 ===== */
@media (max-width: 900px) {
    .fit-main-layout {
        grid-template-columns: 1fr;
    }

    .fit-input-col {
        position: static;
        width: 100%;
    }

    .fit-result-col {
        width: 100%;
    }

    .tool-layout-input {
        max-width: 100%;
        overflow: hidden;
    }

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

    .fit-summary-main {
        font-size: 26px;
    }

    .fit-compare-cards {
        flex-direction: column;
    }

    .fit-compare-card-value {
        font-size: 20px;
    }

    .fit-rate-table {
        font-size: 11px;
    }

    .fit-rate-table th,
    .fit-rate-table td {
        padding: 6px 6px;
    }

    .fit-product-table {
        font-size: 11px;
    }

    .fit-product-table th,
    .fit-product-table td {
        padding: 6px 6px;
    }
}

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

    .fit-section {
        padding: 12px;
    }

    .fit-result-summary {
        padding: 16px;
    }

    .fit-summary-main {
        font-size: 22px;
    }

    .fit-compare-card-value {
        font-size: 18px;
    }

    .fit-inline-group {
        flex-wrap: wrap;
    }

    .fit-number-input {
        width: 60px;
    }

    .fit-tabs {
        flex-direction: column;
    }

    .fit-tab {
        padding: 8px 6px;
        font-size: 12px;
    }

    .fit-donut-wrap {
        max-width: 180px;
        height: 180px;
    }

    .fit-bar-wrap {
        height: 240px;
    }
}

/* Excel button guard */
.tool-btn-excel {
  background: #59ab79;
  border-color: #59ab79;
}

.tool-btn-excel:hover,
.tool-btn-excel:focus-visible {
  background: #4f9f70;
  border-color: #4f9f70;
}

