#whitespaceRemoverTool {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#whitespaceRemoverTool .wsr-layout-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#whitespaceRemoverTool .wsr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

#whitespaceRemoverTool .wsr-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #faf9f7;
    border: 1px solid #ebe5dc;
    border-radius: 14px;
}

#whitespaceRemoverTool .wsr-panel-span-full {
    grid-column: 1 / -1;
}

#whitespaceRemoverTool .wsr-input-panel {
    background: linear-gradient(180deg, #faf9f7 0%, #fffdfa 100%);
}

#whitespaceRemoverTool .wsr-panel-head,
#whitespaceRemoverTool .wsr-section-head,
#whitespaceRemoverTool .wsr-result-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#whitespaceRemoverTool .wsr-panel-title,
#whitespaceRemoverTool .wsr-section-head h3,
#whitespaceRemoverTool .wsr-result-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #2d2a26;
}

#whitespaceRemoverTool .wsr-panel-title i,
#whitespaceRemoverTool .wsr-section-head h3 i,
#whitespaceRemoverTool .wsr-result-title i,
#whitespaceRemoverTool .wsr-disclaimer i {
    color: #d4af37;
}

#whitespaceRemoverTool .wsr-panel-desc,
#whitespaceRemoverTool .wsr-section-head p,
#whitespaceRemoverTool .wsr-result-desc,
#whitespaceRemoverTool .wsr-hero-desc,
#whitespaceRemoverTool .wsr-disclaimer-copy {
    margin: 0;
    font-size: 14px;
    line-height: 1.68;
    color: #5f5a56;
}

#whitespaceRemoverTool .wsr-textarea-wrap,
#whitespaceRemoverTool .wsr-output-wrap {
    display: flex;
}

#whitespaceRemoverTool .wsr-textarea {
    width: 100%;
    min-height: 220px;
    padding: 16px 18px;
    border: 1px solid #e5dfd4;
    border-radius: 14px;
    background: #fff;
    color: #2d2a26;
    font-size: 14px;
    line-height: 1.68;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#whitespaceRemoverTool .wsr-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

#whitespaceRemoverTool .wsr-textarea::placeholder {
    color: #8c8579;
}

#whitespaceRemoverTool .wsr-output-textarea {
    min-height: 180px;
    background: #fffcf7;
}

#whitespaceRemoverTool .wsr-input-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#whitespaceRemoverTool .wsr-meta-pill,
#whitespaceRemoverTool .wsr-result-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eee8df;
    color: #5f5a56;
    font-size: 13px;
    line-height: 1.5;
}

#whitespaceRemoverTool .wsr-input-panel .tool-actions {
    justify-content: flex-end;
}

#whitespaceRemoverTool .wsr-hero-panel {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(255, 255, 255, 0.96) 100%);
    border-color: rgba(212, 175, 55, 0.28);
}

#whitespaceRemoverTool .wsr-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#whitespaceRemoverTool .wsr-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.14);
    color: #8e6b00;
    font-size: 12px;
    font-weight: 700;
}

#whitespaceRemoverTool .wsr-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4dac2;
    color: #6b6256;
    font-size: 12px;
    font-weight: 700;
}

#whitespaceRemoverTool .wsr-hero-main {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
    gap: 10px;
    align-items: stretch;
}

#whitespaceRemoverTool .wsr-hero-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

#whitespaceRemoverTool .wsr-hero-value {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    color: #2d2a26;
}

#whitespaceRemoverTool .wsr-hero-value strong {
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    letter-spacing: -0.04em;
}

#whitespaceRemoverTool .wsr-hero-unit {
    padding-bottom: 4px;
    font-size: 15px;
    font-weight: 700;
    color: #8c8579;
}

#whitespaceRemoverTool .wsr-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

#whitespaceRemoverTool .wsr-hero-metric,
#whitespaceRemoverTool .wsr-analysis-item,
#whitespaceRemoverTool .wsr-check-item,
#whitespaceRemoverTool .wsr-quick-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid #ece5d9;
    background: #fff;
}

