.halo-learn-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px 24px; margin:18px 0 22px; border:1px solid #ccdcca; border-radius:14px; background:#edf3e7; }
.halo-learn-toolbar > div { min-width:0; }
.halo-learn-badge { display:block; color:#37624c; font-size:10px; font-weight:800; letter-spacing:.14em; margin-bottom:6px; }
.halo-learn-toolbar strong { font-size:16px; font-weight:650; line-height:1.6; }
.halo-learn-toolbar p { font-size:12px; color:#536951; margin:4px 0 0; }
.halo-learn-pos-toggle { display:flex; align-items:center; gap:7px; flex-shrink:0; font-size:12px; color:#365844; cursor:pointer; }
.halo-learn-pos-toggle input { width:17px; height:17px; accent-color:#2d6e5c; }
.halo-learn-word { position:relative; display:inline; padding:0; margin:0; border:0; border-radius:2px; background:transparent; color:inherit; font:inherit; line-height:inherit; letter-spacing:inherit; text-align:inherit; cursor:pointer; text-decoration:underline dotted #789687; text-underline-offset:4px; text-decoration-thickness:1px; }
.halo-learn-word:hover, .halo-learn-word:focus-visible { background:#e1edcd; color:#214c3a; text-decoration-style:solid; }
.halo-learn-word:focus-visible { outline:2px solid #2d6e5c; outline-offset:3px; }
body[data-halo-learn-pos="on"] .halo-learn-word[data-pos]::before { content:attr(data-pos-label); position:absolute; inset:auto 1px calc(100% - .35em) auto; font:9px/1 system-ui,sans-serif; opacity:.85; pointer-events:none; speak:none; }
body[data-halo-learn-pos="on"] .halo-learn-word[data-pos="n"] { color:#286087; }
body[data-halo-learn-pos="on"] .halo-learn-word[data-pos="v"], body[data-halo-learn-pos="on"] .halo-learn-word[data-pos="aux"] { color:#8a4e34; }
body[data-halo-learn-pos="on"] .halo-learn-word[data-pos="adj"], body[data-halo-learn-pos="on"] .halo-learn-word[data-pos="adv"] { color:#496338; }
body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos="n"] { color:#dcecff; }
body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos="v"], body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos="aux"] { color:#ffe0ca; }
body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos="adj"], body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos="adv"] { color:#e6f1cf; }
body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word[data-pos]::before { opacity:1; }
body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word:hover, body[data-halo-learn-pos="on"] .study-daily-card .halo-learn-word:focus-visible { color:#203c30; background:#f1f6e8; }
p.halo-learn-text { line-height:2.15 !important; }
.study-hidden-turn .halo-learn-word { visibility:hidden; pointer-events:none; }
.halo-learn-dialog { padding:0; width:min(440px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); max-width:calc(100% - 24px); border:1px solid #d2decc; border-radius:20px; color:#243c33; background:#fcfdf9; box-shadow:0 18px 70px #152a2938; overscroll-behavior:contain; }
.halo-learn-dialog::backdrop { background:#152a2947; }
.halo-learn-card-header { display:flex; gap:20px; align-items:flex-start; justify-content:space-between; padding:24px 24px 12px; background:#fcfdf9; }
.halo-learn-eyebrow { color:#537055; font:700 10px/1.5 system-ui,sans-serif; letter-spacing:.12em; margin:0 0 7px; }
.halo-learn-card-header h2 { margin:0; font:500 32px/1.25 Georgia,serif; overflow-wrap:anywhere; }
.halo-learn-close { padding:0; flex:0 0 36px; width:36px; height:36px; border:1px solid #ccd8c5; border-radius:50%; background:#f0f5e9; color:#365742; font:24px/1 system-ui,sans-serif; cursor:pointer; }
.halo-learn-card-body { padding:0 24px 12px; overflow-wrap:anywhere; }
.halo-learn-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; color:#526950; font:12px/1.6 system-ui,sans-serif; margin:4px 0 16px; }
.halo-learn-source { font-size:10px; padding:3px 8px; border-radius:20px; background:#eaf0e1; }
.halo-learn-label { color:#61735d; font-size:11px; margin:14px 0 5px; }
.halo-learn-meaning { font:650 23px/1.6 system-ui,sans-serif; margin:0 0 12px; color:#244b39; }
.halo-learn-status { color:#5d7059; font:12px/1.75 system-ui,sans-serif; margin:10px 0 14px; }
.halo-learn-actions { display:flex; flex-wrap:wrap; gap:8px; }
.halo-learn-action, .halo-learn-retry { font:600 12px/1.5 system-ui,sans-serif; border:1px solid #c8d8bd; background:#edf3e7; color:#315640; border-radius:8px; padding:8px 12px; cursor:pointer; }
.halo-learn-retry { background:#fff; }
.halo-learn-grammar { display:grid; gap:6px; border-block:1px solid #e1e7d9; padding:14px 0; margin:18px 0; font:12px/1.7 system-ui,sans-serif; }
.halo-learn-grammar > div { display:grid; grid-template-columns:110px 1fr; gap:10px; }
.halo-learn-grammar dt { color:#61755d; }.halo-learn-grammar dd { margin:0; }
.halo-learn-context { margin:18px 0 8px; padding:15px; border-radius:10px; background:#f0f4e9; }
.halo-learn-context h3 { font:600 11px/1.5 system-ui,sans-serif; color:#5f7458; margin:0 0 10px; }
.halo-learn-context-en { margin:0; font:17px/1.8 Georgia,serif; }
.halo-learn-context-zh { color:#576e50; font:12px/1.8 system-ui,sans-serif; margin:9px 0 0; }
.halo-learn-more { margin:18px 0 4px; font:12px/1.8 system-ui,sans-serif; }.halo-learn-more summary { cursor:pointer; color:#365d44; }.halo-learn-more ul { padding-left:20px; }
.halo-learn-card-footer { padding:14px 24px 18px; border-top:1px solid #e1e7da; color:#687b60; font:11px/1.8 system-ui,sans-serif; }
.halo-learn-shortcuts { display:none; }
@media (any-pointer:fine) { .halo-learn-shortcuts { display:block; margin-top:6px; } }
.study-word-actions-with-audio { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; }
.study-word-actions-with-audio .study-word-source { flex-basis:100%; }
.study-word-example-status { flex-basis:100%; margin:0; color:var(--study-muted); font-size:12px; }
.study-word-example-status:empty { position:absolute; }
.halo-learn-speech-status { padding:0 24px; font:11px/1.6 system-ui,sans-serif; color:#537055; }.halo-learn-speech-status:empty { display:none; }
.halo-learn-dialog :focus-visible { outline:2px solid #2d6e5c; outline-offset:3px; }
@media(max-width:600px) { .halo-learn-toolbar { padding:17px; gap:12px; flex-wrap:wrap; }.halo-learn-toolbar strong { font-size:15px; }.halo-learn-dialog { width:calc(100% - 20px); max-height:calc(100dvh - 32px); border-radius:17px; }.halo-learn-card-header { padding:20px 20px 10px; }.halo-learn-card-body { padding-inline:20px; }.halo-learn-card-footer { padding-inline:20px; } }
@media(forced-colors:active) { .halo-learn-word { text-decoration:underline; }.halo-learn-toolbar,.halo-learn-dialog,.halo-learn-action,.halo-learn-close { border:1px solid ButtonText; } }
@media(prefers-reduced-motion:reduce) { .halo-learn-dialog { scroll-behavior:auto; } }
