:root {
  --ink: #17394b;
  --muted: #617784;
  --lake: #207b91;
  --lake-dark: #145970;
  --aqua: #54bdb4;
  --coral: #ef7d61;
  --gold: #f2b84c;
  --green: #69a878;
  --sand: #f7f1e5;
  --cream: #fffdf8;
  --white: #fff;
  --line: rgba(23,57,75,.12);
  --shadow: 0 24px 70px rgba(23,57,75,.14);
  --soft-shadow: 0 12px 34px rgba(23,57,75,.09);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7f7;
  color: var(--ink);
  font-family: "DM Sans",sans-serif;
  line-height: 1.5;
}

button,input,select,textarea {
  font: inherit;
}

button {
  color: inherit;
}

h1,h2,h3,h4 {
  font-family: "Nunito",sans-serif;
  line-height: 1.05;
  margin-top: 0;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lake);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.logo-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 50%;
  background: #dff3f0;
  flex: 0 0 auto;
}

.logo-mark i {
  width: 16px;
  height: 16px;
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.logo-mark b {
  width: 58px;
  height: 25px;
  position: absolute;
  left: -7px;
  bottom: -5px;
  border-radius: 50% 50% 0 0;
  background: var(--lake);
  transform: rotate(-7deg);
}

.primary-button,.secondary-button,.light-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button {
  color: white;
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(239,125,97,.24);
}

.secondary-button {
  background: white;
  border: 1px solid var(--line);
}

.light-button {
  color: var(--lake);
  background: white;
}

.full {
  width: 100%;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

.auth-art {
  padding: 58px;
  position: relative;
  overflow: hidden;
  color: white;
  background: radial-gradient(circle at 80% 15%,rgba(255,255,255,.14),transparent 20%),linear-gradient(150deg,#143a4d,#207b91 68%,#54bdb4);
}

.auth-art:after {
  content: "";
  width: 720px;
  height: 260px;
  position: absolute;
  left: -100px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand span:last-child {
  display: flex;
  flex-direction: column;
}

.auth-brand strong {
  font-family: "Nunito";
  font-size: 1.2rem;
}

.auth-brand small {
  color: rgba(255,255,255,.65);
}

.auth-copy {
  max-width: 720px;
  margin-top: 18vh;
  position: relative;
  z-index: 1;
}

.auth-copy .eyebrow {
  color: #8be1d6;
}

.auth-copy h1 {
  font-size: clamp(3.3rem,6vw,6rem);
  letter-spacing: -.055em;
  margin-bottom: 22px;
}

.auth-copy p {
  max-width: 620px;
  color: rgba(255,255,255,.72);
  font-size: 1.08rem;
  padding-bottom: 20px;
}

.district-mini {
  position: absolute;
  left: 58px;
  bottom: 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  z-index: 2;
}

.district-mini span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  font-size: .75rem;
  font-weight: 800;
}

.auth-panel {
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--cream);
}

.auth-card {
  width: min(100%,520px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 28px;
  padding: 5px;
  border-radius: 14px;
  background: #eff4f4;
}

.auth-tab {
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 800;
}

.auth-tab.is-active {
  background: white;
  box-shadow: var(--soft-shadow);
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: block;
}

.auth-view h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.demo-user {
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  text-align: left;
}

.demo-user.is-selected {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(84,189,180,.16);
}

.demo-user span:last-child {
  display: flex;
  flex-direction: column;
}

.demo-user small {
  color: var(--muted);
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--lake);
  font-size: .75rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.avatar--coral {
  background: var(--coral);
}

.avatar--aqua {
  background: var(--aqua);
}

.avatar--green {
  background: var(--green);
}

.avatar--gold {
  background: var(--gold);
}

.avatar--large {
  width: 72px;
  height: 72px;
  font-size: 1rem;
}

.auth-view label,.composer-card label,.admin-grid label {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-size: .78rem;
  font-weight: 800;
}

.auth-view input,.auth-view select,.composer-card input,.composer-card select,.composer-card textarea,.admin-grid select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fbfdfd;
}

.auth-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-interests button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: .74rem;
}

.auth-interests button.is-selected {
  background: #e6f5f2;
  border-color: var(--aqua);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.sidebar {
  height: 100vh;
  padding: 22px 15px;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  color: white;
  background: #12384a;
}

.side-brand {
  padding: 3px 7px 26px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.side-brand>span:last-child {
  display: flex;
  flex-direction: column;
}

.side-brand strong {
  font-family: "Nunito";
  font-size: 1.05rem;
}

.side-brand small {
  color: rgba(255,255,255,.55);
  font-size: .67rem;
}

.side-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 11px;
  color: rgba(255,255,255,.65);
  background: transparent;
  text-align: left;
  font-weight: 700;
}

.nav-item:hover,.nav-item.is-active {
  color: white;
  background: rgba(255,255,255,.1);
}

.nav-item span {
  width: 19px;
  text-align: center;
}

.nav-item em {
  margin-left: auto;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-style: normal;
  font-size: .64rem;
}

.side-actions {
  margin-top: auto;
}

.new-post-button {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  color: white;
  background: var(--coral);
  font-weight: 900;
}

.profile-card {
  margin-top: 13px;
  padding: 10px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 14px;
  color: white;
  background: rgba(255,255,255,.08);
  text-align: left;
}

.profile-card span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.profile-card small {
  color: rgba(255,255,255,.55);
}

.main-area {
  min-width: 0;
  padding: 0 34px 70px;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: .74rem;
}

.topbar h2 {
  margin: 4px 0 0;
  font-size: 1.45rem;
}

.top-actions {
  display: flex;
  gap: 9px;
}

.search-button,.profile-bubble,.mobile-menu {
  border: 1px solid var(--line);
  background: white;
}

.search-button {
  padding: 10px 14px;
  border-radius: 999px;
}

.profile-bubble {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--lake);
  font-weight: 900;
}

.mobile-menu {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.page {
  display: none;
  max-width: 1450px;
  margin: 0 auto;
}

.page.is-active {
  display: block;
}

.hero-banner {
  min-height: 255px;
  padding: 40px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-radius: 28px;
  color: white;
  background: radial-gradient(circle at 88% 12%,rgba(255,255,255,.17),transparent 24%),linear-gradient(135deg,#207b91,#145970);
  box-shadow: var(--soft-shadow);
}

.hero-banner .eyebrow {
  color: #84ddd5;
}

.hero-banner h1 {
  margin-bottom: 10px;
  font-size: clamp(2.5rem,5vw,4.4rem);
  letter-spacing: -.045em;
}

.hero-banner p:not(.eyebrow) {
  max-width: 650px;
  margin: 0;
  color: rgba(255,255,255,.7);
}

.home-columns {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.home-column,.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 8px 24px rgba(23,57,75,.05);
}

.section-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}

.section-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.section-title button,.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--lake);
  font-weight: 800;
}

