:root {
  --community-bg: #07101f;
  --community-panel: #0d192d;
  --community-panel-strong: #111f37;
  --community-line: #30445f;
  --community-line-soft: rgba(142, 166, 198, .2);
  --community-text: #f4f8ff;
  --community-muted: #afbed3;
  --community-green: #69e6b6;
  --community-blue: #5ebff1;
  --community-purple: #a478f1;
  --community-danger: #ff91a0;
}

.community-invite,
.community-modal,
.community-modal * {
  box-sizing: border-box;
}

.community-invite {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  margin: 22px 0 4px;
  padding: 20px;
  border: 1px solid rgba(105, 230, 182, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 95% 10%, rgba(141, 87, 235, .16), transparent 38%),
    linear-gradient(135deg, rgba(10, 29, 47, .98), rgba(15, 25, 48, .98));
  color: var(--community-text);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .19);
}

.community-invite::after {
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(49, 206, 154, .07);
  content: "";
  pointer-events: none;
}

.community-invite__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(105, 230, 182, .36);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(35, 206, 139, .17), rgba(78, 170, 238, .12));
}

.community-invite__icon span {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--community-green);
  border-radius: 50%;
  background: #0d192d;
}

.community-invite__icon span:nth-child(1) { transform: translate(-10px, -7px); }
.community-invite__icon span:nth-child(2) { transform: translate(10px, -7px); }
.community-invite__icon span:nth-child(3) { transform: translate(0, 10px); }

.community-invite__copy {
  min-width: 0;
}

.community-invite h3,
.community-dialog h2,
.community-dialog h3,
.community-dialog h4 {
  color: var(--community-text);
}

.community-invite h3 {
  margin: 3px 0 6px;
  font-size: clamp(1.15rem, 3vw, 1.42rem);
}

.community-invite__copy > p:last-child {
  max-width: 610px;
  margin: 0;
  color: #bccadd;
  line-height: 1.5;
}

.community-eyebrow {
  margin: 0;
  color: var(--community-green) !important;
  font-size: .72rem !important;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.3 !important;
  text-transform: uppercase;
}

.community-primary,
.community-secondary,
.community-icon-button,
.community-link-button,
.community-back,
.community-tag,
.community-report-button,
.community-danger,
.community-danger-link,
.community-tabs button {
  appearance: none;
  width: auto;
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.community-primary {
  border: 0;
  background: linear-gradient(90deg, #2ad58f, #54bff1 58%, #9870ec);
  color: #04121d;
  box-shadow: 0 9px 24px rgba(51, 194, 168, .18);
}

.community-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.community-primary:disabled,
.community-secondary:disabled,
.community-link-button:disabled,
.community-danger:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
}

.community-secondary {
  border: 1px solid #3b526f;
  background: #17253d;
  color: #eef5ff;
}

.community-secondary:hover:not(:disabled) {
  border-color: #6683a7;
  background: #1b2c49;
}

.community-primary:focus-visible,
.community-secondary:focus-visible,
.community-icon-button:focus-visible,
.community-link-button:focus-visible,
.community-back:focus-visible,
.community-tag:focus-visible,
.community-report-button:focus-visible,
.community-danger:focus-visible,
.community-danger-link:focus-visible,
.community-tabs button:focus-visible,
.community-form input:focus-visible,
.community-dropzone:focus-within,
.community-consent:focus-within {
  outline: 3px solid rgba(94, 191, 241, .55);
  outline-offset: 2px;
}

.community-invite__button {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  white-space: nowrap;
}

.community-modal {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: rgba(2, 7, 18, .86);
  color: var(--community-text);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity .18s ease;
}

.community-modal.is-visible {
  opacity: 1;
}

.community-dialog {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(850px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid #334966;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% -10%, rgba(98, 77, 196, .18), transparent 35%),
    linear-gradient(160deg, #0f1c33, #091426 62%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, .66);
  transform: translateY(12px) scale(.985);
  transition: transform .18s ease;
}

.community-modal.is-visible .community-dialog {
  transform: translateY(0) scale(1);
}

.community-dialog__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--community-line-soft);
}

.community-dialog__header h2 {
  margin: 4px 0 0;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
}

.community-icon-button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  padding: 0;
  border: 1px solid #3a4e69;
  background: rgba(18, 31, 53, .88);
  color: #dfe9f6;
  font-size: 1.65rem;
  line-height: 1;
}

