:root {
  --ink: #202124;
  --muted: #646a73;
  --line: #dfe3e8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --coral: #d85d42;
  --gold: #b7791f;
  --blue: #2563eb;
  --sidebar-width: min(300px, calc(100vw - 76px));
  --content-max: 1320px;
  --shadow: 0 16px 38px rgba(32, 33, 36, 0.09);
  --soft-shadow: 0 10px 28px rgba(32, 33, 36, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.locked {
  overflow: hidden;
}

body.auth-loading {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: var(--sidebar-width);
  padding: 24px 22px;
  color: #fff;
  background: #183a37;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 16px 0 42px rgba(32, 33, 36, 0.22);
  transform: translateX(calc(-100% - 20px));
  transition: transform 180ms ease;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-toggle {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 50;
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 8px;
  background: #183a37;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(32, 33, 36, 0.18);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sidebar-toggle span {
  width: 5px;
  height: 5px;
  background: #fff;
  border-radius: 999px;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  background: #115e59;
}

.sidebar-toggle.open {
  background: #fff;
  border-color: var(--line);
  transform: translateX(var(--sidebar-width));
}

.sidebar-toggle.open span {
  background: #183a37;
}

.sidebar-toggle.open:hover,
.sidebar-toggle.open:focus-visible {
  background: #f8fafc;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(17, 24, 39, 0.38);
  backdrop-filter: blur(2px);
}

.landing-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
  padding: clamp(24px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(12, 27, 32, 0.86), rgba(12, 27, 32, 0.48) 48%, rgba(12, 27, 32, 0.72)),
    url("/assets/city-collage-landing.png") center / cover no-repeat;
  color: #fff;
}

.landing-page::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(12, 27, 32, 0.72), transparent);
  content: "";
  pointer-events: none;
}

.app-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 27, 32, 0.88), rgba(12, 27, 32, 0.54)),
    url("/assets/city-collage-landing.png") center / cover no-repeat;
}

.app-loading-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.app-loading-card h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: 0;
}

.landing-copy,
.landing-auth {
  position: relative;
  z-index: 1;
}

.landing-copy {
  max-width: 720px;
}

.landing-copy h1 {
  max-width: 680px;
  margin: 10px 0 16px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.landing-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.6;
}

.landing-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #183a37;
  background: #f7c66a;
  border-radius: 14px;
  font-weight: 900;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 8px;
}

.auth-tab {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-weight: 800;
}

.auth-tab.active {
  color: var(--teal-dark);
  background: #fff;
  box-shadow: 0 8px 20px rgba(32, 33, 36, 0.1);
}

.auth-tab:disabled {
  cursor: wait;
  opacity: 0.72;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #183a37;
  background: #f7c66a;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  font-weight: 900;
  letter-spacing: 0;
}

.monogram-svg {
  display: block;
  width: 42px;
  height: 42px;
}

.monogram-frame,
.monogram-stroke {
  fill: none;
  stroke: #183a37;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.monogram-frame {
  stroke-width: 3;
}

.monogram-stroke {
  stroke-width: 5;
}

.accent-stroke {
  stroke: #0f766e;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 1.2rem;
}

.brand p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.nav-tabs {
  display: grid;
  gap: 7px;
}

