.writer-statistics{position:relative;margin-left:auto;flex-shrink:0;color:var(--studio-text,#17243a)}
.writer-statistics>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:6px 10px;border:1px solid var(--studio-line,#dce4ee);border-radius:8px;font-size:12px;background:var(--studio-panel,#fff)}
.writer-statistics>summary::-webkit-details-marker{display:none}.writer-statistics[open]>summary{color:var(--studio-accent,#2459b8)}
.writer-statistics-panel{position:absolute;right:0;bottom:calc(100% + 8px);width:520px;max-width:calc(100vw - 24px);max-height:min(740px,80vh,var(--writer-statistics-available-height,740px));overflow:auto;padding:22px;border:1px solid var(--studio-line,#dce4ee);border-radius:16px;background:var(--studio-panel,#fff);color:var(--studio-text,#17243a);box-shadow:0 12px 40px #05060926;z-index:60;font-size:13px;line-height:1.6;white-space:normal;text-align:left;box-sizing:border-box;overscroll-behavior:contain}
.writer-statistics-panel{display:flex;flex-direction:column}.writer-statistics-panel>[data-stat-body]{min-height:0;overflow:auto;overscroll-behavior:contain}.writer-statistics-panel>:not([data-stat-body]){flex-shrink:0}
.writer-statistics-panel>header,.writer-stat-reset-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px}.writer-statistics-panel h3,.writer-stat-reset-dialog h3{font-size:17px;margin:0;line-height:1.45;letter-spacing:-.02em}
.writer-statistics-panel button,.writer-stat-reset-dialog button{font:inherit;background:var(--studio-soft,#eff4fa);color:var(--studio-text,#17243a);border:1px solid var(--studio-line,#dce4ee);padding:7px 11px;border-radius:8px;cursor:pointer;min-height:34px}.writer-statistics-panel button:disabled,.writer-stat-reset-dialog button:disabled{cursor:wait;opacity:.65}
.writer-statistics-panel :is(button,select):focus-visible,.writer-statistics>summary:focus-visible,.writer-stat-reset-dialog :is(button,select,input):focus-visible{outline:2px solid var(--studio-accent,#2459b8);outline-offset:3px}
.writer-stat-scope{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--studio-muted,#586b84);font-size:12px;margin:16px 0}
.writer-stat-scope select,.writer-stat-reset-dialog select,.writer-stat-reset-dialog input[type=date]{max-width:100%;font:inherit;color:var(--studio-text,#17243a);background:var(--studio-panel,#fff);border:1px solid var(--studio-line,#dce4ee);border-radius:8px;padding:8px 10px;min-height:36px;box-sizing:border-box}.writer-stat-scope select{max-width:75%;min-width:0}
.writer-stat-summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 18px;background:var(--studio-soft,#f3f6fa);padding:16px;border-radius:12px;margin-bottom:20px}.writer-stat-summary>span{font-size:12px;color:var(--studio-muted,#586b84)}.writer-stat-summary strong{grid-column:2;grid-row:1/3;font-size:26px;letter-spacing:-.04em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.writer-stat-summary small{font-size:11px;color:var(--studio-muted,#586b84);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.writer-stat-table-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}.writer-stat-table-title strong{font-size:12px}.writer-stat-table-title>span{font-size:10px;color:var(--studio-muted,#586b84)}
.writer-stat-counts{width:100%;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums}.writer-stat-counts th,.writer-stat-counts td{text-align:right;padding:9px 5px;border-bottom:1px solid var(--studio-line,#dce4ee);overflow-wrap:anywhere;font-size:12px}.writer-stat-counts th:first-child{text-align:left}.writer-stat-counts thead{font-size:11px;color:var(--studio-muted,#586b84)}.writer-stat-counts thead th{font-weight:500}.writer-stat-counts tbody th{white-space:nowrap;font-weight:500}.writer-stat-counts th small{font-weight:400;display:block;color:var(--studio-muted,#586b84);font-size:10px}
.writer-stat-coverage{font-size:11px;line-height:1.65;color:var(--studio-muted,#586b84);margin:12px 0}.writer-stat-help{margin:14px 0;font-size:12px}.writer-stat-help summary{cursor:pointer;color:var(--studio-muted,#586b84);line-height:1.6}.writer-stat-help p{font-size:12px;line-height:1.7;margin:10px 0}.writer-stat-legacy{border-top:1px solid var(--studio-line,#dce4ee);padding-top:14px}
.writer-stat-paste{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:14px 0}.writer-stat-paste>div{display:flex;justify-content:space-between;gap:8px}.writer-stat-paste dt{color:var(--studio-muted,#586b84)}.writer-stat-paste dd{margin:0;font-variant-numeric:tabular-nums}
.writer-stat-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--studio-line,#dce4ee)}.writer-statistics-panel [data-stat-reset]{background:transparent;color:var(--studio-muted,#586b84)}
.writer-statistics-panel>[data-stat-pending],.writer-stat-message{font-size:11px;color:var(--studio-muted,#586b84);margin:10px 0 0;line-height:1.6}.writer-stat-message:empty,[data-reset-error]:empty{display:none}.writer-stat-message[data-tone=warning]{background:var(--studio-soft,#f3f6fa);border-radius:8px;padding:10px}.writer-stat-loading{min-height:170px;display:grid;place-items:center;color:var(--studio-muted,#586b84);margin:0}
.writer-stat-reset-dialog{width:560px;max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;box-sizing:border-box;margin:auto;border:1px solid var(--studio-line,#dce4ee);border-radius:16px;padding:24px;background:var(--studio-panel,#fff);color:var(--studio-text,#17243a);box-shadow:0 18px 60px #17243a33;font-family:inherit;font-size:13px;line-height:1.65;text-align:left;overscroll-behavior:contain}
.writer-stat-reset-dialog::backdrop{background:#15243b55}.writer-stat-reset-dialog [data-reset-content]>p{color:var(--studio-muted,#586b84);margin:16px 0}.writer-stat-reset-dialog [data-reset-content]>label,.writer-stat-reset-dialog [data-reset-dates]>label{display:grid;gap:6px;margin-top:14px;font-size:12px}.writer-stat-reset-dialog [data-reset-dates]{display:grid;grid-template-columns:1fr 1fr;gap:12px}.writer-stat-reset-dialog [hidden]{display:none!important}.writer-stat-reset-dialog fieldset{border:1px solid var(--studio-line,#dce4ee);border-radius:8px;margin:14px 0 0;padding:10px 12px;max-height:170px;overflow:auto}.writer-stat-reset-dialog fieldset>label{display:flex;align-items:center;gap:8px;margin:7px 0;overflow-wrap:anywhere}.writer-stat-reset-dialog fieldset input{width:16px;height:16px;flex:none}.writer-stat-reset-dialog>footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;padding-top:16px;border-top:1px solid var(--studio-line,#dce4ee)}.writer-stat-reset-dialog .writer-stat-primary{background:var(--studio-accent,#2459b8);border-color:var(--studio-accent,#2459b8);color:white}.writer-stat-reset-dialog [data-reset-error]{color:#9a4b38;font-size:12px;line-height:1.6;margin:14px 0 0}
.writer-stat-reset-summary{padding:14px 16px;background:var(--studio-soft,#f3f6fa);border-radius:10px;margin:18px 0}.writer-stat-reset-summary>div{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;margin:8px 0}.writer-stat-reset-summary dt{color:var(--studio-muted,#586b84)}.writer-stat-reset-summary dd{margin:0;overflow-wrap:anywhere}.writer-stat-reset-summary small{display:block;font-size:11px;color:var(--studio-muted,#586b84)}.writer-stat-reset-impact{font-size:12px;font-variant-numeric:tabular-nums}.writer-stat-reset-impact p{margin:7px 0}.writer-stat-reset-warning{font-weight:600}
.editor-footer .writer-document-counts{margin-left:8px}.editor-footer #selectionHint{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:600px){.writer-statistics-panel{position:fixed;left:12px;right:12px;bottom:16px;width:auto;max-width:none;max-height:min(78vh,var(--writer-statistics-available-height,78vh));padding:18px}.writer-statistics>summary{font-size:11px;padding:6px}.writer-stat-counts th,.writer-stat-counts td{font-size:11px;padding:8px 3px}.writer-stat-table-title{align-items:flex-start;gap:8px}.writer-stat-table-title>span{font-size:9px}.writer-stat-summary strong{font-size:24px}.writer-stat-reset-dialog{padding:20px 18px}.writer-stat-reset-dialog h3{font-size:16px}.writer-stat-reset-dialog [data-reset-dates]{grid-template-columns:1fr}.writer-stat-reset-dialog>footer{flex-wrap:wrap}.editor-footer .writer-document-counts{margin-left:4px}.editor-footer{gap:6px}.writer-stat-paste{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.writer-statistics-panel,.writer-stat-reset-dialog{scroll-behavior:auto}}