.community-dialog__body {
  min-height: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px 24px;
  scrollbar-color: #4c6482 transparent;
}

.community-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 230px;
  color: #d8e4f2;
  text-align: center;
}

.community-spinner {
  display: inline-block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  border: 3px solid rgba(105, 230, 182, .23);
  border-top-color: var(--community-green);
  border-radius: 50%;
  animation: community-spin .75s linear infinite;
}

@keyframes community-spin { to { transform: rotate(360deg); } }

.community-auth {
  width: min(480px, 100%);
  margin: 4px auto;
}

.community-auth__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.community-auth__mark {
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(105, 230, 182, .38);
  border-radius: 16px;
  background: rgba(46, 208, 146, .1);
  color: var(--community-green);
  font-size: 1.35rem;
}

.community-auth h3,
.community-panel-heading h3 {
  margin: 0 0 7px;
  font-size: 1.32rem;
}

.community-auth__intro p,
.community-panel-heading > p:last-child {
  margin: 0;
  color: var(--community-muted);
  line-height: 1.5;
}

.community-form {
  display: grid;
  gap: 9px;
}

.community-form label {
  color: #d6e2f0;
  font-size: .88rem;
  font-weight: 800;
}

.community-form input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #3b506c;
  border-radius: 12px;
  background: #071225;
  color: #f4f8ff;
  font: inherit;
  font-size: 1rem;
}

.community-form input::placeholder { color: #7588a1; }
.community-form .community-primary { margin-top: 5px; padding: 12px 16px; }

.community-turnstile {
  display: grid;
  min-height: 65px;
  place-items: center;
  overflow: hidden;
}

.community-turnstile iframe { max-width: 100%; }

.community-turnstile__loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--community-muted);
  font-size: .82rem;
  text-align: center;
}

.community-turnstile__loading .community-spinner {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.community-resend-protection {
  display: grid;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--community-line-soft);
}

.community-resend-protection > p {
  margin: 0;
  color: var(--community-muted);
  font-size: .8rem;
  line-height: 1.45;
  text-align: center;
}

.community-resend-protection .community-link-button { width: 100%; }

.community-code-input {
  letter-spacing: .26em;
  text-align: center;
  font-size: 1.35rem !important;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.community-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #38506f;
  border-radius: 10px;
  background: #0a172a;
  color: #d3dfed;
  font-size: .9rem;
  line-height: 1.45;
}

.community-status[hidden] { display: none; }
.community-status[data-type="success"] { border-color: rgba(105, 230, 182, .4); background: rgba(42, 213, 143, .08); color: #aaf2d5; }
.community-status[data-type="error"] { border-color: rgba(255, 145, 160, .45); background: rgba(255, 85, 110, .08); color: #ffb3bd; }

.community-fineprint {
  margin: 16px 0 0;
  color: #8fa2bb;
  font-size: .79rem;
  line-height: 1.55;
}

.community-fineprint a,
.community-consent a {
  color: #94ddff;
}

.community-link-button,
.community-back,
.community-danger-link {
  min-height: 36px;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #99dbfa;
}

.community-auth > .community-link-button { width: 100%; margin-top: 8px; }

.community-back {
  margin: 0 0 15px;
  color: #b4c8df;
  font-size: .86rem;
}

.community-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 16px;
  color: #b8c8dc;
  font-size: .82rem;
}

.community-account-row > span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.community-account-row i {
  display: grid;
  flex: 0 0 23px;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(42, 213, 143, .12);
  color: var(--community-green);
  font-style: normal;
  font-size: .75rem;
}

.community-account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-account-row .community-link-button {
  flex: 0 0 auto;
  color: #aebfd4;
  font-size: .8rem;
}

.community-account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.community-account-panel {
  margin: -6px 0 16px;
  padding: 14px;
  border: 1px solid #334962;
  border-radius: 13px;
  background: rgba(7, 18, 36, .84);
}

.community-account-panel[hidden],
.community-account-delete[hidden] {
  display: none !important;
}

.community-account-panel > div:first-child > strong {
  color: #e8f0fa;
  font-size: .9rem;
}

.community-account-panel > div:first-child > p {
  margin: 4px 0 0;
  color: #98aac1;
  font-size: .8rem;
  line-height: 1.45;
}

.community-account-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.community-account-panel__actions .community-secondary {
  min-height: 38px;
  padding: 7px 11px;
  font-size: .78rem;
}

.community-account-delete {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 145, 160, .36);
  border-radius: 12px;
  background: rgba(91, 27, 43, .15);
}

