@charset "UTF-8";

#tool-watt-hour-calculator,
#tool-watt-hour-calculator * {
    box-sizing: border-box;
}

#tool-watt-hour-calculator {
    --whc-bg: #faf9f7;
    --whc-surface: #ffffff;
    --whc-border: #e8e4dc;
    --whc-border-strong: #d8d1c6;
    --whc-text: #2d2a26;
    --whc-muted: #6f6a64;
    --whc-accent: #d4af37;
    --whc-accent-soft: #fdfbf5;
    --whc-accent-mid: #d4c67a;
    --whc-green: #4f9f70;
    --whc-green-soft: #f2faf4;
    --whc-warn: #c2410c;
    --whc-warn-soft: #fff5ed;
    --whc-mono: 'Courier New', Courier, monospace;
    --whc-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #eee7dc;
    border-radius: 18px;
    background: var(--whc-bg);
    color: var(--whc-text);
}

#tool-watt-hour-calculator.whc-tool {
    width: 100%;
    min-width: 0;
    container-type: inline-size;
}

#tool-watt-hour-calculator .whc-battery-card,
#tool-watt-hour-calculator .whc-convert-card,
#tool-watt-hour-calculator .whc-conversion-table-card,
#tool-watt-hour-calculator .whc-formula-card {
    min-width: 0;
}

#tool-watt-hour-calculator .whc-tool-intro {
    display: grid;
    gap: 10px;
}

#tool-watt-hour-calculator .whc-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px 14px;
}

#tool-watt-hour-calculator .whc-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 5px 10px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 999px;
    background: var(--whc-accent-soft);
    color: var(--whc-accent);
    font-size: 15px;
    font-weight: 700;
}

#tool-watt-hour-calculator .tool-section-title {
    margin: 0;
    color: var(--whc-text);
    letter-spacing: -0.03em;
}

#tool-watt-hour-calculator .whc-tool-lead {
    max-width: 920px;
    margin: 0;
    color: var(--whc-muted);
    font-size: 17px;
    line-height: 1.72;
}

#tool-watt-hour-calculator .whc-main-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: start;
}

#tool-watt-hour-calculator .whc-input-col,
#tool-watt-hour-calculator .whc-result-col {
    display: grid;
    gap: 12px;
    min-width: 0;
}

#tool-watt-hour-calculator .whc-card,
#tool-watt-hour-calculator .whc-main-result,
#tool-watt-hour-calculator .whc-summary-card,
#tool-watt-hour-calculator .whc-warning,
#tool-watt-hour-calculator .whc-note-box {
    min-width: 0;
    border: 1px solid var(--whc-border);
    border-radius: 14px;
    background: var(--whc-surface);
    box-shadow: var(--whc-shadow);
}

#tool-watt-hour-calculator .whc-card {
    display: grid;
    gap: 14px;
    padding: 16px;
}

#tool-watt-hour-calculator .whc-input-card {
    border-color: rgba(212, 175, 55, 0.24);
}

#tool-watt-hour-calculator .whc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

#tool-watt-hour-calculator .whc-card-head h3 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--whc-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

#tool-watt-hour-calculator .whc-card-head i {
    color: var(--whc-accent);
}

#tool-watt-hour-calculator .whc-head-note {
    flex: 0 0 auto;
    color: var(--whc-muted);
    font-family: var(--whc-mono);
    font-size: 14px;
    font-weight: 700;
}

#tool-watt-hour-calculator .whc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#tool-watt-hour-calculator .whc-input-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#tool-watt-hour-calculator .whc-input-group {
    display: grid;
    gap: 6px;
    min-width: 0;
}

#tool-watt-hour-calculator .whc-input-group label,
#tool-watt-hour-calculator .whc-chip-label,
#tool-watt-hour-calculator .whc-summary-label,
#tool-watt-hour-calculator .whc-result-topline,
#tool-watt-hour-calculator .whc-formula-grid span {
    color: var(--whc-muted);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

#tool-watt-hour-calculator .whc-input-row,
#tool-watt-hour-calculator .whc-unit-input,
#tool-watt-hour-calculator .whc-time-row {
    display: grid;
    gap: 8px;
    min-width: 0;
    align-items: center;
}

#tool-watt-hour-calculator .whc-input-row {
    grid-template-columns: minmax(0, 1fr) 78px;
}

#tool-watt-hour-calculator .whc-time-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#tool-watt-hour-calculator .whc-unit-input {
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid var(--whc-border-strong);
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

#tool-watt-hour-calculator .whc-unit-input:focus-within {
    border-color: var(--whc-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.10);
}

#tool-watt-hour-calculator .whc-unit-input span {
    padding-right: 10px;
    color: var(--whc-muted);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

#tool-watt-hour-calculator .whc-input,
#tool-watt-hour-calculator .whc-unit-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    border: 1px solid var(--whc-border-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--whc-text);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

#tool-watt-hour-calculator .whc-input {
    padding: 10px 11px;
    font-family: var(--whc-mono);
    font-weight: 700;
}

