#content-badge, #content-panel { font-family: system-ui, sans-serif; color: #fff6df; }
#content-badge[hidden], #content-panel [hidden] { display: none; }
#content-badge { position: absolute; z-index: 2; top: max(10px,env(safe-area-inset-top)); right: max(12px,env(safe-area-inset-right),calc(var(--downloads-right, 0%) + 8px)); display: flex; align-items: center; gap: .45em; min-height: 36px; border: 1px solid #fbddb288; border-radius: 24px; padding: 4px 13px 4px 5px; background: #272438ed; box-shadow: 0 2px 5px #231c3460; cursor: pointer; }
#content-badge span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #ffd769; color: #242238; font-size: 19px; font-weight: 900; line-height: 1; }
#content-panel { width: min(460px, calc(100vw - 24px)); max-height: min(80dvh,650px); overflow: auto; overscroll-behavior: contain; margin: auto; padding: 20px; border: 1px solid #f3daaf90; border-radius: 17px; background: #292838; box-shadow: 0 10px 48px #090712a6; color-scheme: dark; }
#content-panel::backdrop { background: #191526a3; }
#content-panel[open] { display: flex; flex-direction: column; overflow: hidden; }
#content-panel .content-head, #content-panel .content-intro, #content-panel .content-actions { flex-shrink: 0; }
#content-groups { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.content-head, .content-actions, #content-panel summary, #content-panel li { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.content-head h2 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
#content-panel button { color: #ffe39b; background: #3c3947; border: 1px solid #736956; border-radius: 10px; padding: 6px 11px; font-weight: 700; min-height: 34px; cursor: pointer; }
#content-panel #content-close { font-size: 22px; line-height: 1; border: 0; border-radius: 100%; }
#content-panel button:disabled { opacity: .55; cursor: default; }
#content-panel :focus-visible, #content-badge:focus-visible { outline: 3px solid #ffdf71; outline-offset: 2px; }
#content-panel p { color: #e4dccd; font-size: 13px; line-height: 1.5; margin: 4px 0 12px; }
#content-panel .content-intro { margin: 7px 0 16px; max-width: 41ch; }
#content-groups details { background: #363442; border: 1px solid #534c54; border-radius: 10px; margin: 7px 0; padding: 0 13px; }
#content-groups summary { list-style: none; min-height: 53px; cursor: pointer; font-weight: 750; }
#content-groups summary::-webkit-details-marker { display: none; }
#content-groups summary::after { content: '⌄'; color: #ffda7f; }
#content-groups details[open] summary::after { transform: rotate(180deg); }
#content-groups summary span { flex: 1; }
#content-groups progress { display: block; width: 100%; max-width: 210px; height: 4px; margin-top: 5px; accent-color: #fbd367; }
#content-groups small, .content-actions span { color: #ded7ca; font-size: 12px; font-weight: 500; }
#content-groups ul { list-style: none; margin: 8px 0; padding: 0; }
#content-groups li { padding: 7px 0; border-top: 1px solid #514b58; font-size: 14px; }
#content-groups li small { display: block; }
.content-actions { margin-top: 14px; }
.content-actions span { flex: 1; }
#content-panel #content-all { background: #ffdb78; border-color: #ffdf9d; color: #292637; }
#content-badge, #content-panel button, #content-panel summary { touch-action: manipulation; }
@media (pointer:coarse) { #content-badge, #content-panel button { min-height: 44px; } }
@media (max-height:480px) { #content-panel { max-height: calc(100dvh - 16px); padding: 12px 16px; } #content-badge { top: max(5px,env(safe-area-inset-top)); } }