.community-account-delete > strong {
  color: #ffd6dc;
  font-size: .9rem;
}

.community-account-delete > p {
  margin: 5px 0 10px;
  color: #cfb4ba;
  font-size: .8rem;
  line-height: 1.5;
}

.community-account-delete > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 183, 193, .22);
  border-radius: 10px;
  background: rgba(30, 14, 23, .35);
  color: #e3cbd0;
  font-size: .78rem;
  line-height: 1.45;
  cursor: pointer;
}

.community-account-delete > label input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
  accent-color: #ef7083;
}

.community-account-delete > div:last-child {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.community-account-delete > div:last-child button {
  min-height: 39px;
  padding: 8px 11px;
  font-size: .76rem;
}

.community-account-status {
  margin-top: 11px;
}

.community-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 21px;
  padding: 5px;
  border: 1px solid #2e405a;
  border-radius: 14px;
  background: rgba(5, 14, 29, .72);
}

.community-tabs button {
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: #9db0c8;
  font-size: .86rem;
}

.community-tabs button.is-active {
  background: #1c2d49;
  color: #f2f7ff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}

.community-current-photo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
  padding: 13px 14px;
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: 14px;
  background: rgba(14, 165, 233, .08);
  color: #dbeafe;
}

.community-current-photo strong { color: #fff; }
.community-current-photo span { color: #a9bad0; font-size: .9rem; text-align: right; }

.community-panel-heading {
  margin-bottom: 17px;
}

.community-panel-heading .community-eyebrow { margin-bottom: 5px; }

.community-dropzone {
  position: relative;
  display: grid;
  min-height: 245px;
  overflow: hidden;
  place-items: center;
  border: 1.5px dashed #506985;
  border-radius: 17px;
  background: rgba(5, 15, 31, .7);
  cursor: pointer;
}

.community-dropzone:hover { border-color: var(--community-blue); }
.community-dropzone > input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.community-dropzone__empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 30px;
  color: #e4edf8;
  text-align: center;
}

.community-dropzone__empty[hidden],
.community-dropzone__preview[hidden] { display: none; }

.community-dropzone__empty i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 5px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(42, 213, 143, .15), rgba(94, 191, 241, .12));
  color: var(--community-green);
  font-style: normal;
  font-size: 1.8rem;
}

.community-dropzone__empty small { color: #91a5be; }

.community-dropzone__preview {
  position: relative;
  width: 100%;
  height: 320px;
}

.community-dropzone__preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #030a16;
}

.community-dropzone__preview strong {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(4, 11, 24, .88);
  color: #eef5ff;
  font-size: .8rem;
  backdrop-filter: blur(8px);
}

.community-privacy-note {
  margin: 14px 0 11px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 191, 241, .22);
  border-radius: 12px;
  background: rgba(27, 62, 90, .13);
}

.community-privacy-note strong {
  display: block;
  color: #ddecf9;
  font-size: .88rem;
}

.community-privacy-note strong span { color: var(--community-blue); }
.community-privacy-note p { margin: 5px 0 0; color: #9fb2c8; font-size: .82rem; line-height: 1.5; }

.community-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #334a65;
  border-radius: 12px;
  background: #091629;
  color: #bfccdc;
  font-size: .82rem;
  line-height: 1.5;
  cursor: pointer;
}

