.community-book-comments.book-discussion-preview{border:1px solid var(--line);border-radius:18px;min-width:0;padding:20px;container-type:inline-size}.book-comments-heading,.book-comments-title{align-items:center;gap:12px;min-width:0;display:flex}.book-comments-heading{justify-content:space-between;gap:16px;margin-bottom:14px}.book-comments-mark{background:color-mix(in srgb,var(--purple) 10%,transparent);width:40px;height:40px;color:var(--purple);border-radius:12px;flex:none;place-items:center;display:grid}.book-comments-mark .icon{width:21px;height:21px}.book-discussion-preview .book-comments-heading h2{font:650 22px/1.3 var(--font-ui);letter-spacing:-.025em;margin:0}.book-comments-all{min-height:44px;color:var(--purple);white-space:nowrap;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:0 10px;font-size:14px;font-weight:600;transition:background .18s;display:flex}.book-comments-all:hover{background:var(--lavender)}.book-comments-all .icon{flex:none;width:18px;height:18px}.book-discussion-preview>.community-composer.compact{background:color-mix(in srgb,var(--ink) 2%,var(--surface));border-radius:14px;margin:0;padding:12px;transition:border-color .18s,box-shadow .18s;display:block}.book-discussion-preview>.community-composer:focus-within{border-color:color-mix(in srgb,var(--purple) 55%,var(--line));box-shadow:0 0 0 3px color-mix(in srgb,var(--purple) 7%,transparent)}.book-discussion-preview>.community-composer textarea{background:var(--surface);border-radius:10px;min-height:48px;padding:11px 12px;font-size:16px;line-height:1.5}.book-discussion-preview>.community-composer .media-compose{row-gap:0}.book-discussion-preview>.community-composer .attachment-toolbar{grid-template-columns:44px auto minmax(110px,180px) minmax(0,1fr) 44px;align-items:center;gap:8px;margin-top:10px;padding:0;display:grid}.book-discussion-preview>.community-composer .attachment-toolbar>.attachment-trigger,.book-discussion-preview>.community-composer .attachment-toolbar>.btn{border-radius:10px;justify-content:center;align-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:10px;display:flex}.book-discussion-preview>.community-composer .attachment-trigger{border:1px solid var(--line);color:var(--muted);background:0 0}.book-discussion-preview>.community-composer .attachment-trigger:hover{background:var(--lavender);color:var(--purple)}.book-discussion-preview>.community-composer .community-spoiler-toggle{width:auto;min-width:44px;height:44px;min-height:44px;color:var(--muted);border-radius:10px;justify-content:center;gap:7px;padding:0 12px;font-size:14px;position:relative}.book-discussion-preview>.community-composer .community-spoiler-toggle input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.book-discussion-preview>.community-composer .community-spoiler-toggle.active{color:var(--purple);background:var(--lavender);border-color:var(--purple)}.book-discussion-preview>.community-composer .community-spoiler-toggle input:disabled{cursor:wait}.book-discussion-preview>.community-composer .community-spoiler-toggle>span{display:inline}.book-discussion-preview>.community-composer .attachment-toolbar .icon{flex:none;width:20px;height:20px}.book-discussion-preview>.community-composer .choice-field{width:100%;min-width:0}.book-discussion-preview>.community-composer .choice-trigger{background:var(--surface);border-radius:10px;width:100%;min-height:44px;padding:8px 12px;font-size:14px}.book-discussion-preview>.community-composer .community-compose-count{font-variant-numeric:tabular-nums;white-space:nowrap;justify-self:end;margin:0;font-size:12px;position:static}.book-discussion-preview>.community-composer .community-compose-count[data-empty]{visibility:hidden}.book-discussion-preview>.community-composer .attachment-toolbar>.btn:disabled{opacity:.45}.book-discussion-preview>.community-composer .attachment-toolbar>.btn[aria-busy=true] .icon{animation:1s linear infinite book-comment-sending}.book-discussion-preview>.community-comment-filters{background:color-mix(in srgb,var(--ink) 4%,transparent);border-radius:12px;align-items:center;gap:4px;width:fit-content;max-width:100%;margin:14px 0 6px;padding:3px;display:flex}.book-discussion-preview>.community-comment-filters button{white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:9px;min-height:40px;padding:8px 14px;font-size:14px;font-weight:550}.book-discussion-preview>.community-comment-filters button[aria-pressed=true]{background:var(--surface);border-color:var(--line);color:var(--ink);box-shadow:0 2px 6px #0000000a}.book-discussion-preview>.community-comment-filters button:hover:not([aria-pressed=true]){color:var(--ink);background:color-mix(in srgb,var(--ink) 3%,transparent)}.book-comments-results{min-width:0}.book-comments-empty{width:100%;min-width:0;color:var(--muted);align-items:center;gap:12px;padding:14px 4px 0;display:flex}.book-comments-empty>.icon{opacity:.7;flex:none;width:24px;height:24px}.book-comments-empty>div{flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0;display:flex}.book-comments-empty b{color:var(--ink);font-size:15px;font-weight:550;line-height:1.4;display:block}.book-discussion-preview .book-comments-empty p{max-width:none;margin:0;font-size:14px;line-height:1.45}.book-comments-loading,.book-comments-error{color:var(--muted);margin:0;padding:14px 4px 0;font-size:14px;line-height:1.5}.book-comments-error{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:4px 14px;display:flex}.book-comments-error>button{min-height:44px;font:inherit;color:var(--purple)}.book-discussion-preview .community-feed{width:100%;padding-top:8px}.book-discussion-preview>.book-comments-results>.community-feed>.community-entry .rich-text{font-size:15px;line-height:1.6}.book-discussion-preview>.book-comments-results>.community-feed>.community-entry>.community-entry-main>.community-entry-heading{font-size:13px}.book-discussion-preview :is(.book-comments-all,.community-comment-filters button,.community-spoiler-toggle,.attachment-trigger):focus-visible,.book-discussion-preview .community-spoiler-toggle:focus-within{outline:2px solid var(--purple);outline-offset:3px}@container (max-width:520px){.book-discussion-preview .book-comment-desktop{display:none}.book-discussion-preview .book-comment-mobile{display:inline}.book-comments-heading{gap:8px;margin-bottom:12px}.book-comments-title{gap:9px}.book-comments-mark{border-radius:10px;width:34px;height:34px}.book-discussion-preview .book-comments-heading h2{font-size:20px}.book-comments-all{padding-inline:8px;font-size:14px}.book-discussion-preview>.community-composer.compact{padding:10px}.book-discussion-preview>.community-composer textarea{height:48px;min-height:48px;padding:11px 10px;overflow-y:hidden}.book-discussion-preview>.community-composer .attachment-toolbar{grid-template-columns:44px 44px minmax(0,1fr) 44px;gap:6px;margin-top:10px}.book-discussion-preview>.community-composer .community-spoiler-toggle{width:44px;padding:10px}.book-discussion-preview>.community-composer .community-spoiler-toggle>span{display:none}.book-discussion-preview>.community-composer .choice-trigger{gap:4px;padding:8px;font-size:14px}.book-discussion-preview>.community-composer .choice-trigger .icon{width:16px;height:16px}.book-discussion-preview>.community-composer .community-compose-count{grid-area:2/1/auto/-1;line-height:1.2}.book-discussion-preview>.community-composer .community-compose-count[data-empty]{display:none}.book-discussion-preview>.community-composer .attachment-toolbar>.btn{grid-area:1/4}.book-discussion-preview>.community-comment-filters{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;width:100%;margin-top:12px;display:grid}.book-discussion-preview>.community-comment-filters button{min-height:44px;padding:8px 4px;font-size:13px}.book-comments-empty{gap:10px;padding-top:12px}}@media (max-width:767px){.community-book-comments.book-discussion-preview{border-radius:16px;padding:14px}}@media (max-width:360px){.community-book-comments.book-discussion-preview{padding:12px}.book-comments-mark{display:none}.book-discussion-preview>.community-composer.compact{padding:8px}}@keyframes book-comment-sending{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.book-comments-all,.book-discussion-preview>.community-composer{transition:none}.book-discussion-preview>.community-composer .attachment-toolbar>.btn[aria-busy=true] .icon{animation:none}}