#tool-watt-hour-calculator .whc-unit-input .whc-input {
    border: 0;
    border-radius: 10px 0 0 10px;
    background: transparent;
}

#tool-watt-hour-calculator .whc-unit-select {
    padding: 10px 8px;
    font-weight: 700;
}

#tool-watt-hour-calculator .whc-input:hover,
#tool-watt-hour-calculator .whc-unit-select:hover {
    border-color: var(--whc-accent-mid);
}

#tool-watt-hour-calculator .whc-input:focus,
#tool-watt-hour-calculator .whc-unit-select:focus {
    outline: none;
    border-color: var(--whc-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.10);
}

#tool-watt-hour-calculator .whc-unit-input .whc-input:focus {
    box-shadow: none;
}

#tool-watt-hour-calculator .whc-input[aria-invalid="true"] {
    border-color: var(--whc-warn);
    background: var(--whc-warn-soft);
}

#tool-watt-hour-calculator .whc-input-help {
    margin: 0;
    color: var(--whc-muted);
    font-size: 14px;
    line-height: 1.5;
}

#tool-watt-hour-calculator .whc-chip-zone,
#tool-watt-hour-calculator .whc-voltage-row {
    display: grid;
    gap: 8px;
}

#tool-watt-hour-calculator .whc-chip-group,
#tool-watt-hour-calculator .whc-voltage-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#tool-watt-hour-calculator .whc-preset-chip,
#tool-watt-hour-calculator .whc-voltage-chip,
#tool-watt-hour-calculator .whc-calculate-btn,
#tool-watt-hour-calculator .whc-copy-btn,
#tool-watt-hour-calculator .whc-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border-radius: 999px;
    border: 1px solid var(--whc-border);
    background: #fff;
    color: var(--whc-text);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
}

#tool-watt-hour-calculator .whc-preset-chip,
#tool-watt-hour-calculator .whc-voltage-chip {
    padding: 7px 10px;
}

#tool-watt-hour-calculator .whc-preset-chip:hover,
#tool-watt-hour-calculator .whc-voltage-chip:hover,
#tool-watt-hour-calculator .whc-preset-chip.is-active,
#tool-watt-hour-calculator .whc-voltage-chip.is-active {
    border-color: var(--whc-accent-mid);
    background: var(--whc-accent-soft);
    color: var(--whc-accent);
}

#tool-watt-hour-calculator .whc-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#tool-watt-hour-calculator .whc-calculate-btn,
#tool-watt-hour-calculator .whc-copy-btn,
#tool-watt-hour-calculator .whc-reset-btn {
    min-height: 44px;
    padding: 10px 14px;
}

#tool-watt-hour-calculator .whc-calculate-btn {
    flex: 1 1 160px;
    border-color: rgba(212, 175, 55, 0.30);
    background: linear-gradient(135deg, #fdfbf5 0%, #ffffff 100%);
    color: var(--whc-accent);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.14);
}

#tool-watt-hour-calculator .whc-copy-btn,
#tool-watt-hour-calculator .whc-reset-btn {
    flex: 0 1 auto;
}

#tool-watt-hour-calculator .whc-calculate-btn:hover,
#tool-watt-hour-calculator .whc-copy-btn:hover,
#tool-watt-hour-calculator .whc-reset-btn:hover {
    transform: translateY(-1px);
    border-color: var(--whc-accent-mid);
    background: var(--whc-accent-soft);
    color: var(--whc-accent);
}

#tool-watt-hour-calculator .whc-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-color: #fed7aa;
    background: var(--whc-warn-soft);
    color: var(--whc-warn);
    font-size: 16px;
    font-weight: 700;
}

#tool-watt-hour-calculator .whc-hidden {
    display: none !important;
}

#tool-watt-hour-calculator .whc-main-result {
    display: grid;
    gap: 10px;
    padding: 20px;
    border-color: rgba(212, 175, 55, 0.28);
    background:
        radial-gradient(circle at top right, rgba(212, 175, 55, 0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fdfbf5 100%);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.16);
}

#tool-watt-hour-calculator .whc-main-result h3 {
    margin: 0;
    color: var(--whc-text);
    font-size: 19px;
    letter-spacing: -0.01em;
}

#tool-watt-hour-calculator .whc-result-value {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--whc-accent);
    font-family: var(--whc-mono);
    font-weight: 800;
}

#tool-watt-hour-calculator .whc-result-value span:first-child {
    font-size: clamp(36px, 5.4vw, 56px);
    letter-spacing: -0.06em;
}

#tool-watt-hour-calculator .whc-result-value span:last-child {
    font-size: 20px;
}

#tool-watt-hour-calculator .whc-result-lead {
    margin: 0;
    color: #5f5a56;
    font-size: 16px;
    line-height: 1.62;
}

#tool-watt-hour-calculator .whc-result-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#tool-watt-hour-calculator .whc-result-mini span {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: #5f5a56;
    font-size: 14px;
    font-weight: 800;
}

#tool-watt-hour-calculator .whc-result-mini strong,
#tool-watt-hour-calculator .whc-summary-value,
#tool-watt-hour-calculator .whc-table td,
#tool-watt-hour-calculator .whc-formula-grid code {
    font-family: var(--whc-mono);
}