.community-consent input {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 1px 0 0;
  accent-color: #2ad58f;
}

.community-submit-photo {
  width: 100%;
  margin-top: 13px;
  padding: 13px 16px;
}

.community-success,
.community-empty {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
}

.community-success > span,
.community-empty__icon {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 64px;
  margin-bottom: 14px;
  padding: 0 9px;
  border: 1px solid rgba(105, 230, 182, .36);
  border-radius: 50%;
  background: rgba(42, 213, 143, .1);
  color: var(--community-green);
  font-size: 1.6rem;
  font-weight: 850;
}

.community-success h3,
.community-empty h3 { margin: 0 0 7px; }
.community-success p,
.community-empty p { max-width: 510px; margin: 0; color: var(--community-muted); line-height: 1.55; }

.community-success__actions {
  display: flex;
  gap: 10px;
  margin-top: 21px;
}

.community-success__actions button,
.community-empty > button { padding: 11px 15px; }
.community-success--compact { min-height: 300px; }
.community-empty--inline { min-height: 260px; border: 1px solid #2f425d; border-radius: 16px; background: rgba(6, 16, 33, .55); }
.community-empty--error .community-empty__icon { border-color: rgba(255, 145, 160, .4); background: rgba(255, 85, 110, .09); color: var(--community-danger); }

.community-rating__image-wrap {
  position: relative;
  display: grid;
  min-height: 280px;
  max-height: 390px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #334862;
  border-radius: 17px;
  background: #030a16;
}

.community-rating__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
}

.community-image-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aebed2;
}

.community-image-loading[hidden] { display: none; }

.community-selection-count {
  margin: 14px 0 9px;
  color: #b9cadd;
  font-size: .85rem;
  font-weight: 800;
}

.community-tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.community-tag {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #3a506d;
  border-radius: 999px;
  background: #101e34;
  color: #d4e0ee;
  font-size: .82rem;
}

