:root {
  --app-bg: #f7faf2;
  --surface: #ffffff;
  --surface-soft: #fbfdf6;
  --ink: #101713;
  --muted: #627066;
  --line: #e1ead8;
  --lemon: #d7f243;
  --green: #0d5a42;
  --green-deep: #07382c;
  --green-soft: #eaf6d8;
  --coral: #ff7a59;
  --blue: #246bfe;
  --gold: #f8c33d;
  --shadow: 0 22px 70px rgba(16, 40, 30, 0.09);
}

/* After-JAMB simplified discovery flow */
.after-jamb-simple-hero {
  display: grid;
  gap: 6px;
  padding: 4px 2px 8px;
}

.after-jamb-simple-hero h1 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.42rem, 5.6vw, 1.62rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: 0;
}

.after-jamb-simple-hero p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(7, 56, 44, 0.68);
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 450;
}

.after-jamb-simple-flow {
  grid-template-columns: minmax(0, 1fr);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.045);
}

.after-jamb-simple-flow .after-jamb-filter-title h2 {
  font-size: 1rem;
  font-weight: 600;
}

.after-jamb-progress-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: rgba(7, 56, 44, 0.44);
  font-size: 0.72rem;
  font-weight: 600;
}

.after-jamb-progress-line span {
  white-space: nowrap;
}

.after-jamb-progress-line b {
  height: 1px;
  background: rgba(13, 90, 66, 0.12);
}

.after-jamb-progress-line .is-active,
.after-jamb-progress-line .is-done {
  color: var(--green-deep);
}

.after-jamb-flow-step {
  display: grid;
  gap: 8px;
}

.after-jamb-flow-step > strong,
.after-jamb-flow-step .after-jamb-filter-label {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.after-jamb-flow-step > p {
  margin: 0;
  border: 1px dashed rgba(13, 90, 66, 0.16);
  border-radius: 16px;
  color: rgba(7, 56, 44, 0.58);
  padding: 13px;
  font-size: 0.88rem;
  font-weight: 500;
}

.after-jamb-flow-step.is-muted {
  opacity: 0.78;
}

.after-jamb-flow-step input:disabled {
  opacity: 1;
  color: rgba(7, 56, 44, 0.58);
  -webkit-text-fill-color: rgba(7, 56, 44, 0.58);
}

.after-jamb-simple-flow .home-school-options {
  max-height: 224px;
}

.after-jamb-simple-flow .after-school-types {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: none;
}

.after-jamb-simple-flow .home-school-options button {
  min-height: 44px;
  border-radius: 14px;
  padding: 7px 9px;
}

.after-jamb-simple-flow .after-school-types button {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.after-jamb-simple-flow .home-school-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.after-jamb-simple-flow .after-jamb-filter-actions {
  justify-content: space-between;
}

.after-jamb-simple-flow .after-jamb-filter-actions .lc-button {
  min-height: 42px;
}

.after-jamb-simple-flow .after-jamb-filter-actions .primary {
  flex: 1;
}

.after-jamb-simple-flow .lc-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.after-jamb-page .after-jamb-ad {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 980px);
  margin-inline: auto;
  border-radius: 18px;
  padding: 10px;
  box-shadow: none;
}

.after-jamb-page .after-jamb-ad-media {
  min-height: 58px;
  border-radius: 16px;
  padding: 10px;
}

.after-jamb-page .after-jamb-ad-media strong {
  font-size: 0.66rem;
}

.after-jamb-page .after-jamb-ad-copy h2 {
  font-size: 0.92rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-ad-footer {
  gap: 6px;
}

.after-jamb-page .after-jamb-ad-footer .lc-button {
  min-height: 32px;
  padding-inline: 10px;
}

.after-jamb-groups-section {
  gap: 12px;
}

.after-jamb-group-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border-radius: 20px;
  padding: 14px;
}

.after-jamb-group-card h2 {
  font-size: clamp(1.04rem, 4.2vw, 1.2rem);
  font-weight: 650;
}

.after-jamb-group-actions {
  grid-column: 1 / -1;
  justify-content: stretch;
}

.after-jamb-group-actions .lc-button {
  width: 100%;
}

.after-jamb-role-note {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}

.after-jamb-community,
.after-jamb-group-preview,
.after-jamb-request-form {
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.045);
}

.after-jamb-community .after-jamb-section-head,
.after-jamb-group-preview .after-jamb-section-head {
  align-items: center;
}

.after-jamb-community .after-jamb-section-head h2,
.after-jamb-group-preview .after-jamb-section-head h2 {
  font-size: 1.08rem;
  font-weight: 650;
}

.after-jamb-missing-action {
  border-radius: 18px;
  padding: 11px 12px;
}

@media (min-width: 760px) {
  .after-jamb-simple-hero {
    padding-top: 8px;
  }

  .after-jamb-simple-flow {
    max-width: 760px;
  }

  .after-jamb-simple-flow .after-school-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .after-jamb-group-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .after-jamb-group-actions {
    grid-column: auto;
  }

  .after-jamb-group-actions .lc-button {
    width: auto;
  }
}

@media (max-width: 430px) {
  .after-jamb-simple-flow .after-school-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .after-jamb-progress-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .after-jamb-progress-line b {
    display: none;
  }

  .after-jamb-page .after-jamb-ad {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .after-jamb-page .after-jamb-ad-dots {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Advert cards final source of truth: media-first overlays */
.app-main .campus-ad-card.is-main,
.app-main .after-jamb-page .after-jamb-ad,
.app-main .advert-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.app-main .campus-ad-card.is-main,
.app-main .campus-ad-art,
.app-main .campus-ad-media {
  width: 100%;
  min-height: clamp(210px, 30vw, 310px);
  border-radius: 26px;
}

.app-main .campus-ad-art,
.app-main .campus-ad-media {
  position: relative;
  height: 100%;
}

.app-main .campus-ad-media {
  border: 0;
  border-radius: 0;
  align-content: center;
  justify-items: center;
  padding: clamp(22px, 5vw, 44px);
  box-shadow: none;
}

.app-main .campus-ad-media strong {
  font-size: clamp(2.8rem, 10vw, 6.4rem);
}

.app-main .after-jamb-page .after-jamb-ad {
  width: min(100%, 980px);
  margin-inline: auto;
  border-radius: 22px;
  padding: 0;
  background: #eef7dd;
}

.app-main .after-jamb-page .after-jamb-ad-media {
  position: relative;
  width: 100%;
  min-height: clamp(150px, 26vw, 240px);
  border: 0;
  border-radius: 0;
  padding: 20px;
}

.app-main .after-jamb-page .after-jamb-ad-media svg {
  width: clamp(32px, 6vw, 48px);
  height: clamp(32px, 6vw, 48px);
}

.app-main .after-jamb-page .after-jamb-ad-media strong {
  font-size: clamp(1.8rem, 7vw, 4.6rem);
  line-height: 0.9;
}

.app-main .after-jamb-page .after-jamb-ad-dots {
  right: 16px;
  bottom: auto;
  top: 12px;
  z-index: 3;
}

.app-main .advert-grid {
  align-items: center;
}

.app-main .advert-card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 24px;
}

.app-main .advert-card-media {
  position: relative;
  height: 100%;
  min-height: 0;
  align-content: center;
  justify-items: center;
  padding: 18px;
  isolation: isolate;
}

.app-main .advert-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 56, 44, 0.62));
  pointer-events: none;
}

.app-main .advert-card-media > span {
  width: clamp(52px, 10vw, 72px);
  height: clamp(52px, 10vw, 72px);
  border-radius: 22px;
}

.app-main .advert-card-media svg {
  width: 26px;
  height: 26px;
}

.app-main .advert-card-media > strong {
  max-width: 11ch;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 6vw, 3.6rem);
}

.app-main .advert-card-media img + strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.app-main .campus-ad-copy,
.app-main .after-jamb-page .after-jamb-ad-copy,
.app-main .advert-card-body {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  max-height: min(30%, 84px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 56, 44, 0.26), rgba(7, 56, 44, 0.78)),
    rgba(7, 56, 44, 0.64);
  color: #ffffff;
  padding: 8px 10px;
  box-shadow: 0 14px 34px rgba(7, 56, 44, 0.2);
  backdrop-filter: blur(10px);
}

.app-main .campus-ad-copy > div,
.app-main .after-jamb-page .after-jamb-ad-copy > div,
.app-main .advert-card-copy {
  min-width: 0;
}

.app-main .campus-ad-meta,
.app-main .advert-card-top {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.app-main .campus-ad-meta span,
.app-main .advert-sponsored,
.app-main .advert-card-top span,
.app-main .after-jamb-page .after-jamb-ad-copy .kicker {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  padding: 3px 6px;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.app-main .campus-ad-copy h2,
.app-main .after-jamb-page .after-jamb-ad-copy h2,
.app-main .advert-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #ffffff;
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  line-height: 1.12;
  font-weight: 700;
}

.app-main .campus-ad-copy p,
.app-main .after-jamb-page .after-jamb-ad-copy small,
.app-main .advert-card-copy p,
.app-main .advert-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 32ch;
  margin: 2px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}

.app-main .advert-card-copy > strong {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.app-main .campus-ad-copy .lc-button,
.app-main .after-jamb-page .after-jamb-ad-copy .lc-button,
.app-main .advert-card-body .lc-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: none;
}

@media (min-width: 900px) {
  .app-main .advert-card {
    aspect-ratio: 16 / 15;
  }
}

@media (max-width: 640px) {
  .app-main .campus-ad-card.is-main,
  .app-main .campus-ad-art,
  .app-main .campus-ad-media {
    min-height: 210px;
  }

  .app-main .after-jamb-page .after-jamb-ad-media {
    min-height: 158px;
  }

  .app-main .advert-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-main .advert-card {
    aspect-ratio: 4 / 5;
  }

  .app-main .campus-ad-copy,
  .app-main .after-jamb-page .after-jamb-ad-copy,
  .app-main .advert-card-body {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: 86px;
    padding: 8px;
  }
}

.market-vendor-consent {
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.market-vendor-consent input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.market-catalogue-card-notice [hidden] {
  display: none !important;
}

.verification-mini-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(7, 56, 44, 0.12);
}

.verification-mini-form > p,
.verification-mini-form > .profile-section-head,
.verification-mini-form > .profile-success,
.verification-mini-form > .edit-note,
.verification-mini-form .is-wide {
  grid-column: 1 / -1;
}

.verification-mini-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.verification-mini-form input,
.verification-mini-form select {
  width: 100%;
  min-width: 0;
}

.verification-upload input[type="file"] {
  padding: 10px;
  border: 1px dashed rgba(7, 56, 44, 0.28);
  border-radius: 8px;
  background: #fff;
}

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

.verification-camera-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #10251f;
  color: #fff;
}

.verification-camera-preview video,
.verification-camera-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verification-camera-preview span {
  position: absolute;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 0.78rem;
}

.verification-camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.verification-camera-fallback {
  position: relative;
  overflow: hidden;
}

.verification-camera-fallback input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.verification-consent {
  display: flex !important;
  grid-template-columns: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: var(--green-soft);
}

.verification-consent input {
  width: auto;
  margin-top: 3px;
}

.market-verification-pending {
  margin: 0;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .verification-mini-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .verification-camera-actions .lc-button,
  .verification-camera-fallback {
    flex: 1 1 140px;
  }
}

/* Phase 1 social feeds */
.home-feed-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-bottom: 1px solid rgba(7, 56, 44, 0.12);
  background: #fff;
  padding: 0 10px;
}

.home-feed-tabs button {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.home-feed-tabs button.is-active {
  border-bottom-color: var(--green-deep);
  color: var(--green-deep);
}

.social-composer-backdrop {
  position: fixed;
  top: var(--composer-viewport-top, 0px);
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 1000;
  display: grid;
  width: 100%;
  height: var(--composer-viewport-height, 100dvh);
  align-items: end;
  overflow: hidden;
  background: rgba(4, 28, 21, 0.46);
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.social-composer-sheet {
  width: min(100%, 720px);
  max-height: min(calc(var(--composer-viewport-height, 100dvh) - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))), 820px);
  margin-inline: auto;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 18px 18px 8px 8px;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(4, 28, 21, 0.24);
  overscroll-behavior: contain;
  scroll-padding-block: 64px;
  -webkit-overflow-scrolling: touch;
}

.social-composer-sheet.home-composer-panel {
  padding: 16px;
}

.social-composer-sheet.create-news-panel {
  margin: 0 auto;
  padding: 16px;
}

.home-feed,
.campus-news-feed {
  width: min(100%, 780px);
  margin-inline: auto;
}

.home-post,
.news-post-card {
  border: 1px solid rgba(7, 56, 44, 0.1);
  background: #fff;
  box-shadow: 0 8px 24px rgba(7, 56, 44, 0.06);
}

.home-poster img,
.home-poster span,
.news-avatar,
.news-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.news-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 800;
}

.home-media {
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: min(68dvh, 680px);
  padding: 0;
  background: #0b2b20;
  touch-action: pan-y;
}

.home-media.is-portrait,
.home-media.is-reel {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.home-media-label,
.home-carousel-peek {
  display: none;
}

.home-media-element,
.news-post-media-element {
  object-fit: contain;
}

.social-carousel-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(4, 28, 21, 0.58);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.social-carousel-control.is-prev {
  left: 10px;
}

.social-carousel-control.is-next {
  right: 10px;
}

.social-carousel-control svg {
  width: 18px;
  height: 18px;
}

.home-carousel-dots {
  left: 50%;
  right: auto;
  z-index: 4;
  align-items: center;
  transform: translateX(-50%);
}

.home-carousel-count,
.social-carousel-indicator {
  border-radius: 999px;
  background: rgba(4, 28, 21, 0.68);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 800;
}

.social-carousel-indicator {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
}

.news-create-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 72;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  box-shadow: 0 12px 26px rgba(5, 58, 42, 0.28);
  color: #fff;
  cursor: pointer;
  padding: 0 16px;
  font-size: 0.76rem;
  font-weight: 800;
}

.news-create-fab svg {
  width: 18px;
  height: 18px;
}

.public-profile-sheet .home-sheet-card {
  width: min(100%, 720px);
}

.public-profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.public-profile-summary h3,
.public-profile-summary p,
.public-profile-bio {
  margin: 0;
}

.public-profile-avatar,
.public-profile-avatar img {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  object-fit: cover;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 800;
}

.public-profile-bio {
  margin-top: 12px;
  line-height: 1.5;
}

.public-profile-media-title {
  margin: 18px 0 8px;
}

.public-profile-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.public-profile-media-grid img,
.public-profile-media-grid video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 6px;
  background: #0b2b20;
}

.public-profile-media-grid .home-empty {
  grid-column: 1 / -1;
}

.public-profile-more {
  margin-top: 12px;
}

@media (min-width: 921px) {
  .home-create-fab,
  .news-create-fab {
    right: 30px;
    bottom: 30px;
  }

  .social-composer-backdrop {
    align-items: center;
  }

  .social-composer-sheet {
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  .home-post-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-follow {
    display: none;
  }

  .home-icon-button {
    grid-column: 3;
  }

  .home-media,
  .home-media.is-portrait,
  .home-media.is-reel {
    aspect-ratio: 4 / 5;
    max-height: 62dvh;
  }

  .social-carousel-control {
    display: none;
  }

  .news-create-button {
    display: none;
  }

  .public-profile-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow advert overlay polish */
.app-main .after-jamb-page .after-jamb-ad-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.app-main .after-jamb-page .after-jamb-ad-copy h2 {
  margin: 0;
}

.app-main .campus-ad-media strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .app-main .campus-ad-media strong {
    font-size: 2.45rem;
  }

  .app-main .campus-ad-meta span:last-child {
    display: none;
  }
}

/* Final advert fill and compact overlay correction */
.app-main .campus-ad-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.app-main .campus-ad-media {
  width: 100%;
  max-width: none;
  min-height: 100%;
}

.app-main .campus-ad-copy,
.app-main .after-jamb-page .after-jamb-ad-copy,
.app-main .advert-card-body {
  align-items: center;
  max-height: 64px;
  padding: 6px 8px;
}

.app-main .campus-ad-copy p,
.app-main .advert-card-copy p {
  display: none;
}

.app-main .after-jamb-page .after-jamb-ad-copy small {
  display: none;
}

.app-main .campus-ad-meta span,
.app-main .advert-sponsored,
.app-main .advert-card-top span,
.app-main .after-jamb-page .after-jamb-ad-copy .kicker {
  padding: 2px 5px;
  font-size: 0.62rem;
}

.app-main .campus-ad-copy h2,
.app-main .after-jamb-page .after-jamb-ad-copy h2,
.app-main .advert-card-copy h3 {
  margin-top: 3px;
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
}

.app-main .advert-card-copy > strong {
  margin-top: 0;
  font-size: 0.74rem;
}

.app-main .campus-ad-copy .lc-button,
.app-main .after-jamb-page .after-jamb-ad-copy .lc-button,
.app-main .advert-card-body .lc-button {
  min-height: 28px;
  padding-inline: 9px;
  font-size: 0.68rem;
}

@media (max-width: 640px) {
  .app-main .campus-ad-copy,
  .app-main .after-jamb-page .after-jamb-ad-copy,
  .app-main .advert-card-body {
    max-height: 60px;
    padding: 6px 7px;
  }
}

/* Final media-first advert sizing pass */
.app-main .campus-ad-card.is-main,
.app-main .after-jamb-page .after-jamb-ad,
.app-main .advert-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.app-main .campus-ad-card.is-main {
  min-height: clamp(210px, 30vw, 310px);
  border-radius: 26px;
}

.app-main .campus-ad-art,
.app-main .campus-ad-media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: clamp(210px, 30vw, 310px);
  border: 0;
  border-radius: 0;
  padding: clamp(22px, 5vw, 44px);
  box-shadow: none;
}

.app-main .campus-ad-media {
  align-content: center;
  justify-items: center;
}

.app-main .campus-ad-media strong {
  font-size: clamp(2.8rem, 10vw, 6.4rem);
}

.app-main .campus-ad-copy,
.app-main .after-jamb-page .after-jamb-ad-copy,
.app-main .advert-card-body {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  max-height: min(30%, 84px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 56, 44, 0.26), rgba(7, 56, 44, 0.78)),
    rgba(7, 56, 44, 0.64);
  color: #ffffff;
  padding: 8px 10px;
  box-shadow: 0 14px 34px rgba(7, 56, 44, 0.2);
  backdrop-filter: blur(10px);
}

.app-main .campus-ad-copy > div,
.app-main .after-jamb-page .after-jamb-ad-copy > div,
.app-main .advert-card-copy {
  min-width: 0;
}

.app-main .campus-ad-meta,
.app-main .advert-card-top {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.app-main .campus-ad-meta span,
.app-main .advert-sponsored,
.app-main .advert-card-top span,
.app-main .after-jamb-page .after-jamb-ad-copy .kicker {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  padding: 3px 6px;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.app-main .campus-ad-copy h2,
.app-main .after-jamb-page .after-jamb-ad-copy h2,
.app-main .advert-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #ffffff;
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  line-height: 1.12;
  font-weight: 700;
}

.app-main .campus-ad-copy p,
.app-main .after-jamb-page .after-jamb-ad-copy small,
.app-main .advert-card-copy p,
.app-main .advert-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 32ch;
  margin: 2px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}

.app-main .advert-card-copy > strong {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.app-main .campus-ad-copy .lc-button,
.app-main .after-jamb-page .after-jamb-ad-copy .lc-button,
.app-main .advert-card-body .lc-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: none;
}

.app-main .after-jamb-page .after-jamb-ad {
  width: min(100%, 980px);
  margin-inline: auto;
  border-radius: 22px;
  padding: 0;
  background: #eef7dd;
}

.app-main .after-jamb-page .after-jamb-ad-media {
  position: relative;
  width: 100%;
  min-height: clamp(150px, 26vw, 240px);
  border: 0;
  border-radius: 0;
  padding: 20px;
}

.app-main .after-jamb-page .after-jamb-ad-media svg {
  width: clamp(32px, 6vw, 48px);
  height: clamp(32px, 6vw, 48px);
}

.app-main .after-jamb-page .after-jamb-ad-media strong {
  font-size: clamp(1.8rem, 7vw, 4.6rem);
  line-height: 0.9;
}

.app-main .after-jamb-page .after-jamb-ad-dots {
  right: 16px;
  bottom: auto;
  top: 12px;
  z-index: 3;
}

.app-main .advert-grid {
  align-items: start;
}

.app-main .advert-card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 24px;
}

.app-main .advert-card-media {
  position: relative;
  height: 100%;
  min-height: 0;
  align-content: center;
  justify-items: center;
  padding: 18px;
  isolation: isolate;
}

.app-main .advert-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 56, 44, 0.62));
  pointer-events: none;
}

.app-main .advert-card-media > span {
  width: clamp(52px, 10vw, 72px);
  height: clamp(52px, 10vw, 72px);
  border-radius: 22px;
}

.app-main .advert-card-media svg {
  width: 26px;
  height: 26px;
}

.app-main .advert-card-media > strong {
  max-width: 11ch;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 6vw, 3.6rem);
}

.app-main .advert-card-media img + strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

@media (min-width: 900px) {
  .app-main .advert-card {
    aspect-ratio: 16 / 15;
  }
}

@media (max-width: 640px) {
  .app-main .campus-ad-card.is-main,
  .app-main .campus-ad-art,
  .app-main .campus-ad-media {
    min-height: 210px;
  }

  .app-main .after-jamb-page .after-jamb-ad-media {
    min-height: 158px;
  }

  .app-main .advert-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-main .advert-card {
    aspect-ratio: 4 / 5;
  }

  .app-main .campus-ad-copy,
  .app-main .after-jamb-page .after-jamb-ad-copy,
  .app-main .advert-card-body {
    right: 8px;
    bottom: 8px;
    left: 8px;
    max-height: 86px;
    padding: 8px;
  }
}

/* Media-first advert refinement */
.campus-ad-card.is-main,
.after-jamb-ad,
.advert-card {
  position: relative;
  display: block;
  overflow: hidden;
}

.campus-ad-card.is-main {
  min-height: clamp(210px, 30vw, 310px);
  border-radius: 26px;
}

.campus-ad-art,
.after-jamb-ad-media,
.advert-card-media {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.campus-ad-art {
  height: 100%;
  min-height: clamp(210px, 30vw, 310px);
  place-items: stretch;
}

.campus-ad-media {
  width: 100%;
  min-height: clamp(210px, 30vw, 310px);
  border: 0;
  border-radius: 0;
  align-content: center;
  justify-items: center;
  padding: clamp(22px, 5vw, 44px);
  box-shadow: none;
}

.campus-ad-media strong {
  font-size: clamp(2.8rem, 10vw, 6.4rem);
}

.campus-ad-copy,
.after-jamb-ad-copy,
.advert-card-body {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(7, 56, 44, 0.28), rgba(7, 56, 44, 0.78)),
    rgba(7, 56, 44, 0.62);
  color: #ffffff;
  padding: 9px 10px;
  box-shadow: 0 14px 34px rgba(7, 56, 44, 0.2);
  backdrop-filter: blur(10px);
}

.campus-ad-copy > div,
.after-jamb-ad-copy > div,
.advert-card-copy {
  min-width: 0;
}

.campus-ad-meta,
.advert-card-top {
  display: flex;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
}

.campus-ad-meta span,
.advert-sponsored,
.advert-card-top span,
.after-jamb-ad-copy .kicker {
  min-height: auto;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.86);
  padding: 3px 6px;
  font-size: 0.65rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.campus-ad-copy h2,
.after-jamb-ad-copy h2,
.advert-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: #ffffff;
  font-size: clamp(0.82rem, 2.4vw, 0.92rem);
  line-height: 1.12;
  font-weight: 700;
}

.campus-ad-copy p,
.after-jamb-ad-copy small,
.advert-card-copy p,
.advert-card-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 32ch;
  margin: 2px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 600;
}

.advert-card-copy > strong {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.92);
}

.campus-ad-copy .lc-button,
.after-jamb-ad-copy .lc-button,
.advert-card-body .lc-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: none;
}

.after-jamb-ad {
  width: min(100%, 980px);
  margin-inline: auto;
  border-radius: 22px;
  padding: 0;
  background: #eef7dd;
}

.after-jamb-ad-media {
  min-height: clamp(150px, 26vw, 240px);
  border: 0;
  border-radius: 0;
}

.after-jamb-ad-media svg {
  width: clamp(32px, 6vw, 48px);
  height: clamp(32px, 6vw, 48px);
}

.after-jamb-ad-media strong {
  font-size: clamp(1.8rem, 7vw, 4.6rem);
  line-height: 0.9;
}

.after-jamb-ad-dots {
  right: 16px;
  bottom: auto;
  top: 12px;
  z-index: 3;
}

.advert-grid {
  align-items: start;
}

.advert-card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  border-radius: 24px;
}

.advert-card-media {
  height: 100%;
  min-height: 0;
  align-content: center;
  justify-items: center;
  padding: 18px;
  isolation: isolate;
}

.advert-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 56, 44, 0.62));
  pointer-events: none;
}

.advert-card-media > span {
  width: clamp(52px, 10vw, 72px);
  height: clamp(52px, 10vw, 72px);
  border-radius: 22px;
}

.advert-card-media svg {
  width: 26px;
  height: 26px;
}

.advert-card-media > strong {
  max-width: 11ch;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 6vw, 3.6rem);
}

.advert-card-media img + strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.advert-card-body {
  align-items: center;
}

.advert-card-top {
  margin-bottom: 2px;
}

@media (min-width: 900px) {
  .advert-card {
    aspect-ratio: 16 / 15;
  }
}

@media (max-width: 640px) {
  .campus-ad-card.is-main,
  .campus-ad-art,
  .campus-ad-media {
    min-height: 210px;
  }

  .after-jamb-ad-media {
    min-height: 158px;
  }

  .advert-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .advert-card {
    aspect-ratio: 4 / 5;
  }

  .campus-ad-copy,
  .after-jamb-ad-copy,
  .advert-card-body {
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 8px;
  }
}

/* After-JAMB collapsed selector behavior */
.after-jamb-page .after-jamb-simple-flow {
  position: relative;
  width: min(100%, 980px);
  margin-inline: auto;
  padding: clamp(16px, 3vw, 22px);
}

.after-jamb-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.after-jamb-picker {
  position: relative;
  min-width: 0;
}

.after-jamb-picker-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(13, 90, 66, 0.14);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  padding: 9px 12px;
  text-align: left;
  font: inherit;
  box-shadow: 0 8px 20px rgba(16, 40, 30, 0.04);
}

.after-jamb-picker-button::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 7px;
  height: 7px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.after-jamb-picker-button > span {
  color: rgba(7, 56, 44, 0.58);
  font-size: 0.75rem;
  font-weight: 500;
}

.after-jamb-picker-button > strong {
  overflow: hidden;
  color: var(--green-deep);
  font-size: 0.92rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.after-jamb-picker-button > small {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  color: #b66300;
  font-size: 0.74rem;
  font-weight: 700;
}

.after-jamb-picker-button:disabled {
  cursor: not-allowed;
  background: #f7f8f3;
  color: rgba(7, 56, 44, 0.5);
  box-shadow: none;
}

.after-jamb-picker-button.is-open,
.after-jamb-picker-button:not(:disabled):focus-visible {
  border-color: rgba(255, 159, 28, 0.46);
  box-shadow: 0 0 0 4px rgba(255, 167, 38, 0.14), 0 10px 24px rgba(16, 40, 30, 0.07);
  outline: none;
}

.after-jamb-popover {
  position: absolute;
  top: clamp(68px, 10vw, 92px);
  right: 0;
  left: 0;
  z-index: 80;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 18px;
  background: rgba(255, 254, 248, 0.98);
  padding: 8px;
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.16);
}

.after-jamb-popover .home-school-options,
.after-jamb-course-options {
  display: grid;
  gap: 10px;
  max-height: min(42vh, 320px);
  overflow: auto;
  padding: 2px;
}

.after-jamb-course-options button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
  font: inherit;
}

.after-jamb-course-options button svg {
  width: 16px;
  height: 16px;
}

.after-jamb-course-options button strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.after-jamb-course-options button small {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
}

.after-jamb-course-options button.is-selected {
  border-color: rgba(13, 90, 66, 0.28);
  background: #edf7e2;
}

@media (hover: hover) and (pointer: fine) {
  .after-jamb-course-options button:hover {
    border-color: rgba(255, 159, 28, 0.42);
    background: #ffa726;
  }
}

@media (max-width: 1024px) {
  .after-jamb-picker-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 430px) {
  .after-jamb-page .after-jamb-simple-flow {
    padding: 16px;
  }

  .after-jamb-picker-grid {
    gap: 10px;
  }

  .after-jamb-picker-button {
    min-height: 54px;
  }

  .after-jamb-popover {
    position: absolute;
    max-width: 100%;
  }
}

/* Final floating Back placement */
.page-enter:has(.sticky-back),
.page-container:has(.sticky-back) {
  animation: none;
  transform: none;
}

.sticky-back:not(.chat-sticky-back),
.chat-sticky-back button:first-child {
  position: fixed;
  right: max(28px, env(safe-area-inset-right, 0px));
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 120;
  display: inline-flex;
  width: fit-content;
  max-width: min(240px, calc(100vw - 32px));
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(116, 24, 24, 0.16);
  border-radius: 999px;
  background: #b83232;
  color: #ffffff;
  padding: 0 16px;
  box-shadow: 0 14px 32px rgba(116, 24, 24, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
}

.sticky-back:not(.chat-sticky-back):hover,
.chat-sticky-back button:first-child:hover {
  background: #a72b2b;
  transform: translateY(-2px);
}

.sticky-back:not(.chat-sticky-back):active,
.chat-sticky-back button:first-child:active {
  background: #942525;
  transform: translateY(0);
}

.chat-sticky-back {
  position: fixed;
  right: max(28px, env(safe-area-inset-right, 0px));
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 120;
  display: flex;
  flex-direction: row-reverse;
  gap: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.chat-sticky-back button:first-child {
  position: static;
}

.chat-sticky-back button:not(:first-child) {
  min-height: 42px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 999px;
  background: #f2fae8;
  color: var(--green-deep);
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.1);
}

.sticky-back:not(.chat-sticky-back) svg,
.chat-sticky-back button:first-child svg {
  transform: rotate(180deg);
}

/* Keep the Campus feature Back control above the fixed bottom navigation. */
.campus-feature-back {
  bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 300;
  box-shadow: none;
}

.chat-sticky-back button:not(:first-child) svg {
  transform: none;
}

@media (max-width: 920px) {
  .sticky-back:not(.chat-sticky-back),
  .chat-sticky-back {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
  }

  .chat-sticky-back {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--app-bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

/* Keep the premium background behind the application without blurring UI content. */
body[data-route="home"]::before,
body[data-route="campus"]::before,
body[data-route="after-jamb"]::before,
body[data-route="roommates"]::before,
body[data-route="market"]::before,
body[data-route="friend-zone"]::before,
body[data-route="chats"]::before,
body[data-route="profile"]::before {
  position: fixed;
  z-index: -2;
  inset: -32px;
  content: "";
  background: url("./assets/backgrounds/Image 7.jpg") center / cover no-repeat;
  filter: blur(32px);
  transform: scale(1.08);
  pointer-events: none;
}

body[data-route="home"],
body[data-route="campus"],
body[data-route="after-jamb"],
body[data-route="roommates"],
body[data-route="market"],
body[data-route="friend-zone"],
body[data-route="chats"],
body[data-route="profile"] {
  isolation: isolate;
}

body[data-route="home"]::after,
body[data-route="campus"]::after,
body[data-route="after-jamb"]::after,
body[data-route="roommates"]::after,
body[data-route="market"]::after,
body[data-route="friend-zone"]::after,
body[data-route="chats"]::after,
body[data-route="profile"]::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(248, 252, 246, 0.62);
  pointer-events: none;
}

body[data-route="home"] #app-root,
body[data-route="campus"] #app-root,
body[data-route="after-jamb"] #app-root,
body[data-route="roommates"] #app-root,
body[data-route="market"] #app-root,
body[data-route="friend-zone"] #app-root,
body[data-route="chats"] #app-root,
body[data-route="profile"] #app-root {
  position: relative;
  z-index: 0;
}

/* Let the blurred background show through application div containers. */
body[data-route="home"] #app-root div,
body[data-route="campus"] #app-root div,
body[data-route="after-jamb"] #app-root div,
body[data-route="roommates"] #app-root div,
body[data-route="market"] #app-root div,
body[data-route="friend-zone"] #app-root div,
body[data-route="chats"] #app-root div,
body[data-route="profile"] #app-root div {
  background-color: transparent;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a[href],
button:not(:disabled) {
  cursor: pointer;
}

.route-fallback {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.app-shell {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.12);
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 24px 18px;
  backdrop-filter: blur(18px);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--lemon);
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: inset 0 -12px 22px rgba(13, 90, 66, 0.12);
}

.brand-copy strong,
.user-card strong,
.lc-card strong {
  display: block;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.desktop-nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  color: #38463d;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.1;
}

.nav-item:hover {
  background: var(--green-soft);
  color: var(--green-deep);
  transform: translateX(3px);
}

.nav-item.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(7, 56, 44, 0.18);
}

.nav-item.is-active svg {
  color: var(--lemon);
}

.sidebar-note {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, #ffffff, #f2f9e6);
  padding: 18px;
  box-shadow: 0 14px 36px rgba(16, 40, 30, 0.07);
}

.sidebar-note p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-main {
  min-width: 0;
  padding: 24px 28px 34px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 14px;
  padding: 6px 0;
  background: linear-gradient(180deg, rgba(247, 250, 242, 0.88), rgba(247, 250, 242, 0.66));
  backdrop-filter: blur(16px);
}

.header-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.mobile-brand {
  display: none;
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green);
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-chip svg {
  width: 18px;
  height: 18px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 5px 4px 10px;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.06);
}

.user-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  border: none;
  overflow: hidden;
  text-decoration: none;
  background: transparent;
  color: var(--green-deep);
  box-shadow: none;
  outline: none;
  padding: 0;
  font-size: 0.8rem;
  font-weight: 900;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

.page-container {
  max-width: 1160px;
  margin: 0 auto;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(215, 242, 67, 0.24), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-description {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lc-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.lc-button:hover {
  transform: translateY(-2px);
}

.lc-button svg {
  width: 18px;
  height: 18px;
}

.lc-button.primary {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(7, 56, 44, 0.2);
}

.lc-button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--green-deep);
}

.context-panel {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--green-deep);
  color: #ffffff;
  padding: 22px;
  box-shadow: var(--shadow);
}

.context-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 100%;
}

.context-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: rgba(215, 242, 67, 0.14);
  color: var(--lemon);
}

.context-icon svg {
  width: 27px;
  height: 27px;
}

.context-panel p {
  margin: 0;
  color: #dbeed3;
}

.context-stat {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
}

.context-stat strong {
  color: var(--lemon);
  font-size: 2.15rem;
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lc-card {
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  padding: 20px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lc-card:hover {
  transform: translateY(-4px);
  border-color: #d3e765;
  box-shadow: 0 24px 54px rgba(16, 40, 30, 0.1);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.mini-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.mini-icon svg {
  width: 22px;
  height: 22px;
}

.pill {
  border-radius: 999px;
  background: #f2f7ea;
  color: var(--green);
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.lc-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.lc-card p,
.activity-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.activity-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title h2 {
  margin: 0;
  font-size: 1.05rem;
}

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

.activity-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #edf2e8;
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 14px;
}

.activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(13, 90, 66, 0.1);
}

.activity-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.after-jamb-page {
  --after-bg: #f6faef;
  --after-card: #fffef8;
  --after-card-mint: #f2faeb;
  --after-cream: #fff8df;
  --after-mint: #eaf7e4;
  --after-blue-mint: #eaf8f5;
  --after-line: rgba(198, 218, 186, 0.82);
  --after-line-strong: rgba(13, 90, 66, 0.13);
  --after-muted: #647267;
  --after-shadow: 0 16px 42px rgba(16, 40, 30, 0.075);
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  animation: pageIn 260ms ease both;
}

.app-main:has(.after-jamb-page) {
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 242, 67, 0.16), transparent 30rem),
    linear-gradient(180deg, #f8fbf1 0%, #f5f9ef 54%, #f9fbf5 100%);
}

.after-jamb-page *,
.after-jamb-page *::before,
.after-jamb-page *::after {
  box-sizing: border-box;
}

.after-jamb-head,
.after-jamb-filter-strip,
.after-jamb-context,
.after-jamb-section-head,
.after-jamb-applicant-card header,
.after-jamb-applicant-card footer,
.after-jamb-profile-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.after-jamb-head {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(215, 242, 67, 0.16), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
}

.after-jamb-head h1,
.after-jamb-section-head h2,
.after-jamb-profile-card h1 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.4rem, 3.4vw, 2.45rem);
  line-height: 1.05;
}

.after-jamb-head p,
.after-jamb-section-head p,
.after-jamb-applicant-card p,
.after-jamb-info p,
.after-jamb-permission p,
.after-jamb-profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.after-jamb-status,
.after-jamb-context,
.after-jamb-permission,
.after-jamb-info,
.after-jamb-profile-card {
  border: 1px solid var(--after-line);
  border-radius: 22px;
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 0 12px 30px rgba(16, 40, 30, 0.045);
}

.after-jamb-status {
  display: grid;
  min-width: 150px;
  gap: 5px;
  padding: 12px;
}

.after-jamb-status span,
.after-jamb-context span,
.after-jamb-context small,
.after-jamb-info span,
.after-jamb-stage,
.after-jamb-profile-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.after-jamb-status strong,
.after-jamb-context strong,
.after-jamb-info strong,
.after-jamb-applicant-card strong,
.after-jamb-profile-grid strong {
  color: var(--green-deep);
}

.after-jamb-ad {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.58fr);
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(183, 210, 169, 0.88);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(234, 247, 228, 0.9), rgba(255, 253, 242, 0.94) 58%),
    var(--after-card);
  padding: 12px;
  box-shadow: var(--after-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.after-jamb-ad-media {
  display: grid;
  min-height: 142px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 22px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  background:
    radial-gradient(circle at 72% 22%, rgba(215, 242, 67, 0.38), transparent 3.4rem),
    linear-gradient(145deg, #e6f4d8, #fff5d6);
  color: var(--green-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
}

.after-jamb-ad-media svg {
  width: 28px;
  height: 28px;
}

.after-jamb-ad-copy {
  display: grid;
  min-width: 0;
  align-content: space-between;
  gap: 12px;
  padding: 4px;
}

.after-jamb-ad-copy h2 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1rem, 2.4vw, 1.45rem);
}

.after-jamb-ad-copy p {
  margin: 0;
  color: var(--after-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.after-jamb-ad-footer,
.after-jamb-ad-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.after-jamb-ad-footer {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: space-between;
}

.after-jamb-ad-footer span {
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  background: rgba(255, 248, 223, 0.96);
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.after-jamb-ad-footer .lc-button {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: none;
}

.after-jamb-ad-dots {
  position: absolute;
  right: 14px;
  bottom: 10px;
}

.after-jamb-ad-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(13, 90, 66, 0.18);
}

.after-jamb-ad-dots span:first-child {
  width: 18px;
  background: linear-gradient(90deg, var(--green-deep), #7b9430);
}

.after-jamb-filter-strip {
  min-width: 0;
  align-items: stretch;
  gap: 8px;
  border: 1px solid var(--after-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 252, 245, 0.95));
  padding: 5px;
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.after-jamb-filter-strip:focus-within {
  border-color: rgba(13, 90, 66, 0.26);
  box-shadow: 0 0 0 4px rgba(13, 90, 66, 0.07), 0 10px 24px rgba(16, 40, 30, 0.045);
}

.after-jamb-search {
  display: flex;
  min-height: 40px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0 11px;
}

.after-jamb-search svg {
  width: 16px;
  height: 16px;
  color: var(--green-deep);
}

.after-jamb-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--green-deep);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.after-jamb-search input::placeholder {
  color: #778579;
}

.after-jamb-filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 14px;
  background: #e5f3d8;
  color: var(--green-deep);
  padding: 0 11px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.after-jamb-filter-button:hover {
  background: #dcefc9;
  transform: translateY(-1px);
}

.after-jamb-filter-button:active {
  transform: translateY(0);
}

.after-jamb-filter-button svg {
  width: 16px;
  height: 16px;
}

.after-jamb-filter-drawer,
.after-jamb-request-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--after-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.98), rgba(248, 252, 243, 0.98));
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.after-jamb-filter-drawer label,
.after-jamb-request-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.after-jamb-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.after-jamb-filter-label svg {
  width: 15px;
  height: 15px;
  color: var(--green-deep);
}

.after-jamb-filter-drawer select,
.after-jamb-request-form input,
.after-jamb-request-form select,
.after-jamb-request-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.after-jamb-filter-drawer select:focus,
.after-jamb-request-form input:focus,
.after-jamb-request-form select:focus,
.after-jamb-request-form textarea:focus {
  border-color: rgba(13, 90, 66, 0.32);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 90, 66, 0.07);
}

.after-jamb-request-form textarea {
  min-height: 82px;
  padding-block: 12px;
}

.after-jamb-request-form .is-wide,
.after-jamb-request-actions,
.after-jamb-filter-title,
.after-jamb-filter-request,
.after-jamb-filter-actions {
  grid-column: 1 / -1;
}

.after-jamb-filter-title {
  display: grid;
  gap: 4px;
}

.after-jamb-filter-title h2 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.after-jamb-filter-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.after-jamb-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.after-jamb-context {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.after-jamb-selection-head {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.after-jamb-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.after-jamb-selection-actions button {
  min-height: 30px;
  border: 1px solid rgba(13, 90, 66, 0.16);
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.72);
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0 10px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.after-jamb-selection-actions button:hover {
  border-color: rgba(13, 90, 66, 0.28);
  background: var(--after-mint);
  transform: translateY(-1px);
}

.after-jamb-summary-chips {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 7px;
}

.after-jamb-summary-chips button {
  display: inline-flex;
  max-width: 100%;
  min-width: 0;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 5px 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  flex: 0 1 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.after-jamb-summary-chips button:nth-child(1) {
  background: #fff7dd;
  border-color: rgba(198, 160, 42, 0.18);
}

.after-jamb-summary-chips button:nth-child(2) {
  background: #edf8e5;
  border-color: rgba(13, 90, 66, 0.13);
}

.after-jamb-summary-chips button:nth-child(3) {
  background: #eaf8f5;
  border-color: rgba(22, 118, 101, 0.14);
}

.after-jamb-summary-chips button:hover {
  border-color: rgba(13, 90, 66, 0.24);
  transform: translateY(-1px);
}

.after-jamb-chip-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.after-jamb-chip-remove {
  flex: 0 0 auto;
  color: #7b897c;
}

.after-jamb-summary-chips svg {
  width: 13px;
  height: 13px;
}

.after-jamb-summary-chips button span {
  color: var(--muted);
}

.after-jamb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.after-jamb-main,
.after-jamb-community,
.after-jamb-side,
.after-jamb-profile,
.after-jamb-groups-section {
  display: grid;
  gap: 14px;
}

.after-jamb-permission {
  display: flex;
  gap: 11px;
  padding: 12px;
  background: #fbfdf8;
}

.after-jamb-group-card,
.after-jamb-group-preview {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(184, 211, 172, 0.88);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(242, 250, 235, 0.98), rgba(255, 254, 248, 0.98) 62%),
    var(--after-card-mint);
  padding: 12px;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.065);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.after-jamb-group-card {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
}

.after-jamb-group-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  background:
    radial-gradient(circle at 70% 24%, rgba(215, 242, 67, 0.48), transparent 1.7rem),
    linear-gradient(145deg, #dff1ce, #fff6d8);
  color: var(--green-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.after-jamb-group-copy {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.after-jamb-group-card h2,
.after-jamb-group-preview h2 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.after-jamb-group-card h2 {
  white-space: nowrap;
  overflow-x: auto;
  text-overflow: clip;
  scrollbar-width: thin;
}

.after-jamb-group-card p,
.after-jamb-group-preview p,
.after-jamb-post-list p,
.after-jamb-role-note,
.after-jamb-request-ack {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.5;
}

.after-jamb-group-members,
.after-jamb-overlap-avatars {
  display: flex;
  align-items: center;
}

.after-jamb-group-members {
  flex-wrap: wrap;
  gap: 9px;
}

.after-jamb-overlap-avatars span,
.after-jamb-overlap-avatars b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  background: #e4f3d7;
  color: var(--green-deep);
  font-size: 0.65rem;
  font-weight: 950;
  box-shadow: 0 2px 8px rgba(16, 40, 30, 0.08);
}

.after-jamb-overlap-avatars span + span,
.after-jamb-overlap-avatars b {
  margin-left: -9px;
}

.after-jamb-overlap-avatars b {
  background: #fff1bf;
  border-color: rgba(255, 255, 255, 0.96);
  color: #ffffff;
  color: var(--green-deep);
}

.after-jamb-group-members small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.after-jamb-group-actions,
.after-jamb-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.after-jamb-group-actions {
  min-width: 0;
  justify-content: flex-end;
}

.after-jamb-group-actions .lc-button {
  min-width: 0;
}

.after-jamb-group-actions .lc-button.primary {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 56, 44, 0.16);
}

.after-jamb-group-actions .lc-button.primary:hover {
  background: #0b4b3b;
  transform: translateY(-1px);
}

.after-jamb-group-actions .lc-button.secondary {
  border-color: rgba(116, 128, 116, 0.2);
  background: #eef3eb;
  color: #637064;
  box-shadow: none;
}

.after-jamb-group-card .after-jamb-role-note {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: normal;
  word-break: normal;
}

.after-jamb-missing-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(198, 160, 42, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 231, 0.96), rgba(255, 253, 244, 0.96));
  color: var(--green-deep);
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 20px rgba(16, 40, 30, 0.035);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.after-jamb-missing-action:hover {
  border-color: rgba(13, 90, 66, 0.2);
  background: #fff8df;
  transform: translateY(-1px);
}

.after-jamb-missing-action > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: #edf6df;
  color: var(--green-deep);
}

.after-jamb-missing-action svg {
  width: 16px;
  height: 16px;
}

.after-jamb-missing-action > svg {
  color: var(--muted);
}

.after-jamb-missing-action strong {
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.after-jamb-request-link {
  border: 0;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  transition: color 150ms ease, transform 150ms ease;
}

.after-jamb-request-link:hover {
  color: #0b4b3b;
  transform: translateX(2px);
}

.after-jamb-request-year {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 16px;
  background: #f4faee;
  padding: 10px 12px;
}

.after-jamb-request-year span {
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.after-jamb-request-year strong {
  color: var(--green-deep);
  font-size: 0.9rem;
}

.after-jamb-filter-request {
  justify-self: start;
  padding: 0;
}

.after-jamb-group-actions .lc-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.after-jamb-role-note,
.after-jamb-request-ack {
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 16px;
  background: rgba(255, 254, 248, 0.82);
  padding: 10px;
}

.after-jamb-request-ack {
  display: flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  color: var(--green-deep);
}

.after-jamb-member-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.after-jamb-member-strip span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, #e3f3d7, #fff7df);
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 950;
  box-shadow: 0 4px 12px rgba(16, 40, 30, 0.08);
}

.after-jamb-member-strip small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.after-jamb-post-list {
  display: grid;
  gap: 8px;
}

.after-jamb-post-list article {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(13, 90, 66, 0.09);
  border-radius: 17px;
  background: rgba(255, 254, 248, 0.8);
  padding: 10px;
}

.after-jamb-post-list strong,
.after-jamb-post-list span {
  display: block;
}

.after-jamb-post-list strong {
  color: var(--green-deep);
}

.after-jamb-post-list span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.after-jamb-permission > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.after-jamb-section-head > span {
  border-radius: 999px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.after-jamb-applicant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.after-jamb-applicant-card,
.after-jamb-info article,
.after-jamb-empty {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(209, 226, 199, 0.88);
  border-radius: 22px;
  background: rgba(255, 254, 248, 0.94);
  padding: 12px;
  box-shadow: 0 10px 28px rgba(16, 40, 30, 0.045);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.after-jamb-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(145deg, #e4f3d7, #fff7df);
  color: var(--green-deep);
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(16, 40, 30, 0.075);
}

.after-jamb-avatar.is-large {
  width: 78px;
  height: 78px;
  border-radius: 25px;
  font-size: 1.2rem;
}

.after-jamb-applicant-card header span,
.after-jamb-profile-card header span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.after-jamb-stage {
  justify-self: start;
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  background: #edf8e5;
  color: var(--green-deep);
  padding: 6px 10px;
}

.after-jamb-interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.after-jamb-interest-row span {
  border-radius: 999px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  background: #f7fbf1;
  color: var(--green-deep);
  padding: 5px 9px;
  font-size: 0.7rem;
  font-weight: 900;
}

@media (hover: hover) {
  .after-jamb-ad:hover,
  .after-jamb-group-card:hover,
  .after-jamb-group-preview:hover,
  .after-jamb-applicant-card:hover {
    border-color: rgba(13, 90, 66, 0.18);
    box-shadow: 0 18px 44px rgba(16, 40, 30, 0.085);
    transform: translateY(-1px);
  }
}

.after-jamb-applicant-card .lc-button,
.after-jamb-profile-actions .lc-button {
  flex: 1;
  min-height: 36px;
}

.after-jamb-info {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.after-jamb-info-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.after-jamb-info-rail::-webkit-scrollbar {
  display: none;
}

.after-jamb-info article {
  background: #fbfdf8;
  box-shadow: none;
}

.after-jamb-info article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.after-jamb-info article > span svg {
  width: 17px;
  height: 17px;
}

.after-jamb-profile:has(> .sticky-back) {
  padding-top: 54px;
}

.after-jamb-profile-card {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.after-jamb-profile-card header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.after-jamb-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.after-jamb-profile-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 11px;
}

.after-jamb-profile-grid span,
.after-jamb-profile-grid strong {
  display: block;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  padding: 7px;
  box-shadow: 0 18px 48px rgba(16, 40, 30, 0.18);
  backdrop-filter: blur(18px);
}

.bottom-nav .nav-item {
  min-height: 56px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  border-radius: 18px;
  padding: 5px 2px;
  font-size: 0.62rem;
  letter-spacing: 0;
}

.bottom-nav .nav-item:hover {
  transform: none;
}

.bottom-nav .nav-item svg {
  width: 20px;
  height: 20px;
}

.bottom-nav .nav-item.is-active {
  background: var(--green-deep);
  color: #ffffff;
}

.page-enter {
  animation: pageIn 420ms ease both;
}

.campus-hub {
  display: grid;
  gap: 20px;
}

.campus-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.campus-topbar h1 {
  margin: 4px 0 10px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1;
}

.campus-selector {
  display: inline-flex;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(16, 40, 30, 0.05);
}

.campus-selector span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campus-selector svg,
.campus-tools svg {
  width: 19px;
  height: 19px;
}

.campus-tools {
  display: flex;
  gap: 8px;
}

.campus-tools button,
.campus-detail-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(16, 40, 30, 0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.campus-tools button:hover,
.campus-detail-close:hover {
  border-color: rgba(13, 90, 66, 0.24);
  box-shadow: 0 15px 34px rgba(16, 40, 30, 0.08);
  transform: translateY(-1px);
}

.sticky-back {
  position: fixed;
  right: max(28px, env(safe-area-inset-right, 0px));
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  left: auto;
  z-index: 110;
  display: inline-flex;
  width: fit-content;
  max-width: min(260px, calc(100vw - 32px));
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(116, 24, 24, 0.14);
  border-radius: 999px;
  background: #b83232;
  color: #ffffff;
  padding: 0 16px;
  box-shadow: 0 14px 32px rgba(116, 24, 24, 0.22);
  backdrop-filter: blur(10px);
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sticky-back:focus-visible {
  outline: 3px solid rgba(215, 242, 67, 0.95);
  outline-offset: 2px;
}

.sticky-back:hover {
  background: #a72b2b;
  box-shadow: 0 18px 38px rgba(116, 24, 24, 0.26);
  transform: translateY(-2px);
}

.sticky-back:active {
  background: #942525;
  transform: translateY(0);
}

.sticky-back svg {
  width: 18px;
  height: 18px;
  color: currentColor;
  transform: rotate(180deg);
}

.roommates-page:has(.sticky-back),
.campus-detail-card:has(.sticky-back),
.errands-panel:has(.sticky-back),
.department-panel:has(.sticky-back),
.campus-news-panel:has(.sticky-back),
.advert-panel:has(.sticky-back),
.roommate-profile:has(> .sticky-back),
.apartment-detail:has(> .sticky-back),
.learn-panel:has(.sticky-back),
.learn-tutor-profile:has(> .sticky-back),
.notes-panel:has(> .sticky-back),
.jobs-panel:has(.sticky-back),
.job-detail:has(> .sticky-back),
.events-panel:has(.sticky-back),
.event-detail:has(> .sticky-back),
.pq-panel:has(.sticky-back),
.pq-preview:has(> .sticky-back),
.pq-ai-screen:has(> .sticky-back),
.market-detail-view:has(> .sticky-back),
.market-shop-view:has(> .sticky-back),
.market-chat-preview:has(> .sticky-back),
.market-services-view:has(> .sticky-back),
.market-role-gate:has(> .sticky-back),
.market-category-screen:has(> .sticky-back),
.market-community-screen:has(> .sticky-back),
.market-panel:has(.sticky-back) {
  animation: none;
  padding-bottom: 92px;
  transform: none;
}

.campus-ad-stage {
  display: grid;
  gap: 12px;
}

.campus-ad-stage .campus-ad-card.is-main { grid-template-columns: minmax(0, 1fr); }
.campus-ad-stage .campus-ad-art { grid-template-columns: minmax(0, 1fr); }
.campus-ad-stage .campus-ad-media { width: 100%; padding: 0; border-radius: 0; background: #ecf1ef; min-width: 0; }
.app-main .campus-ad-stage .campus-ad-media img,
.app-main .campus-ad-stage .campus-ad-media video { width: 100%; height: 230px; object-fit: contain; }
.campus-ad-stage .campus-ad-copy { min-width: 0; overflow-wrap: anywhere; padding: 16px; }
.campus-ad-navigation { display: flex; align-items: center; justify-content: center; gap: 12px; }
.campus-ad-navigation button { width: 44px; height: 44px; border: 1px solid #c9d7ce; border-radius: 8px; background: white; }
.campus-ad-navigation button { display: grid; place-items: center; flex: 0 0 44px; color: #07553f; box-shadow: 0 3px 10px rgba(7, 85, 63, .12); cursor: pointer; }
.campus-ad-navigation button:hover, .campus-ad-navigation button:focus-visible { background: #e8f3df; }
.campus-ad-navigation svg { width: 18px; height: 18px; }
.advert-owner-list { display: grid; gap: 8px; }
.advert-owner-list .advert-owner-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.advert-owner-thumbnail { position: relative; width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: #eef0ed; }
.advert-owner-thumbnail img, .advert-owner-thumbnail video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.advert-owner-thumbnail [hidden] { display: none; }
.advert-owner-media-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #555; font-size: 10px; }
.advert-owner-number { position: absolute; top: 3px; left: 3px; z-index: 1; min-width: 20px; height: 20px; padding: 0 3px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #07553f; color: #fff; font-size: 10px; font-weight: 700; }
.advert-owner-content { display: grid; align-content: start; gap: 6px; min-width: 0; }
.advert-owner-heading { display: flex; align-items: center; gap: 8px; min-width: 0; }
.advert-owner-heading strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.35; }
.advert-owner-views { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; color: #52645d; }
.advert-owner-status { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; background: #eef0ed; color: #333; font-size: 10px; font-weight: 700; }
.advert-owner-status.is-active { background: #07553f; color: #fff; }
.advert-owner-actions { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.advert-owner-actions button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px 3px; border: 0; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.advert-owner-actions .advert-owner-edit { background: #e9ee9c; color: #073f30; }
.advert-owner-actions .advert-owner-unpublish { background: #b3262e; color: #fff; }
.advert-owner-actions .advert-owner-remove { background: #171b19; color: #fff; }
.advert-owner-actions button:disabled { opacity: .65; cursor: wait; }
.advert-owner-actions button:focus-visible { outline: 2px solid #07553f; outline-offset: 2px; }
@media (max-width: 430px) {
  .advert-owner-actions { gap: 3px; }
  .advert-owner-actions button { padding: 6px 1px; font-size: 10px; }
  .advert-owner-heading { gap: 4px; }
  .advert-owner-heading strong { font-size: 12px; }
}
.advert-card-media img, .advert-card-media video { max-width: 100%; object-fit: contain; }
.advert-card-body { min-width: 0; overflow-wrap: anywhere; }
.post-advert-form input, .post-advert-form textarea, .post-advert-form select { max-width: 100%; min-width: 0; }

.campus-ad-card {
  position: relative;
  display: grid;
  min-height: min(34vh, 330px);
  overflow: hidden;
  border: 1px solid rgba(225, 234, 216, 0.94);
  border-radius: 32px;
  background:
    radial-gradient(circle at 22% 24%, rgba(215, 242, 67, 0.58), transparent 18rem),
    linear-gradient(140deg, #ffffff 0%, #f8fcf0 46%, #eef7dd 100%);
  box-shadow: var(--shadow);
}

.campus-ad-card.is-main {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: stretch;
}

.campus-ad-art {
  display: grid;
  min-height: 230px;
  place-items: center;
  background:
    linear-gradient(155deg, rgba(7, 56, 44, 0.08), rgba(255, 255, 255, 0.2)),
    repeating-linear-gradient(135deg, rgba(13, 90, 66, 0.06), rgba(13, 90, 66, 0.06) 1px, transparent 1px, transparent 18px);
}

.campus-ad-media {
  display: grid;
  width: min(78%, 320px);
  min-height: 170px;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.88), transparent 4.5rem),
    linear-gradient(145deg, var(--lemon), #eff9d7 52%, #ffffff);
  color: var(--green-deep);
  padding: 22px;
  box-shadow: inset 0 -24px 42px rgba(13, 90, 66, 0.12), 0 24px 60px rgba(16, 40, 30, 0.12);
}

.campus-ad-media span,
.campus-ad-media small {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.campus-ad-media strong {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.9;
}

.campus-ad-media small {
  color: rgba(7, 56, 44, 0.68);
}

.campus-ad-copy {
  display: grid;
  align-content: center;
  gap: 13px;
  padding: clamp(18px, 3vw, 32px);
}

.campus-ad-meta,
.campus-ad-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.campus-ad-meta span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.campus-ad-copy h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1;
}

.campus-ad-copy p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.campus-ad-footer {
  justify-content: space-between;
}

.campus-ad-footer strong {
  color: var(--green-deep);
}

.campus-ad-rail {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.campus-ad-rail span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cedcc1;
}

.campus-ad-rail .is-active {
  width: 24px;
  background: var(--green-deep);
}

.campus-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.campus-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}

.campus-section-head > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.campus-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.campus-hub--feature {
  align-content: start;
}

.campus-feature-card {
  display: grid;
  min-height: 96px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  border: 1px solid rgba(13, 90, 66, 0.22);
  border-radius: 22px;
  color: var(--green-deep);
  padding: 11px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

button.campus-feature-card {
  font: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.campus-feature-card:hover,
.campus-feature-card:focus-visible {
  border-color: rgba(13, 90, 66, 0.2);
  box-shadow: 0 16px 34px rgba(16, 40, 30, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.campus-feature-card > span:last-child {
  display: block;
  max-width: 100%;
  font-size: 0.78rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.campus-feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(13, 90, 66, 0.16);
  background: #ffffff;
  color: var(--green-deep);
}

.campus-feature-icon svg {
  width: 18px;
  height: 18px;
}

.tone-mint {
  background: #dff4d2;
}

.campus-ad-vendor-strip {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1.25;
}

.campus-ad-vendor-strip span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tone-sky {
  background: #ddecff;
}

.tone-lemon {
  background: #f3f7b8;
}

.tone-rose {
  background: #ffe0d8;
}

.tone-green {
  background: #d8efe1;
}

.tone-gold {
  background: #f9e8ae;
}

.campus-detail-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.campus-detail-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.campus-detail-icon svg,
.campus-detail-close svg {
  width: 22px;
  height: 22px;
}

.campus-detail-card h2 {
  margin: 3px 0 4px;
}

.campus-detail-card p:last-child {
  margin: 0;
  color: var(--muted);
}

.campus-news-panel {
  display: grid;
  gap: 14px;
  max-width: 780px;
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  margin-inline: auto;
  animation: pageIn 260ms ease both;
}

.campus-news-head,
.campus-news-controls,
.news-post-top,
.news-actions,
.news-action-panel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.campus-news-head {
  justify-content: space-between;
}

.campus-news-head h2 {
  margin: 3px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
}

.campus-news-controls {
  align-items: stretch;
  flex-wrap: wrap;
}

.campus-news-search {
  display: flex;
  min-height: 46px;
  flex: 1 1 220px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  padding: 0 12px;
}

.campus-news-search svg {
  width: 18px;
  height: 18px;
  color: var(--green-deep);
}

.campus-news-search input,
.campus-news-controls select {
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.campus-news-search input {
  min-width: 0;
  width: 100%;
}

.campus-news-controls select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  padding: 0 12px;
}

.news-create-button {
  width: auto;
  min-height: 46px;
}

.campus-news-scope {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.campus-news-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: auto;
  overflow: visible;
}

.campus-news-categories button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.campus-news-categories button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.campus-news-feed {
  display: grid;
  gap: 16px;
}

.news-post-card,
.create-news-panel,
.news-action-panel {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
}

.news-post-card {
  overflow: hidden;
}

.news-post-top {
  padding: 14px 14px 12px;
}

.news-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 900;
}

.news-post-top > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.news-post-top strong {
  display: block;
  color: var(--green-deep);
}

.news-post-top p {
  margin: 1px 0 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.news-post-top span,
.news-post-meta span {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 900;
}

.news-post-top button {
  min-height: 36px;
  border: 1px solid rgba(13, 90, 66, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 11px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.news-post-top button.is-active {
  background: var(--green-deep);
  color: #ffffff;
}

.news-post-media {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: end;
  gap: 8px;
  background: #f4faeb;
  color: var(--green-deep);
  padding: 18px;
}

.news-post-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-post-card.is-video .news-post-media {
  min-height: 300px;
}

.news-post-media span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.news-post-media svg {
  width: 23px;
  height: 23px;
}

.news-post-media strong {
  position: relative;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1;
}

.after-jamb-chat-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.after-jamb-chat-panel .chat-messages {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

.after-jamb-chat-panel .chat-messages article {
  border-radius: 16px;
  background: #f7fbef;
  padding: 10px 12px;
}

.after-jamb-chat-panel .chat-messages article.is-me {
  background: #e9f6dc;
}

.after-jamb-chat-panel .chat-messages strong,
.after-jamb-chat-panel .chat-messages small {
  display: block;
  color: rgba(7, 56, 44, 0.68);
  font-size: 0.78rem;
}

.after-jamb-chat-panel .chat-messages p {
  margin: 4px 0;
  color: var(--green-deep);
}

.news-post-body {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.news-post-meta {
  display: grid;
  gap: 8px;
}

.news-post-meta strong {
  color: var(--green-deep);
  font-size: 1.08rem;
  line-height: 1.25;
}

.news-post-body p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.news-actions {
  justify-content: space-between;
  border-top: 1px solid #edf2e8;
  padding: 8px;
}

.news-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  padding: 0 9px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 900;
}

.news-actions button svg {
  width: 17px;
  height: 17px;
}

.news-actions button.is-active {
  background: var(--green-soft);
  color: var(--green-deep);
}

.create-news-panel {
  padding: 14px;
}

.create-news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.create-news-head h3 {
  margin: 3px 0 0;
  color: var(--green-deep);
}

.create-news-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.create-news-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.create-news-form .is-wide,
.create-actions {
  grid-column: 1 / -1;
}

.create-news-form input,
.create-news-form select,
.create-news-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.create-media-picker {
  display: grid;
  gap: 9px;
}

.create-media-picker > span {
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.create-media-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.create-media-options button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.create-media-options button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.create-media-options svg {
  width: 17px;
  height: 17px;
}

.create-upload-card {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 1px dashed rgba(13, 90, 66, 0.28);
  border-radius: 20px;
  background: #fbfdf8;
  color: var(--green-deep);
  cursor: pointer;
  padding: 14px;
  text-align: center;
}

.create-upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.create-upload-card strong,
.create-upload-card small {
  display: block;
}

.create-upload-card small {
  color: var(--muted);
  font-weight: 800;
}

.create-actions {
  display: flex;
  gap: 10px;
}

.create-actions .lc-button {
  flex: 1;
}

.news-action-panel {
  position: sticky;
  bottom: 100px;
  z-index: 5;
  justify-content: space-between;
  padding: 14px;
}

.news-action-panel h3 {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-size: 1rem;
}

.news-load-more {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  font-weight: 900;
}

.advert-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(215, 242, 67, 0.11), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.advert-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.advert-panel-head h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.advert-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.advert-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.advert-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.advert-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.advert-browse,
.post-advert-panel {
  display: grid;
  gap: 14px;
}

.advert-filter-row {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.advert-filter-row::-webkit-scrollbar {
  display: none;
}

.advert-filter-row button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.advert-filter-row button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.advert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.advert-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.055);
}

.advert-card.is-preview {
  max-width: 440px;
}

.advert-card-media {
  display: grid;
  min-height: 176px;
  align-content: end;
  gap: 8px;
  background: #f4faeb;
  color: var(--green-deep);
  padding: 16px;
  position: relative;
}

.advert-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advert-card-media img + strong,
.advert-card-media img ~ span {
  position: relative;
  z-index: 1;
}

.advert-card-media span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.advert-card-media svg {
  width: 21px;
  height: 21px;
}

.advert-card-media strong {
  position: relative;
  z-index: 1;
  max-width: 12ch;
  font-size: clamp(1.45rem, 4vw, 2.25rem);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.advert-card-body {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.advert-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.advert-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 900;
}

.advert-card-top strong {
  display: block;
  color: var(--green-deep);
}

.advert-card-top p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.advert-card-top button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--green-deep);
  cursor: pointer;
}

.advert-card-top button svg {
  width: 18px;
  height: 18px;
}

.advert-card-copy {
  display: grid;
  gap: 8px;
}

.advert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.advert-badges span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 0.67rem;
  font-weight: 900;
}

.advert-card-copy h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1.05rem;
  line-height: 1.22;
}

.advert-card-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.advert-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf2e8;
  padding-top: 10px;
}

.advert-card-footer small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.advert-card-footer .lc-button {
  width: auto;
  min-height: 38px;
  padding-inline: 16px;
}

.post-advert-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.post-advert-form label,
.advert-media-picker {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.post-advert-form .is-wide,
.advert-create-actions {
  grid-column: 1 / -1;
}

.post-advert-form input,
.post-advert-form select,
.post-advert-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.advert-media-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.advert-media-options button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.advert-media-options button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.advert-media-options svg {
  width: 17px;
  height: 17px;
}

.advert-upload-card {
  display: grid;
  min-height: 130px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(13, 90, 66, 0.28);
  border-radius: 22px;
  background: #fbfdf8;
  color: var(--green-deep);
  cursor: pointer;
  padding: 14px;
  position: relative;
  text-align: center;
}

.advert-upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.advert-upload-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advert-upload-card.has-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 56, 44, 0.06), rgba(7, 56, 44, 0.48));
}

.advert-upload-card > span,
.advert-upload-card strong,
.advert-upload-card small {
  position: relative;
  z-index: 1;
}

.advert-upload-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
}

.advert-upload-card strong,
.advert-upload-card small {
  display: block;
}

.advert-upload-card small {
  color: var(--muted);
  font-weight: 800;
}

.advert-upload-card.has-preview strong,
.advert-upload-card.has-preview small {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(7, 56, 44, 0.36);
}

.advert-create-actions {
  display: flex;
  gap: 10px;
}

.advert-create-actions .lc-button {
  flex: 1;
}

.advert-preview-wrap {
  display: grid;
  gap: 8px;
}

.advert-publish-note {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.18);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
}

.advert-publish-note svg {
  width: 18px;
  height: 18px;
}

.market-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(13, 90, 66, 0.06), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.market-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.market-panel-head h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.market-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.market-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.market-filter-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.market-filter-button svg {
  width: 18px;
  height: 18px;
}

.market-filter-drawer {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.07);
  animation: pageIn 180ms ease both;
}

.market-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-deep);
}

.market-filter-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
}

.market-filter-head svg {
  width: 17px;
  height: 17px;
}

.market-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-toolbar {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

.market-toolbar label,
.market-filter-grid label,
.market-sell-form label,
.market-media-picker {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.market-toolbar input,
.market-toolbar select,
.market-topline input,
.market-filter-grid select,
.market-sell-form input,
.market-sell-form select,
.market-sell-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.market-sell-form textarea {
  min-height: 94px;
  padding-block: 12px;
}

.market-scope-line {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.market-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.market-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.market-tabs button {
  white-space: normal;
}

.market-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.market-buy-view,
.market-sell-view,
.market-community {
  display: grid;
  gap: 14px;
}

.market-detail-view,
.market-shop-view,
.market-chat-preview,
.market-services-view {
  display: grid;
  gap: 14px;
}

.market-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.market-category-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(225, 234, 216, 0.92);
  border-radius: 20px;
  color: var(--green-deep);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-category-card[hidden] {
  display: none;
}

.market-category-card:hover,
.market-category-card:focus-visible {
  border-color: rgba(13, 90, 66, 0.2);
  box-shadow: 0 16px 34px rgba(16, 40, 30, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.market-category-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.market-category-card svg {
  width: 18px;
  height: 18px;
}

.market-category-card strong {
  max-width: 100%;
  font-size: 0.76rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.advert-browse {
  min-width: 0;
}

.advert-tabs .advert-tab-browse {
  background: #eef6e7;
  color: var(--green-deep);
}

.advert-tabs .advert-tab-browse.is-active {
  background: #dfeccb;
  color: var(--green-deep);
  box-shadow: none;
}

.advert-tabs .advert-tab-place,
.advert-tabs .advert-tab-place:hover,
.advert-tabs .advert-tab-place:focus-visible,
.advert-tabs .advert-tab-place.is-active {
  background: #07553f;
  color: #fff;
}

.advert-tabs .advert-tab-manage,
.advert-tabs .advert-tab-manage:hover,
.advert-tabs .advert-tab-manage:focus-visible,
.advert-tabs .advert-tab-manage.is-active {
  background: #b3262e;
  color: #fff;
}

/* Keep inner Market choices opaque and visually distinct from the page surface. */
.market-category-card,
.market-role-card,
.market-service-category-card {
  border-color: rgba(7, 85, 63, 0.28);
  box-shadow: 0 10px 22px rgba(7, 63, 48, 0.1);
}

.market-category-card.tone-mint,
.market-role-card.tone-mint,
.market-service-category-card.tone-mint {
  background: #d5f2c8;
}

.market-category-card.tone-sky,
.market-role-card.tone-sky,
.market-service-category-card.tone-sky {
  background: #d6eaff;
}

.market-category-card.tone-lemon,
.market-role-card.tone-lemon,
.market-service-category-card.tone-lemon {
  background: #f3f36a;
}

.market-category-card.tone-rose,
.market-role-card.tone-rose,
.market-service-category-card.tone-rose {
  background: #ffd9d2;
}

.market-category-card.tone-green,
.market-role-card.tone-green,
.market-service-category-card.tone-green {
  background: #ccebd6;
}

.market-category-card span,
.market-role-card > span,
.market-service-category-card > span {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(7, 85, 63, 0.1);
}

.market-community-head {
  display: grid;
  gap: 12px;
}

.market-community-head h3 {
  margin: 3px 0 5px;
  color: var(--green-deep);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
}

.market-community-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.market-back-button {
  display: inline-flex;
  width: max-content;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 900;
}

.market-back-button svg {
  width: 16px;
  height: 16px;
}

.market-chat-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.16);
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.market-chat-entry svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.market-chat-entry span,
.market-chat-entry strong,
.market-chat-entry small {
  display: block;
}

.market-chat-entry small {
  color: var(--muted);
  font-weight: 800;
}

.market-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-listing-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.055);
}

.market-listing-card.is-preview {
  max-width: 440px;
}

.market-listing-media {
  display: grid;
  min-height: 66px;
  align-content: end;
  gap: 7px;
  background: #f4faeb;
  color: var(--green-deep);
  padding: 14px;
  position: relative;
}

.market-listing-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-listing-media.has-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 31, 23, 0.76));
  pointer-events: none;
}

.market-listing-media.has-image strong {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.market-listing-media > svg {
  width: 34px;
  height: 34px;
  position: relative;
  z-index: 1;
}

.market-listing-media strong {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1;
}

.market-listing-body {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.market-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.market-listing-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 8px;
  font-size: 0.64rem;
  font-weight: 900;
}

.market-listing-body h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 1rem;
  line-height: 1.2;
}

.market-listing-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
}

.market-listing-body footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf2e8;
  padding-top: 9px;
}

.market-listing-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.market-listing-body footer div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.market-listing-body footer strong {
  color: var(--green-deep);
}

.market-listing-body footer small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.market-listing-body .lc-button {
  width: auto;
  min-height: 36px;
  padding-inline: 14px;
}

.market-community-action {
  width: max-content;
}

.market-product-detail {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.055);
}

.market-detail-media {
  display: grid;
  min-height: 320px;
  align-content: end;
  gap: 10px;
  border-radius: 22px;
  color: var(--green-deep);
  padding: 18px;
}

.market-detail-media svg {
  width: 48px;
  height: 48px;
}

.market-detail-media strong {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
}

.market-detail-copy {
  display: grid;
  align-content: start;
  gap: 13px;
}

.market-detail-copy h3,
.market-shop-head h3,
.market-chat-card h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.market-detail-price {
  color: var(--green-deep);
  font-size: 1.35rem;
}

.market-detail-copy p,
.market-shop-card > p,
.market-chat-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.55;
}

.market-detail-vendor {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 10px;
}

.market-detail-vendor small,
.market-shop-head p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.market-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.market-detail-actions .lc-button {
  width: auto;
}

.market-shop-card,
.market-chat-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.055);
}

.market-shop-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.market-shop-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 900;
}

.market-voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.16);
  border-radius: 20px;
  background: #fbfdf8;
  padding: 10px;
}

.market-voice-note button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--green-deep);
  color: #ffffff;
  cursor: pointer;
}

.market-voice-note svg {
  width: 18px;
  height: 18px;
}

.market-voice-note strong,
.market-voice-note span {
  display: block;
}

.market-voice-note span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.market-collection-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.market-collection-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.market-shop-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-service-block {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  padding: 12px;
}

.market-service-block header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.market-service-block header > span,
.market-service-media {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green-deep);
}

.market-service-block svg,
.market-service-media svg {
  width: 20px;
  height: 20px;
}

.market-service-block h3 {
  margin: 0 0 4px;
  color: var(--green-deep);
  font-size: 1rem;
}

.market-service-block p,
.market-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.market-service-cards {
  display: grid;
  gap: 9px;
}

.market-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 20px;
  background: #ffffff;
  padding: 10px;
}

.market-service-card > p,
.market-service-card footer {
  grid-column: 1 / -1;
}

.market-service-card strong,
.market-service-card small {
  display: block;
}

.market-service-card small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.market-service-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #edf2e8;
  padding-top: 8px;
}

.market-service-card footer span {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.market-service-card footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.market-service-card .lc-button {
  width: auto;
  min-height: 34px;
  padding-inline: 12px;
}

.market-sell-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-sell-form .is-wide,
.market-create-actions {
  grid-column: 1 / -1;
}

.market-upload-card {
  display: grid;
  min-height: 130px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(13, 90, 66, 0.28);
  border-radius: 22px;
  background: #fbfdf8;
  color: var(--green-deep);
  cursor: pointer;
  padding: 14px;
  position: relative;
  text-align: center;
}

.market-upload-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.market-upload-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-upload-card.has-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 56, 44, 0.06), rgba(7, 56, 44, 0.48));
}

.market-upload-card > span,
.market-upload-card strong,
.market-upload-card small {
  position: relative;
  z-index: 1;
}

.market-upload-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
}

.market-upload-card strong,
.market-upload-card small {
  display: block;
}

.market-upload-card small {
  color: var(--muted);
  font-weight: 800;
}

.market-upload-card.has-preview strong,
.market-upload-card.has-preview small {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(7, 56, 44, 0.36);
}

.market-create-actions {
  display: flex;
  gap: 10px;
}

.market-create-actions .lc-button {
  flex: 1;
}

.market-preview-wrap {
  display: grid;
  gap: 8px;
}

.market-publish-note {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.18);
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 12px;
  font-size: 0.84rem;
  font-weight: 900;
}

.market-publish-note svg {
  width: 18px;
  height: 18px;
}

.department-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(215, 242, 67, 0.1), rgba(255, 255, 255, 0) 44%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.department-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.department-panel-head h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.department-panel-head p:last-child,
.department-community-main p,
.department-preview-card p {
  margin: 0;
  color: var(--muted);
}

.department-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.department-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.department-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.department-tab-panel {
  display: grid;
  gap: 14px;
}

.department-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.department-filter-grid.public {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.department-filter-grid label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.department-school-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.department-school-types,
.department-school-list {
  max-height: min(40vh, 300px);
}

.department-filter-grid select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.department-filter-grid select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 90, 66, 0.12);
}

.department-community-card,
.department-preview-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.05);
}

.department-community-card.public {
  background:
    linear-gradient(145deg, rgba(238, 246, 255, 0.8), rgba(255, 255, 255, 0.96)),
    #ffffff;
}

.department-community-main {
  display: flex;
  gap: 12px;
  align-items: center;
}

.department-badge {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 19px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.department-badge svg {
  width: 23px;
  height: 23px;
}

.department-community-main h3,
.department-preview-card h3 {
  margin: 2px 0 3px;
  color: var(--green-deep);
  font-size: 1.28rem;
}

.department-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.department-detail-grid span,
.department-preview-strip span {
  display: grid;
  gap: 3px;
  border: 1px solid #edf2e8;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--green-deep);
  padding: 11px;
  font-size: 0.84rem;
  font-weight: 900;
}

.department-detail-grid strong {
  color: var(--muted);
  font-size: 0.72rem;
}

.department-permission-note {
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 18px;
  background: #f7fbef;
  color: var(--green-deep);
  padding: 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.department-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.department-preview-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(215, 242, 67, 0.24), transparent 11rem),
    #ffffff;
}

.department-preview-strip {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 8px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 20px;
}

.profile-main,
.profile-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.profile-hero-card,
.profile-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
}

.profile-success {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.18);
  border-radius: 999px;
  background: #f2fae8;
  color: var(--green-deep);
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.06);
  animation: pageIn 320ms ease both;
}

.profile-success svg {
  width: 18px;
  height: 18px;
}

.profile-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-radius: 32px;
  padding: clamp(20px, 4vw, 34px);
}

.profile-photo {
  display: grid;
  width: 118px;
  min-height: 118px;
  place-items: center;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(215, 242, 67, 0.42), rgba(255, 255, 255, 0.64)),
    #ffffff;
  color: var(--green-deep);
  text-align: center;
  overflow: hidden;
}

.profile-photo img,
.photo-picker-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo span {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.profile-photo small {
  max-width: 96px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-hero-copy h1 {
  margin: 10px 0 10px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1;
}

.profile-hero-copy p,
.profile-body {
  margin: 0;
  color: var(--muted);
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-meta span,
.verification-pill,
.profile-chip,
.edit-note {
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-meta span,
.verification-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 8px 11px;
}

.verification-pill {
  border: 1px solid #d7e5ca;
  background: #ffffff;
  color: var(--muted);
}

.profile-edit-button {
  width: max-content;
  white-space: nowrap;
}

.profile-card {
  border-radius: 26px;
  padding: 20px;
}

.profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-section-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.profile-gallery-add {
  width: 20%;
  min-width: 0;
  justify-content: center;
  white-space: nowrap;
}

.detail-grid,
.private-list {
  display: grid;
  gap: 10px;
}

.detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid div,
.private-list div {
  display: grid;
  gap: 4px;
  border: 1px solid #edf2e8;
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 14px;
}

.detail-grid strong,
.private-list strong {
  font-size: 0.78rem;
  color: var(--muted);
}

.detail-grid span,
.private-list span {
  color: var(--green-deep);
  font-weight: 900;
}

.profile-chip-list,
.profile-placeholder-list,
.edit-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-chip,
.profile-placeholder-list span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  padding: 0 13px;
}

.profile-chip.muted,
.profile-placeholder-list span {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--green-deep);
}

.private-card {
  background:
    linear-gradient(150deg, rgba(215, 242, 67, 0.14), rgba(255, 255, 255, 0) 48%),
    #ffffff;
}

.edit-profile-card[hidden] {
  display: none;
}

.profile-edit-form {
  display: grid;
  gap: 16px;
}

.profile-settings-group {
  border: 1px solid var(--line);
  padding: 14px;
  margin: 0;
}

.profile-settings-group legend {
  font-weight: 800;
  padding: 0 6px;
}

.profile-settings-group .settings-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.profile-settings-group .settings-check input {
  width: 18px;
  height: 18px;
}

.profile-settings-group:not(:first-of-type) .settings-check {
  margin-top: 0;
}
.profile-settings-group:first-of-type > label:not(.settings-check) select,
.profile-settings-group:first-of-type > label:not(.settings-check) input {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdf8;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}
.profile-settings-group:first-of-type > label:not(.settings-check) select:focus,
.profile-settings-group:first-of-type > label:not(.settings-check) input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(13, 90, 66, .12);
  outline: none;
}
.profile-settings-group:last-of-type {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
}
.profile-settings-group:last-of-type legend { grid-column: 1 / -1; }
.profile-settings-group:last-of-type .settings-check { margin: 0; min-width: 0; align-items: center; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 400; }
.profile-settings-group:last-of-type .settings-check span { overflow-wrap: anywhere; }
@media (max-width: 360px) {
  .profile-settings-group:last-of-type { grid-template-columns: 1fr; }
}

.profile-edit-form label,
.edit-label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.9rem;
  font-weight: 900;
}

.edit-help {
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 20px;
  background: #f7fbef;
  color: var(--green-deep);
  padding: 13px 14px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.photo-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.photo-picker-preview {
  display: grid;
  width: 92px;
  min-height: 92px;
  place-items: center;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(215, 242, 67, 0.42), rgba(255, 255, 255, 0.64)),
    #ffffff;
  color: var(--green-deep);
  text-align: center;
  overflow: hidden;
}

.photo-picker-preview span {
  font-size: 1.7rem;
  font-weight: 900;
}

.photo-picker-preview small {
  max-width: 76px;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.photo-picker-copy {
  display: grid;
  gap: 7px;
}

.photo-picker-copy strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.photo-picker-copy > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.photo-picker-button {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.photo-picker-button:hover,
.photo-picker-button:focus-within {
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.08);
  transform: translateY(-1px);
}

.photo-picker-button svg {
  width: 17px;
  height: 17px;
}

.profile-edit-form input,
.profile-edit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfdf8;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.profile-edit-form .visually-hidden-file {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  padding: 0;
  border: 0;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 90, 66, 0.12);
}

.profile-edit-form small,
.edit-note {
  color: var(--muted);
}

.edit-chip-grid label {
  cursor: pointer;
}

.edit-chip-grid input {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
}

.edit-chip-grid span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.edit-chip-grid label:hover span,
.edit-chip-grid input:focus-visible + span {
  border-color: rgba(13, 90, 66, 0.42);
  box-shadow: 0 8px 18px rgba(16, 40, 30, 0.08);
  transform: translateY(-1px);
}

.edit-chip-grid input:checked + span {
  border-color: var(--green);
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 10px 20px rgba(13, 90, 66, 0.16);
}

.edit-chip-grid input:checked + span::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--lemon);
}

.edit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.market-redesign {
  gap: 18px;
}

.market-landing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.market-community-option {
  display: grid;
  min-height: 210px;
  align-content: end;
  gap: 12px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  color: var(--green-deep);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 16px 38px rgba(16, 40, 30, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.market-community-option:hover,
.market-community-option:focus-visible {
  border-color: rgba(13, 90, 66, 0.2);
  box-shadow: 0 22px 46px rgba(16, 40, 30, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.market-community-option > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--green-deep);
}

.market-community-option[data-market-community="products"] {
  background: #d4d900;
  color: var(--green-deep);
}

.market-community-option[data-market-community="services"] {
  background: var(--green);
  color: var(--surface);
}

.market-community-option svg {
  width: 26px;
  height: 26px;
}

.market-community-option strong {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.market-community-option small {
  max-width: 26ch;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
}

.market-community-screen,
.market-category-screen {
  display: grid;
  gap: 14px;
}

.market-six-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-category-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  padding: 14px;
}

.market-category-hero > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--green-deep);
}

.market-category-hero svg {
  width: 25px;
  height: 25px;
}

.market-category-hero h3 {
  margin: 3px 0 4px;
  color: var(--green-deep);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1;
}

.market-category-hero p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.market-category-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.market-category-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.market-category-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.market-product-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-product-card .market-listing-media {
  min-height: 190px;
}

.market-product-card .market-listing-media svg {
  width: 38px;
  height: 38px;
}

.market-card-price {
  color: var(--green-deep);
  font-size: 1.02rem;
}

.market-product-card .market-listing-body > small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.market-chat-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-chat-samples span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.market-role-gate,
.market-role-head {
  display: grid;
  gap: 14px;
}

.market-role-head h3 {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.market-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-role-card {
  display: grid;
  min-height: 170px;
  align-content: end;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  color: var(--green-deep);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 16px 36px rgba(16, 40, 30, 0.065);
}

.market-role-card > span,
.market-role-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  font-weight: 950;
}

.market-role-card strong {
  font-size: 1.35rem;
  line-height: 1;
}

.market-role-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.market-role-strip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
}

.market-role-badge {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: var(--green-soft);
}

.market-role-badge.seller {
  background: #fbfedf;
}

.market-role-strip:has(.market-role-badge.buyer) {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px;
  padding: 6px;
}

.market-role-strip:has(.market-role-badge.buyer) button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #07553f;
  color: #fff;
}

.market-role-strip strong {
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 950;
}

.market-role-strip small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.market-role-strip button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-deep);
  padding: 0 10px;
  cursor: pointer;
  font-weight: 900;
}

.market-chat-counts,
.market-chat-people {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.market-chat-counts span,
.market-chat-join {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.market-chat-join {
  width: max-content;
  background: #fbfedf;
}

.market-chat-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 950;
  position: relative;
}

.market-chat-avatar b {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  font-size: 0.56rem;
  position: absolute;
  right: -3px;
  bottom: -3px;
}

.market-chat-avatar.seller b {
  background: #8a7600;
}

.market-callout-clue,
.market-provider-callout {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 27px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 0.66rem;
  font-weight: 900;
}

.market-callout-clue svg,
.market-provider-callout svg {
  width: 14px;
  height: 14px;
}

.market-product-card.has-callout,
.market-provider-card.has-callout {
  touch-action: pan-y;
}

.market-product-card.is-playing-callout,
.market-provider-card.is-playing-callout,
.market-voice-note.is-playing-callout,
.market-voice-note button.is-playing-callout {
  border-color: rgba(13, 90, 66, 0.34);
  box-shadow: 0 18px 42px rgba(13, 90, 66, 0.14);
}

.market-voice-note button.is-playing-callout {
  background: var(--lemon);
  color: var(--green-deep);
}

.market-product-card.is-playing-callout .market-listing-media::after,
.market-provider-card.is-playing-callout::after {
  content: "Playing callout";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
  padding: 6px 9px;
  font-size: 0.64rem;
  font-weight: 900;
}

.market-listing-media {
  overflow: hidden;
}

.market-service-category-grid,
.market-service-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.market-service-category-card {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  color: var(--green-deep);
  padding: 13px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 12px 28px rgba(16, 40, 30, 0.055);
}

.market-service-category-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.market-service-category-card svg {
  width: 20px;
  height: 20px;
}

.market-service-category-card strong,
.market-service-category-card small {
  display: block;
}

.market-service-category-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.market-provider-card {
  position: relative;
}

.roommates-page {
  display: grid;
  gap: 16px;
  animation: pageIn 260ms ease both;
}
.roommates-page:has(.rm-photo-viewer) { animation: none; transform: none; }

.roommates-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(13, 90, 66, 0.07), rgba(255, 255, 255, 0) 46%),
    #ffffff;
  padding: 20px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
}

.roommates-head h1 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
}

.roommates-head p:last-child,
.post-accommodation-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.roommates-back,
.roommates-filter-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.roommates-back svg,
.roommates-filter-button svg {
  width: 17px;
  height: 17px;
}

.roommates-scope,
.roommates-success {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.roommates-scope > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.roommates-scope strong,
.roommates-scope small {
  display: block;
}

.roommates-scope small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.roommates-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roommates-option-card {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 28px;
  color: var(--green-deep);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.roommates-option-card:hover,
.roommates-option-card:focus-visible {
  border-color: rgba(13, 90, 66, 0.22);
  box-shadow: 0 18px 42px rgba(16, 40, 30, 0.09);
  transform: translateY(-2px);
  outline: none;
}

.roommates-option-card > span,
.roommate-photo {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-deep);
  font-weight: 950;
}

.roommates-option-card svg {
  width: 22px;
  height: 22px;
}

.roommates-option-card strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.roommates-option-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.roommates-section,
.roommate-profile,
.apartment-detail {
  display: grid;
  gap: 14px;
}

.roommates-toolbar,
.post-accommodation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.roommates-toolbar h2,
.post-accommodation-head h2,
.roommate-profile h2,
.apartment-detail-copy h2 {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.roommates-helper {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.roommates-tool-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.roommate-type-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.roommate-type-card {
  display: grid;
  min-height: 106px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 20px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.roommate-type-card:hover,
.roommate-type-card:focus-visible,
.roommate-photo-tile:hover,
.roommate-photo-tile:focus-visible {
  border-color: rgba(13, 90, 66, 0.22);
  box-shadow: 0 14px 30px rgba(16, 40, 30, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.roommate-type-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
}

.roommate-type-card svg {
  width: 18px;
  height: 18px;
}

.roommate-type-card strong {
  font-size: 0.75rem;
  font-weight: 950;
  line-height: 1.15;
}

.roommates-filter-drawer,
.post-accommodation-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.roommates-filter-drawer.is-simple {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.roommates-filter-drawer label,
.post-accommodation-form label,
.roommates-media-picker {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.roommates-filter-drawer input,
.roommates-filter-drawer select,
.post-accommodation-form input,
.post-accommodation-form select,
.post-accommodation-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.post-accommodation-form textarea {
  min-height: 88px;
  padding-block: 12px;
}

.post-accommodation-form .is-wide,
.roommates-preview,
.roommates-form-actions {
  grid-column: 1 / -1;
}

.roommate-card-grid,
.apartment-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.roommate-photo-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
}

.roommate-photo-tile {
  display: grid;
  min-width: 0;
  align-content: start;
  justify-items: center;
  gap: 5px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 18px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 8px 5px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 40, 30, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.roommate-photo-tile .roommate-photo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 0.78rem;
}

.roommate-photo-tile strong,
.roommate-photo-tile small,
.roommate-photo-tile em {
  display: block;
  max-width: 100%;
}

.roommate-photo-tile strong {
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.roommate-photo-tile small {
  min-height: 20px;
  border-radius: 999px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 3px 5px;
  font-size: 0.52rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.roommate-photo-tile small.has-apartment {
  background: var(--green-soft);
}

.roommate-photo-tile em {
  color: var(--muted);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.1;
}

.roommate-card,
.apartment-card,
.roommate-profile,
.apartment-detail,
.roommates-preview {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(16, 40, 30, 0.06);
}

.roommate-card,
.apartment-body,
.roommate-profile,
.apartment-detail-copy,
.roommates-preview {
  padding: 14px;
}

.roommate-card {
  display: grid;
  gap: 12px;
}

.roommate-card header,
.apartment-body header,
.roommate-profile-hero {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roommate-photo {
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
}

.roommate-photo.is-large {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  font-size: 1.25rem;
}

.roommate-card strong,
.apartment-body strong {
  display: block;
  color: var(--green-deep);
}

.roommate-card header span,
.roommate-card p,
.roommate-card small,
.apartment-body header span,
.apartment-body p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.roommate-meta,
.roommate-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.roommate-meta span,
.roommate-facts span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.roommate-card footer,
.apartment-body footer,
.roommate-profile-actions,
.roommates-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.roommate-card .lc-button,
.apartment-card .lc-button,
.roommate-profile-actions .lc-button,
.roommates-form-actions .lc-button {
  flex: 1;
  min-height: 38px;
}

.roommate-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.roommate-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 12px;
}

.roommate-detail-grid span,
.roommate-detail-grid strong {
  display: block;
}

.roommate-detail-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.roommate-detail-grid strong {
  margin-top: 3px;
  color: var(--green-deep);
  font-size: 0.86rem;
}

.apartment-card {
  overflow: hidden;
}

.apartment-media {
  display: grid;
  min-height: 154px;
  align-content: end;
  gap: 3px;
  color: var(--green-deep);
  padding: 14px;
  position: relative;
}

.apartment-media::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(7, 56, 44, 0.1) 0 2px, transparent 2px 28px);
}

.apartment-media span,
.apartment-media strong {
  position: relative;
  z-index: 1;
}

.apartment-media span {
  width: max-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 9px;
  font-size: 0.68rem;
  font-weight: 950;
}

.apartment-media strong {
  font-size: 1.2rem;
}

.apartment-media.is-large {
  min-height: 260px;
  border-radius: 26px;
}

.apartment-body {
  display: grid;
  gap: 12px;
}

.apartment-body header,
.apartment-detail-copy > strong {
  justify-content: space-between;
  color: var(--green-deep);
}

.apartment-gallery {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 10px;
}

.apartment-detail-copy {
  display: grid;
  gap: 12px;
}

.roommates-media-picker {
  border: 1px dashed rgba(13, 90, 66, 0.26);
  border-radius: 20px;
  background: #fbfdf8;
  padding: 12px;
}

.roommates-media-picker button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.roommates-media-picker small,
.roommates-preview span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.roommates-success {
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.learn-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(36, 107, 254, 0.06), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.learn-panel-head,
.learn-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.learn-panel-head h2 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.learn-panel-head p:last-child,
.learn-step-head p,
.learn-profile-hero p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.learn-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.learn-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.learn-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.learn-step,
.learn-tutor-profile {
  display: grid;
  gap: 14px;
}

.learn-step h3,
.learn-tutor-profile h3 {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  line-height: 1.1;
}

.learn-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learn-choice-card {
  display: grid;
  min-height: 156px;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  color: var(--green-deep);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learn-choice-card:hover,
.learn-choice-card:focus-visible,
.learn-topic-grid button:hover,
.learn-topic-grid button:focus-visible,
.learn-tutor-card:hover,
.learn-tutor-card:focus-within {
  border-color: rgba(13, 90, 66, 0.22);
  box-shadow: 0 16px 36px rgba(16, 40, 30, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.learn-choice-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.learn-choice-card svg {
  width: 20px;
  height: 20px;
}

.learn-choice-card strong,
.learn-choice-card small {
  display: block;
}

.learn-choice-card small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.learn-topic-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.learn-topic-grid button {
  min-height: 48px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 17px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learn-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.learn-filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.learn-filter-button svg {
  width: 17px;
  height: 17px;
}

.learn-filter-drawer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.learn-filter-drawer label,
.teach-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.learn-search-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 10px;
}

.learn-search-summary span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 950;
}

.learn-filter-drawer select,
.learn-custom-card input,
.teach-form input,
.teach-form select,
.teach-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.learn-custom-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.learn-custom-card label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.teach-custom {
  grid-column: 1 / -1;
}

.teach-form textarea {
  min-height: 88px;
  padding-block: 12px;
}

.learn-tutor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.learn-tutor-card,
.learn-tutor-profile,
.teach-form,
.teach-preview {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.learn-tutor-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.learn-tutor-photo {
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 0.78;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--green-soft), #eef6ff);
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 950;
}

.learn-tutor-photo.is-large {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  aspect-ratio: auto;
  border-radius: 28px;
  font-size: 1.3rem;
}

.learn-tutor-body {
  display: grid;
  gap: 8px;
}

.learn-tutor-body strong,
.learn-tutor-body span {
  display: block;
}

.learn-tutor-body strong {
  color: var(--green-deep);
}

.learn-tutor-body > span,
.learn-tutor-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.learn-chip-row,
.learn-tutor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learn-chip-row small,
.learn-tutor-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 8px;
  font-size: 0.62rem;
  font-weight: 950;
}

.learn-tutor-card footer,
.learn-profile-actions,
.teach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learn-tutor-card .lc-button,
.learn-profile-actions .lc-button,
.teach-actions .lc-button {
  flex: 1;
  min-height: 36px;
}

.learn-profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}

.learn-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.learn-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 12px;
}

.learn-detail-grid span,
.learn-detail-grid strong {
  display: block;
}

.learn-detail-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.learn-detail-grid strong {
  margin-top: 3px;
  color: var(--green-deep);
  font-size: 0.86rem;
}

.learn-tutor-profile,
.teach-form,
.teach-preview {
  padding: 14px;
}

.teach-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.teach-form .is-wide,
.teach-levels,
.teach-actions,
.teach-preview {
  grid-column: 1 / -1;
}

.teach-levels {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  margin: 0;
  padding: 12px;
}

.teach-levels legend {
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 4px;
}

.teach-levels div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teach-levels label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 10px;
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.teach-levels input {
  width: auto;
  min-height: 0;
}

.teach-preview h4 {
  margin: 3px 0 5px;
  color: var(--green-deep);
}

.teach-preview p {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 800;
}

.teach-preview span {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.learn-success {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.18);
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 12px;
  font-size: 0.84rem;
  font-weight: 900;
}

.notes-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(215, 242, 67, 0.12), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.notes-panel-head,
.notes-workspace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.notes-panel-head h2,
.notes-workspace h3,
.notes-result h3 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.08;
}

.notes-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.notes-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notes-action-card {
  display: grid;
  min-height: 164px;
  align-content: center;
  justify-items: start;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  color: var(--green-deep);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.055);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.notes-action-card:hover,
.notes-action-card:focus-visible {
  border-color: rgba(13, 90, 66, 0.22);
  box-shadow: 0 16px 36px rgba(16, 40, 30, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.notes-action-card > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.notes-action-card strong,
.notes-action-card small {
  display: block;
}

.notes-action-card small,
.notes-workspace-head p {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.notes-back,
.notes-inline-button,
.notes-result-actions button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.notes-back svg,
.notes-inline-button svg {
  width: 17px;
  height: 17px;
}

.notes-notice {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 1300;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(92vw, 420px);
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  padding: 8px 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  animation: notes-toast-in 180ms ease-out;
}

.notes-notice.is-warning {
  background: #345942;
}

.notes-notice svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

@keyframes notes-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.notes-library-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 20px;
  background: #f7fbef;
  padding: 6px;
}

.notes-library-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.notes-library-tabs button.is-active {
  background: var(--green-deep);
  color: #fffdf3;
}

.notes-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbef;
  padding: 12px;
}

.notes-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--green-deep);
  font: 700 0.75rem Arial, Helvetica, sans-serif;
}

.notes-filters input,
.notes-filters select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--green-deep);
  padding: 0 9px;
  font: 400 0.8rem Arial, Helvetica, sans-serif;
}

.notes-filter-clear {
  min-height: 36px;
  border: 1px solid var(--green-deep);
  border-radius: 10px;
  background: var(--green-deep);
  color: #fff;
  padding: 0 12px;
  cursor: pointer;
  font: 700 0.8rem Arial, Helvetica, sans-serif;
}

.notes-card-list {
  display: grid;
  gap: 10px;
}

.notes-library-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 30px rgba(16, 40, 30, 0.055);
}

.notes-library-card > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
}

.notes-library-card > div > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-weight: 950;
}

.notes-library-card h3,
.notes-library-card p,
.notes-library-card small {
  display: block;
  margin: 0;
}

.notes-library-card h3 {
  color: var(--green-deep);
  font-size: 1rem;
  letter-spacing: 0;
}

.notes-library-card p,
.notes-library-card small {
  color: var(--muted);
  font-weight: 800;
}

.notes-library-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.notes-library-card footer span,
.notes-library-card footer button {
  min-height: 36px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #f7fbef;
  color: var(--green-deep);
  padding: 0 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .notes-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .notes-filters { grid-template-columns: 1fr; }
}

.notes-library-card footer button {
  cursor: pointer;
  background: var(--green-deep);
  color: #fffdf3;
}

.notes-share-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: end;
  background: rgba(7, 56, 44, 0.28);
  padding: 16px;
}

.notes-share-card {
  display: grid;
  width: min(100%, 620px);
  max-height: min(82vh, 760px);
  margin-inline: auto;
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 28px;
  background: rgba(255, 254, 248, 0.98);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(7, 56, 44, 0.22);
}

.notes-share-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notes-share-head h3 {
  margin: 2px 0 4px;
  color: var(--green-deep);
  letter-spacing: 0;
}

.notes-share-head span,
.notes-selected-recipients small,
.notes-share-source p {
  color: var(--muted);
  font-weight: 800;
}

.notes-share-head button {
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 900;
}

.notes-share-search {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f7fbef;
  padding: 0 12px;
}

.notes-share-search svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.notes-share-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  outline: none;
  font: inherit;
  font-weight: 800;
}

.notes-selected-recipients {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.notes-selected-recipients strong {
  color: var(--green-deep);
}

.notes-selected-recipients span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 900;
}

.notes-selected-recipients svg {
  width: 14px;
  height: 14px;
}

.notes-student-list {
  display: grid;
  gap: 8px;
}

.notes-student-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
}

.notes-student-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-deep);
}

.notes-student-row span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 950;
}

.notes-student-row b,
.notes-student-row small {
  display: block;
}

.notes-student-row small {
  grid-column: 3;
  color: var(--muted);
  font-weight: 800;
}

.notes-share-message {
  display: grid;
  gap: 7px;
  color: var(--green-deep);
  font-weight: 900;
}

.notes-share-message textarea {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f7fbef;
  color: var(--green-deep);
  padding: 10px 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.notes-share-source {
  border-radius: 18px;
  background: #f7fbef;
  padding: 12px;
}

.notes-share-source strong,
.notes-share-source p {
  display: block;
  margin: 0;
}

.notes-share-actions {
  display: flex;
  gap: 10px;
}

.notes-share-actions .lc-button {
  flex: 1;
}

.notes-empty {
  border: 1px dashed rgba(13, 90, 66, 0.18);
  border-radius: 18px;
  color: var(--muted);
  padding: 14px;
  font-weight: 800;
  text-align: center;
}

.notes-recipient-summary {
  border-color: rgba(13, 90, 66, 0.16);
  background: linear-gradient(145deg, #ffffff, #f2fae8);
}

.notes-workspace {
  display: grid;
  gap: 14px;
}

.notes-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.notes-form label,
.notes-upload-card {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.notes-form input,
.notes-form select,
.notes-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.notes-form textarea {
  min-height: 120px;
  padding-block: 12px;
}

.notes-form .is-wide,
.notes-form-actions,
.notes-upload-card {
  grid-column: 1 / -1;
}

.notes-upload-card {
  justify-items: center;
  border: 1px dashed rgba(13, 90, 66, 0.26);
  border-radius: 20px;
  background: #fbfdf8;
  padding: 16px;
  text-align: center;
}

.notes-upload-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
}

.notes-upload-card small {
  color: var(--muted);
  font-weight: 800;
}

.notes-form-actions {
  display: flex;
}

.notes-topic-dropdown {
  grid-column: 1 / -1;
  border: 1px solid rgba(6, 76, 63, .18);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.notes-topic-dropdown summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #064c3f;
}

.notes-topic-picker {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 10px 14px 14px;
  border-top: 1px solid rgba(6, 76, 63, .12);
}

.notes-topic-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.notes-topic-option:hover {
  background: rgba(229, 255, 59, .18);
}

.notes-topic-option span {
  display: grid;
  gap: 3px;
}

.notes-topic-option small {
  color: #52665e;
}

.ai-provider-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 76, 63, .28);
}

.ai-provider-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border: 1px solid rgba(6, 76, 63, .18);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(6, 76, 63, .22);
  font-family: Arial, Helvetica, sans-serif;
}

.ai-provider-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.ai-provider-dialog h3 {
  margin: 0;
  font-weight: 800;
}

.ai-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.ai-provider-grid button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 12px;
  border: 1px solid rgba(6, 76, 63, .2);
  border-radius: 12px;
  background: #f8fff4;
  color: #064c3f;
  text-align: left;
  cursor: pointer;
}

.ai-provider-grid button:hover,
.ai-provider-grid button:focus-visible {
  border-color: #064c3f;
  background: #e5ff3b;
}

.ai-provider-grid small {
  color: #52665e;
}

@media (max-width: 420px) {
  .ai-provider-grid { grid-template-columns: 1fr; }
  .ai-provider-dialog { padding: 18px; }
}

.notes-result {
  display: grid;
  max-width: 860px;
  gap: 12px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  background: #ffffff;
  padding: 16px;
  box-shadow: 0 14px 36px rgba(16, 40, 30, 0.06);
}

.notes-result section,
.notes-question-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 12px;
}

.notes-result h4,
.notes-question-card h4 {
  margin: 0 0 6px;
  color: var(--green-deep);
}

.notes-result p,
.notes-question-card p,
.notes-question-card li {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.notes-question-list {
  display: grid;
  gap: 10px;
}

.notes-question-card ol {
  margin: 8px 0;
  padding-left: 22px;
}

.notes-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.jobs-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(248, 195, 61, 0.13), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.jobs-panel-head,
.jobs-toolbar,
.job-card header,
.job-card footer,
.job-detail-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.jobs-panel-head h2,
.jobs-toolbar h3,
.job-detail-card h3 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.08;
}

.jobs-panel-head p:last-child,
.jobs-toolbar p,
.job-detail-card header span {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.jobs-campus-strip,
.jobs-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.jobs-campus-strip > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.jobs-campus-strip strong,
.jobs-campus-strip small {
  display: block;
}

.jobs-campus-strip small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.jobs-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.jobs-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.jobs-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.jobs-view,
.job-detail {
  display: grid;
  gap: 14px;
}

.jobs-filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
}

.jobs-filter-button svg {
  width: 17px;
  height: 17px;
}

.jobs-filter-drawer,
.job-post-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.jobs-filter-drawer label,
.job-post-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.jobs-filter-drawer select,
.job-post-form input,
.job-post-form select,
.job-post-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.job-post-form textarea {
  min-height: 88px;
  padding-block: 12px;
}

.job-post-form .is-wide,
.job-post-actions,
.job-preview {
  grid-column: 1 / -1;
}

.jobs-category-row,
.job-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jobs-category-row span,
.job-chip-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.jobs-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.job-card,
.job-detail-card,
.job-preview {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.job-card,
.job-detail-card,
.job-preview {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.job-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  font-weight: 950;
}

.job-avatar.is-large {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  font-size: 1.1rem;
}

.job-card strong,
.job-card span,
.job-card small,
.job-card p,
.job-detail-card p,
.job-preview p,
.job-preview span {
  display: block;
}

.job-card header strong {
  color: var(--green-deep);
}

.job-card header span,
.job-card p,
.job-card small,
.job-detail-card p,
.job-preview p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.job-card footer {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.job-card footer > div:last-child,
.job-actions,
.job-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card .lc-button,
.job-actions .lc-button,
.job-post-actions .lc-button {
  flex: 1;
  min-height: 36px;
}

.job-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.job-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 12px;
}

.job-detail-grid span,
.job-detail-grid strong {
  display: block;
}

.job-detail-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.job-detail-grid strong {
  margin-top: 3px;
  color: var(--green-deep);
  font-size: 0.86rem;
}

.jobs-notice {
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.job-preview h4 {
  margin: 3px 0 5px;
  color: var(--green-deep);
}

.events-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 213, 74, 0.16), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.events-panel-head,
.events-toolbar,
.event-card footer,
.event-card-top,
.election-head,
.event-detail-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.events-panel-head h2,
.events-toolbar h3,
.event-detail-copy h3,
.election-head h3 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.08;
}

.events-panel-head p:last-child,
.events-toolbar p,
.event-detail-copy p,
.election-head p,
.event-special-card p,
.registered-voters-card p,
.election-authority-card p,
.election-safety-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.events-campus-strip,
.events-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.events-campus-strip > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.events-campus-strip strong,
.events-campus-strip small,
.events-notice {
  display: block;
}

.events-campus-strip small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.events-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.events-tabs button,
.events-category-row button,
.events-filter-button,
.event-action-row button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.events-tabs button {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.events-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.events-tabs button {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700 !important;
}

.events-view,
.event-detail,
.event-detail-copy,
.event-form,
.election-detail-card,
.candidate-list {
  display: grid;
  gap: 14px;
}

.events-filter-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  font-size: 0.8rem;
}

.events-category-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.events-category-row::-webkit-scrollbar {
  display: none;
}

.events-category-row button,
.events-section-row span,
.event-chip-row span,
.event-action-row button {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 11px;
  font-size: 0.73rem;
}

.events-category-row button.is-active {
  background: var(--green-deep);
  color: #ffffff;
}

.events-filter-drawer,
.event-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.events-filter-drawer label,
.event-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.events-filter-drawer input,
.events-filter-drawer select,
.event-form input,
.event-form select,
.event-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.event-form textarea {
  min-height: 88px;
  padding-block: 12px;
}

.event-form .is-wide,
.event-form-actions,
.event-preview,
.election-create-fields {
  grid-column: 1 / -1;
}

.events-section-row,
.event-chip-row,
.event-action-row,
.event-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.events-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.event-card,
.event-detail-card,
.election-detail-card,
.event-preview,
.event-special-card,
.registered-voters-card,
.election-authority-card,
.election-safety-card {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.event-card,
.event-detail-card,
.election-detail-card,
.event-preview,
.event-special-card,
.registered-voters-card,
.election-authority-card,
.election-safety-card {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.event-card {
  grid-template-columns: 150px minmax(0, 1fr);
}

.event-poster,
.event-detail-poster {
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  gap: 9px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  text-align: center;
}

.event-detail-poster {
  min-height: 260px;
}

.event-poster svg,
.event-detail-poster svg {
  width: 28px;
  height: 28px;
}

.event-poster strong,
.event-detail-poster strong {
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

.event-card-body {
  display: grid;
  gap: 9px;
}

.event-card-top span,
.event-card-top b,
.event-sports-line,
.election-head > span,
.candidate-list .events-toolbar > span {
  border-radius: 999px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
}

.event-card h4,
.event-detail-copy h3,
.event-preview h4,
.event-special-card h4,
.election-authority-card h4,
.candidate-list h4,
.candidate-card h5 {
  margin: 0;
  color: var(--green-deep);
}

.event-card p,
.event-card small,
.event-preview p,
.event-preview span,
.candidate-card p,
.candidate-card small {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.event-card footer {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.event-card .lc-button,
.event-form-actions .lc-button,
.event-detail-actions .lc-button {
  flex: 1;
  min-height: 36px;
}

.event-detail-card {
  grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
}

.event-detail-grid,
.election-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.event-detail-grid div,
.election-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 11px;
}

.event-detail-grid span,
.event-detail-grid strong,
.election-detail-grid span,
.election-detail-grid strong {
  display: block;
}

.event-detail-grid span,
.election-detail-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.event-detail-grid strong,
.election-detail-grid strong {
  margin-top: 3px;
  color: var(--green-deep);
  font-size: 0.85rem;
}

.event-special-card,
.election-authority-card,
.election-safety-card {
  background: #fbfdf8;
}

.event-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.event-stats-row span {
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.events-notice {
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.election-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.registered-voters-card {
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  background: linear-gradient(145deg, var(--green-soft), #ffffff);
}

.registered-voters-card span,
.registered-voters-card strong {
  display: block;
}

.registered-voters-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.registered-voters-card strong {
  color: var(--green-deep);
  font-size: clamp(1.8rem, 6vw, 3rem);
}

.candidate-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdf8;
  padding: 10px;
}

.candidate-photo {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  font-weight: 950;
}

.candidate-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.candidate-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f2e5;
}

.candidate-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green-deep);
}

.election-create-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.14);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.election-create-fields .kicker,
.event-authority-note {
  grid-column: 1 / -1;
}

.event-authority-note {
  border: 1px solid rgba(13, 90, 66, 0.16);
  border-radius: 18px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 11px;
  font-size: 0.82rem;
  font-weight: 900;
}

.event-file-picker {
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 11px;
}

.pq-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 122, 89, 0.08), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.pq-panel-head,
.pq-toolbar,
.pq-card header,
.pq-card footer,
.pq-request-card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pq-panel-head h2,
.pq-preview-copy h3 {
  margin: 3px 0 6px;
  color: var(--green-deep);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  line-height: 1.08;
}

.pq-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.pq-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.pq-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.pq-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.pq-view,
.pq-preview,
.pq-preview-copy,
.pq-detail-grid {
  display: grid;
  gap: 14px;
}

.pq-search {
  display: flex;
  min-height: 46px;
  flex: 1;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #ffffff;
  padding: 0 12px;
}

.pq-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
}

.pq-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.live-school-selection-summary {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--green-deep);
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pq-filter-button,
.pq-inline-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 13px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.pq-filter-drawer,
.pq-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
  animation: pageIn 180ms ease both;
}

.pq-filter-drawer label,
.pq-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.pq-filter-drawer input,
.pq-filter-drawer select,
.pq-form input,
.pq-form select,
.pq-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.pq-form textarea {
  min-height: 90px;
  padding-block: 12px;
}

.pq-form .is-wide,
.pq-form-actions,
.pq-file-picker,
.pq-upload-preview {
  grid-column: 1 / -1;
}

.pq-card-grid,
.pq-request-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pq-card,
.pq-preview-card,
.pq-request-card,
.pq-upload-preview {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.pq-card,
.pq-request-card,
.pq-upload-preview {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.pq-card header strong,
.pq-request-card strong,
.pq-upload-preview h4 {
  color: var(--green-deep);
}

.pq-card header span,
.pq-card p,
.pq-request-card p,
.pq-request-card span,
.pq-upload-preview p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.pq-card b {
  border-radius: 999px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 4px 9px;
  font-size: 0.72rem;
}

.pq-card b.is-free {
  background: var(--green-soft);
}

.pq-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pq-chip-row span {
  min-height: 26px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 5px 9px;
  font-size: 0.68rem;
  font-weight: 900;
}

.pq-card .lc-button,
.pq-request-card .lc-button,
.pq-actions .lc-button,
.pq-form-actions .lc-button {
  flex: 1;
  min-height: 36px;
}

.pq-preview-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  padding: 14px;
}

.pq-sample-page {
  display: grid;
  min-height: 260px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--green-soft), #ffffff);
  color: var(--green-deep);
  text-align: center;
}

.pq-sample-page span {
  border-radius: 999px;
  background: #ffffff;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 950;
}

.pq-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pq-detail-grid div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 10px;
}

.pq-detail-grid span,
.pq-detail-grid strong {
  display: block;
}

.pq-detail-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.pq-detail-grid strong {
  color: var(--green-deep);
  font-size: 0.84rem;
}

.pq-actions,
.pq-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pq-file-picker,
.pq-trust-note,
.pq-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 20px;
  background: #fbfdf8;
  padding: 12px;
  color: var(--green-deep);
  font-weight: 850;
}

.pq-file-picker {
  justify-content: center;
  border-style: dashed;
  text-align: center;
}

.pq-file-picker small {
  color: var(--muted);
  font-size: 0.78rem;
}

.pq-notice {
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  font-size: 0.84rem;
  font-weight: 900;
}

.pq-ai-screen,
.pq-ai-card,
.pq-ai-layout,
.pq-ai-paper,
.pq-ai-controls,
.pq-ai-result,
.pq-solution-locked {
  display: grid;
  gap: 14px;
}

.pq-ai-card {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 26px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.pq-ai-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pq-ai-head h3,
.pq-ai-result h4 {
  margin: 3px 0 6px;
  color: var(--green-deep);
}

.pq-ai-head p:last-child,
.pq-ai-question p,
.pq-ai-result p,
.pq-solution-locked p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.55;
}

.pq-ai-head > span,
.pq-ai-result b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 950;
}

.pq-ai-context,
.pq-solution-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pq-ai-context div,
.pq-ai-question,
.pq-ai-meta,
.pq-ai-result,
.pq-solution-grid article,
.pq-solution-locked {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 11px;
}

.pq-ai-context span,
.pq-ai-context strong,
.pq-ai-question span,
.pq-ai-meta span,
.pq-ai-meta strong,
.pq-ai-result header span,
.pq-solution-grid span,
.pq-solution-grid strong {
  display: block;
}

.pq-ai-context span,
.pq-ai-question span,
.pq-ai-meta span,
.pq-ai-result header span,
.pq-solution-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.pq-ai-context strong,
.pq-ai-meta strong,
.pq-solution-grid h5,
.pq-solution-locked strong {
  margin: 4px 0 0;
  color: var(--green-deep);
}

.pq-ai-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: start;
}

.pq-ai-controls label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.pq-ai-controls select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.pq-study-toggle {
  min-height: 46px;
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  padding: 0 12px;
}

.pq-study-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-deep);
}

.pq-ai-result header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pq-ai-style-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pq-ai-style-notes span {
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.pq-solution-grid article {
  display: grid;
  gap: 6px;
}

.pq-solution-grid p {
  font-size: 0.82rem;
}

.pq-ai-footnote {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pq-solution-locked {
  justify-items: start;
  background: linear-gradient(145deg, var(--green-soft), #ffffff);
}

.errands-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(255, 213, 74, 0.16), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  padding: 18px;
  box-shadow: 0 15px 42px rgba(16, 40, 30, 0.06);
  animation: pageIn 260ms ease both;
}

.errands-panel-head,
.errands-section-head,
.errands-request-head,
.errands-toggle-row,
.errands-request-card header,
.errands-request-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.errands-panel-head {
  align-items: flex-start;
}

.errands-panel-head h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

.errands-panel-head p:last-child {
  margin: 0;
  color: var(--muted);
}

.errands-campus-strip,
.errands-safety-note,
.errands-success,
.errands-verification-card,
.errands-profile-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 22px;
  background: #fbfdf8;
  padding: 12px;
}

.errands-campus-strip > span,
.errands-trust-card > span,
.errands-profile-preview > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.errands-campus-strip svg,
.errands-trust-card svg,
.errands-profile-preview svg,
.errands-safety-note svg {
  width: 20px;
  height: 20px;
}

.errands-campus-strip strong,
.errands-campus-strip small,
.errands-toggle-row strong,
.errands-toggle-row span,
.errands-profile-preview strong,
.errands-profile-preview p {
  display: block;
}

.errands-campus-strip small,
.errands-toggle-row span,
.errands-profile-preview p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.errands-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
  padding: 5px;
}

.errands-tabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.errands-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.errands-view,
.errands-request-feed,
.errands-runner-controls {
  display: grid;
  gap: 14px;
}

.errands-section-head h3 {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-size: 1.15rem;
}

.errands-section-head .lc-button {
  width: auto;
  min-height: 38px;
  padding-inline: 14px;
}

.errands-runner-grid,
.errands-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.errands-runner-card,
.errands-request-card,
.errands-request-panel,
.errands-trust-card {
  border: 1px solid rgba(225, 234, 216, 0.95);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 40, 30, 0.055);
}

.errands-runner-card,
.errands-request-card,
.errands-request-panel {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.errands-runner-card header,
.errands-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.errands-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  font-weight: 950;
}

.errands-runner-card strong,
.errands-request-card strong {
  display: block;
  color: var(--green-deep);
}

.errands-runner-card header span,
.errands-runner-card p,
.errands-runner-card small,
.errands-request-card header span,
.errands-request-card p,
.errands-request-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.45;
}

.errands-card-row,
.errands-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.errands-card-row span,
.errands-request-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.errands-card-row .is-available {
  background: #fff7df;
}

.errands-runner-card .lc-button,
.errands-request-card .lc-button {
  width: auto;
  min-height: 36px;
  padding-inline: 12px;
}

.errands-safety-note {
  align-items: flex-start;
  background: var(--green-soft);
  color: var(--green-deep);
}

.errands-safety-note p {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 850;
  line-height: 1.45;
}

.errands-request-head button,
.errands-verification-card .campus-detail-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
}

.errands-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.errands-request-form label,
.errands-coverage-picker {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.errands-request-form .is-wide,
.errands-form-actions {
  grid-column: 1 / -1;
}

.errands-request-form input,
.errands-request-form select,
.errands-request-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.errands-request-form textarea {
  min-height: 88px;
  padding-block: 12px;
}

.errands-form-actions,
.errands-request-card footer div,
.errands-coverage-picker div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.errands-form-actions .lc-button {
  flex: 1;
}

.errands-success {
  border-color: rgba(13, 90, 66, 0.18);
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 900;
}

.errands-toast {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: min(300px, calc(100vw - 32px));
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 12px;
  background: #064c3f;
  color: #fff;
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.2);
  font-size: 0.82rem;
  font-weight: 850;
  animation: errandsToastIn 180ms ease both;
}

.errands-toast.is-error {
  background: #7a302d;
}

.errands-toast svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

@keyframes errandsToastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.errands-trust-card {
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}

.errands-trust-card div {
  flex: 1;
}

.errands-trust-card h3,
.errands-request-head h3,
.errands-verification-card h3 {
  margin: 3px 0 5px;
  color: var(--green-deep);
}

.errands-trust-card p:last-child,
.errands-verification-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.errands-switch {
  display: inline-flex;
  width: 78px;
  min-height: 40px;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef2ea;
  padding: 4px;
  cursor: pointer;
}

.errands-switch span {
  display: grid;
  min-width: 34px;
  min-height: 30px;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(16, 40, 30, 0.1);
}

.errands-switch.is-on {
  justify-content: flex-end;
  border-color: rgba(13, 90, 66, 0.2);
  background: var(--green-deep);
}

.errands-switch.is-on span {
  color: var(--green-deep);
}

.errands-coverage-picker button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-deep);
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.errands-coverage-picker button.is-selected {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.errands-profile-preview.is-available {
  border-color: rgba(13, 90, 66, 0.2);
  background: var(--green-soft);
}

.errands-request-card header b {
  color: var(--green-deep);
}

.errands-request-card footer small {
  color: var(--green-deep);
  font-weight: 900;
}

.errands-verification-card {
  align-items: flex-start;
  background: #fffdf3;
}

.live-page,
.live-screen {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  animation: pageIn 260ms ease both;
}

.app-main:has(.live-page),
.app-main:has(.live-screen) {
  background:
    radial-gradient(circle at 16% 0%, rgba(215, 242, 67, 0.13), transparent 30rem),
    linear-gradient(180deg, #f7faf2 0%, #f4f8ef 58%, #f8fbf4 100%);
}

.live-hero,
.live-panel,
.live-card,
.live-video-card,
.live-comments,
.live-camera-preview {
  min-width: 0;
  border: 1px solid rgba(209, 226, 199, 0.9);
  border-radius: 26px;
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 0 16px 42px rgba(16, 40, 30, 0.065);
}

.live-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.28fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
}

.live-hero h1,
.live-section-head h2,
.live-video-info h1,
.live-card h3 {
  margin: 3px 0 7px;
  color: var(--green-deep);
  line-height: 1.08;
}

.live-hero h1 {
  font-size: clamp(1.7rem, 4vw, 3rem);
}

.live-hero p,
.live-section-head p,
.live-video-info p,
.live-card p,
.live-comments p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.live-hero aside {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 76% 18%, rgba(215, 242, 67, 0.36), transparent 4rem),
    linear-gradient(145deg, #0b342b, #10241f);
  color: #ffffff;
  padding: 16px;
}

.live-hero aside span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--lemon);
}

.live-hero aside small {
  color: #E5FF3B;
  font-size: 0.76rem;
  font-weight: 850;
}

.live-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgba(209, 226, 199, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  padding: 5px;
}

.live-tabs button,
.live-camera-switch,
.live-floating-camera {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.live-tabs button {
  min-height: 42px;
  border-radius: 16px;
  background: transparent;
  color: #415147;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.live-tabs button.is-active {
  background: var(--green-deep);
  color: #ffffff;
}

.live-tabs button.is-active svg {
  color: var(--lemon);
}

.live-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.live-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.live-section-head.compact h2 {
  font-size: 1rem;
}

.live-section-head > span,
.live-meta-row span,
.live-category-row button,
.live-system-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #f2f8ea;
  color: var(--green-deep);
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
}

.live-category-row,
.live-meta-row,
.live-action-row,
.live-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-category-row button {
  background: #fff8df;
  cursor: pointer;
  font: inherit;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.live-category-row button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.live-category-row button:hover {
  border-color: rgba(13, 90, 66, 0.22);
  transform: translateY(-1px);
}

.live-school-bar,
.live-school-drawer,
.live-empty {
  border: 1px solid rgba(209, 226, 199, 0.9);
  border-radius: 22px;
  background: rgba(255, 254, 248, 0.92);
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.045);
}

.live-school-bar {
  display: block;
  padding: 10px;
}

.live-school-bar div:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.live-school-bar strong {
  color: var(--green-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-school-bar span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-school-bar div:last-child,
.live-school-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-school-bar .live-school-buttons { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 0; }
.live-school-bar .live-school-buttons > button { flex: 0 0 30%; width: 30%; box-sizing: border-box; }

.live-school-bar button {
  width: 100%;
  min-width: 0;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 999px;
  background: #f2f8ea;
  color: var(--green-deep);
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 0 11px;
}

.live-school-bar button.is-active {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: #ffffff;
}

.live-school-drawer {
  display: grid;
  gap: 10px;
  padding: 12px;
  animation: pageIn 180ms ease both;
}

.live-school-drawer > div:first-child,
.live-school-actions {
  grid-column: 1 / -1;
}

.live-school-drawer h3,
.live-empty h3 {
  margin: 2px 0 0;
  color: var(--green-deep);
}

.live-school-drawer label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-school-drawer select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.live-school-types,
.after-school-types {
  max-height: none;
}

.live-school-list,
.after-school-list,
.chat-public-school-options {
  max-height: min(42vh, 330px);
}

.after-school-list.is-progress-hidden {
  display: none;
}

.live-empty {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
}

.live-empty > span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.live-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.live-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-card {
  display: grid;
  overflow: hidden;
}

.live-card-media,
.live-video-surface {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  gap: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 20%, rgba(215, 242, 67, 0.22), transparent 7rem),
    linear-gradient(145deg, #071d19, #102923);
  color: #ffffff;
  text-align: center;
}

.live-card-media.is-sports,
.live-video-surface.is-sports {
  background:
    radial-gradient(circle at 72% 24%, rgba(215, 242, 67, 0.24), transparent 7rem),
    linear-gradient(145deg, #09271e, #12382d);
}

.live-card-media.is-debate,
.live-video-surface.is-debate {
  background:
    radial-gradient(circle at 74% 22%, rgba(255, 248, 223, 0.2), transparent 7rem),
    linear-gradient(145deg, #111f25, #273735);
}

.live-card-media.is-academic,
.live-video-surface.is-academic {
  background:
    radial-gradient(circle at 76% 18%, rgba(215, 242, 67, 0.18), transparent 7rem),
    linear-gradient(145deg, #102822, #1e3835);
}

.live-card-media.is-student,
.live-video-surface.is-student,
.live-video-surface.is-camera {
  background:
    radial-gradient(circle at 72% 24%, rgba(215, 242, 67, 0.24), transparent 7rem),
    linear-gradient(145deg, #0b221d, #1e302b);
}

.live-card-media div,
.live-media-placeholder > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--lemon);
}

.live-media-placeholder {
  position: relative;
  z-index: 0;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.live-card-media small,
.live-video-surface small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
}

.live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: #be2e2e;
  color: #ffffff;
  padding: 6px 9px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.live-card-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.live-card-body header,
.live-video-info header,
.live-comment-list article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.live-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: linear-gradient(145deg, #dff1ce, #fff7df);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 950;
  box-shadow: 0 6px 16px rgba(16, 40, 30, 0.08);
}

.live-card-body header small,
.live-video-info header small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.live-card .lc-button {
  min-height: 38px;
}

.live-video-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.live-video-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
}

.live-video-surface {
  min-width: 0;
  min-height: clamp(280px, 52vw, 520px);
}

.live-video-surface strong {
  max-width: 100%;
  padding-inline: 12px;
  overflow-wrap: anywhere;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
}

.live-video-info {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
}

.live-action-row .lc-button {
  min-height: 38px;
}

.lc-button.danger {
  border-color: rgba(162, 45, 45, 0.22);
  background: #fff1ee;
  color: #9d2c25;
}

.live-end-note {
  border: 1px solid rgba(162, 45, 45, 0.18);
  border-radius: 16px;
  background: #fff7f4;
  padding: 10px;
}

.live-comments {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 12px;
}

.live-comment-list {
  display: grid;
  gap: 9px;
  max-height: min(48vh, 440px);
  overflow-y: auto;
}

.live-comment-list article {
  align-items: flex-start;
  border: 1px solid rgba(13, 90, 66, 0.09);
  border-radius: 18px;
  background: #fbfdf8;
  padding: 10px;
}

.live-comment-list p strong {
  display: block;
  color: var(--green-deep);
}

.live-safety-note {
  display: flex;
  gap: 9px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 18px;
  background: #f2f8ea;
  color: var(--green-deep);
  padding: 10px;
}

.live-safety-note p {
  color: var(--green-deep);
  font-size: 0.8rem;
}

.live-setup-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.live-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.live-form label {
  display: grid;
  gap: 7px;
  color: #27342c;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-form .is-wide,
.live-form-actions {
  grid-column: 1 / -1;
}

.live-form input,
.live-form select,
.live-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 16px;
  background: #fbfdf8;
  color: var(--green-deep);
  padding: 0 12px;
  outline: none;
  font: inherit;
  font-weight: 800;
}

.live-form textarea {
  min-height: 92px;
  padding-block: 12px;
}

.live-form-actions .lc-button {
  flex: 1;
}

.live-camera-preview {
  display: grid;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

.live-camera-preview .live-video-surface {
  min-height: 280px;
  border-radius: 20px;
}

.live-video-surface video,
.live-video-surface audio {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-video-surface audio {
  height: 0;
}

.live-video-surface > .live-badge,
.live-video-surface > .live-floating-camera,
.live-video-surface > .live-connection-chip,
.live-video-surface > .live-enable-audio {
  position: absolute;
  z-index: 3;
}

.live-connection-alert {
  position: absolute;
  right: 0.75rem;
  bottom: 3.15rem;
  left: 0.75rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 42, 31, 0.92);
  color: #ffffff;
  padding: 9px 10px;
  text-align: left;
}

.live-connection-alert[hidden] {
  display: none;
}

.live-connection-alert p {
  margin: 0;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.live-connection-alert button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 11px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.live-connection-chip {
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(7, 42, 31, 0.82);
  color: #fff;
  font-size: 0.72rem;
}

.live-enable-audio {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: #fff;
  color: #123d2c;
  font-weight: 700;
}

.live-media-placeholder {
  display: grid;
  place-items: center;
  gap: 0.5rem;
}

.live-preview-controls,
.live-comment-form {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.live-comment-form {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(18, 61, 44, 0.12);
}

.live-comment-form input {
  min-width: 0;
  flex: 1 1 10rem;
  min-height: 42px;
  border: 1px solid rgba(18, 61, 44, 0.18);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
}

.live-comment-error {
  flex: 1 0 100%;
  color: #9d2c25 !important;
  font-size: 0.75rem !important;
}

.live-join-toast {
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  right: max(14px, env(safe-area-inset-right, 0px));
  z-index: 220;
  display: inline-flex;
  max-width: calc(100vw - 28px);
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 56, 44, 0.94);
  color: #ffffff;
  padding: 7px 11px;
  box-shadow: 0 10px 24px rgba(7, 42, 31, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
  pointer-events: none;
  animation: liveToastIn 180ms ease both;
}

.live-join-toast svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

@keyframes liveToastIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.live-role-note {
  margin: 0;
  color: #6f3029;
  font-size: 0.82rem;
}

.live-form-actions button:disabled,
.live-preview-controls button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.live-camera-switch,
.live-floating-camera {
  min-height: 40px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  padding: 0 14px;
}

.live-floating-camera {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.app-main:has(.home-feed-page) {
  background:
    radial-gradient(circle at 14% 0%, rgba(215, 242, 67, 0.1), transparent 26rem),
    linear-gradient(180deg, #fbfcf8 0%, #f7faf2 58%, #fcfdf9 100%);
}

.home-feed-page {
  display: grid;
  width: min(100%, 1120px);
  margin-inline: auto;
  gap: 10px;
  padding-bottom: 28px;
  color: var(--green-deep);
  font-family: Arial, Helvetica, sans-serif;
}

@media (min-width: 921px) {
  .home-feed-page > .home-inline-panel,
  .home-feed-page > .home-post,
  .home-feed-page > .home-feed-loader,
  .home-feed-page > .home-empty {
    width: min(100%, 860px);
    margin-inline: auto;
  }

  .after-jamb-page {
    max-width: 1280px;
  }

  .after-jamb-page .after-jamb-simple-flow,
  .after-jamb-page .after-jamb-group-card,
  .after-jamb-page .after-jamb-group-preview,
  .after-jamb-page .after-jamb-community,
  .after-jamb-page .after-jamb-request-form {
    width: min(100%, 1120px);
    margin-inline: auto;
  }
}

.home-feed-page *,
.home-feed-page *::before,
.home-feed-page *::after {
  min-width: 0;
}

.home-feed-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top));
  z-index: 14;
  display: grid;
  grid-template-columns: auto minmax(120px, 0.72fr) auto auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(13, 90, 66, 0.07);
  border-radius: 18px;
  background: rgba(255, 254, 250, 0.88);
  color: var(--green-deep);
  padding: 8px;
  box-shadow: 0 14px 34px rgba(16, 40, 30, 0.07);
  backdrop-filter: blur(16px);
}

.home-brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-brand-mini span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--green-deep), var(--green));
  color: var(--lemon);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-brand-mini strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.home-school-select {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #f5faee;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 20px 0 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
}

.home-school-select::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.home-school-select span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-campus-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #f5faee;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.home-campus-pill.is-active {
  border-color: rgba(7, 56, 44, 0.22);
  background: var(--green-deep);
  color: #fffdf3;
}

.home-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-header-actions button,
.home-icon-button {
  position: relative;
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0 10px;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.home-header-actions button:hover,
.home-icon-button:hover {
  background: rgba(255, 167, 38, 0.16);
}

.home-header-actions button b {
  position: absolute;
  top: 9px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lemon);
}

.home-header-actions svg,
.home-school-select svg,
.home-icon-button svg {
  width: 17px;
  height: 17px;
}

.home-inline-panel,
.home-post,
.home-sheet-card,
.home-feed-loader,
.home-empty {
  border: 1px solid rgba(13, 90, 66, 0.1);
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 0 12px 30px rgba(16, 40, 30, 0.055);
}

.home-inline-panel {
  border-radius: 18px;
  padding: 10px;
}

.home-composer-panel {
  display: grid;
  gap: 12px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.home-composer-panel .home-panel-head {
  position: sticky;
  top: -16px;
  z-index: 2;
  margin: -16px -16px 0;
  border-bottom: 1px solid rgba(13, 90, 66, 0.08);
  background: rgba(255, 255, 255, 0.97);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.home-composer-submit {
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.94);
}

[data-home-upload-status-host]:empty {
  display: none;
}

.home-composer-panel textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(13, 90, 66, 0.14);
  border-radius: 16px;
  padding: 12px;
  font: inherit;
}

.home-upload-drop {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px dashed rgba(13, 90, 66, 0.24);
  border-radius: 14px;
  background: #f7fbef;
  padding: 10px 14px;
  color: var(--green-deep);
  cursor: pointer;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.home-upload-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-upload-drop svg {
  width: 20px;
  height: 20px;
}

.home-media-empty,
.home-media-summary,
.home-composer-visibility {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.home-composer-media-grid {
  display: grid;
  grid-auto-columns: 86px;
  grid-auto-flow: column;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.home-composer-media-grid figure {
  position: relative;
  display: grid;
  width: 86px;
  min-width: 0;
  gap: 4px;
  margin: 0;
}

.home-media-kind {
  display: grid;
  width: 86px;
  height: 72px;
  place-items: center;
  border-radius: 10px;
  background: #0b2b20;
  color: #fff;
}

.home-media-kind svg {
  width: 24px;
  height: 24px;
}

.home-composer-media-grid figcaption {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-composer-media-grid button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 28, 21, 0.78);
  color: #fff;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}

.home-search {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 18px;
  background: #f7fbef;
  padding: 0 14px;
}

.home-search svg {
  width: 19px;
  height: 19px;
  color: rgba(13, 90, 66, 0.66);
}

.home-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  outline: none;
  font: inherit;
  font-weight: 500;
}

.home-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.home-panel-head h2 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: 0;
  font-weight: 600;
}

.home-panel-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.home-panel-head button {
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
  padding: 7px 11px;
  font-weight: 600;
}

.home-filter-panel {
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.market-buy-sell-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  border: 1px solid rgba(7, 85, 63, 0.22);
  border-radius: 10px;
  background: #eef6e7;
  padding: 5px;
}

.market-buy-sell-tabs button {
  min-width: 0;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #07553f;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.market-buy-sell-tabs button.is-active {
  background: #07553f;
  color: #ffffff;
}

.market-buy-sell-tabs.is-compact button {
  min-height: 40px;
}

.department-filter-toolbar { display: flex; justify-content: flex-end; }
.department-filter-toolbar .lc-button { min-width: 116px; }
.department-setup { display: grid; gap: 12px; border: 1px solid rgba(13, 90, 66, .2); border-radius: 16px; background: #f7fbe9; padding: 14px; }
.department-setup > div:first-child { display: grid; gap: 3px; }
.department-setup small { color: var(--muted); }
.department-setup label { display: grid; gap: 7px; font-weight: 900; }
.department-setup select { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 10px; font: inherit; }

body[data-route="home"] .home-filter-panel {
  position: fixed;
  inset: var(--home-filter-top, 128px) 12px auto;
  width: min(860px, calc(100% - 24px));
  max-height: var(--home-filter-height, calc(100dvh - 220px));
  margin: 0 auto;
  box-sizing: border-box;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fffef8;
}

/* Match the existing sheet layer only for browsers without native popovers. */
body[data-route="home"] > .home-filter-panel:not([popover]) {
  z-index: 80;
}

.home-filter-panel::backdrop {
  background: rgba(7, 56, 44, 0.12);
}

.home-school-options:has(.school-name-row) {
  gap: 8px;
}

.home-school-options button.school-name-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 60px;
  padding: 12px;
}

.school-name-only {
  min-width: 0;
  overflow-wrap: anywhere;
}

.school-name-only strong {
  line-height: 1.4;
  white-space: normal;
}

.home-filter-back {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-filter-back::before {
  content: "<";
  margin-right: 6px;
}

.home-school-search {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 14px;
  background: #f7fbef;
  padding: 0 11px;
}

.home-school-search svg {
  width: 16px;
  height: 16px;
  color: rgba(13, 90, 66, 0.62);
}

.home-school-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  outline: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
}

.home-school-options {
  display: grid;
  gap: 6px;
  max-height: min(52vh, 430px);
  overflow: auto;
}

.home-school-options button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.home-school-options button.is-selected {
  border-color: rgba(13, 90, 66, 0.28);
  background: #edf7e2;
}

.home-school-options button > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.home-school-options strong {
  display: block;
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
}

.home-school-options em {
  color: rgba(7, 56, 44, 0.68);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
}

.home-school-options small {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--green-deep);
  color: #ffffff;
}

.home-school-options small svg {
  width: 14px;
  height: 14px;
}

.home-school-logo {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #edf7e2, #fff7dc);
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-school-logo[data-logo]::before {
  content: attr(data-logo);
}

.home-school-logo svg {
  width: 16px;
  height: 16px;
}

.home-school-empty {
  margin: 0;
  border-radius: 14px;
  background: #f7fbef;
  color: var(--muted);
  padding: 12px;
  font-size: 0.84rem;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .home-school-options button:hover,
  .home-campus-pill:not(.is-active):hover,
  .home-filter-back:hover,
  .home-school-select:hover {
    border-color: rgba(255, 159, 28, 0.42);
    background: #ffa726;
    color: #162016;
    transform: translateY(-1px);
  }

  .home-school-options button:hover em,
  .home-school-options button:hover strong {
    color: #162016;
  }
}

.home-school-options button:active {
  background: rgba(255, 167, 38, 0.22);
  transform: scale(0.99);
}

.home-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-filter-grid label {
  display: grid;
  gap: 6px;
}

.home-filter-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.home-filter-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  outline: none;
  padding: 0 10px;
  font: inherit;
  font-weight: 500;
}

.home-filter-actions {
  display: flex;
  gap: 10px;
}

.home-filter-actions .lc-button {
  flex: 1;
}

.home-notifications {
  display: grid;
  gap: 10px;
}

.home-notifications article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 18px;
  background: #f7fbef;
  padding: 10px;
}

.home-notifications article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green-deep);
}

.home-notifications svg {
  width: 18px;
  height: 18px;
}

.home-notifications p {
  margin: 0;
  font-weight: 850;
}

.home-notifications small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.home-feed {
  display: grid;
  gap: 12px;
}

.home-post {
  overflow: hidden;
  border-radius: 20px;
}

.home-post-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 8px;
}

.home-poster {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.home-poster span,
.home-profile-preview > span,
.home-comment-list article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-soft), #fff7df);
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 600;
}

.home-post-head strong,
.home-post-head p {
  margin: 0;
}

.home-post-head strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 600;
}

.home-post-head p {
  color: rgba(7, 56, 44, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.home-post-head small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.home-follow {
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fffdf3;
  cursor: pointer;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-follow.is-active {
  background: var(--green-soft);
  color: var(--green-deep);
}

.home-icon-button {
  min-width: 32px;
  min-height: 32px;
  border-color: rgba(13, 90, 66, 0.08);
  background: #f7fbef;
  color: var(--green-deep);
  padding: 0;
}

.home-caption {
  margin: 0;
  padding: 0 10px 9px;
  color: #1d2a22;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.42;
}

.home-media {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 5;
  min-height: 380px;
  align-content: end;
  overflow: hidden;
  border-radius: 0;
  padding: 12px;
  color: #fffdf3;
  isolation: isolate;
}

.home-media.is-square {
  aspect-ratio: 1 / 1;
  min-height: 0;
}

.home-media.is-wide {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.home-media.is-portrait {
  aspect-ratio: 9 / 14;
}

.home-media.is-reel {
  aspect-ratio: 9 / 16;
  min-height: 500px;
}

.home-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, 0.24), transparent 12rem),
    linear-gradient(145deg, #0d5a42, #07382c);
}

.home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 56, 44, 0.05), rgba(7, 56, 44, 0.64));
}

.home-media.is-gold::before {
  background: linear-gradient(145deg, #8a7600, #0d5a42);
}

.home-media.is-blue::before {
  background: linear-gradient(145deg, #24546f, #07382c);
}

.home-media.is-cream::before {
  background: linear-gradient(145deg, #d7f243, #0d5a42);
}

.home-media.is-lemon::before {
  background: linear-gradient(145deg, #d7f243, #5f7b24 48%, #07382c);
}

.home-media img {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-media.fit-contain img {
  object-fit: contain;
  padding: 10px;
}

.home-media.fit-contain::before {
  filter: saturate(0.78);
}

.home-media-label {
  position: relative;
  z-index: 3;
  display: grid;
  width: max-content;
  max-width: min(100%, 360px);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(7, 56, 44, 0.58), rgba(13, 90, 66, 0.28));
  padding: 8px 10px;
  backdrop-filter: blur(12px);
}

.home-media-label strong {
  font-size: clamp(1rem, 4.8vw, 1.45rem);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 600;
}

.home-media-label small {
  margin-top: 3px;
  color: rgba(255, 253, 243, 0.78);
  font-size: 0.74rem;
  font-weight: 500;
}

.home-sponsored,
.home-duration,
.home-sound {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fffdf3;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.home-sponsored {
  top: 12px;
  left: 12px;
  background: var(--lemon);
  color: var(--green-deep);
}

.home-duration {
  right: 12px;
  bottom: 12px;
}

.home-sound {
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
}

.home-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 62px;
  height: 62px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fffdf3;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.home-play svg {
  width: 28px;
  height: 28px;
}

.home-carousel-dots {
  position: absolute;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 5px;
}

.home-carousel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.home-carousel-dots span.is-active {
  width: 18px;
  background: var(--lemon);
}

.home-carousel-peek {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.home-carousel-peek span {
  position: relative;
  display: block;
  width: 38px;
  height: 48px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
}

.home-carousel-peek span.is-active {
  border-color: var(--lemon);
}

.home-carousel-peek img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.home-engagement {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
}

.home-engagement button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  background: #f7fbef;
  color: var(--green-deep);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
}

.home-engagement button.is-active {
  background: var(--green-deep);
  color: #fffdf3;
}

.home-engagement svg {
  width: 16px;
  height: 16px;
}

.home-feed-loader,
.home-empty {
  border-radius: 22px;
  color: var(--muted);
  padding: 14px;
  font-weight: 850;
  text-align: center;
}

.home-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(7, 56, 44, 0.28);
  padding: 16px;
}

.home-sheet-card {
  display: grid;
  width: min(100%, 640px);
  max-height: min(78vh, 680px);
  margin-inline: auto;
  gap: 14px;
  overflow: auto;
  border-radius: 28px;
  padding: 16px;
}

.home-sheet-card.is-compact {
  max-width: 520px;
}

.home-comment-list {
  display: grid;
  gap: 10px;
}

.home-comment-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.home-comment-list p {
  margin: 0;
  border-radius: 18px;
  background: #f7fbef;
  padding: 10px 12px;
  font-weight: 750;
}

.home-comment-list strong,
.home-comment-list small {
  display: block;
}

.home-comment-list small {
  color: var(--muted);
  font-size: 0.74rem;
}

.home-comment-form {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  background: rgba(255, 254, 248, 0.94);
  padding-top: 8px;
}

.home-comment-form input {
  min-height: 46px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 999px;
  background: #f7fbef;
  color: var(--green-deep);
  outline: none;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.home-comment-form button {
  border: 0;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fffdf3;
  cursor: pointer;
  padding: 0 16px;
  font-weight: 950;
}

.home-share-actions {
  display: grid;
  gap: 8px;
}

.home-share-actions button {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 16px;
  background: #f7fbef;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 900;
}

.home-profile-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 20px;
  background: #f7fbef;
  padding: 12px;
}

.home-profile-preview h3,
.home-profile-preview p {
  margin: 0;
}

.home-profile-preview small,
.home-profile-preview p {
  color: var(--muted);
  font-weight: 800;
}

.app-main:has(.chat-page) {
  background:
    radial-gradient(circle at 14% 0%, rgba(215, 242, 67, 0.14), transparent 28rem),
    linear-gradient(180deg, #f8fbf2 0%, #f4f8ef 54%, #f9fbf5 100%);
}

.chat-page {
  display: grid;
  gap: 18px;
  color: var(--green-deep);
}

.chat-page *,
.chat-page *::before,
.chat-page *::after {
  min-width: 0;
}

.chat-page,
.chat-page button,
.chat-page input,
.chat-page textarea,
.chat-page select {
  font-family: Arial, Helvetica, sans-serif;
}

.chat-page h1 {
  font-weight: 800;
}

.chat-page h2,
.chat-page h3,
.chat-page .chat-section-head h2,
.chat-page .chat-group-info h2 {
  font-weight: 700;
}

.chat-page .chat-row-main strong,
.chat-page .chat-search-preview strong,
.chat-page .chat-thread-head strong,
.chat-page .chat-group-info strong {
  font-weight: 700;
}

.chat-page .chat-bubble p,
.chat-page .chat-bubble time,
.chat-page .chat-bubble small,
.chat-page .chat-notification time,
.chat-page .chat-notification small {
  font-weight: 400;
}

.chat-page .chat-new-button,
.chat-page .chat-tabs button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 0;
  padding: 4px 6px;
}

.chat-page .chat-new-button {
  width: fit-content;
  min-width: 180px;
  margin-inline: auto;
}

.chat-page .chat-new-panel .chat-section-head > div {
  margin-inline: auto;
  text-align: center;
}

.chat-page .chat-new-panel > .chat-search {
  width: min(100%, 620px);
  margin-inline: auto;
}

.chat-page .chat-new-panel {
  text-align: center;
  gap: 10px;
  padding: 16px;
}

.chat-page .chat-new-panel .chat-section-head {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chat-page .chat-new-panel .chat-section-head > div {
  width: 100%;
  margin-inline: 0;
  text-align: center;
}

.chat-page .chat-new-panel .chat-list {
  text-align: left;
}

.chat-page .chat-new-panel .chat-empty {
  display: grid;
  min-height: 56px;
  place-items: center;
  margin: 0;
  text-align: center;
}

.chat-page .chat-new-panel .chat-section-head > button {
  width: fit-content;
  min-width: 180px;
  margin-inline: auto;
}

.chat-page .chat-tabs {
  padding: 4px;
}

@media (max-width: 520px) {
  .chat-page .chat-tabs {
    gap: 3px;
    padding-inline: 4px;
  }

  .chat-page .chat-tabs button {
    padding-inline: 0;
  }
}

/* Final After-JAMB expanded-list sizing: 180% of the original 64vh basis, viewport-capped. */
.after-jamb-page .after-jamb-popover {
  top: auto;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  height: min(75dvh, 600px);
  max-height: calc(100dvh - 24px);
  gap: 8px;
  overflow: hidden;
  background: #ffffff !important;
}

.after-jamb-page .after-jamb-popover .home-school-search {
  flex: 0 0 auto;
  min-height: 40px;
  box-sizing: border-box;
  padding: 8px 10px;
}

/* Compact Chats navigation buttons. */
.chat-page .chat-tabs button {
  min-height: 38px;
  padding: 4px 8px;
  gap: 5px;
  border-radius: 12px;
  font-size: 12px;
}

.chat-page .chat-tabs svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 520px) {
  .chat-page .chat-tabs button {
    min-height: 34px;
    padding-inline: 3px;
    gap: 3px;
    font-size: 11px;
  }
}

.after-jamb-page .after-jamb-popover .after-school-list {
  flex: 1 1 auto;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  background: #ffffff !important;
}

.after-jamb-page .after-jamb-popover .after-school-list button {
  min-height: 44px;
}

@media (max-width: 600px) {
  .after-jamb-page .after-jamb-popover {
    height: min(78dvh, calc(100dvh - 96px));
    max-height: calc(100dvh - 96px);
  }

  .after-jamb-page .after-jamb-popover .after-school-list {
    height: auto;
    max-height: none;
  }
}

/* After-JAMB now uses the registration school-row component. Keep only a
   compact, scrollable wrapper around that shared selector. */
.after-jamb-page .after-jamb-popover {
  height: auto;
  max-height: min(70vh, calc(100dvh - 120px));
  padding: 8px;
}

.after-jamb-page .after-jamb-popover .home-school-search {
  min-height: 40px;
  padding: 0 11px;
}

.after-jamb-page .after-jamb-popover .after-school-list {
  height: auto;
  max-height: min(52vh, 430px);
  min-height: 0;
  flex: 0 1 auto;
}

.after-jamb-page .after-jamb-popover .after-school-list button.school-name-row {
  min-height: 60px;
  padding: 12px;
  align-items: center;
}

/* Final override: keep the three actual clickable LIVE controls on one row. */
.live-page .live-school-bar > .live-school-buttons {
  display: grid !important;
  grid-template-columns: repeat(3, 30%) !important;
  justify-content: space-between;
  align-items: stretch;
  width: 100% !important;
  min-width: 0;
  gap: 0;
}
.live-page .live-school-bar > .live-school-buttons > button {
  display: flex;
  flex: none;
  width: 100% !important;
  min-width: 0;
  max-width: none;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  white-space: normal;
}

/* The three LIVE scope controls stay in one measured row at every viewport. */
.live-page .live-school-bar > .live-school-buttons {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 0;
}
.live-page .live-school-bar > .live-school-buttons > button {
  display: flex;
  flex: none;
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
  white-space: normal;
}

.chat-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(215, 242, 67, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(215, 242, 67, 0.32), transparent 14rem),
    linear-gradient(145deg, #07382c, #0b4b3b 58%, #0d5a42);
  padding: 24px;
  color: #fffdf3;
  box-shadow: 0 22px 60px rgba(7, 56, 44, 0.16);
}

.chat-hero h1 {
  max-width: 720px;
  margin: 6px 0 8px;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.chat-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 253, 243, 0.76);
  font-weight: 700;
}

.chat-hero .kicker {
  color: var(--lemon);
}

.chat-hero aside {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.11);
  padding: 18px;
  backdrop-filter: blur(10px);
}

.chat-hero aside span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background: var(--lemon);
  color: var(--green-deep);
}

.chat-hero aside svg {
  width: 22px;
  height: 22px;
}

.chat-hero aside strong {
  font-size: 1.18rem;
  font-weight: 900;
}

.chat-hero aside small {
  color: rgba(255, 253, 243, 0.7);
  font-weight: 800;
}

.chat-toolbar,
.chat-tabs,
.chat-panel,
.chat-new-panel,
.chat-search-preview,
.chat-thread-head,
.chat-thread,
.chat-composer,
.chat-group-info,
.chat-safety-row {
  border: 1px solid rgba(13, 90, 66, 0.1);
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 0 18px 44px rgba(16, 40, 30, 0.07);
}

.chat-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 24px;
  padding: 12px;
}

.chat-search {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 18px;
  background: #f7fbef;
  padding: 0 14px;
  color: var(--green-deep);
}

.chat-search.is-compact {
  background: rgba(255, 255, 255, 0.72);
}

.chat-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: rgba(13, 90, 66, 0.66);
}

.chat-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  outline: none;
  font: inherit;
  font-weight: 800;
}

.chat-search input::placeholder {
  color: rgba(98, 112, 102, 0.78);
}

.chat-new-button {
  min-height: 48px;
  white-space: nowrap;
}

.chat-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-radius: 22px;
  padding: 8px;
}

.chat-tabs button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chat-tabs button.is-active {
  background: var(--green-deep);
  color: #fffdf3;
}

.chat-tabs svg {
  width: 18px;
  height: 18px;
}

.chat-notifications-panel { display: grid; gap: 12px; }
.chat-notification-list { display: grid; gap: 8px; }
.chat-notification { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: start; gap: 10px; border: 1px solid rgba(13, 90, 66, .12); border-radius: 12px; background: #fff; color: var(--green-deep); padding: 11px; text-decoration: none; }
.chat-notification.is-unread { border-left: 4px solid var(--green); background: #f7fbe9; }
.chat-notification > span:first-child { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--green-soft); }
.chat-notification svg { width: 18px; height: 18px; }
.chat-notification p { margin: 3px 0; color: #3e5148; }
.chat-notification small, .chat-notification time { color: var(--muted); font-size: 11px; }
.campus-billboard-title {
  width: 100%;
  min-height: 66px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px 24px;
  overflow: hidden;
  border: 1px solid #0b6249;
  border-radius: 0;
  background: linear-gradient(135deg, #013d2b, #00543a 58%, #003524);
  color: #fff;
  box-shadow: 0 10px 24px rgba(7, 85, 63, .18);
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.2;
  text-align: center;
}

.app-main:has(.campus-hub) {
  padding: 0 0 34px;
}

.app-main:has(.campus-hub) .app-header {
  display: none;
}

.app-main:has(.campus-hub) .page-container {
  max-width: none;
}

.app-main:has(.campus-hub) .campus-hub {
  min-height: calc(100vh - 34px);
  padding-bottom: 28px;
}

.app-main:has(.campus-hub) .campus-ad-stage {
  margin-top: -20px;
}

.app-main:has(.campus-hub) .campus-ad-card {
  border-radius: 0;
}

.app-main:has(.after-jamb-page) {
  padding: 0 0 34px;
}

.app-main:has(.after-jamb-page) .app-header {
  display: none;
}

.app-main:has(.after-jamb-page) .page-container {
  max-width: none;
}

.app-main:has(.after-jamb-page) .after-jamb-page {
  padding-bottom: 28px;
}

.app-main:has(.after-jamb-page) .campus-ad-stage {
  margin-top: -20px;
}

.app-main:has(.after-jamb-page) .campus-ad-card {
  border-radius: 0;
}

.app-main:has(.after-jamb-page) .after-jamb-popover {
  top: auto;
  bottom: calc(100% + 8px);
}

.bottom-nav {
  border-radius: 0;
}

.campus-billboard-title span {
  display: inline-block;
  min-width: max-content;
  animation: campusBillboardMarquee 2.25s ease-in-out infinite alternate;
}

.campus-hub .campus-billboard-word {
  animation: none;
}

.campus-hub .campus-billboard-word--campus { color: #e5ff3b; }
.campus-hub .campus-billboard-word--billboard { color: #ffffff; }
.after-jamb-page .campus-billboard-word { animation: none; }
.after-jamb-page .campus-billboard-word--campus { color: #e5ff3b; }
.after-jamb-page .campus-billboard-word--billboard { color: #ffffff; }
.after-jamb-page .campus-billboard-title {
  align-self: center;
  box-sizing: border-box;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
  overflow: visible;
  font-size: clamp(1.3rem, 8vw, 3rem);
}
.after-jamb-page .campus-billboard-title span {
  display: inline-block;
  width: auto;
  transform: none;
  animation: none;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}

@keyframes campusBillboardMarquee {
  from { transform: translateX(-10%); }
  to { transform: translateX(10%); }
}

@media (prefers-reduced-motion: reduce) {
  .campus-billboard-title span { animation: none; }
}

@media (max-width: 430px) {
  .advert-tabs { gap: 4px; padding: 4px; }
  .advert-tabs button { min-height: 44px; padding: 4px; font-size: 10px; letter-spacing: 0; }
  .chat-tabs { gap: 4px; padding: 5px; }
  .chat-tabs button { gap: 4px; padding: 4px 2px; font-size: 10px; }
  .chat-tabs svg { width: 15px; height: 15px; }
  .chat-notification { grid-template-columns: 34px minmax(0, 1fr); }
  .chat-notification time { grid-column: 2; }
  .department-panel { padding: 12px; }
}

.chat-group-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-radius: 18px;
  background: #f2fae8;
  padding: 6px;
}

.chat-group-tabs button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 950;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.chat-group-tabs button.is-active {
  background: var(--green-deep);
  color: #fffdf3;
}

.chat-group-tabs svg {
  width: 18px;
  height: 18px;
}

.chat-panel,
.chat-new-panel,
.chat-search-preview {
  display: grid;
  gap: 12px;
  border-radius: 26px;
  padding: 16px;
}

.chat-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.chat-section-head h2 {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.chat-section-head p,
.chat-section-head span {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.chat-groups-panel {
  gap: 14px;
}

.chat-filter-toolbar {
  display: flex;
  justify-content: flex-start;
}

.chat-group-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border-radius: 20px;
  background: #f7fbef;
  padding: 10px;
}

.chat-group-filters.is-public {
  grid-template-columns: minmax(0, 360px);
}

.chat-group-filters label {
  display: grid;
  gap: 6px;
}

.chat-group-filters label > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-group-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: var(--green-deep);
  outline: none;
  padding: 0 10px;
  font: inherit;
  font-weight: 850;
}

.chat-filter-note {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-list {
  display: grid;
  gap: 10px;
}

.chat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 22px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.chat-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #e3f3d7, #fff7df);
  color: var(--green-deep);
  font-size: 0.84rem;
  font-weight: 950;
}

.chat-avatar.is-group {
  background: linear-gradient(145deg, var(--green-deep), #0d5a42);
  color: #fffdf3;
}

.chat-row-main {
  display: grid;
  gap: 2px;
}

.chat-row-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chat-row-main strong {
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-row-main small,
.chat-row-main span,
.chat-row-side,
.chat-status,
.chat-member-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-row-main > span:not(.chat-row-title) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-row-side {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.chat-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-group-meta b,
.chat-group-meta i {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: #f2fae8;
  color: var(--green-deep);
  padding: 0 8px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.chat-group-meta b {
  background: #fff7df;
}

.chat-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #bac8b2;
}

.chat-status.is-online::before {
  background: #12b66b;
}

.chat-unread {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 950;
}

.chat-read-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(13, 90, 66, 0.16);
}

.chat-search-preview > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-search-preview > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chat-search-preview button {
  display: grid;
  min-width: 150px;
  gap: 4px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 18px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.chat-search-preview b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-soft);
}

.chat-search-preview strong {
  font-size: 0.84rem;
  font-weight: 950;
}

.chat-search-preview small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.chat-empty {
  border: 1px dashed rgba(13, 90, 66, 0.16);
  border-radius: 20px;
  background: #fbfdf8;
  color: var(--muted);
  padding: 18px;
  font-weight: 800;
  text-align: center;
}

.chat-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chat-public-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(13, 90, 66, 0.08);
  border-radius: 22px;
  background: #ffffff;
  padding: 14px;
}

.chat-public-card header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-public-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
}

.chat-public-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.chat-public-card header p {
  margin-top: 2px;
  font-size: 0.78rem;
}

.chat-public-activity {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: #f7fbef;
  padding: 10px;
}

.chat-public-activity span {
  width: max-content;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--green-deep);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 950;
}

.chat-public-activity small {
  color: var(--muted);
  font-weight: 800;
}

.chat-public-card .lc-button {
  justify-content: center;
  min-height: 42px;
}

.chat-screen {
  padding-bottom: 16px;
}

.chat-sticky-back {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.chat-sticky-back button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #f2fae8;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 14px;
  font-weight: 900;
}

.chat-sticky-back button:first-child {
  min-height: 46px;
  border: 1px solid rgba(116, 24, 24, 0.14);
  background: #b83232;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(116, 24, 24, 0.22);
}

.chat-sticky-back button:first-child:hover {
  background: #a72b2b;
}

.chat-sticky-back button:not(:first-child) {
  box-shadow: 0 10px 24px rgba(16, 40, 30, 0.1);
}

.chat-sticky-back button:first-child svg {
  transform: rotate(180deg);
}

.chat-sticky-back button:not(:first-child) svg {
  transform: none;
}

.chat-thread-head {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 26px;
  padding: 16px;
}

.chat-thread-head.is-group {
  background: #083F32;
  color: #ffffff;
}

.chat-thread-head.is-group h1 {
  color: #D4F45A;
  font-weight: 700;
}

.chat-group-header-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 400;
}

.chat-group-header-details span {
  color: #ffffff;
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .chat-screen .chat-group-header-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .chat-screen .chat-group-header-details span {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

.chat-thread-head h1 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0;
}

.chat-thread-head p,
.chat-thread-head small {
  display: block;
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.chat-access-note {
  margin: 0;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 18px;
  background: #fff7df;
  color: var(--green-deep);
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 850;
}

.chat-group-info {
  display: grid;
  gap: 14px;
  border-radius: 26px;
  padding: 16px;
}

.chat-group-info > div:first-child {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-group-info h2 {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.chat-group-info p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.chat-group-info dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.chat-group-info dl div {
  border-radius: 18px;
  background: #f7fbef;
  padding: 12px;
}

.chat-group-info dt,
.chat-group-info dd {
  margin: 0;
}

.chat-group-info dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.chat-group-info dd {
  margin-top: 4px;
  font-weight: 900;
}

.chat-member-preview {
  display: flex;
  align-items: center;
  gap: 0;
}

.chat-member-preview span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 2px solid #fffdf3;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 0.72rem;
  font-weight: 950;
}

.chat-member-preview span + span {
  margin-left: -8px;
}

.chat-member-preview small {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 800;
}

.chat-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-thread {
  display: grid;
  gap: 10px;
  min-height: 360px;
  align-content: end;
  border-radius: 26px;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 242, 67, 0.1), transparent 18rem),
    #fbfdf8;
  padding: 16px;
}

.chat-bubble {
  display: grid;
  max-width: min(78%, 620px);
  gap: 5px;
  border-radius: 22px;
  padding: 12px 14px;
}

.chat-bubble p {
  margin: 0;
  font-weight: 750;
}

.chat-bubble.is-received {
  justify-self: start;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-bottom-left-radius: 8px;
  background: #ffffff;
}

.chat-bubble.is-sent {
  justify-self: end;
  border-bottom-right-radius: 8px;
  background: var(--green-deep);
  color: #fffdf3;
}

.chat-author {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
}

.chat-role-badge {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 999px;
  background: var(--lemon);
  color: var(--green-deep);
  font-size: 0.68rem;
}

.chat-media-placeholder,
.chat-shared-card {
  display: grid;
  gap: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.chat-bubble.is-received .chat-media-placeholder,
.chat-bubble.is-received .chat-shared-card {
  background: #f2fae8;
}

.chat-media-placeholder {
  min-width: min(280px, 100%);
  min-height: 140px;
  place-items: center;
  padding: 16px;
  text-align: center;
}

.chat-media-placeholder svg {
  width: 28px;
  height: 28px;
}

.chat-media-placeholder span,
.chat-shared-card small,
.chat-shared-card p {
  color: inherit;
  opacity: 0.78;
  font-weight: 800;
}

.chat-shared-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.chat-shared-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 14px;
  background: var(--lemon);
  color: var(--green-deep);
}

.chat-shared-card svg {
  width: 19px;
  height: 19px;
}

.chat-shared-card strong,
.chat-shared-card small,
.chat-shared-card p {
  display: block;
  margin: 0;
}

.chat-safety-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 22px;
  padding: 10px;
}

.chat-safety-row button {
  min-height: 36px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  padding: 0 12px;
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-composer {
  position: sticky;
  bottom: 14px;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-radius: 24px;
  padding: 10px;
}

.chat-composer input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 999px;
  background: #f7fbef;
  color: var(--green-deep);
  outline: none;
  padding: 0 14px;
  font: inherit;
  font-weight: 800;
}

.chat-composer textarea {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  max-height: 160px;
  resize: none;
  overflow-y: auto;
  box-sizing: border-box;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 16px;
  background: #f7fbef;
  color: var(--green-deep);
  outline: none;
  padding: 14px;
  font: inherit;
  font-weight: 800;
}

.chat-composer button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 900;
}

.chat-composer > button[aria-label="Record voice note"] {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.chat-attachment-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eef7e7;
  color: var(--green-deep);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.chat-attachment-preview button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
}

.chat-composer .chat-send {
  background: var(--green-deep);
  color: #fffdf3;
}

.chat-composer svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .chat-row:hover,
  .chat-search-preview button:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 90, 66, 0.18);
    box-shadow: 0 16px 34px rgba(16, 40, 30, 0.08);
  }

  .chat-tabs button:hover,
  .chat-sticky-back button:hover,
  .chat-composer button:hover {
    transform: translateY(-1px);
  }

  .live-card:hover,
  .live-video-card:hover,
  .live-comments:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 48px rgba(16, 40, 30, 0.09);
  }
}

.app-main:has(.campus-hub),
.app-main:has(.roommates-page),
.app-main:has(.department-panel),
.app-main:has(.learn-panel),
.app-main:has(.notes-panel),
.app-main:has(.jobs-panel),
.app-main:has(.events-panel),
.app-main:has(.pq-panel),
.app-main:has(.profile-layout) {
  background:
    radial-gradient(circle at 16% 0%, rgba(215, 242, 67, 0.14), transparent 30rem),
    linear-gradient(180deg, #f8fbf2 0%, #f4f8ef 56%, #f9fbf5 100%);
}

.campus-topbar,
.roommates-head,
.profile-hero-card,
.department-panel-head,
.learn-panel-head,
.notes-panel-head,
.jobs-panel-head,
.events-panel-head,
.pq-panel-head {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 242, 67, 0.2), transparent 11rem),
    linear-gradient(145deg, #07382c, #0d4b3a);
  color: #ffffff;
  padding: 16px;
  box-shadow: 0 18px 46px rgba(7, 56, 44, 0.16);
}

.events-panel-head {
  display: none;
}

.campus-topbar h1,
.roommates-head h1,
.profile-hero-copy h1,
.department-panel-head h2,
.learn-panel-head h2,
.notes-panel-head h2,
.jobs-panel-head h2,
.events-panel-head h2,
.pq-panel-head h2 {
  color: #ffffff;
}

.campus-topbar p,
.roommates-head p:last-child,
.profile-hero-copy p,
.department-panel-head p:last-child,
.learn-panel-head p:last-child,
.notes-panel-head p:last-child,
.jobs-panel-head p:last-child,
.events-panel-head p:last-child,
.pq-panel-head p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.campus-topbar .kicker,
.roommates-head .kicker,
.profile-hero-card .kicker,
.department-panel-head .kicker,
.learn-panel-head .kicker,
.notes-panel-head .kicker,
.jobs-panel-head .kicker,
.events-panel-head .kicker,
.pq-panel-head .kicker {
  color: var(--lemon);
}

.campus-selector,
.campus-tools button,
.profile-edit-button,
.roommates-head .lc-button,
.roommates-back,
.roommates-filter-button,
.jobs-filter-button,
.events-filter-button,
.pq-filter-button,
.pq-inline-button,
.notes-back,
.notes-inline-button,
.learn-filter-button {
  border-color: rgba(13, 90, 66, 0.14);
  background: rgba(255, 254, 248, 0.95);
  color: var(--green-deep);
}

.profile-hero-card .profile-edit-button,
.roommates-head .lc-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.campus-topbar > div:first-child {
  min-width: 0;
}

.profile-hero-card .profile-edit-button:hover,
.roommates-head .lc-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.profile-hero-card .profile-meta span,
.profile-hero-card .verification-pill {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.profile-hero-card .profile-photo {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 72% 18%, rgba(215, 242, 67, 0.42), transparent 4.5rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07));
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.profile-hero-card .profile-photo small {
  color: rgba(255, 255, 255, 0.72);
}

.campus-ad-card,
.campus-detail-card,
.department-panel,
.learn-panel,
.notes-panel,
.jobs-panel,
.events-panel,
.pq-panel,
.profile-card,
.roommates-scope,
.roommates-success,
.jobs-campus-strip,
.jobs-notice,
.events-campus-strip,
.events-notice,
.pq-preview-card,
.pq-upload-preview {
  border-color: rgba(201, 221, 191, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.96), rgba(249, 252, 245, 0.96));
  box-shadow: 0 14px 36px rgba(16, 40, 30, 0.055);
}

.roommates-option-card,
.learn-choice-card,
.notes-action-card,
.job-card,
.event-card,
.pq-card,
.pq-request-card {
  border-color: rgba(201, 221, 191, 0.9);
  background:
    radial-gradient(circle at 86% 18%, rgba(215, 242, 67, 0.12), transparent 8rem),
    #fffef8;
}

.roommates-scope,
.jobs-campus-strip,
.events-campus-strip {
  background:
    radial-gradient(circle at 92% 20%, rgba(215, 242, 67, 0.16), transparent 8rem),
    linear-gradient(145deg, #0a3d31, #0e5a43);
}

.roommates-scope strong,
.jobs-campus-strip strong,
.events-campus-strip strong {
  color: #ffffff;
}

.roommates-scope small,
.jobs-campus-strip small,
.events-campus-strip small {
  color: rgba(255, 255, 255, 0.72);
}

.roommates-scope > span,
.jobs-campus-strip > span,
.events-campus-strip > span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: var(--lemon);
}

.department-tabs,
.learn-tabs,
.jobs-tabs,
.events-tabs,
.pq-tabs {
  border-color: rgba(13, 90, 66, 0.12);
  background: rgba(234, 246, 216, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.department-tabs button.is-active,
.learn-tabs button.is-active,
.jobs-tabs button.is-active,
.events-tabs button.is-active,
.pq-tabs button.is-active,
.events-category-row button.is-active {
  background:
    radial-gradient(circle at 82% 18%, rgba(215, 242, 67, 0.2), transparent 4rem),
    var(--green-deep);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(7, 56, 44, 0.18);
}

.after-jamb-context,
.after-jamb-filter-strip {
  border-color: rgba(13, 90, 66, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 254, 248, 0.96), rgba(244, 250, 238, 0.96));
}

.sticky-back {
  border-color: rgba(116, 24, 24, 0.14);
  background: #b83232;
  color: #ffffff;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 236px minmax(0, 1fr);
  }

  .sticky-back {
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    left: auto;
    max-width: min(260px, calc(100vw - 32px));
  }

  .app-sidebar {
    padding-inline: 14px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-feature-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  body {
    padding-bottom: 94px;
  }

  .app-shell {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .app-main {
    padding: 14px 14px 26px;
  }

  .sticky-back {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    left: auto;
    max-width: min(220px, calc(100vw - 28px));
  }

  .app-header {
    margin-bottom: 14px;
    padding-top: 8px;
  }

  .mobile-brand {
    display: flex;
  }

  .section-chip {
    display: none;
  }

  .user-card {
    padding-left: 10px;
  }

  .user-card strong,
  .user-card span {
    display: none;
  }

  .page-hero,
  .dashboard-grid,
  .after-jamb-layout,
  .live-video-layout,
  .live-setup-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .after-jamb-filter-drawer,
  .after-jamb-request-form,
  .after-jamb-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-topbar,
  .campus-section-head {
    align-items: flex-start;
  }

  .campus-ad-card.is-main {
    grid-template-columns: 1fr;
  }

  .campus-ad-art {
    min-height: 150px;
  }

  .campus-ad-copy {
    align-content: start;
  }

  .campus-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .department-filter-grid,
  .department-filter-grid.public,
  .department-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advert-grid {
    grid-template-columns: 1fr;
  }

  .market-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-card-grid,
  .live-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-filter-grid,
  .market-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-service-category-grid,
  .market-service-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-product-detail {
    grid-template-columns: 1fr;
  }

  .market-detail-media {
    min-height: 240px;
  }

  .market-search {
    grid-column: 1 / -1;
  }

  .market-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-landing,
  .market-product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roommates-option-grid,
  .roommate-card-grid,
  .apartment-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roommate-type-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roommate-photo-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .learn-topic-grid,
  .learn-tutor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notes-action-grid,
  .notes-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jobs-filter-drawer,
  .job-post-form,
  .job-detail-grid,
  .events-filter-drawer,
  .event-form,
  .event-detail-grid,
  .election-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-feed,
  .event-detail-card {
    grid-template-columns: 1fr;
  }

  .election-create-fields,
  .event-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pq-filter-drawer,
  .pq-form,
  .pq-card-grid,
  .pq-request-feed,
  .pq-ai-context,
  .pq-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pq-ai-layout {
    grid-template-columns: 1fr;
  }

  .learn-filter-drawer,
  .teach-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .learn-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roommates-filter-drawer,
  .post-accommodation-form,
  .roommate-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .errands-runner-grid,
  .errands-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campus-news-panel {
    max-width: 100%;
  }

  .profile-hero-card {
    grid-template-columns: 1fr;
  }

  .profile-edit-button {
    width: 100%;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .context-panel {
    min-height: 230px;
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .page-title {
    font-size: clamp(2.1rem, 13vw, 3.7rem);
  }

  .page-description {
    font-size: 0.95rem;
  }

  .hero-panel,
  .context-panel {
    border-radius: 26px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lc-button {
    width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .live-page,
  .live-screen {
    gap: 12px;
    padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }

  .live-hero,
  .live-section-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .live-hero,
  .live-panel,
  .live-video-card,
  .live-comments {
    border-radius: 24px;
  }

  .live-card-grid,
  .live-form,
  .live-video-layout,
  .live-setup-grid {
    grid-template-columns: 1fr;
  }

  .live-section-head,
  .live-action-row,
  .live-form-actions,
  .live-school-bar {
    flex-direction: column;
  }

  .live-section-head > span,
  .live-action-row .lc-button,
  .live-form-actions .lc-button,
  .live-camera-switch,
  .live-school-bar button {
    width: 100%;
  }

  .live-school-bar {
    align-items: stretch;
  }

  .live-school-bar div:last-child,
  .live-school-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-school-drawer {
    grid-template-columns: 1fr;
  }

  .live-card-media {
    min-height: 170px;
  }

  .live-video-surface {
    min-height: 320px;
  }

  .live-camera-preview .live-video-surface {
    min-height: 240px;
  }

  .live-tabs button {
    min-height: 40px;
    font-size: 0.72rem;
  }

  .after-jamb-page {
    gap: clamp(10px, 3.5vw, 14px);
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .after-jamb-head,
  .after-jamb-filter-strip,
  .after-jamb-context,
  .after-jamb-section-head,
  .after-jamb-applicant-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .after-jamb-head,
  .after-jamb-ad,
  .after-jamb-context,
  .after-jamb-info,
  .after-jamb-profile-card {
    border-radius: 24px;
  }

  .after-jamb-ad,
  .after-jamb-filter-drawer,
  .after-jamb-request-form,
  .after-jamb-applicant-grid,
  .after-jamb-profile-grid {
    grid-template-columns: 1fr;
  }

  .after-jamb-ad {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .after-jamb-ad-footer .lc-button {
    width: auto;
    min-height: 34px;
    padding-inline: 12px;
  }

  .after-jamb-filter-drawer {
    gap: 14px;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(16, 40, 30, 0.045);
  }

  .after-jamb-filter-strip {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 5px;
  }

  .after-jamb-search {
    min-width: 0;
    padding-inline: 9px;
  }

  .after-jamb-search input {
    font-size: clamp(0.76rem, 3.35vw, 0.84rem);
  }

  .after-jamb-filter-strip .after-jamb-filter-button {
    width: auto;
    flex: 0 0 auto;
    gap: 5px;
    padding-inline: 10px;
  }

  .after-jamb-filter-drawer label {
    gap: 8px;
    font-size: 0.86rem;
  }

  .after-jamb-filter-drawer select {
    min-height: 48px;
    white-space: normal;
  }

  .after-jamb-filter-drawer .is-progress-hidden {
    display: none;
  }

  .after-jamb-filter-title h2 {
    font-size: 1rem;
  }

  .after-jamb-filter-actions {
    flex-direction: column;
  }

  .after-jamb-filter-actions .lc-button {
    width: 100%;
  }

  .after-jamb-filter-request {
    margin-top: -3px;
  }

  .after-jamb-ad-media {
    min-height: 104px;
    border-radius: 19px;
  }

  .after-jamb-ad-media strong {
    font-size: 0.7rem;
  }

  .after-jamb-ad-copy {
    gap: 8px;
  }

  .after-jamb-ad-copy h2 {
    font-size: 1rem;
  }

  .after-jamb-ad-copy p {
    font-size: 0.78rem;
  }

  .after-jamb-status {
    min-width: 0;
  }

  .after-jamb-context .lc-button,
  .after-jamb-applicant-card .lc-button,
  .after-jamb-profile-actions .lc-button,
  .after-jamb-group-actions .lc-button,
  .after-jamb-request-actions .lc-button {
    width: 100%;
  }

  .after-jamb-filter-strip .after-jamb-filter-button {
    width: auto;
  }

  .after-jamb-info-rail {
    display: flex;
    grid-template-columns: none;
  }

  .after-jamb-info-rail article {
    min-width: 168px;
  }

  .after-jamb-summary-chips button {
    max-width: min(100%, 270px);
  }

  .after-jamb-group-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .after-jamb-group-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .after-jamb-group-actions .lc-button {
    min-height: 38px;
  }

  .after-jamb-group-actions,
  .after-jamb-group-card .after-jamb-role-note {
    grid-column: 1 / -1;
  }

  .campus-hub {
    gap: 16px;
  }

  .roommates-head,
  .roommates-toolbar,
  .post-accommodation-head {
    align-items: stretch;
    flex-direction: column;
  }

  .roommates-head {
    border-radius: 24px;
    padding: 16px;
  }

  .roommates-option-grid,
  .roommate-card-grid,
  .apartment-card-grid,
  .roommates-filter-drawer,
  .roommates-filter-drawer.is-simple,
  .post-accommodation-form,
  .roommate-detail-grid,
  .apartment-gallery {
    grid-template-columns: 1fr;
  }

  .roommate-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roommate-photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
  }

  .roommate-photo-tile {
    border-radius: 15px;
    padding: 7px 3px;
  }

  .roommate-photo-tile .roommate-photo {
    width: 44px;
    height: 44px;
  }

  .roommate-photo-tile small {
    font-size: 0.48rem;
  }

  .roommates-option-card {
    min-height: 148px;
    border-radius: 24px;
    padding: 15px;
  }

  .roommate-card footer,
  .apartment-body footer,
  .roommate-profile-actions,
  .roommates-form-actions {
    flex-direction: column;
  }

  .roommate-profile-hero {
    align-items: flex-start;
  }

  .apartment-media.is-large {
    min-height: 210px;
  }

  .campus-topbar {
    gap: 12px;
  }

  .campus-tools button {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .campus-selector {
    max-width: min(100%, calc(100vw - 130px));
    font-size: 0.78rem;
  }

  .campus-ad-card {
    min-height: 0;
    border-radius: 28px;
  }

  .campus-ad-art {
    min-height: 132px;
  }

  .campus-ad-media {
    width: min(82%, 270px);
    min-height: 112px;
    border-radius: 26px;
    padding: 16px;
  }

  .campus-ad-media strong {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .campus-ad-copy {
    gap: 10px;
    padding: 16px;
  }

  .campus-ad-copy h2 {
    max-width: 100%;
    font-size: 1.55rem;
  }

  .campus-ad-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .campus-section-head {
    display: grid;
  }

  .campus-feature-grid {
    gap: 8px;
  }

  .campus-feature-card {
    min-height: 86px;
    border-radius: 18px;
    padding: 9px 6px;
  }

  .campus-feature-icon {
    width: 31px;
    height: 31px;
    border-radius: 12px;
  }

  .campus-feature-icon svg {
    width: 17px;
    height: 17px;
  }

  .campus-feature-card > span:last-child {
    font-size: 0.68rem;
    line-height: 1.12;
  }

  .campus-detail-card {
    grid-template-columns: 1fr auto;
    align-items: start;
    border-radius: 24px;
  }

  .department-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .learn-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .notes-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .jobs-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .events-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .pq-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .advert-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .market-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .errands-panel {
    border-radius: 24px;
    padding: 14px;
  }

  .department-panel-head,
  .learn-panel-head,
  .notes-panel-head,
  .jobs-panel-head,
  .events-panel-head,
  .pq-panel-head,
  .advert-panel-head,
  .market-panel-head,
  .errands-panel-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .notes-panel-head,
  .notes-workspace-head,
  .events-panel-head {
    flex-direction: column;
  }

  .jobs-panel-head,
  .jobs-toolbar,
  .job-card footer,
  .job-detail-card header,
  .events-toolbar,
  .event-card footer,
  .event-detail-actions,
  .election-head,
  .pq-panel-head,
  .pq-toolbar,
  .pq-card footer,
  .pq-request-card footer {
    flex-direction: column;
  }

  .jobs-feed,
  .jobs-filter-drawer,
  .job-post-form,
  .job-detail-grid,
  .events-filter-drawer,
  .event-form,
  .events-feed,
  .event-card,
  .event-detail-card,
  .event-detail-grid,
  .election-detail-grid,
  .registered-voters-card,
  .election-create-fields,
  .event-stats-row,
  .pq-filter-drawer,
  .pq-form,
  .pq-card-grid,
  .pq-request-feed,
  .pq-preview-card,
  .pq-detail-grid,
  .pq-ai-context,
  .pq-solution-grid {
    grid-template-columns: 1fr;
  }

  .pq-ai-head,
  .pq-ai-result header {
    flex-direction: column;
  }

  .job-card footer > div:last-child,
  .job-actions,
  .job-post-actions,
  .event-form-actions,
  .event-detail-actions,
  .pq-actions,
  .pq-form-actions {
    flex-direction: column;
    width: 100%;
  }

  .notes-action-grid,
  .notes-form {
    grid-template-columns: 1fr;
  }

  .notes-action-card {
    min-height: 138px;
    border-radius: 22px;
  }

  .notes-result {
    border-radius: 22px;
    padding: 12px;
  }

  .notes-result-actions {
    flex-direction: column;
  }

  .notes-library-tabs {
    gap: 6px;
    padding: 5px;
  }

  .notes-library-tabs button {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .notes-library-card {
    border-radius: 20px;
    padding: 12px;
  }

  .notes-library-card > div {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .notes-library-card > div > span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .notes-library-card footer,
  .notes-share-actions,
  .notes-share-head {
    display: grid;
  }

  .notes-library-card footer button,
  .notes-library-card footer span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .notes-share-panel {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .notes-share-card {
    max-height: 78vh;
    border-radius: 24px;
    padding: 14px;
  }

  .notes-student-row {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 8px;
  }

  .notes-student-row small {
    grid-column: 1 / -1;
    padding-left: 48px;
  }

  .learn-panel-head,
  .learn-step-head {
    flex-direction: column;
  }

  .learn-choice-grid,
  .learn-filter-drawer,
  .teach-form,
  .learn-detail-grid {
    grid-template-columns: 1fr;
  }

  .learn-topic-grid,
  .learn-tutor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .learn-tutor-card {
    border-radius: 20px;
    padding: 8px;
  }

  .learn-tutor-photo {
    border-radius: 17px;
  }

  .learn-tutor-card footer,
  .learn-profile-actions,
  .teach-actions {
    flex-direction: column;
  }

  .learn-profile-hero {
    align-items: flex-start;
  }

  .market-toolbar,
  .market-topline,
  .market-filter-grid,
  .market-listing-grid,
  .market-shop-products,
  .market-service-grid,
  .market-service-category-grid,
  .market-service-provider-grid,
  .market-sell-form,
  .errands-runner-grid,
  .errands-feed-grid,
  .errands-request-form {
    grid-template-columns: 1fr;
  }

  .errands-section-head,
  .errands-trust-card,
  .errands-request-card header,
  .errands-request-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .errands-section-head .lc-button,
  .errands-trust-card .lc-button,
  .errands-request-card footer .lc-button {
    width: 100%;
  }

  .market-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .market-landing {
    grid-template-columns: 1fr;
  }

  .market-role-grid {
    grid-template-columns: 1fr;
  }

  .market-role-card {
    min-height: 142px;
  }

  .market-role-strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .market-role-strip small {
    grid-column: 2 / -1;
  }

  .market-community-option {
    min-height: 168px;
    border-radius: 24px;
  }

  .market-six-grid,
  .market-product-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-product-card {
    border-radius: 20px;
  }

  .market-product-card .market-listing-media {
    min-height: 132px;
  }

  .market-product-card .market-listing-body {
    gap: 7px;
    padding: 10px;
  }

  .market-product-card .market-listing-body h4 {
    font-size: 0.88rem;
  }

  .market-product-card .market-listing-body p {
    font-size: 0.72rem;
  }

  .market-product-card .market-listing-actions {
    flex-direction: column;
  }

  .market-category-card {
    min-height: 84px;
    border-radius: 18px;
    padding: 9px 6px;
  }

  .market-category-card strong {
    font-size: 0.68rem;
  }

  .market-create-actions {
    flex-direction: column-reverse;
  }

  .market-listing-body footer {
    align-items: stretch;
    flex-direction: column;
  }

  .market-listing-actions,
  .market-detail-actions,
  .market-service-card footer,
  .market-service-card footer div {
    align-items: stretch;
    flex-direction: column;
  }

  .market-listing-body .lc-button,
  .market-detail-actions .lc-button,
  .market-service-card .lc-button,
  .market-community-action,
  .market-filter-button {
    width: 100%;
  }

  .market-shop-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .market-shop-head .lc-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-detail-media {
    min-height: 200px;
  }

  .post-advert-form {
    grid-template-columns: 1fr;
  }

  .advert-create-actions {
    flex-direction: column-reverse;
  }

  .advert-card-media {
    min-height: 164px;
  }

  .advert-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .advert-card-footer .lc-button {
    width: 100%;
  }

  .department-filter-grid,
  .department-filter-grid.public,
  .department-detail-grid,
  .department-preview-strip {
    grid-template-columns: 1fr;
  }

  .department-actions {
    flex-direction: column;
  }

  .department-actions .lc-button {
    width: 100%;
  }

  .campus-news-head {
    align-items: flex-start;
  }

  .campus-news-controls {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .campus-news-search {
    grid-column: 1 / -1;
  }

  .news-create-button {
    min-width: 116px;
  }

  .news-post-card,
  .create-news-panel,
  .news-action-panel {
    border-radius: 24px;
  }

  .news-post-media {
    min-height: 220px;
  }

  .news-post-card.is-video .news-post-media {
    min-height: 270px;
  }

  .create-news-form {
    grid-template-columns: 1fr;
  }

  .create-actions {
    flex-direction: column-reverse;
  }

  .news-actions {
    gap: 4px;
  }

  .news-actions button {
    padding-inline: 7px;
    font-size: 0.68rem;
  }

  .campus-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .profile-hero-card,
  .profile-card {
    border-radius: 24px;
  }

  .profile-photo {
    width: 96px;
    min-height: 96px;
    border-radius: 28px;
  }

  .edit-actions {
    flex-direction: column-reverse;
  }

  .edit-actions .lc-button {
    width: 100%;
  }

  .bottom-nav {
    right: 8px;
    bottom: 8px;
    left: 8px;
    border-radius: 22px;
    padding: 6px;
  }

  .bottom-nav .nav-item {
    min-height: 54px;
    font-size: 0.55rem;
  }

  .bottom-nav .nav-item svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 430px) {
  .app-main {
    padding-inline: clamp(10px, 3.2vw, 14px);
  }

  .after-jamb-ad-copy h2,
  .after-jamb-section-head h2,
  .after-jamb-group-card h2,
  .after-jamb-group-preview h2 {
    font-size: clamp(1rem, 5vw, 1.16rem);
  }

  .after-jamb-context,
  .after-jamb-info,
  .after-jamb-group-card,
  .after-jamb-group-preview,
  .after-jamb-filter-drawer,
  .after-jamb-request-form {
    padding: clamp(10px, 3vw, 12px);
  }

  .after-jamb-selection-head {
    align-items: flex-start;
  }

  .after-jamb-selection-actions {
    justify-content: flex-start;
  }

  .after-jamb-summary-chips button {
    max-width: 100%;
  }

  .after-jamb-chip-text {
    max-width: min(62vw, 230px);
  }

  .after-jamb-group-members {
    gap: 7px;
  }

  .after-jamb-overlap-avatars span,
  .after-jamb-overlap-avatars b {
    width: 28px;
    height: 28px;
    font-size: 0.62rem;
  }

  .after-jamb-info-rail article {
    min-width: clamp(150px, 46vw, 174px);
  }

  .bottom-nav {
    right: max(6px, env(safe-area-inset-right, 0px));
    bottom: max(6px, env(safe-area-inset-bottom, 0px));
    left: max(6px, env(safe-area-inset-left, 0px));
    gap: 3px;
    border-radius: 20px;
    padding: 5px;
  }

  .bottom-nav .nav-item {
    min-height: 50px;
    border-radius: 16px;
    padding-inline: 1px;
    font-size: clamp(0.5rem, 1.9vw, 0.55rem);
    line-height: 1.05;
  }

  .bottom-nav .nav-item svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 360px) {
  .live-hero,
  .live-panel,
  .live-card-body,
  .live-video-info,
  .live-comments {
    padding: 10px;
  }

  .live-video-surface {
    min-height: 280px;
  }

  .live-card-media {
    min-height: 150px;
  }

  .live-category-row button,
  .live-meta-row span {
    font-size: 0.68rem;
  }

  .live-tabs {
    gap: 5px;
    padding: 4px;
  }

  .live-tabs button {
    gap: 5px;
    padding-inline: 6px;
  }

  .after-jamb-page {
    gap: 10px;
  }

  .after-jamb-ad {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .after-jamb-ad-media {
    min-height: 88px;
  }

  .after-jamb-ad-footer {
    gap: 7px;
  }

  .after-jamb-filter-strip {
    gap: 4px;
    border-radius: 16px;
    padding: 4px;
  }

  .after-jamb-search {
    min-height: 38px;
    gap: 5px;
    padding-inline: 8px;
  }

  .after-jamb-search svg,
  .after-jamb-filter-button svg {
    width: 15px;
    height: 15px;
  }

  .after-jamb-filter-strip .after-jamb-filter-button {
    min-height: 38px;
    padding-inline: 8px;
  }

  .after-jamb-group-card {
    grid-template-columns: 1fr;
  }

  .after-jamb-group-icon {
    width: 44px;
    height: 44px;
  }

  .after-jamb-missing-action {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
  }

  .bottom-nav {
    gap: 2px;
    padding: 4px;
  }

  .bottom-nav .nav-item {
    min-height: 48px;
    font-size: clamp(0.48rem, 1.85vw, 0.52rem);
  }

  .bottom-nav .nav-item svg {
    width: 17px;
    height: 17px;
  }

  .roommate-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .campus-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .campus-feature-card {
    min-height: 88px;
  }
}

@media (max-width: 340px) {
  .app-main {
    padding-inline: 8px;
  }

  .after-jamb-chip-text {
    max-width: 58vw;
  }

  .bottom-nav .nav-item {
    gap: 2px;
    font-size: 0.47rem;
  }
}

@media (max-width: 920px) {
  .home-feed-page {
    width: 100%;
  }

  .chat-hero {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .chat-hero aside {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }

  .chat-group-info dl {
    grid-template-columns: 1fr;
  }

  .chat-group-filters {
    grid-template-columns: 1fr;
  }

  .chat-group-filters.is-public {
    grid-template-columns: 1fr;
  }

  .chat-public-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-feed-page > .home-post {
    width: 100%;
    max-width: none;
  }
  .home-post .home-media {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
  .home-post .home-media-element,
  .home-post video.home-media-element {
    width: 100%;
    max-width: none;
    object-fit: contain;
  }
  .home-feed-page {
    gap: 9px;
    padding-bottom: 92px;
  }

  .home-feed-header {
    top: calc(env(safe-area-inset-top, 0px) + 8px);
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-radius: 18px;
    padding: 7px;
  }

  .home-brand-mini strong {
    display: none;
  }

  .home-brand-mini span {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .home-school-select {
    grid-column: 1 / 3;
    grid-row: 2;
    min-height: 36px;
    padding-inline: 8px;
  }

  .home-campus-pill {
    grid-column: 3;
    grid-row: 2;
    min-height: 36px;
    padding-inline: 10px;
  }

  .home-header-actions {
    grid-column: 3;
    grid-row: 1;
    justify-content: end;
  }

  .home-header-actions button {
    min-width: 36px;
    min-height: 36px;
    padding-inline: 8px;
  }

  .home-header-actions button[aria-label="Search Home"],
  .home-header-actions button[aria-label="Notifications"] {
    flex: 0 0 36px;
  }

  .home-filter-grid {
    grid-template-columns: 1fr;
  }

  .home-filter-actions {
    display: grid;
  }

  .home-post {
    border-radius: 18px;
  }

  .home-post-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .home-post-head .home-icon-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .home-media {
    min-height: min(500px, 112vw);
  }

  .home-media.is-square,
  .home-media.is-wide {
    min-height: 0;
  }

  .home-media.is-reel {
    min-height: min(620px, 138vw);
  }

  .home-engagement {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 6px;
  }

  .home-engagement button {
    min-height: 36px;
    font-size: 0.78rem;
  }

  .home-sheet {
    padding: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .home-sheet-card {
    max-height: 76vh;
    border-radius: 24px;
    padding: 14px;
  }

  .home-comment-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .chat-page {
    gap: 14px;
  }

  .chat-hero {
    padding: 18px;
  }

  .chat-hero h1 {
    font-size: clamp(1.75rem, 10vw, 2.45rem);
  }

  .chat-toolbar {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .chat-new-button {
    width: 100%;
    justify-content: center;
  }

  .chat-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    border-radius: 20px;
  }

  .chat-row-side {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: space-between;
    justify-items: stretch;
  }

  .chat-row-main > span:not(.chat-row-title),
  .chat-row-main strong {
    white-space: normal;
  }

  .chat-section-head {
    display: grid;
  }

  .chat-group-tabs {
    gap: 6px;
    padding: 5px;
  }

  .chat-group-tabs button {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .chat-group-filters {
    gap: 8px;
    padding: 9px;
  }

  .chat-group-filters select {
    min-height: 44px;
  }

  .chat-group-meta {
    gap: 5px;
  }

  .chat-public-card {
    border-radius: 20px;
    padding: 12px;
  }

  .chat-sticky-back {
    right: max(14px, env(safe-area-inset-right, 0px));
    bottom: calc(env(safe-area-inset-bottom, 0px) + 96px);
    left: auto;
  }

  .chat-thread-head {
    align-items: flex-start;
    border-radius: 22px;
  }

  .chat-thread {
    min-height: 420px;
    padding: 12px;
  }

  .chat-bubble {
    max-width: 90%;
  }

  .chat-composer {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    border-radius: 22px;
  }

  .chat-composer button[aria-label="Voice note placeholder"] {
    display: none;
  }

  .chat-composer .chat-send {
    min-width: 46px;
    padding-inline: 11px;
  }

  .chat-composer .chat-send svg {
    display: none;
  }

  .chat-screen {
    padding-bottom: 92px;
  }

  .chat-search-preview > div {
    margin-right: -8px;
  }
}

@media (max-width: 360px) {
  .home-header-actions {
    gap: 4px;
  }

  .home-header-actions button {
    min-width: 34px;
    min-height: 34px;
    padding-inline: 7px;
  }

  .home-school-select {
    gap: 5px;
    min-height: 34px;
    font-size: 0.76rem;
  }

  .home-campus-pill {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.76rem;
  }

  .home-post-head {
    gap: 8px;
    padding: 12px 10px 8px;
  }

  .home-poster span,
  .home-profile-preview > span,
  .home-comment-list article > span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .home-follow {
    min-height: 31px;
    padding-inline: 9px;
    font-size: 0.76rem;
  }

  .home-caption {
    padding-inline: 10px;
  }

  .home-engagement {
    gap: 4px;
  }

  .home-engagement button {
    gap: 4px;
    font-size: 0.74rem;
  }

  .home-engagement svg {
    width: 16px;
    height: 16px;
  }

  .chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
  }

  .chat-row {
    gap: 10px;
    padding: 10px;
  }

  .chat-composer {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .chat-composer button[aria-label="Add image or media"] {
    display: none;
  }
}

/* Final After-JAMB simplification overrides */
.after-jamb-page .after-jamb-simple-hero {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(100%, 760px);
  max-width: 100%;
  margin-inline: auto;
  align-self: center;
  padding: 4px 16px 8px;
  align-items: center;
  align-self: center;
  text-align: center !important;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.after-jamb-page .after-jamb-simple-hero h1,
.after-jamb-page .after-jamb-simple-hero p:last-child {
  justify-self: center;
  text-align: center !important;
}

.after-jamb-page .after-jamb-simple-hero h1 {
  margin: 0;
  width: 100%;
  color: var(--green-deep);
  font-size: clamp(1.08rem, 5vw, 1.62rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.after-jamb-page .after-jamb-simple-hero p:last-child {
  max-width: 560px;
  margin: 0;
  width: 100%;
  color: rgba(7, 56, 44, 0.68);
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 450;
}

.after-jamb-page .after-jamb-simple-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.045);
}

.after-jamb-page .after-jamb-simple-flow .after-jamb-filter-title h2 {
  font-size: 1rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-progress-line {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: rgba(7, 56, 44, 0.44);
  font-size: 0.72rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-progress-line span {
  white-space: nowrap;
}

.after-jamb-page .after-jamb-progress-line b {
  height: 1px;
  background: rgba(13, 90, 66, 0.12);
}

.after-jamb-page .after-jamb-progress-line .is-active,
.after-jamb-page .after-jamb-progress-line .is-done {
  color: var(--green-deep);
}

.after-jamb-page .after-jamb-flow-step {
  display: grid;
  gap: 8px;
}

.after-jamb-page .after-jamb-flow-step > strong,
.after-jamb-page .after-jamb-flow-step .after-jamb-filter-label {
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-flow-step > p {
  margin: 0;
  border: 1px dashed rgba(13, 90, 66, 0.16);
  border-radius: 16px;
  color: rgba(7, 56, 44, 0.58);
  padding: 13px;
  font-size: 0.88rem;
  font-weight: 500;
}

.after-jamb-page .after-jamb-flow-step.is-muted {
  opacity: 0.78;
}

.after-jamb-page .after-jamb-flow-step input:disabled {
  opacity: 1;
  color: rgba(7, 56, 44, 0.58);
  -webkit-text-fill-color: rgba(7, 56, 44, 0.58);
}

.after-jamb-page .after-jamb-simple-flow .home-school-options {
  max-height: 224px;
}

.after-jamb-page .after-jamb-simple-flow .after-school-types {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: none;
}

.after-jamb-page .after-jamb-simple-flow .home-school-options button {
  min-height: 44px;
  border-radius: 14px;
  padding: 7px 9px;
}

.after-jamb-page .after-jamb-simple-flow .home-school-logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.after-jamb-page .after-jamb-selected-school {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 15px;
  background: #ffffff;
  color: var(--green-deep);
  cursor: pointer;
  padding: 8px 10px;
  text-align: left;
}

.after-jamb-page .after-jamb-selected-school span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.after-jamb-page .after-jamb-selected-school strong {
  font-size: 0.86rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-selected-school em {
  color: rgba(7, 56, 44, 0.68);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 400;
}

.after-jamb-page .after-jamb-selected-school small {
  color: #b66300;
  font-size: 0.75rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-simple-flow .after-jamb-filter-actions {
  justify-content: space-between;
}

.after-jamb-page .after-jamb-simple-flow .after-jamb-filter-actions .lc-button {
  min-height: 42px;
}

.after-jamb-page .after-jamb-simple-flow .after-jamb-filter-actions .primary {
  flex: 1;
}

.after-jamb-page .after-jamb-simple-flow .lc-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.after-jamb-page .after-jamb-ad {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  border-radius: 18px;
  padding: 10px;
  box-shadow: none;
}

.after-jamb-page .after-jamb-ad-media {
  min-height: 58px;
  border-radius: 16px;
  padding: 10px;
}

.after-jamb-page .after-jamb-ad-media strong {
  font-size: 0.66rem;
}

.after-jamb-page .after-jamb-ad-copy h2 {
  margin-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 600;
}

.after-jamb-page .after-jamb-ad-copy small {
  color: rgba(7, 56, 44, 0.64);
  font-size: 0.76rem;
  font-weight: 500;
}

.after-jamb-page .after-jamb-ad-footer .lc-button {
  min-height: 32px;
  padding-inline: 10px;
}

.after-jamb-page .after-jamb-group-card {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  border-radius: 20px;
  padding: 14px;
}

.after-jamb-page .after-jamb-group-card h2 {
  font-size: clamp(1.04rem, 4.2vw, 1.2rem);
  font-weight: 650;
}

.after-jamb-page .after-jamb-group-actions {
  grid-column: 1 / -1;
  justify-content: stretch;
}

.after-jamb-page .after-jamb-group-actions .lc-button {
  width: 100%;
}

.after-jamb-page .after-jamb-role-note {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}

.after-jamb-page .after-jamb-community,
.after-jamb-page .after-jamb-group-preview,
.after-jamb-page .after-jamb-request-form {
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(16, 40, 30, 0.045);
}

@media (min-width: 760px) {
  .after-jamb-page .after-jamb-simple-flow {
    max-width: 760px;
  }

  .after-jamb-page .after-jamb-simple-flow .after-school-types {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .after-jamb-page .after-jamb-group-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .after-jamb-page .after-jamb-group-actions {
    grid-column: auto;
  }

  .after-jamb-page .after-jamb-group-actions .lc-button {
    width: auto;
  }
}

@media (max-width: 430px) {
  .after-jamb-page .after-jamb-simple-flow .after-school-types {
    grid-template-columns: minmax(0, 1fr);
  }

  .after-jamb-page .after-jamb-progress-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .after-jamb-page .after-jamb-progress-line b {
    display: none;
  }

  .after-jamb-page .after-jamb-ad {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .after-jamb-page .after-jamb-ad-dots {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
/* EOF advert fill and compact overlay correction */
.app-main .campus-ad-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: stretch;
  padding: 0;
}

.app-main .campus-ad-media {
  width: 100%;
  max-width: none;
  min-height: 100%;
}

.app-main .campus-ad-copy,
.app-main .after-jamb-page .after-jamb-ad-copy,
.app-main .advert-card-body {
  align-items: center;
  max-height: 64px;
  padding: 6px 8px;
}

.app-main .campus-ad-copy p,
.app-main .advert-card-copy p,
.app-main .after-jamb-page .after-jamb-ad-copy small {
  display: none;
}

.app-main .campus-ad-meta span,
.app-main .advert-sponsored,
.app-main .advert-card-top span,
.app-main .after-jamb-page .after-jamb-ad-copy .kicker {
  padding: 2px 5px;
  font-size: 0.62rem;
}

.app-main .campus-ad-copy h2,
.app-main .after-jamb-page .after-jamb-ad-copy h2,
.app-main .advert-card-copy h3 {
  margin-top: 3px;
  font-size: clamp(0.78rem, 2.2vw, 0.88rem);
}

.app-main .advert-card-copy > strong {
  margin-top: 0;
  font-size: 0.74rem;
}

.app-main .campus-ad-copy .lc-button,
.app-main .after-jamb-page .after-jamb-ad-copy .lc-button,
.app-main .advert-card-body .lc-button {
  min-height: 28px;
  padding-inline: 9px;
  font-size: 0.68rem;
}

@media (max-width: 640px) {
  .app-main .campus-ad-copy,
  .app-main .after-jamb-page .after-jamb-ad-copy,
  .app-main .advert-card-body {
    max-height: 60px;
    padding: 6px 7px;
  }
}
/* EOF narrow advert overlay polish */

.account-status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-left: 6px;
  padding: 4px 8px;
  color: #e5ff3b;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: middle;
}

.account-status-badge.is-applicant {
  background: #b83232;
}

.account-status-badge.is-student {
  background: var(--green-deep);
}

.department-subtabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 18px;
  background: rgba(234, 246, 216, 0.72);
}

.department-subtabs button {
  min-height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.department-subtabs button.is-active {
  color: #ffffff;
  background: var(--green-deep);
  box-shadow: 0 12px 24px rgba(7, 56, 44, 0.16);
}

.department-auto-context,
.market-vendor-rule-card,
.market-order-panel,
.market-catalogue-panel,
.account-transition-note {
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 20px;
  background: rgba(255, 254, 248, 0.94);
  box-shadow: 0 14px 32px rgba(7, 56, 44, 0.08);
}

.department-auto-context {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.department-auto-context > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: var(--green-deep);
  background: var(--green-soft);
}

.department-auto-context svg {
  width: 20px;
  height: 20px;
}

.department-auto-context strong,
.market-section-title h3,
.market-section-title h4,
.account-transition-note strong {
  display: block;
  color: var(--ink);
}

.department-auto-context small,
.market-vendor-rule-card p,
.market-catalogue-card p,
.account-transition-note p {
  color: var(--muted);
  line-height: 1.5;
}

.market-vendor-center {
  display: grid;
  gap: 16px;
}

.market-vendor-rule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.market-vendor-form,
.market-catalogue-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(13, 90, 66, 0.1);
  border-radius: 20px;
  background: #ffffff;
}

.market-vendor-form label,
.market-catalogue-form label,
.market-quantity-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.market-vendor-form input,
.market-vendor-form select,
.market-catalogue-form input,
.market-catalogue-form select,
.market-catalogue-form textarea,
.market-quantity-control input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdf8;
  font: inherit;
}

.market-vendor-form .is-wide,
.market-catalogue-form .is-wide {
  grid-column: 1 / -1;
}

.market-vendor-form label.market-vendor-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.market-vendor-form label.market-vendor-consent input {
  width: auto;
  flex: 0 0 auto;
  margin-top: 3px;
}

.market-vendor-form label.market-vendor-consent span {
  min-width: 0;
  line-height: 1.4;
}

.market-catalogue-panel,
.market-order-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.market-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.market-section-title span,
.market-order-status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.market-catalogue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-catalogue-card {
  display: flex;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(13, 90, 66, 0.09);
  border-radius: 16px;
  background: #fbfdf8;
}

.market-catalogue-card > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--green-deep);
  background: var(--green-soft);
  overflow: hidden;
}

.market-catalogue-card > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-catalogue-card svg {
  width: 18px;
  height: 18px;
}

.market-catalogue-card strong,
.market-catalogue-card small {
  display: block;
}

.market-listing-card .market-listing-media {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.market-product-summary,
.market-catalogue-title {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.market-product-summary:hover .market-product-heading,
.market-catalogue-title:hover {
  text-decoration: underline;
}

.market-product-summary {
  display: grid;
  gap: 9px;
  width: 100%;
}

.market-product-heading {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-deep);
}

.market-product-description {
  color: var(--muted);
  line-height: 1.45;
}

.market-catalogue-card > .market-catalogue-preview {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  color: var(--green-deep);
  background: var(--green-soft);
  cursor: pointer;
}

.market-catalogue-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.market-detail-view {
  min-width: 0;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
  scroll-margin-top: 72px;
}

.market-shop-view {
  scroll-margin-top: 72px;
}

.market-detail-media {
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 4 / 3;
  max-height: 68vh;
  padding: 8px;
  overflow: hidden;
  background: #f4faeb;
  touch-action: pan-y;
}

.market-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.market-product-navigation,
.market-order-line-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.market-product-navigation {
  justify-content: space-between;
}

.market-product-navigation .lc-button {
  width: auto;
}

.market-order-lines,
.market-cart-conflict {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.market-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
}

.market-order-line small {
  display: block;
  color: var(--muted);
}

.market-order-line-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.market-cart-remove {
  min-height: 40px;
  min-width: 64px;
  border: 0;
  background: transparent;
  color: #a83232;
  text-decoration: underline;
  cursor: pointer;
}

.market-remove-notice { grid-column: 1 / -1; margin: 0; font-size: 12px; color: #a83232; overflow-wrap: anywhere; }

.market-buyer-safety {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.market-shop-category {
  display: grid;
  gap: 10px;
}

.market-shop-category h4 {
  margin: 0;
}

@media (max-width: 600px) {
  .market-order-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-order-line-controls {
    justify-content: end;
  }

  .market-detail-media {
    min-height: 0;
    max-height: 50vh;
  }
}

.market-catalogue-card-notice {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--green-deep);
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 0.78rem;
  line-height: 1.4;
}

.market-catalogue-card-notice[hidden] {
  display: none;
}

.market-catalogue-card-notice.is-error {
  border-left-color: #b42318;
  color: #8f1d17;
  background: #fff1f0;
}

.market-catalogue-card-notice .lc-button {
  width: fit-content;
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.76rem;
}

.verification-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.verification-verified {
  color: #0d5a42;
  background: #e3f4e9;
}

.verification-pending {
  color: #77520b;
  background: #fff3cd;
}

.verification-unverified {
  color: #7b3f12;
  background: #fff0e5;
}

.market-order-total,
.market-booking-id,
.market-payment-box,
.market-safety-disclaimer,
.market-report-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbef;
  color: var(--muted);
}

.market-order-total {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.market-order-total strong,
.market-booking-id span,
.market-payment-box strong {
  color: var(--ink);
}

.market-safety-disclaimer {
  color: #654900;
  background: #fff7df;
  font-size: 0.82rem;
  line-height: 1.5;
}

.market-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-receipt-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
}

.market-receipt-button input {
  display: none;
}

.market-report-link {
  width: fit-content;
  border: 0;
  color: #b83232;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.market-report-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-status-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.market-status-strip::-webkit-scrollbar {
  display: none;
}

.market-status-strip span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef2ea;
  font-size: 0.68rem;
  font-weight: 800;
}

.market-status-strip span.is-active {
  color: #ffffff;
  background: var(--green-deep);
}

.market-report-reasons button {
  border: 1px solid rgba(184, 50, 50, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  color: #9d2828;
  background: #fff7f4;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.roommates-empty-state,
.errands-empty-state {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(18, 92, 63, 0.12);
  border-radius: 14px;
  background: #f7fbf4;
  color: var(--text);
}

.roommates-empty-state p,
.errands-empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.account-transition-note {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #fff7df;
}

@media (max-width: 700px) {
  .market-vendor-rule-card,
  .market-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .market-vendor-form,
  .market-catalogue-form,
  .market-catalogue-grid {
    grid-template-columns: 1fr;
  }

  .account-status-badge {
    margin-left: 4px;
    padding: 4px 8px;
    font-size: 15px;
  }
}

/* Apartments filters: keep the compact two-field panel vertically focused. */
.rm-unified .rm-white-panel .rm-filter-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0 22px;
}

.rm-unified .rm-white-panel .rm-filter-row label {
  display: grid;
  gap: 7px;
  width: 100%;
  color: #07553f;
  font-weight: 700;
}

.rm-unified .rm-white-panel .rm-filter-row select,
.rm-unified .rm-white-panel .rm-filter-row input {
  width: 90%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(7, 85, 63, .2);
  border-radius: 10px;
  background: #fff;
  color: #173b2f;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.rm-unified .rm-white-panel .rm-filter-row select:focus,
.rm-unified .rm-white-panel .rm-filter-row input:focus {
  outline: none;
  border-color: #07553f;
  box-shadow: 0 0 0 3px rgba(7, 85, 63, .12);
}

.rm-unified .rm-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 4px 0 2px;
  padding: 9px 14px;
  border: 1px solid rgba(7, 85, 63, .18);
  border-radius: 10px;
  background: #edf8ec;
  color: #07553f;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.rm-unified .rm-filter-toggle:hover,
.rm-unified .rm-filter-toggle:focus-visible {
  border-color: rgba(7, 85, 63, .35);
  background: #e4f4d8;
  box-shadow: 0 2px 8px rgba(7, 85, 63, .08);
}

.rm-unified .rm-filter-toggle:focus-visible {
  outline: 3px solid rgba(7, 85, 63, .12);
  outline-offset: 2px;
}
.rm-unified .rm-filter-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 112px;
  align-self: flex-start;
}
.rm-unified .rm-filter-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rm-unified .rm-filter-chevron {
  min-width: 12px;
  font-size: 1rem;
  line-height: 1;
}

.rm-unified .rm-search-result {
  display: block;
  padding: 18px;
  border-radius: 16px;
  border-color: rgba(7, 85, 63, .14);
}

.rm-unified .rm-search-result .rm-result-content {
  position: relative;
}

.rm-unified .rm-search-person {
  align-items: center;
  padding-right: 150px;
}

.rm-unified .rm-search-person img,
.rm-unified .rm-search-person .rm-person-fallback {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border: 0;
  background: #dcefc0;
  color: #07553f;
  font-size: 1.1rem;
}

.rm-unified .rm-search-person > span:last-child {
  gap: 4px;
}

.rm-unified .rm-search-person strong {
  color: #07553f;
  font-size: 1.05rem;
}

.rm-unified .rm-search-person small {
  color: #536d64;
  font-size: .85rem;
}

.rm-unified .rm-search-status {
  position: absolute;
  top: 8px;
  right: 0;
  padding: 7px 11px;
  border: 1px solid #d5eac9;
  border-radius: 999px;
  background: #eef8e8;
  color: #39704f;
  font-size: .78rem;
}

.rm-unified .rm-search-description {
  margin: 18px 0 14px;
  color: #536d64;
  font-size: .95rem;
}

.rm-unified .rm-search-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.rm-unified .rm-search-details > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px 12px;
  border-radius: 11px;
  background: #f5faf4;
}

.rm-unified .rm-search-details small {
  color: #537067;
  font-size: .8rem;
}

.rm-unified .rm-search-details strong {
  overflow-wrap: anywhere;
  color: #183f31;
  font-size: .92rem;
}

.rm-unified .rm-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 520px) {
  .rm-unified .rm-search-person {
    padding-right: 0;
  }

  .rm-unified .rm-search-status {
    position: static;
    display: inline-block;
    margin: 12px 0 0 66px;
  }

  .rm-unified .rm-search-details {
    gap: 8px;
  }

  .rm-unified .rm-search-details > div {
    padding: 11px 10px;
  }
}

.rm-unified .rm-search-post-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none;
  width: 96%;
  max-width: 960px;
  padding: 22px;
}

.rm-unified .rm-search-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  grid-column: 1 / -1;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  margin-bottom: 18px;
}

.rm-unified .rm-search-post-head > div {
  min-width: 0;
  flex: 1 1 0;
  width: auto;
}

.rm-unified .rm-search-post-head h2 {
  margin: 0;
  color: #07553f;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  white-space: nowrap;
}

.rm-unified .rm-search-post-head p {
  margin: 12px 0 0;
  width: 100%;
  color: #536d64;
}

.rm-unified .rm-search-post-head .lc-button {
  flex: 0 0 auto;
  width: max-content;
  max-width: max-content;
  min-width: 76px;
  min-height: 44px;
}

.rm-unified .rm-search-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.rm-unified .rm-search-post-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #07553f;
  font-weight: 700;
}

.rm-unified .rm-search-post-grid input,
.rm-unified .rm-search-post-grid select,
.rm-unified .rm-search-post-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dbe8dc;
  border-radius: 11px;
  background: #fbfdfb;
  color: #183f31;
  font: inherit;
}

.rm-unified .rm-search-post-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.rm-unified .rm-search-post-grid input::placeholder,
.rm-unified .rm-search-post-grid textarea::placeholder {
  color: #91a7ad;
}

.rm-unified .rm-search-post-grid input:focus,
.rm-unified .rm-search-post-grid select:focus,
.rm-unified .rm-search-post-grid textarea:focus {
  outline: none;
  border-color: #07553f;
  box-shadow: 0 0 0 3px rgba(7, 85, 63, .1);
}

.rm-unified .rm-search-post-form .rm-info-strip {
  margin-top: 18px;
}

.rm-unified .rm-searchers-panel {
  padding: 22px;
}

.rm-unified .rm-searchers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.rm-unified .rm-searchers-head h2 {
  margin: 0;
  color: #07553f;
  font-size: 1.35rem;
}

.rm-unified .rm-searchers-head p {
  margin: 10px 0 0;
  color: #536d64;
}

.rm-unified .rm-searchers-head .lc-button {
  flex: 0 0 auto;
}

.rm-unified .rm-search-request-button {
  max-width: 270px;
  white-space: normal;
}

.rm-unified .rm-inbox-panel {
  padding: 22px;
}

.rm-unified .rm-inbox-head h2 {
  margin: 0;
  color: #07553f;
}

.rm-unified .rm-inbox-head p {
  margin: 8px 0 0;
  color: #536d64;
}

.rm-unified .rm-inbox-card {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(7, 85, 63, .14);
  border-radius: 14px;
  background: #fff;
}

.rm-unified .rm-inbox-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rm-unified .rm-inbox-person img,
.rm-unified .rm-inbox-person .rm-person-fallback {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #dcefc0;
  color: #07553f;
}

.rm-unified .rm-inbox-person div {
  display: grid;
  gap: 3px;
}

.rm-unified .rm-inbox-person strong {
  color: #07553f;
}

.rm-unified .rm-inbox-person small {
  color: #536d64;
  font-size: .78rem;
}

.rm-unified .rm-inbox-apartment {
  margin: 0;
  color: #536d64;
}

.rm-unified .rm-inbox-apartment strong {
  color: #183f31;
}

.rm-unified .rm-inbox-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rm-unified .rm-inbox-status {
  padding: 6px 10px;
  border: 1px solid #d5eac9;
  border-radius: 999px;
  background: #eef8e8;
  color: #39704f;
  font-size: .78rem;
}

.rm-unified .rm-inbox-card .rm-interest-actions {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  justify-self: center;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  justify-content: center;
}

.rm-unified .rm-inbox-card .rm-interest-actions .lc-button {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
  white-space: nowrap;
}

.rm-unified .rm-inbox-card .rm-interest-actions .secondary {
  border-color: #07553f;
  background: #fff;
  color: #07553f;
}

.rm-unified .rm-my-posts-panel {
  padding: 22px;
}

.rm-unified .rm-apartment-post-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  grid-template-columns: none;
  width: 96%;
  max-width: 960px;
}

.rm-unified .rm-apartment-post-form .rm-section-head {
  width: 100%;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  grid-column: 1 / -1;
}

.rm-unified .rm-apartment-post-form .rm-section-head > div {
  min-width: 0;
  flex: 1 1 0;
}

.rm-unified .rm-apartment-post-form .rm-section-head .lc-button {
  flex: 0 0 auto;
  width: max-content;
  max-width: max-content;
}

.rm-unified .rm-apartment-post-form .rm-section-head h2 {
  margin: 0;
  color: #07553f;
}

.rm-unified .rm-apartment-post-form .rm-section-head p {
  margin: 8px 0 0;
  color: #536d64;
}

.rm-unified .rm-apartment-post-form .rm-form-grid {
  width: 100%;
  gap: 16px;
}

.rm-unified .rm-apartment-post-form .rm-form-grid label {
  gap: 7px;
  color: #07553f;
  font-weight: 700;
}

.rm-unified .rm-apartment-post-form .rm-form-grid input,
.rm-unified .rm-apartment-post-form .rm-form-grid select {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dbe8dc;
  border-radius: 11px;
  background: #fbfdfb;
  color: #183f31;
  font: inherit;
}

.rm-unified .rm-apartment-post-form .rm-info-strip {
  width: 100%;
  margin-top: 2px;
}

.rm-unified .rm-apartment-post-form .rm-continue-post {
  align-self: flex-start;
  width: auto;
  min-width: 150px;
}

.rm-unified .rm-my-posts-head h2 {
  margin: 0;
  color: #07553f;
}

.rm-unified .rm-my-posts-head p {
  margin: 8px 0 0;
  color: #536d64;
}

.rm-unified .rm-my-posts-section {
  margin-top: 22px;
}

.rm-unified .rm-my-posts-section h3 {
  margin: 0 0 10px;
  color: #07553f;
  font-size: 1rem;
}

.rm-unified .rm-my-posts-list {
  display: grid;
  gap: 12px;
}

.rm-unified .rm-management-card {
  padding: 14px;
  border: 1px solid rgba(7, 85, 63, .13);
  border-radius: 14px;
  background: #fff;
}

.rm-unified .rm-safety-panel { margin-top: 24px; padding-top: 20px; border-top: 1px solid #d8e8dc; }
.rm-unified .rm-safety-card { margin-top: 14px; padding: 16px; border: 1px solid #d8e8dc; border-radius: 14px; background: #fbfefa; }
.rm-unified .rm-safety-actions, .rm-unified .rm-safety-contacts { margin-top: 14px; }
.rm-unified .rm-safety-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.rm-unified .rm-safety-contact-grid label { display: grid; gap: 8px; min-width: 0; color: #0a4f3c; font-size: 14px; font-weight: 700; }
.rm-unified .rm-safety-contact-grid input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 56px; padding: 14px 16px; border: 1px solid #b9d8c2; border-radius: 14px; background: #fff; color: #123d31; font-size: 16px; box-shadow: 0 3px 12px rgba(9, 70, 49, .06); transition: border-color .18s ease, box-shadow .18s ease; }
.rm-unified .rm-safety-contact-grid input:focus { outline: none; border-color: #08704f; box-shadow: 0 0 0 3px rgba(8, 112, 79, .14), 0 3px 12px rgba(9, 70, 49, .08); }
.rm-unified .rm-safety-contact-grid small { min-height: 22px; padding: 4px 10px; border-radius: 999px; background: #edf7e6; color: #176044; font-size: 13px; font-weight: 700; }
.rm-unified .rm-safety-contacts > button { width: 100%; min-height: 50px; margin-top: 14px; }
@media (max-width: 620px) {
  .rm-unified .rm-safety-contact-grid { grid-template-columns: 1fr; }
}

.rm-unified .rm-management-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #07553f;
}

.rm-unified .rm-management-status {
  padding: 5px 9px;
  border: 1px solid #d5eac9;
  border-radius: 999px;
  background: #eef8e8;
  color: #39704f;
  font-size: .75rem;
}

.rm-unified .rm-management-card > .rm-result {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.rm-unified .rm-management-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 420px);
  margin: 12px auto 0;
  gap: 8px;
}
.rm-unified .rm-management-actions .lc-button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding-inline: 8px;
  white-space: nowrap;
}
.rm-unified .rm-management-actions .lc-button.danger {
  border-color: #c96b62;
  color: #a33d35;
  background: #fff;
}

@media (max-width: 640px) {
  .rm-unified .rm-search-post-form {
    width: 96%;
  }

  .rm-unified .rm-searchers-panel {
    padding: 16px;
  }

  .rm-unified .rm-my-posts-panel {
    padding: 16px;
  }

  .rm-unified .rm-apartment-post-form {
    width: 96%;
  }

  .rm-unified .rm-apartment-post-form .rm-section-head {
    flex-direction: row;
    align-items: flex-start;
  }

  .rm-unified .rm-apartment-post-form .rm-section-head .lc-button {
    width: max-content;
  }

  .rm-unified .rm-apartment-post-form .rm-form-grid {
    grid-template-columns: 1fr;
  }

  .rm-unified .rm-apartment-post-form .rm-form-grid label,
  .rm-unified .rm-apartment-post-form .rm-form-grid input,
  .rm-unified .rm-apartment-post-form .rm-form-grid select {
    width: 100%;
  }

  .rm-unified .rm-searchers-head {
    flex-direction: column;
  }

  .rm-unified .rm-searchers-head .lc-button {
    width: 100%;
  }

  .rm-unified .rm-search-request-button {
    max-width: none;
  }

  .rm-unified .rm-inbox-panel {
    padding: 16px;
  }

  .rm-unified .rm-inbox-status-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rm-unified .rm-search-post-form {
    padding: 16px;
  }

  .rm-unified .rm-search-post-head {
    gap: 12px;
  }

  .rm-unified .rm-search-post-head h2 {
    font-size: .88rem;
  }

  .rm-unified .rm-search-post-head p {
    font-size: .9rem;
  }

  .rm-unified .rm-search-post-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .rm-unified .rm-search-post-grid label,
  .rm-unified .rm-search-post-grid input,
  .rm-unified .rm-search-post-grid select,
  .rm-unified .rm-search-post-grid textarea {
    width: 100%;
  }
}

/* Roommates inner navigation: compact, left-aligned pills in both main views. */
.rm-unified .rm-main-tabs {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 14px 0 18px;
}
.rm-unified .rm-main-tabs .rm-category-tab {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #07553f;
  border: 1px solid rgba(7, 85, 63, .2);
  box-shadow: none;
  white-space: nowrap;
}
.rm-unified .rm-main-tabs .rm-category-tab.is-active {
  background: #07553f;
  color: #fff;
  border-color: #07553f;
}

/* Roommates readability scale: enlarge text without scaling icons or the app shell. */
.rm-unified h1 { font-size: 1.8rem; }
.rm-unified h2 { font-size: 1.44rem; }
.rm-unified h3 { font-size: 1.2rem; }
.rm-unified p,
.rm-unified label,
.rm-unified input,
.rm-unified select,
.rm-unified textarea,
.rm-unified button,
.rm-unified .rm-category-tab,
.rm-unified .rm-result,
.rm-unified .rm-info-strip,
.rm-unified .rm-error,
.rm-unified .rm-notice { font-size: 1.08rem; }
.rm-unified .rm-result h3 { font-size: 1.32rem; }
.rm-unified .rm-result dt { font-size: .96rem; }
.rm-unified .rm-result dd { font-size: 1.08rem; }
.rm-unified .rm-management-status,
.rm-unified .rm-owner-note,
.rm-unified .rm-result .kicker,
.rm-unified .rm-result .rm-field-label { font-size: .9rem; }
.rm-unified .rm-management-actions .lc-button {
  font-size: 1.08rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .rm-unified h1 { font-size: 1.56rem; }
  .rm-unified h2 { font-size: 1.32rem; }
  .rm-unified h3 { font-size: 1.14rem; }
  .rm-unified .rm-management-actions .lc-button { padding-inline: 5px; }
}
.rm-rent { color: #07553f; font-size: 1rem; }
.rm-availability { padding: 10px 12px; border-radius: 10px; background: #edf8ec; color: #07553f; font-size: .9rem; }
.rm-owner-note { display: inline-block; padding: 8px 12px; color: #07553f; font-weight: 700; }
.app-main .after-jamb-page .after-jamb-ad-copy > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.app-main .after-jamb-page .after-jamb-ad-copy h2 {
  margin: 0;
}

.app-main .campus-ad-media strong {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .app-main .campus-ad-media strong {
    font-size: 2.45rem;
  }

  .app-main .campus-ad-meta span:last-child {
    display: none;
  }
}
body[data-route="campus"] .app-main {
  overflow-x: clip;
}

@media (min-width: 1100px) {
  .home-feed-page > .home-inline-panel,
  .home-feed-page > .home-feed,
  .home-feed-page > .home-feed-loader,
  .home-feed-page > .home-empty {
    width: min(100%, 920px);
    margin-inline: auto;
  }

  .after-jamb-page .after-jamb-simple-flow {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin-inline: auto;
  }
}

/* Social feeds use the full application workspace; marketplace and academic cards keep their existing grids. */
.social-file-previews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.social-file-previews figure {
  display: grid;
  min-width: 0;
  gap: 5px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 90, 66, 0.12);
  border-radius: 14px;
  background: #f4f8ed;
}

.social-file-previews img,
.social-file-previews video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #0b2b20;
}

.social-file-previews figcaption {
  overflow: hidden;
  padding: 0 7px 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-upload-status {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(13, 90, 66, 0.14);
  border-radius: 14px;
  background: #f3f9e8;
  padding: 10px;
}

.social-upload-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green-deep);
  font-size: 0.78rem;
}

.social-upload-status progress {
  width: 100%;
  height: 8px;
  accent-color: var(--green-deep);
}

.social-upload-status small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-upload-cancel {
  justify-self: start;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
}

.home-create-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 72;
  display: grid;
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--green-deep);
  box-shadow: 0 12px 26px rgba(5, 58, 42, 0.28);
  color: #fff;
  cursor: pointer;
}

.home-create-fab:hover {
  background: #0a4938;
}

.home-create-fab:active {
  transform: translateY(1px);
}

.home-create-fab:focus-visible {
  outline: 3px solid rgba(241, 196, 15, 0.72);
  outline-offset: 3px;
}

.home-create-fab span {
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-1px);
}

.page-enter:has(.home-create-fab),
.page-container:has(.home-create-fab) {
  animation: none;
  transform: none;
}

.home-media::after {
  z-index: 1;
  pointer-events: none;
}

.home-media-element {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b2b20;
}

video.home-media-element {
  display: block;
}

.news-post-media {
  width: 100%;
  min-width: 0;
  min-height: clamp(240px, 42vw, 720px);
  aspect-ratio: 16 / 9;
  align-items: center;
  justify-items: center;
  padding: 0;
}

.news-post-media-element {
  position: relative;
  inset: auto;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: min(78vh, 860px);
  object-fit: contain;
  background: #0b2b20;
}

@media (min-width: 921px) {
  .page-container:has(.home-feed-page),
  .page-container:has(.campus-news-panel) {
    max-width: none;
  }

  .home-feed-page,
  .campus-news-panel {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .home-create-fab {
    right: 28px;
    bottom: 28px;
  }

  .home-feed-page > .home-inline-panel,
  .home-feed-page > .home-post,
  .home-feed-page > .home-feed,
  .home-feed-page > .home-feed-loader,
  .home-feed-page > .home-empty,
  .campus-news-panel > .campus-news-head,
  .campus-news-panel > .campus-news-controls,
  .campus-news-panel > .campus-news-scope,
  .campus-news-panel > .campus-news-categories,
  .campus-news-panel > .campus-news-feed,
  .campus-news-panel > .news-load-more,
  .campus-news-panel > .create-news-panel,
  .campus-news-panel > .news-action-panel {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 640px) {
  .news-post-media {
    min-height: min(560px, 118vw);
  }

  .home-media-element,
  .news-post-media-element {
    max-height: 78vh;
  }
}

/* Phase 2: keep Campus focused on discovery instead of a large intro panel. */
.campus-hub,
.campus-hub--feature,
.campus-ad-stage,
.campus-feature-grid,
.after-jamb-page {
  min-width: 0;
}

.campus-topbar {
  gap: 12px;
  min-width: 0;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
  box-shadow: none;
}

.campus-topbar h1 {
  margin: 2px 0 7px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.08;
}

.campus-topbar p {
  color: var(--muted);
}

.campus-topbar .kicker {
  color: var(--green-deep);
}

.campus-tools {
  flex: 0 0 auto;
}

.campus-tools button {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.campus-tools button svg {
  width: 16px;
  height: 16px;
}

.campus-ad-stage {
  min-height: 0;
}

.app-main .campus-ad-card.is-main {
  min-height: clamp(263px, 37.5vw, 388px);
}

.app-main .campus-ad-card.is-main img,
.app-main .campus-ad-card.is-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campus-feature-grid {
  width: 100%;
}

.after-jamb-page .after-jamb-ad {
  min-height: clamp(220px, 42vh, 420px);
}

@media (max-width: 640px) {
  .campus-topbar {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: flex-start;
  }

  .campus-topbar h1 {
    font-size: 1.55rem;
  }

  .campus-tools button {
    width: 42px;
    height: 42px;
  }

  .campus-tools {
    gap: 4px;
  }

  .campus-selector {
    max-width: 100%;
  }

  .campus-ad-stage {
    min-height: 0;
  }

  .app-main .campus-ad-card.is-main {
    min-height: 263px;
  }

  .after-jamb-page .after-jamb-ad {
    min-height: clamp(190px, 36vh, 320px);
  }
}

/* Final mobile Market Back sizing must follow the shared sticky Back rules. */
@media (max-width: 520px) {
  .market-back-button.sticky-back:not(.chat-sticky-back) {
    border-radius: 50%;
    bottom: calc(82px + env(safe-area-inset-bottom));
    font-size: 0;
    gap: 0;
    height: 42px;
    min-height: 42px;
    padding: 0;
    right: 12px;
    width: 42px;
  }

  .market-back-button.sticky-back:not(.chat-sticky-back) svg {
    height: 17px;
    margin: 0;
    width: 17px;
  }
}
.market-extras-sheet {
  box-sizing: border-box;
  width: min(480px, calc(100% - 24px));
  max-height: min(70dvh, 600px);
  padding: 0;
  border: 1px solid #d5ded8;
  border-radius: 8px;
  color: #26382e;
  overflow: hidden;
}
.market-extras-sheet::backdrop { background: rgb(0 0 0 / 45%); }
.market-extras-sheet[open] { display: flex; flex-direction: column; }
.market-extras-sheet header, .market-extras-sheet footer { padding: 12px 16px; flex: none; }
.market-extras-sheet h3 { margin: 0; font-size: 16px; }
.market-extras-body { overflow: auto; min-height: 0; padding: 0 16px; overscroll-behavior: contain; }
.market-extras-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px 22px 32px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e5eae6; font-size: 12px; }
.market-extras-row > span { overflow-wrap: anywhere; }
.market-extras-row output { text-align: center; }
.market-extras-sheet button { min-height: 36px; border: 1px solid #c9d5ce; border-radius: 4px; background: #fff; color: inherit; cursor: pointer; }
.market-extras-sheet button:disabled { opacity: .5; cursor: default; }
.market-extras-sheet footer { display: flex; justify-content: flex-end; gap: 12px; border-top: 1px solid #e5eae6; }
.market-extras-sheet footer button { padding: 6px 18px; }
.market-extras-sheet footer [data-extras-done] { background: #176542; color: #fff; }
.market-order-instructions { display: grid; gap: 6px; font-size: 12px; }
.market-order-instructions textarea { width: 100%; box-sizing: border-box; min-height: 64px; resize: vertical; }
@media (max-width: 600px) {
  .market-extras-sheet { margin: auto auto calc(80px + env(safe-area-inset-bottom)); max-height: min(65dvh, calc(100dvh - 110px)); }
}
.market-owner-catalogue { min-width: 0; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.market-category-screen.is-compact-public { min-width: 0; padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.market-category-screen.is-compact-public .market-product-gallery { grid-template-columns: minmax(0, 1fr); gap: 16px; width: 100%; min-width: 0; }
.market-category-screen.is-compact-public .market-product-card { width: 100%; min-width: 0; box-sizing: border-box; }
.market-category-screen.is-compact-public .market-listing-body { min-width: 0; overflow-wrap: anywhere; }
.market-category-screen.is-compact-public .market-listing-actions { display: flex; flex-wrap: wrap; padding-right: 56px; gap: 8px; }
.market-category-screen.is-compact-public .market-listing-actions .lc-button { min-width: 0; white-space: normal; }
.market-category-chat { justify-self: start; min-height: 44px; }
.market-category-chat svg { width: 16px; height: 16px; }
.market-owner-catalogue .market-catalogue-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.market-owner-catalogue .market-catalogue-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 8px; }
.market-owner-catalogue .market-catalogue-preview { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 1 / 1; min-width: 0; padding: 0; flex: none; border-radius: 4px; overflow: hidden; }
.market-owner-catalogue .market-catalogue-preview img { width: 100%; height: 100%; object-fit: contain; }
.market-owner-catalogue .market-catalogue-preview svg { width: 32px; height: 32px; }
.market-owner-copy { min-width: 0; display: grid; gap: 6px; }
/* One sender-based conversation layout across existing room renderers. */
.lc-message-list, .after-jamb-chat-panel .lc-message-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-y: auto; padding: 12px; max-height: 60dvh; }
.lc-message-list article.lc-message-bubble { width: fit-content; max-width: 85%; min-width: 0; margin: 0; padding: 10px 12px; border-radius: 12px; overflow-wrap: anywhere; text-align: left; box-sizing: border-box; }
.lc-message-list article.lc-message-bubble.is-outgoing { align-self: flex-end; background: #e2f3df; color: #17352a; }
.lc-message-list article.lc-message-bubble.is-incoming { align-self: flex-start; background: #f0f1f2; color: #202b28; }
.lc-message-bubble p { white-space: pre-wrap; margin: 4px 0; }
.lc-message-delete { display: inline-flex !important; align-items: center; margin: 6px 0 0 auto; padding: 2px 6px; border: 0; background: transparent; color: #56766a; font-size: .72rem; cursor: pointer; visibility: visible; opacity: 1; }
.lc-message-delete:hover { color: #b42318; text-decoration: underline; }
.lc-message-sender { display: block; font-size: 12px; color: #285a46; }
.lc-message-identity { display: inline-block; margin-left: 4px; font-size: 9px; letter-spacing: .04em; color: #557568; }
.lc-message-time { display: block; font-size: 11px; text-align: right; color: #55655d; margin-top: 5px; }
.lc-message-image { display: block; }
.lc-message-image img { display: block; width: auto; max-width: 100%; max-height: 280px; object-fit: contain; border-radius: 8px; }
.chat-screen, .after-jamb-chat-panel, .market-chat-card { min-width: 0; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.chat-composer, .market-room-composer { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 2; background: #fff; min-width: 0; }
.chat-composer input, .market-room-composer input { min-width: 0; }
.after-jamb-chat-panel .chat-composer { grid-template-columns: minmax(0, 1fr) auto; }
.after-jamb-chat-panel .chat-composer input { box-sizing: border-box; }
.after-jamb-chat-panel .chat-composer button { min-width: 44px; min-height: 44px; }
.lc-order-chat { position: fixed; inset-inline: 0; bottom: auto; margin: 0 auto; padding: 10px; width: min(640px, calc(100% - 16px)); height: min(820px, calc(100dvh - 16px)); max-height: calc(100dvh - 16px); box-sizing: border-box; border-radius: 8px; overflow: hidden; gap: 0; }
.lc-order-chat[open] { display: flex; flex-direction: column; }
.lc-order-chat > .lc-order-chat-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 0 6px; border-bottom: 1px solid #dce5de; }
.lc-order-chat-header > div { min-width: 0; }
.lc-order-chat-header h2 { font-size: 16px; line-height: 1.25; margin: 0; }
.lc-order-chat-header p { font-size: 12px; line-height: 1.3; margin: 3px 0 0; overflow-wrap: anywhere; }
.lc-order-chat-header button { width: 44px; height: 44px; flex: 0 0 44px; border: 0; background: transparent; color: #285a46; font-size: 24px; cursor: pointer; }
.lc-order-chat .lc-message-list { flex: 1 1 auto; min-height: 0; max-height: none; }
.lc-order-composer { flex: 0 0 auto; display: grid; gap: 4px; margin: 0; padding: 6px 0 max(2px, env(safe-area-inset-bottom)); border-top: 1px solid #dce5de; }
.lc-order-composer-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; align-items: end; min-width: 0; }
.lc-order-composer-row.is-text-only { grid-template-columns: minmax(0, 1fr) 44px; }
.market-service-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.market-services-view { min-width: 0; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.market-provider-card { min-width: 0; overflow-wrap: anywhere; }
.market-service-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0; width: 100%; max-width: 560px; }
.market-service-modes button { min-width: 0; min-height: 56px; padding: 10px 8px; border: 0; border-radius: 8px; font: inherit; font-size: 16px; font-weight: 800; white-space: normal; cursor: pointer; }
.market-service-modes button[data-market-service-mode="render"] { background: var(--green); color: var(--surface); }
.market-service-modes button[data-market-service-mode="get"] { background: #d4d900; color: var(--green-deep); }
.market-service-modes button[aria-pressed="true"] { box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.2); }
.market-service-modes button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.market-service-work-image { width: 100%; max-height: 160px; object-fit: contain; display: block; }
.market-service-profile-photo { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; float: left; margin-right: 8px; }
.market-service-manager { min-width: 0; }
.market-service-manager .market-catalogue-form > label, .market-service-manager input, .market-service-manager textarea, .market-service-manager select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.market-provider-card .market-service-media img { width: 100%; height: 100%; object-fit: contain; }
.market-provider-card footer > div { display: flex; flex-wrap: wrap; gap: 6px; }
.market-conversation-inbox { width: min(540px, calc(100% - 24px)); max-height: 80dvh; box-sizing: border-box; overflow-y: auto; border-radius: 8px; }
.market-conversation-inbox header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.market-conversation-inbox h2 { font-size: 16px; }
.market-conversation-inbox > button { display: block; width: 100%; margin-top: 8px; white-space: normal; }
.market-conversation-inbox header button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; }
.market-older-messages { align-self: center; background: transparent; border: 0; color: #285a46; min-height: 36px; font: inherit; font-size: 12px; cursor: pointer; }
.lc-order-composer textarea { width: 100%; min-width: 0; height: 44px; min-height: 44px; max-height: 96px; box-sizing: border-box; resize: none; border: 1px solid #dce5de; border-radius: 8px; padding: 10px; font: inherit; font-size: 16px; line-height: 22px; }
.lc-order-composer button { width: 44px; height: 44px; padding: 10px; min-height: 44px; border: 0; border-radius: 8px; background: #e2f3df; color: #285a46; cursor: pointer; }
.lc-order-composer button[type="submit"] { background: #285a46; color: #fff; }
.lc-order-composer button svg { width: 20px; height: 20px; }
.lc-order-composer p { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.lc-order-composer p:empty { display: none; }
.lc-order-composer .lc-order-picture-name { max-height: 36px; overflow: auto; }
.market-order-history { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; padding: 8px 0 calc(100px + env(safe-area-inset-bottom)); }
.market-order-card { min-width: 0; width: 100%; box-sizing: border-box; border: 1px solid #dce5de; background: #fff; border-radius: 8px; overflow-wrap: anywhere; }
.market-order-card > summary { padding: 12px; cursor: pointer; list-style: none; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.market-order-card-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #edf4ee; color: #246448; }
.market-order-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.market-order-card-thumb svg { width: 24px; height: 24px; }
.market-order-card-content { min-width: 0; }
.market-order-card > summary::-webkit-details-marker { display: none; }
.market-order-card-heading, .market-order-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.market-order-card-heading { font-size: 13px; }
.market-order-card-status { font-size: 11px; border: 1px solid #dce5de; padding: 2px 5px; border-radius: 4px; }
.market-order-card-meta { font-size: 12px; margin-top: 6px; }
.market-order-card .lc-message-time { display: inline; margin: 0; font-size: inherit; }
.market-order-expand { display: block; font-size: 12px; color: #285a46; margin-top: 6px; }
.market-order-card[open] .market-order-expand { display: none; }
.market-order-card-details { border-top: 1px solid #dce5de; padding: 12px; padding-right: 56px; font-size: 13px; }
.market-order-card-details p { margin: 0 0 8px; }
.market-order-card-details .lc-button { margin-top: 10px; min-height: 44px; max-width: 100%; white-space: normal; }
@media (min-width: 700px) { .lc-message-list { width: 100%; max-width: 760px; margin-inline: auto; box-sizing: border-box; } }
.market-owner-product-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: 12px; }
.market-owner-product-line > * { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.market-owner-product-line .market-catalogue-title { font-size: 13px; font-weight: 600; }
.market-owner-catalogue .market-owner-price { font-size: 12px; }
.market-owner-catalogue .market-owner-copy > small { font-size: 10px; overflow-wrap: anywhere; }
.market-owner-catalogue .verification-badge { font-size: 10px; white-space: normal; }
.market-owner-catalogue .market-listing-actions { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 6px; margin-top: auto; }
.market-owner-catalogue .market-listing-actions .lc-button { min-height: 44px; min-width: 0; padding: 4px 5px; font-size: 12px; flex: 1 1 0; }
.market-owner-catalogue .market-listing-actions [data-product-advert] { flex-basis: 100%; }
.market-detail-view { min-width: 0; gap: 10px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.market-detail-view .market-product-detail { gap: 12px; padding: 12px; }
.market-detail-view .market-detail-copy { min-width: 0; gap: 10px; }
.market-detail-view .market-detail-copy p { margin: 0; }
.market-detail-title-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.market-detail-title-price h3 { flex: 1 1 120px; min-width: 0; margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.market-detail-title-price .market-detail-price { flex: 0 0 auto; margin: 0; font-size: 16px; }
.market-detail-view .market-detail-actions { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.market-detail-view .market-order-panel { gap: 8px; padding: 10px; }
.market-order-entry-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.market-order-entry-row .market-quantity-control { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin: 0; }
.market-order-entry-row .market-quantity-control input { width: 54px; min-width: 0; min-height: 44px; padding: 4px; box-sizing: border-box; }
.market-order-entry-row > .lc-button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px; }
.market-advertise-item { width: 100%; min-width: 0; min-height: 44px; padding: 6px; border: 0; border-radius: 6px; background: #07553f; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.market-detail-view .market-detail-actions .lc-button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 6px; font-size: 12px; white-space: normal; background: #07553f; color: #fff; border: 0; }
.market-voice-note.market-vendor-voice { background: #fff0f0; border: 1px solid #b42318; color: #8a1c13; }
.market-voice-note.market-vendor-voice button { background: #b42318; color: #fff; }
.app-main .market-product-card .market-listing-actions { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 8px; padding-right: 0; }
.app-main .market-product-card .market-listing-actions .lc-button { width: 40%; flex: 0 0 40%; min-width: 0; min-height: 44px; padding: 6px 4px; white-space: normal; }
@media (min-width: 700px) {
  .market-owner-catalogue .market-catalogue-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* Real advert media keeps the approved banner dimensions and readable copy. */
.app-main .campus-ad-stage .campus-ad-art { position: static; grid-template-columns: minmax(0, 1fr); }
.app-main .campus-ad-stage .campus-ad-media { min-height: 0; }
.app-main .campus-ad-stage .campus-ad-copy,
.app-main .advert-card-body { max-height: none; padding: 12px; }
.app-main .campus-ad-stage .campus-ad-copy p,
.app-main .advert-card-copy p { display: block; }
.app-main .campus-ad-stage .campus-ad-copy .lc-button,
.app-main .advert-card-body .lc-button { min-height: 44px; white-space: normal; }
.app-main .advert-card-media { min-width: 0; }
.app-main .advert-card-media video { width: 100%; max-height: 320px; }
.app-main .campus-ad-stage .campus-ad-card.is-main { height: clamp(263px, 37.5vw, 388px); }
.app-main .campus-ad-stage .campus-ad-art { min-height: 0; height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.app-main .campus-ad-stage .campus-ad-media { height: 100%; overflow: hidden; }
.app-main .campus-ad-stage .campus-ad-media img,
.app-main .campus-ad-stage .campus-ad-media video { display: block; height: 100%; max-height: 100%; }
.app-main .campus-ad-stage .campus-ad-copy { gap: 6px; }
.app-main .campus-ad-stage .campus-ad-copy p { margin: 4px 0; font-size: 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.app-main .campus-ad-stage .campus-ad-copy small { font-size: 11px; }
@media (max-width: 640px) { .app-main .campus-ad-stage .campus-ad-card.is-main { height: 263px; } }
.app-main .advert-card-media img { position: static; display: block; width: 100%; height: 200px; object-fit: contain; }
.app-main .advert-card-top span { width: auto; height: auto; display: inline; }
.app-main .advert-card-media > strong { max-width: 100%; font-size: 12px; overflow-wrap: anywhere; }

/* One bounded media row and one caption row; old overlay rules stay elsewhere. */
.app-main .campus-ad-stage .campus-ad-art { display: grid; grid-template-rows: minmax(0, 1fr) 96px; }
.app-main .campus-ad-stage .campus-ad-media { display: block; padding: 0; margin: 0; border-radius: 0; }
.app-main .campus-ad-stage .campus-ad-media img,
.app-main .campus-ad-stage .campus-ad-media video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.app-main .campus-ad-stage .campus-ad-copy { position: static; display: flex; align-items: center; padding: 8px 10px; margin: 0; border: 0; border-radius: 0; background: #07553f; backdrop-filter: none; box-shadow: none; overflow: hidden; }
.app-main .campus-ad-stage .campus-ad-copy p { font-size: 11px; margin: 2px 0; line-height: 1.2; -webkit-line-clamp: 1; }
.app-main .campus-ad-stage .campus-ad-copy .advert-contact { display: block; white-space: nowrap; text-overflow: ellipsis; font-weight: 700; }
.app-main .campus-ad-stage .campus-ad-copy small { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main .campus-ad-stage .campus-ad-copy .campus-ad-meta { font-size: 9px; }
.campus-ad-meta span { overflow: hidden; text-overflow: ellipsis; }
.campus-ad-media [data-advert-media-error] { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 12px; background: #ecf1ef; color: #073f30; font-size: 13px; }
.campus-ad-media [data-advert-media-error][hidden] { display: none; }
.campus-ad-media [data-advert-media-retry] { min-height: 44px; }
.post-advert-panel .post-advert-form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.post-advert-panel .advert-upload-card { min-height: 100px; padding: 12px; }
.post-advert-panel .advert-upload-card img { max-height: 120px; object-fit: contain; }
.post-advert-panel .advert-create-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.campus-ad-empty { height: 100%; display: grid; align-content: center; justify-items: start; padding: 16px; overflow-wrap: anywhere; }
.campus-ad-empty button { min-height: 44px; }

/* Keep the After-JAMB headings on one clean line within their own containers. */
.after-jamb-page .after-jamb-filter-title h2,
.after-jamb-page .campus-ad-empty h2 {
  width: 100%;
  min-width: 0;
  margin-inline: 0;
  white-space: nowrap;
  font-size: clamp(0.92rem, 4.8vw, 1.25rem);
  line-height: 1.2;
}

/* Landing adverts get the space previously occupied by Campus headings. */
.campus-hub:not(.campus-hub--feature) { gap: 12px; }
.app-main .campus-ad-stage .campus-ad-card.is-main { --campus-ad-height: clamp(403px, 58.24vh, 493px); height: var(--campus-ad-height); min-height: var(--campus-ad-height); }
.app-main .campus-ad-stage .campus-ad-art { display: block; position: relative; height: 100%; }
.app-main .campus-ad-stage .campus-ad-copy { position: absolute; inset: auto 0 0; z-index: 2; height: 12%; min-height: 56px; box-sizing: border-box; display: flex; align-items: center; gap: 8px; padding: 4px 8px; background: rgba(0, 75, 52, .72); color: #fff; }
.app-main .campus-ad-stage .campus-ad-info { flex: 1 1 0; min-width: 0; overflow: hidden; }
.app-main .campus-ad-stage .campus-ad-art:has(video) .campus-ad-copy { bottom: 54px; }
.campus-ad-brand-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.campus-ad-sponsored { flex: 0 0 auto; font-size: 9px; padding: 2px 5px; background: #386e59; border-radius: 4px; }
.app-main .campus-ad-brand-row .campus-ad-brand-name { margin: 0; min-width: 0; font-size: 11px; line-height: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-main .campus-ad-stage .campus-ad-copy .campus-ad-description { font-size: 13.2px; line-height: 16px; -webkit-line-clamp: 1; max-width: none; margin: 1px 0; }
.app-main .campus-ad-stage .campus-ad-copy .advert-contact { font-size: 11px; line-height: 12px; margin: 0; }
.campus-ad-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-main .campus-ad-actions .lc-button { width: 20%; min-height: 44px; min-width: 88px; padding: 0 8px; border-radius: 10%; display: inline-flex; align-items: center; justify-content: center; }
.app-main .campus-ad-actions .secondary { background: #07553f; color: #fff; border: 1px solid #fff; }
.app-main .campus-ad-actions .primary { background: #d4d900; color: #073f30; border: 1px solid #d4d900; }
.app-main .campus-ad-stage .campus-ad-copy { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; height: auto; padding: 6px 8px; }
.app-main .campus-ad-copy .campus-ad-vendor-strip { flex: 1 1 auto; min-width: 0; display: grid; gap: 1px; line-height: 1.12; }
.app-main .campus-ad-copy .campus-ad-business-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }
.app-main .campus-ad-copy .campus-ad-public-contact { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 600; }
.app-main .campus-ad-copy .campus-ad-actions { flex: 0 0 auto; min-width: 0; display: flex; flex-wrap: nowrap; justify-content: flex-end; gap: 5px; margin: 0 0 0 auto; }
.app-main .campus-ad-copy .campus-ad-actions .lc-button { flex: 0 0 auto; width: auto; min-width: 62px; height: 36px; min-height: 36px; padding: 0 7px; border-radius: 7px; font-size: 10px; white-space: nowrap; }
@media (max-width: 340px) {
  .app-main .campus-ad-stage .campus-ad-copy { gap: 5px; padding-inline: 6px; }
  .app-main .campus-ad-copy .campus-ad-actions { gap: 4px; }
  .app-main .campus-ad-copy .campus-ad-actions .lc-button { min-width: 58px; padding-inline: 5px; }
}
.campus-ad-image-destination { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.campus-ad-video-destination { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; background: #07553f; color: #fff; border: 1px solid #fff; border-radius: 8px; z-index: 1; }
.campus-ad-video-destination svg { width: 18px; height: 18px; }
@media (min-width: 700px) { .app-main .campus-ad-stage .campus-ad-card.is-main { --campus-ad-height: clamp(470px, 61.6vh, 582px); } }

.chat-screen .chat-thread { min-height: 160px; max-height: 55dvh; overflow-y: auto; min-width: 0; }
.chat-screen .chat-thread-head > div { min-width: 0; overflow-wrap: anywhere; }
.chat-screen .chat-composer { display: grid; grid-template-columns: 34px 34px minmax(0, 1fr) auto; gap: 6px; min-width: 0; }
.chat-screen .chat-composer > small { grid-column: 1 / -1; overflow-wrap: anywhere; }
.chat-screen .chat-composer button { min-height: 34px; min-width: 34px; padding-inline: 6px; }
.chat-screen .chat-composer > button[aria-label="Attach file"],
.chat-screen .chat-composer > button[aria-label="Record voice note"] { width: 34px; min-width: 34px; padding: 0; }
.chat-screen .chat-composer textarea { width: 100%; min-width: 0; min-height: 56px; max-height: 160px; box-sizing: border-box; }
.chat-screen .chat-composer .chat-send { min-width: 44px; white-space: nowrap; padding-inline: 8px; }

/* Keep After-JAMB dropdown surfaces fully opaque above the blurred backdrop. */
.after-jamb-page .after-jamb-popover,
.after-jamb-page .after-jamb-picker-button,
.after-jamb-page .after-jamb-popover button,
.after-jamb-page .home-school-options,
.after-jamb-page .after-school-types {
  background-color: #ffffff;
}
.lc-message-video { display: block; width: 100%; max-height: 320px; object-fit: contain; }
.lc-message-bubble .chat-shared-card { min-width: 0; overflow-wrap: anywhere; }
.advert-submit-result { padding-block: 8px; }
body[data-route="chats"], body[data-route="campus"], body[data-route="after-jamb"] { min-width: 0; }
.lc-message-sender-avatar { width: 24px; height: 24px; object-fit: cover; border-radius: 50%; }

/* Roommates uses real accommodation/search records in a compact mobile-first layout. */
.rm-unified { min-width: 0; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.roommates-entry { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 16px; }
.roommates-entry .market-community-option { min-width: 0; min-height: 150px; border-radius: 8px; }
.roommates-entry .market-community-option strong { font-size: 1.2rem; line-height: 1.2; overflow-wrap: anywhere; }
.roommates-entry .tone-lemon { background: #d4d900; color: #073f30; }
.roommates-entry .tone-green { background: #07553f; color: #fff; }
.rm-unified .roommates-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rm-back { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; min-height: 44px; border: 1px solid #0d6047; border-radius: 5px; padding: 0 10px; background: #fff; color: #07553f; font-weight: 700; text-decoration: none; }
.rm-back svg { width: 16px; height: 16px; transform: rotate(180deg); }
.rm-main-tabs { grid-template-columns: minmax(0, 1fr); margin: 10px 0; }
.rm-main-tabs button { padding: 8px 12px; font-size: 13px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
.rm-main-tabs button[data-rm-mode="need"]:not(.is-active) { background: #e1f1ed; color: #075a5a; border: 1px solid #6da79e; }
.rm-main-tabs button[data-rm-mode="need"].is-active { background: #086b68; color: #fff; box-shadow: 0 4px 12px rgba(8, 107, 104, .2); }
.rm-discovery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 16px 0 10px; }
.rm-discovery button { min-width: 0; min-height: 48px; padding: 8px; border: 1px solid #0d6047; border-radius: 6px; background: #fff; color: #06432f; font: inherit; font-size: 12px; font-weight: 800; white-space: normal; cursor: pointer; }
.rm-discovery button:focus-visible { background: #07553f; color: #fff; }
.rm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; margin-top: 16px; }
.rm-form[data-rm-have-form] { gap: 16px; }
.rm-form[data-rm-have-form] label { font-size: 1rem; font-weight: 800; }
.rm-form[data-rm-have-form] input,
.rm-form[data-rm-have-form] select { min-height: 56px; font-size: 1rem; }
.rm-form h2, .rm-form .is-wide { grid-column: 1 / -1; }
.rm-form h2, .rm-results h2 { margin: 4px 0; font-size: 18px; }
.rm-form label { display: grid; align-content: start; gap: 4px; min-width: 0; font-size: 12px; font-weight: 700; color: #19382e; }
.rm-form input, .rm-form select, .rm-form textarea { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 8px; border: 1px solid #a7bcb0; border-radius: 5px; background: #fff; font: inherit; font-size: 16px; }
.rm-form textarea { min-height: 90px; }
.rm-error, .rm-notice { padding: 9px 10px; border-radius: 5px; margin: 8px 0; overflow-wrap: anywhere; }
.rm-error { background: #fff0ee; color: #9a241d; }
.rm-notice { background: #e7f5e8; color: #155432; }
.rm-results { display: grid; gap: 10px; margin-top: 16px; min-width: 0; }
.rm-result { display: grid; grid-template-columns: minmax(84px, 32%) minmax(0, 1fr); gap: 10px; min-width: 0; padding: 10px; border: 1px solid #dae6dc; border-radius: 7px; background: #fff; }
.rm-result img, .rm-photo-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; background: #edf2ee; }
.rm-photo-empty { display: grid; place-items: center; color: #53665c; font-size: 12px; }
.rm-result-content { min-width: 0; overflow-wrap: anywhere; }
.rm-result-content p { margin: 4px 0; font-size: 12px; }
.rm-result-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px; }
.rm-result-content button { min-height: 44px; margin-top: 6px; }
.rm-search-result { grid-template-columns: minmax(0, 1fr); }
.rm-apartment-card { grid-template-columns: minmax(220px, 38%) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; border-radius: 16px; }
.rm-apartment-media { min-width: 0; min-height: 100%; padding: 12px; background: #f3f8f3; }
.rm-apartment-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; height: 100%; align-content: start; }
.rm-apartment-photo-grid:has(.rm-apartment-photo-button:only-child) { grid-template-columns: 1fr; }
.rm-apartment-photo-grid img, .rm-apartment-media > .rm-photo-empty { width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; }
.rm-apartment-photo-button { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.rm-apartment-photo-button img { display: block; transition: transform 160ms ease, opacity 160ms ease; }
.rm-apartment-photo-button:hover img, .rm-apartment-photo-button:focus-visible img { opacity: .88; transform: scale(1.015); }
.rm-apartment-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.rm-apartment-card-body .rm-result-head { justify-content: space-between; align-items: flex-start; }
.rm-card-eyebrow { margin: 0 0 2px !important; color: #5a7664; font-size: 11px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rm-result-head h3 { margin: 0; color: #123e31; font-size: 20px; line-height: 1.2; }
.rm-card-title { margin: 3px 0 0 !important; color: #557064; font-size: 12px !important; }
.rm-apartment-owner .rm-person { margin: 0; }
.rm-apartment-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid #dce9df; border-radius: 12px; }
.rm-apartment-details > div { min-width: 0; padding: 10px 12px; background: #f8fbf8; }
.rm-apartment-details > div:nth-child(4n + 2), .rm-apartment-details > div:nth-child(4n + 3) { background: #fff; }
.rm-apartment-details dt { color: #587062; font-size: 11px; }
.rm-apartment-details dd { margin: 3px 0 0; color: #173e31; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.rm-apartment-details .rm-apartment-rent dd { color: #075b43; font-size: 16px; }
.rm-apartment-description { display: grid; gap: 3px; color: #526b5d; font-size: 12px !important; }
.rm-apartment-description strong { color: #173e31; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.rm-apartment-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.rm-apartment-actions button { margin-top: 0 !important; }
.rm-apartment-actions .rm-owner-note { color: #176348; font-weight: 700; }
.rm-photo-viewer { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(9, 29, 21, .78); }
.rm-photo-open { overflow: hidden; }
.rm-photo-viewer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: default; }
.rm-photo-viewer-content { position: relative; z-index: 1; display: grid; place-items: center; width: min(92vw, 1100px); height: min(88vh, 820px); }
.rm-photo-viewer-content > img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; object-fit: contain; box-shadow: 0 18px 55px rgba(0, 0, 0, .32); }
.rm-photo-viewer-close, .rm-photo-viewer-nav { position: absolute; z-index: 2; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); color: #fff; background: rgba(7, 52, 39, .9); cursor: pointer; }
.rm-photo-viewer-close { top: -10px; right: -10px; width: 42px; height: 42px; border-radius: 50%; font-size: 28px; line-height: 1; }
.rm-photo-viewer-nav { top: 50%; width: 44px; height: 52px; border-radius: 12px; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.rm-photo-viewer-prev { left: -10px; }
.rm-photo-viewer-next { right: -10px; }
.rm-photo-viewer-count { position: absolute; bottom: -30px; margin: 0; color: #fff; font-size: 13px; font-weight: 700; }
@media (max-width: 760px) {
  .rm-apartment-card { grid-template-columns: 1fr; }
  .rm-apartment-media { min-height: 0; }
  .rm-apartment-photo-grid { height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
  .rm-apartment-photo-grid img { aspect-ratio: 1 / 1; }
  .rm-apartment-photo-grid:has(.rm-apartment-photo-button:only-child) { grid-template-columns: 1fr; }
  .rm-apartment-photo-grid:has(.rm-apartment-photo-button:only-child) img { aspect-ratio: 4 / 3; }
  .rm-apartment-card-body { padding: 14px; }
  .rm-apartment-details { grid-template-columns: 1fr 1fr; }
  .rm-apartment-details > div { padding: 11px 12px; }
  .rm-apartment-details dt { font-size: 13px; line-height: 1.25; }
  .rm-apartment-details dd { font-size: 15px; line-height: 1.3; }
  .rm-apartment-details .rm-apartment-rent dd { font-size: 16px; }
  .rm-result-head h3 { font-size: 21px; line-height: 1.2; }
  .rm-apartment-owner .rm-person strong { font-size: 16px; }
  .rm-apartment-description { font-size: 15px !important; line-height: 1.4; }
  .rm-apartment-description strong { font-size: 13px; }
  .rm-apartment-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rm-apartment-actions [data-public-profile-user] { grid-column: 1 / -1; width: 100%; }
  .rm-apartment-actions [data-rm-interest-listing], .rm-apartment-actions [data-rm-message-listing] { width: 100%; min-width: 0; }
  .rm-apartment-actions button { font-size: 15px; }
  .rm-photo-viewer { padding: 14px; }
  .rm-photo-viewer-content { width: 96vw; height: 78vh; }
  .rm-photo-viewer-close { top: -6px; right: -4px; }
  .rm-photo-viewer-prev { left: -4px; }
  .rm-photo-viewer-next { right: -4px; }
}
@media (max-width: 380px) { .rm-form { grid-template-columns: minmax(0, 1fr); } .rm-form h2, .rm-form .is-wide { grid-column: auto; } .rm-discovery button { font-size: 11px; padding: 6px 3px; } }

/* The same viewport shell is used by route chats and persistent private/order rooms. */
body:has(.chat-screen) .bottom-nav, body:has(.lc-order-chat[open]) .bottom-nav { display: none; }
.chat-screen { position: fixed; inset: 0; top: var(--chat-viewport-top, 0px); z-index: 1000; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: var(--chat-viewport-height, 100dvh); padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); background: #f7faf7; overflow: hidden; animation: none; transform: none; }
.chat-screen .chat-thread { flex: 1 1 auto; min-height: 0; max-height: none; width: 100%; }
.chat-screen .chat-composer { position: relative; bottom: auto; flex: 0 0 auto; padding-bottom: 0; }
.chat-screen .chat-sticky-back { position: relative; inset: auto; display: flex; flex-direction: row; flex: 0 0 auto; order: -1; width: 100%; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0; margin: 0; background: transparent; }
.chat-screen .chat-sticky-back button { position: static; width: auto; min-height: 44px; border: 0; border-radius: 5px; padding: 6px 10px; background: #e8f1e9; color: #07553f; box-shadow: none; white-space: nowrap; font-size: 12px; }
.chat-screen .chat-sticky-back [data-chat-back] svg { transform: rotate(180deg); }
.chat-screen .chat-thread-head { flex: 0 0 auto; gap: 8px; margin: 0; padding: 6px 0; border: 0; border-bottom: 1px solid #dce5de; border-radius: 0; box-shadow: none; background: transparent; }
.chat-screen .chat-thread-head h1 { font-size: 18px; line-height: 1.3; }
.chat-screen .chat-thread-head p, .chat-screen .chat-thread-head small { font-size: 12px; font-weight: 500; line-height: 1.35; }
.chat-screen .chat-thread-head .chat-avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; }
.chat-screen .chat-thread { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 8px 0; }
.chat-screen .chat-access-note { margin: 4px 0; padding: 6px; font-size: 12px; }
.chat-screen .chat-safety-row { flex: 0 0 auto; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.chat-screen .chat-safety-row button { min-height: 44px; border-radius: 5px; }
.chat-screen .chat-composer { margin: 0; padding: 6px 0 0; border: 0; border-top: 1px solid #dce5de; border-radius: 0; box-shadow: none; background: #fff; }
.chat-screen .chat-composer input[type="text"] { min-width: 0; min-height: 44px; font-size: 16px; border: 1px solid #a7bcb0; border-radius: 5px; }
.chat-screen .chat-composer button { min-height: 44px; border-radius: 5px; }
.market-chat-preview.chat-screen { display: flex; flex-direction: column; max-width: none; min-height: 0; gap: 8px; }
.market-chat-preview.chat-screen .market-back-button { position: relative; inset: auto; flex: 0 0 auto; align-self: flex-start; margin: 0 0 6px; }
.market-chat-preview.chat-screen .market-chat-card { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; min-height: 0; width: 100%; max-width: 760px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: hidden; }
.market-chat-preview.chat-screen .market-room-thread { order: 1; flex: 1 1 auto; min-height: 0; max-height: none; overflow-y: auto; }
.market-chat-preview.chat-screen [data-market-room-notice] { order: 2; margin: 0; padding: 6px; }
.market-chat-preview.chat-screen [data-market-room-notice][hidden] { display: none; }
.market-chat-preview.chat-screen .market-room-composer { order: 3; }
.market-chat-preview.chat-screen .chat-thread-head { flex: 0 0 auto; gap: 8px; margin: 0; padding: 0 0 6px; border: 0; border-bottom: 1px solid #dce5de; border-radius: 0; box-shadow: none; background: transparent; }
.market-chat-preview.chat-screen .chat-thread-head button { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 5px; background: #e8f1e9; color: #07553f; }
.market-chat-preview.chat-screen .chat-thread-head button svg { width: 20px; height: 20px; transform: rotate(180deg); }
.market-chat-preview.chat-screen .chat-thread-head h1 { margin: 0; font-size: 18px; }
.market-chat-preview.chat-screen .chat-thread-head p { margin: 3px 0 0; font-size: 12px; }
.market-chat-preview.chat-screen .market-chat-counts { flex: 0 0 auto; display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; justify-content: space-between; }
.market-chat-preview.chat-screen .market-chat-counts button { flex: 0 0 auto; width: auto; min-height: 44px; padding: 6px 10px; font-size: 12px; border-radius: 5px; }
.market-chat-preview.chat-screen .market-room-thread > .home-empty { margin: 0; padding: 8px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; }
.market-chat-preview.chat-screen details { flex: 0 0 auto; max-height: 28dvh; overflow-y: auto; margin: 0; font-size: 12px; }
.market-chat-preview.chat-screen details summary { min-height: 32px; padding: 7px 0; cursor: pointer; }
.market-chat-preview.chat-screen details p { margin: 4px 0; font-size: 12px; font-weight: 400; }
.market-chat-preview.chat-screen .market-room-composer { position: sticky; bottom: 0; z-index: 2; flex: 0 0 auto; background: #fff; }
.market-chat-preview.chat-screen .market-room-composer { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 6px; }
.market-chat-preview.chat-screen .market-room-composer input[type="text"] { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; border: 1px solid #a7bcb0; border-radius: 5px; padding: 8px; font-size: 16px; }
.market-room-composer [data-market-room-attach] { width: 44px; min-height: 44px; border: 0; border-radius: 5px; background: #e8f1e9; color: #07553f; }
.market-room-composer [data-market-room-attach] svg { width: 20px; height: 20px; }
.market-room-composer [data-market-room-file-name] { grid-column: 1 / -1; min-width: 0; overflow-wrap: anywhere; }
.lc-order-chat { inset: 0; top: 0; left: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; border: 0; border-radius: 0; padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); background: #f7faf7; }
.lc-order-chat .lc-message-list { width: 100%; max-width: 760px; }
.lc-order-chat .lc-order-composer { width: 100%; max-width: 760px; margin-inline: auto; }
.lc-order-chat-header button svg { width: 20px; height: 20px; transform: rotate(180deg); }

/* Shared premium surface treatment; layout and interaction remain owned by each feature. */
:root {
  --app-bg: #f5f7f3;
  --surface-soft: #f9fbf8;
  --ink: #1b2420;
  --muted: #59675e;
  --line: #d9e4da;
  --premium-surface: rgba(255, 255, 255, .94);
  --premium-elevated: rgba(255, 255, 255, .98);
  --premium-border: rgba(41, 84, 59, .14);
  --premium-shadow: 0 14px 36px rgba(20, 52, 35, .09), 0 2px 8px rgba(20, 52, 35, .04);
  --premium-radius: 22px;
  --premium-blur: 12px;
}

body { background: var(--app-bg); color: var(--ink); }

.app-header {
  border: 1px solid var(--premium-border);
  border-radius: 20px;
  background: var(--premium-surface);
  padding: 6px 10px;
  box-shadow: 0 8px 26px rgba(20, 52, 35, .07);
  -webkit-backdrop-filter: blur(var(--premium-blur));
  backdrop-filter: blur(var(--premium-blur));
}
.mobile-brand .app-brand { gap: 8px; padding: 0; }
.mobile-brand .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 10px; }
.mobile-brand .brand-copy strong { font-size: .96rem; }
.mobile-brand .brand-copy span { font-size: .7rem; }
.user-card, .section-chip { border-color: var(--premium-border); background: var(--premium-elevated); }
.bottom-nav {
  border-color: var(--premium-border);
  background: var(--premium-surface);
  box-shadow: 0 12px 34px rgba(20, 52, 35, .16);
}
.bottom-nav .nav-item:not(.is-active) { color: #526359; }
.bottom-nav .nav-item.is-active { background: var(--green-deep); color: #fff; }

:is(.home-post, .campus-feature-card, .market-product-card, .market-provider-card, .rm-result, .profile-card, .market-order-card, .after-jamb-group-card) {
  border: 1px solid var(--premium-border);
  border-radius: var(--premium-radius);
  background: var(--premium-surface);
  box-shadow: var(--premium-shadow);
}
.home-post { box-shadow: 0 8px 24px rgba(20, 52, 35, .055); }
:is(.home-post, .market-product-card, .market-provider-card) img { max-width: 100%; }
.campus-feature-card { transition: transform 180ms ease, box-shadow 180ms ease; }
.campus-feature-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(20, 52, 35, .12); }
.rm-result, .profile-card { background: var(--premium-elevated); }
.rm-result img { border-radius: 14px; }

.lc-button.primary {
  background: var(--green-deep);
  box-shadow: 0 8px 20px rgba(7, 56, 44, .18);
}
.lc-button.secondary { border-color: var(--premium-border); background: var(--premium-elevated); box-shadow: 0 3px 10px rgba(20, 52, 35, .05); }
.lc-button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }

.app-main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea),
.chat-screen :is(input[type="text"], textarea) {
  border-color: #bdcfc1;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 1px 3px rgba(20, 52, 35, .035);
}
.app-main :is(input, select, textarea):focus-visible,
.chat-screen :is(input, textarea):focus-visible {
  border-color: var(--green);
  outline: 2px solid rgba(13, 90, 66, .24);
  outline-offset: 1px;
}

:is(.market-buy-sell-tabs, .department-tabs, .home-feed-tabs) {
  border: 1px solid var(--premium-border);
  border-radius: 14px;
  background: #ecf3ed;
  box-shadow: inset 0 1px 3px rgba(20, 52, 35, .04);
}
:is(.market-buy-sell-tabs, .department-tabs, .home-feed-tabs) button:not(.is-active) { background: var(--premium-elevated); color: var(--green-deep); }
:is(.market-buy-sell-tabs, .department-tabs, .home-feed-tabs) button.is-active { background: var(--green-deep); color: #fff; box-shadow: 0 4px 12px rgba(7, 56, 44, .17); }
.rm-main-tabs button { font-size: 13px; }

.chat-screen, .lc-order-chat { background: var(--app-bg); }
.chat-screen .chat-thread-head, .lc-order-chat > .lc-order-chat-header {
  border-bottom-color: var(--premium-border);
  background: var(--premium-surface);
}
.chat-screen .chat-composer, .market-chat-preview.chat-screen .market-room-composer, .lc-order-composer {
  border: 1px solid var(--premium-border);
  border-radius: 16px;
  background: var(--premium-elevated);
  box-shadow: 0 5px 20px rgba(20, 52, 35, .08);
  padding: 6px;
}
.lc-message-list article.lc-message-bubble.is-outgoing { border-radius: 17px 17px 5px 17px; background: #dcf0e0; }
.lc-message-list article.lc-message-bubble.is-incoming { border-radius: 17px 17px 17px 5px; background: #fff; box-shadow: 0 2px 8px rgba(20, 52, 35, .05); }
.lc-message-identity { color: #345f47; font-weight: 800; }

.rm-unified .rm-back, .chat-screen .chat-sticky-back button, .market-chat-preview.chat-screen .chat-thread-head button {
  border: 1px solid var(--premium-border);
  border-radius: 12px;
  background: var(--premium-elevated);
  box-shadow: 0 3px 10px rgba(20, 52, 35, .06);
}
@media (max-width: 600px) {
  .app-header { border-radius: 15px; padding: 5px 8px; }
  :is(.home-post, .campus-feature-card, .market-product-card, .market-provider-card, .rm-result, .profile-card) { border-radius: 18px; }
  .bottom-nav { right: 8px; left: 8px; bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .campus-feature-card, .lc-button { transition-duration: 0ms; }
}

body, button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }

.app-main:has(.profile-layout) { background: #f5f8f5; }
.profile-layout { grid-template-columns: minmax(0, 1fr); width: min(100%, 1040px); margin-inline: auto; padding-bottom: 88px; }
.profile-main, .profile-side { min-width: 0; gap: 14px; }
.profile-layout .profile-hero-card {
  grid-template-columns: 104px minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid #d7e7db;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  color: #17382d;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(24, 62, 43, .07);
}
.profile-layout .profile-hero-copy h1 { margin: 6px 0; color: #17382d; font-size: clamp(1.55rem, 2.5vw, 2.3rem); line-height: 1.15; overflow-wrap: anywhere; }
.profile-layout { font-family: Arial, Helvetica, sans-serif; }
.profile-layout button, .profile-layout input, .profile-layout textarea, .profile-layout select { font-family: inherit; }
.profile-layout h1 { font-weight: 800; }
.profile-layout h2, .profile-layout h3, .profile-layout .profile-tabs a, .profile-layout .profile-section-head strong { font-weight: 700; }
.profile-layout p, .profile-layout span, .profile-layout small, .profile-layout label, .profile-layout input, .profile-layout textarea, .profile-layout select { font-weight: 400; }
.profile-layout .profile-hero-copy p { color: #49645a; font-size: .88rem; overflow-wrap: anywhere; }
.profile-layout .profile-hero-card .profile-meta span { border: 1px solid #d5e8d7; background: #eaf5e9; color: #13543c; padding: 4px 9px; font-size: .7rem; }
.profile-layout .profile-hero-card .verification-pill { background: #f2f6f0; color: #416052; }
.profile-layout .profile-hero-card .profile-photo {
  width: 104px; height: 104px; min-height: 0; box-sizing: border-box;
  border: 3px solid #fff; border-radius: 50%; background: #eaf5e9;
  box-shadow: 0 0 0 1px #c8dfcc; overflow: hidden;
}
.profile-layout .profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; }
.profile-layout .profile-hero-card .profile-edit-button { border: 0; border-radius: 8px; background: #07553f; color: #fff; }
.profile-layout .profile-card { border: 1px solid #dce9dd; border-radius: 14px; background: #fff; box-shadow: 0 7px 24px rgba(24, 62, 43, .05); padding: 18px; }
.profile-logout-card { display: flex; align-items: center; justify-content: flex-end; gap: 16px; border-color: #ead8d2 !important; }
.profile-logout-card h2, .profile-logout-card p { margin: 0; }
.profile-logout-card h2 { color: #17382d; font-size: 1rem; }
.profile-logout-card p { margin-top: 4px; color: #607169; font-size: .8rem; }
.profile-logout-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; color: #8a3028; border-color: #e2bcb5; }
.profile-logout-button svg { width: 16px; height: 16px; }
.profile-tabs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; width: 100%; max-width: 100%; padding: 4px; overflow: visible; border: 1px solid #dce9dd; border-radius: 10px; background: #fff; }
.profile-tabs a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #dce9dd; border-radius: 7px; color: #174d3b; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.profile-tabs a:hover, .profile-tabs a:focus-visible { background: #eaf5e9; }
.profile-layout [id^="profile-"] { scroll-margin-top: 85px; }
.profile-activity-list { display: grid; gap: 8px; min-width: 0; }
.profile-activity-list article { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; border-bottom: 1px solid #e4eee5; padding-block: 6px; }
.profile-activity-list article:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.profile-activity-list img { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; }
.profile-activity-list strong, .profile-activity-list small { display: block; overflow-wrap: anywhere; }
.profile-activity-list small { margin-top: 3px; color: #607169; }
.profile-gallery-kicker { margin: 0 0 3px; color: #0b6a4d; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.profile-gallery-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.profile-gallery-filters button { border: 1px solid #cfe1d2; border-radius: 999px; background: #fff; color: #245844; padding: 7px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.profile-gallery-filters button.is-active { border-color: #07553f; background: #07553f; color: #fff; }
.profile-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-gallery-tile { position: relative; aspect-ratio: 3 / 4; min-width: 0; overflow: hidden; border: 0; border-radius: 9px; padding: 0; background: #eaf5e9; cursor: pointer; }
.profile-gallery-tile img, .profile-gallery-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-gallery-tile-caption { position: absolute; right: 0; bottom: 0; left: 0; overflow: hidden; padding: 22px 7px 7px; background: linear-gradient(transparent, rgba(0,0,0,.66)); color: #fff; font-size: .68rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.profile-gallery-play { position: absolute; top: 8px; left: 8px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; }
.profile-gallery-play svg { width: 14px; height: 14px; }
.profile-gallery-empty { grid-column: 1 / -1; display: grid; min-height: 150px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #cfe1d2; border-radius: 10px; color: #607169; text-align: center; }
.profile-gallery-empty strong { color: #173f30; }
.profile-gallery-content { display: grid; gap: 14px; min-width: 0; }
.profile-gallery-post-card { overflow: hidden; border: 1px solid #dce9dd; border-radius: 14px; background: #fff; }
.profile-gallery-post-head { display: flex; align-items: center; gap: 10px; padding: 13px 14px 8px; }
.profile-gallery-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #d4f45a; color: #07553f; font-weight: 800; }
.profile-gallery-post-head strong, .profile-gallery-post-head small { display: block; }
.profile-gallery-post-head strong { color: #173f30; font-size: .86rem; }
.profile-gallery-post-head small { margin-top: 2px; color: #607169; font-size: .7rem; }
.profile-gallery-post-caption { margin: 4px 14px 10px; color: #294b3c; font-size: .86rem; line-height: 1.45; }
.profile-gallery-post-media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 0 4px; }
.profile-gallery-post-media .profile-gallery-tile:first-child:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.profile-gallery-post-meta { display: flex; gap: 14px; padding: 8px 14px 12px; color: #607169; font-size: .72rem; }
.profile-gallery-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.profile-gallery-media-grid.is-video-grid .profile-gallery-tile { aspect-ratio: 9 / 16; }
.profile-gallery-media-grid:not(.is-video-grid) .profile-gallery-tile { aspect-ratio: 1 / 1; }
.profile-gallery-tile { display: block; width: 100%; }
.profile-gallery-composer { display: grid; gap: 10px; margin-bottom: 14px; padding: 13px; border: 1px solid #cfe1d2; border-radius: 11px; background: #f7fbf7; }
.profile-gallery-composer label { display: grid; gap: 5px; color: #245844; font-size: .8rem; font-weight: 700; }
.profile-gallery-composer input, .profile-gallery-composer textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfe1d2; border-radius: 8px; background: #fff; padding: 9px; font: inherit; }
.profile-gallery-composer textarea { min-height: 70px; resize: vertical; }
.profile-gallery-composer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.profile-gallery-viewer { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 18px; background: rgba(5, 24, 18, .82); }
.profile-gallery-viewer-content { width: min(100%, 520px); max-height: 92dvh; overflow: auto; border-radius: 12px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.profile-gallery-viewer-content > img, .profile-gallery-viewer-content > video { display: block; width: 100%; max-height: 68dvh; background: #07130f; object-fit: contain; }
.profile-gallery-viewer-meta { padding: 14px; color: #607169; }
.profile-gallery-viewer-meta strong, .profile-gallery-viewer-meta small, .profile-gallery-viewer-meta p { display: block; }
.profile-gallery-viewer-meta strong { color: #173f30; font-size: 1rem; }
.profile-gallery-viewer-meta small { margin-top: 3px; }
.profile-gallery-viewer-meta p { margin: 10px 0 6px; color: #243d31; }
.profile-gallery-close { position: fixed; top: 16px; right: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; cursor: pointer; }
.profile-gallery-close svg { width: 18px; height: 18px; }
.profile-gallery-viewer { place-items: stretch; padding: 0; }
.profile-gallery-viewer-content { width: 100%; height: 100dvh; max-height: none; overflow: auto; border-radius: 0; background: #07130f; }
.profile-gallery-viewer-content > img, .profile-gallery-viewer-content > video { width: 100%; height: min(82dvh, 900px); max-height: none; margin: 0 auto; object-fit: contain; }
.profile-gallery-viewer-meta { max-width: 720px; margin: 0 auto; background: #fff; }
.profile-gallery-back { position: fixed; top: 16px; left: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(5, 24, 18, .68); color: #fff; cursor: pointer; font: inherit; }
.profile-gallery-back svg { width: 17px; height: 17px; }
@media (max-width: 480px) { .profile-gallery-grid { gap: 6px; } .profile-gallery-card .profile-section-head { align-items: flex-start; } .profile-gallery-add { padding: 8px 10px; font-size: .75rem; } }
@media (max-width: 640px) {
  .profile-gallery-media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .profile-gallery-post-media { gap: 3px; }
  .profile-gallery-post-head { padding-inline: 10px; }
  .profile-gallery-post-caption { margin-inline: 10px; }
  .profile-gallery-post-meta { padding-inline: 10px; }
}
@media (max-width: 560px) { .profile-logout-card { align-items: stretch; flex-direction: column; } .profile-logout-button { justify-content: center; width: 100%; } }
.public-profile-sheet { z-index: 1100; }
.public-profile-sheet .home-sheet-card { width: min(100%, 760px); max-height: min(88dvh, 760px); border: 1px solid #dce9dd; border-radius: 16px; background: #f8faf8; }
.public-profile-sheet .home-panel-head { position: sticky; top: 0; z-index: 1; background: #f8faf8; padding-block: 4px; }
.public-profile-summary { border: 1px solid #dce9dd; border-radius: 12px; background: #fff; padding: 14px; }
.public-profile-avatar, .public-profile-avatar img { width: 86px; height: 86px; overflow: hidden; object-fit: cover; object-position: center; border: 2px solid #fff; box-shadow: 0 0 0 1px #c8dfcc; }
.public-profile-summary h3 { font-size: 1.3rem; overflow-wrap: anywhere; }
.public-profile-summary p { margin-top: 6px; color: #49645a; }
.public-profile-facts { border: 1px solid #dce9dd; border-radius: 12px; background: #fff; padding: 14px; }
.public-profile-facts h3 { margin: 0 0 10px; font-size: 1rem; }
.public-profile-facts p { margin: 0; overflow-wrap: anywhere; }
.profile-dm-button { width: 100%; border-radius: 8px; }
.profile-sender-link { display: block; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .profile-layout .profile-hero-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 14px; }
  .profile-layout .profile-hero-card .profile-photo { width: 76px; height: 76px; }
  .profile-layout .profile-hero-card .profile-edit-button { grid-column: 1 / -1; width: 100%; }
  .profile-layout .profile-card { padding: 14px; }
  .public-profile-avatar, .public-profile-avatar img { width: 64px; height: 64px; }
  .public-profile-summary { gap: 10px; padding: 10px; }
}
/* Global typography guardrail: keep body copy readable while headings retain hierarchy. */
body,
button,
input,
select,
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

body p,
body label,
body small,
body li,
body input,
body select,
body textarea,
body button,
body nav a,
body nav button,
body .metadata,
body .meta,
body .badge,
body .pill,
body .notice,
body .tab,
body .bottom-nav span {
  font-weight: 400 !important;
}

/* Main navigation is a flat, full-width viewport bar on compact screens. */
@media (max-width: 759px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .bottom-nav {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    padding: 6px 6px env(safe-area-inset-bottom, 0px);
  }

  .bottom-nav .nav-item {
    min-width: 0;
    border-radius: 12px;
  }
}

/* Roommates entry actions use solid, centered surfaces. */
.rm-entry-card--search,
.rm-entry-card--search.is-selected {
  background: #064c3f;
  color: #ffffff;
  justify-items: center;
  text-align: center !important;
}

.rm-entry-card--post,
.rm-entry-card--post.is-selected {
  background: #bbc600;
  color: #172b20;
  justify-items: center;
  text-align: center;
}

.rm-entry-card--search.is-selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(6, 76, 63, 0.28), 0 12px 28px rgba(6, 76, 63, 0.2);
}

.rm-entry-card--post.is-selected {
  border-color: #172b20;
  box-shadow: 0 0 0 2px rgba(23, 43, 32, 0.28), 0 12px 28px rgba(23, 43, 32, 0.16);
}

.rm-entry-card--search small {
  color: rgba(255, 255, 255, 0.84);
}

.rm-entry-card--post small {
  color: rgba(7, 56, 44, 0.78);
}

/* Keep the Campus menu visually inset from the viewport edges. */
.campus-hub:not(.campus-hub--feature) .campus-feature-grid {
  display: grid;
  width: calc(100% - clamp(40px, 6vw, 72px));
  margin-inline: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pq-panel > .sticky-back,
.pq-preview > .sticky-back,
.notes-panel > .sticky-back {
  position: static;
  inset: auto;
  width: fit-content;
  margin: 0 0 12px;
}

/* Campus Events mobile correction from 7be156f. */
.events-panel,
.events-view,
.event-card,
.event-detail,
.event-detail-card,
.event-form,
.events-filter-drawer { min-width: 0; max-width: 100%; }

@media (max-width: 767px) {
  .app-main:has(.events-panel) { overflow-x: hidden; padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .events-panel { width: 100%; padding: 12px; border-radius: 20px; }
  .events-category-row { flex-wrap: wrap; overflow: visible; gap: 6px; }
  .events-category-row button { max-width: 100%; white-space: normal; text-align: center; }
  .events-feed { grid-template-columns: minmax(0, 1fr); }
  .event-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 18px; }
  .event-poster, .event-detail-poster { width: 100%; min-height: 0; max-height: 310px; border-radius: 15px; }
  .event-poster img { width: 100%; height: 100%; object-fit: contain; }
  .event-card-top, .event-card footer { align-items: stretch; flex-wrap: wrap; }
  .event-card h4, .event-card p, .event-card small, .event-chip-row span { overflow-wrap: anywhere; word-break: break-word; }
  .event-action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .event-action-row button { min-width: 0; padding-inline: 6px; white-space: normal; text-align: center; }
  .event-detail > .sticky-back { position: static; justify-self: start; margin-bottom: 2px; }
  .event-detail-card { grid-template-columns: minmax(0, 1fr); padding: 10px; border-radius: 18px; }
  .event-detail-grid { grid-template-columns: minmax(0, 1fr); }
}

body h6 {
  font-weight: 600;
}
.bottom-nav .nav-item span { font-family: Arial, Helvetica, sans-serif; font-weight: 700 !important; }
.rm-person { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.rm-person img, .rm-person-fallback { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: center; background: #d4d900; color: #073f30; font-weight: 600; }
.rm-person > span:last-child { min-width: 0; display: grid; gap: 2px; }
.rm-person small { color: #52625d; font-size: .72rem; }
.rm-owner-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.roommates-page:not(.rm-unified):not(.matching-open) [data-rm-filter-form], .roommates-page:not(.rm-unified):not(.matching-open) .rm-results { display: none; }
.rm-category-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rm-category-head h2 { min-width: 0; margin: 0; }
.rm-match-tab { flex: 0 1 auto; border: 0; border-radius: 6px; padding: 9px 12px; background: #07553f; color: #fff; font: 400 .78rem/1.2 Arial, Helvetica, sans-serif; text-align: center; cursor: pointer; }
@media (max-width: 480px) { .rm-category-head { align-items: flex-start; } .rm-category-head h2 { font-size: 1.05rem; } .rm-match-tab { max-width: 52%; padding: 8px 9px; font-size: .7rem; } }
.rm-unified.matching-open [data-rm-have-form], .rm-unified.matching-open [data-rm-need-form] { display: none; }
.rm-category-tabs { display: flex; gap: 8px; width: 100%; margin: 0 0 14px; }
.rm-category-tab { flex: 1 1 50%; min-width: 0; min-height: 44px; border: 1px solid #07553f; border-radius: 7px; padding: 9px 10px; background: #fff; color: #07553f; font: 400 .82rem/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.rm-category-tab.is-active { background: #07553f; color: #fff; }
.rm-form { width: 75%; margin-left: auto; margin-right: auto; }
.rm-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .rm-form select, .rm-form .roommates-media-picker { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { .rm-form { width: 75%; } .rm-category-tab { font-size: .72rem; padding-inline: 6px; } }
.rm-category-tabs { display: flex; gap: 8px; width: 100%; margin: 0 0 14px; }
.rm-category-tab { flex: 1 1 50%; min-width: 0; min-height: 52px; border: 1px solid #07553f; border-radius: 0; padding: 9px 10px; background: #d4d900; color: #073f30; font: 400 .82rem/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.rm-category-tab:first-child, .rm-category-tab:last-child { border-radius: 7px; }
.rm-category-tab.is-active { background: #07553f; color: #fff; }
@media (max-width: 600px) { .rm-category-tab { min-height: 52px; font-size: .72rem; padding: 8px 6px; } }
.department-panel {
  width: min(100%, 1080px);
  margin-inline: auto;
  box-sizing: border-box;
}
.department-filter-toolbar {
  justify-content: flex-end;
  margin-top: -4px;
}
.department-panel .department-filter-grid {
  gap: 14px;
  padding-bottom: 96px;
}
.department-panel .after-jamb-popover {
  max-height: calc(100dvh - 230px);
  overflow: hidden;
}
.department-panel .after-jamb-popover .home-school-options {
  min-height: 120px;
  max-height: calc(100dvh - 330px);
  padding-bottom: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  .department-panel .department-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 5%;
  }
  .department-panel .department-filter-grid.public {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 5%;
  }
  .department-panel .department-filter-grid.public .after-jamb-picker-grid {
    display: contents;
  }
  .department-panel .department-filter-grid .department-school-picker {
    grid-column: 1 / -1;
  }
  .department-panel .department-filter-grid.public .after-jamb-picker,
  .department-panel .department-filter-grid.public .department-filter-step {
    min-width: 0;
  }
  .department-panel .after-jamb-popover {
    max-height: min(78vh, calc(100dvh - 150px));
  }
  .department-panel .after-jamb-popover .home-school-options,
  .department-panel .after-jamb-popover .after-jamb-course-options {
    max-height: min(70vh, calc(100dvh - 240px));
  }
}
@media (max-width: 600px) {
  .department-panel {
    padding-bottom: 112px;
  }
  .department-panel .after-jamb-popover {
    max-height: calc(100dvh - 210px);
  }
  .department-panel .after-jamb-popover .home-school-options {
    max-height: calc(100dvh - 310px);
  }
}
.after-jamb-popover {
  max-height: min(72vh, calc(100dvh - 180px));
  overflow: hidden;
  overscroll-behavior: contain;
}
.after-jamb-popover .home-school-search {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbef;
}
.after-jamb-popover .home-school-options,
.after-jamb-popover .after-jamb-course-options {
  min-height: 180px;
  max-height: min(64vh, calc(100dvh - 270px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
}
.department-panel .after-jamb-popover {
  max-height: min(72vh, calc(100dvh - 210px));
}
.department-panel .after-jamb-popover .home-school-options,
.department-panel .after-jamb-popover .after-jamb-course-options {
  max-height: min(64vh, calc(100dvh - 300px));
}

/* Dropdown surfaces stay opaque so expanded options never reveal page content behind them. */
.after-jamb-popover,
.home-filter-panel,
.home-school-options,
.live-school-drawer,
.live-school-list,
.after-school-list,
.chat-public-school-options,
.campus-news-controls select,
.live-school-drawer select,
.department-panel select,
.market-toolbar select,
.market-filter-grid select,
.roommates-filter-drawer select,
.learn-filter-drawer select,
.jobs-filter-drawer select,
.events-filter-drawer select,
.pq-filter-drawer select,
.chat-group-filters select,
.profile-settings-group select {
  background-color: #ffffff;
  opacity: 1;
  backdrop-filter: none;
}

.after-jamb-popover,
.home-filter-panel,
.live-school-drawer,
.chat-public-school-options {
  background: #ffffff;
}

/* The After-JAMB picker is layered over the form; keep its complete rectangle solid. */
.after-jamb-picker {
  position: relative;
  z-index: 120;
}

.after-jamb-popover {
  z-index: 240 !important;
  isolation: isolate;
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

.after-jamb-popover .home-school-search,
.after-jamb-popover .home-school-options,
.after-jamb-popover .after-jamb-course-options {
  background: #ffffff !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  backdrop-filter: none !important;
}

/* Institution names may span multiple lines without clipping their option row. */
.home-school-options button,
.after-jamb-popover .after-school-list button {
  height: auto;
  min-height: calc(72px * 1.15);
  box-sizing: border-box;
  align-items: center;
  padding: 3px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.home-school-options button > span:nth-child(2),
.home-school-options button strong,
.home-school-options button em,
.after-jamb-popover .after-school-list button > span:nth-child(2),
.after-jamb-popover .after-school-list button strong,
.after-jamb-popover .after-school-list button em {
  min-width: 0;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: normal;
  text-overflow: clip;
  line-height: 1.4;
}

option {
  background-color: #ffffff;
  color: var(--green-deep);
}

/* Show more After-JAMB schools while keeping the expanded list viewport-safe. */
.after-jamb-popover .after-school-list {
  max-height: min(115.2vh, calc(100dvh - 220px));
  overflow-y: auto;
  background: #ffffff !important;
}

@media (max-width: 600px) {
  .after-jamb-popover {
    max-height: calc(100dvh - 150px);
  }
  .after-jamb-popover .home-school-options,
  .after-jamb-popover .after-jamb-course-options {
    max-height: calc(100dvh - 245px);
    min-height: 200px;
  }
  .department-panel .after-jamb-popover {
    max-height: calc(100dvh - 190px);
  }
  .department-panel .after-jamb-popover .home-school-options,
  .department-panel .after-jamb-popover .after-jamb-course-options {
    max-height: calc(100dvh - 290px);
  }
}
.after-jamb-picker-button.is-collapsed {
  min-height: 34px;
  padding-block: 6px;
  border-color: rgba(13, 90, 66, 0.08);
  background: rgba(234, 246, 216, 0.6);
}
.after-jamb-picker-button.is-collapsed span {
  font-size: 0.68rem;
}
.after-jamb-picker-button.is-collapsed strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.campus-feature-card.tone-mint { background: #b9dfa4; background-image: none; }
.campus-feature-card.tone-sky { background: #b7d7ee; background-image: none; }
.campus-feature-card.tone-lemon { background: #e3e889; background-image: none; }
.campus-feature-card.tone-rose { background: #efb9ad; background-image: none; }
.campus-feature-card.tone-green { background: #a7d1b5; background-image: none; }
.campus-feature-card.tone-gold { background: #e6c66d; background-image: none; }
.campus-feature-card:hover,
.campus-feature-card:focus-visible {
  box-shadow: 0 14px 30px rgba(16, 40, 30, 0.14);
}
/* Roommates workspace navigation and inbox surfaces */
.rm-main-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.rm-entry-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 18px; }
.rm-entry-card { display: grid; gap: 8px; min-height: 132px; padding: 22px; border: 1px solid rgba(7, 85, 63, .16); border-radius: 14px; text-align: left; color: #073f30; box-shadow: 0 8px 22px rgba(7, 85, 63, .08); }
.rm-entry-card span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .62); }
.rm-entry-card strong { font-size: 1.05rem; }
.rm-entry-card small { color: rgba(7, 63, 48, .78); }
.rm-entry-card--search { background: #fff; }
.rm-entry-card--post { background: #fff; }
.rm-entry-card.is-selected { background: #e4f4d8; border-color: #b7dca7; }
.rm-white-panel { padding: 22px; border: 1px solid rgba(7, 85, 63, .12); border-radius: 16px; background: rgba(255, 255, 255, .94); }
.rm-filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 20px; }
.rm-post-form { margin-top: 8px; }
.rm-form-description { margin: -6px 0 4px; color: rgba(7, 63, 48, .72); }
.rm-form-grid, .rm-post-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rm-info-strip { grid-column: 1 / -1; padding: 12px 14px; border: 1px solid rgba(7, 85, 63, .12); border-radius: 10px; background: #edf8ec; color: #07553f; }
.rm-post-form { max-width: 760px; margin-inline: auto; padding: 24px; border: 1px solid rgba(7, 85, 63, .12); border-radius: 16px; background: rgba(255, 255, 255, .9); }
.rm-main-tabs .rm-category-tab {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(7, 85, 63, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  color: #07553f;
  font-weight: 700;
}
.rm-main-tabs .rm-category-tab.is-active { background: #07553f; color: #fff; border-color: #07553f; }
.rm-main-tabs .rm-category-tab:hover:not(.is-active),
.rm-main-tabs .rm-category-tab:focus-visible:not(.is-active) {
  background: #f7fbdc;
  color: #07553f;
}
.rm-photo-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.rm-photo-slot { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px dashed rgba(7, 85, 63, .24); border-radius: 12px; background: rgba(247, 252, 246, .8); }
.rm-photo-slot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #07553f; }
.rm-photo-slot-head span { color: rgba(7, 63, 48, .62); font-size: .72rem; }
.rm-photo-slot-head .rm-photo-selected { color: #176b42; font-weight: 700; }
.rm-photo-picker { display: grid; min-height: 42px; place-items: center; padding: 8px 12px; border: 1px solid rgba(7, 85, 63, .26); border-radius: 9px; background: #fff; color: #07553f; cursor: pointer; font-weight: 700; text-align: center; }
.rm-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rm-photo-picker:hover, .rm-photo-picker:focus-within { border-color: #07553f; background: #f0faed; }
.rm-photo-preview { width: 100%; aspect-ratio: 16 / 9; border-radius: 9px; object-fit: cover; border: 1px solid rgba(7, 85, 63, .14); }
.rm-photo-existing { display: grid; min-height: 52px; place-items: center; border-radius: 9px; background: #eaf5e8; color: #07553f; font-size: .78rem; }
.rm-photo-remove { justify-self: start; padding: 4px 8px; border: 0; background: transparent; color: #07553f; cursor: pointer; font-size: .78rem; text-decoration: underline; }
.rm-photo-help { display: block; margin-top: 7px; color: rgba(7, 63, 48, .68); }
.rm-field-label { display: block; margin-bottom: 7px; color: #07553f; font-weight: 700; }
.rm-panel { display: grid; gap: 18px; }
.rm-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rm-interest { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid rgba(7, 85, 63, .14); border-radius: 12px; background: rgba(255, 255, 255, .82); }
.rm-interest-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) {
  .rm-entry-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .rm-entry-card { min-height: 112px; padding: 14px 12px; gap: 6px; }
  .rm-entry-card strong { font-size: .92rem; }
  .rm-entry-card small { font-size: .74rem; line-height: 1.25; }
  .rm-unified .rm-main-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .rm-unified .rm-main-tabs .rm-category-tab {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: .82rem;
    line-height: 1.2;
    white-space: normal;
  }
  .rm-section-head { align-items: flex-start; flex-direction: column; }
  .rm-section-head > .lc-button { width: 100%; }
  .rm-interest { align-items: flex-start; flex-direction: column; }
  .rm-interest-actions { justify-content: flex-start; }
  .rm-form-grid, .rm-post-details { grid-template-columns: 1fr; }
  .rm-photo-slots { grid-template-columns: 1fr; }
  .rm-post-form { padding: 18px; }
  .rm-filter-row { grid-template-columns: 1fr; }
  .rm-white-panel { padding: 16px; }
}
.rm-unified .rm-interest-notifications {
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #d9eadc;
  border-radius: 14px;
  background: #f5fbf2;
}
.rm-unified .rm-interest-notifications-head,
.rm-unified .rm-interest-notification {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rm-unified .rm-interest-notifications-head { margin-bottom: 8px; }
.rm-unified .rm-interest-notifications-head h3 { margin: 0; }
.rm-unified .rm-interest-notifications-head span { color: #0d5a43; font-size: .85em; }
.rm-unified .rm-interest-notification { padding: 10px 0; border-top: 1px solid #d9eadc; }
.rm-unified .rm-interest-notification strong { color: #0d5a43; }
.rm-unified .rm-interest-notification p { margin: 3px 0 0; }
.rm-unified .rm-interest-notification .lc-button { min-height: 34px; white-space: nowrap; }

/* Final colors for the visible Roommates entry buttons. */
.rm-entry-card.rm-entry-card--search,
.rm-entry-card.rm-entry-card--search.is-selected {
  background: #064c3f;
  color: #ffffff;
  justify-items: center;
  text-align: center;
}
.rm-entry-card.rm-entry-card--post,
.rm-entry-card.rm-entry-card--post.is-selected {
  background: #bbc600;
  color: #172b20;
  justify-items: center;
  text-align: center;
}
.rm-entry-card.rm-entry-card--search > span { background: transparent; color: #bbc600; }
.rm-entry-card.rm-entry-card--post > span { background: #172b20; color: #bbc600; }
.rm-entry-card.rm-entry-card--search small { color: rgba(255, 255, 255, 0.84); }
.rm-entry-card.rm-entry-card--post small { color: rgba(23, 43, 32, 0.8); }

/* Campus Menu feature buttons alternate solid LemonCampus surfaces. */
.campus-feature-grid > .campus-feature-card:nth-child(odd) {
  background: #064c3f;
  color: #ffffff;
}
.campus-feature-grid > .campus-feature-card:nth-child(even) {
  background: #bbc600;
  color: #172b20;
}
.campus-feature-grid > .campus-feature-card:nth-child(odd) .campus-feature-icon {
  background: #064c3f;
  color: #ffffff;
  border-color: #ffffff;
}
.campus-feature-grid > .campus-feature-card:nth-child(even) .campus-feature-icon {
  background: #172b20;
  color: #bbc600;
  border-color: #172b20;
}
.campus-feature-grid > .campus-feature-card:hover,
.campus-feature-grid > .campus-feature-card:focus-visible {
  background: #064c3f;
  color: #ffffff;
}
.campus-feature-grid > .campus-feature-card:nth-child(even):hover,
.campus-feature-grid > .campus-feature-card:nth-child(even):focus-visible {
  background: #bbc600;
  color: #172b20;
}

.campus-feature-grid > .campus-feature-card {
  font-weight: 900;
}
.campus-feature-grid > .campus-feature-card > span:last-child {
  font-weight: 900;
}

/* Keep LIVE controls compact without shrinking the content cards. */
.live-page .live-tabs button,
.live-page .live-category-row button,
.live-page .live-school-bar button,
.live-page .live-action-row .lc-button,
.live-page .live-form-actions .lc-button,
.live-page .live-camera-switch,
.live-page .live-floating-camera {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.74rem;
  line-height: 1.15;
}
.live-page .live-tabs button { border-radius: 12px; }
.live-page .live-category-row button { border-radius: 999px; }

.live-page .live-school-bar {
  flex-direction: row;
  align-items: center;
}
.live-page .live-school-bar div:first-child {
  gap: 0;
}
.live-page .live-school-bar > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 1 auto;
  gap: 6px;
  min-width: 0;
}
.live-page .live-school-bar button {
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.live-page .live-school-bar button svg,
.live-page .live-tabs button svg,
.live-page .live-category-row button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

@media (max-width: 520px) {
  .live-page .live-school-bar {
    gap: 8px;
  }
  .live-page .live-school-bar > div:last-child {
    flex: 1 1 58%;
  }
  .live-page .live-school-bar button {
    padding-inline: 4px;
    font-size: 12px;
  }
}
/* Keep Department and After-JAMB picker panels above adjacent form controls. */
.department-panel .after-jamb-picker,
.department-panel .after-jamb-popover,
.after-jamb-page .after-jamb-picker,
.after-jamb-page .after-jamb-popover {
  position: relative;
  z-index: 1000;
}

.department-panel .after-jamb-popover,
.after-jamb-page .after-jamb-popover {
  isolation: isolate;
}
/* AFTER-JAMB: responsive centered layout */
.after-jamb-page {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.after-jamb-page > .campus-billboard-title {
  position: static;
  inset: auto;
  transform: none;
  animation: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 10px 16px;
  text-align: center;
  white-space: normal;
  font-size: clamp(1.3rem, 7vw, 3rem);
  line-height: 1.2;
}

.after-jamb-page > .campus-billboard-title > span {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.25em;
  position: static;
  inset: auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  transform: none;
  animation: none;
  text-align: center;
  white-space: normal;
}

.after-jamb-page .campus-billboard-word {
  display: inline;
  position: static;
  inset: auto;
  margin: 0;
  padding: 0;
  transform: none;
  animation: none;
  white-space: normal;
}

.after-jamb-page > .after-jamb-simple-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 8px 16px 12px;
  gap: 6px;
  text-align: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.after-jamb-page > .after-jamb-simple-hero > h1,
.after-jamb-page > .after-jamb-simple-hero > p {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  margin-inline: auto;
  text-align: center;
}

.after-jamb-page > .after-jamb-simple-hero > h1 {
  align-self: stretch;
  font-size: 1.22rem;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.after-jamb-page > .after-jamb-heading {
  width: 100%;
  margin: 0 auto;
  padding: 8px 16px;
  box-sizing: border-box;
  color: var(--green-deep);
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.after-jamb-page > .after-jamb-intro {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.after-jamb-page > .after-jamb-intro > .after-jamb-heading {
  display: block;
  align-self: stretch;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0 auto;
  text-align: center;
}

.after-jamb-page > .after-jamb-intro > p {
  width: 100%;
  margin: 4px auto 10px;
  padding: 0 16px;
  box-sizing: border-box;
  color: rgba(7, 56, 44, 0.68);
  text-align: center;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .after-jamb-page > .campus-billboard-title {
    padding: 10px 12px;
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .after-jamb-page > .after-jamb-simple-hero {
    padding: 8px 12px 12px;
  }
}

/* After-JAMB institution type picker: use the available screen width. */
.after-jamb-page > .after-jamb-filter-drawer {
  position: relative;
  overflow: visible;
  z-index: 2000;
}

.after-jamb-page > .campus-ad-stage {
  position: relative;
  z-index: 1;
}

.after-jamb-page > .after-jamb-filter-drawer .after-jamb-picker:first-child {
  position: relative;
  z-index: 1101;
}

.after-jamb-page > .after-jamb-filter-drawer .after-jamb-picker:first-child .after-jamb-popover {
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  width: min(90vw, 620px);
  max-width: calc(100vw - 32px);
  min-width: 0;
  box-sizing: border-box;
  transform: none;
  z-index: 1100;
}

.after-jamb-page > .after-jamb-filter-drawer .after-jamb-picker:first-child .after-school-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.after-jamb-page > .after-jamb-filter-drawer .after-jamb-picker:first-child .after-school-types button {
  min-width: 0;
  width: 100%;
  min-height: 68px;
  padding: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .after-jamb-page > .after-jamb-filter-drawer .after-jamb-picker:first-child .after-school-types {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Campus Billboard and advert section container outlines. */
:is(.campus-hub, .after-jamb-page) > .campus-billboard-title,
:is(.campus-hub, .after-jamb-page) > .campus-billboard-title span,
:is(.campus-hub, .after-jamb-page) > .campus-ad-stage,
:is(.campus-hub, .after-jamb-page) > .campus-ad-stage div,
:is(.campus-hub, .after-jamb-page) > .campus-ad-stage span {
  border: 1px solid rgba(7, 56, 44, 0.24);
  box-sizing: border-box;
}

.after-jamb-page > .after-jamb-heading {
  display: block;
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.campus-hub > .campus-billboard-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.campus-hub > .campus-billboard-title > span {
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.22em;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Restore the Billboard marquee and remove its outline. */
:is(.campus-hub, .after-jamb-page) > .campus-billboard-title {
  border: none;
  overflow: hidden;
}

:is(.campus-hub, .after-jamb-page) > .campus-billboard-title span {
  border: none;
}

:is(.campus-hub, .after-jamb-page) > .campus-billboard-title > span {
  animation: campusBillboardMarquee 2.25s ease-in-out infinite alternate;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  :is(.campus-hub, .after-jamb-page) > .campus-billboard-title > span {
    animation: none;
  }
}
.study-file-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.study-file-links a {
  color: #064c3f;
  font: 600 13px Arial, sans-serif;
  overflow-wrap: anywhere;
}

/* Group conversation headers use the group palette; direct headers stay unchanged. */
.chat-screen .chat-thread-head.is-group {
  background: #083F32;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.chat-screen.chat-wallpaper-0 { background: #f3f8f1; }
.chat-screen.chat-wallpaper-1 { background: #f7f4e9; }
.chat-screen.chat-wallpaper-2 { background: #eef7f5; }
.chat-screen.chat-wallpaper-3 { background: #f4f1f8; }

.chat-screen.is-group-chat .chat-thread,
.chat-screen.is-group-chat .chat-access-note,
.chat-screen.is-group-chat .chat-group-member-names {
  position: relative;
  z-index: 1;
}

.chat-screen .chat-group-member-names {
  margin: 0;
  padding: 2px 8px;
  overflow-wrap: anywhere;
  color: #345f47;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.35;
}

.chat-screen .chat-group-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  pointer-events: none;
  opacity: 0.14;
}

.chat-screen .chat-group-pattern span,
.chat-screen .chat-group-pattern img {
  width: 24px;
  height: 24px;
  color: #D4F45A;
}

.chat-screen .chat-group-pattern img {
  object-fit: contain;
}

.chat-screen .chat-thread-head.is-group > :not(.chat-group-pattern) {
  z-index: 1;
}

.chat-screen .chat-thread-head.is-group > div {
  flex: 1 1 0;
  min-width: 0;
}

.chat-screen .chat-thread-head.is-group {
  gap: 12px;
}

.chat-screen .chat-thread-head.is-group .chat-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  margin: 4px 6px 4px 4px;
  border: 1px solid rgba(212, 244, 90, 0.68);
  color: #D4F45A;
  font-size: 1rem;
}

.chat-screen .chat-group-menu {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-left: auto;
}

.chat-screen .chat-group-menu summary {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  cursor: pointer;
  list-style: none;
  color: #D4F45A;
  border: 1px solid rgba(212, 244, 90, 0.7);
  border-radius: 8px;
}

.chat-screen .chat-group-menu summary::-webkit-details-marker {
  display: none;
}

.chat-screen .chat-group-menu summary svg {
  width: 18px;
  height: 18px;
}

.chat-screen .chat-group-menu > div {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 132px;
  padding: 6px;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.chat-screen .chat-group-menu .chat-members-list {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.chat-screen .chat-group-menu .chat-members-list summary {
  width: auto;
  height: auto;
  padding: 7px 4px;
  border: 0;
  border-radius: 7px;
  color: #083F32;
  font-size: 0.76rem;
  font-weight: 400;
  text-align: left;
}

.chat-screen .chat-group-menu .chat-members-list > div {
  position: static;
  min-width: 0;
  padding: 0 4px 4px;
  border: 0;
  box-shadow: none;
}

.chat-screen .chat-group-menu button {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #083F32;
  font-size: 0.76rem;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.chat-screen .chat-group-menu button:hover,
.chat-screen .chat-group-menu button:focus-visible {
  background: #083F32;
  color: #ffffff;
}

.chat-screen .chat-members-list {
  flex: 0 0 auto;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}

.chat-screen .chat-members-list summary {
  cursor: pointer;
  padding: 9px 12px;
  color: #083F32;
  font-size: 0.76rem;
  font-weight: 400;
  list-style-position: inside;
}

.chat-screen .chat-members-list > div {
  display: grid;
  gap: 2px;
  padding: 0 12px 10px;
}

.chat-screen .chat-member-link {
  width: 100%;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #083F32;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
}

.chat-screen .chat-member-link:hover,
.chat-screen .chat-member-link:focus-visible {
  color: #557d00;
  text-decoration: none;
}

.chat-screen .chat-members-empty {
  color: #63766d;
  font-size: 0.76rem;
}

.chat-screen .chat-sticky-back button {
  color: #083F32;
}

.chat-screen .chat-sticky-back button:hover,
.chat-screen .chat-sticky-back button:focus-visible {
  background: #083F32;
  color: #ffffff;
}

.chat-screen .chat-sticky-back button:hover svg,
.chat-screen .chat-sticky-back button:focus-visible svg {
  color: #ffffff;
}

.chat-screen .chat-thread-head.is-group h1 {
  color: #D4F45A;
}

.chat-screen .chat-thread-head.is-group .chat-group-header-details,
.chat-screen .chat-thread-head.is-group .chat-group-header-details span {
  color: #ffffff;
}

.chat-screen .chat-group-info {
  background: #083F32;
  color: #ffffff;
}

.chat-screen .chat-group-info h2 {
  color: #D4F45A;
}

.chat-screen .chat-group-info p,
.chat-screen .chat-group-info dt,
.chat-screen .chat-group-info dd {
  color: #ffffff;
}

.chat-screen .chat-group-info dl div {
  background: #0b5746;
}
.lc-order-chat .market-chat-header {
  margin: calc(-1 * max(8px, env(safe-area-inset-top))) -12px 8px;
  padding: max(8px, env(safe-area-inset-top)) 12px 10px;
  background: #083f32;
  border-bottom: 0;
  color: #fff;
}
.lc-order-chat .market-chat-header h2 { color: #d4f45a; }
.lc-order-chat .market-chat-header p { color: #fff; }
.market-group-info { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.market-group-info > div { min-width: 0; }
.market-group-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(212,244,90,.45); border-radius: 50%; color: #d4f45a; font-weight: 800; }
.lc-order-chat .lc-order-composer-row { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr) 42px; gap: 6px; align-items: end; width: 100%; min-width: 0; }
.lc-order-chat .lc-order-composer-row > button { display: grid; width: 42px; height: 42px; min-width: 42px; place-items: center; padding: 0; border: 0; border-radius: 8px; background: #083f32; color: #d4f45a; cursor: pointer; }
.lc-order-chat .lc-order-composer-row > button:disabled { cursor: not-allowed; opacity: .55; }
.lc-order-chat .lc-order-composer-row > button svg { width: 17px; height: 17px; }
.lc-order-chat .lc-order-composer-row textarea { width: 100%; min-width: 0; min-height: 56px; max-height: 160px; box-sizing: border-box; resize: none; overflow-y: auto; }
.market-voice-preview { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 0; }
.market-voice-preview[hidden] { display: none; }
.market-voice-preview audio { min-width: 0; width: 100%; height: 32px; }
.market-voice-preview button { flex: 0 0 auto; border: 0; background: transparent; color: #07553f; cursor: pointer; }

/* Keep the mobile Home controls in one row without the duplicate LC badge. */
@media (max-width: 640px) {
  .home-feed-header {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 6px;
  }

  .home-brand-mini { display: none; }
  .home-school-select,
  .home-campus-pill { grid-column: auto; grid-row: auto; }
  .home-school-select { justify-content: flex-start; min-width: 0; }
  .home-header-actions { display: contents; }
  .home-header-actions button {
    min-width: 36px;
    min-height: 36px;
    padding-inline: 6px;
  }
}

/* Keep the Campus menu compact without changing its grid or tile styling. */
.campus-feature-grid > .campus-feature-card { min-height: 86px; }

@media (max-width: 640px) {
  .campus-feature-grid > .campus-feature-card { min-height: 77px; }
}

@media (max-width: 340px) {
  .campus-feature-grid > .campus-feature-card { min-height: 77px; }
}
