/* WordFlow embedded word counter — white, minimal UI (mounted under #wordflow-counter) */

[data-wordflow-counter],
#wordflow-counter {
    display: block;
    max-width: 100%;
}

.wf-mounted {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    color: #171717;
}

.wf-ec,
.wf-ec * {
    box-sizing: border-box;
}

.wf-ec {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.wf-ec-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1rem;
    background: linear-gradient(#fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid #f0f0f0;
}

.wf-ec-bar-inner {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.75rem;
}

.wf-ec-st {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.wf-ec-num {
    font-size: 1.25rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    color: #0a0a0a;
}

.wf-ec-lbl {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #737373;
}

.wf-ec-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d4d4d4;
    flex-shrink: 0;
}

.wf-ec-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wf-ec-ta {
    display: block;
    width: 100%;
    min-height: 220px;
    margin: 0;
    padding: 1rem 1.05rem 1rem;
    border: none;
    outline: none;
    resize: vertical;
    background: #ffffff;
    color: #171717;
    font: inherit;
    line-height: 1.55;
}

.wf-ec-ta::placeholder {
    color: #a3a3a3;
}

.wf-ec-ta:focus-visible {
    box-shadow:
        inset 0 0 0 2px #ffffff,
        inset 0 0 0 4px #e5e5e5;
}

.wf-ec-foot {
    padding: 0.45rem 1rem 0.55rem;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    text-align: center;
}

.wf-ec-credit {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #94a3b8;
}

.wf-ec-brand {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
    .wf-ec-brand:hover {
        color: #0f172a;
        border-bottom-color: rgba(15, 23, 42, 0.2);
    }
}

.wf-ec-brand:focus-visible {
    outline: 2px solid #94a3b8;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-color-scheme: dark) {
    .wf-mounted {
        color-scheme: light;
    }
}
