/* ─── in·real·life — styles.css ─── */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --earth: #2d3a2e;
  --moss: #4a6741;
  --sage: #7a9e6e;
  --mist: #c8d8b8;
  --cream: #f5f0e8;
  --warm: #e8ddc8;
  --amber: #c4853a;
  --rust: #a85c38;
  --text: #1e2a1f;
  --soft: #6b7c6c;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* ─── Shared components ─── */

.status-bar {
  padding: 10px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--soft);
  flex-shrink: 0;
}

.wordmark {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--earth);
  letter-spacing: -0.02em;
}

.wordmark span { color: var(--amber); }

.btn-primary {
  width: 100%;
  background: var(--earth);
  color: var(--mist);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.5; cursor: default; }

.btn-small {
  background: var(--earth);
  color: var(--mist);
  border: none;
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-small:active { opacity: 0.85; }

.btn-small.active {
  background: var(--sage);
  color: white;
}

.btn-full {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-full:active { opacity: 0.85; }
.btn-full.primary { background: var(--earth); color: var(--mist); }
.btn-full.soft { background: var(--warm); color: var(--earth); border: 1.5px solid var(--earth); }

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 10px;
}

/* ─── App shell ─── */

.app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.screen.active { display: flex; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.shake { animation: shake 0.3s ease; }

/* Used by profile + debrief screens for the "→" affordance. */
.persona-arrow { color: var(--soft); font-size: 14px; }

/* ─── Landing page (index.html) ─── */

.landing {
  /* body has overflow: hidden for the app shell, so the landing has to do
     its own scrolling. height (not min-height) constrains it to the
     viewport so overflow-y: auto actually engages. */
  height: 100%;
  width: 100%;
  overflow-y: auto;
  padding: 0 24px 64px;
  display: flex;
  justify-content: center;
}

.landing-content {
  width: 100%;
  max-width: 580px;
}

.landing-hero {
  padding: 56px 0 40px;
}

.landing-hero .wordmark {
  display: block;
  font-size: 36px;
  margin-bottom: 56px;
}

.tagline {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  line-height: 1.3;
  color: var(--earth);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}

.tagline-attribution {
  font-size: 12px;
  color: var(--soft);
  letter-spacing: 0.04em;
  margin: 0 0 32px;
  font-style: italic;
}

.tagline-attribution:empty { display: none; }
.tagline-attribution:empty + .landing-cta { margin-top: 32px; }

.landing-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.landing-link {
  text-align: center;
  color: var(--moss);
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
}

.landing-link:active { color: var(--earth); }

.landing-section {
  padding: 32px 0;
  border-top: 1px solid rgba(74, 103, 65, 0.14);
}

.landing-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--earth);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

.landing-section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}

.landing-section p:last-child { margin-bottom: 0; }

.landing-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 4px 0 0;
  padding: 0;
}

.landing-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.landing-step-num {
  flex: 0 0 auto;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--amber);
  line-height: 1;
  min-width: 22px;
}

.landing-step-body { flex: 1; }

.landing-step-body h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--earth);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.landing-step-body p {
  font-size: 14px;
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

.landing-principles {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.landing-principle h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--earth);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}

.landing-principle p {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.55;
  margin: 0;
}

.landing-final {
  padding: 40px 0 0;
}

.landing-final h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--earth);
  margin: 0 0 18px;
}

/* ─── Terms of Use (terms.html) ─── */

.wordmark-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.terms-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--earth);
  letter-spacing: -0.005em;
  margin: 8px 0 4px;
}

.terms-version {
  font-size: 12px;
  color: var(--soft);
  letter-spacing: 0.04em;
  margin: 0 0 28px;
  font-style: italic;
}

.terms-lede {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 12px;
}

.terms-lede:last-of-type { margin-bottom: 0; }

.terms-subhead {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  font-weight: 500;
  margin: 18px 0 8px;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
}

.terms-list li {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
}

.terms-list li::before {
  content: '·';
  color: var(--amber);
  position: absolute;
  left: 4px;
  top: 0;
  font-size: 22px;
  line-height: 1.4;
}

/* ─── Landing footer ─── */

.landing-footer {
  padding: 32px 0 16px;
  text-align: center;
  border-top: 1px solid rgba(74, 103, 65, 0.14);
  margin-top: 16px;
}

.landing-footer a {
  font-size: 13px;
  color: var(--soft);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.landing-footer a:hover { color: var(--moss); }

/* ─── Tagline review (taglines.html) ─── */

.tagline-review-hero { padding-bottom: 24px; }

.tagline-review-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(168, 92, 56, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.tagline-review-summary {
  font-size: 13px;
  color: var(--soft);
  margin: 0;
}

.tagline-group {
  padding: 28px 0;
  border-top: 1px solid rgba(74, 103, 65, 0.14);
}

.tagline-group h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--earth);
  margin: 0 0 4px;
}

.tagline-group-meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0 0 14px;
}

.tagline-card {
  position: relative;
  padding: 14px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 10px;
}

.tagline-card.inactive {
  background: var(--warm);
  opacity: 0.65;
}

.tagline-card-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--earth);
  line-height: 1.35;
  margin: 0;
  padding-right: 60px;
}

