/* Card-first social surfaces, isolated from the binder, portfolio and print sheets. */
#panel-shop { min-width: 0; }
.community-shell { width: min(1120px, 100%); padding: 12px 0 76px; color: var(--ink); font-size: 15px; line-height: 1.55; }
.community-shell *, .community-dialog * { box-sizing: border-box; }
.community-shell .card { background: var(--bg-2); box-shadow: none; padding: 22px; border-radius: 18px; }
.community-shell :is(button,input,select,textarea), .community-dialog :is(button,input,textarea), .community-chat-drawer :is(button,textarea) { font: inherit; }
.community-shell .btn, .community-dialog .btn { min-height: 44px; padding: 9px 14px; border-radius: 10px; font-size: 14px; box-shadow: none; }
.community-shell :is(input:not([type=checkbox]),select,textarea), .community-dialog textarea { min-width: 0; max-width: 100%; font-size: 16px; color: var(--ink); }
.community-shell input[type=checkbox] { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.community-shell .hint, .community-dialog .hint { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.community-shell :is(h2,h3,p), .community-dialog :is(h2,h3,p) { overflow-wrap: anywhere; }
.community-head { align-items: center; flex-direction: row; gap: 16px; padding: 8px 0 16px; margin: 0; }
.community-head h2 { font-size: clamp(26px,3.5vw,36px); font-weight: 750; line-height: 1.2; letter-spacing: -.04em; margin: 5px 0 10px; }
.community-head > .btn { flex: none; }
.community-eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .13em; color: var(--accent); }
.community-nav { width: fit-content; max-width: 100%; margin: 8px 0 24px; padding: 4px; background: var(--bg); overflow-x: auto; }
.community-nav button { min-height: 44px; padding: 10px 19px; font-size: 14px; white-space: nowrap; flex: 0 0 auto; }
.community-nav button.is-active { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 700; }
.community-feed-layout { grid-template-columns: minmax(0,730px) minmax(240px,1fr); gap: 24px; }
.community-feed { gap: 22px; }
.community-safety { position: static; }
.community-safety h3 { font-size: 17px; margin: 6px 0 10px; }
.community-safety p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.community-safety hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.community-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 42px; }
.community-initial { display: grid; place-items: center; background: color-mix(in srgb,var(--accent) 18%,var(--bg)); color: var(--accent); font-weight: 750; font-size: 19px; }
.community-composer { margin: 0 0 22px; }
.community-composer > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; min-height: 48px; }
.community-composer > summary::-webkit-details-marker { display: none; }
.community-composer > summary > span:nth-child(2) { flex: 1; font-weight: 650; }
.community-composer > summary small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 400; }
.community-composer > summary > span:last-child { font-size: 24px; color: var(--accent); }
.community-composer form { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
.community-composer label { font-size: 13px; }
.community-composer textarea { min-height: 100px; max-height: 250px; }
.community-attach-label { margin-top: 14px; }
.community-attach-label input { width: 100%; margin-top: 6px; }
.community-composer-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.community-composer-actions select { flex: 1 1 100%; width: 100%; }
.community-composer-actions [type=submit] { margin-left: auto; }
.community-composer-actions label { margin: 0; font-weight: 500; }
.community-composer form > .hint { display: block; margin-top: 12px; }
.community-photo-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.community-photo-picker input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.community-post-head { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.community-post-head > button { min-height: 44px; flex: 1; overflow-wrap: anywhere; }
.community-post-head > button span { font-size: 12px; }
.community-post-text { font-size: 16px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-post-menu { position: relative; display: block; width: auto; margin: 0 0 0 auto; align-self: flex-start; flex: none; }
.community-post-menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: grid; place-items: center; padding: 6px 10px; border-radius: 9px; color: var(--ink-2); }
.community-post-menu summary::-webkit-details-marker { display: none; }
.community-post-menu summary:hover { background: var(--bg-3); }
.community-post-menu > div { position: absolute; right: 0; top: 100%; z-index: 5; display: grid; width: 180px; gap: 3px; padding: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px #0005; }
.community-post-menu .btn { justify-content: flex-start; width: 100%; font-size: 13px; padding: 8px; }
.community-post-card { width: 100%; grid-template-columns: minmax(130px,.85fr) minmax(0,1fr); gap: 24px; margin-top: 16px; padding: 24px; color: var(--ink); text-align: left; cursor: pointer; background: radial-gradient(ellipse at 18% 40%,color-mix(in srgb,var(--accent) 13%,transparent),transparent 70%),var(--bg); }
.community-post-card .community-card-art { position: relative; display: grid; place-items: center; }
.community-post-card img { width: min(100%,230px); height: auto; aspect-ratio: 63/88; object-fit: contain; border-radius: 9px; filter: drop-shadow(0 12px 16px #0005); transition: transform .18s ease; }
.community-post-card:hover img { transform: translateY(-3px); }
.community-post-card > div b { font-size: 22px; line-height: 1.25; }
.community-post-card > div span { font-size: 13px; margin-top: 9px; }
.community-post-card small { margin-top: 22px; color: var(--accent); }
.community-post-card .community-card-art > span, .community-tile-image > span { position: absolute; bottom: 8px; left: 8px; right: 8px; width: fit-content; max-width: calc(100% - 16px); margin: 0; padding: 3px 8px; border-radius: 6px; color: #fff; background: #0a1025eb; font-size: 11px; line-height: 1.3; }
.community-post-photo { width: 100%; max-height: 600px; min-height: 180px; }
.community-post-photo + .community-post-card { grid-template-columns: 70px minmax(0,1fr); padding: 12px; }
.community-post-photo + .community-post-card > div b { font-size: 16px; }
.community-post-photo + .community-post-card small { margin-top: 4px; }
.community-post-footer { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); }
.community-post-footer .btn { font-size: 13px; }
.community-post-footer .btn:last-child { margin-left: auto; }
.community-post-footer [aria-pressed=true] { color: var(--accent); background: color-mix(in srgb,var(--accent) 12%,transparent); }
.community-load-more { display: flex; justify-content: center; width: 100%; margin: 20px 0; }
.community-error { margin: 12px 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; color: var(--ink); background: var(--bg-2); font-size: 14px; }
.community-section-title { gap: 20px; align-items: center; margin: 20px 0; }
.community-section-title h2 { font-size: 24px; }
.community-search { display: grid; gap: 7px; min-width: 0; width: min(100%,350px); font-size: 13px; color: var(--ink-2); }
.community-search input { width: 100%; min-height: 46px; }
.shop-collectors { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.shop-collector-card { display: flex; flex-direction: column; gap: 10px; }
.shop-collector-card p { color: var(--ink-2); font-size: 14px; flex: 1; margin: 0 0 10px; }
.shop-collector-card .shop-collector { display: flex; gap: 12px; padding-bottom: 0; }
.shop-collector-name { min-width: 0; }
.shop-collector-actions { gap: 6px; }
.shop-collector-actions .btn { font-size: 13px; }
.community-profile-layout { gap: 24px; }
.community-profile-heading .community-avatar { width: 60px; height: 60px; margin-bottom: 12px; }
.community-profile-tools { display: flex; gap: 8px; align-items: center; }
.community-profile-heading p { max-width: 620px; }
.community-shell .shop-profile-form { display: flex; flex-direction: column; gap: 18px; }
.community-shell .shop-profile-form > label:not(.check) { display: flex; align-items: stretch; flex-direction: column; gap: 6px; }
.community-shell .shop-profile-form > .check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.community-shell .check em { display: block; font-size: 12px; font-style: normal; color: var(--ink-2); line-height: 1.5; white-space: normal; }
.community-shell .shop-id { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.community-shell .shop-id img { width: 46px; height: 46px; border-radius: 50%; }
.community-shell .shop-id > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.community-binder-picker[hidden] { display: none; }
.community-binder-picker .check { min-height: 44px; align-items: center; gap: 8px; }
.community-binder-picker .check span { white-space: normal; line-height: 1.4; }
.community-card-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.community-binder-set { margin-top: 24px; }
.community-card-tile { display: flex; flex-direction: column; padding: 9px; gap: 9px; }
.community-tile-image { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.community-tile-image img { width: 100%; aspect-ratio: 63/88; object-fit: contain; border-radius: 7px; }
.community-card-tile > div b { font-size: 14px; }
.community-card-tile > div span { font-size: 12px; }
.community-card-tile > div b, .community-card-tile > div span { white-space: normal; }
.community-card-tile > .btn { margin-top: auto; }
.community-shell .shop-offer-form { grid-template-columns: 1fr; gap: 8px; }
.community-shell .shop-offer { padding: 20px; font-size: 15px; }
.community-dialog { color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 24px; width: min(680px,calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; margin: auto; font-size: 15px; box-shadow: 0 24px 80px #0006; }
.community-dialog::backdrop { background: #030817b8; backdrop-filter: blur(4px); }
.community-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.community-dialog > header h2 { font-size: 23px; }
.community-card-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: center; }
.community-card-detail > img { width: 100%; border-radius: 10px; }
.community-card-detail h3 { margin: 14px 0; }
.community-card-detail p { margin: 12px 0; }
.community-discussion-context { padding: 14px; background: var(--bg); border-radius: 10px; white-space: pre-wrap; }
.community-comments { max-height: 40dvh; min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: 10px 0; }
.community-comments article { padding: 12px 0; border-bottom: 1px solid var(--line); }
.community-comments header { display: flex; gap: 12px; justify-content: space-between; }
.community-comments time { font-size: 12px; color: var(--ink-2); }
.community-comments p { white-space: pre-wrap; margin: 8px 0; }
.community-comments footer { text-align: right; }
.community-comments footer .btn { font-size: 12px; }
.community-reply { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.community-reply textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; }
.community-reply > div { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.community-report { padding: 18px 0; border-bottom: 1px solid var(--line); }
.community-report blockquote { margin: 12px 0; padding: 12px; background: var(--bg); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.community-report small { display: block; color: var(--ink-2); margin-bottom: 12px; }
.community-shell :focus-visible, .community-dialog :focus-visible, .community-chat-drawer :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.community-chat-overlay { top: var(--chat-vtop,0px); bottom: auto; height: var(--chat-vheight,100dvh); }
.community-chat-drawer { top: 12px; bottom: 12px; height: auto; max-height: min(590px,calc(100% - 24px)); font-size: 14px; margin-top: auto; }
.community-chat-drawer .btn { min-height: 44px; }
.community-chat-list .chat-list-head { padding-right: 12px; }
.chat-compose textarea { font-size: 16px; max-height: 140px; resize: none; }
.chat-compose .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.chat-list small, .chat-list time, .chat-thread-head > div span, .chat-messages article footer { font-size: 12px; }
.chat-messages article p { font-size: 15px; line-height: 1.5; }
.chat-messages article footer button { min-height: 32px; padding: 4px; }
.chat-list > button { min-height: 68px; }
.chat-messages .community-error { flex: none; }
@media (max-width:960px) {
  .community-feed-layout, .community-profile-layout { grid-template-columns: minmax(0,1fr); }
  .community-feed-layout > .community-safety { display: none; }
  .community-shell { max-width: 760px; }
  .shop-collectors { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .community-card-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width:620px) {
  .community-shell { padding-top: 0; }
  .community-shell .card { padding: 16px; border-radius: 14px; }
  .community-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .community-head h2 { font-size: 28px; }
  .community-head > div > p:last-child { font-size: 14px; }
  .community-head > .btn { align-self: flex-end; margin-top: -4px; }
  .community-nav { width: 100%; margin-top: 0; margin-bottom: 18px; }
  .community-nav button { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; }
  .community-post-head { flex-direction: row; }
  .community-post-menu { width: auto; margin: 0 0 0 auto; }
  .community-post-card { grid-template-columns: minmax(95px,.85fr) minmax(0,1fr); padding: 16px; gap: 16px; }
  .community-post-card > div b { font-size: 18px; }
  .community-post-card .community-card-art > span { font-size: 10px; }
  .community-post-footer { gap: 0; }
  .community-post-footer .btn { padding: 8px; font-size: 12px; }
  .community-composer > summary small { display: none; }
  .shop-collectors { grid-template-columns: 1fr; }
  .community-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .community-section-title { align-items: stretch; }
  .community-search { width: 100%; }
  .community-binder-picker > div { grid-template-columns: 1fr; }
  .community-card-detail { grid-template-columns: 1fr; gap: 16px; }
  .community-card-detail > img { width: min(100%,270px); margin-inline: auto; }
  .community-dialog { padding: 18px; }
  .community-chat-drawer { top: 0; bottom: 0; height: 100%; max-height: 100%; padding-top: env(safe-area-inset-top,0px); }
  .community-chat-drawer[data-thread=open] .community-chat-list { display: none; }
  .community-chat-drawer[data-thread=closed] .community-chat-thread { display: none; }
  .community-chat-list .chat-list-head { padding-right: 58px; }
  .chat-compose { padding-bottom: max(10px,env(safe-area-inset-bottom,0px)); }
}
@media (prefers-reduced-motion:reduce) { .community-post-card img { transition: none; } .community-post-card:hover img { transform: none; } }
