/* Plate Community.
   Loaded by both the public showcase and Studio; it uses only the tokens both pages
   already define (--bg, --panel, --panel-2, --line, --ink, --body, --muted, --orange,
   --radius, --sans). Studio's policy forbids remote images, so covers appear as links
   there and as lazy, no-referrer images only on the public page. */

/* ------------------------------------------------ public: source controls + band */
#community{scroll-margin-top:88px}
.source-filters{display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--panel);border:1px solid var(--line)}
.source-filter{background:none;border:0;border-radius:999px;color:var(--muted);padding:7px 15px;font-size:14px;font-weight:500;min-height:34px;white-space:nowrap;transition:color .15s,background .15s}
.source-filter:hover{color:var(--ink)}
.source-filter.is-active{background:var(--panel-2);color:var(--ink)}

.community-band{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px;margin:8px 0 24px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.community-band-copy{max-width:560px}.community-band-title{font-size:18px;font-weight:600;letter-spacing:-.02em;color:var(--ink);margin:0}.community-band-note{font-size:14px;color:var(--muted);margin:6px 0 0;line-height:1.5}.community-band-actions{display:flex;align-items:flex-end;flex-direction:column;gap:10px}.community-band-status{font-size:14px;line-height:1.5;color:var(--body);max-width:350px;margin:0}.community-band-status:empty{display:none}.community-band-cta{white-space:nowrap;min-height:44px}#community-retry{border:0;border-radius:8px;padding:8px 14px;color:var(--ink);background:var(--panel-2);min-height:44px}

/* ------------------------------------------------ public: community card */
.community-card{display:flex;flex-direction:column;min-width:0}
.community-cover{position:relative;display:block;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.community-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.community-cover:hover .community-shot{transform:scale(1.03)}
.community-fallback{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(150deg,var(--panel-2),var(--panel))}
.community-cover:not(.is-fallback) .community-fallback{opacity:0}
.community-fallback-mark{font-size:clamp(20px,2.4vw,28px);font-weight:600;letter-spacing:-.03em;color:var(--muted)}
.community-tag{position:absolute;top:12px;left:12px;z-index:3;font-size:12px;font-weight:600;padding:5px 9px;border-radius:6px;background:rgba(11,11,13,.82);color:var(--ink);border:1px solid var(--line)}
.community-open{position:absolute;right:12px;bottom:12px;z-index:3;padding:6px 11px;border-radius:999px;background:rgba(11,11,13,.82);font-size:12.5px;font-weight:600;color:var(--ink);opacity:0;transition:opacity .2s}
.community-cover:hover .community-open,.community-cover:focus-visible .community-open{opacity:1}
.community-caption{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 2px 0}
.community-title{font-size:17px;font-weight:600;letter-spacing:-.02em;line-height:1.2;overflow-wrap:anywhere}
.community-credit{font-size:14px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.community-share{flex-shrink:0;min-height:34px;display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);font-size:13px;font-weight:600;color:var(--body)}
.community-share:hover{background:var(--panel-2);color:var(--ink)}
.community-card .community-summary{font-size:14px;line-height:1.55;color:var(--body);margin-top:8px;padding:0 2px;overflow-wrap:anywhere}

/* ------------------------------------------------ Studio: section frame */
.community{margin-top:72px;padding-top:40px;border-top:1px solid var(--line)}
.community-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;flex-wrap:wrap}
.community h2{font-size:clamp(26px,2.6vw,36px)}
.community h3{font-size:19px}
.community-lead{margin-top:14px;font-size:16px;line-height:1.6;max-width:70ch;color:var(--body)}
.community-gate{margin-top:22px;padding:16px 18px;border:1px dashed var(--line);border-left:2px solid var(--orange);border-radius:12px;font-size:15px;line-height:1.6;color:var(--body);max-width:70ch}
.community-work{display:grid;grid-template-columns:1fr;gap:28px;margin-top:28px;align-items:start}

/* ------------------------------------------------ Studio: submission form */
.community-form{padding:24px;border-radius:var(--radius);background:var(--panel);border:1px solid var(--line)}
.community-form-title{margin-bottom:18px}
.community-form input,.community-form textarea,.community-form select{margin-bottom:4px}
.community-form label{margin-top:16px}
.community-form-title+label{margin-top:0}
.community-form textarea{resize:vertical;min-height:88px}
.community-form select{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px 14px;font-size:16px;line-height:1.4;min-height:48px}
.community-form select:focus{border-color:var(--orange);outline:none}
.community-form [aria-invalid=true]{border-color:var(--danger,#e5484d)}
.community-optional{font-weight:400;color:var(--muted)}
.community-count{display:flex;justify-content:flex-end;font-size:13px;color:var(--muted);margin-top:2px}
.community-count .is-over{color:#ff8a8d}
.community-consent{margin-top:20px;padding:14px 16px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.community-public-list{font-size:13.5px;line-height:1.6;color:var(--muted)}
.community-public-list strong{color:var(--body)}
.community-check{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0 0;font-weight:400;font-size:13.5px;line-height:1.5;color:var(--body)}
.community-check input{width:18px;height:18px;flex-shrink:0;margin:1px 0 0;accent-color:var(--orange)}
.community-check span{min-width:0}
.community-status{margin-top:12px;font-size:14px;line-height:1.6;color:var(--body)}
.community-status:empty{display:none}
#community-share[aria-disabled=true]{opacity:.5;pointer-events:none}

/* ------------------------------------------------ Studio: own list and queue */
.community-mine h3,.community-queue h3{margin-bottom:14px}
.community-list{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;list-style:none}
.community-list:empty{display:none}
.community-row{padding:16px 18px;border-radius:12px;background:var(--panel);border:1px solid var(--line)}
.community-row-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.community-row h4{margin:0;font-size:16px;font-weight:600;letter-spacing:-.02em;line-height:1.25;overflow-wrap:anywhere}
.community-meta{font-size:13px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.community-row .community-summary{font-size:14px;line-height:1.55;color:var(--body);margin-top:10px;overflow-wrap:anywhere}
.community-note{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--bg);border:1px solid var(--line);font-size:13.5px;line-height:1.55;color:var(--body);overflow-wrap:anywhere}
.community-note strong{color:var(--ink)}
.community-row-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}
.community-row-actions .text-link{min-height:36px;font-size:14px}
.community-row-status{font-size:13.5px;color:var(--muted);margin-top:8px}
.community-row-status:empty{display:none}
.community-pill{flex-shrink:0;display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--line);color:var(--body);white-space:nowrap}
.community-pill.is-pending{color:#f0b429;border-color:rgba(240,180,41,.4);background:rgba(240,180,41,.1)}
.community-pill.is-approved{color:var(--orange);border-color:rgba(255,106,26,.45);background:rgba(255,106,26,.1)}
.community-pill.is-rejected{color:#ff8a8d;border-color:rgba(229,72,77,.4);background:rgba(229,72,77,.1)}
.community-queue{margin-top:44px;padding-top:28px;border-top:1px solid var(--line)}
.community-queue .community-head{align-items:center}
.community-review .community-note-label{margin-top:14px;font-size:13px;font-weight:500;color:var(--muted)}
.community-review .community-note-input{width:100%;min-height:60px;resize:vertical;font-size:14px}
.community-review .form-error{margin-top:10px}

@media(max-width:1100px){.community-work{grid-template-columns:1fr}}
@media(max-width:900px){.community-band{align-items:flex-start}.community-band-actions{gap:14px}}
@media(max-width:700px){
 .community{margin-top:48px}
 .community-form{padding:18px}
 .community-row-head{display:block}
 .community-pill{margin-top:8px}
 .source-filters{margin-top:10px;width:100%;justify-content:space-between}
 .source-filter{flex:1;padding:7px 8px}
 .community-band{margin-top:14px;padding:14px}
 .community-caption{display:block}
 .community-share{margin-top:10px}
}
@media(prefers-reduced-motion:reduce){
 .community-shot,.community-open,.source-filter{transition:none}
 .community-cover:hover .community-shot{transform:none}
}

/* The closed invitation gives way to the form only when asked. */
.community-head{align-items:center}.community h2{font-size:clamp(26px,2.8vw,38px)}.community-lead{margin-top:12px;font-size:16px;line-height:1.5;color:var(--body)}.community-form{width:min(800px,100%);padding:28px}.community-form:not([hidden]){animation:community-enter .2s ease-out}.community-form-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.community-form-title{margin:0}.community-form label{font-size:15px}.community-form .help{font-size:14px}.community-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px}.community-optional-fields{margin-top:24px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.community-optional-fields summary,.community-privacy summary{cursor:pointer;min-height:32px;font-size:14px;font-weight:500;color:var(--body);line-height:1.5}.community-optional-fields summary span{color:var(--muted);font-weight:400;margin-left:8px}.community-consent{padding:0;border:0;background:none}.community-check{font-size:14px;line-height:1.6;margin:0}.community-check input{padding:0!important;min-width:18px;max-width:18px}.community-privacy{margin:10px 0 0 28px}.community-public-list{font-size:14px;color:var(--body);line-height:1.6;margin-top:8px}.community-status{font-size:15px;color:var(--ink)}.community-status:not(:empty){border-left:3px solid var(--orange);padding:12px 16px;background:var(--panel);border-radius:0 8px 8px 0;margin-top:20px}.community-mine h3{font-size:16px;font-weight:500;color:var(--body)}.community-mine .briefs-empty{font-size:15px;padding:18px 0;border:0;color:var(--muted)}.community-count{font-size:14px}.community-meta{font-size:14px}.community-pill{font-size:13px}.community-review .community-note-label{font-size:14px}#community-share{font-size:14px}#community-share[aria-disabled=true]{display:none}#community-share-note{font-size:14px}
@keyframes community-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:700px){.community-band{padding:20px;flex-direction:column;align-items:flex-start}.community-band-actions{align-items:flex-start}.community-band-title{font-size:17px}.community-head{align-items:flex-start;gap:20px}.community-field-pair{grid-template-columns:1fr;gap:0}.community-form{padding:20px}.community-optional-fields summary span{display:block;margin:4px 0 0}.community-privacy{margin-left:0}.community-review .community-note-input{font-size:16px}}
@media(prefers-reduced-motion:reduce){.community-form:not([hidden]){animation:none}}
