:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --line: #dbe6ec;
  --line-strong: #bfd0da;
  --text: #17232b;
  --muted: #647783;
  --blue: #2878d8;
  --blue-dark: #165eb1;
  --green: #1f9d73;
  --yellow: #c88a1b;
  --coral: #d95d50;
  --teal: #1d938f;
  --shadow: 0 18px 45px rgba(32, 60, 80, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.side-nav {
  display: none;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

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

.nav-item {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  text-align: left;
}

.nav-item.active {
  color: var(--blue-dark);
  border-color: #cfe2f6;
  background: #eef6ff;
  font-weight: 700;
}

.share-box {
  margin-top: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.share-box span,
.share-box strong {
  display: block;
}

.share-box span {
  color: var(--muted);
  font-size: 13px;
}

.share-box strong {
  margin: 6px 0 12px;
  word-break: break-all;
  font-size: 14px;
}

.main-stage {
  min-width: 0;
  padding: 32px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

.screen-header,
.workspace-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.primary-button,
.ghost-button,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
}

.primary-button {
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(40, 120, 216, 0.22);
}

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.ghost-button {
  padding: 0 14px;
  color: var(--blue-dark);
  border-color: #cfe2f6;
  background: #f4f9ff;
}

.ghost-button.small {
  min-height: 34px;
  width: 100%;
}

.icon-button {
  width: 40px;
  padding: 0;
  color: var(--muted);
  border-color: var(--line);
  background: white;
  font-size: 24px;
}

.full-width {
  width: 100%;
}

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

.project-form,
.preview-panel,
.join-card,
.generate-card,
.side-section,
.destination-card,
.modal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-form {
  padding: 24px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
}

label span,
legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #fbfdff;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
  padding: 12px;
  line-height: 1.55;
}

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

.segmented,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented button,
.tag-cloud button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: white;
}

.segmented button.selected,
.tag-cloud button.selected {
  color: var(--blue-dark);
  border-color: #afd5f8;
  background: #edf7ff;
  font-weight: 750;
}

.tag-cloud.compact button {
  min-height: 34px;
}

.preview-panel {
  padding: 20px;
  overflow: hidden;
}

.mini-map {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #0b4f81;
  background:
    linear-gradient(120deg, rgba(40, 120, 216, 0.18), transparent 55%),
    linear-gradient(40deg, rgba(31, 157, 115, 0.2), transparent 60%),
    #e9f5fb;
}

.mini-map i {
  width: 68%;
  border-top: 2px dashed rgba(11, 79, 129, 0.4);
}

.preview-stack {
  display: grid;
  gap: 10px;
}

.preview-stack article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.preview-stack strong,
.preview-stack span {
  display: block;
}

.preview-stack span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.generate-card {
  width: min(560px, 100%);
  margin: 15vh auto 0;
  padding: 36px;
  text-align: center;
}

.pulse-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--blue) 0 28%, transparent 29%),
    radial-gradient(circle at center, rgba(40, 120, 216, 0.22) 0 62%, transparent 63%);
  animation: pulse 1.3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.04);
  }
}

.progress-lines {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.progress-lines span {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef4f8;
  color: var(--muted);
  font-weight: 700;
}

.progress-lines span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(40, 120, 216, 0.25), rgba(31, 157, 115, 0.18));
}

.progress-lines span {
  isolation: isolate;
}

.join-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.join-card {
  width: min(520px, 100%);
  padding: 28px;
}

.join-status {
  min-height: 20px;
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.join-status[data-tone="error"] {
  color: #c83f33;
}

.trip-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.trip-summary span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 13px;
  font-weight: 700;
}

.avatar-picker,
.member-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}

.avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(10, 30, 50, 0.08);
}

button.avatar {
  padding: 0;
}

.avatar.selected {
  box-shadow: 0 0 0 3px #cfe2f6;
}

