body.demo-body {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: #f7f8f5;
}

.demo-shell {
  width: min(960px, calc(100% - 32px));
  margin: 104px auto 56px;
}

.demo-shell.narrow {
  width: min(820px, calc(100% - 32px));
}

.neighbors-shell {
  width: min(920px, calc(100% - 32px));
  margin-top: 96px;
}

.demo-neighbors-header {
  margin-bottom: 28px;
}

.demo-neighbors-header h1 {
  margin: 0 0 14px;
  color: #202124;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
}

.demo-neighbors-header p {
  max-width: 880px;
  margin: 0;
  color: #202124;
  font-size: 19px;
  line-height: 1.45;
}

.demo-neighbors-header a {
  color: #00a99d;
  font-weight: 600;
  text-underline-offset: 3px;
}

.demo-logout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5f6368;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.demo-group-prompt,
.progress-container {
  margin-bottom: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(28, 28, 30, 0.1);
}

.demo-group-prompt {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 24px;
  border: 1px solid rgba(20, 184, 166, 0.42);
}

.demo-group-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e0f7f3;
  color: #00a99d;
  font-size: 26px;
}

.demo-group-copy {
  flex: 1;
  min-width: 0;
}

.demo-group-copy h2 {
  margin: 0 0 6px;
  color: #202124;
  font-size: 21px;
}

.demo-group-copy p {
  max-width: 430px;
  margin: 0;
  color: #666a73;
  font-size: 15px;
  line-height: 1.35;
}

.demo-group-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666a73;
  white-space: nowrap;
}

.demo-round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 50%;
  background: #fff;
  color: #00a99d;
  cursor: pointer;
}

.progress-container {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  color: #ff6a13;
  font-size: 16px;
  font-weight: 600;
}

.progress-count {
  color: #7b7f86;
  font-size: 14px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #f0f0f0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #14B8A6, #0F9A8A);
  transition: width 0.3s ease;
}

.progress-message {
  color: #00a99d;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.progress-message a {
  color: #008f86;
  font-weight: 700;
  text-underline-offset: 3px;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 24px;
}

.demo-tabs button {
  min-width: 154px;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 12px 26px;
  background: #eef0f3;
  color: #666a73;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: default;
}

.demo-tabs button.active {
  background: #fff;
}

.demo-neighbor-section {
  margin-top: 0;
  margin-bottom: 28px;
}

.demo-neighbor-section h2 {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dadde1;
  color: #202124;
  font-size: 23px;
}

.demo-neighbor-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(28, 28, 30, 0.08);
}

.demo-neighbor-card.scheduled {
  background: #f5fbfa;
}

.demo-card-dismiss {
  position: absolute;
  top: 14px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #8d939c;
  font-size: 18px;
  font-weight: 700;
  cursor: default;
}

.demo-neighbor-profile {
  display: flex;
  gap: 18px;
  padding: 28px 20px 16px;
}

.demo-large-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  overflow: hidden;
  border-radius: 50%;
  background: #dfeaf8;
  color: #27364a;
  font-size: 28px;
  font-weight: 800;
}

.demo-neighbor-copy {
  min-width: 0;
  padding-right: 30px;
}

.demo-neighbor-copy h3 {
  margin: 0 0 8px;
  color: #202124;
  font-size: 21px;
}

.demo-neighbor-copy h3 span {
  color: #8b9098;
  font-weight: 500;
}

.demo-neighbor-copy p {
  max-width: 760px;
  margin: 0;
  color: #666a73;
  line-height: 1.45;
}

.demo-card-label {
  margin: 18px 20px 10px;
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-goal-row,
.demo-interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 20px;
}

.demo-goal-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e5e8;
  border-radius: 999px;
  padding: 9px 14px;
  background: #f8fafb;
  color: #4b5563;
  box-shadow: 0 2px 7px rgba(28, 28, 30, 0.08);
  font-size: 15px;
}

.demo-interest-row {
  gap: 8px;
  font-size: 18px;
}

.demo-meeting-band {
  margin-top: 26px;
  padding: 24px 20px 20px;
  background: #fff1dc;
}

.demo-neighbor-card.scheduled .demo-meeting-band {
  background: transparent;
}

.demo-meeting-time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.demo-meeting-time strong {
  color: #202124;
  font-size: 28px;
  line-height: 1.1;
}

.demo-meeting-time span {
  border: 1px solid #d6dce3;
  border-radius: 999px;
  padding: 4px 10px;
  color: #9aa0a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-link-button {
  border: 0;
  background: transparent;
  color: #00a99d;
  font: inherit;
  font-size: 15px;
  cursor: default;
}

.demo-meeting-location {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #666a73;
  font-size: 16px;
}

.demo-meeting-location i,
.demo-link-button i {
  color: #14b8a6;
}

.demo-neighbor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 24px;
}

.demo-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.demo-page-header h1 {
  margin: 0 0 8px;
  color: #1c1c1e;
  font-size: 32px;
  line-height: 1.1;
}

.demo-page-header p {
  max-width: 620px;
  margin: 0;
  color: #5f6368;
  line-height: 1.55;
}

.demo-pill {
  border: 1px solid #dde4df;
  border-radius: 999px;
  padding: 8px 12px;
  color: #49615a;
  background: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.demo-section {
  margin-top: 28px;
}

.demo-section h2 {
  margin: 0 0 12px;
  color: #1c1c1e;
  font-size: 20px;
}

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

.demo-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-card {
  background: #fff;
  border: 1px solid #e8ebe7;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(28, 28, 30, 0.06);
}

.demo-card-top,
.demo-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-card-main {
  flex: 1;
  min-width: 0;
}

.demo-card h3,
.demo-activity-head h3 {
  margin: 0;
  color: #1c1c1e;
  font-size: 18px;
}

.demo-card h3 span {
  display: block;
  margin-top: 2px;
  color: #8e8e93;
  font-size: 14px;
  font-weight: 500;
}

.demo-card-main p,
.demo-activity-head p {
  margin: 4px 0 0;
  color: #7b7f86;
  font-size: 14px;
}

.demo-avatar,
.demo-chat-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: #e7f6f2;
  color: #047857;
  font-weight: 700;
}

