/**
 * Dumbbell Weight Converter
 * 덤벨 중량 변환 계산기 전용 스타일
 *
 * @package Zipper
 */

#dumbbellWeightConverter {
    --dwc-bg: #faf9f7;
    --dwc-surface: #ffffff;
    --dwc-border: #e8e4dc;
    --dwc-text: #2d2a26;
    --dwc-muted: #5f5a56;
    --dwc-soft-muted: #8a8172;
    --dwc-accent: #b8860b;
    --dwc-accent-strong: #8a6500;
    --dwc-accent-light: #fbf7eb;
    --dwc-accent-mid: #eadfb8;
    --dwc-error: #b42318;
    --dwc-error-light: #fff4f2;
    --dwc-radius: 10px;
    --dwc-radius-sm: 7px;
    --dwc-shadow: 0 1px 4px rgba(45, 42, 38, 0.06), 0 0 0 1px rgba(45, 42, 38, 0.04);
    --dwc-mono: 'Courier New', Courier, monospace;
    --dwc-sans: Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
    background: var(--dwc-bg);
    color: var(--dwc-text);
    font-family: var(--dwc-sans);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 20px 14px 28px;
}

#dumbbellWeightConverter,
#dumbbellWeightConverter *,
#dumbbellWeightConverter *::before,
#dumbbellWeightConverter *::after {
    box-sizing: border-box;
}

#dumbbellWeightConverter .dwc-wrap {
    display: grid;
    gap: 12px;
    margin: 0 auto;
    max-width: 960px;
    width: 100%;
}

#dumbbellWeightConverter .dwc-tool-header {
    align-items: end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 2px 0 4px;
}

#dumbbellWeightConverter .dwc-tool-header h2 {
    color: var(--dwc-text);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0;
}

#dumbbellWeightConverter .dwc-tool-header p {
    color: var(--dwc-muted);
    font-size: 13px;
    margin: 3px 0 0;
}

#dumbbellWeightConverter .dwc-badge {
    background: var(--dwc-accent-light);
    border: 1px solid var(--dwc-accent-mid);
    border-radius: 999px;
    color: var(--dwc-accent-strong);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    white-space: nowrap;
}

#dumbbellWeightConverter .dwc-input-panel,
#dumbbellWeightConverter .dwc-main-card,
#dumbbellWeightConverter .dwc-metric-card,
#dumbbellWeightConverter .dwc-table-card,
#dumbbellWeightConverter .dwc-note-card {
    background: var(--dwc-surface);
    border: 1px solid var(--dwc-border);
    border-radius: var(--dwc-radius);
    box-shadow: var(--dwc-shadow);
    min-width: 0;
}

#dumbbellWeightConverter .dwc-input-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
}

#dumbbellWeightConverter .dwc-panel-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

#dumbbellWeightConverter .dwc-panel-head h3,
#dumbbellWeightConverter .dwc-card-head h3 {
    color: var(--dwc-text);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

#dumbbellWeightConverter .dwc-mode-toggle {
    background: var(--dwc-bg);
    border: 1px solid var(--dwc-border);
    border-radius: 999px;
    display: flex;
    flex: 0 0 auto;
    gap: 4px;
    padding: 3px;
}

#dumbbellWeightConverter .dwc-mode-btn {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--dwc-muted);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#dumbbellWeightConverter .dwc-mode-btn:hover,
#dumbbellWeightConverter .dwc-mode-btn:focus-visible {
    color: var(--dwc-accent-strong);
    outline: none;
}

#dumbbellWeightConverter .dwc-mode-btn.is-active {
    background: var(--dwc-surface);
    box-shadow: 0 1px 3px rgba(45, 42, 38, 0.08);
    color: var(--dwc-accent-strong);
}

#dumbbellWeightConverter .dwc-input-grid,
#dumbbellWeightConverter .dwc-advanced-grid {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 1.3fr) minmax(112px, 0.55fr) minmax(96px, 0.45fr);
}


#dumbbellWeightConverter .dwc-advanced-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#dumbbellWeightConverter .dwc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#dumbbellWeightConverter .dwc-field label,
#dumbbellWeightConverter .dwc-chip-row span,
#dumbbellWeightConverter .dwc-metric-label,
#dumbbellWeightConverter .dwc-main-label {
    color: var(--dwc-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#dumbbellWeightConverter .dwc-input-box {
    align-items: center;
    background: var(--dwc-bg);
    border: 1.5px solid var(--dwc-border);
    border-radius: var(--dwc-radius-sm);
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    padding: 3px 6px 3px 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#dumbbellWeightConverter .dwc-input-box:focus-within,
#dumbbellWeightConverter .dwc-select:focus {
    background: #fff;
    border-color: var(--dwc-accent);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.09);
    outline: none;
}

#dumbbellWeightConverter .dwc-input-box.is-error,
#dumbbellWeightConverter .dwc-input-box.is-error:focus-within {
    border-color: var(--dwc-error);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.08);
}