.avatar-a { background: #5b8dee; }
.avatar-b { background: #e87ab5; }
.avatar-c { background: #f5a623; }
.avatar-d { background: #9b59b6; }
.avatar-e { background: #27ae60; }
.avatar-f { background: #e67e22; }
.avatar-g { background: #2ecc71; }
.avatar-h { background: #3498db; }
.avatar-i { background: #e74c3c; }
.avatar-j { background: #1abc9c; }

.workspace-top {
  align-items: center;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.member-row {
  margin: 0;
}

.member-row .avatar + .avatar {
  margin-left: -16px;
}

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

.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.destination-list h2,
.side-section h2 {
  margin-bottom: 0;
}

#destinationCards {
  display: grid;
  gap: 16px;
}

.destination-card {
  overflow: hidden;
}

.destination-main {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.destination-photo {
  min-height: 156px;
  border-radius: 8px;
  background: var(--photo);
  background-position: center;
  background-size: cover;
}

.destination-content {
  min-width: 0;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #315967;
  background: #eef5f7;
  font-size: 12px;
  font-weight: 750;
}

.destination-content p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}

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

.meta-grid span {
  display: block;
  min-height: 50px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.meta-grid strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.vote-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
}

.vote-button {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: white;
  font-weight: 750;
  transition: all 120ms ease;
}

.vote-symbol {
  font-size: 18px;
  line-height: 1;
}

.vote-button[data-vote="heart"].active {
  border-color: rgba(31, 157, 115, 0.45);
  background: #eaf8f3;
  color: var(--green);
}

.vote-button[data-vote="veto"].active {
  border-color: rgba(217, 93, 80, 0.45);
  background: #fff0ee;
  color: var(--coral);
}

.vote-count {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(100, 119, 131, 0.12);
  font-size: 12px;
}

.detail-button {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfe2f6;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #f4f9ff;
  font-weight: 800;
}

.insight-column {
  display: grid;
  gap: 16px;
}

.side-section {
  padding: 18px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.ranking-item b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: #edf7ff;
}

.ranking-item span {
  color: var(--muted);
  font-size: 13px;
}

.comment-feed {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.comment-feed article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.comment-feed strong,
.comment-feed span {
  display: block;
}

.comment-feed span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 44, 0.24);
  z-index: 20;
}

.close-drawer,
.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
}

.drawer-hero {
  min-height: 220px;
  margin: 44px -4px 22px;
  border-radius: 8px;
  background: var(--photo);
}

.drawer-section {
  margin: 0 0 22px;
}

.drawer-section p,
.drawer-section li {
  color: var(--muted);
  line-height: 1.65;
}

.day-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.day-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.vote-members {
  display: grid;
  gap: 10px;
}

.vote-members article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vote-members strong {
  display: block;
  margin-bottom: 8px;
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  padding: 28px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .share-box {
    display: none;
  }

  .create-layout,
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-stage {
    padding: 18px;
  }

  .screen-header,
  .workspace-top,
  .top-actions,
  .list-toolbar {
    display: grid;
    align-items: start;
  }

  h1 {
    font-size: 26px;
  }

  .form-grid,
  .destination-main,
  .meta-grid,
  .vote-strip {
    grid-template-columns: 1fr;
  }

  .destination-photo {
    min-height: 180px;
  }

  .nav-list {
    grid-template-columns: 1fr;
  }
}

/* workspace uses the default light theme from :root */

#screen-workspace {
  max-width: 1480px;
  margin: 0 auto;
}

#screen-workspace .eyebrow {
  color: var(--teal);
}

#screen-workspace h1,
#screen-workspace h2,
#screen-workspace h3 {
  color: var(--text);
}

.happy-top {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.token-notice {
  padding: 10px 20px;
  border: 2px solid #ffc107;
  border-radius: 8px;
  color: #664d03;
  background: #fff3cd;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.happy-hero {
  position: relative;
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #1d3557, #457b9d);
  box-shadow: 0 12px 30px rgba(29, 53, 87, 0.18);
}

.happy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}

#screen-workspace .happy-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0;
  padding: 0 24px;
  color: #ffffff;
  text-align: center;
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 900;
  line-height: 1.15;
}

.countdown-board {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.countdown-unit {
  min-width: 68px;
  width: auto;
  padding: 6px 14px;
  min-height: 60px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.countdown-unit strong {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
}

.countdown-unit span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.countdown-colon {
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1;
  align-self: center;
}

.core-slogan {
  padding: 10px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, #e63946, #f4845f);
  text-align: center;
  font-size: clamp(12px, 1.3vw, 16px);
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(230, 57, 70, 0.14);
}

.workspace-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  background: #f0faf8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  font-weight: 850;
}

.countdown-pill b,
.countdown-pill span {
  color: var(--muted);
  font-size: 12px;
}

.countdown-pill strong {
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
}

#screen-workspace .trip-summary span {
  color: var(--muted);
  border-color: var(--line);
  background: #fbfdff;
}

.project-goal {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

#screen-workspace .ghost-button {
  color: var(--blue-dark);
  border-color: #cfe2f6;
  background: #f4f9ff;
}

#screen-workspace .primary-button {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(40, 120, 216, 0.22);
}

.summary-table-card {
  overflow: hidden;
  margin: 10px 0 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.summary-table-head h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.sort-toggle-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.sort-toggle {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background 150ms, color 150ms;
}

.sort-toggle:hover {
  background: #eef4f8;
}

.sort-toggle.active {
  background: var(--teal);
  color: #fff;
}

.summary-table-head > span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 12px;
  font-weight: 750;
}

.summary-table-wrap {
  overflow-x: auto;
}

.summary-expand-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px;
}

.expand-arrow {
  display: inline-block;
  transition: transform 200ms ease;
  font-size: 11px;
  margin-left: 4px;
}

.expand-arrow.up {
  transform: rotate(180deg);
}

.summary-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.summary-table th,
.summary-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.summary-table th {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.summary-table td {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.summary-table td:first-child {
  width: 210px;
}

.summary-table td:first-child strong,
.summary-table td:first-child span,
.summary-table td:first-child em {
  display: block;
}

.summary-table td:first-child strong {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 18px;
}

.summary-table td:first-child span {
  color: var(--teal);
  font-weight: 800;
}

.summary-table .rank-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 8px;
  border: 1px solid rgba(29, 147, 143, 0.3);
  border-radius: 8px;
  color: var(--teal);
  background: rgba(29, 147, 143, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.summary-table td:first-child em {
  margin-top: 7px;
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.summary-voters,
.summary-votes {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.summary-votes {
  gap: 6px;
}

.summary-votes span {
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(100, 119, 131, 0.08);
  font-size: 12px;
  font-weight: 850;
}

#screen-workspace #destinationCards {
  grid-template-columns: 1fr;
  gap: 22px;
}

.destination-category {
  display: grid;
  gap: 14px;
}

.destination-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.destination-category-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.destination-category-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.category-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.category-actions > span,
.category-actions > button {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
  font-size: 12px;
  font-weight: 850;
}

.category-actions > button {
  color: var(--blue-dark);
  border-color: #cfe2f6;
  background: #75e0cf;
}

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

#screen-workspace .list-toolbar {
  margin-bottom: 18px;
}

#screen-workspace .destination-card {
  position: relative;
  display: grid;
  overflow: hidden;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#screen-workspace .destination-photo {
  min-height: 138px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  overflow: hidden;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 18, 0.08), rgba(7, 14, 18, 0.68)),
    var(--photo);
  background-position: center;
  background-size: cover;
}

#screen-workspace .destination-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.34), transparent 18%),
    linear-gradient(120deg, transparent 0 54%, rgba(255, 255, 255, 0.14) 54% 56%, transparent 56% 100%);
  opacity: 0.7;
}

#screen-workspace .destination-photo strong,
#screen-workspace .destination-photo span {
  position: relative;
  z-index: 1;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.42);
}