.feed-card {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.feed-card:first-child {
  border-top: 0;
}

.feed-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.feed-head strong,.feed-head small {
  display: block;
}

.feed-head small,.feed-time {
  color: var(--muted);
  font-size: .68rem;
}

.scope-pill {
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5f4;
  color: var(--lake-dark);
  font-size: .61rem;
  font-weight: 900;
}

.feed-card h4 {
  margin: 13px 0 6px;
  font-size: 1.02rem;
}

.feed-card p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.feed-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.feed-actions button {
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  background: #f0f4f4;
  font-size: .69rem;
  font-weight: 800;
}

.home-bottom-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 18px;
}

.mini-event {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.mini-event:first-child {
  border-top: 0;
}

.date-box {
  width: 45px;
  height: 50px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 11px;
  background: var(--sand);
}

.date-box strong,.date-box small {
  line-height: 1;
}

.date-box small {
  margin-top: 3px;
  color: var(--coral);
  font-size: .57rem;
  font-weight: 900;
}

.mini-event p {
  margin: 0;
}

.mini-event small {
  color: var(--muted);
}

.passport-mini-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-ring {
  width: 105px;
  height: 105px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 60%,#e8eeee 60%);
}

.progress-ring:after {
  content: "";
  width: 78px;
  height: 78px;
  position: absolute;
  border-radius: 50%;
  background: white;
}

.progress-ring span {
  position: relative;
  z-index: 1;
  font-weight: 900;
}

.page-heading {
  margin: 12px 0 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.page-heading>div {
  max-width: 800px;
}

.page-heading h1 {
  font-size: clamp(2.7rem,5vw,4.7rem);
  letter-spacing: -.05em;
  margin-bottom: 10px;
}

.page-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 330px;
  gap: 18px;
}

.scope-tabs,.event-filters {
  margin-bottom: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scope-tabs button,.event-filters button {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-size: .73rem;
  font-weight: 800;
}

.scope-tabs button.is-active,.event-filters button.is-active {
  color: white;
  background: var(--lake);
  border-color: var(--lake);
}

.chat-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.mini-chat {
  max-height: 315px;
  overflow: auto;
}

.chat-message {
  padding: 10px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.chat-message:first-child {
  border-top: 0;
}

.chat-message p {
  margin: 2px 0;
  font-size: .78rem;
}

.chat-message small {
  color: var(--muted);
  font-size: .64rem;
}

.mini-chat-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.mini-chat-form input {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mini-chat-form button {
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--lake);
  font-weight: 800;
}

.stat-row {
  padding: 11px 0;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.places-panel {
  display: grid;
  gap: 8px;
}

.places-panel button {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfd;
  text-align: left;
  font-weight: 800;
}

.events-grid,.groups-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.event-card,.group-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: var(--soft-shadow);
}

.event-art {
  height: 145px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg,#dff2f1,#b9e0dc);
}

.event-art[data-place*="Avenue"] {
  background: linear-gradient(135deg,#f4dfca,#e8b98f);
}

.event-art[data-place*="Lakeside"] {
  background: linear-gradient(135deg,#cbeef0,#62aabe);
}

.event-art[data-place*="Dog"] {
  background: linear-gradient(135deg,#e7e3f7,#bbb1e8);
}

.event-art span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  font-size: .65rem;
  font-weight: 900;
}

.event-body,.group-card {
  padding: 20px;
}

.event-body h3,.group-card h3 {
  margin-bottom: 8px;
}

.event-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: .78rem;
}

.event-footer {
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attendees {
  display: flex;
}

.attendees span {
  width: 29px;
  height: 29px;
  margin-left: -6px;
  display: grid;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  background: var(--lake);
  font-size: .55rem;
  font-weight: 900;
}

.rsvp-button {
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--coral);
  background: rgba(239,125,97,.1);
  font-weight: 900;
}

.rsvp-button.is-going {
  color: white;
  background: var(--green);
}

.group-card {
  min-height: 225px;
  display: flex;
  flex-direction: column;
}

.group-icon {
  font-size: 2.2rem;
}

.group-card p {
  color: var(--muted);
  font-size: .84rem;
}

.group-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.join-group {
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  color: var(--lake);
  background: #edf5f4;
  font-weight: 900;
}

.join-group.is-joined {
  color: white;
  background: var(--lake);
}

.passport-hero {
  padding: 35px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
  border-radius: 28px;
  color: white;
  background: linear-gradient(140deg,#14394c,#207b91);
}

.passport-hero .eyebrow {
  color: #84ddd5;
}

.passport-hero h1 {
  font-size: clamp(3rem,5vw,5rem);
  margin-bottom: 12px;
}

.passport-hero p:not(.eyebrow) {
  color: rgba(255,255,255,.68);
}

.passport-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 22px;
  background: rgba(255,255,255,.09);
}

.passport-seal {
  width: 52px;
  height: 52px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  font-weight: 900;
}

.passport-card small {
  letter-spacing: .12em;
}

.passport-card h2 {
  margin: 8px 0 3px;
}

.passport-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
}

.passport-layout aside {
  display: grid;
  gap: 18px;
}

.level-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(105,168,120,.12);
  font-size: .67rem;
  font-weight: 900;
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.stamp {
  min-height: 160px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  border: 2px dashed #cbd6d8;
  border-radius: 17px;
  opacity: .53;
}

.stamp.is-earned {
  border-style: solid;
  border-color: rgba(105,168,120,.38);
  background: rgba(105,168,120,.08);
  opacity: 1;
}

.stamp span {
  font-size: 2rem;
}

.stamp strong {
  margin-top: 7px;
}

.stamp small {
  color: var(--muted);
}

.reward-progress {
  height: 9px;
  margin: 18px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecec;
}

.reward-progress i {
  height: 100%;
  display: block;
  background: var(--coral);
}

.offer-list {
  display: grid;
}

.offer-list>div {
  padding: 11px 0;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.offer-list p,.offer-list strong,.offer-list small {
  margin: 0;
  display: block;
}

.disclaimer {
  color: var(--muted);
}

.notification-list {
  padding: 0 22px;
}

.notification-item {
  padding: 17px 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.notification-item:first-child {
  border-top: 0;
}

.notification-item.is-unread:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.notification-item:not(.is-unread):before {
  content: "";
  width: 8px;
}

.notification-item p {
  margin: 0;
}

.notification-item small {
  color: var(--muted);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
}

.admin-stats div {
  padding: 22px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
}

.admin-stats span {
  display: block;
  font-family: "Nunito";
  font-size: 2rem;
  font-weight: 900;
}

.admin-stats small {
  color: var(--muted);
}

.admin-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-row {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
}

.admin-row button {
  border: 0;
  border-radius: 8px;
  background: #edf5f4;
  color: var(--lake);
  font-weight: 800;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,32,44,.72);
  backdrop-filter: blur(7px);
}

.modal-card {
  width: min(100%,560px);
  max-height: 90vh;
  overflow: auto;
  padding: 30px;
  position: relative;
  z-index: 1;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
}

.modal-close {
  width: 38px;
  height: 38px;
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--sand);
  font-size: 1.3rem;
}

.composer-card h2 {
  font-size: 2rem;
}

.event-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.event-fields label:last-child {
  grid-column: 1/-1;
}

.profile-modal-head {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-modal-head h2,.profile-modal-head p {
  margin: 0;
}

.profile-tags {
  margin: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf5f4;
  color: var(--lake-dark);
  font-size: .7rem;
  font-weight: 800;
}

.detail-post p {
  color: var(--muted);
}

.comment-list {
  margin-top: 20px;
}

.comment {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.comment strong,.comment small {
  display: block;
}

.comment small {
  color: var(--muted);
}

.comment p {
  margin: 5px 0;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 15px;
}

.comment-form input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.comment-form button {
  border: 0;
  border-radius: 10px;
  color: white;
  background: var(--lake);
  font-weight: 800;
}

.toast {
  padding: 13px 17px;
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1200;
  border-radius: 999px;
  color: white;
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,18px);
  transition: .2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%,0);
}

@media (max-width:1050px) {
  .events-grid,.groups-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chat-layout,.passport-layout {
    grid-template-columns: 1fr;
  }

  .chat-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .passport-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width:820px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-art {
    min-height: 440px;
    padding: 32px;
  }

  .auth-copy {
    margin-top: 80px;
  }

  .district-mini {
    left: 32px;
    bottom: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 260px;
    position: fixed;
    left: -280px;
    z-index: 900;
    transition: .2s;
  }

  .sidebar.is-open {
    left: 0;
  }

  .main-area {
    padding: 0 18px 50px;
  }

  .mobile-menu {
    display: block;
  }

  .home-columns,.home-bottom-grid {
    grid-template-columns: 1fr;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stamps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(244,247,247,.93);
    backdrop-filter: blur(12px);
  }
}

@media (max-width:580px) {
  .auth-card {
    padding: 24px;
  }

  .demo-grid,.events-grid,.groups-grid,.chat-sidebar,.admin-stats,.stamps-grid {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 3.2rem;
  }

  .hero-banner,.page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-banner {
    padding: 28px;
  }

  .passport-hero {
    padding: 28px;
  }

  .passport-card {
    width: 100%;
  }

  .main-area {
    padding-inline: 12px;
  }

  .topbar h2 {
    font-size: 1.15rem;
  }

  .search-button span {
    display: none;
  }

  .event-fields {
    grid-template-columns: 1fr;
  }

  .event-fields label:last-child {
    grid-column: auto;
  }
}