#tool-watt-hour-calculator .whc-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#tool-watt-hour-calculator .whc-summary-card {
    display: grid;
    gap: 5px;
    padding: 13px;
}

#tool-watt-hour-calculator .whc-summary-value {
    color: var(--whc-text);
    font-size: 19px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

#tool-watt-hour-calculator .whc-summary-card p {
    margin: 0;
    color: var(--whc-muted);
    font-size: 14px;
    line-height: 1.45;
}

#tool-watt-hour-calculator .whc-table-wrap {
    max-width: 100%;
    overflow-x: auto;
}

#tool-watt-hour-calculator .whc-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

#tool-watt-hour-calculator .whc-table th,
#tool-watt-hour-calculator .whc-table td {
    padding: 10px 8px;
    border-top: 1px solid #eee7dc;
    text-align: left;
    vertical-align: middle;
    font-size: 15px;
}

#tool-watt-hour-calculator .whc-table tr:first-child th,
#tool-watt-hour-calculator .whc-table tr:first-child td {
    border-top: 0;
}

#tool-watt-hour-calculator .whc-table th {
    color: var(--whc-muted);
    font-weight: 800;
    white-space: nowrap;
}

#tool-watt-hour-calculator .whc-table td:nth-child(2) {
    color: var(--whc-text);
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

#tool-watt-hour-calculator .whc-table code,
#tool-watt-hour-calculator .whc-formula-grid code {
    display: inline-block;
    max-width: 100%;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--whc-bg);
    color: #5f5a56;
    font-size: 14px;
    white-space: normal;
    word-break: break-word;
}

#tool-watt-hour-calculator .whc-formula-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#tool-watt-hour-calculator .whc-formula-grid div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #eee7dc;
    border-radius: 10px;
    background: #fffdf8;
}

#tool-watt-hour-calculator .whc-note-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-color: rgba(15, 143, 112, 0.20);
    background: var(--whc-green-soft);
    color: #28544a;
}

#tool-watt-hour-calculator .whc-note-box i {
    color: var(--whc-green);
    margin-top: 3px;
}

#tool-watt-hour-calculator .whc-note-box p {
    margin: 0;
    font-size: 15px;
    line-height: 1.62;
}


@container (max-width: 1050px) {
    #tool-watt-hour-calculator .whc-main-layout {
        grid-template-columns: 1fr;
    }

    #tool-watt-hour-calculator .whc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    #tool-watt-hour-calculator .whc-main-layout {
        grid-template-columns: 1fr;
    }

    #tool-watt-hour-calculator .whc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #tool-watt-hour-calculator {
        padding: 18px;
        max-width: 100%;
        overflow-x: hidden;
    }

    #tool-watt-hour-calculator .whc-title-wrap,
    #tool-watt-hour-calculator .whc-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    #tool-watt-hour-calculator .whc-input-grid,
    #tool-watt-hour-calculator .whc-input-grid-3,
    #tool-watt-hour-calculator .whc-formula-grid {
        grid-template-columns: 1fr;
    }

    #tool-watt-hour-calculator .whc-time-row,
    #tool-watt-hour-calculator .whc-input-row {
        grid-template-columns: 1fr;
    }

    #tool-watt-hour-calculator .whc-unit-select {
        min-height: 40px;
    }

    #tool-watt-hour-calculator .whc-table-wrap {
        overflow-x: hidden;
    }

    #tool-watt-hour-calculator .whc-table {
        min-width: 0;
        table-layout: fixed;
    }

    #tool-watt-hour-calculator .whc-table th,
    #tool-watt-hour-calculator .whc-table td {
        padding: 9px 6px;
        font-size: 14px;
        word-break: break-word;
    }

    #tool-watt-hour-calculator .whc-table td:nth-child(2) {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    #tool-watt-hour-calculator .whc-summary-grid {
        grid-template-columns: 1fr;
    }

    #tool-watt-hour-calculator .whc-action-row,
    #tool-watt-hour-calculator .whc-calculate-btn,
    #tool-watt-hour-calculator .whc-copy-btn,
    #tool-watt-hour-calculator .whc-reset-btn {
        width: 100%;
    }

    #tool-watt-hour-calculator .whc-chip-group,
    #tool-watt-hour-calculator .whc-voltage-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #tool-watt-hour-calculator .whc-preset-chip,
    #tool-watt-hour-calculator .whc-voltage-chip,
    #tool-watt-hour-calculator .whc-calculate-btn,
    #tool-watt-hour-calculator .whc-copy-btn,
    #tool-watt-hour-calculator .whc-reset-btn,
    #tool-watt-hour-calculator .whc-input,
    #tool-watt-hour-calculator .whc-unit-select,
    #tool-watt-hour-calculator .whc-unit-input {
        transition: none !important;
    }

    #tool-watt-hour-calculator .whc-calculate-btn:hover,
    #tool-watt-hour-calculator .whc-copy-btn:hover,
    #tool-watt-hour-calculator .whc-reset-btn:hover {
        transform: none !important;
    }
}
