/**
 * DSR Calculator Styles
 * DSR(총부채원리금상환비율) 계산기 전용 스타일
 *
 * @package Zipper
 */

/* ===== 레이아웃 오버라이드 ===== */
.tool-section:has(.dsr-input-section) .tool-layout-split {
    grid-template-columns: 380px 1fr;
}

@media (max-width: 900px) {
    .tool-section:has(.dsr-input-section) .tool-layout-split {
        grid-template-columns: 1fr;
    }
}

/* ===== 탭 네비게이션 ===== */
.dsr-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background: #f5f3f0;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 16px;
}

.dsr-tab {
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #7a756d;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    white-space: nowrap;
}

.dsr-tab:hover {
    color: #2d2a26;
    background: rgba(255, 255, 255, 0.5);
}

.dsr-tab.active {
    color: #fff;
    background: #d4af37;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

/* ===== 입력 섹션 ===== */
.dsr-input-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.dsr-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 100%;
    box-sizing: border-box;
}

.dsr-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
}

.dsr-input-group input,
.dsr-input-group select {
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

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

.dsr-input-group input::placeholder {
    color: #a09a94;
}

.dsr-input-group input[readonly] {
    background: #f0ede8;
    color: #7a756d;
    cursor: default;
}

/* 금액 읽기 표시 */
.dsr-amount-display {
    font-size: 12px;
    color: #d4af37;
    font-weight: 500;
    margin-top: 4px;
    min-height: 18px;
}

/* 간편 버튼 그룹 */
.dsr-quick-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-width: 100%;
}

.dsr-quick-btn {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 500;
    color: #5f5a56;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.dsr-quick-btn:hover {
    border-color: #d4af37;
    background: #fff;
    color: #d4af37;
}

/* ===== 라디오 옵션 ===== */
.dsr-radio-group {
    display: flex;
    gap: 8px;
}

.dsr-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.dsr-radio-option:hover {
    border-color: #d4af37;
    background: #fff;
}

.dsr-radio-option.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.dsr-radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.dsr-radio-option label {
    font-size: 13px;
    color: #2d2a26;
    cursor: pointer;
    font-weight: 500;
}

/* ===== 섹션 구분 ===== */
.dsr-section-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 8px;
}

.dsr-section-divider .divider-line {
    flex: 1;
    height: 1px;
    background: #e8e4dc;
}

.dsr-section-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsr-section-label i {
    color: #d4af37;
    font-size: 14px;
}

/* ===== 대출 카드 (동적 추가) ===== */
.dsr-loan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dsr-loan-card {
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 14px;
    background: white;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.dsr-loan-card:hover {
    border-color: #d4af37;
}

.dsr-loan-card .dsr-loan-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
    padding: 0;
    line-height: 1;
}

.dsr-loan-card .dsr-loan-delete:hover {
    background: #e74c3c;
    color: #fff;
}

.dsr-loan-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-right: 28px;
}

.dsr-loan-card-header .loan-number {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #d4af37;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dsr-loan-card-header .loan-type-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
}

.dsr-loan-card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dsr-loan-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dsr-loan-field.full-width {
    grid-column: 1 / -1;
}

.dsr-loan-field label {
    font-size: 11px;
    font-weight: 600;
    color: #7a756d;
}

