/**
 * HAS-BLED Calculator Styles
 * HAS-BLED 계산기 전용 스타일
 *
 * @package Zipper
 */

#hasBledTool {
    color: #2d2a26;
}

#hasBledTool .hbl-lead {
    margin: 10px 0 18px;
    color: #5f5a56;
    font-size: 15px;
    line-height: 1.7;
}

#hasBledTool .hbl-main-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 18px;
    align-items: start;
}

#hasBledTool .hbl-input-col,
#hasBledTool .hbl-result-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

#hasBledTool .hbl-input-col {
    position: sticky;
    top: 20px;
}

#hasBledTool .hbl-panel,
#hasBledTool .hbl-result-hero,
#hasBledTool .hbl-summary-card,
#hasBledTool .hbl-disclaimer,
#hasBledTool .hbl-waiting {
    border: 1px solid #e2dccf;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 10px 24px rgba(45, 42, 38, 0.06);
}

#hasBledTool .hbl-panel,
#hasBledTool .hbl-result-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
}

#hasBledTool .hbl-result-hero {
    scroll-margin-top: 96px;
}

#hasBledTool .hbl-panel-title,
#hasBledTool .hbl-result-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1816;
}

#hasBledTool .hbl-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

#hasBledTool .hbl-panel-title i,
#hasBledTool .hbl-result-title i {
    color: #d4af37;
}

#hasBledTool .hbl-panel-intro,
#hasBledTool .hbl-note-list,
#hasBledTool .hbl-caution-text,
#hasBledTool .hbl-scale-note,
#hasBledTool .hbl-range-label,
#hasBledTool .hbl-summary-label,
#hasBledTool .hbl-eyebrow,
#hasBledTool .hbl-result-summary,
#hasBledTool .hbl-disclaimer,
#hasBledTool .hbl-active-factors,
#hasBledTool .hbl-waiting-desc,
#hasBledTool .hbl-validation-message,
#hasBledTool .hbl-check-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #5f5a56;
}

#hasBledTool .hbl-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

#hasBledTool .hbl-check-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #e1d7c8;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#hasBledTool .hbl-check-card:hover {
    transform: translateY(-1px);
    border-color: #d4af37;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.12);
}

#hasBledTool .hbl-check-card.is-checked {
    border-color: #d4af37;
    background: #fff8e8;
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.14);
}

#hasBledTool .hbl-check-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #d4af37;
    flex-shrink: 0;
}

#hasBledTool .hbl-check-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#hasBledTool .hbl-check-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1816;
}

#hasBledTool .hbl-point-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #ead8a3;
    background: #fbf2dc;
    color: #7a6431;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#hasBledTool .hbl-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

#hasBledTool .hbl-action-row .tool-btn {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
}

#hasBledTool .hbl-validation-message {
    min-height: 20px;
    margin: 0;
    color: #c05621;
    font-weight: 600;
}

#hasBledTool .hbl-note-list {
    margin: 0;
    padding-left: 18px;
}

#hasBledTool .hbl-note-list li + li {
    margin-top: 6px;
}

#hasBledTool .hbl-hidden {
    display: none;
}

#hasBledTool .hbl-waiting {
    text-align: center;
    padding: 22px 18px;
    background: #faf8f2;
}

#hasBledTool .hbl-waiting-icon {
    font-size: 34px;
    color: #d4af37;
    margin-bottom: 10px;
}

#hasBledTool .hbl-waiting-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1816;
    margin-bottom: 6px;
}

#hasBledTool .hbl-waiting-desc {
    margin: 0;
}

#hasBledTool .hbl-result-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

#hasBledTool .hbl-eyebrow {
    margin: 0 0 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b7e64;
    font-weight: 700;
}

#hasBledTool .hbl-risk-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

#hasBledTool .hbl-risk-badge.pending {
    background: #f3efe5;
    color: #7e725d;
}

#hasBledTool .hbl-risk-badge.range {
    background: #fbf2dc;
    color: #7a6431;
}

#hasBledTool .hbl-risk-badge.high {
    background: #fbe7e2;
    color: #a8432f;
}

#hasBledTool .hbl-value-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

#hasBledTool .hbl-value {
    font-size: 54px;
    line-height: 1;
    font-weight: 800;
    color: #1a1816;
}

#hasBledTool .hbl-value-unit {
    font-size: 18px;
    font-weight: 700;
    color: #7e725d;
}

#hasBledTool .hbl-result-summary {
    margin: 0;
}

#hasBledTool .hbl-active-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