.tagline-card-attribution {
  font-size: 11px;
  color: var(--soft);
  margin: 4px 0 0;
  font-style: italic;
}

.tagline-card-state {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
}

.tagline-card.inactive .tagline-card-state {
  color: var(--rust);
}

/* ─── Auth screens (sign-up / confirm / sign-in / welcome) ─── */

.auth-card {
  display: flex; flex-direction: column;
  height: 100%; padding: 32px 24px;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.auth-card .wordmark { margin-bottom: 24px; }

.auth-content {
  width: 100%; max-width: 400px; margin: 0 auto;
  display: flex; flex-direction: column;
}

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; color: var(--earth);
  line-height: 1.2; margin-bottom: 6px;
}

.auth-subtext {
  font-size: 14px; color: var(--soft);
  line-height: 1.5; margin-bottom: 24px;
}

.auth-subtext strong { color: var(--text); font-weight: 500; }

.auth-form { display: flex; flex-direction: column; }

.auth-label {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soft);
  margin-bottom: 6px; margin-top: 14px;
}

.auth-input {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--warm); font-size: 16px;
  font-family: 'DM Sans', sans-serif; background: white;
  color: var(--text); outline: none; transition: border-color 0.15s;
}

.auth-input:focus { border-color: var(--sage); }

.auth-hint {
  font-size: 11px; color: var(--soft); margin-top: 6px;
}

.auth-optional {
  color: var(--soft); font-weight: 400; text-transform: none;
  letter-spacing: 0; font-size: 10px;
}

.auth-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 18px 0 22px; font-size: 13px;
  color: var(--text); line-height: 1.4; cursor: pointer;
}

.auth-check input { margin-top: 2px; flex-shrink: 0; }

.auth-alt {
  margin-top: 20px; font-size: 13px;
  color: var(--soft); text-align: center;
}

.auth-link {
  color: var(--moss); text-decoration: none; font-weight: 500;
}

.auth-link:active { color: var(--earth); }

/* ─── Card-based Interview ─── */

.interview-card {
  display: flex; flex-direction: column; height: 100%;
  padding: 20px; animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.interview-progress {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 32px; padding-top: 8px;
}

.progress-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warm); transition: all 0.2s;
}

.progress-dot.active { background: var(--earth); width: 24px; border-radius: 4px; }
.progress-dot.done { background: var(--sage); }

.interview-content {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  max-width: 400px; margin: 0 auto; width: 100%;
}

.interview-question {
  font-family: 'Playfair Display', serif; font-size: 24px;
  color: var(--earth); line-height: 1.3; margin-bottom: 8px;
}

.interview-subtext {
  font-size: 14px; color: var(--soft); line-height: 1.5; margin-bottom: 24px;
}

.interview-input-area { margin-bottom: 16px; }

.interview-text-input {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--warm); font-size: 16px;
  font-family: 'DM Sans', sans-serif; background: white;
  color: var(--text); outline: none; transition: border-color 0.15s;
}

.interview-text-input:focus { border-color: var(--sage); }

.interview-textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--warm); font-size: 16px;
  font-family: 'DM Sans', sans-serif; background: white;
  color: var(--text); outline: none; resize: none;
  min-height: 100px; line-height: 1.5; transition: border-color 0.15s;
}

.interview-textarea:focus { border-color: var(--sage); }

.interview-helpers { margin-top: 4px; }

.helpers-toggle {
  background: none; border: none; color: var(--soft);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  cursor: pointer; padding: 4px 0;
}

.helpers-toggle:hover { color: var(--moss); }

.helpers-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 10px; animation: fadeIn 0.2s ease;
}

.helper-item {
  background: var(--warm); padding: 10px 14px; border-radius: 12px;
  font-size: 13px; color: var(--text); line-height: 1.4;
}

.interview-nav {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 0 24px; flex-shrink: 0;
}

.interview-nav-spacer { flex: 1; }

.interview-nav-btn {
  padding: 12px 20px; border-radius: 12px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: opacity 0.15s;
}

.interview-nav-btn:active { opacity: 0.85; }
.interview-nav-btn.next { background: var(--earth); color: var(--mist); }
.interview-nav-btn.back { background: var(--warm); color: var(--earth); }
.interview-nav-btn.cancel { background: none; color: var(--soft); padding: 12px 8px; }
.interview-nav-btn.skip { background: none; color: var(--soft); }

/* ─── Confirmation card ─── */

.confirmation-card .interview-content { justify-content: flex-start; padding-top: 24px; }
.confirmation-section { margin-bottom: 24px; }

.confirmation-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 10px; display: block;
}

.vibe-hint { font-size: 11px; color: var(--soft); margin-top: 6px; }

.emoji-picker { display: flex; flex-wrap: wrap; gap: 8px; }

.emoji-option {
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid transparent; background: white; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}

.emoji-option:active { transform: scale(0.9); }
.emoji-option.selected { border-color: var(--earth); background: var(--mist); }

.confirmation-preview { margin-top: 8px; }

.preview-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 10px;
}