.dsr-loan-field input,
.dsr-loan-field select {
    padding: 9px 10px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #faf9f7;
    color: #2d2a26;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dsr-loan-field input:focus,
.dsr-loan-field select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 대출 추가 버튼 */
.dsr-add-loan-btn {
    margin-top: 8px;
    width: 100%;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed #d4af37;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dsr-add-loan-btn:hover {
    background: rgba(212, 175, 55, 0.15);
}

.dsr-add-loan-btn i {
    font-size: 16px;
}

.dsr-loan-count {
    font-size: 11px;
    color: #a09a94;
    text-align: center;
    margin-top: 4px;
}

/* ===== 신규 대출 섹션 ===== */
.dsr-new-loan-section {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 14px;
}

.dsr-new-loan-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.dsr-new-loan-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dsr-new-loan-field.full-width {
    grid-column: 1 / -1;
}

.dsr-new-loan-field label {
    font-size: 11px;
    font-weight: 600;
    color: #7a756d;
}

.dsr-new-loan-field input,
.dsr-new-loan-field select {
    padding: 9px 10px;
    font-size: 13px;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    background: #fff;
    color: #2d2a26;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.dsr-new-loan-field input:focus,
.dsr-new-loan-field select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
    background: #fff;
}

/* 금리 유형 라디오 (인라인) */
.dsr-rate-type-group {
    display: flex;
    gap: 6px;
}

.dsr-rate-type-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 10px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.dsr-rate-type-option:hover {
    border-color: #d4af37;
}

.dsr-rate-type-option.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.dsr-rate-type-option input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.dsr-rate-type-option label {
    font-size: 12px;
    color: #2d2a26;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== 역계산 패널 ===== */
.dsr-rev-existing-display {
    padding: 10px 12px;
    background: #f0ede8;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #2d2a26;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dsr-rev-existing-display .rev-label {
    font-size: 12px;
    color: #7a756d;
    font-weight: 500;
}

.dsr-target-radio-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.dsr-target-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.dsr-target-option:hover {
    border-color: #d4af37;
}

.dsr-target-option.active {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
}

.dsr-target-option input[type="radio"] {
    width: 14px;
    height: 14px;
    accent-color: #d4af37;
    cursor: pointer;
    flex-shrink: 0;
}

.dsr-target-option label {
    font-size: 13px;
    color: #2d2a26;
    cursor: pointer;
    font-weight: 500;
}

.dsr-custom-target-wrap {
    margin-top: 6px;
}

/* ===== 면책 조항 ===== */
.dsr-disclaimer {
    text-align: center;
    padding: 10px;
    background: #faf9f7;
    border-radius: 6px;
    margin-top: 4px;
}

.dsr-disclaimer p {
    font-size: 11px;
    color: #a09a94;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dsr-disclaimer i {
    color: #d4af37;
}

/* ===== 숨김 ===== */
.dsr-hidden {
    display: none !important;
}

/* ===== 대기 상태 ===== */
.dsr-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
}

.dsr-waiting > i {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    color: #d4af37;
}

.dsr-waiting > p {
    font-size: 14px;
    margin-bottom: 16px;
}

.dsr-waiting-guide {
    text-align: left;
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 14px;
    max-width: 400px;
    margin: 0 auto;
}

.dsr-waiting-guide .guide-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dsr-waiting-guide .guide-title i {
    color: #d4af37;
}

.dsr-waiting-guide ul {
    margin: 0;
    padding-left: 18px;
}

.dsr-waiting-guide li {
    font-size: 12px;
    color: #5f5a56;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* ===== 게이지 ===== */
.dsr-gauge-container {
    text-align: center;
    margin-bottom: 16px;
}

.dsr-gauge-svg {
    width: 200px;
    height: 120px;
    display: block;
    margin: 0 auto;
}

.dsr-gauge-track {
    fill: none;
    stroke: #e8e4dc;
    stroke-width: 14;
    stroke-linecap: round;
}

.dsr-gauge-fill {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease, stroke 0.4s ease;
}

.dsr-gauge-center-value {
    font-size: 32px;
    font-weight: 700;
    fill: #2d2a26;
    text-anchor: middle;
}

.dsr-gauge-center-unit {
    font-size: 14px;
    font-weight: 600;
    fill: #7a756d;
    text-anchor: middle;
}

.dsr-gauge-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.dsr-gauge-label.safe {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.dsr-gauge-label.caution {
    background: rgba(243, 156, 18, 0.12);
    color: #f39c12;
}

.dsr-gauge-label.warning {
    background: rgba(230, 126, 34, 0.12);
    color: #e67e22;
}

.dsr-gauge-label.danger {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

/* ===== 스트레스 DSR 비교 ===== */
.dsr-stress-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.dsr-stress-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.dsr-stress-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12);
}

.dsr-stress-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dsr-stress-card-label i {
    font-size: 13px;
}

.dsr-stress-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #2d2a26;
    line-height: 1;
}

.dsr-stress-card-value .unit {
    font-size: 14px;
    font-weight: 600;
    color: #7a756d;
}

.dsr-stress-card.stress {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.06) 0%, rgba(231, 76, 60, 0.02) 100%);
    border-color: rgba(231, 76, 60, 0.25);
}