#dumbbellWeightConverter .dwc-input-box input {
    background: transparent;
    border: 0;
    color: var(--dwc-text);
    font-family: var(--dwc-mono);
    font-size: 17px;
    font-weight: 700;
    min-width: 0;
    outline: none;
    padding: 8px 10px;
    width: 100%;
}

#dumbbellWeightConverter .dwc-count-box input {
    text-align: center;
}

#dumbbellWeightConverter .dwc-unit {
    align-items: center;
    background: var(--dwc-surface);
    border-radius: 6px;
    color: var(--dwc-soft-muted);
    display: inline-flex;
    font-family: var(--dwc-mono);
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    min-width: 36px;
    padding: 5px 8px;
    white-space: nowrap;
}

#dumbbellWeightConverter .dwc-select {
    appearance: none;
    background: var(--dwc-bg);
    border: 1.5px solid var(--dwc-border);
    border-radius: var(--dwc-radius-sm);
    color: var(--dwc-text);
    cursor: pointer;
    font-family: var(--dwc-mono);
    font-size: 16px;
    font-weight: 700;
    min-width: 0;
    padding: 11px 10px;
    width: 100%;
}

#dumbbellWeightConverter .dwc-chip-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

#dumbbellWeightConverter .dwc-chip-row span {
    color: var(--dwc-soft-muted);
    margin-right: 2px;
}

#dumbbellWeightConverter .dwc-weight-chip,
#dumbbellWeightConverter .dwc-count-chip {
    background: var(--dwc-bg);
    border: 1px solid var(--dwc-border);
    border-radius: 999px;
    color: var(--dwc-muted);
    cursor: pointer;
    font: inherit;
    font-family: var(--dwc-mono);
    font-size: 12px;
    font-weight: 700;
    min-height: 31px;
    padding: 5px 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#dumbbellWeightConverter .dwc-count-chip {
    font-family: var(--dwc-sans);
}

#dumbbellWeightConverter .dwc-weight-chip:hover,
#dumbbellWeightConverter .dwc-weight-chip:focus-visible,
#dumbbellWeightConverter .dwc-count-chip:hover,
#dumbbellWeightConverter .dwc-count-chip:focus-visible {
    border-color: var(--dwc-accent-mid);
    color: var(--dwc-accent-strong);
    outline: none;
}

#dumbbellWeightConverter .dwc-weight-chip.is-active,
#dumbbellWeightConverter .dwc-count-chip.is-active {
    background: var(--dwc-accent-light);
    border-color: var(--dwc-accent);
    color: var(--dwc-accent-strong);
}

#dumbbellWeightConverter .dwc-action-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
}

#dumbbellWeightConverter .dwc-validation-message {
    color: var(--dwc-muted);
    flex: 1 1 auto;
    font-size: 13px;
    margin: 0;
    min-height: 20px;
    min-width: 0;
}

#dumbbellWeightConverter .dwc-validation-message.is-error {
    color: var(--dwc-error);
}

#dumbbellWeightConverter .dwc-buttons {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

#dumbbellWeightConverter .dwc-btn {
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 12px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

#dumbbellWeightConverter .dwc-btn:focus-visible {
    outline: 3px solid rgba(184, 134, 11, 0.18);
    outline-offset: 2px;
}

#dumbbellWeightConverter .dwc-btn:hover {
    transform: translateY(-1px);
}

#dumbbellWeightConverter .dwc-btn-ghost {
    background: var(--dwc-bg);
    border-color: var(--dwc-border);
    color: var(--dwc-muted);
}

#dumbbellWeightConverter .dwc-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #2d2a26;
}

#dumbbellWeightConverter .dwc-result-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    min-width: 0;
}

#dumbbellWeightConverter .dwc-main-card {
    background: linear-gradient(135deg, #fffaf0 0%, #f6edcf 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    overflow: hidden;
    padding: 18px;
    position: relative;
}

#dumbbellWeightConverter .dwc-main-card::after {
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    content: "";
    height: 140px;
    position: absolute;
    right: -52px;
    top: -52px;
    width: 140px;
}

#dumbbellWeightConverter .dwc-main-label,
#dumbbellWeightConverter .dwc-main-value,
#dumbbellWeightConverter .dwc-main-sub,
#dumbbellWeightConverter .dwc-equation {
    position: relative;
    z-index: 1;
}

#dumbbellWeightConverter .dwc-main-value {
    color: var(--dwc-accent-strong);
    font-family: var(--dwc-mono);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

#dumbbellWeightConverter .dwc-main-value small {
    color: var(--dwc-accent-strong);
    font-size: 0.38em;
    letter-spacing: 0;
}

#dumbbellWeightConverter .dwc-main-sub {
    color: var(--dwc-muted);
    font-size: 14px;
    margin-top: -2px;
}

#dumbbellWeightConverter .dwc-equation {
    align-items: center;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(234, 223, 184, 0.88);
    border-radius: 9px;
    color: var(--dwc-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding: 9px 10px;
}