.preview-card {
  background: white; border-radius: 14px; padding: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.preview-avatar { font-size: 32px; }
.preview-info { flex: 1; }
.preview-name { font-size: 15px; font-weight: 500; color: var(--text); }
.preview-vibe { font-size: 12px; color: var(--soft); font-style: italic; margin-top: 2px; }

/* ─── Feed screen ─── */

.feed-header {
  background: var(--earth); padding: 14px 20px 16px;
  color: var(--mist); flex-shrink: 0;
}

.feed-header.light { background: var(--cream); color: var(--text); }
.feed-header.light .feed-location { color: var(--soft); }
.feed-header.light .feed-avatar { background: var(--warm); color: var(--earth); }
.feed-header.light .ellipsis-btn { color: var(--soft); }

.feed-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 4px;
}

.feed-title {
  font-family: 'Playfair Display', serif; font-size: 22px;
  line-height: 1.15; flex: 1;
}

.feed-location { font-size: 11px; color: var(--sage); margin-top: 4px; }
.feed-header-actions { display: flex; align-items: center; gap: 8px; }
.feed-avatar-btn { background: none; border: none; cursor: pointer; padding: 0; }

.feed-avatar {
  width: 36px; height: 36px; background: var(--moss); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--mist);
}

.tab-bar {
  display: flex; background: var(--warm);
  border-bottom: 1px solid rgba(0,0,0,0.06); flex-shrink: 0;
}

.tab {
  flex: 1; padding: 10px 0; text-align: center; font-size: 12px;
  color: var(--soft); letter-spacing: 0.05em; cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}

.tab.active {
  color: var(--earth); font-weight: 500; border-bottom-color: var(--amber);
}

.cards-scroll {
  flex: 1; overflow-y: auto; padding: 12px 16px 40px;
  display: flex; flex-direction: column; gap: 12px;
}

.event-card {
  background: white; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); flex-shrink: 0;
  cursor: pointer; transition: transform 0.1s;
}

.event-card:active { transform: scale(0.98); }
.event-card.past { opacity: 0.8; }

.card-accent { height: 3px; background: var(--sage); }
.card-accent.amber { background: var(--amber); }
.card-accent.rust { background: var(--rust); }

.event-card.accent-left { display: flex; flex-direction: row; }
.event-card.accent-left .card-accent { width: 3px; height: auto; min-height: 100%; }
.event-card.accent-left .card-inner { flex: 1; }
.event-card.no-accent .card-accent { display: none; }

.card-body { padding: 12px 14px; }

.card-meta {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 6px;
}

.card-type { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }

.card-going {
  font-size: 10px; background: var(--mist); color: var(--moss);
  padding: 3px 8px; border-radius: 20px; font-weight: 500;
}

.card-title {
  font-family: 'Playfair Display', serif; font-size: 15px;
  color: var(--text); margin-bottom: 4px; line-height: 1.3;
}

.card-details { font-size: 11px; color: var(--soft); display: flex; gap: 12px; }

.card-people-preview {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
}

.people-avatar-small {
  font-size: 16px; width: 28px; height: 28px;
  background: var(--warm); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}

.people-more { font-size: 10px; color: var(--soft); margin-left: 2px; }

.card-action {
  border-top: 1px solid var(--warm); padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
}

.card-action-text { font-size: 11px; color: var(--soft); }

.card-past-label {
  font-size: 11px; color: var(--soft); font-style: italic;
}

/* ─── Detail screen ─── */

.detail-header {
  background: var(--moss); padding: 14px 20px 16px;
  color: var(--mist); flex-shrink: 0;
}

.detail-header-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}

.detail-back {
  font-size: 12px; color: var(--mist); opacity: 0.7;
  margin-bottom: 6px; cursor: pointer; background: none;
  border: none; font-family: 'DM Sans', sans-serif; padding: 0;
}

.detail-title {
  font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2;
}

.detail-type {
  font-size: 11px; color: var(--mist); opacity: 0.6;
  margin-top: 3px; letter-spacing: 0.08em; text-transform: uppercase;
}

.detail-body { flex: 1; overflow-y: auto; padding: 16px; }
.matches-section { margin-bottom: 16px; }

.match-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--warm);
}

.match-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mist); display: flex;
  align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

.match-info { flex: 1; }
.match-name { font-size: 14px; font-weight: 500; color: var(--text); }
.match-vibe { font-size: 11px; color: var(--soft); font-style: italic; }
.match-status { font-size: 12px; color: var(--moss); font-weight: 500; }

.organize-box {
  background: var(--warm); border-radius: 14px;
  padding: 14px; margin-bottom: 14px;
}

.organize-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 10px; }

.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px; color: var(--text);
}

.detail-row:last-child { border-bottom: none; }
.detail-key { color: var(--soft); font-size: 11px; }

.privacy-note {
  background: var(--earth); color: var(--mist); border-radius: 12px;
  padding: 12px 14px; font-size: 12px; line-height: 1.5;
  margin-bottom: 14px; opacity: 0.85;
}

.privacy-tooltip-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--soft); cursor: pointer;
  margin-bottom: 14px; background: none; border: none;
  font-family: 'DM Sans', sans-serif;
}

.privacy-tooltip {
  display: none; background: var(--earth); color: var(--mist);
  border-radius: 12px; padding: 10px 14px; font-size: 12px;
  line-height: 1.5; margin-bottom: 14px; animation: fadeIn 0.2s ease;
}

.privacy-tooltip.show { display: block; }

.detail-footer {
  padding: 12px 16px 40px; display: flex; gap: 10px; flex-shrink: 0;
}