.community-tag:hover { border-color: #6882a4; }
.community-tag.is-selected { border-color: var(--community-green); background: rgba(42, 213, 143, .13); color: #9af0ce; }
.community-tag.is-at-limit { opacity: .48; }

.community-rating__actions {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) minmax(180px, 1fr);
  gap: 10px;
  margin-top: 17px;
}

.community-rating__actions button { padding: 11px 14px; }

.community-report {
  margin-top: 18px;
  border-top: 1px solid var(--community-line-soft);
  color: #99acc4;
}

.community-report summary {
  width: max-content;
  margin: 10px auto 0;
  padding: 8px;
  color: #91a5bd;
  font-size: .78rem;
  cursor: pointer;
}

.community-report > p { margin: 7px 0 10px; font-size: .8rem; text-align: center; }

.community-report__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.community-report-button {
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid #3e4b5f;
  background: rgba(26, 35, 51, .7);
  color: #b7c2d0;
  font-size: .77rem;
}

.community-result-list {
  display: grid;
  gap: 12px;
}

.community-result-card {
  position: relative;
  padding: 16px;
  border: 1px solid #31455f;
  border-radius: 16px;
  background: linear-gradient(145deg, #0b192d, #0e1b30);
}

.community-result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.community-result-card h4 { margin: 0 0 3px; font-size: 1rem; }
.community-result-card small { color: #879bb4; }

.community-vote-badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #3c5370;
  border-radius: 999px;
  background: #0a1628;
  color: #bfd0e3;
  font-size: .72rem;
  font-weight: 800;
}

.community-result-card__body { margin-top: 13px; }
.community-result-card__body > strong { color: #eaf2fb; font-size: .9rem; }
.community-result-card__body > p { margin: 5px 0 0; color: #9caec4; font-size: .82rem; line-height: 1.45; }

.community-progress {
  height: 7px;
  overflow: hidden;
  margin: 9px 0 0;
  border-radius: 99px;
  background: #23334a;
}

.community-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--community-green), var(--community-blue));
}

.community-result-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.community-result-card__actions .community-secondary { padding: 8px 11px; font-size: .79rem; }
.community-danger-link { color: #ee9aa5; font-size: .75rem; }

.community-delete-confirm {
  margin-top: 13px;
  padding: 12px;
  border: 1px solid rgba(255, 145, 160, .35);
  border-radius: 12px;
  background: rgba(85, 24, 39, .16);
}

.community-delete-confirm p { margin: 0; color: #d9c1c6; font-size: .82rem; line-height: 1.45; }
.community-delete-confirm > div { display: flex; gap: 8px; margin-top: 10px; }
.community-delete-confirm button { padding: 8px 10px; font-size: .77rem; }

.community-danger {
  border: 1px solid rgba(255, 145, 160, .52);
  background: #5e2030;
  color: #fff0f2;
}

.community-chart-section { padding-bottom: 4px; }
.community-chart { display: grid; gap: 14px; }

.community-chart-row__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #dbe7f4;
  font-size: .87rem;
}

.community-chart-row__label span { color: #98aac0; font-variant-numeric: tabular-nums; }

.community-chart-row__track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #223248;
}

.community-chart-row__track span {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #2ad58f, #54bff1 60%, #9870ec);
  box-shadow: 0 0 15px rgba(84, 191, 241, .25);
}

.community-result-privacy {
  margin: 20px 0 0;
  padding: 11px 12px;
  border: 1px solid rgba(105, 230, 182, .23);
  border-radius: 11px;
  background: rgba(42, 213, 143, .06);
  color: #a8c9bc;
  font-size: .8rem;
  text-align: center;
}

.community-result-privacy span { color: var(--community-green); }
.community-muted { color: var(--community-muted); line-height: 1.5; }

@media (max-width: 720px) {
  .community-invite {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-invite__button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .community-modal {
    align-items: flex-end;
    padding: max(8px, env(safe-area-inset-top)) 0 0;
  }

  .community-dialog {
    width: 100%;
    max-height: calc(100dvh - max(8px, env(safe-area-inset-top)));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 22px 22px 0 0;
  }

  .community-dialog__header {
    padding: 16px 15px 13px;
  }

  .community-dialog__body {
    padding: 15px 14px max(22px, env(safe-area-inset-bottom));
  }

  .community-dialog__header h2 { font-size: 1.27rem; }

  .community-tabs {
    position: sticky;
    z-index: 2;
    top: -15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 -2px 18px;
    background: rgba(5, 14, 29, .94);
    backdrop-filter: blur(8px);
  }

  .community-tabs button {
    padding: 8px 5px;
    font-size: .72rem;
  }

  .community-dropzone { min-height: 220px; }
  .community-dropzone__preview { height: 280px; }
  .community-rating__image-wrap { min-height: 250px; max-height: 48dvh; }
  .community-rating__image-wrap img { max-height: 48dvh; }

  .community-success__actions,
  .community-rating__actions {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .community-success__actions { display: grid; }
  .community-rating__actions .community-primary { grid-row: 1; }
  .community-report__options { grid-template-columns: 1fr; }
  .community-account-panel__actions,
  .community-account-delete > div:last-child { align-items: stretch; flex-direction: column; }
  .community-account-panel__actions button,
  .community-account-delete > div:last-child button { width: 100%; }
  .community-current-photo { align-items: flex-start; flex-direction: column; gap: 4px; }
  .community-current-photo span { text-align: left; }
}

@media (max-width: 420px) {
  .community-invite {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .community-invite__icon { width: 48px; height: 48px; }
  .community-auth__intro { align-items: flex-start; }
  .community-auth__mark { width: 45px; height: 45px; flex-basis: 45px; border-radius: 13px; }
  .community-account-row { align-items: flex-start; }
  .community-result-card__top { display: block; }
  .community-vote-badge { display: inline-flex; margin-top: 8px; }
  .community-result-card__actions { align-items: flex-start; flex-direction: column; }
  .community-delete-confirm > div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .community-modal,
  .community-dialog,
  .community-primary {
    scroll-behavior: auto;
    transition: none;
  }

  .community-spinner { animation-duration: 1.6s; }
}