.nav-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-tab:hover,
.nav-tab:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.nav-tab.active {
  color: #173531;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.nav-tab-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.nav-badge {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  background: var(--coral);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

.metric {
  padding: 13px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.metric span {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
}

.metric small {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
}

.workspace {
  min-width: 0;
  padding: 28px 28px 28px 82px;
}

.workspace > .view,
.auth-bar {
  width: min(100%, var(--content-max));
  margin-right: auto;
  margin-left: auto;
}

.auth-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.auth-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 5px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(223, 227, 232, 0.75);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.notification-trigger {
  position: relative;
}

.auth-actions > button {
  min-height: 42px;
}

.notification-drawer {
  position: fixed;
  top: 84px;
  right: 28px;
  z-index: 45;
  display: grid;
  width: min(420px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(32, 33, 36, 0.16);
}

.notification-list {
  display: grid;
  gap: 11px;
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.notification-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.notification-card:hover,
.notification-card:focus-visible {
  border-color: #b8ddd7;
  box-shadow: var(--soft-shadow);
  outline: none;
  transform: translateY(-1px);
}

.notification-card.unread {
  border-color: #b8ddd7;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.notification-card.achievement {
  background: #fff8e8;
  border-color: #e8bd53;
}

.notification-card-head {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.notification-card small {
  color: var(--muted);
}

.user-badge {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 12px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
  font-weight: 760;
}

.clickable-user-badge {
  gap: 10px;
  box-shadow: 0 0 0 rgba(15, 118, 110, 0);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clickable-user-badge:hover,
.clickable-user-badge:focus-visible {
  background: #f0fbf8;
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
  outline: none;
  transform: translateY(-1px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(17, 24, 39, 0.46);
}

.auth-modal {
  display: grid;
  width: min(420px, 100%);
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.applicant-profile-modal {
  display: grid;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  gap: 18px;
  overflow: auto;
  padding: 20px;
  background: #fffdf8;
  border: 1px solid #d8e7df;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-preview-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.profile-preview-header h3 {
  margin: 0;
  font-size: 1.45rem;
}

.profile-preview-header small,
.profile-preview-details dt {
  color: var(--muted);
}

.profile-preview-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.profile-preview-grid h4 {
  margin: 0 0 8px;
}

.profile-preview-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.profile-preview-photo-grid figure {
  position: relative;
  margin: 0;
}

.profile-preview-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-preview-photo-grid figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 6px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
}

.primary-preview-photo img {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.profile-preview-details {
  display: grid;
  align-content: start;
  gap: 10px;
}

.profile-preview-details p,
.profile-preview-details dl {
  margin: 0;
}

.profile-preview-details dl {
  display: grid;
  gap: 8px;
}

.profile-preview-details dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 760;
}

.profile-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-auth {
  align-self: center;
}

.landing-auth h2 {
  margin: 0;
  font-size: 1.6rem;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.password-toggle {
  min-width: 70px;
}

.verification-card {
  justify-items: stretch;
}

.verification-card p {
  margin: 0;
  line-height: 1.5;
}

.verification-mark {
  justify-self: start;
}

.verification-spinner {
  width: 42px;
  height: 42px;
  margin: 4px auto;
  border: 4px solid #dbe8e5;
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

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

.view {
  display: none;
}

.view.active {
  display: block;
}

.topbar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 2px 0;
}

.eyebrow {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar h2 {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.primary-action,
.ghost-button,
.danger-button,
.text-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 760;
}

.primary-action {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.primary-action:hover {
  background: var(--teal-dark);
}

.primary-action:disabled,
.primary-action[aria-busy="true"] {
  cursor: wait;
  opacity: 0.86;
}

.auth-submit-button.is-loading {
  pointer-events: none;
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 800ms linear infinite;
}

.new-hangout-action {
  position: relative;
  width: 44px;
  min-width: 44px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: width 180ms ease, background 180ms ease;
}

.new-hangout-action:hover,
.new-hangout-action:focus-visible,
.new-hangout-action.open {
  width: 154px;
}

.new-hangout-plus {
  position: absolute;
  left: 13px;
  top: 50%;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  font-size: 1.2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.new-hangout-label {
  position: absolute;
  left: 38px;
  top: 50%;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity 160ms ease, transform 160ms ease;
}

.new-hangout-action:hover .new-hangout-label,
.new-hangout-action:focus-visible .new-hangout-label,
.new-hangout-action.open .new-hangout-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.ghost-button,
.text-button {
  color: var(--teal-dark);
  background: #fff;
  border: 1px solid var(--line);
}

.danger-button {
  color: #9f2f1f;
  background: #fff7f4;
  border: 1px solid #f2c8bd;
}

.full-width {
  width: 100%;
}

.filters,
.panel,
.event-card,
.country-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.event-card.focus-pulse {
  outline: 3px solid rgba(15, 118, 110, 0.32);
  box-shadow: 0 16px 42px rgba(15, 118, 110, 0.2);
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr)) minmax(220px, 1.3fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 12px;
  border-color: #e5e9ee;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.interest-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

.other-interest-row {
  min-height: 42px;
}

.other-interest-input {
  width: min(240px, 48vw);
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  font: inherit;
}

.filter-checkbox {
  align-self: end;
  min-height: 40px;
  justify-content: center;
  padding: 0 11px;
  background: #f8fafc;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
}

.label-row {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 106px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.form-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.profile-panel {
  display: grid;
  gap: 14px;
  max-width: 940px;
  padding: 18px;
}

.hangout-create-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 81;
  width: min(980px, calc(100vw - 32px));
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 12px));
  transition: max-height 260ms ease, opacity 180ms ease, padding 180ms ease, border-width 180ms ease, transform 220ms ease;
}

.hangout-create-panel.open {
  max-height: min(840px, calc(100vh - 32px));
  overflow: auto;
  padding: 20px;
  border-width: 1px;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.hangout-form-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 24, 39, 0.52);
  backdrop-filter: blur(4px);
}

body.hangout-modal-active {
  overflow: hidden;
}

.hangout-wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hangout-wizard-progress span {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  color: var(--muted);
  background: #eef2f7;
  border: 1px solid #d9e0e7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.hangout-wizard-progress strong {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-size: 0.76rem;
}

.hangout-wizard-progress small {
  font-size: 0.76rem;
  font-weight: 850;
}

.hangout-wizard-progress span.active,
.hangout-wizard-progress span.done {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.hangout-wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.hangout-step {
  display: none;
  gap: 14px;
}

.hangout-step.active {
  display: grid;
  animation: stepIn 180ms ease;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-autocomplete-results,
.chip-row {
  display: grid;
  gap: 8px;
}

.city-result-button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.city-result-button:hover,
.city-result-button:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.14);
  transform: translateY(-1px);
}

.city-result-button span:first-child {
  display: grid;
  gap: 2px;
}

.city-result-button small,
.popular-city-row > span,
.activity-card small,
.activity-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}

.popular-city-row {
  display: grid;
  gap: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
}

.city-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.city-chip:hover,
.city-chip:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.city-chip small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.activity-card,
.hangout-live-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.activity-card strong {
  color: var(--teal-dark);
}

.activity-high {
  background: #fff8e8;
  border-color: #e8bd53;
}

.activity-medium {
  background: #f0fbf4;
  border-color: #b8e4c7;
}

.activity-low {
  background: #fff7ed;
  border-color: #fed7aa;
}

.activity-card em {
  color: #9a3412;
  font-weight: 850;
}

.activity-mini {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.activity-mini.activity-high {
  color: #7a4c05;
}

.activity-mini.activity-medium {
  color: #116149;
}

.activity-mini.activity-low {
  color: #5f6368;
}

.hangout-live-preview {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 12px 30px rgba(32, 33, 36, 0.08);
}

.preview-head,
.preview-visibility div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.preview-head {
  justify-content: space-between;
}

.hangout-live-preview h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 1.25rem;
}

.hangout-live-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.preview-meta {
  gap: 7px;
}

.preview-visibility {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.preview-visibility small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-visibility span {
  padding: 5px 8px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.visibility-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visibility-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.visibility-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 850;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.visibility-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.visibility-chip:hover,
.visibility-chip:focus-within,
.visibility-chip:has(input:checked) {
  color: var(--teal-dark);
  background: #e3f4f1;
  border-color: #b8ddd7;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

.hangout-wizard-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.form-panel.login-required {
  border-color: #f2c8bd;
}

.panel-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.panel-heading h3 {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 1.2rem;
}

.welcome-view {
  max-width: 1080px;
  margin: 0 auto;
}

.welcome-topbar {
  align-items: end;
  margin-bottom: 18px;
}

.welcome-panel {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.welcome-intro h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

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

.welcome-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 132px;
  padding: 16px;
  background: #fffdf7;
  border: 1px solid var(--line);
  border-left: 4px solid #c47a32;
  border-radius: 8px;
}

.welcome-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 999px;
  font-weight: 850;
}

.welcome-step h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.welcome-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.welcome-start-button {
  justify-self: center;
  min-width: 220px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.request-city-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed #cfd6dd;
  border-radius: 8px;
}

.choice-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chip-choice {
  width: fit-content;
  min-height: 38px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.chip-choice > input[type="checkbox"] {
  position: absolute;
  width: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chip-choice:has(input:checked) {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.profile-tabs,
.admin-tabs,
.wizard-progress,
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profile-tab,
.admin-tab {
  min-height: 38px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.profile-tab.active,
.admin-tab.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.16);
}

.wizard-dot {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 850;
}

.wizard-dot.active,
.wizard-dot.done {
  color: #fff;
  background: var(--teal);
}

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

.mobile-bottom-nav {
  display: none;
}

.profile-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-section-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.profile-section h4 {
  margin: 0;
  font-size: 1rem;
}

.profile-section-fields {
  display: grid;
  gap: 12px;
}

.readonly-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.identity-summary-card,
.location-summary-card,
.person-pill,
.user-row-main,
.user-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.identity-summary-card strong,
.user-row-main strong {
  display: block;
  color: var(--ink);
}

.identity-summary-card small,
.user-row-main small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.profile-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  object-fit: cover;
  color: #fff;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-weight: 850;
}

.profile-avatar.small {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.profile-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 1.4rem;
}

.map-thumb {
  position: relative;
  display: inline-grid;
  width: 124px;
  height: 78px;
  overflow: hidden;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.map-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--teal-dark);
  background: #dcefed;
  font-size: 0.9rem;
  font-weight: 850;
}

.map-thumb span {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 8px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  font-size: 0.74rem;
  font-weight: 800;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 5px 8px 5px 10px;
  color: #334155;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.location-chip button {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  color: #9f2f1f;
  background: #fff;
  border: 1px solid #f2c8bd;
  border-radius: 999px;
  font-weight: 900;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.photo-tile {
  display: grid;
  gap: 8px;
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.photo-tile button {
  min-height: 34px;
  color: #9f2f1f;
  background: #fff7f4;
  border: 1px solid #f2c8bd;
  border-radius: 8px;
  font-weight: 760;
}

.photo-tile button[data-primary-photo] {
  color: var(--teal-dark);
  background: #e3f4f1;
  border-color: #b8ddd7;
}

.photo-tile button[data-primary-photo]:disabled {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  cursor: default;
}

.summary-photo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-danger-button {
  margin-top: 8px;
}

.primary-summary-photo {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.premium-row {
  padding: 12px;
  background: #fff8e8;
  border: 1px solid #f2d28a;
  border-radius: 8px;
}

body.onboarding-active .sidebar,
body.onboarding-active .sidebar-toggle,
body.onboarding-active .auth-bar {
  display: none;
}

body.onboarding-active .workspace {
  min-height: 100vh;
  padding: 32px;
}

body.onboarding-active .profile-panel {
  max-width: 980px;
  margin: 0 auto;
}

.choice-panel legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

select[multiple] {
  min-height: 152px;
}

.card-list,
.country-list {
  display: grid;
  gap: 14px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-users-panel {
  grid-column: 1 / -1;
}

.admin-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-stats .metric {
  background: #f8fafc;
  border-color: var(--line);
}

.admin-stats .metric span {
  color: var(--teal-dark);
}

.admin-stats .metric small {
  color: var(--muted);
}

.admin-panel .panel-heading {
  align-items: center;
}

.admin-panel .panel-heading input {
  max-width: 220px;
}

.panel-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.country-row {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.person-pill {
  min-height: 38px;
  padding: 4px 10px 4px 4px;
  color: #334155;
  background: #eef2f7;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 760;
}

.clickable-user-identity {
  color: #334155;
  text-align: left;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.clickable-user-identity:hover,
.clickable-user-identity:focus-visible {
  background: #f0fbf8;
  border-color: #8fc9c0;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.host-identity {
  appearance: none;
}

.country-row.active,
.country-row:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 62vh;
  overflow: auto;
  align-content: flex-start;
}

.state-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.state-button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 760;
}

.state-button.active,
.state-button:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.event-card,
.country-card {
  padding: 18px;
  box-shadow: var(--soft-shadow);
}

.event-card.hidden-feed-card {
  background: rgba(216, 93, 66, 0.12);
  border-color: rgba(216, 93, 66, 0.34);
  box-shadow: 0 12px 28px rgba(216, 93, 66, 0.1);
}

.current-hangouts-panel {
  display: grid;
  gap: 14px;
}

.current-event-card {
  border-left: 4px solid var(--teal);
}

.hidden-toggle {
  align-self: end;
  min-height: 40px;
  color: #7f3b31;
  background: #fff;
  border: 1px solid #efd1ca;
  box-shadow: none;
}

.hidden-toggle.active,
.hidden-toggle:hover,
.hidden-toggle:focus-visible {
  color: #9f2f1f;
  background: #fff7f4;
  border-color: #e9ad9e;
}

.event-card header,
.country-card header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.event-card h3,
.country-card h3 {
  margin: 0;
  font-size: 1.22rem;
}

.event-meta,
.country-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.history-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.history-details h4,
.attendee-profile h4 {
  margin: 0;
}

.attendee-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attendee-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-weight: 780;
  cursor: pointer;
}

.attendee-button.active,
.attendee-button:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.attendee-profile {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.attendee-profile p {
  margin: 8px 0 0;
  color: var(--muted);
}

.public-profile-shell {
  display: grid;
  gap: 16px;
}

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

.public-profile-identity {
  display: flex;
  min-width: 0;
  gap: 16px;
  align-items: center;
}

.public-profile-identity h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.1;
}

.public-profile-identity p,
.public-profile-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.public-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.reliability-badge-wrap {
  position: relative;
  display: grid;
  min-width: 126px;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  outline: none;
}

.reliability-badge {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: #fff;
  background: #8b5e34;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  box-shadow: 0 10px 24px rgba(32, 33, 36, 0.16);
}

.reliability-badge strong {
  font-size: 1.8rem;
  line-height: 1;
}

.reliability-silver {
  background: linear-gradient(145deg, #8792a2, #d8dee8);
}

.reliability-bronze {
  background: linear-gradient(145deg, #7a4c2a, #c48a54);
}

.reliability-gold {
  background: linear-gradient(145deg, #a66b00, #ffd76a);
}

.reliability-risk {
  background: linear-gradient(145deg, #8f1d1d, #f87171);
}

.reliability-new {
  background: linear-gradient(145deg, #60716f, #9eb3af);
}

.reliability-badge-label {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
}

.reliability-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(280px, 78vw);
  gap: 6px;
  padding: 12px;
  color: #fff;
  background: #202124;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.reliability-badge-wrap:hover .reliability-tooltip,
.reliability-badge-wrap:focus-visible .reliability-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.reliability-tooltip strong {
  color: #fff;
}

.reliability-tooltip span {
  font-size: 0.82rem;
  line-height: 1.35;
}

.history-positive {
  color: #86efac;
}

.history-negative {
  color: #fca5a5;
}

.history-neutral {
  color: #cbd5e1;
}

.mini-reliability {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  border-radius: 7px;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  font-size: 0.72rem;
  font-weight: 900;
}

.public-score {
  display: grid;
  min-width: 138px;
  gap: 2px;
  padding: 12px;
  color: #173531;
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 8px;
}

.admin-metric-card {
  background: #fff7ed;
  border-color: #fed7aa;
}

.admin-metric-list,
.shared-contact-card {
  display: grid;
  gap: 6px;
}

.admin-metric-list span,
.shared-contact-card span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.verification-fields .panel-subtitle {
  margin: 0;
}

.verification-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-score strong {
  color: var(--teal-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.public-score span,
.public-score small {
  color: #355f5b;
  font-weight: 780;
}

.public-score small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

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

.public-profile-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 16px;
  align-items: start;
}

.public-profile-main-column,
.public-profile-side-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

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

.public-profile-stats .admin-metric-card {
  grid-column: span 3;
}

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

.public-profile-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.public-profile-card h4,
.public-stat-card small,
.public-stat-card strong,
.public-stat-card span {
  margin: 0;
}

.public-profile-card h4 {
  font-size: 1rem;
}

.public-stat-card {
  background: linear-gradient(180deg, #fff, #f8fafc);
}

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

.public-stat-card strong {
  color: var(--teal-dark);
  font-size: 1.65rem;
  line-height: 1;
}

.public-stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

.wide-card {
  grid-column: span 2;
}

.scroll-card {
  max-height: min(60vh, 520px);
  overflow: hidden;
}

.scroll-card-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.achievements-scroll-card .achievement-list,
.liked-expats-scroll-card .liked-expats-details {
  max-height: 455px;
  overflow-y: auto;
  padding-right: 4px;
}

.achievements-scroll-card .achievement-grid {
  grid-template-columns: 1fr;
}

.liked-expats-scroll-card {
  max-height: min(48vh, 420px);
}

.liked-expats-scroll-card .liked-expats-details {
  max-height: 340px;
}

.achievement-list::-webkit-scrollbar,
.liked-expats-details::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
  width: 8px;
}

.achievement-list::-webkit-scrollbar-thumb,
.liked-expats-details::-webkit-scrollbar-thumb,
.notification-list::-webkit-scrollbar-thumb {
  background: #c8d7d4;
  border-radius: 999px;
}

.public-profile-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill.badge-success {
  color: #116149;
  background: #dff8ec;
}

.pill.badge-host {
  color: #164b7a;
  background: #dcecff;
}

.pill.badge-achievement {
  color: #7a4c05;
  background: #fff8e8;
  border: 1px solid #e8bd53;
}

.public-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}

.public-photo-grid figure {
  position: relative;
  min-height: 96px;
  margin: 0;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.public-photo-grid figure.primary-preview-photo {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.public-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
}

.public-photo-grid figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 7px;
  color: #fff;
  background: rgba(17, 94, 89, 0.9);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.achievement-list {
  display: grid;
  gap: 8px;
}

.achievement-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.achievement-row {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.achievement-row.earned {
  border-color: #e8bd53;
  background: #fffaf0;
}

.achievement-row.locked {
  opacity: 0.72;
  background: #f8fafc;
}

.achievement-row strong,
.achievement-row span,
.achievement-row small {
  margin: 0;
}

.achievement-row span {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.achievement-row small {
  color: var(--muted);
  line-height: 1.35;
}

.achievement-modal {
  display: grid;
  width: min(420px, calc(100vw - 32px));
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.liked-expats-details summary {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-weight: 850;
  cursor: pointer;
}

.liked-expat-list {
  display: grid;
  gap: 10px;
}

.liked-expat-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shared-contact-card {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-form {
  display: grid;
  gap: 12px;
}

.messages-shell {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  min-height: 620px;
  overflow: hidden;
  padding: 0;
}

.message-thread-panel,
.message-chat-panel {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
  padding: 16px;
}

.message-thread-panel {
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.message-thread-list {
  display: grid;
  gap: 8px;
  overflow: auto;
}

.message-thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-thread.active,
.message-thread:hover {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.message-thread strong,
.message-thread small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread small,
.message-chat-header small,
.message-bubble small {
  color: var(--muted);
  font-size: 0.78rem;
}

.message-chat-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.message-recipient {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.message-stream {
  display: grid;
  gap: 10px;
  max-height: 440px;
  overflow: auto;
  align-content: start;
  padding: 10px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compact-stream {
  max-height: 260px;
}

.message-bubble {
  display: grid;
  gap: 4px;
  width: min(78%, 520px);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-bubble p {
  margin: 0;
  line-height: 1.45;
}

.message-bubble.outgoing {
  justify-self: end;
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.message-bubble.outgoing small {
  color: rgba(255, 255, 255, 0.78);
}

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

.achievement-button,
.achievement-pill {
  border-color: #e8bd53;
  background: #fff8e8;
  color: #7a4c05;
}

.pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  color: #334155;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.tooltip {
  position: relative;
  z-index: 2;
  display: inline-grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  outline: none;
}

.tooltip.light {
  color: #173531;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.45);
}

.tooltip::after {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 30;
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 9px 10px;
  color: #fff;
  background: #202124;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(32, 33, 36, 0.2);
  content: attr(aria-label);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: normal;
}

.tooltip::before {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  z-index: 31;
  width: 10px;
  height: 10px;
  background: #202124;
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px) rotate(45deg);
  transition: opacity 140ms ease, transform 140ms ease;
}

.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus-visible::after,
.tooltip:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-tab:hover .tooltip::after,
.nav-tab:hover .tooltip::before,
.nav-tab:focus-visible .tooltip::after,
.nav-tab:focus-visible .tooltip::before {
  opacity: 1;
}

.nav-tab .tooltip::after,
.nav-tab .tooltip::before,
.pill .tooltip::after,
.pill .tooltip::before,
.primary-action .tooltip::after,
.primary-action .tooltip::before,
.ghost-button .tooltip::after,
.ghost-button .tooltip::before,
.text-button .tooltip::after,
.text-button .tooltip::before,
.danger-button .tooltip::after,
.danger-button .tooltip::before {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}

.sidebar .tooltip::after {
  top: 50%;
  bottom: auto;
  left: calc(100% + 12px);
  right: auto;
  transform: translate(4px, -50%);
}

.sidebar .tooltip::before {
  top: 50%;
  bottom: auto;
  left: calc(100% + 7px);
  right: auto;
  transform: translate(4px, -50%) rotate(45deg);
}

.nav-tab .tooltip:hover::after,
.nav-tab .tooltip:hover::before,
.nav-tab .tooltip:focus-visible::after,
.nav-tab .tooltip:focus-visible::before,
.pill .tooltip:hover::after,
.pill .tooltip:hover::before,
.pill .tooltip:focus-visible::after,
.pill .tooltip:focus-visible::before,
.primary-action .tooltip:hover::after,
.primary-action .tooltip:hover::before,
.primary-action .tooltip:focus-visible::after,
.primary-action .tooltip:focus-visible::before,
.ghost-button .tooltip:hover::after,
.ghost-button .tooltip:hover::before,
.ghost-button .tooltip:focus-visible::after,
.ghost-button .tooltip:focus-visible::before,
.text-button .tooltip:hover::after,
.text-button .tooltip:hover::before,
.text-button .tooltip:focus-visible::after,
.text-button .tooltip:focus-visible::before,
.danger-button .tooltip:hover::after,
.danger-button .tooltip:hover::before,
.danger-button .tooltip:focus-visible::after,
.danger-button .tooltip:focus-visible::before {
  transform: translate(0, 0);
}

.sidebar .tooltip:hover::after,
.sidebar .tooltip:hover::before,
.sidebar .tooltip:focus-visible::after,
.sidebar .tooltip:focus-visible::before,
.sidebar .nav-tab:hover .tooltip::after,
.sidebar .nav-tab:hover .tooltip::before,
.sidebar .nav-tab:focus-visible .tooltip::after,
.sidebar .nav-tab:focus-visible .tooltip::before {
  transform: translate(0, -50%);
}

.tooltip:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.pill.open {
  color: #116149;
  background: #dff8ec;
}

.pill.started {
  color: #164b7a;
  background: #dcecff;
}

.pill.concluded {
  color: #5f4b13;
  background: #f5e7ba;
}

.pill.draft {
  color: #825a0f;
  background: #fff0c9;
}

.pill.full,
.pill.cancelled {
  color: #a33a2b;
  background: #ffe4df;
}

.pill.pending {
  color: #825a0f;
  background: #fff0c9;
}

.pill.approved {
  color: #116149;
  background: #dff8ec;
}

.pill.declined,
.pill.closed,
.pill.expired,
.pill.removed_by_admin {
  color: #a33a2b;
  background: #ffe4df;
}

.event-description,
.country-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.compact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.mini-button {
  min-height: 28px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.hangout-details,
.host-management-panel,
.group-chat-wrap {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hangout-details h4,
.host-management-panel h4 {
  margin: 0;
}

.host-management-panel {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.applicant-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.applicant-identity {
  flex: 1 1 240px;
  justify-content: flex-start;
  min-height: 48px;
  padding: 6px;
  background: transparent;
  border-radius: 8px;
}

.check-in-panel form,
.check-in-list {
  display: grid;
  gap: 10px;
}

.check-in-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-choice {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented-choice label {
  display: inline-flex;
  min-width: 74px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--teal-dark);
  background: #fff;
  cursor: pointer;
}

.segmented-choice label + label {
  border-left: 1px solid var(--line);
}

.segmented-choice input {
  position: absolute;
  opacity: 0;
}

.segmented-choice label:has(input:checked) {
  color: #fff;
  background: var(--teal);
}

.group-chat-panel {
  display: grid;
  gap: 10px;
}

.form-message,
.empty-state {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
}

.empty-card {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px 22px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px dashed #cfd8df;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.empty-card.compact {
  min-height: 0;
  padding: 16px;
}

.empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--teal-dark);
  background: #e3f4f1;
  border: 1px solid #b8ddd7;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 900;
}

.empty-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.empty-card p {
  max-width: 460px;
  margin: 0;
  line-height: 1.5;
}

.form-message.error {
  color: #a33a2b;
}

.form-message.success {
  color: var(--teal-dark);
}

.hidden {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .profile-preview-grid {
    grid-template-columns: 1fr;
  }

  .profile-preview-header {
    display: grid;
  }

  .landing-page {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: auto;
  }

  .landing-copy h1 {
    font-size: clamp(2.8rem, 12vw, 5.6rem);
  }

  .metric-grid {
    margin-top: 0;
  }

  .content-grid,
  .admin-layout,
  .filters,
  .messages-shell,
  .hangout-wizard-layout,
  .welcome-steps {
    grid-template-columns: 1fr;
  }

  .public-profile-hero {
    grid-template-columns: 1fr;
  }

  .public-profile-dashboard {
    grid-template-columns: 1fr;
  }

  .public-score-row {
    justify-content: flex-start;
  }

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

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

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

  .message-thread-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .form-panel {
    position: static;
  }

  .hangout-create-panel {
    position: fixed;
    width: min(720px, calc(100vw - 24px));
  }

  .hangout-live-preview {
    position: static;
  }
}

@media (max-width: 620px) {
  .landing-page {
    gap: 22px;
    padding: 22px;
  }

  .landing-copy p:last-child {
    font-size: 1rem;
  }

  .workspace,
  .sidebar {
    padding: 18px;
  }

  .workspace {
    padding: 76px 18px 18px;
  }

  .topbar,
  .event-card header,
  .country-card header,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hangout-create-panel.open {
    max-height: calc(100vh - 20px);
    padding: 16px;
  }

  .hangout-wizard-progress {
    gap: 6px;
  }

  .hangout-wizard-progress span {
    gap: 0;
    min-height: 30px;
  }

  .hangout-wizard-progress small {
    display: none;
  }

  .hangout-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hangout-wizard-actions .primary-action.hidden {
    display: none;
  }

  .hangout-wizard-actions .primary-action:not(.hidden) {
    grid-column: span 2;
  }

  .visibility-options {
    display: grid;
  }

  .topbar .primary-action {
    width: 44px;
  }

  .topbar .new-hangout-action:hover,
  .topbar .new-hangout-action:focus-visible,
  .topbar .new-hangout-action.open {
    width: 154px;
  }

  .request-city-row {
    grid-template-columns: 1fr;
  }

  .attendee-profile,
  .applicant-row,
  .check-in-row,
  .message-chat-header {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .public-profile-identity {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-profile-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-stats,
  .public-profile-info-grid {
    grid-template-columns: 1fr;
  }

  .public-profile-stats .admin-metric-card {
    grid-column: span 1;
  }

  .wide-card {
    grid-column: span 1;
  }

  .scroll-card,
  .liked-expats-scroll-card {
    max-height: none;
  }

  .achievements-scroll-card .achievement-list,
  .liked-expats-scroll-card .liked-expats-details {
    max-height: 420px;
  }

  .notification-drawer {
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .message-compose {
    grid-template-columns: 1fr;
  }

  .message-bubble {
    width: 92%;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 35;
    display: flex;
    gap: 6px;
    justify-content: space-around;
    padding: 8px;
    background: #183a37;
    border-radius: 999px;
    box-shadow: var(--shadow);
  }

  .mobile-bottom-nav button {
    min-height: 38px;
    padding: 0 10px;
    color: #fff;
    background: transparent;
    border: 0;
    font-weight: 800;
  }

  .mobile-bottom-nav button.active {
    color: var(--deep);
    background: var(--cream);
    border-radius: 999px;
  }
}
