.rest-toolbar-button { display:inline-flex; align-items:center; gap:6px; flex-shrink:0; }
.rest-toolbar-button i { width:6px; height:6px; border-radius:50%; background:var(--theme-muted); }
.rest-toolbar-button[data-enabled=true] i { background:var(--theme-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 15%,transparent); }
.reader-rest-dialog { box-sizing:border-box; width:min(460px,calc(100% - 32px)); max-height:90dvh; padding:24px; border:1px solid var(--theme-border); border-radius:8px; overflow:auto; font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif; }
.reader-rest-dialog::backdrop { background:#10191ae0; }
.reader-rest-dialog .rest-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.reader-rest-dialog h2 { font-size:20px; line-height:1.5; margin:0; overflow-wrap:anywhere; }
.reader-rest-dialog label { display:flex; flex-direction:column; gap:8px; margin:18px 0; font-size:13px; line-height:1.5; }
.reader-rest-dialog .rest-toggle { flex-direction:row; align-items:center; justify-content:space-between; padding-block:14px; border-block:1px solid var(--theme-border); }
.reader-rest-dialog input[type=checkbox] { width:18px; height:18px; margin:0; }
.reader-rest-dialog :is(input:not([type=checkbox]),textarea) { box-sizing:border-box; width:100%; min-width:0; border:1px solid var(--theme-border); border-radius:5px; padding:9px 10px; font:inherit; resize:vertical; }
.reader-rest-dialog .rest-durations { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.reader-rest-dialog .rest-durations label { margin-top:0; }
.reader-rest-dialog button { min-height:36px; border:1px solid var(--theme-border); border-radius:5px; padding:8px 14px; font:inherit; font-size:13px; cursor:pointer; }
.reader-rest-dialog .rest-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
.rest-prompt { text-align:center; padding:36px 28px; }
.rest-prompt .rest-symbol { color:var(--theme-accent); margin-bottom:18px; }
.rest-prompt p { color:var(--theme-muted); line-height:1.8; font-size:15px; white-space:pre-wrap; overflow-wrap:anywhere; margin:16px 0 24px; }
.rest-prompt p:empty { display:none; }
#readerRestCountdown { display:block; font-size:42px; line-height:1.5; font-variant-numeric:tabular-nums; color:var(--theme-text); margin:20px 0 0; }
#readerRestAction { margin-top:20px; }
#readerRestTitle:focus { outline:none; }
.reader-rest-dialog [hidden] { display:none!important; }
@media(max-width:440px) { .reader-rest-dialog { padding:20px; } .rest-toolbar-button span { display:none; } .reader-rest-dialog .rest-durations { gap:10px; } }
@media print { .reader-rest-dialog,.rest-toolbar-button { display:none!important; } }
