.ts-spell-field{position:relative;border-radius:12px;background:#fff;min-width:0}.ts-spell-field .ts-spell-input{position:relative;z-index:1;display:block;background:transparent!important;min-width:0}.ts-spell-mirror{position:absolute;left:0;top:0;box-sizing:border-box;border-style:solid;border-color:transparent;overflow:hidden;pointer-events:none;color:transparent!important;user-select:none}.ts-spell-text{white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;color:transparent!important}.ts-spell-error{text-decoration:underline dotted #5686d9;text-underline-offset:3px;border-radius:3px}.ts-spell-active{background:#ffe18a;text-decoration-color:#b07500;box-shadow:0 0 0 2px #ffe18a;transition:background .15s}.ts-spell-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:8px;font-size:12px;color:var(--muted,#52657d)}.ts-spell-controls label{display:inline-flex!important;align-items:center;gap:6px;font-size:12px!important;font-weight:400!important;margin:0!important;cursor:pointer}.ts-spell-controls input[type=checkbox]{width:14px!important;height:14px!important;margin:0!important;padding:0!important;accent-color:#2563eb}.ts-spell-controls button{padding:4px 8px;border:1px solid #bed4f3;border-radius:6px;background:#f0f6ff;color:#1554d1;font-size:12px;cursor:pointer}.ts-spell-controls [hidden]{display:none!important}[data-theme=dark] .ts-spell-field{background:#091b31}[data-theme=dark] .ts-spell-controls button{background:#142f50;color:#b0d1fb;border-color:#315377}[data-theme=dark] .ts-spell-active{background:#715727;box-shadow:0 0 0 2px #715727;text-decoration-color:#ffda82}

.ts-spell-single .ts-spell-text{white-space:pre;overflow-wrap:normal}.ts-spell-field{width:100%}.ts-spell-controls{padding-bottom:2px;background:var(--card,#fff)}

/* Overlay only the hovered word; the rest of the native text stays visible. */
.ts-spell-mirror{z-index:2}
.ts-spell-active,[data-theme=dark] .ts-spell-active{color:#fff!important;background:#0066ff;box-shadow:0 0 0 2px #0066ff;text-decoration-color:#fff}
.ts-spell-controls{background:transparent}
.ts-spell-controls[hidden]{display:none!important}

.ts-spell-active{animation:ts-spell-transform .55s ease both}
@keyframes ts-spell-transform{0%{box-shadow:0 0 0 1px #0066ff}55%{box-shadow:0 0 0 3px #0066ff,0 0 10px rgba(0,102,255,.3)}100%{box-shadow:0 0 0 2px #0066ff}}
@media(prefers-reduced-motion:reduce){.ts-spell-active{animation:none;transition:none}}

.ts-writing-transform{box-shadow:0 0 0 2px #0066ff,0 0 18px rgba(0,102,255,.22)!important;transition:box-shadow .2s ease}