#dumbbellWeightConverter .dwc-equation span,
#dumbbellWeightConverter .dwc-equation strong {
    font-family: var(--dwc-mono);
    font-size: 13px;
}

#dumbbellWeightConverter .dwc-equation strong {
    color: var(--dwc-accent-strong);
    font-size: 15px;
}

#dumbbellWeightConverter .dwc-metric-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

#dumbbellWeightConverter .dwc-metric-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px;
}

#dumbbellWeightConverter .dwc-metric-card strong {
    color: var(--dwc-text);
    font-family: var(--dwc-mono);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

#dumbbellWeightConverter .dwc-metric-card small {
    color: var(--dwc-soft-muted);
    font-size: 12px;
}


#dumbbellWeightConverter .dwc-applied-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

#dumbbellWeightConverter .dwc-table-card {
    display: grid;
    gap: 10px;
    padding: 14px;
}

#dumbbellWeightConverter .dwc-card-head {
    align-items: end;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

#dumbbellWeightConverter .dwc-card-head p {
    color: var(--dwc-muted);
    font-size: 12px;
    margin: 0;
    text-align: right;
}

#dumbbellWeightConverter .dwc-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

#dumbbellWeightConverter .dwc-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

#dumbbellWeightConverter .dwc-table th,
#dumbbellWeightConverter .dwc-table td {
    border-radius: 6px;
    color: var(--dwc-text);
    font-size: 12.5px;
    padding: 8px;
    text-align: right;
    vertical-align: middle;
}

#dumbbellWeightConverter .dwc-table th {
    color: var(--dwc-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#dumbbellWeightConverter .dwc-table th:first-child,
#dumbbellWeightConverter .dwc-table td:first-child,
#dumbbellWeightConverter .dwc-table th:last-child,
#dumbbellWeightConverter .dwc-table td:last-child {
    text-align: left;
}

#dumbbellWeightConverter .dwc-table td:not(:last-child) {
    font-family: var(--dwc-mono);
    font-weight: 700;
}

#dumbbellWeightConverter .dwc-table tr.dwc-highlight td {
    background: var(--dwc-accent-light);
    color: var(--dwc-accent-strong);
}

#dumbbellWeightConverter .dwc-note-card {
    align-items: start;
    display: grid;
    gap: 5px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 12px 14px;
}

#dumbbellWeightConverter .dwc-note-card strong {
    color: var(--dwc-accent-strong);
    font-size: 13px;
}

#dumbbellWeightConverter .dwc-note-card span {
    color: var(--dwc-muted);
    font-size: 13px;
}

@media (max-width: 820px) {
    #dumbbellWeightConverter {
        padding: 16px 10px 24px;
    }

    #dumbbellWeightConverter .dwc-tool-header,
    #dumbbellWeightConverter .dwc-panel-head,
    #dumbbellWeightConverter .dwc-action-row,
    #dumbbellWeightConverter .dwc-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    #dumbbellWeightConverter .dwc-mode-toggle,
    #dumbbellWeightConverter .dwc-buttons {
        width: 100%;
    }

    #dumbbellWeightConverter .dwc-mode-btn,
    #dumbbellWeightConverter .dwc-buttons .dwc-btn {
        flex: 1 1 0;
    }

    #dumbbellWeightConverter .dwc-input-grid,
    #dumbbellWeightConverter .dwc-advanced-grid,
    #dumbbellWeightConverter .dwc-result-grid,
    #dumbbellWeightConverter .dwc-applied-grid,
    #dumbbellWeightConverter .dwc-metric-grid {
        grid-template-columns: 1fr;
    }

    #dumbbellWeightConverter .dwc-card-head p {
        text-align: left;
    }

    #dumbbellWeightConverter .dwc-table-wrap {
        overflow-x: hidden;
    }

    #dumbbellWeightConverter .dwc-table th,
    #dumbbellWeightConverter .dwc-table td {
        padding: 8px 6px;
        word-break: keep-all;
    }
}

@media (max-width: 480px) {
    #dumbbellWeightConverter,
    #dumbbellWeightConverter .dwc-wrap,
    #dumbbellWeightConverter .dwc-input-panel,
    #dumbbellWeightConverter .dwc-main-card,
    #dumbbellWeightConverter .dwc-table-card {
        max-width: 100%;
        overflow-x: hidden;
    }

    #dumbbellWeightConverter .dwc-tool-header h2 {
        font-size: 18px;
    }

    #dumbbellWeightConverter .dwc-main-card {
        min-height: 170px;
        padding: 16px;
    }

    #dumbbellWeightConverter .dwc-main-value {
        font-size: 38px;
    }

    #dumbbellWeightConverter .dwc-table th,
    #dumbbellWeightConverter .dwc-table td {
        font-size: 11.5px;
        padding: 7px 5px;
    }

    #dumbbellWeightConverter .dwc-note-card {
        grid-template-columns: 1fr;
    }
}