#screen-workspace .destination-photo strong {
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
}

#screen-workspace .destination-photo span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #102125;
  background: rgba(117, 224, 207, 0.9);
  font-size: 12px;
  font-weight: 900;
}

#screen-workspace .destination-content {
  padding: 16px;
}

#screen-workspace .destination-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

#screen-workspace .card-topline {
  margin-bottom: 14px;
}

.compact-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.compact-tabs article {
  min-height: 76px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.compact-tabs b {
  display: block;
  width: 24px;
  height: 24px;
  margin-bottom: 7px;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  text-align: center;
  line-height: 24px;
}

.compact-tabs span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.voter-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.voter-row > div {
  display: flex;
  gap: 4px;
}

.voter-row strong {
  color: var(--teal);
}

.avatar.tiny {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.empty-members {
  color: var(--muted);
  font-size: 12px;
}

#screen-workspace .vote-strip {
  border-top-color: var(--line);
  background: #fbfdff;
}

#screen-workspace .vote-button {
  color: var(--text);
  border-color: var(--line);
  background: #fff;
}

#screen-workspace .vote-button[data-vote="heart"].active {
  color: var(--green);
  border-color: rgba(31, 157, 115, 0.45);
  background: #eaf8f3;
}

#screen-workspace .vote-button[data-vote="veto"].active {
  color: var(--coral);
  border-color: rgba(217, 93, 80, 0.45);
  background: #fff0ee;
}

#screen-workspace .detail-button {
  color: var(--blue-dark);
  border-color: #cfe2f6;
  background: #f4f9ff;
  font-weight: 750;
}

#screen-workspace .detail-button::after {
  content: " →";
}

.recommend-ribbon {
  position: absolute;
  top: 16px;
  right: -40px;
  z-index: 2;
  width: 150px;
  padding: 6px 0;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 6px 14px rgba(29, 147, 143, 0.25);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(35deg);
}

.drawer-backdrop {
  background: rgba(5, 10, 13, 0.62);
}

.detail-drawer {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  max-width: 100%;
  height: 90vh;
  overflow: auto;
  padding: 24px;
  border-top: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 -12px 40px rgba(32, 60, 80, 0.18);
  transform: translateY(104%);
  transition: transform 220ms ease;
}