.dsr-stress-card.stress .dsr-stress-card-label {
    color: #e74c3c;
}

.dsr-stress-card.stress .dsr-stress-card-label i {
    color: #e74c3c;
}

.dsr-stress-rate-info {
    font-size: 11px;
    color: #a09a94;
    text-align: center;
    margin-top: 6px;
}

/* ===== 한도 비교 바 ===== */
.dsr-limit-bars {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.dsr-limit-bar-item {
    margin-bottom: 14px;
}

.dsr-limit-bar-item:last-child {
    margin-bottom: 0;
}

.dsr-limit-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.dsr-limit-bar-label {
    font-size: 13px;
    font-weight: 600;
    color: #2d2a26;
}

.dsr-limit-bar-status {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
}

.dsr-limit-bar-status.pass {
    background: rgba(39, 174, 96, 0.12);
    color: #27ae60;
}

.dsr-limit-bar-status.fail {
    background: rgba(231, 76, 60, 0.12);
    color: #e74c3c;
}

.dsr-limit-bar-track {
    position: relative;
    height: 10px;
    background: #f0ede8;
    border-radius: 5px;
    overflow: hidden;
}

.dsr-limit-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s ease, background 0.4s ease;
    min-width: 4px;
}

.dsr-limit-bar-fill.bank {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.dsr-limit-bar-fill.nonbank {
    background: linear-gradient(90deg, #9b59b6, #8e44ad);
}

.dsr-limit-bar-fill.over {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
}

.dsr-limit-bar-marks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 10px;
    color: #a09a94;
}

/* ===== 상세 테이블 ===== */
.dsr-detail-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(45, 42, 38, 0.06);
}

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

.dsr-section-title i {
    color: #d4af37;
}

.dsr-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

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

.dsr-detail-table th,
.dsr-detail-table td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #f0ede8;
    white-space: nowrap;
}

.dsr-detail-table th {
    background: #faf9f7;
    font-weight: 600;
    color: #5f5a56;
    position: sticky;
    top: 0;
    z-index: 1;
}

.dsr-detail-table th:first-child,
.dsr-detail-table td:first-child {
    text-align: left;
}

.dsr-detail-table td {
    color: #2d2a26;
}

.dsr-detail-table tr:last-child td {
    border-bottom: none;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.08);
    color: #d4af37;
}

.dsr-detail-table .new-loan-row td {
    background: rgba(212, 175, 55, 0.04);
    color: #b8860b;
}

/* ===== 요약 카드 ===== */
.dsr-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.dsr-summary-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all 0.2s;
}

.dsr-summary-card:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.12);
}

.dsr-summary-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dsr-summary-card-label i {
    color: #d4af37;
    font-size: 13px;
}

.dsr-summary-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d2a26;
}

.dsr-summary-card-value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #7a756d;
}

/* ===== 역계산 결과 ===== */
.dsr-rev-result-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dsr-rev-main-result {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(52, 152, 219, 0.04) 100%);
    border: 1px solid rgba(52, 152, 219, 0.35);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.dsr-rev-main-label {
    font-size: 14px;
    color: #7a756d;
    margin-bottom: 8px;
}