/* ─── Profile screen ─── */

.profile-header {
  background: var(--earth); padding: 14px 20px 16px;
  color: var(--mist); flex-shrink: 0;
}

.profile-header-top {
  display: flex; justify-content: space-between; align-items: flex-start;
}

.profile-header-title {
  font-family: 'Playfair Display', serif; font-size: 20px; margin-top: 4px;
}

.profile-body { flex: 1; overflow-y: auto; padding: 20px 16px 40px; }

.profile-card {
  background: white; border-radius: 14px; padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center;
  margin-bottom: 16px;
}

.profile-avatar-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto 20px;
}

.profile-avatar-large {
  font-size: 48px; width: 72px; height: 72px;
  background: var(--mist); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.profile-avatar-edit { font-size: 10px; color: var(--soft); margin-top: 4px; }
.profile-field { margin-bottom: 16px; text-align: left; }

.profile-field-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 6px; display: block;
}

.profile-field-input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--warm); font-size: 15px;
  font-family: 'DM Sans', sans-serif; background: var(--cream);
  color: var(--text); outline: none; transition: border-color 0.15s;
}

.profile-field-input:focus { border-color: var(--sage); }
.profile-section { margin-bottom: 16px; }

.profile-tellmore-btn {
  width: 100%; background: white; border: 1.5px solid var(--warm);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  text-align: left; transition: all 0.15s;
}

.profile-tellmore-btn:active { transform: scale(0.98); border-color: var(--sage); }
.tellmore-icon { font-size: 24px; }
.tellmore-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tellmore-text strong { font-size: 14px; color: var(--text); }
.tellmore-text small { font-size: 11px; color: var(--soft); }

/* Destructive action: outlined rather than filled so it doesn't shout
   from the page, but unambiguously different from the other buttons. */
.profile-danger-btn {
  width: 100%;
  background: none;
  border: 1.5px solid var(--rust);
  color: var(--rust);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.profile-danger-btn:active { background: rgba(168, 92, 56, 0.08); }
.profile-danger-btn:disabled { opacity: 0.6; cursor: default; }

.profile-signout-btn {
  width: 100%;
  background: none;
  border: 1.5px solid var(--soft);
  color: var(--soft);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.profile-signout-btn:active { background: rgba(107, 124, 108, 0.08); }

.profile-danger-warning {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: rgba(168, 92, 56, 0.08);
  border-radius: 12px;
}

.profile-danger-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.profile-danger-actions .profile-danger-btn { flex: 1; }
.profile-danger-actions .btn-small { flex: 0 0 auto; }

/* ─── Emoji picker overlay ─── */

.emoji-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  align-items: flex-end; justify-content: center;
}

.emoji-overlay.active { display: flex; }

.emoji-overlay-sheet {
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 16px 20px 40px; width: 100%; max-width: 480px;
  animation: slideUp 0.25s ease;
}

/* ─── Suggest change modal ─── */

.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  align-items: flex-end; justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal-sheet {
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 20px 20px 40px; width: 100%; max-width: 480px;
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 36px; height: 4px; background: var(--warm);
  border-radius: 2px; margin: 0 auto 16px;
}

.modal-title {
  font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 16px;
}

.suggest-option {
  background: white; border-radius: 12px; padding: 12px 14px;
  margin-bottom: 8px; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04); transition: all 0.15s;
}

.suggest-option:active { background: var(--mist); }
.suggest-label { font-size: 13px; color: var(--text); }
.suggest-value { font-size: 13px; color: var(--soft); }

/* ─── Ellipsis menu ─── */

.ellipsis-btn {
  background: none; border: none; color: inherit;
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  line-height: 1; opacity: 0.7; letter-spacing: 2px;
}

.ellipsis-btn:active { opacity: 1; }

.ellipsis-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 200;
  align-items: flex-end; justify-content: center;
}

.ellipsis-overlay.active { display: flex; }

.ellipsis-sheet {
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 16px 20px 40px; width: 100%; max-width: 480px;
  max-height: 70vh; overflow-y: auto; animation: slideUp 0.25s ease;
}

.alt-group { margin-bottom: 16px; }

.alt-group-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 8px;
}

.alt-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  cursor: pointer; transition: background 0.15s; margin-bottom: 2px;
}

.alt-option:active { background: var(--warm); }

.alt-option.selected {
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.alt-radio { font-size: 14px; color: var(--soft); flex-shrink: 0; }
.alt-option.selected .alt-radio { color: var(--earth); }
.alt-option-label { font-size: 13px; color: var(--text); flex: 1; }

.alt-vote-btn {
  background: var(--warm); border: none; border-radius: 8px;
  padding: 4px 8px; font-size: 14px; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0;
}

.alt-vote-btn.voted { background: var(--mist); }

.alt-feedback-section { padding-top: 8px; border-top: 1px solid var(--warm); }

.alt-feedback-btn {
  width: 100%; background: white; border: 1.5px solid var(--warm);
  border-radius: 12px; padding: 12px 16px; font-size: 14px;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  cursor: pointer; text-align: center; transition: all 0.15s;
}

.alt-feedback-btn:active { background: var(--mist); border-color: var(--sage); }

/* ─── Feedback form ─── */

.feedback-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); z-index: 250;
  align-items: flex-end; justify-content: center;
}