#hasBledTool .hbl-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ead8a3;
    background: #fbf2dc;
    color: #6a5c3a;
    font-size: 12px;
    font-weight: 600;
}

#hasBledTool .hbl-chip.is-high {
    border-color: #efc2b7;
    background: #fbe7e2;
    color: #a8432f;
}

#hasBledTool .hbl-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#hasBledTool .hbl-summary-card {
    padding: 14px;
}

#hasBledTool .hbl-summary-label {
    margin-bottom: 8px;
}

#hasBledTool .hbl-summary-value {
    font-size: 24px;
    font-weight: 800;
    color: #1a1816;
}

#hasBledTool .hbl-panel-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

#hasBledTool .hbl-range-label {
    font-weight: 600;
}

#hasBledTool .hbl-scale-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#hasBledTool .hbl-scale-track {
    position: relative;
    display: flex;
    width: 100%;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    background: #efe8d9;
}

#hasBledTool .hbl-scale-zone {
    height: 100%;
}

#hasBledTool .hbl-scale-zone-low {
    width: 33.3333%;
    background: linear-gradient(90deg, #f7ead1 0%, #e8d4a1 100%);
}

#hasBledTool .hbl-scale-zone-high {
    width: 66.6667%;
    background: linear-gradient(90deg, #f2cfc5 0%, #e4a89c 100%);
}

#hasBledTool .hbl-scale-marker {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 1%;
    width: 4px;
    border-radius: 999px;
    background: #2d2a26;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.78);
    transform: translateX(-50%);
}

#hasBledTool .hbl-scale-ticks {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #7e725d;
    font-size: 12px;
    font-weight: 700;
}

#hasBledTool .hbl-scale-note {
    margin: 0;
}

#hasBledTool .hbl-table-wrap {
    overflow-x: auto;
    border: 1px solid #e7e0d2;
    border-radius: 12px;
    background: #fff;
}

#hasBledTool .hbl-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

#hasBledTool .hbl-table th,
#hasBledTool .hbl-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #efe7d8;
    font-size: 13px;
    text-align: left;
    vertical-align: middle;
}

#hasBledTool .hbl-table thead th {
    background: #faf6ec;
    color: #5c5246;
    font-weight: 700;
}

#hasBledTool .hbl-table tbody tr:last-child th,
#hasBledTool .hbl-table tbody tr:last-child td {
    border-bottom: none;
}

#hasBledTool .hbl-table tbody tr.is-selected {
    background: #fff8e8;
}

#hasBledTool .hbl-table-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

#hasBledTool .hbl-table-status.off {
    background: #f3efe5;
    color: #7e725d;
}

#hasBledTool .hbl-table-status.on {
    background: #fbe7e2;
    color: #a8432f;
}

#hasBledTool .hbl-table-points,
#hasBledTool .hbl-table-flag {
    font-weight: 700;
    color: #1a1816;
}

#hasBledTool .hbl-caution-text {
    margin: 0;
}

#hasBledTool .hbl-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
}

#hasBledTool .hbl-disclaimer i {
    margin-top: 2px;
    color: #d4af37;
    font-size: 18px;
    flex-shrink: 0;
}

#hasBledTool .hbl-disclaimer span {
    display: block;
    font-size: 13px;
    line-height: 1.7;
    color: #5f5a56;
}

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

    #hasBledTool .hbl-input-col {
        position: static;
    }

    #hasBledTool .hbl-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #hasBledTool .hbl-lead {
        font-size: 14px;
    }

    #hasBledTool .hbl-panel,
    #hasBledTool .hbl-result-hero {
        padding: 14px;
    }

    #hasBledTool .hbl-check-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    #hasBledTool .hbl-point-badge {
        grid-column: 2;
        justify-self: start;
    }

    #hasBledTool .hbl-result-top,
    #hasBledTool .hbl-panel-heading-row {
        flex-direction: column;
        align-items: flex-start;
    }

    #hasBledTool .hbl-value {
        font-size: 48px;
    }

    #hasBledTool .hbl-summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    #hasBledTool .hbl-check-card {
        padding: 12px;
        gap: 10px;
    }

    #hasBledTool .hbl-check-title {
        font-size: 14px;
    }

    #hasBledTool .hbl-value {
        font-size: 40px;
    }

    #hasBledTool .hbl-summary-value {
        font-size: 22px;
    }

    #hasBledTool .hbl-table th,
    #hasBledTool .hbl-table td {
        padding: 10px 12px;
    }
}