.dsr-rev-main-value {
    font-size: 40px;
    font-weight: 700;
    color: #3498db;
    line-height: 1;
}

.dsr-rev-main-value .unit {
    font-size: 18px;
    font-weight: 600;
}

.dsr-rev-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dsr-rev-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.dsr-rev-card-label {
    font-size: 12px;
    font-weight: 600;
    color: #7a756d;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dsr-rev-card-label i {
    font-size: 13px;
}

.dsr-rev-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #2d2a26;
}

.dsr-rev-card-value .unit {
    font-size: 12px;
    font-weight: 500;
    color: #7a756d;
}

.dsr-rev-card.stress {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.06) 0%, rgba(231, 76, 60, 0.02) 100%);
    border-color: rgba(231, 76, 60, 0.25);
}

.dsr-rev-card.stress .dsr-rev-card-label {
    color: #e74c3c;
}

.dsr-rev-remaining {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.02) 100%);
    border: 1px solid rgba(39, 174, 96, 0.25);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.dsr-rev-remaining-label {
    font-size: 13px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.dsr-rev-remaining-value {
    font-size: 28px;
    font-weight: 700;
    color: #27ae60;
}

.dsr-rev-remaining-value .unit {
    font-size: 14px;
    font-weight: 600;
}

/* ===== 안내문 ===== */
.dsr-notice {
    text-align: center;
    padding: 12px;
    background: #faf9f7;
    border-radius: 8px;
}

.dsr-notice p {
    font-size: 12px;
    color: #a09a94;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dsr-notice i {
    color: #d4af37;
}

/* ===== 반응형 - 태블릿 ===== */
@media (max-width: 900px) {
    .tool-layout-input {
        max-width: 100%;
        overflow: hidden;
    }

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

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

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

    .dsr-summary-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .dsr-summary-card-value {
        font-size: 16px;
    }

    .dsr-stress-compare {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .dsr-stress-card-value {
        font-size: 24px;
    }

    .dsr-rev-compare-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/* ===== 반응형 - 모바일 ===== */
@media (max-width: 768px) {
    .dsr-gauge-svg {
        width: 180px;
        height: 108px;
    }

    .dsr-stress-card {
        padding: 12px;
    }

    .dsr-stress-card-value {
        font-size: 22px;
    }

    .dsr-rev-main-result {
        padding: 20px 16px;
    }

    .dsr-rev-main-value {
        font-size: 32px;
    }

    .dsr-rev-card-value {
        font-size: 18px;
    }

    .dsr-radio-group {
        flex-direction: column;
        gap: 6px;
    }

    .dsr-rate-type-group {
        flex-wrap: wrap;
    }

    .dsr-target-radio-group {
        flex-direction: column;
        gap: 6px;
    }

    .dsr-loan-card-fields {
        grid-template-columns: 1fr;
    }

    .dsr-new-loan-fields {
        grid-template-columns: 1fr;
    }

    .dsr-quick-btns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 반응형 - 작은 모바일 ===== */
@media (max-width: 480px) {
    .tool-section,
    .tool-layout-split,
    .tool-input-panel,
    .tool-result-panel {
        max-width: 100%;
        overflow-x: hidden;
    }

    .dsr-gauge-svg {
        width: 160px;
        height: 96px;
    }

    .dsr-gauge-center-value {
        font-size: 26px;
    }

    .dsr-summary-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dsr-summary-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        padding: 12px 14px;
    }

    .dsr-summary-card-label {
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .dsr-stress-compare {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dsr-stress-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .dsr-stress-card-label {
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .dsr-rev-compare-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dsr-rev-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }

    .dsr-rev-card-label {
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .dsr-rev-main-value {
        font-size: 28px;
    }

    .dsr-rev-remaining-value {
        font-size: 22px;
    }

    .dsr-detail-table {
        font-size: 11px;
    }

    .dsr-detail-table th,
    .dsr-detail-table td {
        padding: 8px 4px;
    }
}