.feedback-overlay.active { display: flex; }

.feedback-sheet {
  background: var(--cream); border-radius: 20px 20px 0 0;
  padding: 16px 20px 40px; width: 100%; max-width: 480px;
  animation: slideUp 0.25s ease;
}

.feedback-title {
  font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 16px;
}

.feedback-textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--warm); font-size: 14px;
  font-family: 'DM Sans', sans-serif; background: white;
  color: var(--text); outline: none; resize: none;
  min-height: 80px; line-height: 1.5; margin-bottom: 16px;
}

.feedback-textarea:focus { border-color: var(--sage); }

.feedback-rating-section { margin-bottom: 16px; }
.feedback-rating-label { font-size: 12px; color: var(--soft); margin-bottom: 10px; }
.feedback-rating-row { display: flex; gap: 8px; justify-content: center; }

.feedback-rating-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 2px solid transparent; background: white; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
}

.feedback-rating-btn:active { transform: scale(0.9); }
.feedback-rating-btn.selected { border-color: var(--earth); background: var(--mist); }
.feedback-submit { margin-top: 8px; }

.feedback-status {
  text-align: center; font-size: 12px; margin-top: 10px; min-height: 18px;
}

.feedback-status.success { color: var(--moss); }
.feedback-status.error { color: var(--rust); }

/* ─── Debrief screen ─── */

.debrief-header {
  background: var(--amber); padding: 14px 20px 16px;
  color: white; flex-shrink: 0;
}

.debrief-header .detail-back { color: white; }
.debrief-header .ellipsis-btn { color: white; }

.debrief-title {
  font-family: 'Playfair Display', serif; font-size: 22px; line-height: 1.2;
}

.debrief-body {
  flex: 1; overflow-y: auto; padding: 16px 16px 40px;
}

.debrief-section { margin-bottom: 20px; }

.debrief-rating {
  display: flex; gap: 8px; justify-content: center;
}

.debrief-rating-btn {
  width: 48px; height: 48px; border-radius: 14px;
  border: 2px solid transparent; background: white; font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.debrief-rating-btn:active { transform: scale(0.9); }
.debrief-rating-btn.selected { border-color: var(--amber); background: var(--warm); }

.debrief-people {
  display: flex; flex-direction: column; gap: 4px;
}

.debrief-person {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px;
  background: white; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.15s;
}

.debrief-person:has(.debrief-checkbox:checked) {
  background: var(--mist); border-color: var(--sage);
}

.debrief-checkbox {
  width: 18px; height: 18px; accent-color: var(--moss);
  flex-shrink: 0;
}

.debrief-person-avatar { font-size: 20px; }
.debrief-person-name { font-size: 14px; color: var(--text); }

.debrief-textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--warm); font-size: 14px;
  font-family: 'DM Sans', sans-serif; background: white;
  color: var(--text); outline: none; resize: none;
  min-height: 70px; line-height: 1.5;
}

.debrief-textarea:focus { border-color: var(--sage); }

.debrief-goagain {
  display: flex; gap: 8px;
}

.debrief-goagain-btn {
  flex: 1; padding: 12px 8px; border-radius: 12px;
  border: 1.5px solid var(--warm); background: white;
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  color: var(--text); cursor: pointer; text-align: center;
  transition: all 0.15s;
}

.debrief-goagain-btn:active { transform: scale(0.97); }

.debrief-goagain-btn.selected {
  background: var(--earth); color: var(--mist);
  border-color: var(--earth);
}

.debrief-deepdive { margin-top: 16px; }

/* Debrief summary */
.debrief-summary-card {
  background: white; border-radius: 14px; padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--warm);
}

.summary-row:last-child { border-bottom: none; }
.summary-label { font-size: 12px; color: var(--soft); }
.summary-value { font-size: 14px; color: var(--text); }

/* ─── Toast notifications ─── */

.toast {
  position: fixed; bottom: 60px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--earth); color: var(--mist);
  padding: 10px 20px; border-radius: 12px; font-size: 13px;
  z-index: 300; opacity: 0; transition: all 0.25s ease;
  pointer-events: none; white-space: nowrap;
}

.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ─── Feed: propose CTA + empty / loading states ─── */

.feed-propose-btn {
  margin-top: 14px;
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--mist);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.feed-header.light .feed-propose-btn {
  background: var(--cream);
  border-color: var(--warm);
  color: var(--earth);
}

.feed-propose-btn:active { transform: scale(0.99); }

.feed-propose-plus {
  font-size: 18px; line-height: 1; opacity: 0.8;
}

.feed-loading {
  padding: 40px 20px; text-align: center; color: var(--soft); font-size: 13px;
}

.edit-door-option {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text); padding: 4px 0;
}

.feed-section-label {
  margin: 18px 4px 8px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft);
}

.feed-section-label:first-child {
  margin-top: 4px;
}

.feed-empty {
  padding: 60px 20px 40px; text-align: center;
}

.feed-empty p {
  margin-bottom: 6px; font-size: 14px; color: var(--text);
}

.feed-empty p.feed-empty-sub {
  color: var(--soft); font-size: 13px; margin-bottom: 20px;
}

.feed-empty-cta { max-width: 240px; margin: 0 auto; }

