/* ===== OWN COPY of the shared theme.css + tool.css rules this tool uses (rule 171, separation plan P3, 2026-10-25) =====
   Copied from theme  by devkit/sep.js (rules that match this box in every state + the class names its own scripts add),
   every selector scoped to :where(#th-tool[data-module="word-counter"] *). The shared files no longer reach inside this box (data-own).
   Change these rules only for THIS tool, in its own chat. ===== */
/* theme.css copy */
:root:where(#th-tool[data-module="word-counter"] *){
  --bg:#FAFAFC; --surface:#FFFFFF; --surface-2:#F2F3F8; --ink:#0B1020; --muted:#5B6275; --line:#E4E6EE;
  --brand:#4338CA; --brand-2:#4F46E5; --brand-ink:#3730A3; --brand-soft:#EEF0FF; --on-brand:#FFFFFF;
  --ai:#7C3AED; --ai-ink:#6D28D9; --ai-soft:#F4EFFF; --blue:#2563EB;
  --grad:linear-gradient(135deg,#2563EB 0%,#4F46E5 45%,#7C3AED 100%);
  --warn:#9A4A07; --ok:#1B6B3A;
  --shadow:0 1px 2px rgba(11,16,32,.04),0 4px 16px rgba(11,16,32,.05);
  --shadow-lg:0 2px 4px rgba(11,16,32,.04),0 24px 60px rgba(11,16,32,.10);
  --radius:16px; --radius-sm:10px;
  --font:'Geist','Geist Variable',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --serif:'Instrument Serif',ui-serif,Georgia,serif;
  --mono:'Geist Mono','Geist Mono Variable',ui-monospace,SFMono-Regular,Menlo,monospace;
  --dot:rgba(11,16,32,.06); --glow-a:rgba(37,99,235,.14); --glow-b:rgba(124,58,237,.14);
  --stripe:rgba(11,16,32,.035);
  color-scheme:light;
}
:root[data-theme="dark"]:where(#th-tool[data-module="word-counter"] *){
  --bg:#07090F; --surface:#0E121B; --surface-2:#161B27; --ink:#EEF0F6; --muted:#9AA3B8; --line:#212738;
  --brand:#6366F1; --brand-2:#4F46E5; --brand-ink:#A5B4FC; --brand-soft:#171A36; --on-brand:#FFFFFF;
  --ai:#8B5CF6; --ai-ink:#C4B5FD; --ai-soft:#1C1733; --blue:#60A5FA;
  --grad:linear-gradient(135deg,#60A5FA 0%,#818CF8 45%,#C084FC 100%);
  --shadow:0 1px 0 rgba(255,255,255,.03) inset,0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 1px 0 rgba(255,255,255,.04) inset,0 24px 60px rgba(0,0,0,.55);
  --dot:rgba(255,255,255,.045); --glow-a:rgba(59,130,246,.22); --glow-b:rgba(139,92,246,.24);
  --stripe:rgba(255,255,255,.035);
  color-scheme:dark;
}@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]):where(#th-tool[data-module="word-counter"] *){
  --bg:#07090F; --surface:#0E121B; --surface-2:#161B27; --ink:#EEF0F6; --muted:#9AA3B8; --line:#212738;
  --brand:#6366F1; --brand-2:#4F46E5; --brand-ink:#A5B4FC; --brand-soft:#171A36; --on-brand:#FFFFFF;
  --ai:#8B5CF6; --ai-ink:#C4B5FD; --ai-soft:#1C1733; --blue:#60A5FA;
  --grad:linear-gradient(135deg,#60A5FA 0%,#818CF8 45%,#C084FC 100%);
  --shadow:0 1px 0 rgba(255,255,255,.03) inset,0 1px 2px rgba(0,0,0,.5),0 8px 24px rgba(0,0,0,.35);
  --shadow-lg:0 1px 0 rgba(255,255,255,.04) inset,0 24px 60px rgba(0,0,0,.55);
  --dot:rgba(255,255,255,.045); --glow-a:rgba(59,130,246,.22); --glow-b:rgba(139,92,246,.24);
  --stripe:rgba(255,255,255,.035);
  color-scheme:dark;
  }}
