.reader-links{display:flex;gap:.5rem;flex-wrap:wrap;padding:.65rem 0}.reader-links a,.reader-tools>a{font-weight:600;text-decoration:underline;text-underline-offset:3px}.reader-tools{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:1rem 0;color:#334155;font-size:14px}.reader-tools button,.reader-tools summary,.reader-library button,.reader-links a{min-height:44px;padding:.6rem .85rem;border:1px solid #cbd5e1;border-radius:8px;cursor:pointer;background:#fff;color:#334155}.reader-tools [aria-pressed=true],.reader-card-save[aria-pressed=true]{color:#0f766e;border-color:#0f766e;background:#f0fdfa}.reader-tools details{position:relative}.reader-settings{position:absolute;z-index:35;top:100%;right:0;width:230px;max-width:calc(100vw - 40px);padding:12px;background:#fff;border:1px solid #cbd5e1;border-radius:10px;box-shadow:0 8px 24px #0002}.reader-settings label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}.reader-settings select{min-height:44px;border:1px solid #94a3b8;border-radius:6px;padding:5px;color:inherit;background:inherit}.reader-text{font-size:var(--reader-size,18px)!important;line-height:var(--reader-line,1.85)!important}.reader-text p,.reader-text li,.reader-text blockquote{font-size:var(--reader-size,18px)!important;line-height:var(--reader-line,1.85)!important}.reader-text h2{font-size:1.45em!important;line-height:1.4!important}.reader-text h3{font-size:1.2em!important;line-height:1.4!important}.reader-card{position:relative}.reader-card-save{position:absolute;z-index:2;top:8px;left:8px;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #cbd5e1;border-radius:50%;color:#475569;background:#fffffff2;box-shadow:0 1px 4px #0001;cursor:pointer}.reader-card-save svg{width:19px;height:19px}.reader-card-save[aria-pressed=true] svg{fill:currentColor}.reader-library{max-width:800px;margin:0 auto;padding:24px 16px;min-height:45vh}.reader-library h1{font-size:28px;font-weight:800;margin-bottom:8px}.reader-library>p{color:#64748b;font-size:14px}.reader-library-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:18px 0}.reader-library-actions label{font-size:14px}.reader-library input[type=search]{display:block;min-height:44px;border:1px solid #94a3b8;border-radius:8px;padding:8px 12px;margin-top:5px;max-width:100%;background:transparent}.reader-history-toggle{display:flex;align-items:center;gap:8px;min-height:44px}.reader-entry{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid #e2e8f0;align-items:center}.reader-entry>a{display:flex;gap:12px;align-items:center;flex:1;min-width:0}.reader-entry img{width:88px;height:66px;object-fit:cover;border-radius:8px;flex:none}.reader-entry strong{font-size:16px;line-height:1.45;display:block;overflow-wrap:anywhere}.reader-entry small{display:block;color:#64748b;margin-top:4px}.reader-empty{padding:32px 0;color:#64748b}.reader-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#0f172a;color:white;border-radius:10px;padding:12px 18px;font-size:14px;max-width:calc(100vw - 32px);box-shadow:0 4px 24px #0003}.reader-tools [hidden],.reader-toast[hidden]{display:none!important}.reader-tools :focus-visible,.reader-library :focus-visible,.reader-card-save:focus-visible,.reader-links a:focus-visible{outline:3px solid #0d9488;outline-offset:3px}html.dark .reader-tools,html.dark .reader-library{color:#e2e8f0}html.dark .reader-tools button,html.dark .reader-tools summary,html.dark .reader-settings,html.dark .reader-library button,html.dark .reader-links a,html.dark .reader-card-save{background:#1e293b;color:#e2e8f0;border-color:#475569}html.dark .reader-entry{border-color:#334155}html.dark .reader-entry small,html.dark .reader-library>p,html.dark .reader-empty{color:#94a3b8}html.dark .reader-tools [aria-pressed=true],html.dark .reader-card-save[aria-pressed=true]{color:#5eead4;border-color:#5eead4}@media(max-width:400px){.reader-entry img{width:64px;height:52px}.reader-entry{gap:8px}.reader-entry strong{font-size:14px}.reader-entry button{padding:8px}.reader-settings{left:0;right:auto}}@media(prefers-reduced-motion:reduce){.reader-tools *{scroll-behavior:auto}}

.reader-save-inline{position:static;margin:8px}