.detail-drawer.bottom-sheet .sheet-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 2px;
  background: var(--line-strong);
}

.detail-drawer.open {
  transform: translateY(0);
}

.drawer-hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: end;
  margin: 34px 0 22px;
  padding: 24px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--photo);
  background-position: center;
  background-size: cover;
}

.drawer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.62));
}

.drawer-hero > div {
  position: relative;
  z-index: 1;
}

.drawer-hero span {
  color: #ffffff;
  font-weight: 780;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.recommend-ribbon.in-hero {
  top: 20px;
  right: -34px;
}

.detail-section {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

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

.detail-section h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
}

.drawer-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0faf8;
}

.drawer-quick-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analysis-section p {
  color: var(--text);
  font-size: 15px;
}

.airbnb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.airbnb-card {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #f0faf8;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.airbnb-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 12px rgba(29, 147, 143, 0.12);
}

.airbnb-card strong {
  color: var(--text);
  font-size: 15px;
}

.airbnb-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.airbnb-card em,
.resource-note {
  color: var(--teal);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.airbnb-card small {
  color: var(--muted);
  font-size: 11px;
}

.airbnb-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(29, 147, 143, 0.12);
  color: var(--teal);
  font-size: 11px;
  font-weight: 750;
}

.resource-note {
  margin: 10px 0 0;
  color: var(--muted);
}

.airbnb-search-all {
  display: block;
  margin: 12px 0 4px;
  padding: 10px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff385c, #e31c5f);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: opacity .15s;
}
.airbnb-search-all:hover {
  opacity: .88;
}

.detail-section p,
.detail-section li {
  color: var(--muted);
  line-height: 1.65;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: 10px;
  padding: 0 12px;
  border-radius: 8px;
  color: #092326;
  background: #75e0cf;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.resource-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.resource-pair span {
  color: var(--muted);
  font-size: 13px;
}

.plan-tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.plan-tab-list button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
  font-weight: 800;
}

.plan-tab-list button.active {
  color: #fff;
  border-color: transparent;
  background: var(--teal);
}

.day-panel {
  padding: 14px;
  border-radius: 8px;
  background: #f0f5f8;
}

.day-panel h3 {
  margin-bottom: 8px;
}

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

.vote-members article {
  border-color: var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

/* ── comment section in drawer ── */
.comment-section {
  margin-top: 0;
}

.comment-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.comment-body {
  min-width: 0;
}

.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-meta strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.comment-meta time {
  color: var(--muted);
  font-size: 11px;
}

.comment-text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.comment-empty {
  padding: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.comment-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.comment-input-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.comment-send-btn {
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.comment-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-mini-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .airbnb-grid,
  .detail-section.split,
  .vote-members {
    grid-template-columns: 1fr;
  }

  .detail-drawer {
    width: 100%;
    height: 80vh;
  }
}

@media (max-width: 720px) {
  .compact-tabs,
  .vote-strip {
    grid-template-columns: 1fr;
  }

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

  .token-notice,
  .core-slogan {
    padding: 8px 14px;
    text-align: left;
  }

  .happy-hero {
    min-height: 140px;
    padding: 14px;
  }

  .countdown-unit {
    width: calc(50% - 7px);
    min-height: 50px;
  }

  .destination-category-head {
    display: grid;
  }

  .detail-drawer {
    width: 100%;
    height: 92vh;
    border-radius: 16px 16px 0 0;
  }
}

/* ── Voter Detail Sidebar ── */
.voter-detail-trigger {
  background: none;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}
.voter-detail-trigger:hover {
  background: #f0f0f0;
  color: #222;
}

.voter-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 900;
}
.voter-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 910;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.voter-sidebar.open {
  transform: translateX(0);
}
.voter-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid #eee;
}
.voter-sidebar-header h3 {
  margin: 0;
  font-size: 18px;
}
.voter-sidebar-section {
  padding: 16px 20px;
}
.voter-sidebar-section h4 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 6px;
}
.voter-sidebar-section h4 .badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.voter-sidebar-section h4 .badge.heart {
  background: #fef2f2;
  color: #dc2626;
}
.voter-sidebar-section h4 .badge.veto {
  background: #f5f5f5;
  color: #666;
}
.voter-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f5f5f5;
}
.voter-list-item:last-child {
  border-bottom: none;
}
.voter-list-item .voter-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: #f0f4ff;
  flex-shrink: 0;
}
.voter-list-item .voter-name {
  font-size: 14px;
  font-weight: 500;
}
.voter-empty {
  color: #999;
  font-size: 13px;
  padding: 8px 0;
}
