.community-document{margin:0;background:var(--polish-canvas,#F4F5F7);color:var(--polish-ink,#252A34);font-family:Arial,Helvetica,sans-serif}
:where(.community-document,#community-page,.shell-community-actions) *{box-sizing:border-box}
:where(.community-document,#community-page,.shell-community-actions) :is(button,textarea){font:inherit}
:where(.community-document,#community-page,.shell-community-actions) :is(button,a){-webkit-tap-highlight-color:transparent}
:where(.community-document,#community-page,.shell-community-actions) button{cursor:pointer;color:inherit}
:where(.community-document,#community-page,.shell-community-actions) button:disabled{opacity:.55;cursor:default}
:where(.community-document,.community,.shell-community-actions)[hidden],:where(.community-document,.community,.shell-community-actions) [hidden]{display:none!important}
.community{max-width:430px;margin:auto;min-height:100dvh;padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
.feed-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 14px 0}.feed-tools strong{font-size:15px}.feed-tools button,#more{min-height:44px;padding:8px 11px;border:0;border-radius:7px;background:transparent;color:var(--polish-accent,#80539A)}#status{margin:0 14px;font-size:14px;line-height:1.6;color:var(--polish-muted,#616977)}#status:empty{display:none}
html[data-theme] body .community .community-post{display:flex;margin:10px 12px 0;padding:16px 13px;gap:10px;border:1px solid var(--polish-border,#DEE1E7);border-radius:12px;background:var(--polish-panel,#fff);box-shadow:none}.post-avatar{width:38px;height:38px;object-fit:cover;border-radius:50%!important;flex:none}.post-content{min-width:0;flex:1}.post-content h3{margin:0 0 7px;color:var(--polish-ink,#252A34)!important;font-size:15px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}.post-text{font-size:16px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}.post-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12px;color:var(--polish-muted,#616977)}.post-meta .post-delete{min-height:44px;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--polish-muted,#616977);font-size:13px}#more{display:block;margin:14px auto}
:where(.community-document,#community-page) dialog{width:min(94vw,430px);max-height:90dvh;overflow:auto;padding:20px;border:1px solid var(--polish-border,#DEE1E7);border-radius:14px;background:var(--polish-panel,#fff);color:var(--polish-ink,#252A34);box-shadow:0 20px 60px #0003;text-align:start}
:where(.community-document,#community-page) dialog::backdrop{background:#11182780}
.community-dialog-actions button{min-height:44px;padding:9px 12px;border:0;border-radius:8px;background:var(--polish-raised,#F0F1F4);color:var(--polish-ink,#252A34);font-size:14px}#delete-post-error,#comment-error,#report-error{font-size:14px;line-height:1.5;color:#c44246}.community-dialog-actions{display:flex;justify-content:flex-end;gap:8px}#delete-post-confirm{color:#c44246}.community-dialog-actions+p:empty{display:none}
:where(.community-document,#community-page,.shell-community-actions) :is(button:focus-visible,a:focus-visible,textarea:focus-visible,label:focus-within){outline:2px solid var(--polish-accent,#80539A);outline-offset:3px}

html[data-theme] body #composer{
 --composer-padding:clamp(14px,4.6vw,20px);
 --composer-max-height:min(680px,calc(100vh - 28px));
 width:min(430px,calc(100% - 28px));max-width:none;max-height:var(--composer-max-height);
 padding:0;overflow:hidden;border-radius:20px;box-shadow:0 22px 64px #08071099;
}
@supports(height:100dvh){
 html[data-theme] body #composer{--composer-max-height:min(680px,calc(100dvh - 28px))}
}
html[data-theme] body #composer::backdrop{background:#090913b8;backdrop-filter:none}
#post-form{display:flex;flex-direction:column;max-height:calc(var(--composer-max-height) - 2px)}
.composer-heading{
 display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;
 padding:10px calc(var(--composer-padding) - 6px) 10px var(--composer-padding);
 border-bottom:1px solid var(--polish-border);
 background:linear-gradient(110deg,color-mix(in srgb,var(--polish-accent) 9%,var(--polish-panel)),var(--polish-panel) 80%);
}
html[data-theme] body #composer .composer-heading h2{margin:0;font-size:20px;font-weight:700;line-height:1.25;outline:none}
html[data-theme] body #composer #cancel{
 display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;
 border:0;border-radius:10px;background:transparent;color:var(--polish-muted);font-size:27px;line-height:1;
}
#composer #cancel:hover:not(:disabled){background:var(--polish-raised);color:var(--polish-ink)}
.composer-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px var(--composer-padding)}
.composer-identity{display:flex;align-items:center;gap:10px;margin-bottom:14px}
.composer-identity img{flex:none;width:40px;height:40px;border-radius:50%;object-fit:cover}
.composer-identity div{min-width:0}
.composer-identity strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.composer-identity span{display:block;margin-top:2px;color:var(--polish-muted);font-size:12px;line-height:1.35}
.composer-editor{
 padding:10px 12px 8px;border:1px solid var(--polish-border);border-radius:12px;background:var(--polish-canvas);
}
.composer-editor:focus-within{
 border-color:var(--polish-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--polish-accent) 20%,transparent);
}
html[data-theme] body #composer #post-text{
 display:block;width:100%;resize:none;min-height:112px;padding:0;border:0;outline:none;
 background:transparent;color:var(--polish-ink);font-size:16px;line-height:1.5;
}
html[data-theme] body #composer #post-text:focus-visible{outline:none}
.composer-count{
 margin-top:6px;text-align:right;color:var(--polish-muted);font-size:12px;line-height:1.35;font-variant-numeric:tabular-nums;
}
#composer .upload-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
#composer .upload-actions button{
 display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:0;padding:8px 6px;
 border:1px solid var(--polish-border);border-radius:10px;background:var(--polish-raised);
 color:var(--polish-ink);font-size:13px;font-weight:650;
}
#composer .upload-actions svg{flex:none;width:18px;height:18px;color:var(--polish-accent)}
#composer .upload-actions button:hover:not(:disabled){border-color:var(--polish-accent)}
html[data-theme] body #composer .upload-note{margin:8px 0 0;color:var(--polish-muted);font-size:12px;line-height:1.45}
html[data-theme] body #composer #remove-media{min-height:44px;padding:6px 0;border:0;background:transparent;color:var(--polish-accent);font-size:13px}
.composer-footer{
 flex:none;padding:12px var(--composer-padding) 14px;border-top:1px solid var(--polish-border);background:var(--polish-panel);
}
.composer-footer p{margin:0;color:var(--polish-muted);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.composer-footer p:not(:empty){margin-bottom:8px}
html[data-theme] body #composer #post-error{color:#ff9299;line-height:1.45}
html[data-theme="light"] body #composer #post-error{color:#ad343f}
html[data-theme] body #composer #publish{
 display:block;width:100%;min-height:46px;padding:9px 12px;border:1px solid transparent;border-radius:10px;
 background:var(--polish-primary,#80539a);color:#fff;font-size:15px;font-weight:700;
}
#composer #publish:hover:not(:disabled){filter:brightness(1.11)}
html[data-theme] body #composer #publish:disabled{
 opacity:1;border-color:var(--polish-border);background:var(--polish-raised);color:var(--polish-muted);
}
@media(max-width:360px){html[data-theme] body .community .community-post{margin-inline:10px;padding:14px 11px;gap:8px}.post-avatar{width:32px;height:32px}}

.community-identity-notice{display:flex;align-items:center;gap:10px;margin:8px 14px 0;color:var(--polish-muted,#616977)}.community-identity-notice p{flex:1;margin:0;font-size:13px;line-height:1.6}.community-identity-notice button{flex:none;min-height:44px;padding:9px 11px;border:1px solid var(--polish-border,#DEE1E7);border-radius:8px;background:var(--polish-panel,#fff);color:var(--polish-accent,#80539A);font-size:13px}

/* Community interaction layout. Content stays full width beneath each author row. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme] body .community-header,.detail-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;min-height:calc(56px + env(safe-area-inset-top,0px));padding:5px 12px;background:var(--polish-panel);color:var(--polish-ink);border-bottom:1px solid var(--polish-border)}
.community-header{position:sticky;top:0;z-index:4;padding-top:calc(5px + env(safe-area-inset-top,0px))!important}.community-header h1,.detail-header h2{font-size:20px;font-weight:600;line-height:1.4;margin:0;text-align:center}.community-header a,.community-header button,.detail-header button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:9px;background:transparent;color:var(--polish-accent);text-decoration:none;font-size:30px;line-height:1}
.community-header a svg,.detail-header button svg{width:22px;height:22px}
html[data-theme] body .community .community-cover{
 --community-avatar-size:clamp(68px,19vw,78px);
 position:relative;isolation:isolate;margin:12px 12px 0;padding:0;
 border:0;border-radius:0;background:none;box-shadow:none;
}
.community-cover-frame{
 position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-items:end;
 min-height:clamp(178px,53vw,220px);padding-top:62px;overflow:hidden;border-radius:15px;
 background:var(--polish-raised);outline:1px solid var(--polish-border);outline-offset:-1px;
}
.community-cover-image{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;
}
.community-cover-edit,.community-avatar-edit{
 position:absolute;isolation:isolate;display:grid;place-items:center;width:44px;height:44px;padding:0;
 border:0;border-radius:50%;background:transparent;color:#fff;
}
.community-cover-edit{
 z-index:1;inset:7px 7px auto auto;
}
.community-avatar-edit{
 inset:auto -6px -4px auto;
}
.community-cover-edit::before,.community-avatar-edit::before{
 position:absolute;z-index:-1;inset:4px;content:"";border:1px solid #edd7fb;
 border-radius:50%;background:var(--polish-primary,#80539a);box-shadow:0 2px 6px #25173255;
}
.community-avatar-edit::before{inset:6px}
.community-cover-edit svg{width:18px;height:18px}
.community-avatar-edit svg{width:16px;height:16px}
@media(hover:hover){
 :is(.community-cover-edit,.community-avatar-edit):hover:not(:disabled)::before{border-color:#fff;filter:brightness(1.08)}
}
:is(.community-cover-edit,.community-avatar-edit):active:not(:disabled)::before{filter:brightness(.9)}
:is(.community-cover-edit,.community-avatar-edit):focus-visible{outline-offset:-2px}
html[data-theme] body .photo-crop-dialog{width:min(91vw,422px);padding:18px;border-radius:17px}
.photo-crop-dialog h2{margin:0 0 8px;font-size:19px}
.photo-crop-dialog p{margin:8px 0;color:var(--polish-muted);font-size:13px;line-height:1.4}
.photo-crop-stage{position:relative;overflow:hidden;border-radius:10px;background:var(--polish-canvas)}
.photo-crop-stage.round-crop::after{
 position:absolute;inset:0;content:"";border:2px solid #ffffffd9;border-radius:50%;
 box-shadow:0 0 0 96px #111019a8;pointer-events:none;
}
.photo-crop-stage canvas{display:block;width:100%;height:auto;touch-action:none;cursor:grab}
.photo-crop-stage canvas:active{cursor:grabbing}
.photo-crop-dialog label{display:flex;align-items:center;gap:12px;margin-top:12px;font-size:14px}
.photo-crop-dialog label:focus-within{outline:none}
.photo-crop-dialog input{flex:1;min-width:0;accent-color:var(--polish-accent)}
.photo-crop-dialog input:focus-visible{outline:2px solid var(--polish-accent);outline-offset:3px;border-radius:4px}
.crop-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.crop-buttons button{min-height:44px;padding:6px 8px;border:1px solid var(--polish-border);border-radius:9px;background:var(--polish-raised);font-size:14px;font-weight:650}
.crop-buttons .crop-save{border-color:transparent;background:var(--polish-primary,#80539a);color:#fff}
html[data-theme] body .community .community-profile{
 position:relative;display:grid;grid-template-columns:var(--community-avatar-size) minmax(0,1fr);align-items:center;gap:13px;
 padding:12px 15px 14px;border:0;background:none;text-align:left;
}
.community-avatar-frame{
 position:relative;width:var(--community-avatar-size);height:var(--community-avatar-size);
}
html[data-theme] body .community .community-profile #my-avatar{
 display:block;width:100%;height:100%;border:1px solid var(--polish-border);border-radius:50%;
 background:var(--polish-raised);object-fit:cover;
}
.community-profile-name{min-width:0}
html[data-theme] body .community .community-profile-name :is(h2,p){
 color:var(--polish-ink);text-shadow:none;
}
html[data-theme] body .community .community-cover-image:not([hidden]) ~ .community-profile .community-profile-name :is(h2,p){
 color:#fff;text-shadow:0 1px 2px #130f1b,0 0 4px #130f1b,1px 0 1px #130f1b,-1px 0 1px #130f1b;
}
html[data-theme] body .community .community-profile h2{
 margin:0;font-size:18px;font-weight:700;line-height:1.25;overflow-wrap:anywhere;
}
html[data-theme] body .community .community-profile p{
 margin:4px 0 0;font-size:13px;line-height:1.4;overflow-wrap:anywhere;white-space:pre-wrap;
}
.feed-filter-bar{position:sticky;top:calc(56px + env(safe-area-inset-top,0px));z-index:3;padding:10px 12px 9px;background:var(--polish-canvas);border-bottom:1px solid var(--polish-border)}
.feed-actions{
 --feed-action-gap:8px;
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--feed-action-gap);
 max-width:360px;margin-inline:auto;
}
.feed-filters{grid-column:span 2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--feed-action-gap)}
.feed-actions button{
 min-width:0;min-height:44px;padding:7px 5px;border:1px solid var(--polish-border);border-radius:10px;
 background:var(--polish-panel);color:var(--polish-muted);font-size:14px;font-weight:650;line-height:1.25;text-align:center;
}
.feed-filters button[aria-selected=true]{
 background:var(--polish-raised);background:color-mix(in srgb,var(--polish-accent) 15%,var(--polish-panel));
 border-color:color-mix(in srgb,var(--polish-accent) 36%,var(--polish-border));color:var(--polish-accent);
}
.feed-actions #compose{border-color:transparent;background:var(--polish-primary,#80539a);color:#fff;font-weight:700}
.feed-actions #compose:hover:not(:disabled){filter:brightness(1.12)}
.feed-actions button:focus-visible{outline-offset:2px}
.feed-status{margin:0 14px}.feed-status #status{margin:12px 0 0;font-size:14px;color:var(--polish-muted)}.feed-status button{min-height:44px;margin-top:9px;padding:9px 11px;border:1px solid var(--polish-border);border-radius:8px;background:var(--polish-panel);color:var(--polish-accent);font-size:13px}
html[data-theme] body :is(.community,.post-detail) .community-post{display:block;margin:12px 12px 0;padding:0;gap:0;border:1px solid var(--polish-border);border-radius:12px;background:var(--polish-panel);box-shadow:none;overflow:hidden}.post-header{display:flex;align-items:center;gap:9px;padding:13px 13px 10px;min-width:0}.post-avatar{width:36px;height:36px;flex:none}.post-author{flex:1;min-width:0}.post-author h3{margin:0;color:var(--polish-ink)!important;font-size:15px!important;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.post-time{display:block;margin-top:1px;font-size:12px;line-height:1.5;color:var(--polish-muted)}
html[data-theme] body .community .post-text,html[data-theme] body .post-detail .post-text{margin:0;padding:0 13px 12px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.6;color:var(--polish-ink)}.post-text.is-collapsed{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;padding-bottom:0!important}.post-read-more{min-height:44px;margin:0 5px 4px;padding:8px;border:0;background:transparent;color:var(--polish-accent);font-size:14px}
.post-media-single,.post-media-grid{margin:0 0 8px}
.post-media-grid{
  display:grid;width:min(100%,320px);grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;
}
.post-media-grid[data-columns="2"]{width:min(100%,224px);grid-template-columns:repeat(2,minmax(0,1fr))}
.post-media-grid .post-media-preview{width:100%;aspect-ratio:1}
.post-media-grid .post-media-error{min-width:0;padding:7px 5px;font-size:12px;overflow-wrap:anywhere}
.post-media-grid .post-media-error :is(button,a){padding-inline:2px}
.post-media-grid .post-media-play{width:34px;height:34px}
.post-media-grid .post-media-play svg{width:16px;height:16px}
.post-media-preview{
  position:relative;display:block;width:min(224px,100%);aspect-ratio:4/3;margin:0;
  padding:0;overflow:hidden;border:0;border-radius:8px;
  background:var(--polish-raised,#f0f1f4);color:#fff;cursor:zoom-in;
}
.post-video-open{background:#111318;cursor:pointer}
.post-media-preview>.post-media{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.post-media-play,.post-media-expand{
  position:absolute;display:grid;place-items:center;pointer-events:none;
  background:#111318c9;color:#fff;
}
.post-media-play{
  top:50%;left:50%;transform:translate(-50%,-50%);width:42px;height:42px;
  border:1px solid #ffffff6e;border-radius:50%;
}
.post-media-play svg{width:19px;height:19px;fill:currentColor}
.post-media-expand{right:6px;bottom:6px;width:26px;height:26px;border-radius:5px}
.post-media-expand svg{width:15px;height:15px}
.post-media-error{padding:16px 13px;margin:0;color:var(--polish-muted);font-size:14px;line-height:1.5}.post-media-error button,.post-media-error a{display:inline-block;min-height:44px;padding:9px 8px;color:var(--polish-accent);border:0;background:transparent}
.draft-media-grid:not(:empty){display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin:8px 0 0}
.draft-media-item{position:relative;min-width:0}
.draft-media-preview{
  position:relative;display:block;width:100%;aspect-ratio:1;overflow:hidden;padding:0;
  border:0;border-radius:7px;background:#111318;
}
.draft-media-preview :is(img,video){position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.draft-media-preview .post-media-play{width:30px;height:30px}
.draft-media-preview .post-media-play svg{width:15px;height:15px}
.draft-media-remove{
  position:absolute;right:2px;top:2px;display:grid;place-items:center;width:32px;height:32px;padding:0;
  border:1px solid #ffffff55;border-radius:50%;background:#111318e5;color:#fff;font-size:23px;line-height:1;
}
.post-actions{display:flex;align-items:center;gap:4px;padding:3px 7px;border-top:1px solid var(--polish-line)}.post-actions button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--polish-muted);font-size:14px}.post-actions svg{width:19px;height:19px;flex:none}.post-actions .post-like[aria-pressed=true]{color:var(--polish-accent)}.post-like[aria-pressed=true] svg{fill:currentColor;fill-opacity:.15}.post-action-count{font-size:13px;font-variant-numeric:tabular-nums}.post-unavailable{padding:14px;margin:0;color:var(--polish-muted);font-size:14px}
.post-menu{position:relative;align-self:flex-start;flex:none}.post-menu>summary{display:grid;place-items:center;width:44px;height:44px;margin:-7px -7px 0 0;cursor:pointer;list-style:none;border-radius:8px;color:var(--polish-muted);font-size:22px;letter-spacing:2px}.post-menu>summary::-webkit-details-marker{display:none}.post-menu-panel{position:absolute;right:0;top:38px;z-index:5;min-width:160px;padding:5px;background:var(--polish-panel);border:1px solid var(--polish-border);border-radius:9px;box-shadow:0 5px 20px #0002}.post-menu-panel button{display:block;width:100%;min-height:44px;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:var(--polish-ink);font-size:14px;text-align:left}.post-menu-panel button:hover{background:var(--polish-raised)}.post-menu-panel .danger{color:#c44246}
html[data-theme] body :is(.community,.post-detail) .community-post{overflow:visible}.community-post:has(.post-menu[open]){position:relative;z-index:2}
#report-form label{display:block;font-size:14px;margin:14px 0 6px}#report-reason{width:100%;min-height:44px;padding:9px;border:1px solid var(--polish-border);border-radius:8px;background:var(--polish-raised);color:inherit;margin-bottom:18px}
html[data-theme] body dialog.post-detail{position:fixed;inset:0;margin:0 auto;width:min(100%,430px);max-width:430px;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:0;overflow:hidden;background:var(--polish-canvas)}.post-detail[open]{display:flex;flex-direction:column}.detail-header{flex:none;padding-top:calc(5px + env(safe-area-inset-top,0px));min-height:calc(56px + env(safe-area-inset-top,0px))}.detail-scroll{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding-bottom:16px}#post-detail-status{margin:14px;font-size:14px;color:var(--polish-muted)}#post-detail-status:empty{display:none}
.comments-section{padding:14px 12px 0}.comments-section h3{font-size:16px;font-weight:600;margin:0 0 10px}#comments-status{font-size:14px;line-height:1.6;color:var(--polish-muted)}#comments-status:empty{display:none}:is(#comments-more,#comments-retry){min-height:44px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:var(--polish-accent);font-size:13px}
.community-comment{--comment-avatar-size:30px;--comment-avatar-gap:9px;position:relative;display:flex;align-items:flex-start;gap:var(--comment-avatar-gap);padding-block:10px 6px}
.community-comment+.community-comment::before{content:"";position:absolute;inset-block-start:0;inset-inline:calc(var(--comment-avatar-size) + var(--comment-avatar-gap)) 0;border-block-start:1px solid var(--polish-border);pointer-events:none}
.comment-avatar{width:var(--comment-avatar-size);height:var(--comment-avatar-size);object-fit:cover;border-radius:50%;flex:none}
.comment-main{min-width:0;flex:1;color:var(--polish-ink)}
.comment-name{font-size:14px;font-weight:600;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}
.comment-text{color:var(--polish-ink);font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.comment-meta{display:flex;align-items:center;justify-content:space-between;min-height:32px;gap:6px}
.comment-meta time{color:var(--polish-muted);font-size:11px}.comment-meta button{min-height:32px;padding:4px 7px;background:transparent;border:0;color:var(--polish-muted);font-size:12px}
.comment-form{flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:var(--polish-panel);border-top:1px solid var(--polish-border)}#comment-text{min-height:44px;max-height:100px;resize:vertical;padding:10px;border:1px solid var(--polish-border);border-radius:9px;background:var(--polish-raised);color:inherit;font-size:16px;line-height:1.4}#comment-send{align-self:start;min-height:44px;border:0;border-radius:9px;padding:9px 13px;background:var(--polish-primary,#80539a);color:white;font-size:14px;font-weight:600}#comment-error{grid-column:1 / -1;margin:0}.comment-count{grid-column:1 / -1;text-align:right;color:var(--polish-muted);font-size:11px}
html[data-theme] body dialog.media-viewer{
  position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;
  padding:calc(56px + env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px))
    max(12px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
  border:0;border-radius:0;background:#111318;overflow:hidden;box-shadow:none;color-scheme:dark;
}
.media-viewer[open]{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr)}
.media-viewer-content{display:grid;place-items:center;min-width:0;min-height:0}
#media-full{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
video#media-full{max-width:1200px}
#media-close{
  position:absolute;top:max(8px,env(safe-area-inset-top,0px));right:max(8px,env(safe-area-inset-right,0px));
  width:44px;height:44px;border:0;border-radius:50%;background:#ffffff18;color:white;font-size:30px;
}
.media-navigation{
  position:absolute;top:max(8px,env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);
  display:flex;align-items:center;gap:7px;color:#eff2fa;font-size:14px;font-variant-numeric:tabular-nums;
}
.media-navigation button{
  display:grid;place-items:center;min-width:44px;height:44px;padding:0;border:0;border-radius:50%;
  background:#ffffff18;color:inherit;
}
.media-navigation button:disabled{opacity:.35}
.media-navigation svg{width:22px;height:22px}
#media-position{min-width:40px;text-align:center}
img#media-full{touch-action:pan-y pinch-zoom}
.media-viewer .post-media-error{color:#eff2fa;text-align:center}
.media-viewer .post-media-error :is(button,a){color:#c2d9ff}
.media-viewer button:focus-visible,.media-viewer a:focus-visible{outline-color:#c2d9ff}
.community-notice{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);max-width:min(90vw,400px);padding:11px 15px;background:#252a34;color:white;border-radius:10px;font-size:14px;line-height:1.5;z-index:20;box-shadow:0 4px 16px #0003}.community-notice:empty{display:none}summary:focus-visible,select:focus-visible{outline:2px solid var(--polish-focus);outline-offset:3px}
@media(max-width:360px){.post-header{padding-inline:11px}.post-actions button{font-size:13px;gap:5px}}

/* A continuous feed, with one divider between posts. */
html[data-theme] body :is(.community,.post-detail) .community-post{margin:0 12px;padding:16px 0 10px;border:0;border-bottom:1px solid var(--polish-line);border-radius:0;background:transparent;box-shadow:none}
html[data-theme] body :is(.community,.post-detail) .post-header{padding:0 0 10px}
html[data-theme] body :is(.community,.post-detail) .post-text{padding-inline:0}
html[data-theme] body :is(.community,.post-detail) .post-read-more{margin-left:0;padding-left:0}
html[data-theme] body :is(.community,.post-detail) .post-actions{padding:4px 0 0;border-top:0}

.post-official-gifts{
 display:grid;gap:5px;list-style:none;margin:2px 0 0;padding:6px 10px;border-radius:8px;
 background:var(--polish-panel,#fff);
 background:color-mix(in srgb,var(--polish-accent,#80539a) 8%,var(--polish-panel,#fff));
}
.post-official-gift-image[hidden],.post-official-gift-details[hidden]{display:none}
.post-official-gift{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.45}
.post-official-gift-badge{
 flex:none;padding:3px 7px;border-radius:5px;background:#6f3aa1;color:#fff;font-size:11px;
 font-weight:700;line-height:1.2;
}
.post-author-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px}
.post-official-gift-message{
 min-width:0;color:var(--polish-accent,#80539a);font-weight:650;overflow-wrap:anywhere;
}
.post-official-gift-details{display:inline-flex;align-items:center;gap:5px;margin-inline-start:5px;vertical-align:middle;white-space:nowrap}
.post-official-gift-image{display:block;width:24px;height:24px;object-fit:contain}
.post-official-gift-price{font-weight:750;font-variant-numeric:tabular-nums}

.post-comment-preview{
 margin:2px 0 0;padding:7px 11px;background:var(--polish-panel);border-radius:8px;color:var(--polish-ink);
 font-size:14px;line-height:1.45;
}
.post-comment-preview[hidden],.post-comment-preview-more[hidden]{display:none}
.post-comment-preview-list{list-style:none;margin:0;padding:0}
.post-comment-preview-toggle{
 position:relative;display:block;width:100%;padding:4px 17px 4px 0;border:0;border-radius:4px;
 background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;
}
.post-comment-preview-toggle:disabled{cursor:default;opacity:1;color:inherit}
.post-comment-preview-toggle:focus-visible{outline-offset:1px}
.post-comment-preview-toggle:not(:disabled)::after{
 content:"";position:absolute;inset:10px 4px auto auto;width:6px;height:6px;
 border:solid var(--polish-accent);border-width:0 1.5px 1.5px 0;transform:rotate(45deg);
}
.post-comment-preview-toggle[aria-expanded=true]::after{top:13px;transform:rotate(225deg)}
.post-comment-preview-text{display:block;overflow-wrap:anywhere;white-space:pre-wrap}
.post-comment-preview-toggle[aria-expanded=false] .post-comment-preview-text{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
}
.post-comment-preview-name{color:var(--polish-accent);font-weight:700}
.post-comment-preview-more{
 display:inline-flex;align-items:center;min-height:44px;padding:4px 0;border:0;background:transparent;
 color:var(--polish-accent);font:inherit;font-weight:650;cursor:pointer;text-align:left;
}
.post-comment-preview-more:focus-visible{outline:2px solid var(--polish-accent);outline-offset:2px;border-radius:4px}


.comment-form[hidden]{display:none}
.community-comment.is-reply{margin-inline-start:22px}
.comment-reply-to{margin:0 0 5px;color:var(--polish-accent);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.comment-meta-actions{display:flex;gap:3px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.comment-meta .comment-reply{color:var(--polish-accent);font-weight:600;min-height:38px}
.comment-reply-context{
 grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:8px;
 padding:0 0 0 9px;border-inline-start:2px solid var(--polish-accent);
 color:var(--polish-accent);font-size:13px;line-height:1.35;overflow-wrap:anywhere;
}
.comment-reply-context[hidden]{display:none}
.comment-reply-context button{
 flex:none;min-width:40px;min-height:36px;padding:0;border:0;border-radius:6px;
 background:transparent;color:var(--polish-accent);font-size:20px;
}
.comment-meta .comment-reply:focus-visible,.comment-reply-context button:focus-visible{
 outline:2px solid var(--polish-accent);outline-offset:1px;
}


html[data-theme] body .community-header{
 grid-template-columns:minmax(44px,1fr) auto minmax(88px,1fr);
}
.community-header-actions{display:flex;justify-self:end}
.shell-community-actions{width:88px}
.shell-community-actions button{
 flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;
 padding:0;border:0;border-radius:9px;background:transparent;color:var(--polish-accent);
}
#community-page{min-height:calc(100dvh - 156px);padding-bottom:0}
.app:has(>#community-page:not([hidden])){overflow:clip}
html[data-theme] body .app:has(>#community-page:not([hidden]))>header{position:sticky;top:0;z-index:4}
#community-page .detail-header h2{margin:0}
.community-header-actions #community-notifications-open{position:relative}
#community-notifications-open svg{width:21px;height:21px}
#community-notifications-count{
 position:absolute;top:4px;right:3px;min-width:17px;padding:3px 4px;
 border-radius:10px;background:#c83250;color:#fff;font-size:10px;font-weight:700;line-height:1;
}
#community-notifications-count[hidden]{display:none}

html[data-theme] body dialog.community-notifications{
 position:fixed;inset:0;width:min(376px,calc(100% - 52px));box-sizing:border-box;
 max-height:calc(100dvh - 28px);height:min(550px,calc(100dvh - 28px));margin:auto;
 padding:0;border:1px solid var(--polish-border);border-radius:15px;
 overflow:hidden;background:var(--polish-canvas);color:var(--polish-ink);
}
.community-notifications[open]{display:flex;flex-direction:column}
.community-notifications::backdrop{background:#100d19b3}
.community-notifications-body{min-height:0;overflow:auto;padding:0 13px 14px;overscroll-behavior:contain}
#community-notifications-list{list-style:none;margin:0;padding:0}
.community-notifications-toolbar{display:flex;justify-content:flex-end}
#community-notifications-read-all{
 min-height:44px;padding:6px 8px;border:0;border-radius:7px;background:transparent;
 color:var(--polish-accent);font-size:13px;font-weight:650;
}
#community-notifications-read-all[hidden]{display:none}
#community-notifications-status{margin:12px 4px;color:var(--polish-muted);font-size:14px}
#community-notifications-status:empty{display:none}
.community-notification{border-bottom:1px solid var(--polish-border)}
.community-notification.is-unread{background:var(--polish-panel)}
.community-notification-row{
 position:relative;display:flex;align-items:flex-start;gap:10px;width:100%;min-height:72px;
 padding:12px 16px 12px 4px;border:0;border-radius:4px;
 background:transparent;color:var(--polish-ink);text-align:left;cursor:pointer;
}
.community-notification.is-unread .community-notification-row::after{
 content:"";position:absolute;top:18px;right:6px;width:7px;height:7px;border-radius:50%;background:var(--polish-accent);
}
.community-notification-mail{
 display:inline-flex;align-items:center;min-height:44px;margin:0 4px 2px 48px;
 color:var(--polish-accent);font-size:13px;font-weight:650;
}
.community-notification-icon{
 display:grid;place-items:center;flex:none;width:34px;height:34px;
 border-radius:9px;background:var(--polish-raised);color:var(--polish-accent);
}
.community-notification-icon svg{width:18px;height:18px}
.community-notification-copy{min-width:0}
.community-notification-title{display:block;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.community-notification-title strong{font-weight:700}
.community-notification-excerpt{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 margin:3px 0 0;overflow:hidden;color:var(--polish-muted);font-size:13px;line-height:1.4;overflow-wrap:anywhere;
}
.community-notifications-body>button{
 min-height:44px;margin:8px 4px 0;padding:7px 10px;border:1px solid var(--polish-border);
 border-radius:8px;background:var(--polish-panel);color:var(--polish-accent);font-size:13px;
}
.community-notifications-body>button[hidden]{display:none}
#comments-newer{
 min-height:44px;padding:8px 10px;border:0;border-radius:8px;
 background:transparent;color:var(--polish-accent);font-size:13px;
}
.notification-comment-highlight .comment-bubble{
 border-radius:4px;outline:1px solid var(--polish-accent);outline-offset:4px;
}
