:root {
  --page-background: #f3f5f8;
  --surface: #ffffff;
  --surface-subtle: #f8fafc;
  --border-subtle: #e2e8f0;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --text-strong: #0f172a;
  --text-medium: #475569;
  --text-muted: #64748b;
  --success-bg: rgba(34, 197, 94, 0.14);
  --success-text: #15803d;
  --pending-bg: rgba(59, 130, 246, 0.12);
  --pending-text: #1d4ed8;
  --muted-bg: rgba(148, 163, 184, 0.18);
  --muted-text: #475569;
  --lock-bg: rgba(245, 158, 11, 0.18);
  --lock-text: #b45309;
  --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-subtle: 0 2px 8px rgba(15, 23, 42, 0.08);
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;
  --header-height: 64px;
}

body {
  font-family: var(--font-family-sans);
  background: var(--page-background);
  -webkit-font-smoothing: antialiased;
  font-weight: var(--font-weight-regular);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.55;
  color: var(--text-strong);
}

body.composer-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

    .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;
    }

.main-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 clamp(48px, 12vh, 96px);
  min-height: calc(100vh - var(--header-height) - 140px);
}

@media (max-width: 1024px) {
  .main-content {
    padding: 0 0 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
}

.community-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  background: linear-gradient(135deg, #f8fafc, #e0f2ff);
  color: #0f172a;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  min-height: clamp(160px, 26vh, 220px);
}

.community-hero::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(148, 163, 184, 0.18);
  pointer-events: none;
}

.hero-panels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  align-items: stretch;
}

.hero-heading {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-strong);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 18px);
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--radius-medium);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.hero-panel--main {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(37, 99, 235, 0.18);
}

.hero-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-community-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.school-strip__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 16px);
  width: 100%;
}

.school-strip__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1.4vw, 16px);
  flex-wrap: nowrap;
  width: 100%;
}

.community-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.48);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-medium);
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: 28px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.community-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.community-chip:hover {
  border-color: rgba(37, 99, 235, 0.55);
  color: var(--accent-strong);
}

.community-chip.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0.32));
  border-color: rgba(37, 99, 235, 0.55);
  color: var(--accent-strong);
}

.verification-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 60;
}

.verification-modal {
  position: fixed;
  top: clamp(60px, 12vh, 120px);
  left: 50%;
  transform: translateX(-50%) scale(0.96);
  width: min(460px, calc(100% - 32px));
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.verification-backdrop.is-visible,
.verification-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.verification-modal.is-visible {
  transform: translateX(-50%) scale(1);
}

.verification-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px) 0;
  gap: 12px;
}

.verification-modal__kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 4px;
}

.verification-modal__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  font-weight: 700;
  color: var(--text-strong);
}

.verification-modal__subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-medium);
}

.verification-modal__close {
  border: none;
  background: rgba(226, 232, 240, 0.55);
  color: var(--text-medium);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.verification-modal__close:hover {
  background: rgba(37, 99, 235, 0.16);
  color: var(--accent-strong);
}

.verification-modal__body {
  padding: clamp(16px, 2.2vw, 22px) clamp(20px, 2.6vw, 28px) clamp(18px, 2.3vw, 24px);
  display: grid;
  gap: clamp(16px, 2.2vw, 22px);
}

.verification-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.verification-option {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 18px);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.85);
}

.verification-option__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.verification-option__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.verification-option__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-strong);
}

.verification-option__desc {
  margin: 6px 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-medium);
}

.verification-email {
  display: grid;
  gap: 10px;
}

.verification-email__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-medium);
}

.verification-email__group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verification-email__input {
  flex: 1 1 auto;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verification-email__input:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.verification-email__domain {
  flex: 0 0 auto;
  min-width: max-content;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(226, 232, 240, 0.6);
  color: var(--text-medium);
  font-size: 0.92rem;
  font-weight: 600;
}

.verification-email__domain.is-placeholder {
  background: rgba(226, 232, 240, 0.4);
  color: var(--text-muted);
  font-weight: 500;
}

.verification-email__hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.verification-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
  margin: 4px 0;
}

.verification-divider::before {
  content: '또는';
  position: absolute;
  padding: 0 10px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.verification-action {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: not-allowed;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  opacity: 0.65;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verification-action.is-secondary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-strong);
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.verification-modal__footer {
  padding: 0 clamp(20px, 2.6vw, 28px) clamp(20px, 2.8vw, 26px);
}

.verification-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero-panels {
    grid-template-columns: 1fr;
  }
}


    .primary-button,
    .search-button,
    .chip,
    .file-select,
    .page-button,
    .composer-submit,
    .composer-close,
    .file-pill__remove {
      border: none;
      cursor: pointer;
    }

    .primary-button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.7rem 1.2rem;
      border-radius: 999px;
      background: linear-gradient(135deg, #2563eb, #1d4ed8);
      color: #fff;
      font-weight: 600;
      font-size: 0.93rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.26);
    }

    .primary-button:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
    }

    .secondary-link {
      color: var(--accent-strong);
      font-size: 0.85rem;
      text-decoration: underline;
      text-underline-offset: 6px;
    }