:root:where(#th-tool[data-module="word-counter"] *){
  /* spacing scale (4 px steps) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-7:32px; --sp-8:40px;
  /* what the spacing is for */
  --gap-label:6px;      /* label → its box, box → its hint line */
  --gap-msg:12px;       /* v1.40: a box → the message or hint under it — the smallest space between two different things */
  --gap-min:8px;        /* v1.40: the absolute minimum between any two boxes, buttons or messages (the spacing check fails below it) */
  --gap-item:12px;      /* items in a list, choice cards in a box */
  --gap-grid:16px;      /* boxes/cards side by side */
  --gap-block:20px;     /* blocks inside one part of a tool (input → result → check) */
  --gap-section:22px;   /* main parts of a tool card */
  --sec-pad:26px;       /* space above a new part that starts with a divider line */
  --pad-box:16px;       /* inside a bordered box */
  --pad-card:12px 14px; /* inside a small choice card */
  --pad-result:24px 26px; /* inside the big result panel */
  --r-box:16px; --r-card:12px; --r-btn:12px; --r-pill:999px;
  --tap:44px;           /* smallest thing a finger has to hit */
  --h-btn:44px;         /* v1.39.1 THE button height (owner rule: every normal button is this tall — never set a custom height) */
  --h-btn-sm:36px;      /* small buttons in tool toolbars (.btn.sm) */
  --pad-field:14px 16px; /* inside every text box and output panel: text never touches a border */
  /* type scale = the Word Counter / Case Converter / KM to Miles standard; never bigger */
  --fs-meta:12.5px;     /* counts, small notes */
  --fs-label:13px;      /* field labels, box titles, hints */
  --fs-sm:14px;         /* checklist lines, choice text */
  --fs-body:15px;       /* sentences, buttons, part titles */
  --fs-input:20px;      /* the main text box */
  --fs-slug:22px;       /* one-line mono result */
  --fs-result:clamp(30px,3vw,36px); /* big number result (v1.37: was up to 48 px — owner: too big) */
  /* v1.37 ToolHa type standard (owner 2026-09-30): nothing bigger than these, no text smaller than --fs-min */
  --fs-hero:clamp(36px,5vw,60px);  /* ONE big hero title per landing page (home, All tools, A–Z, company pages) */
  --fs-h1:clamp(30px,3.4vw,42px);  /* page / tool title */
  --fs-h2:clamp(22px,2.2vw,28px);  /* section titles */
  --fs-h3:clamp(17px,1.5vw,19px);  /* v1.41.3: a smaller title for an optional part inside a tool (between --fs-h2 and a box title) */
  --fs-min:12.5px;                 /* smallest normal text (notes, units, counts) */
  --fs-tag:12px;                   /* only UPPERCASE labels, badges and number pins */
  --lh-tight:1.35; --lh-text:1.5;
}@media (width <= 768px){
:root:where(#th-tool[data-module="word-counter"] *){--pad-field:12px 14px;--gap-grid:14px;--gap-block:16px;--gap-section:18px;--sec-pad:22px;--pad-box:14px;--pad-result:20px;--fs-slug:19px}}
*:where(#th-tool[data-module="word-counter"] *){box-sizing:border-box}
html:where(#th-tool[data-module="word-counter"] *){-webkit-text-size-adjust:100%}
body:where(#th-tool[data-module="word-counter"] *){margin:0;font-family:var(--font);background:var(--bg);color:var(--ink);font-size:16px;line-height:1.55;-webkit-font-smoothing:antialiased}
a:where(#th-tool[data-module="word-counter"] *){color:var(--brand-ink);text-decoration:none}
a:hover:where(#th-tool[data-module="word-counter"] *){text-decoration:underline;text-underline-offset:3px}
h1:where(#th-tool[data-module="word-counter"] *),h2:where(#th-tool[data-module="word-counter"] *),h3:where(#th-tool[data-module="word-counter"] *){line-height:1.1;letter-spacing:-.02em;margin:0}
p:where(#th-tool[data-module="word-counter"] *){margin:0}
button:where(#th-tool[data-module="word-counter"] *),input:where(#th-tool[data-module="word-counter"] *),select:where(#th-tool[data-module="word-counter"] *),textarea:where(#th-tool[data-module="word-counter"] *){font:inherit;color:inherit}
:focus-visible:where(#th-tool[data-module="word-counter"] *){outline:3px solid color-mix(in srgb,var(--ai) 55%,transparent);outline-offset:2px;border-radius:6px}
.sr:where(#th-tool[data-module="word-counter"] *){position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wrap:where(#th-tool[data-module="word-counter"] *){max-width:1280px;margin:0 auto;padding:0 32px}
.btn:where(#th-tool[data-module="word-counter"] *){height:var(--h-btn);padding:0 18px;border-radius:12px;border:1px solid transparent;display:inline-flex;align-items:center;gap:8px;font-weight:650;cursor:pointer;font-size:15px}
:root:where(#th-tool[data-module="word-counter"] *){
  --btn-grad:linear-gradient(120deg,var(--brand-2) 0%,var(--ai) 100%);
  /* v1.35 main typing box (see tool.css "v1.35"): same height as the homepage search box (76 px, 72 px on phones) */
  --h-main:76px;--r-main:20px;
  --field-ring:linear-gradient(120deg,var(--brand-2) 0%,var(--ai) 100%);
  --field-glow:0 6px 22px -10px color-mix(in srgb,var(--ai) 45%,transparent);
  --field-glow-hover:0 8px 28px -10px color-mix(in srgb,var(--ai) 60%,transparent);
  --btn-grad-hover:linear-gradient(120deg,color-mix(in srgb,var(--brand-2) 40%,var(--ai)) 0%,color-mix(in srgb,var(--ai) 88%,#fff) 100%);
  --btn-glow:0 6px 18px -9px color-mix(in srgb,var(--ai) 60%,transparent);
  --btn-glow-hover:0 10px 26px -9px color-mix(in srgb,var(--ai) 85%,transparent);
  --btn-glow-press:0 3px 10px -6px color-mix(in srgb,var(--ai) 70%,transparent);
  --btn2-border:color-mix(in srgb,var(--brand) 24%,var(--line));
  --btn2-border-hover:color-mix(in srgb,var(--brand) 55%,var(--line));
  --btn2-bg-hover:color-mix(in srgb,var(--brand) 5%,var(--surface));
  --btn2-shade:0 8px 20px -12px color-mix(in srgb,var(--brand) 60%,transparent);
}
.btn:where(#th-tool[data-module="word-counter"] *){transition:border-color .3s ease,background-color .3s ease,box-shadow .3s ease,color .2s ease}
.btn-brand:where(#th-tool[data-module="word-counter"] *){position:relative;isolation:isolate;border-color:transparent;color:#fff;background:var(--btn-grad) border-box;box-shadow:var(--btn-glow);filter:none}
.btn-brand:where(#th-tool[data-module="word-counter"] *)::before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;pointer-events:none;background:var(--btn-grad-hover);opacity:0;transition:opacity .35s ease}
.btn-brand:hover:where(#th-tool[data-module="word-counter"] *){text-decoration:none;filter:none;box-shadow:var(--btn-glow-hover)}
.btn-brand:hover:where(#th-tool[data-module="word-counter"] *)::before{opacity:1}
.btn-brand:active:where(#th-tool[data-module="word-counter"] *){box-shadow:var(--btn-glow-press)}
.btn-ghost:where(#th-tool[data-module="word-counter"] *){background:var(--surface);border-color:var(--btn2-border);color:var(--ink);box-shadow:0 1px 2px rgba(11,16,32,.04)}
.btn-ghost:hover:where(#th-tool[data-module="word-counter"] *){text-decoration:none;background:var(--btn2-bg-hover);border-color:var(--btn2-border-hover);box-shadow:var(--btn2-shade)}
.btn[disabled]:where(#th-tool[data-module="word-counter"] *)::before{display:none}@media (prefers-reduced-motion:reduce){
.btn:where(#th-tool[data-module="word-counter"] *),.btn:where(#th-tool[data-module="word-counter"] *)::before{transition:none}}
body:has(>.hdr):where(#th-tool[data-module="word-counter"] *)::before{content:"";position:absolute;left:0;right:0;top:0;height:760px;z-index:-1;pointer-events:none;background-image:linear-gradient(var(--dot) 1px,transparent 1px),linear-gradient(90deg,var(--dot) 1px,transparent 1px);background-size:56px 56px;background-position:50% -1px;-webkit-mask-image:radial-gradient(ellipse 75% 100% at 50% 0%,#000 35%,transparent 80%);mask-image:radial-gradient(ellipse 75% 100% at 50% 0%,#000 35%,transparent 80%)}@media (width <= 768px){
body:has(>.hdr):where(#th-tool[data-module="word-counter"] *)::before{height:560px;-webkit-mask-image:linear-gradient(#000 45%,transparent);mask-image:linear-gradient(#000 45%,transparent)}}@media print{
body:where(#th-tool[data-module="word-counter"] *)::before{display:none!important;content:none!important}}
.card:where(#th-tool[data-module="word-counter"] *){background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.inp:where(#th-tool[data-module="word-counter"] *){height:46px;border:1px solid var(--line);border-radius:12px;padding:0 14px;background:var(--surface);font-size:16px;width:100%}
textarea.inp:where(#th-tool[data-module="word-counter"] *){height:auto;padding:var(--pad-field);line-height:var(--lh-text)}
.inp:focus:where(#th-tool[data-module="word-counter"] *){outline:none;border-color:var(--ai);box-shadow:0 0 0 4px color-mix(in srgb,var(--ai) 18%,transparent)}
select.inp:where(#th-tool[data-module="word-counter"] *){appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 18px) 20px,calc(100% - 13px) 20px;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}@media (width <= 1024px){
.wrap:where(#th-tool[data-module="word-counter"] *){padding:0 18px}}@media (width <= 768px){
body:where(#th-tool[data-module="word-counter"] *){padding-bottom:68px}}@media (width <= 576px){
:root:where(#th-tool[data-module="word-counter"] *){--h-main:72px}}
[hidden]:where(#th-tool[data-module="word-counter"] *){display:none!important}
.wc-area:where(#th-tool[data-module="word-counter"] *){height:220px;padding:14px 16px;font-size:16px;resize:vertical;line-height:1.6}
:root:where(#th-tool[data-module="word-counter"] *){--acc0:#7C3AED;--acc1:#2563EB;--acc2:#0D9488;--acc3:#D97706;--acc4:#DB2777;--acc5:#059669}
:root[data-theme="dark"]:where(#th-tool[data-module="word-counter"] *){--acc0:#8B5CF6;--acc1:#60A5FA;--acc2:#2DD4BF;--acc3:#FBBF24;--acc4:#F472B6;--acc5:#34D399}@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]):where(#th-tool[data-module="word-counter"] *){--acc0:#8B5CF6;--acc1:#60A5FA;--acc2:#2DD4BF;--acc3:#FBBF24;--acc4:#F472B6;--acc5:#34D399}}
small:where(#th-tool[data-module="word-counter"] *){font-size:max(var(--fs-min),.85em)}
.btn:not(.tool-actions .btn):where(#th-tool[data-module="word-counter"] *){height:auto!important;min-height:var(--h-btn);padding-top:8px;padding-bottom:8px;line-height:1.25}
.btn.sm:not(.tool-actions .btn):where(#th-tool[data-module="word-counter"] *){height:auto!important;min-height:var(--h-btn-sm);padding-top:6px;padding-bottom:6px}
html:where(#th-tool[data-module="word-counter"] *),body:where(#th-tool[data-module="word-counter"] *){overflow-x:clip}@supports (appearance:base-select){
html select:not([multiple]):not([size]):where(#th-tool[data-module="word-counter"] *),html select:not([multiple]):not([size]):where(#th-tool[data-module="word-counter"] *)::picker(select){appearance:base-select}
html select:not([multiple]):not([size]):where(#th-tool[data-module="word-counter"] *){align-items:center}
html select:not([multiple]):not([size]):where(#th-tool[data-module="word-counter"] *)::picker-icon{display:none}
html select:not([multiple]):not([size]):where(#th-tool[data-module="word-counter"] *)::picker(select){
    box-sizing:border-box;min-inline-size:anchor-size(self-inline);
    max-inline-size:min(calc(100% - 16px),max(anchor-size(self-inline),20rem));
    max-block-size:min(24rem,calc(100dvh - 16px));overflow:auto;overscroll-behavior:contain;
    position-area:var(--th-pick-area,block-end span-all);justify-self:anchor-center;margin:4px 8px;padding:4px;border:1px solid var(--line);border-radius:12px;
    background:var(--surface);color:var(--ink);box-shadow:0 12px 32px rgba(15,23,42,.18);
    position-try-order:normal;position-try-fallbacks:flip-block,--th-pick-fit}
html select:not([multiple]):not([size]) option:where(#th-tool[data-module="word-counter"] *){
    padding:8px 10px;border-radius:8px;white-space:normal;overflow-wrap:anywhere;line-height:1.35;gap:8px;min-block-size:36px}
html select:not([multiple]):not([size]) option:is(:hover,:focus-visible):where(#th-tool[data-module="word-counter"] *){background:color-mix(in srgb,var(--brand) 10%,transparent);outline:none}
html select:not([multiple]):not([size]) option:checked:where(#th-tool[data-module="word-counter"] *){background:color-mix(in srgb,var(--brand) 16%,transparent);color:var(--brand-ink);font-weight:600}
html select:not([multiple]):not([size]) option:disabled:where(#th-tool[data-module="word-counter"] *){opacity:.5}
html select:not([multiple]):not([size]) optgroup:where(#th-tool[data-module="word-counter"] *){font-weight:700;padding-block:4px}
html select:not([multiple]):not([size]) option:where(#th-tool[data-module="word-counter"] *)::checkmark{color:var(--brand-ink)}}
/* tool.css copy */
:root:where(#th-tool[data-module="word-counter"] *){--h-drop:17.5rem}
.t-drop:where(#th-tool[data-module="word-counter"] *){position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--gap-item);min-height:var(--h-drop);padding:var(--pad-result);border:2px dashed color-mix(in srgb,var(--brand) 45%,var(--line));border-radius:var(--r-card);background:color-mix(in srgb,var(--brand) 4%,var(--surface));text-align:center;cursor:pointer;transition:border-color .15s ease,background-color .15s ease,box-shadow .15s ease}
.t-drop[hidden]:where(#th-tool[data-module="word-counter"] *){display:none}
.t-drop:hover:where(#th-tool[data-module="word-counter"] *),.t-drop.is-drag:where(#th-tool[data-module="word-counter"] *){border-color:var(--brand);border-style:solid;background:color-mix(in srgb,var(--brand) 10%,var(--surface))}
.t-drop:focus-visible:where(#th-tool[data-module="word-counter"] *){outline:none;border-color:var(--brand);border-style:solid;box-shadow:var(--field-glow-hover)}
.tool:where(#th-tool[data-module="word-counter"] *){padding:24px;display:flex;flex-direction:column;gap:18px;position:relative;border-radius:24px}
.tool:where(#th-tool[data-module="word-counter"] *)::before{content:"";position:absolute;inset:-1px;border-radius:25px;padding:1px;background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 55%,transparent),transparent 35%,transparent 65%,color-mix(in srgb,var(--ai) 55%,transparent));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.inp.big:where(#th-tool[data-module="word-counter"] *){height:58px;font-size:20px;font-weight:600;border-radius:14px}
select.inp.big:where(#th-tool[data-module="word-counter"] *){background-position:calc(100% - 20px) 26px,calc(100% - 15px) 26px}@media (width <= 1024px){
.tool:where(#th-tool[data-module="word-counter"] *){padding:16px}}
.tool-zone:where(#th-tool[data-module="word-counter"] *){padding-bottom:8px}
.tool:where(#th-tool[data-module="word-counter"] *){padding:22px 24px 20px;gap:16px}
.inp.sm:where(#th-tool[data-module="word-counter"] *){height:36px;font-size:14px;padding:0 34px 0 12px;width:auto;border-radius:10px;background-position:calc(100% - 16px) 16px,calc(100% - 11px) 16px}
.btn.sm:where(#th-tool[data-module="word-counter"] *){height:var(--h-btn-sm);padding:0 12px;font-size:14px;border-radius:10px}
#th-tool .t-fullrow:where(#th-tool[data-module="word-counter"] *){grid-column:1/-1!important;flex:1 1 100%!important;max-width:100%!important;min-width:0}
#th-tool .t-selw:where(#th-tool[data-module="word-counter"] *){display:contents}
#th-tool .t-selw.on:where(#th-tool[data-module="word-counter"] *){display:grid;min-width:0;max-width:100%}
#th-tool .t-selw.on>select:where(#th-tool[data-module="word-counter"] *){grid-area:1/1;width:100%!important;max-width:100%!important;height:auto!important;color:transparent!important;-webkit-text-fill-color:transparent;text-shadow:none}
#th-tool .t-selw.on>select option:where(#th-tool[data-module="word-counter"] *){color:var(--ink);-webkit-text-fill-color:var(--ink)}
#th-tool .t-selt:where(#th-tool[data-module="word-counter"] *){display:none}
#th-tool .t-selw.on>.t-selt:where(#th-tool[data-module="word-counter"] *){display:block;grid-area:1/1;align-self:center;min-width:0;pointer-events:none;white-space:normal;overflow-wrap:anywhere;text-align:start;z-index:1}
#th-tool .t-fullrow select:where(#th-tool[data-module="word-counter"] *),#th-tool select.t-fullrow:where(#th-tool[data-module="word-counter"] *){width:100%;max-width:100%}
#th-tool:where(#th-tool[data-module="word-counter"] *){overflow-wrap:break-word}@media (width <= 576px){
.tool:where(#th-tool[data-module="word-counter"] *){padding:16px}}
.tool-hero:where(#th-tool[data-module="word-counter"] *){position:relative;overflow-x:clip;padding-bottom:30px}
.tool-hero:where(#th-tool[data-module="word-counter"] *)::after{content:"";position:absolute;left:50%;top:120px;width:900px;max-width:100%;height:360px;transform:translateX(-50%);background:radial-gradient(closest-side at 35% 50%,var(--glow-a),transparent 70%),radial-gradient(closest-side at 65% 50%,var(--glow-b),transparent 70%);filter:blur(24px);opacity:.8;pointer-events:none}
.tool-hero>.wrap:where(#th-tool[data-module="word-counter"] *){position:relative;z-index:1}
.tool-zone .tool:where(#th-tool[data-module="word-counter"] *){max-width:1040px;margin:0 auto;background:var(--surface);box-shadow:var(--shadow-lg)}
.tool-zone .tool:where(#th-tool[data-module="word-counter"] *){transition:box-shadow .25s}
.tool-zone .tool:focus-within:where(#th-tool[data-module="word-counter"] *){box-shadow:var(--shadow-lg),0 0 0 4px color-mix(in srgb,var(--brand) 14%,transparent)}
.wcx:where(#th-tool[data-module="word-counter"] *){display:flex;flex-direction:column;gap:var(--gap-block)}
.wcx-top:where(#th-tool[data-module="word-counter"] *){display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.wcx-save:where(#th-tool[data-module="word-counter"] *){display:inline-flex;align-items:center;gap:7px;font-size:13.5px;color:var(--muted);cursor:pointer}
.wcx-save input:where(#th-tool[data-module="word-counter"] *){width:16px;height:16px;accent-color:var(--brand)}
.wcx .wc-area:where(#th-tool[data-module="word-counter"] *){height:240px;border-radius:16px;background:var(--bg);font-size:16.5px;line-height:1.65}
.wcx-bar:where(#th-tool[data-module="word-counter"] *){display:flex;align-items:center;gap:12px;font-size:13.5px;color:var(--muted);margin-top:-4px}
.wcx-bar b:where(#th-tool[data-module="word-counter"] *){color:var(--ink)}
.wcx-meter:where(#th-tool[data-module="word-counter"] *){flex:1;height:8px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.wcx-meter i:where(#th-tool[data-module="word-counter"] *){display:block;height:100%;width:0;border-radius:inherit;background:var(--grad);transition:width .25s}
.wcx-bar .bad:where(#th-tool[data-module="word-counter"] *){color:#DC2626;font-weight:700}
.wcx-stats:where(#th-tool[data-module="word-counter"] *){display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px}
.wcx-cell:where(#th-tool[data-module="word-counter"] *){padding:12px 12px 10px;border-radius:14px;background:var(--surface-2);display:flex;flex-direction:column;gap:var(--gap-label);min-width:0}
.wcx-cell small:where(#th-tool[data-module="word-counter"] *){font-size:12px;color:var(--muted);font-weight:650}@container tool (width <= 22.5rem){
.wcx-stats>.wcx-cell:not(.big):where(#th-tool[data-module="word-counter"] *){grid-column:span 3}
.wcx-stats>.wcx-cell:not(.big):nth-last-child(1):nth-child(odd):where(#th-tool[data-module="word-counter"] *){grid-column:1/-1}}
.wcx-cell b:where(#th-tool[data-module="word-counter"] *){font-size:20px;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.wcx-cell em:where(#th-tool[data-module="word-counter"] *){font-style:normal;font-size:11.5px;color:var(--muted)}
.wcx-cell.big:where(#th-tool[data-module="word-counter"] *){background:linear-gradient(135deg,var(--brand-soft),var(--ai-soft))}
.wcx-cell.big b:where(#th-tool[data-module="word-counter"] *){font-size:28px;color:var(--brand-ink)}
.wcx-seg:where(#th-tool[data-module="word-counter"] *){display:inline-flex;padding:3px;border-radius:12px;background:var(--surface-2)}
.wcx-seg button:where(#th-tool[data-module="word-counter"] *){border:0;background:none;padding:6px 12px;border-radius:9px;font:650 13px var(--font);color:var(--muted);cursor:pointer}
.wcx-seg button[aria-pressed="true"]:where(#th-tool[data-module="word-counter"] *){background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}@container tool (width <= 36rem){
.wcx-stats:where(#th-tool[data-module="word-counter"] *){grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--gap-min,8px)}
.wcx-cell:where(#th-tool[data-module="word-counter"] *){grid-column:span 2;padding:9px 10px 8px}
.wcx-cell.big:where(#th-tool[data-module="word-counter"] *){grid-column:span 3}
.wcx-cell b:where(#th-tool[data-module="word-counter"] *){font-size:16px}
.wcx-cell.big b:where(#th-tool[data-module="word-counter"] *){font-size:24px}
.wcx-cell small:where(#th-tool[data-module="word-counter"] *){font-size:11px}
.wcx-cell em:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx .wc-area:where(#th-tool[data-module="word-counter"] *){height:200px}}
.wcx-scope:where(#th-tool[data-module="word-counter"] *){display:inline-flex;max-width:100%;align-items:center;gap:4px;padding:4px 10px;border-radius:999px;background:var(--surface-2);transition:background .2s,color .2s}
.wcx-scope b:where(#th-tool[data-module="word-counter"] *){color:var(--ink);font-weight:650}
.wcx-scope.on:where(#th-tool[data-module="word-counter"] *){background:var(--brand-soft);color:var(--brand-ink)}
.wcx-scope.on b:where(#th-tool[data-module="word-counter"] *){color:var(--brand-ink)}
.wcx-tip:where(#th-tool[data-module="word-counter"] *){position:relative;display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;border:1px solid var(--line);background:var(--surface);cursor:help;outline:0}
.wcx-tip i:where(#th-tool[data-module="word-counter"] *){font:italic 700 12px/1 var(--serif);color:var(--brand-ink)}
.wcx-tip:focus-visible:where(#th-tool[data-module="word-counter"] *){box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 35%,transparent)}
.wcx-tipbox:where(#th-tool[data-module="word-counter"] *){position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%,4px);width:300px;max-width:78vw;padding:12px 14px;border-radius:12px;background:var(--ink);color:var(--bg);font-size:13px;line-height:1.5;box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transition:opacity .15s,transform .15s;z-index:30;pointer-events:none}
.wcx-tipbox:where(#th-tool[data-module="word-counter"] *)::after{content:"";position:absolute;left:50%;top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:var(--ink)}
.wcx-tip:hover .wcx-tipbox:where(#th-tool[data-module="word-counter"] *),.wcx-tip:focus .wcx-tipbox:where(#th-tool[data-module="word-counter"] *){opacity:1;visibility:visible;transform:translate(-50%,0)}
.wcx-print:where(#th-tool[data-module="word-counter"] *){display:none}@container tool (width <= 36rem){
.wcx-tipbox:where(#th-tool[data-module="word-counter"] *){left:auto;right:-60px;transform:translateY(4px)}
.wcx-tip:hover .wcx-tipbox:where(#th-tool[data-module="word-counter"] *),.wcx-tip:focus .wcx-tipbox:where(#th-tool[data-module="word-counter"] *){transform:none}
.wcx-tipbox:where(#th-tool[data-module="word-counter"] *)::after{left:auto;right:64px}}@media print{
html:root:where(#th-tool[data-module="word-counter"] *),html:root[data-theme="dark"]:where(#th-tool[data-module="word-counter"] *),html:root:not([data-theme="light"]):where(#th-tool[data-module="word-counter"] *){--bg:#fff;--surface:#fff;--surface-2:#F3F4F6;--ink:#111;--muted:#4B5563;--line:#D1D5DB;--brand-soft:#EEF0FF;--brand-ink:#3730A3;color-scheme:light}
body:where(#th-tool[data-module="word-counter"] *){background:#fff!important;color:#111}
dialog:where(#th-tool[data-module="word-counter"] *){display:none!important}
.tool-hero:where(#th-tool[data-module="word-counter"] *){background:none!important;padding:0!important}
.tool:where(#th-tool[data-module="word-counter"] *){box-shadow:none!important;border:1px solid #D1D5DB!important;break-inside:auto}
.tool :is(tr,li,figure,img,svg,canvas,.t-msg,.t-btnrow,.uc-thermo):where(#th-tool[data-module="word-counter"] *){break-inside:avoid}
.tool :is(h2,h3,h4,legend,summary,label,thead,.t-bx-h,.t-sec-h):where(#th-tool[data-module="word-counter"] *){break-after:avoid}
body:where(#th-tool[data-module="word-counter"] *){padding-bottom:0!important}
.tool-zone:where(#th-tool[data-module="word-counter"] *){padding-bottom:0!important}
.tool .btn:where(#th-tool[data-module="word-counter"] *),.wcx-top:where(#th-tool[data-module="word-counter"] *),.wcx-seg:where(#th-tool[data-module="word-counter"] *){display:none!important}
.wcx .wc-area:where(#th-tool[data-module="word-counter"] *){display:none!important}
.wcx-print:where(#th-tool[data-module="word-counter"] *){display:block!important;white-space:pre-wrap;font-size:13pt;line-height:1.6;padding:12px 0;border-bottom:1px solid #D1D5DB}
details:not([open])>*:not(summary):where(#th-tool[data-module="word-counter"] *){display:none}
a:where(#th-tool[data-module="word-counter"] *){color:inherit;text-decoration:none}}
.wcx-grp:where(#th-tool[data-module="word-counter"] *){display:inline-flex;flex-wrap:wrap;max-width:100%;align-items:center;gap:4px;padding:4px;border-radius:14px;background:var(--surface-2);border:1px solid var(--line)}
.wcx-grp .btn:where(#th-tool[data-module="word-counter"] *){height:36px;padding:0 14px;border-radius:10px;font-size:13.5px;gap:7px;border-color:transparent;background:transparent;box-shadow:none}
.wcx-grp .btn-ghost:hover:where(#th-tool[data-module="word-counter"] *){background:var(--btn2-bg-hover);border-color:var(--btn2-border-hover);box-shadow:var(--btn2-shade)}
.wcx-grp .btn-brand:where(#th-tool[data-module="word-counter"] *){background:var(--btn-grad) border-box;border-color:transparent;color:#fff;box-shadow:var(--btn-glow)}
.wcx-grp .btn-brand:hover:where(#th-tool[data-module="word-counter"] *){box-shadow:var(--btn-glow-hover)}
.wcx-grp .btn[disabled]:where(#th-tool[data-module="word-counter"] *){opacity:.4}
.wcx-grp select:where(#th-tool[data-module="word-counter"] *){height:36px;border-radius:10px;border-color:transparent;background-color:var(--surface)}
.wcx-edit:where(#th-tool[data-module="word-counter"] *){margin-left:auto}@container tool (width <= 36rem){
.wcx-grp:where(#th-tool[data-module="word-counter"] *){flex-shrink:0;scroll-snap-align:start}
.wcx-grp .btn:where(#th-tool[data-module="word-counter"] *){height:38px;padding:0 13px}}
.wcx-top:where(#th-tool[data-module="word-counter"] *){justify-content:flex-start;gap:10px 14px}
.wcx-top .wcx-save:where(#th-tool[data-module="word-counter"] *){margin-left:auto}@container tool (width <= 36rem){
.wcx-top .wcx-save:where(#th-tool[data-module="word-counter"] *){margin-left:0}}
.wcx-top .wcx-files:where(#th-tool[data-module="word-counter"] *){padding:3px}
.wcx-top .wcx-files .btn:where(#th-tool[data-module="word-counter"] *){height:34px;padding:0 12px}
.wcx-drop .wc-area:where(#th-tool[data-module="word-counter"] *){outline:3px dashed var(--brand);outline-offset:-6px;background:var(--brand-soft)}
.wcx-busy .wc-area:where(#th-tool[data-module="word-counter"] *){opacity:.55;pointer-events:none}@container tool (width <= 36rem){
.wcx-top .wcx-files:where(#th-tool[data-module="word-counter"] *){width:100%;justify-content:space-between}
.wcx-top .wcx-files .btn:where(#th-tool[data-module="word-counter"] *){flex:1;padding:0 8px;justify-content:center}}@media print{
.tool:where(#th-tool[data-module="word-counter"] *)::before,.tool:where(#th-tool[data-module="word-counter"] *)::after,.tool-hero:where(#th-tool[data-module="word-counter"] *)::after{display:none!important;content:none!important}}
.wcx-files .btn:where(#th-tool[data-module="word-counter"] *){white-space:nowrap}
.wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){padding:3px}
.wcx-top .wcx-in .btn:where(#th-tool[data-module="word-counter"] *){height:34px;padding:0 12px;white-space:nowrap}@container tool (width <= 36rem){
.wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){width:auto;flex:0 0 auto}
.wcx-top .wcx-files:where(#th-tool[data-module="word-counter"] *){width:auto;flex:1 1 auto;min-width:min-content}}
.wcx-px:where(#th-tool[data-module="word-counter"] *){color:var(--muted);font-weight:500}@container tool (width <= 36rem){
.wcx-top .wcx-save:where(#th-tool[data-module="word-counter"] *){width:100%}
.wcx-top .wcx-files .btn:where(#th-tool[data-module="word-counter"] *){min-width:0;padding:0 6px;font-size:13px}
.wcx-top .wcx-in .btn:where(#th-tool[data-module="word-counter"] *){padding:0 10px;font-size:13px}}
.wcx-top .wcx-save:where(#th-tool[data-module="word-counter"] *){margin-left:auto}@container tool (width <= 36rem){
.wcx-top .wcx-save:where(#th-tool[data-module="word-counter"] *){margin-left:0}}
.wcx-scopebar:where(#th-tool[data-module="word-counter"] *){display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);margin-bottom:-4px}@media print{
.wcx-scopebar:where(#th-tool[data-module="word-counter"] *){display:none!important}}@container tool (width <= 36rem){
.wcx-scopebar .wcx-tipbox:where(#th-tool[data-module="word-counter"] *){left:-150px;right:auto;transform:translateY(4px)}
.wcx-scopebar .wcx-tip:hover .wcx-tipbox:where(#th-tool[data-module="word-counter"] *),.wcx-scopebar .wcx-tip:focus .wcx-tipbox:where(#th-tool[data-module="word-counter"] *){transform:none}
.wcx-scopebar .wcx-tipbox:where(#th-tool[data-module="word-counter"] *)::after{left:156px;right:auto}}@media print{
.wcx-print:where(#th-tool[data-module="word-counter"] *){orphans:3;widows:3}}
.sp-chk:where(#th-tool[data-module="word-counter"] *){display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--ink);font-weight:550}
.sp-chk input:where(#th-tool[data-module="word-counter"] *){width:16px;height:16px;accent-color:var(--brand);flex:0 0 16px}
.sp-chk:has(input:disabled):where(#th-tool[data-module="word-counter"] *){opacity:.5;cursor:default}
.wcx-shared:where(#th-tool[data-module="word-counter"] *){display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:10px 12px 10px 14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--brand) 35%,var(--line));background:var(--brand-soft);color:var(--brand-ink);font-size:14px;font-weight:550}
.wcx-shared[hidden]:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-shared span:where(#th-tool[data-module="word-counter"] *){flex:1;min-width:200px}
.wcx-shared .btn:where(#th-tool[data-module="word-counter"] *){height:32px;background:var(--surface)}
.wcx-shared-x:where(#th-tool[data-module="word-counter"] *){border:0;background:none;color:inherit;font-size:20px;line-height:1;cursor:pointer;padding:0 4px;opacity:.7}
.wcx-shared-x:hover:where(#th-tool[data-module="word-counter"] *){opacity:1}
.wcx-ro .wc-area:where(#th-tool[data-module="word-counter"] *){background:var(--surface-2);cursor:default}
.wcx-ro [data-a="mic"]:where(#th-tool[data-module="word-counter"] *),.wcx-ro [data-a="open"]:where(#th-tool[data-module="word-counter"] *),.wcx-ro [data-a="clear"]:where(#th-tool[data-module="word-counter"] *),.wcx-ro [data-a="undo"]:where(#th-tool[data-module="word-counter"] *){opacity:.45}@media print{
.wcx-shared:where(#th-tool[data-module="word-counter"] *){display:none!important}}@container tool (width > 36rem){
.wcx-top:has(.wcx-br):not(:has(.wcx-mic)) .wcx-files:where(#th-tool[data-module="word-counter"] *){order:1}
.wcx-top:has(.wcx-br):not(:has(.wcx-mic)) .wcx-in:where(#th-tool[data-module="word-counter"] *){order:2;margin:0 auto}
.wcx-top:has(.wcx-br):not(:has(.wcx-mic)) .wcx-save:where(#th-tool[data-module="word-counter"] *){order:3;margin-left:0}}
.wcx-core .wcx-stats:where(#th-tool[data-module="word-counter"] *){grid-template-columns:repeat(5,minmax(0,1fr))}
.wcx-foot:where(#th-tool[data-module="word-counter"] *){display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:0;font-size:13px;color:var(--muted)}
.wcx-foot .wcx-scope b:where(#th-tool[data-module="word-counter"] *){font-variant-numeric:tabular-nums}@container tool (width > 36rem){
.wcx-foot:where(#th-tool[data-module="word-counter"] *){flex-wrap:wrap}
.wcx-foot .wcx-scope:where(#th-tool[data-module="word-counter"] *){display:block;min-width:0;flex:0 1 auto;white-space:normal}
.wcx-foot .wcx-acts:where(#th-tool[data-module="word-counter"] *){flex:0 0 auto}}
.wcx-foot .wcx-acts:where(#th-tool[data-module="word-counter"] *){margin-left:auto;display:flex;align-items:center;gap:10px}
.wcx-foot .wcx-edit:where(#th-tool[data-module="word-counter"] *){padding:3px}
.wcx-foot .wcx-edit .btn:where(#th-tool[data-module="word-counter"] *),.wcx-foot .wcx-cc:where(#th-tool[data-module="word-counter"] *){height:34px;padding:0 12px;white-space:nowrap}
.wcx-cell .wcx-sm:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-areawrap:where(#th-tool[data-module="word-counter"] *){position:relative}
.wcx-areawrap .wc-area:where(#th-tool[data-module="word-counter"] *){display:block;width:100%}
.wcx-bigpaste:where(#th-tool[data-module="word-counter"] *){position:absolute;inset-inline:0;top:50%;margin-inline:auto;width:fit-content;transform:translateY(-50%);box-shadow:var(--shadow)}
.wcx-bigpaste[hidden]:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-core .wcx-top:where(#th-tool[data-module="word-counter"] *){justify-content:flex-start;flex-wrap:wrap;gap:10px 16px}
.wcx-core .wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){margin-left:auto}
.wcx-core .wcx-bar:where(#th-tool[data-module="word-counter"] *){margin-top:-4px}
.wcx-core .wcx-bar[hidden]:where(#th-tool[data-module="word-counter"] *){display:none}@container tool (width <= 36rem){
.wcx-core .wcx-top:where(#th-tool[data-module="word-counter"] *){align-items:flex-start;gap:8px}
.wcx-bigpaste:where(#th-tool[data-module="word-counter"] *){top:62%}
.wcx-core .wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){margin-left:0}
.wcx-core .wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){flex:0 0 auto;width:auto}}@container tool (width <= 36rem){
.wcx-core .wcx-stats:where(#th-tool[data-module="word-counter"] *){grid-template-columns:repeat(6,minmax(0,1fr))}
.wcx-foot .wcx-scope:where(#th-tool[data-module="word-counter"] *){width:100%}
.wcx-foot .wcx-more:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-foot .wcx-acts:where(#th-tool[data-module="word-counter"] *){width:100%;margin-left:0;flex-wrap:wrap;gap:8px}
.wcx-foot .wcx-edit:where(#th-tool[data-module="word-counter"] *){width:100%!important;flex:1 1 100%;display:flex;flex-wrap:wrap}
.wcx-foot .wcx-edit .btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 auto;justify-content:center;padding:0 6px;gap:5px;font-size:13px}
.wcx-foot .wcx-cc:where(#th-tool[data-module="word-counter"] *){width:100%;justify-content:center}
.wcx-cell .wcx-lg:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-cell .wcx-sm:where(#th-tool[data-module="word-counter"] *){display:inline}}
.wcx-core .wcx-top:where(#th-tool[data-module="word-counter"] *){display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 14px}
.wcx-core .wcx-tgt:where(#th-tool[data-module="word-counter"] *){display:flex;align-items:center;gap:10px;margin-right:auto;min-width:0}
.wcx-core .wcx-tl:where(#th-tool[data-module="word-counter"] *){font-size:13px;font-weight:650;color:var(--muted)}
.wcx-core .wcx-tgt .wcx-seg button:where(#th-tool[data-module="word-counter"] *){padding:7px 14px;white-space:nowrap}
.wcx-seg button[aria-checked="true"]:where(#th-tool[data-module="word-counter"] *){background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.wcx-seg button:focus-visible:where(#th-tool[data-module="word-counter"] *){outline:2px solid var(--brand);outline-offset:1px}
.wcx-core .wcx-top .wcx-in:where(#th-tool[data-module="word-counter"] *){margin-left:0;flex:0 0 auto}
.wcx-tset:where(#th-tool[data-module="word-counter"] *){display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:-4px}
.wcx-tset[hidden]:where(#th-tool[data-module="word-counter"] *){display:none}
.wcx-tset select:where(#th-tool[data-module="word-counter"] *){flex:0 1 340px;min-width:0}
.wcx-mm:where(#th-tool[data-module="word-counter"] *){display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:650;color:var(--muted);flex:0 0 auto}
.wcx-mm .inp:where(#th-tool[data-module="word-counter"] *){width:104px;flex:0 0 auto;padding-right:10px}
.wcx-unit:where(#th-tool[data-module="word-counter"] *){font-size:13.5px;color:var(--muted)}@container tool (width <= 36rem){
.wcx-core .wcx-tgt:where(#th-tool[data-module="word-counter"] *){flex:1 1 100%;margin-right:0}
.wcx-core .wcx-tl:where(#th-tool[data-module="word-counter"] *){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.wcx-core .wcx-tgt .wcx-seg:where(#th-tool[data-module="word-counter"] *){display:grid;grid-template-columns:repeat(auto-fit,minmax(max(5.5rem,calc(25% - 1px)),1fr));width:100%}
.wcx-core .wcx-tgt .wcx-seg button:where(#th-tool[data-module="word-counter"] *){flex:1 1 0;padding:8px 4px;font-size:13px}
.wcx-tset select:where(#th-tool[data-module="word-counter"] *){flex:1 1 100%;max-width:none}
.wcx-mm:where(#th-tool[data-module="word-counter"] *){flex:1 1 40%;min-width:0}
.wcx-mm .inp:where(#th-tool[data-module="word-counter"] *){flex:1;width:auto;min-width:0}
.wcx-unit:where(#th-tool[data-module="word-counter"] *){display:none}}
.wcx-core .wcx-cell em:where(#th-tool[data-module="word-counter"] *){display:block;font-style:normal;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.wcx-how:where(#th-tool[data-module="word-counter"] *){font-size:13.5px;color:var(--muted);margin-top:0}
.wcx-how summary:where(#th-tool[data-module="word-counter"] *){cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:650;list-style:none;padding:4px 0}
.wcx-how summary:where(#th-tool[data-module="word-counter"] *)::-webkit-details-marker{display:none}
.wcx-how summary:where(#th-tool[data-module="word-counter"] *)::before{content:"i";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;border:1px solid var(--line);font:700 11px/1 var(--mono,monospace)}
.wcx-how[open] summary:where(#th-tool[data-module="word-counter"] *){color:var(--ink)}
.wcx-how ul:where(#th-tool[data-module="word-counter"] *){margin:6px 0 0;padding-left:18px;display:grid;gap:5px;line-height:1.5}
.wcx-how b:where(#th-tool[data-module="word-counter"] *){color:var(--ink);font-weight:650}@container tool (width <= 36rem){
.wcx-core .wcx-cell em:where(#th-tool[data-module="word-counter"] *){display:block;font-size:11px}}
.t-stack:not([hidden]):where(#th-tool[data-module="word-counter"] *){display:flex;flex-direction:column;gap:var(--gap-block)}
input.inp.big:where(#th-tool[data-module="word-counter"] *){height:var(--h-main);min-height:var(--h-main);border-radius:var(--r-main);border:2px solid transparent;padding:0 20px;
  background:linear-gradient(var(--surface),var(--surface)) padding-box,var(--field-ring) border-box;
  box-shadow:var(--field-glow);transition:box-shadow .3s ease}
input.inp.big:hover:where(#th-tool[data-module="word-counter"] *){box-shadow:var(--field-glow-hover)}
input.inp.big:focus:where(#th-tool[data-module="word-counter"] *){border-color:transparent;box-shadow:var(--field-glow-hover),0 0 0 4px color-mix(in srgb,var(--ai) 20%,transparent)}
.tool :is(input,textarea):where(#th-tool[data-module="word-counter"] *)::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent);opacity:1;font-weight:400;font-size:max(12px,.875em);letter-spacing:0}
.wcx-cell small:where(#th-tool[data-module="word-counter"] *),.wcx-cell em:where(#th-tool[data-module="word-counter"] *){font-size:var(--fs-tag)}@container tool (width <= 36rem){
.wcx-cell small:where(#th-tool[data-module="word-counter"] *),.wcx-cell em:where(#th-tool[data-module="word-counter"] *),.wcx-core .wcx-cell em:where(#th-tool[data-module="word-counter"] *){font-size:var(--fs-tag)}}
:root:where(#th-tool[data-module="word-counter"] *){--glow-card:0 16px 36px -20px color-mix(in srgb,var(--ai) 50%,transparent),0 1px 2px rgba(11,16,32,.04)}
:where(.tool) :is(input,select,textarea):where(#th-tool[data-module="word-counter"] *){max-width:100%}@container tool (width <= 22.5rem){
select.inp:where(#th-tool[data-module="word-counter"] *){padding-right:26px;background-position:calc(100% - 13px) 20px,calc(100% - 8px) 20px}
select.inp.big:where(#th-tool[data-module="word-counter"] *){background-position:calc(100% - 13px) 26px,calc(100% - 8px) 26px}
select.inp.sm:where(#th-tool[data-module="word-counter"] *){padding-right:28px;background-position:calc(100% - 14px) 16px,calc(100% - 9px) 16px}}@container tool (width <= 22.5rem){
select.inp:where(:not(.sm)):where(#th-tool[data-module="word-counter"] *){padding-left:10px;padding-right:24px}}
#th-tool .t-btnrow:where(#th-tool[data-module="word-counter"] *){display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;margin:0}
#th-tool .t-btnrow>.btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 auto;min-width:min-content;justify-content:center;text-align:center;white-space:normal}
#th-tool .t-btnrow>label.btn:where(#th-tool[data-module="word-counter"] *){font-size:14px;font-weight:650;color:var(--ink)}@container tool (width <= 22.5rem){
#th-tool .t-btnrow>.btn.sm:where(#th-tool[data-module="word-counter"] *){padding-left:8px;padding-right:8px;gap:6px}}
#th-tool .t-btnrow:has(>.btn~.btn):not(:has(>.btn~.btn~.btn)):where(#th-tool[data-module="word-counter"] *){flex-wrap:wrap}
#th-tool .t-btnrow:has(>.btn~.btn):not(:has(>.btn~.btn~.btn))>.btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 max-content;max-width:none}
#th-tool .t-btnrow:has(>.btn~.btn~.btn):where(#th-tool[data-module="word-counter"] *){flex-wrap:wrap}
#th-tool .t-btnrow:has(>.btn~.btn~.btn)>.btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 0px;max-width:none;min-width:min(100%,max(0px,calc((480px - 100%) * 999)))}
#th-tool .t-btnrow:has(>.btn~.btn~.btn~.btn~.btn)>.btn:where(#th-tool[data-module="word-counter"] *){min-width:min(100%,max(0px,calc((600px - 100%) * 999)))}
#th-tool .t-btnrow:has(>.btn~.btn~.btn~.btn):not(:has(>.btn~.btn~.btn~.btn~.btn))>.btn:where(#th-tool[data-module="word-counter"] *){flex:0 1 auto;min-width:min(calc(50% - 4px),max(0px,calc((600px - 100%) * 999)));max-width:max(calc(50% - 4px),calc((100% - 600px) * 999))}
#th-tool .t-btnrow.t-stack>.btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 100%!important;max-width:none!important}
#th-tool .t-bal:where(#th-tool[data-module="word-counter"] *){flex-wrap:wrap!important}
#th-tool .t-bal>.btn:where(#th-tool[data-module="word-counter"] *){flex:1 1 var(--bal-w)!important;max-width:var(--bal-w)!important;min-width:0!important}
#th-tool .btn.t-noicon>svg:where(#th-tool[data-module="word-counter"] *){display:none}
#th-tool .btn:not(.sm)>svg:where(#th-tool[data-module="word-counter"] *){width:18px!important;height:18px!important}
#th-tool .btn>svg:where(#th-tool[data-module="word-counter"] *){flex:none}
#th-tool .t-btnrow.t-nat:where(#th-tool[data-module="word-counter"] *){justify-content:center}
#th-tool .t-btnrow.t-nat>.btn:where(#th-tool[data-module="word-counter"] *){flex:0 1 auto!important;max-width:100%}
#th-tool:where(#th-tool[data-module="word-counter"] *){container:tool/inline-size}
#th-tool :where(img,video,iframe):where(#th-tool[data-module="word-counter"] *){max-width:100%}
#th-tool:has(.uc-dir):where(#th-tool[data-module="word-counter"] *){-webkit-tap-highlight-color:transparent}
/* ===== end of the own copy; the tool's own rules follow ===== */
/* own tooltip (.wordcounter-tip) + toast (.wordcounter-toast): copied from theme.css .th-tt / .toast and renamed (rule 171 (j)) */
.wordcounter-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:14px;font-weight:600;opacity:0;transition:.25s;z-index:60;pointer-events:none}
.wordcounter-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.wordcounter-tip{position:fixed;z-index:9999;left:0;top:0;padding:7px 11px;border-radius:10px;background:var(--ink);color:var(--bg);font:500 12.5px/1.45 var(--font,system-ui,sans-serif);box-shadow:0 6px 24px rgba(11,16,32,.22);pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .12s,transform .12s;white-space:normal;overflow-wrap:anywhere}
.wordcounter-tip.on{opacity:1;transform:none}
.wordcounter-tip::after{content:"";position:absolute;left:var(--ax,50%);bottom:-5px;width:10px;height:10px;margin-left:-5px;background:inherit;transform:rotate(45deg);border-radius:2px}
.wordcounter-tip.below::after{bottom:auto;top:-5px}@media (prefers-reduced-motion:reduce){
.wordcounter-tip{transition:none}}@media print{
.wordcounter-toast{display:none}}