.card-organizer {
  margin-top: 8px; font-size: 11px; color: var(--soft);
  font-style: italic;
}

/* ─── Propose form ─── */

.propose-intro {
  font-size: 13px; line-height: 1.5; color: var(--soft);
  margin-bottom: 18px; padding: 0 4px;
}

.propose-intro em { color: var(--earth); font-style: normal; font-weight: 500; }

.propose-form {
  background: white; border-radius: 14px; padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.propose-textarea {
  font-family: 'DM Sans', sans-serif;
  resize: vertical; min-height: 72px;
}

.profile-field-hint {
  display: block; margin-top: 6px; font-size: 11px; color: var(--soft);
  line-height: 1.4;
}

.event-action-hint {
  font-size: 12px; color: var(--soft); line-height: 1.5; margin: 4px 0 8px;
}

.event-roster { margin: 6px 0 2px; }

.debrief-field { margin: 10px 0; }
.debrief-q { display: block; font-size: 12.5px; color: var(--earth); margin-bottom: 6px; }
.debrief-chip-row { flex-wrap: wrap; }
.debrief-chip.selected { background: var(--moss); color: #fff; border-color: var(--moss); }
.debrief-person { display: flex; gap: 6px; margin: 4px 0; align-items: center; flex-wrap: wrap; }
.debrief-see-again.selected { background: var(--amber); border-color: var(--amber); color: #fff; }
.reflection-thread { margin: 8px 0; }
.reflection-line {
  font-size: 13px; line-height: 1.5; padding: 6px 10px; border-radius: 10px;
  margin: 4px 0; max-width: 90%;
}
.reflection-us { background: color-mix(in srgb, var(--sage) 18%, transparent); }
.reflection-member { background: color-mix(in srgb, var(--mist) 40%, transparent); margin-left: auto; }

.debrief-conduct-link {
  display: block; background: none; border: none; padding: 4px 0;
  font-size: 12px; color: var(--soft); text-decoration: underline; cursor: pointer;
}
.debrief-conduct-link.selected { color: var(--rust); }

.roster-line {
  font-size: 12.5px; line-height: 1.6; color: var(--earth);
}

.roster-label {
  color: var(--soft); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.04em; margin-right: 6px;
}

.event-conflict-note {
  background: color-mix(in srgb, var(--amber) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--earth);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.shake { animation: shake 0.3s ease; border-color: var(--rust) !important; }

/* ─── Event detail (real events) ─── */

.event-detail-loading {
  padding: 40px 20px; text-align: center; color: var(--soft); font-size: 13px;
}

.event-card-large {
  background: white; border-radius: 14px; padding: 22px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.event-card-meta {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}

.event-state {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--mist); color: var(--earth);
  padding: 4px 10px; border-radius: 999px; font-weight: 500;
}

.event-state-proposed { background: rgba(196, 133, 58, 0.15); color: var(--amber); }
.event-state-planned { background: rgba(122, 158, 110, 0.18); color: var(--moss); }
.event-state-in-progress { background: rgba(168, 92, 56, 0.18); color: var(--rust); }
.event-state-over, .event-state-cancelled { background: var(--warm); color: var(--soft); }

.event-source {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); padding: 4px 0;
}

.event-edited {
  font-size: 10px; letter-spacing: 0.06em; text-transform: lowercase;
  color: var(--soft); font-style: italic; padding: 4px 0;
}

.event-title {
  font-family: 'Playfair Display', serif; font-size: 22px;
  color: var(--earth); margin-bottom: 10px; line-height: 1.25;
}

.event-description {
  font-size: 14px; line-height: 1.55; color: var(--text);
  margin-bottom: 18px;
}

.event-facts {
  display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px;
}

.event-fact {
  display: flex; gap: 12px; align-items: baseline;
}

.event-fact-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft); flex: 0 0 100px;
}

.event-fact-value {
  font-size: 14px; color: var(--text); flex: 1;
}

.event-counts {
  display: flex; gap: 18px; padding-top: 14px;
  border-top: 1px solid var(--warm); margin-top: 4px;
  font-size: 13px; color: var(--soft);
}

.event-count strong { color: var(--text); font-weight: 500; margin-right: 4px; }

.event-detail-hint {
  margin-top: 18px; padding: 10px 12px;
  background: var(--cream); border-radius: 10px;
  font-size: 12px; color: var(--soft); text-align: center;
  font-style: italic;
}

.event-actions {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--warm);
  display: flex; flex-direction: column; gap: 10px;
}

.event-action-status {
  font-size: 13px; color: var(--moss); font-weight: 500;
  text-align: center; padding: 6px 0;
}

.event-action-row {
  display: flex; gap: 10px;
}

.event-action-row > button { flex: 1; }

.btn-secondary {
  width: 100%;
  background: white;
  color: var(--earth);
  border: 1.5px solid var(--moss);
  border-radius: 14px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}

.btn-secondary:active { background: var(--mist); }
.btn-secondary:disabled { opacity: 0.5; cursor: default; }

.btn-outline-rust {
  background: none;
  border: 1.5px solid var(--rust);
  color: var(--rust);
  border-radius: 14px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}

.btn-outline-rust:active { background: rgba(168, 92, 56, 0.08); }
.btn-outline-rust:disabled { opacity: 0.5; cursor: default; }