.toolbar-compose {
  white-space: nowrap;
  padding: 0.65rem 1.1rem;
}

.feed-toolbar {
  position: sticky;
  top: calc(var(--header-height) + clamp(10px, 1.5vw, 14px));
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  margin: clamp(18px, 2.8vh, 24px) 0 clamp(16px, 2.4vh, 22px);
  padding: 0.5rem clamp(0.6rem, 2vw, 1.4rem);
  border-radius: 18px;
  background: rgba(243, 245, 248, 0.86);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.search-block {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.search-block i {
  color: var(--text-muted);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.93rem;
  color: var(--text-strong);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-medium);
  border-radius: 999px;
  padding: 0.5rem 0.65rem;
  width: 40px;
  height: 40px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.search-button:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--accent-strong);
  border-color: rgba(148, 163, 184, 0.5);
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.filter-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chip {
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-medium);
  background: var(--surface-subtle);
  border: 1px solid rgba(148, 163, 184, 0.26);
  transition: all 0.2s ease;
}

.chip.is-active {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  border-color: rgba(37, 99, 235, 0.32);
}


.content-columns {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .community-hero {
    padding: 24px;
    min-height: 200px;
  }

  .feed-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .toolbar-actions {
    justify-content: space-between;
  }
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.post-card:hover,
.post-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  outline: none;
}

.post-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.post-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-strong);
  min-width: 0;
}

.post-card__title.is-private {
  color: var(--lock-text);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: rgba(15, 23, 42, 0.08);
}

.badge-lock {
  background: var(--lock-bg);
  color: var(--lock-text);
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(0.7rem, 1.2vw, 0.95rem) clamp(0.9rem, 1.6vw, 1.15rem);
  background: var(--surface);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.post-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.post-card__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-medium);
  flex-wrap: wrap;
}

.post-card__meta i {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.post-card__meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.meta-item--count {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
  padding: 0.15rem 0.5rem;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.meta-separator {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.72rem;
}
    .side-panel {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
      position: sticky;
      top: calc(var(--header-height) + clamp(200px, 26vh, 240px));
    }

    .panel-card {
      background: var(--surface);
      border-radius: var(--radius-medium);
      border: 1px solid rgba(226, 232, 240, 0.9);
      padding: 1.1rem 1.2rem;
      box-shadow: var(--shadow-subtle);
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .panel-card h3 {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text-strong);
    }

    .panel-card p,
    .panel-card li {
      font-size: 0.85rem;
      color: var(--text-medium);
      line-height: 1.5;
    }

    .panel-card ul {
      display: grid;
      gap: 0.5rem;
    }

    #loginPrompt {
      display: none;
    }

    #loginPrompt:not(.hidden) {
      display: block;
    }

    .login-card {
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .login-card a {
      align-self: flex-start;
      padding: 0.55rem 1.3rem;
      background: var(--accent);
      color: #fff;
      border-radius: 999px;
      font-weight: 600;
      transition: background 0.2s ease;
    }

    .login-card a:hover {
      background: var(--accent-strong);
    }

    .empty-state {
      text-align: center;
      padding: 48px 16px;
      color: var(--text-muted);
      background: var(--surface);
      border-radius: var(--radius-medium);
      border: 1px dashed var(--border-subtle);
      display: grid;
      gap: 0.5rem;
      justify-items: center;
    }

    .pagination {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin: 32px 0 0;
      flex-wrap: wrap;
    }

    .pagination[hidden] {
      display: none;
    }

    .page-button {
      padding: 0.5rem 0.95rem;
      border-radius: 999px;
      border: 1px solid rgba(148, 163, 184, 0.35);
      background: var(--surface);
      font-weight: 600;
      font-size: 0.85rem;
      color: var(--text-medium);
      transition: all 0.2s ease;
    }

    .page-button:hover {
      color: var(--accent-strong);
      border-color: rgba(37, 99, 235, 0.35);
    }

    .page-button.is-active {
      background: var(--accent);
      color: #fff;
      border-color: transparent;
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
    }

    .page-button.is-disabled,
    .page-button.is-disabled:hover {
      cursor: not-allowed;
      background: var(--surface-subtle);
      color: var(--text-muted);
      border-color: rgba(148, 163, 184, 0.2);
      box-shadow: none;
    }

    .composer-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.38);
      z-index: 60;
    }

    .composer-panel {
      position: fixed;
      right: clamp(18px, 5vw, 48px);
      top: calc(var(--header-height) + 16px);
      width: min(420px, calc(100% - 32px));
      max-height: calc(100vh - 104px);
      background: var(--surface);
      border-radius: 20px;
      box-shadow: 0 22px 60px rgba(15, 23, 42, 0.24);
      padding: 1.4rem 1.6rem;
      z-index: 70;
      overflow-y: auto;
      border: 1px solid rgba(226, 232, 240, 0.86);
      display: flex;
      flex-direction: column;
      gap: 1.1rem;
    }

    .composer-panel.hidden,
    .composer-backdrop.hidden {
      display: none;
    }