.demo-avatar {
  width: 56px;
  height: 56px;
}

.demo-chat-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.demo-chat-header-photo {
  width: 46px;
  height: 46px;
}

.demo-avatar img,
.demo-chat-avatar img,
.demo-large-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.demo-status {
  border-radius: 999px;
  padding: 5px 10px;
  background: #eef8f5;
  color: #047857;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-bio {
  margin: 14px 0;
  color: #42464d;
  line-height: 1.55;
}

.demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f2f4f7;
  color: #4b5563;
  font-size: 13px;
}

.demo-meeting,
.demo-attendees,
.demo-invited {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #5f6368;
  font-size: 14px;
  margin-top: 10px;
}

.demo-invited {
  color: #047857;
  font-weight: 600;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.demo-btn.primary {
  background: #14b8a6;
  color: #fff;
}

.demo-btn.secondary {
  background: #fff;
  color: #14b8a6;
  border-color: #14b8a6;
}

.demo-btn.orange {
  background: #f26a00;
  color: #fff;
}

.demo-btn[disabled] {
  opacity: 0.7;
  cursor: default;
}

.demo-empty {
  border: 1px dashed #ccd4cf;
  border-radius: 8px;
  padding: 20px;
  color: #777e86;
  background: rgba(255, 255, 255, 0.6);
}

.demo-chat-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  height: calc(100vh - 126px);
  min-height: 560px;
  margin-top: 80px;
  background: #fff;
}

.demo-chat-list {
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.demo-chat-list-header {
  padding: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.demo-chat-list-header h1 {
  margin: 0;
  font-size: 24px;
}

.demo-chat-list-header p {
  margin: 4px 0 0;
  color: #7b7f86;
  font-size: 14px;
}

.demo-chat-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f0f1f2;
  padding: 14px 16px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.demo-chat-item.active {
  background: #eef8f5;
}

.demo-chat-item span {
  min-width: 0;
}

.demo-chat-item strong,
.demo-chat-item small,
.demo-invite-row strong,
.demo-invite-row small {
  display: block;
}

.demo-chat-item strong {
  color: #1c1c1e;
  font-size: 15px;
}

.demo-chat-item small,
.demo-invite-row small {
  overflow: hidden;
  color: #7b7f86;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-member-count {
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}

.chat-member-count:hover {
  color: #14B8A6;
  text-decoration: underline;
}

.demo-chat-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
}

.demo-chat-header h2 {
  margin: 0;
  font-size: 20px;
}

.demo-chat-header p {
  margin: 2px 0 0;
  color: #7b7f86;
  font-size: 14px;
}

.demo-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  background: #fbfcfa;
}

.demo-message {
  max-width: 68%;
  margin-bottom: 14px;
}

.demo-message.mine {
  margin-left: auto;
}

.demo-message.system {
  max-width: none;
  text-align: center;
}

.demo-message-author,
.demo-message-time {
  margin: 0 0 4px 4px;
  color: #7b7f86;
  font-size: 12px;
}

.demo-message.mine .demo-message-author,
.demo-message.mine .demo-message-time {
  margin-right: 4px;
  text-align: right;
}

.demo-message-bubble {
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: #1c1c1e;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demo-message.mine .demo-message-bubble {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 14px;
  background: #14b8a6;
  color: #fff;
}

.demo-message.system .demo-message-bubble {
  display: inline-block;
  background: #eef0f3;
  color: #60656d;
  font-size: 13px;
  box-shadow: none;
}

.demo-message-form {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.demo-message-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d5d7db;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.45);
}

.demo-modal.active {
  display: flex;
}

.demo-modal-card {
  width: min(520px, 100%);
  max-height: min(680px, 90vh);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
}

.demo-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.demo-modal-header h2 {
  margin: 0;
  font-size: 19px;
}

.demo-icon-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f2f4f7;
  color: #4b5563;
  cursor: pointer;
}

.demo-invite-list {
  list-style: none;
  margin: 0;
  padding: 10px 20px 20px;
}

.demo-invite-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f2f3;
}

.demo-invite-group-row {
  margin: 6px 0 10px;
  border: 1px solid #e3f3f0;
  border-radius: 8px;
  padding: 12px;
  background: #f5fbfa;
}

.demo-group-invite-avatar {
  background: #dff7f2;
  color: #047857;
}

.demo-invite-row span {
  flex: 1;
  min-width: 0;
}

@media (max-width: 760px) {
  .demo-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .neighbors-shell {
    width: min(100% - 24px, 920px);
    margin-top: 92px;
  }

  .demo-neighbors-header h1 {
    font-size: 30px;
  }

  .demo-neighbors-header p {
    font-size: 17px;
  }

  .demo-group-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-group-controls {
    flex-wrap: wrap;
    white-space: normal;
  }

  .progress-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .demo-neighbor-profile {
    flex-direction: column;
  }

  .demo-neighbor-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .demo-neighbor-actions .demo-btn {
    width: 100%;
  }

  .demo-tabs button {
    min-width: 0;
    flex: 1;
    padding-right: 12px;
    padding-left: 12px;
  }

  .demo-chat-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .demo-chat-list {
    max-height: 280px;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  .demo-chat-panel {
    min-height: 560px;
  }

  .demo-message {
    max-width: 86%;
  }
}
