html.hlcd-paper, html.hlcd-paper body { background: #f4ecdc !important; color: #493a2e; }
html.hlcd-dark, html.hlcd-dark body { background: #202124 !important; color: #e8e3d9; color-scheme: dark; }
html.hlcd-paper .wp-site-blocks, html.hlcd-paper main, html.hlcd-paper .wp-block-post-content,
html.hlcd-dark .wp-site-blocks, html.hlcd-dark main, html.hlcd-dark .wp-block-post-content { background-color: transparent !important; }
html.hlcd-dark .wp-site-blocks, html.hlcd-dark .wp-site-blocks :is(p,h1,h2,h3,h4,h5,h6,li,blockquote), html.hlcd-dark .wp-block-post-content { color: #e8e3d9; }
html.hlcd-paper .wp-site-blocks :is(p,h1,h2,h3,h4,h5,h6,li,blockquote) { color: #493a2e; }
html.hlcd-dark .wp-site-blocks a { color: #c9c7f0; }
html.hlcd-paper .wp-site-blocks a { color: #80506b; }
/* Size only prose paragraphs/list text in the chapter body, not headings or navigation. */
html.hlcd-active .wp-block-post-content > p:not(.has-text-align-center),
html.hlcd-active .wp-block-post-content > ul > li,
html.hlcd-active .wp-block-post-content > ol > li,
html.hlcd-active .entry-content > p:not(.has-text-align-center),
html.hlcd-active .entry-content > ul > li,
html.hlcd-active .entry-content > ol > li { font-size: var(--hlcd-font-size, 20px) !important; }
#hlcd-reader, #hlcd-reader * { box-sizing: border-box; }
#hlcd-reader { position: fixed; z-index: 2147483000; inset: auto 0 max(12px, env(safe-area-inset-bottom)) 0; pointer-events: none; font-family: Georgia, 'Noto Serif', serif; }
#hlcd-reader button { cursor: pointer; border: 0; font: inherit; -webkit-tap-highlight-color: transparent; }
#hlcd-reader .hlcd-toolbar { pointer-events: auto; margin: 0 auto; width: max-content; max-width: calc(100vw - 24px); padding: 9px 11px; display: flex; align-items: center; gap: 8px; background: rgba(255,249,250,.96); color: #643b4d; border: 1px solid #e9cbd7; border-radius: 22px; box-shadow: 0 4px 22px #44233326; backdrop-filter: blur(10px); }
#hlcd-reader .hlcd-label { font-size: 14px; white-space: nowrap; }
#hlcd-reader .hlcd-themes, #hlcd-reader .hlcd-size { display: flex; align-items: center; gap: 3px; }
#hlcd-reader button { background: transparent; color: inherit; border-radius: 12px; min-width: 33px; min-height: 36px; padding: 5px; font-size: 17px; }
#hlcd-reader button:focus-visible { outline: 2px solid #963f58; outline-offset: 2px; }
#hlcd-reader [data-theme][aria-pressed="true"] { background: #f2dbe3; box-shadow: inset 0 0 0 1px #d9aabb; }
#hlcd-reader .hlcd-separator { width: 1px; height: 22px; background: #ddbac8; }
#hlcd-reader output { min-width: 39px; text-align: center; font-size: 13px; }
#hlcd-reader .hlcd-close { font-size: 24px; }
#hlcd-reader .hlcd-handle { display: none; pointer-events: auto; position: fixed; right: 4px; top: var(--hlcd-handle-top, 72%); width: 42px; height: 42px; border: 1px solid #d9aabc; border-radius: 50%; background: rgba(248,218,230,.85); color: #743b55; box-shadow: 0 2px 12px #32152133; touch-action: none; user-select: none; font-size: 15px; }
#hlcd-reader.hlcd-collapsed .hlcd-toolbar { display: none; }
#hlcd-reader.hlcd-collapsed .hlcd-handle { display: block; }
html.hlcd-dark #hlcd-reader .hlcd-toolbar { background: rgba(49,45,51,.97); color: #f5e7ec; border-color: #755b68; }
html.hlcd-dark #hlcd-reader [data-theme][aria-pressed="true"] { background: #6d5363; }
@media(max-width: 480px) { #hlcd-reader .hlcd-toolbar { gap: 3px; padding: 7px 6px; } #hlcd-reader .hlcd-label { display: none; } #hlcd-reader button { min-width: 33px; } }
@media(prefers-reduced-motion: no-preference) { #hlcd-reader .hlcd-toolbar { animation: hlcd-enter .22s ease-out; } @keyframes hlcd-enter { from { transform: translateY(18px); opacity: .2; } to { transform: translateY(0); opacity: 1; } } }

/* v1.1: thanh đọc gọn hơn trên mọi màn hình */
#hlcd-reader .hlcd-toolbar { padding: 3px 8px; gap: 5px; border-radius: 18px; }
#hlcd-reader button { min-height: 30px; min-width: 30px; padding: 3px; line-height: 1.1; }
#hlcd-reader .hlcd-close { font-size: 21px; }
#hlcd-reader .hlcd-separator { height: 19px; }
#hlcd-reader output { min-width: 24px; font-size: 13px; }
@media(max-width:480px) {
  #hlcd-reader .hlcd-toolbar { padding: 3px 6px; gap: 2px; }
  #hlcd-reader button { min-height: 30px; min-width: 30px; }
}

/* v1.2: smaller movable Aa button, with usable touch target */
#hlcd-reader .hlcd-handle { width: 32px; height: 32px; min-width: 32px; min-height: 32px; padding: 0; font-size: 12px; right: 5px; display: none; align-items: center; justify-content: center; line-height: 1; }
#hlcd-reader.hlcd-collapsed .hlcd-handle { display: flex; }