.composer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.composer-header .hero-kicker,
.composer-chip {
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent-strong);
}

    .composer-header h2 {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-strong);
      line-height: 1.3;
    }

    .composer-close {
      background: rgba(148, 163, 184, 0.16);
      border-radius: 999px;
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      color: var(--text-muted);
      transition: background 0.2s ease;
    }

    .composer-close:hover {
      background: rgba(148, 163, 184, 0.26);
    }

    .composer-form {
      display: grid;
      gap: 1rem;
    }

    fieldset {
      border: none;
      padding: 0;
      margin: 0;
    }

    .input-label {
      display: block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-medium);
      margin-bottom: 0.35rem;
    }

    .input-control,
    .textarea-control {
      width: 100%;
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.32);
      background: var(--surface-subtle);
      padding: 0.7rem 0.9rem;
      font-size: 0.92rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .textarea-control {
      min-height: 132px;
      resize: vertical;
    }

    .input-control:focus,
    .textarea-control:focus {
      outline: none;
      border-color: rgba(37, 99, 235, 0.55);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    }

    .radio-row,
    .checkbox-row {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      color: var(--text-medium);
      font-size: 0.85rem;
    }

    .radio-row label,
    .checkbox-row label {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }

    .privacy-hint {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .composer-dropzone {
      border: 1.5px dashed rgba(148, 163, 184, 0.45);
      border-radius: 16px;
      padding: 1.3rem;
      text-align: center;
      background: var(--surface-subtle);
      display: grid;
      gap: 0.6rem;
      font-size: 0.85rem;
      color: var(--text-medium);
      transition: border-color 0.2s ease, background 0.2s ease;
    }

    .composer-dropzone.is-dragging {
      border-color: var(--accent);
      background: rgba(37, 99, 235, 0.08);
    }

    .file-select {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.6rem 1rem;
      border-radius: 999px;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      font-size: 0.85rem;
      margin: 0 auto;
      transition: background 0.2s ease;
    }

    .file-select:hover {
      background: var(--accent-strong);
    }

    .file-list {
      display: grid;
      gap: 0.5rem;
    }

    .file-pill {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0.6rem 0.75rem;
      border-radius: 10px;
      background: rgba(37, 99, 235, 0.08);
      color: var(--text-medium);
      font-size: 0.8rem;
    }

    .file-pill__name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-right: 0.5rem;
    }

    .file-pill__remove {
      background: none;
      color: var(--accent-strong);
      font-weight: 600;
    }

    .attachment-notice {
      font-size: 0.78rem;
      color: #b91c1c;
      background: rgba(248, 113, 113, 0.08);
      border: 1px solid rgba(248, 113, 113, 0.35);
      padding: 0.65rem 0.8rem;
      border-radius: 12px;
    }

    .composer-submit {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      width: 100%;
      border-radius: 12px;
      background: linear-gradient(135deg, #10b981, #059669);
      color: #fff;
      font-weight: 700;
      padding: 0.8rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .composer-submit:hover {
      transform: translateY(-1px);
      box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25);
    }

@media (max-height: 820px) {
  .main-content {
    padding-top: 0;
    min-height: auto;
  }

  .community-hero {
    min-height: auto;
    padding: 20px 24px;
  }

  .side-panel {
    top: calc(var(--header-height) + 188px);
  }

  .feed-toolbar {
    margin: 14px 0 16px;
  }

  .composer-panel {
    top: calc(var(--header-height) + 12px);
    max-height: calc(100vh - 76px);
  }
}

@media (max-width: 640px) {
  .community-hero {
    padding: 20px;
  }

  .feed-toolbar {
    padding: 0.4rem 0.6rem;
    border-radius: 16px;
    gap: 0.6rem;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: stretch;
    gap: 0.6rem;
  }

  .toolbar-compose {
    width: 100%;
    justify-content: center;
  }

  .filter-chips {
    justify-content: center;
    width: 100%;
  }

  .content-columns {
    gap: 16px;
  }

  .composer-panel {
    right: 50%;
    transform: translateX(50%);
    top: calc(var(--header-height) + 12px);
    border-radius: 18px;
    width: min(520px, calc(100% - 24px));
  }
}