#whitespaceRemoverTool .wsr-hero-label,
#whitespaceRemoverTool .wsr-analysis-label,
#whitespaceRemoverTool .wsr-check-label,
#whitespaceRemoverTool .wsr-quick-label {
    display: block;
    color: #8c8579;
    font-size: 12px;
}

#whitespaceRemoverTool .wsr-hero-metric strong,
#whitespaceRemoverTool .wsr-analysis-item strong,
#whitespaceRemoverTool .wsr-check-item strong,
#whitespaceRemoverTool .wsr-quick-value {
    display: block;
    color: #2d2a26;
    font-size: 16px;
    line-height: 1.4;
    word-break: break-word;
}

#whitespaceRemoverTool .wsr-option-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.8fr);
    gap: 10px;
    align-items: start;
}

#whitespaceRemoverTool .wsr-option-list,
#whitespaceRemoverTool .wsr-analysis-list,
#whitespaceRemoverTool .wsr-check-list {
    display: grid;
    gap: 8px;
}

#whitespaceRemoverTool .wsr-option-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#whitespaceRemoverTool .wsr-option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #ece5d9;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#whitespaceRemoverTool .wsr-option-item:hover {
    border-color: #d4af37;
    box-shadow: 0 8px 14px rgba(212, 175, 55, 0.07);
}

#whitespaceRemoverTool .wsr-option-item input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    accent-color: #c99a1a;
    flex: 0 0 auto;
}

#whitespaceRemoverTool .wsr-option-copy {
    display: grid;
    gap: 2px;
    color: #5f5a56;
    line-height: 1.5;
}

#whitespaceRemoverTool .wsr-option-copy strong {
    color: #2d2a26;
    font-size: 14px;
}

#whitespaceRemoverTool .wsr-option-copy code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #f5f0e6;
    color: #8e6b00;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
}

#whitespaceRemoverTool .wsr-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#whitespaceRemoverTool .wsr-quick-meta {
    display: block;
    color: #8c8579;
    font-size: 12px;
    line-height: 1.45;
}

#whitespaceRemoverTool .wsr-result-head {
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

#whitespaceRemoverTool .wsr-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#whitespaceRemoverTool .wsr-result-foot {
    margin-top: 12px;
}

#whitespaceRemoverTool .wsr-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #ebe5dc;
    background: #f6f3ee;
}

#whitespaceRemoverTool .wsr-disclaimer i {
    margin-top: 3px;
    font-size: 16px;
}

@media (max-width: 900px) {
    #whitespaceRemoverTool .wsr-option-layout,
    #whitespaceRemoverTool .wsr-hero-main,
    #whitespaceRemoverTool .wsr-quick-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #whitespaceRemoverTool .wsr-option-list,
    #whitespaceRemoverTool .wsr-hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    #whitespaceRemoverTool .wsr-panel {
        padding: 18px;
    }

    #whitespaceRemoverTool .wsr-dashboard-grid,
    #whitespaceRemoverTool .wsr-hero-metrics,
    #whitespaceRemoverTool .wsr-quick-grid,
    #whitespaceRemoverTool .wsr-option-list,
    #whitespaceRemoverTool .wsr-input-meta {
        grid-template-columns: minmax(0, 1fr);
    }

    #whitespaceRemoverTool .wsr-hero-top,
    #whitespaceRemoverTool .wsr-result-head {
        flex-direction: column;
        align-items: stretch;
    }

    #whitespaceRemoverTool .wsr-result-actions .tool-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #whitespaceRemoverTool .wsr-textarea {
        min-height: 180px;
        padding: 14px 15px;
    }

    #whitespaceRemoverTool .wsr-output-textarea {
        min-height: 160px;
    }

    #whitespaceRemoverTool .wsr-meta-pill,
    #whitespaceRemoverTool .wsr-result-pill {
        width: 100%;
    }

    #whitespaceRemoverTool .wsr-hero-value strong {
        font-size: 32px;
    }
}
