/* ── Tool theme ── */
.wc-teal { background-color: #26a69a; }
.wc-page { background-color: #26a69a; min-height: 60vh; padding: 24px 8px 40px; }

/* ── Stat cards ── */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.stat-num {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    transition: all 0.15s;
}
.stat-num.bump { transform: scale(1.15); }
.stat-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748b; }
.stat-sub { font-size: 10px; color: #94a3b8; margin-top: 2px; }

/* ── Textarea ── */
.wc-textarea {
    width: 100%;
    min-height: 320px;
    padding: 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: #1e293b;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Georgia', serif;
    background: #fff;
}
.wc-textarea:focus {
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38,166,154,0.12);
}
.wc-textarea::placeholder { color: #94a3b8; font-family: Arial, sans-serif; }

/* ── Tool buttons ── */
.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.tool-btn:hover { background: #26a69a; color: #fff; border-color: #26a69a; }
.tool-btn.danger:hover { background: #dc2626; border-color: #dc2626; }

/* ── Progress bar ── */
.progress-wrap { background: #f1f5f9; border-radius: 999px; height: 6px; overflow: hidden; }
.progress-bar  { height: 100%; border-radius: 999px; transition: width 0.4s ease; }

/* ── Goal indicator ── */
.goal-input {
    width: 90px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    text-align: center;
    transition: border-color 0.2s;
}
.goal-input:focus { border-color: #26a69a; }

/* ── Keyword table ── */
.kw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kw-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #64748b; padding: 8px 12px; text-align: left; border-bottom: 1.5px solid #f1f5f9; }
.kw-table td { padding: 8px 12px; border-bottom: 1px solid #f8fafc; color: #374151; }
.kw-table tr:last-child td { border-bottom: none; }
.kw-table tr:hover td { background: #f8fafc; }
.kw-bar-cell { width: 120px; }
.kw-bar-wrap { background: #f1f5f9; border-radius: 4px; height: 5px; }
.kw-bar { height: 5px; border-radius: 4px; background: #26a69a; transition: width 0.3s; }

/* ── Readability badge ── */
.read-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

/* ── Char limit warning ── */
.limit-ok   { color: #16a34a; }
.limit-warn { color: #d97706; }
.limit-over { color: #dc2626; font-weight: 700; }

/* ── Highlight mode ── */
.highlight-long sentence { background: rgba(251,191,36,0.3); border-radius: 3px; }

/* ── Copy success ── */
@keyframes flash { 0%,100%{opacity:1} 50%{opacity:0.5} }
.flash { animation: flash 0.3s ease; }