/* Organizer controls on event detail */

.event-organizer-controls {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--warm);
  display: flex; flex-direction: column; gap: 12px;
}

.organizer-controls-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft);
}

.organizer-threshold-met {
  padding: 10px 12px;
  background: rgba(196, 133, 58, 0.10);
  border-radius: 10px;
  font-size: 13px; line-height: 1.5;
  color: var(--earth);
}

.organizer-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
  padding: 6px 0;
  cursor: pointer;
}

.organizer-toggle input[type="checkbox"] {
  width: 18px; height: 18px; accent-color: var(--moss);
  cursor: pointer;
}

/* Suggestions section */

.event-suggestions {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--warm);
}

.suggestions-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}

.suggestions-count {
  font-size: 11px; color: var(--soft);
  background: var(--cream); padding: 2px 8px; border-radius: 999px;
}

.suggestions-hint {
  font-size: 12px; color: var(--soft); line-height: 1.4;
  margin-bottom: 12px;
}

.suggest-form {
  margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 8px;
}

.suggest-textarea {
  font-family: 'DM Sans', sans-serif; resize: vertical; min-height: 56px;
  font-size: 14px;
}

.suggest-tag-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.suggest-tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--cream); font-size: 11px; color: var(--soft);
  cursor: pointer;
}

.suggest-tag-chip input { accent-color: var(--moss); cursor: pointer; }
.suggest-tag-chip:has(input:checked) {
  background: rgba(122, 158, 110, 0.18); color: var(--moss);
}

.suggest-char-count {
  margin-left: auto; font-size: 11px; color: var(--soft);
}

.suggestions-list {
  display: flex; flex-direction: column; gap: 10px;
}

.suggestions-empty {
  font-size: 12px; color: var(--soft); text-align: center;
  padding: 12px 0;
}

.suggest-row {
  background: var(--cream); border-radius: 12px; padding: 12px;
}

.suggest-meta {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-bottom: 6px; font-size: 11px;
}

.suggest-author {
  color: var(--text); font-weight: 500;
}

.suggest-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(122, 158, 110, 0.18); color: var(--moss);
  text-transform: lowercase;
}

.suggest-tag-place {
  background: rgba(196, 133, 58, 0.15); color: var(--amber);
}

.suggest-status {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--warm); color: var(--soft); text-transform: lowercase;
}

.suggest-status-adopted { background: rgba(122, 158, 110, 0.25); color: var(--moss); }
.suggest-status-rejected, .suggest-status-withdrawn { background: var(--warm); color: var(--soft); }

.suggest-text {
  font-size: 13px; line-height: 1.5; color: var(--text); margin: 0;
}

.suggest-response {
  margin-top: 8px; padding: 8px 10px;
  background: white; border-radius: 8px;
  border-left: 3px solid var(--moss);
}

.suggest-response-label {
  display: block; font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 2px;
}

.suggest-response-text {
  font-size: 13px; line-height: 1.45; color: var(--text);
}

.suggest-actions {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; flex-wrap: wrap;
}

.suggest-vote {
  background: white; border: 1px solid var(--warm);
  color: var(--text); padding: 4px 10px;
  border-radius: 999px; font-family: 'DM Sans', sans-serif;
  font-size: 11px; cursor: pointer;
}

.suggest-vote.voted {
  background: rgba(122, 158, 110, 0.18); border-color: var(--moss);
  color: var(--moss);
}

.suggest-link {
  background: none; border: none; padding: 0;
  font-size: 11px; color: var(--soft);
  text-decoration: underline; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

.suggest-link:active { color: var(--earth); }
.suggest-link-warn { color: var(--rust); }

/* Debrief section */

.event-debrief {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--warm);
}

.event-debrief-done {
  background: var(--cream); border-radius: 10px;
  padding: 12px; margin-top: 14px;
  border-top: none;
}

.debrief-form {
  display: flex; flex-direction: column; gap: 10px; margin-top: 8px;
}

.debrief-rating {
  display: flex; gap: 4px;
}

.debrief-star {
  background: none; border: none; padding: 0;
  font-size: 28px; line-height: 1;
  color: var(--warm); cursor: pointer;
  transition: color 0.1s;
}

.debrief-star.selected, .debrief-star:active { color: var(--amber); }

.debrief-saved-row {
  display: flex; flex-direction: column; gap: 6px;
}

.debrief-saved-stars {
  font-size: 20px; color: var(--amber); letter-spacing: 2px;
}

.debrief-saved-notes {
  font-size: 13px; color: var(--text); line-height: 1.5;
}

/* Polls section */

.poll-new-details {
  margin-bottom: 12px;
  background: var(--cream); border-radius: 10px;
  padding: 8px 12px;
}

.poll-new-summary {
  cursor: pointer; font-size: 12px;
  color: var(--moss); padding: 4px 0;
  list-style: none;
}

.poll-new-summary::-webkit-details-marker { display: none; }

.poll-form {
  margin-top: 10px;
  display: flex; flex-direction: column; gap: 8px;
}

.poll-options {
  display: flex; flex-direction: column; gap: 6px;
}

.poll-option-input {
  font-size: 13px; padding: 8px 10px;
}

.poll-form-actions {
  display: flex; justify-content: space-between; align-items: center;
}

.polls-list {
  display: flex; flex-direction: column; gap: 12px;
}

.poll-card {
  background: var(--cream); border-radius: 12px; padding: 12px;
}

.poll-question {
  font-size: 14px; font-weight: 500; color: var(--text);
  margin-bottom: 4px;
}

.poll-meta {
  font-size: 11px; color: var(--soft); margin-bottom: 10px;
}

.poll-options-list {
  display: flex; flex-direction: column; gap: 6px;
}

.poll-option {
  position: relative; overflow: hidden;
  background: white; border: 1px solid var(--warm);
  border-radius: 10px; padding: 10px 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: border-color 0.15s;
  text-align: left;
}

.poll-option:not(:disabled):active { transform: scale(0.99); }
.poll-option:disabled { cursor: default; opacity: 0.85; }

.poll-option-mine { border-color: var(--moss); }
.poll-option-outcome {
  border-color: var(--moss);
  background: rgba(122, 158, 110, 0.10);
}

.poll-option-bar {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: rgba(122, 158, 110, 0.15);
  transition: width 0.25s ease;
  z-index: 0;
}

.poll-option-content {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}

.poll-option-label {
  font-size: 13px; color: var(--text);
}

.poll-option-stats {
  font-size: 11px; color: var(--soft); white-space: nowrap;
}

.poll-actions {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--warm);
  display: flex; flex-wrap: wrap; gap: 12px;
}

.suggest-status-closed { background: var(--warm); color: var(--soft); }

/* Feed card "you're in" badges */

.card-mylevel {
  display: inline-block; margin-top: 8px;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px;
  font-weight: 500;
}

.mylevel-interested {
  background: rgba(196, 133, 58, 0.15); color: var(--amber);
}

.mylevel-conflict {
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: var(--amber);
}

.mylevel-full {
  background: color-mix(in srgb, var(--earth) 12%, transparent);
  color: var(--earth);
}

.mylevel-cancelled-on-me {
  background: color-mix(in srgb, var(--rust) 16%, transparent);
  color: var(--rust);
}

.mylevel-confirmed {
  background: rgba(122, 158, 110, 0.18); color: var(--moss);
}

/* ─── Admin / workshop screen ─── */

.admin-card { text-align: left; }

.admin-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--earth);
  margin-bottom: 12px;
}

.admin-time-display {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.45;
}

.admin-time-display small { color: var(--soft); font-size: 11px; }

.admin-time-row { margin-bottom: 12px; }

.admin-inline-form {
  display: flex; gap: 8px; align-items: stretch;
}

.admin-inline-form .profile-field-input { flex: 1; }
.admin-inline-form .btn-small { flex: 0 0 auto; }

.admin-reset-btn {
  background: none;
  border: 1.5px solid var(--rust);
  color: var(--rust);
}

.admin-reset-btn:active { background: rgba(168, 92, 56, 0.08); }

.admin-notify-meta {
  font-size: 12px; color: var(--soft); margin-bottom: 10px;
}

.admin-notify-list {
  display: flex; flex-direction: column; gap: 8px;
}

.admin-notify-row {
  background: var(--cream);
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-notify-email {
  font-size: 14px; color: var(--text); word-break: break-all;
}

.admin-notify-meta-line {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 11px; color: var(--soft); margin-top: 4px;
}


/* ─── "How we understand you" panel (D59) ─── */

.model-panel {
  margin-top: 10px;
  background: var(--cream);
  border-radius: 12px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 14px;
}

.model-note { font-size: 12px; color: var(--soft); line-height: 1.5; }

.model-dim { display: flex; flex-direction: column; gap: 6px; }

.model-dim-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
}

.model-dim-title { font-size: 13px; font-weight: 600; color: var(--text); }

.model-source { font-size: 11px; color: var(--soft); font-style: italic; }

.model-positions { display: flex; flex-wrap: wrap; gap: 6px; }

.model-pos-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--mist);
  background: none;
  color: var(--text);
}

.model-pos-btn.selected {
  border-color: var(--moss);
  background: var(--moss);
  color: #fff;
}

.model-story { font-size: 12px; color: var(--soft); font-style: italic; }

.model-group { display: flex; flex-direction: column; gap: 6px; }

.model-group-title { font-size: 13px; font-weight: 600; color: var(--text); }

.model-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.model-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--text);
}

.model-chip em { font-style: italic; color: var(--soft); }

.model-chip-x {
  border: none; background: none; color: var(--soft);
  font-size: 14px; line-height: 1; padding: 0 2px;
}

.model-add { display: flex; gap: 8px; align-items: center; }
.model-add .profile-field-input { flex: 1; }

/* ─── Debrief avoidance (D49): tucked-away, never a rating ─── */

.debrief-more-btn { min-width: 34px; }

.debrief-avoid-options {
  flex-basis: 100%;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 4px 4px;
}

.debrief-avoid-note {
  font-size: 12px; color: var(--soft); line-height: 1.5;
  margin-top: 8px;
}

/* ─── Locality line (D62): effort words + exceptions/wish affordances ─── */

.locality-actions {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}

.locality-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--mist);
  background: none;
  color: var(--soft);
}

.locality-chip:disabled { opacity: 0.7; }
