:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #68736f;
  --paper: #f5f3ee;
  --panel: #ffffff;
  --line: #ded9ce;
  --line-strong: #c9c1b2;
  --green: #176449;
  --green-soft: #edf7f1;
  --blue: #2f5f87;
  --blue-soft: #edf4fa;
  --coral: #a95042;
  --coral-soft: #fff0ec;
  --gold: #896620;
  --gold-soft: #fff7df;
  --mint: #d9f2df;
  --sky: #dceefa;
  --sun: #ffe8a3;
  --rose: #ffe2d8;
  --berry: #8a4f68;
  --berry-soft: #faedf3;
  --shadow: 0 16px 44px rgba(23, 32, 29, 0.1);
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Charter, "Iowan Old Style", Georgia, Cambria, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #fbfaf5 0%, var(--paper) 42%, #eff7f2 100%);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid rgba(222, 217, 206, 0.82);
  background: rgba(245, 243, 238, 0.94);
  backdrop-filter: blur(12px);
}

.public-header::after {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: -1px;
  left: clamp(16px, 3vw, 34px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--sun), var(--green), var(--blue));
  content: "";
  opacity: 0.7;
}

.public-header-left {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark span {
  font-family: var(--display-font);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  font-weight: 760;
}

.brand-mark small {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(23, 100, 73, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public-nav {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 3px;
  justify-content: end;
  min-width: 0;
  padding: 3px;
  border: 1px solid rgba(222, 217, 206, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 22px rgba(23, 32, 29, 0.055);
}

.public-nav:not(:has(a:not([hidden]))) {
  display: none;
}

.public-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 33px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #58645f;
  font-size: 0.82rem;
  font-weight: 880;
  text-decoration: none;
  white-space: nowrap;
}

.public-nav a:hover,
.public-nav a:focus-visible {
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.public-nav a.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 100, 73, 0.2);
}

.public-nav a span {
  display: inline-flex;
  min-width: 21px;
  min-height: 21px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 900;
}

.public-nav a.active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.auth-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.auth-panel > span {
  max-width: min(42vw, 300px);
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-panel > span:empty {
  display: none;
}

.language-control {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  position: relative;
}

.language-select {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 142px;
  max-width: 142px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 860;
  outline: none;
}

.language-select::after {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.language-select[aria-expanded="true"]::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.language-select span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: rgba(23, 100, 73, 0.42);
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.1);
}

.language-select-native {
  display: none;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 4px;
  width: min(230px, calc(100vw - 24px));
  padding: 7px;
  border: 1px solid rgba(222, 217, 206, 0.96);
  border-radius: 8px;
  background: #fffffc;
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.18);
}

.language-menu[hidden] {
  display: none;
}

.language-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #26302c;
  font-size: 0.84rem;
  font-weight: 860;
  text-align: left;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button.active {
  border-color: rgba(23, 100, 73, 0.22);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.language-menu small {
  display: inline-flex;
  min-width: 28px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.08);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
}

.language-menu button.active small {
  background: var(--green);
  color: #fff;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(46vw, 280px);
  min-height: 38px;
  padding: 3px 9px 3px 4px;
  border: 1px solid rgba(23, 100, 73, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(23, 32, 29, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.profile-button:hover,
.profile-button:focus-visible,
.profile-button.active {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.profile-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-saved-count {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.1);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 950;
}

.profile-button.active .profile-saved-count,
.profile-button:hover .profile-saved-count,
.profile-button:focus-visible .profile-saved-count {
  background: var(--green);
  color: #fff;
}

.auth-panel .secondary-command.compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green);
  color: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(23, 100, 73, 0.14);
}

.auth-panel #signOutButton {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.plan-auth-pending .plan-main {
  visibility: hidden;
}

.public-main {
  display: grid;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px clamp(14px, 2.6vw, 34px) 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  grid-template-rows: auto auto;
  gap: 12px 16px;
  align-items: start;
  min-width: 0;
}

.board-lede {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: minmax(330px, 0.82fr) minmax(300px, 0.68fr);
  gap: 18px;
  align-items: start;
  min-height: 220px;
  padding: 8px 0 2px;
}

.lede-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lede-copy .eyebrow,
.results-toolbar .eyebrow,
.hero-concierge-card .eyebrow {
  color: var(--coral);
}

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

h1 {
  max-width: 660px;
  margin-bottom: 0;
  font-family: var(--display-font);
  font-size: clamp(2rem, 3.35vw, 3.65rem);
  font-weight: 760;
  line-height: 1;
}

.lede-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #4f5b56;
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
}

.mobile-scroll-hint {
  display: none;
}

.hero-concierge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0 13px 13px;
}

.hero-concierge-form.voice-ready {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.hero-concierge-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(23, 100, 73, 0.28);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--ink);
  appearance: none;
  outline: none;
}

.hero-concierge-form input:focus {
  border-color: rgba(23, 100, 73, 0.54);
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.12);
}

.hero-voice-button {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  min-height: 46px;
  border: 1px solid rgba(23, 100, 73, 0.28);
  border-radius: 8px;
  background: #fbfdfb;
  color: var(--green);
  cursor: pointer;
}

.hero-voice-button[hidden] {
  display: none;
}

.hero-voice-button:hover,
.hero-voice-button:focus-visible {
  border-color: rgba(23, 100, 73, 0.54);
  background: var(--green-soft);
  outline: none;
}

.hero-voice-button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.hero-voice-button.is-listening {
  border-color: rgba(172, 62, 40, 0.5);
  background: #fff7f2;
  color: #9f331f;
  box-shadow: 0 0 0 3px rgba(172, 62, 40, 0.12);
}

.hero-voice-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voice-status {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #7c5145;
  font-size: 0.76rem;
  font-weight: 800;
}

.voice-status[hidden] {
  display: none;
}

.hero-agent-panel {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: #f8fbf9;
  box-shadow: none;
}

.hero-agent-panel[hidden] {
  display: none;
}

.hero-concierge-card .hero-agent-panel {
  width: auto;
  margin: 0 13px;
}

.hero-agent-panel span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-agent-panel p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: #30413a;
  font-size: 0.86rem;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hero-agent-panel.is-thinking {
  align-items: center;
  gap: 0;
  padding: 6px 9px;
  border-color: rgba(23, 100, 73, 0.14);
  background: #fbfdfb;
}

.hero-agent-panel.is-thinking > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hero-agent-panel.is-thinking span {
  min-height: 18px;
}

.hero-agent-panel.is-thinking p {
  display: inline-flex;
  align-items: center;
  margin: 0;
  overflow: visible;
  line-height: 1;
  -webkit-line-clamp: unset;
}

.hero-agent-panel.is-thinking .hero-agent-actions {
  display: none;
}

.thinking-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  min-height: 18px;
  color: var(--green);
}

.thinking-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.32;
  animation: thinking-dot-pulse 1.05s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes thinking-dot-pulse {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.hero-agent-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.hero-agent-actions button,
.hero-agent-actions a {
  min-height: 34px;
}

.hero-agent-signals,
.hero-agent-board-actions,
.hero-agent-feedback,
.hero-agent-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.hero-agent-signals span {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(23, 100, 73, 0.16);
  border-radius: 999px;
  background: #f3f8f5;
  color: #325e4d;
  text-transform: none;
}

.hero-agent-events {
  display: grid;
  gap: 6px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.hero-agent-event {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(40, 52, 47, 0.12);
  border-radius: 8px;
  background: #fbfcf8;
}

.hero-agent-event strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.hero-agent-event p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: #4b5d55;
  font-size: 0.82rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-agent-feedback {
  padding-top: 2px;
}

.hero-agent-follow-up {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  background: #f7f2e8;
  color: #4f4535;
  font-size: 0.85rem;
  font-weight: 760;
}

.hero-agent-follow-up span {
  min-height: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.hero-agent-follow-up-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-agent-follow-up-options button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(137, 102, 32, 0.22);
  border-radius: 8px;
  background: #fffaf0;
  color: #5c4314;
  font-size: 0.78rem;
  font-weight: 860;
}

.hero-agent-follow-up-options button:hover,
.hero-agent-follow-up-options button:focus-visible {
  border-color: rgba(137, 102, 32, 0.4);
  outline: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 680px;
  min-width: 0;
}

.hero-actions button,
.hero-actions a {
  --quick-accent: var(--green);
  --quick-soft: var(--green-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, var(--quick-soft) 100%);
  color: #4f5b56;
  font-size: 0.78rem;
  font-weight: 860;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(23, 32, 29, 0.055);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.hero-actions button:nth-child(1) {
  --quick-accent: var(--coral);
  --quick-soft: var(--coral-soft);
}

.hero-actions button:nth-child(2) {
  --quick-accent: var(--gold);
  --quick-soft: var(--gold-soft);
}

.hero-actions button:nth-child(3) {
  --quick-accent: var(--green);
  --quick-soft: var(--green-soft);
}

.hero-actions button:nth-child(4) {
  --quick-accent: var(--blue);
  --quick-soft: var(--blue-soft);
}

.hero-actions button:nth-child(5) {
  --quick-accent: var(--berry);
  --quick-soft: var(--berry-soft);
}

.hero-actions button:hover,
.hero-actions button:focus-visible,
.hero-actions a:hover,
.hero-actions a:focus-visible {
  border-color: color-mix(in srgb, var(--quick-accent) 42%, transparent);
  color: var(--quick-accent);
  outline: none;
  box-shadow: 0 10px 22px rgba(23, 32, 29, 0.09);
  transform: translateY(-1px);
}

.hero-actions button.active {
  border-color: color-mix(in srgb, var(--quick-accent) 42%, transparent);
  background: var(--quick-soft);
  color: var(--quick-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--quick-accent) 16%, transparent);
}

.city-media {
  position: relative;
  min-height: 300px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #d8ddd9;
}

.city-media::before,
.city-media::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.city-media::before {
  inset: 8px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 6px;
}

.city-media::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, rgba(23, 32, 29, 0), rgba(23, 32, 29, 0.22));
}

.city-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.hero-planner {
  position: sticky;
  top: 82px;
  z-index: 18;
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  align-self: start;
  height: min(390px, calc(100dvh - 96px));
  min-width: 0;
  overflow: hidden;
}

.plan-dialogue {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(23, 100, 73, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0%, #fbfff9 100%);
  box-shadow: 0 10px 24px rgba(23, 32, 29, 0.055);
}

.plan-dialogue .eyebrow {
  margin-bottom: -1px;
}

.hero-concierge-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  min-height: 330px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(23, 100, 73, 0.2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.07);
}

body.concierge-active .hero-concierge-card {
  max-height: min(760px, calc(100dvh - 96px));
  overflow-x: hidden;
  overflow-y: auto;
  border-color: rgba(23, 100, 73, 0.26);
  background: #fffffc;
  scrollbar-color: rgba(23, 100, 73, 0.28) transparent;
  scrollbar-width: thin;
}

body.concierge-active .hero-concierge-card .panel-heading {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 3;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(40, 52, 47, 0.08);
  background: #fffffc;
}

body.concierge-active .hero-concierge-card .concierge-hints {
  display: none;
}

body.concierge-active .hero-agent-panel {
  order: 8;
  flex: 0 0 auto;
  min-height: 0;
  border-color: rgba(23, 100, 73, 0.16);
  border-left: 3px solid rgba(23, 100, 73, 0.34);
  background: #f8fbf9;
  margin-bottom: 0;
  overflow: visible;
  box-shadow: none;
}

body.concierge-active .hero-concierge-card .chat-messages {
  order: 7;
  flex: 0 0 auto;
  gap: 9px;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-top: 8px;
}

body.concierge-active .hero-concierge-form {
  position: sticky;
  bottom: 0;
  z-index: 3;
  order: 10;
  flex: 0 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(40, 52, 47, 0.1);
  background: #fffffc;
  box-shadow: 0 -10px 20px rgba(23, 32, 29, 0.04);
}

body.concierge-active .hero-concierge-card::-webkit-scrollbar {
  width: 7px;
}

body.concierge-active .hero-concierge-card::-webkit-scrollbar-track {
  background: transparent;
}

body.concierge-active .hero-concierge-card::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.3);
  background-clip: padding-box;
}

.hero-concierge-card .panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 13px 0;
}

.chat-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
  align-items: center;
}

.chat-history-control {
  position: relative;
  display: inline-flex;
}

.chat-history-control[hidden],
.chat-history-menu-button[hidden],
.chat-history-menu[hidden] {
  display: none;
}

.chat-history-menu-button {
  display: inline-flex;
  width: 30px;
  min-width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 100, 73, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
}

.chat-history-menu-button:hover,
.chat-history-menu-button:focus-visible,
.chat-history-menu-button[aria-expanded="true"] {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  outline: none;
}

.chat-history-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  width: min(320px, calc(100vw - 24px));
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(40, 52, 47, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(23, 32, 29, 0.16);
}

.chat-history-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 9px;
  color: #2e3d36;
}

.chat-history-menu-header strong {
  font-size: 0.82rem;
  font-weight: 900;
}

.chat-history-menu-header span,
.chat-history-empty,
.chat-history-menu button span {
  color: var(--muted);
  font-size: 0.72rem;
}

.chat-history-menu button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #23342d;
  text-align: left;
}

.chat-history-menu button:hover,
.chat-history-menu button:focus-visible,
.chat-history-menu button.active {
  border-color: rgba(23, 100, 73, 0.16);
  background: #f4faf6;
  outline: none;
}

.chat-history-menu button strong {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-history-empty {
  padding: 12px 8px;
}

.mobile-chat-toggle {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(23, 100, 73, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.mobile-chat-toggle:hover,
.mobile-chat-toggle:focus-visible {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  outline: none;
}

.hero-concierge-card h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.chat-status {
  display: inline-flex;
  min-height: 26px;
  flex: 0 0 auto;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(23, 100, 73, 0.16);
  border-radius: 999px;
  background: #f3f8f5;
  color: #325e4d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.board-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.board-metrics div {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 4px 6px;
  border: 1px solid rgba(40, 52, 47, 0.08);
  border-radius: 7px;
  background: #fff;
}

.board-metrics div:first-child {
  background: var(--green-soft);
}

.board-metrics div:nth-child(2) {
  background: var(--blue-soft);
}

.board-metrics div:nth-child(3) {
  background: var(--gold-soft);
}

.board-metrics strong {
  font-family: var(--display-font);
  font-size: 1.12rem;
  line-height: 1;
}

.board-metrics span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 860;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-band {
  position: sticky;
  top: 76px;
  z-index: 20;
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(23, 100, 73, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(23, 32, 29, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

.mobile-refine-drawer {
  min-width: 0;
  justify-self: start;
}

.mobile-refine-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(23, 100, 73, 0.2);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 900;
  list-style: none;
  white-space: nowrap;
}

.mobile-refine-drawer > summary::-webkit-details-marker {
  display: none;
}

.mobile-refine-drawer > summary::after {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  content: "";
  transform: rotate(45deg) translateY(-2px);
}

.mobile-refine-drawer[open] > summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.mobile-refine-drawer > summary:hover,
.mobile-refine-drawer > summary:focus-visible {
  border-color: rgba(23, 100, 73, 0.34);
  background: #fff;
  outline: none;
}

.mobile-refine-drawer > summary small {
  display: none;
}

.mobile-refine-panel {
  min-width: 0;
  margin-top: 8px;
}

.search-band:not(:has(#mobileRefineDrawer[open])) > .mobile-refine-panel {
  display: none;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.visible-filter-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 9px 12px;
  align-items: start;
  min-width: 0;
  margin-top: 8px;
}

.visible-filter-line {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.filter-exact-date {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  align-items: start;
}

.filter-exact-date input {
  max-width: 220px;
  min-height: 34px;
}

.visible-filter-panel .filter-drawer {
  justify-self: start;
}

.visible-filter-panel .filter-drawer .filter-panel {
  right: auto;
  left: 0;
}

.search-box,
.date-box {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.search-box span,
.date-box span,
.filter-line > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-box {
  position: relative;
}

.search-box span {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(23, 100, 73, 0.12);
  background: #fff;
  color: var(--green);
  transform: translateY(-50%);
}

.search-box input,
.date-box input,
.concierge-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-box input,
.date-box input {
  min-height: 42px;
  padding: 0 13px;
}

.search-box input {
  border-color: rgba(23, 100, 73, 0.18);
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  padding-left: 84px;
}

.concierge-form textarea {
  min-height: 52px;
  max-height: 96px;
  padding: 10px 11px;
  resize: none;
}

.search-box input:focus,
.date-box input:focus,
.concierge-form textarea:focus {
  border-color: rgba(23, 100, 73, 0.5);
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.12);
}

.filter-stack {
  display: grid;
  gap: 8px;
}

.filter-drawer {
  position: relative;
  min-width: 0;
}

.filter-drawer summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(23, 100, 73, 0.2);
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 880;
  list-style: none;
}

.filter-drawer summary::-webkit-details-marker {
  display: none;
}

.filter-drawer summary::after {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-flex;
  align-items: center;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-2px);
}

.filter-drawer[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.filter-drawer summary:hover,
.filter-drawer summary:focus-visible {
  border-color: rgba(23, 100, 73, 0.32);
  outline: none;
}

.filter-drawer summary span {
  font-size: 0.84rem;
}

.filter-drawer summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  gap: 12px;
  width: min(780px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 32, 29, 0.14);
}

.filter-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.filter-line > span {
  padding-top: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.chip-row button,
.prompt-row button,
.view-toggle button,
.secondary-command,
.primary-command {
  min-height: 36px;
  border-radius: 8px;
  font-weight: 840;
}

.chip-row button,
.prompt-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4f5b56;
}

.mobile-refine-panel .filter-line {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}

.mobile-refine-panel .chip-row {
  flex-wrap: nowrap;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.mobile-refine-panel .chip-row button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.76rem;
}

.chip-row button span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.chip-row button.active {
  border-color: rgba(23, 100, 73, 0.35);
  background: var(--green-soft);
  color: var(--green);
}

.secondary-command,
.primary-command {
  padding: 0 13px;
}

.secondary-command {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-command.compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.primary-command {
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
}

.secondary-command:disabled,
.primary-command:disabled {
  cursor: wait;
  opacity: 0.64;
}

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

.event-results {
  min-width: 0;
}

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

.results-toolbar {
  margin-bottom: 12px;
}

.results-toolbar h2,
.panel-heading h2 {
  margin: 2px 0 0;
  font-size: 1.04rem;
}

.view-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 9px;
  align-items: center;
}

#resultsSummary {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.view-toggle {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.search-row .view-toggle {
  min-height: 42px;
  align-self: stretch;
  background: #fbfaf7;
}

.search-row .view-toggle button {
  min-height: 32px;
}

.view-toggle button {
  min-height: 30px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.view-toggle button.active {
  background: var(--green);
  color: #fff;
}

.active-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.active-scope strong,
.active-scope button {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(23, 100, 73, 0.22);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 880;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.active-scope button {
  flex: 0 0 auto;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  min-width: 0;
}

.event-card {
  --card-accent: var(--green);
  --card-soft: #f5fbf7;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 10px;
  min-width: 0;
  min-height: 246px;
  padding: 13px;
  border: 1px solid rgba(23, 32, 29, 0.11);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fff 62%, var(--card-soft) 100%);
  overflow: hidden;
  cursor: default;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px rgba(23, 32, 29, 0.055);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.event-card.card-tone-social {
  --card-accent: var(--green);
  --card-soft: #f2faf5;
}

.event-card.card-tone-builder {
  --card-accent: var(--blue);
  --card-soft: #f0f7fc;
}

.event-card.card-tone-art {
  --card-accent: var(--berry);
  --card-soft: #fbf0f5;
}

.event-card.card-tone-music {
  --card-accent: var(--coral);
  --card-soft: #fff5f1;
}

.event-card.card-tone-food {
  --card-accent: var(--gold);
  --card-soft: #fff7df;
}

.event-card.card-tone-wellness {
  --card-accent: #4f6f3d;
  --card-soft: #f2f7ec;
}

.event-card.card-tone-general {
  --card-accent: var(--muted);
  --card-soft: #f5f3ee;
}

.event-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--card-accent), var(--sun));
  content: "";
  opacity: 0.9;
  transform: scaleX(0.44);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.22s ease, filter 0.18s ease;
}

.event-card:hover,
.event-card.selected {
  border-color: color-mix(in srgb, var(--card-accent) 42%, transparent);
  background: #fffdfa;
  box-shadow: 0 18px 38px rgba(23, 32, 29, 0.12);
  transform: translateY(-3px) rotate(-0.25deg);
}

.event-card:nth-child(even):hover,
.event-card:nth-child(even).selected {
  transform: translateY(-3px) rotate(0.25deg);
}

.event-card:hover::before,
.event-card.selected::before {
  opacity: 1;
  transform: scaleX(1);
  filter: saturate(1.1);
}

.event-card.selected {
  border-color: color-mix(in srgb, var(--card-accent) 52%, transparent);
}

.event-card:hover .date-pill,
.event-card:hover .cue-pill,
.event-card:hover .score-pill,
.event-card:hover .source-pill {
  transform: translateY(-1px);
}

.event-card:hover .event-action-bar {
  border-top-color: rgba(40, 52, 47, 0.16);
}

.event-card-top,
.event-card-actions,
.event-meta,
.event-tags,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.event-card-top {
  min-width: 0;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.date-pill,
.source-pill,
.cue-pill,
.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 880;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.date-pill {
  flex: 0 0 auto;
  border: 1px solid color-mix(in srgb, var(--card-accent) 24%, transparent);
  background: #fff;
  color: var(--card-accent);
}

.source-pill {
  flex: 0 1 auto;
  max-width: min(58%, 168px);
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(137, 102, 32, 0.2);
  background: var(--gold-soft);
  color: var(--gold);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cue-pill {
  border: 1px solid rgba(23, 100, 73, 0.18);
  background: var(--green-soft);
  color: var(--green);
}

.score-pill {
  border: 1px solid rgba(169, 80, 66, 0.2);
  background: var(--coral-soft);
  color: var(--coral);
}

.save-button,
.mini-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #2c3531;
  font-size: 0.78rem;
  font-weight: 760;
}

.save-button {
  border-color: #17201d;
  background: #17201d;
  color: #fff;
}

.save-button.saved,
.mini-button.active {
  border-color: rgba(23, 100, 73, 0.34);
  background: #fff;
  color: var(--green);
}

.event-title {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-card:hover .event-title {
  color: #0f1714;
}

.event-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
}

.event-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.event-meta .event-category-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 1px 7px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-soft) 76%, #fff);
  color: color-mix(in srgb, var(--card-accent) 82%, var(--ink));
  font-weight: 850;
}

.event-summary {
  display: -webkit-box;
  min-height: 62px;
  overflow: hidden;
  margin: 0;
  color: #4f5b56;
  font-size: 0.9rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.event-tags span {
  max-width: 100%;
  min-height: 24px;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf7;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-tags span:first-child {
  border-color: color-mix(in srgb, var(--card-accent) 20%, transparent);
  background: var(--card-soft);
  color: var(--card-accent);
}

.event-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  gap: 7px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(40, 52, 47, 0.1);
}

.event-action-bar.action-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.event-action-bar.action-count-1 {
  grid-template-columns: minmax(0, 1fr);
}

.event-action-bar.action-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-action-button {
  --button-bg: #fff;
  --button-fg: #26302c;
  --button-border: rgba(23, 32, 29, 0.18);
  --button-hover-bg: #f6f5f1;
  --button-hover-border: rgba(23, 32, 29, 0.34);
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  --button-ring: rgba(23, 32, 29, 0.2);
  position: relative;
  border-color: var(--button-border);
  background: var(--button-bg);
  color: var(--button-fg);
  box-shadow: none;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease;
}

.event-action-button:hover,
.event-action-button:focus-visible {
  outline: none;
  border-color: var(--button-hover-border);
  background: var(--button-hover-bg);
  color: var(--button-fg);
}

.event-action-button:focus-visible {
  outline: 2px solid var(--button-ring);
  outline-offset: 2px;
}

.event-card-actions a,
.detail-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--button-border, var(--green));
  border-radius: 8px;
  background: var(--button-bg, var(--green));
  color: var(--button-fg, #fff);
  font-size: 0.8rem;
  font-weight: 880;
  text-decoration: none;
}

.event-card-actions > * {
  width: 100%;
}

.event-card-actions button,
.event-card-actions a,
.event-card-actions .source-pill,
.event-card-actions .event-action-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 36px;
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 6px;
  overflow: hidden;
  border-width: 1px;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card-actions .event-action-disabled {
  --button-bg: #f7f5ef;
  --button-fg: #81786c;
  --button-border: rgba(129, 120, 108, 0.24);
  --button-hover-bg: #f7f5ef;
  --button-hover-border: rgba(129, 120, 108, 0.24);
  --button-icon-bg: rgba(129, 120, 108, 0.12);
  --button-icon-fg: #81786c;
  border-color: var(--button-border);
  background: var(--button-bg);
  color: #81786c;
  cursor: not-allowed;
}

.action-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--button-icon-bg);
  color: var(--button-icon-fg);
}

.action-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.event-card-actions .save-button {
  --button-bg: var(--card-accent);
  --button-fg: #fff;
  --button-border: var(--card-accent);
  --button-hover-bg: #17201d;
  --button-hover-border: #17201d;
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  --button-ring: color-mix(in srgb, var(--card-accent) 28%, transparent);
  color: var(--button-fg);
}

.event-card-actions .save-button.saved {
  --button-bg: #fff;
  --button-fg: var(--green);
  --button-border: rgba(23, 100, 73, 0.34);
  --button-hover-bg: #f6faf8;
  --button-hover-border: rgba(23, 100, 73, 0.48);
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  color: var(--button-fg);
}

.event-card-actions .concierge-command {
  --button-bg: #fffaf0;
  --button-fg: #6a4d16;
  --button-border: rgba(137, 102, 32, 0.2);
  --button-hover-bg: var(--gold-soft);
  --button-hover-border: rgba(137, 102, 32, 0.38);
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  --button-ring: rgba(137, 102, 32, 0.2);
  color: var(--button-fg);
}

.event-card-actions .mini-button {
  --button-bg: #fff;
  --button-fg: #2d312e;
  --button-border: rgba(23, 32, 29, 0.18);
  --button-hover-bg: #f6f5f1;
  --button-hover-border: rgba(23, 32, 29, 0.34);
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  color: var(--button-fg);
}

.event-card-actions .source-pill {
  max-width: none;
  color: var(--muted);
}

.event-card-actions a.secondary-link,
.detail-actions a.secondary-link {
  --button-bg: #fff;
  --button-fg: #26302c;
  --button-border: rgba(23, 32, 29, 0.18);
  --button-hover-bg: #f6f5f1;
  --button-hover-border: rgba(23, 32, 29, 0.34);
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  --button-ring: rgba(23, 32, 29, 0.2);
  color: var(--button-fg);
}

.detail-actions .mini-button {
  min-height: 36px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  text-align: center;
  font-weight: 820;
}

.public-calendar[hidden],
.event-grid[hidden] {
  display: none;
}

.public-calendar {
  display: grid;
  gap: 14px;
}

.calendar-month {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-undated {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-month-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  background: #fbfaf7;
}

.calendar-month-header > div:first-child {
  display: grid;
  gap: 2px;
}

.calendar-month-header .eyebrow {
  margin: 0;
}

.calendar-month-header h3 {
  margin: 0;
  font-size: 1rem;
}

.calendar-month-header span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.calendar-month-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.calendar-month-tools button {
  appearance: none;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 880;
}

.calendar-month-tools button:hover,
.calendar-month-tools button:focus-visible {
  outline: none;
  border-color: rgba(23, 100, 73, 0.36);
  background: var(--green-soft);
  color: var(--green);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.calendar-weekdays span {
  min-width: 0;
  padding: 8px 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  background: var(--line);
  padding: 1px;
}

.calendar-day {
  appearance: none;
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  min-height: 118px;
  padding: 8px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(23, 100, 73, 0.42);
}

.calendar-day.soon {
  background: #fffdf8;
}

.calendar-day.outside {
  background: #f7f5ef;
  color: #9a9286;
}

.calendar-day.has-events:hover,
.calendar-day.has-events:focus-visible,
.calendar-day.selected {
  outline: none;
  background: var(--green-soft);
  box-shadow: inset 0 0 0 2px rgba(23, 100, 73, 0.26);
}

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

.calendar-day-head strong {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
}

.calendar-day-head small {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-day-events {
  display: grid;
  gap: 4px;
  overflow: hidden;
}

.calendar-day-events span,
.calendar-day-events em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 780;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-empty-month {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 820;
}

.calendar-selected-day {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fffdfa;
}

.calendar-detail-summary {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(23, 100, 73, 0.14);
  border-radius: 8px;
  background: var(--green-soft);
}

.calendar-detail-summary strong {
  color: var(--green);
  font-size: 0.9rem;
}

.calendar-detail-summary span {
  color: #30413a;
  font-weight: 840;
}

.calendar-detail-list {
  display: grid;
  gap: 9px;
}

.calendar-undated .calendar-detail-list {
  padding: 10px;
}

.calendar-detail-event {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calendar-detail-event > div > span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-detail-event strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.22;
}

.calendar-detail-event p {
  margin: 0;
  color: #4f5b56;
  font-size: 0.88rem;
}

.mini-button.concierge-command {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: rgba(23, 100, 73, 0.3);
  background: #fbfdfb;
  color: var(--green);
}

.mini-button.concierge-command span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.side-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.concierge-box,
.selected-event,
.plan-box {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.04);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 210px;
  overflow: auto;
  padding: 2px;
  scroll-behavior: smooth;
}

.chat-messages:empty {
  display: none;
}

.hero-concierge-card .chat-messages {
  flex: 1 1 auto;
  min-height: 118px;
  max-height: clamp(150px, 26vh, 300px);
  padding: 2px 13px 0;
  scrollbar-color: rgba(23, 100, 73, 0.28) transparent;
  scrollbar-width: thin;
}

.hero-concierge-card .chat-messages[hidden] {
  display: none;
}

.hero-concierge-card .chat-messages::-webkit-scrollbar {
  width: 7px;
}

.hero-concierge-card .chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.hero-concierge-card .chat-messages::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.3);
  background-clip: padding-box;
}

.chat-message {
  display: grid;
  gap: 4px;
  max-width: min(90%, 360px);
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 14px rgba(23, 32, 29, 0.05);
}

.chat-message.assistant {
  align-self: flex-start;
  border: 1px solid rgba(47, 95, 135, 0.14);
  border-bottom-left-radius: 3px;
  background: #f8faf9;
  color: #30413a;
}

.chat-message.user {
  align-self: flex-end;
  border: 1px solid rgba(23, 100, 73, 0.35);
  border-bottom-right-radius: 3px;
  background: var(--green);
  color: #fff;
}

.chat-message strong {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-message.user strong {
  color: rgba(255, 255, 255, 0.82);
}

.chat-message span {
  white-space: pre-wrap;
}

.concierge-hints {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin: 0 13px;
  padding: 9px 10px;
  border: 1px dashed rgba(23, 100, 73, 0.22);
  border-radius: 8px;
  background: #fbfaf7;
}

.concierge-hints > span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.prompt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  max-height: none;
  overflow: visible;
}

.prompt-row button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 0.76rem;
}

.concierge-hints .prompt-row button {
  min-height: 28px;
  border-color: rgba(40, 52, 47, 0.12);
  background: #fff;
  color: #4f5b56;
  font-weight: 780;
}

.concierge-hints .prompt-row button:hover,
.concierge-hints .prompt-row button:focus-visible {
  border-color: rgba(23, 100, 73, 0.32);
  color: var(--green);
  outline: none;
}

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

.concierge-form .primary-command {
  min-height: 52px;
}

.selected-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.detail-modal .selected-detail {
  min-height: 0;
  overflow: auto;
  padding: 18px 22px 22px;
}

.event-detail-overview {
  display: grid;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.event-detail-overview.has-thumbnail {
  grid-template-columns: minmax(250px, 0.48fr) minmax(0, 1fr);
  min-height: 232px;
}

.event-detail-copy {
  display: grid;
  align-content: start;
  gap: 13px;
  min-width: 0;
}

.event-detail-kickers {
  align-items: flex-start;
}

.event-detail-kickers span {
  border-color: transparent;
  background: #f1f4f0;
  color: #42504a;
}

.event-detail-kickers span:first-child {
  background: var(--green-soft);
  color: var(--green);
}

.detail-thumbnail {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 232px;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #eef1ec;
  box-shadow: inset 0 0 0 1px rgba(23, 32, 29, 0.08);
}

.detail-thumbnail::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(23, 32, 29, 0.02), rgba(23, 32, 29, 0.14));
  content: "";
  pointer-events: none;
}

.detail-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-detail h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.34rem;
  line-height: 1.12;
}

.selected-detail p {
  margin: 0;
  color: #4f5b56;
  line-height: 1.52;
}

.event-detail-summary {
  max-width: 62ch;
  color: #3f4a45;
  font-size: 1rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 7px;
  border: 1px solid rgba(222, 217, 206, 0.9);
  border-radius: 8px;
  background: #fbfaf7;
}

.detail-meta div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(222, 217, 206, 0.72);
  border-radius: 7px;
  background: #fff;
}

.detail-meta dt {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-meta dd {
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-tags {
  align-items: flex-start;
  padding-top: 2px;
}

.detail-tags span {
  background: #fff;
}

.event-detail-action-area {
  display: grid;
  gap: 11px;
  min-width: 0;
}

.event-detail-action-area .event-card-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.detail-modal .event-detail-action-area {
  position: static;
  margin: 2px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid rgba(222, 217, 206, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.event-detail-command-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.22fr);
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}

.event-detail-action-area .event-action-bar[data-action-variant="event-detail"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.event-detail-action-area .event-action-bar.action-count-1[data-action-variant="event-detail"] {
  grid-template-columns: minmax(0, 1fr);
}

.event-detail-action-area .event-action-bar.action-count-2[data-action-variant="event-detail"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-detail-action-area .event-action-bar[data-action-variant="event-detail"] button,
.event-detail-action-area .event-action-bar[data-action-variant="event-detail"] a,
.event-detail-action-area .event-action-bar[data-action-variant="event-detail"] .event-action-disabled {
  min-height: 42px;
}

.event-detail-command-strip .event-feedback-popover summary {
  min-height: 42px;
}

.detail-address-popover {
  position: relative;
  min-width: 0;
  padding-bottom: 2px;
}

.detail-address-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: 100%;
  align-items: baseline;
  gap: 4px 10px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(23, 100, 73, 0.13);
  border-radius: 8px;
  background: #fbfdfb;
  color: #26302c;
  cursor: pointer;
  text-align: left;
}

.detail-address-trigger:hover,
.detail-address-trigger:focus-visible,
.detail-address-trigger[aria-expanded="true"] {
  border-color: rgba(23, 100, 73, 0.32);
  background: var(--green-soft);
  outline: none;
}

.detail-address-trigger:hover .detail-address-text,
.detail-address-trigger:focus-visible .detail-address-text,
.detail-address-trigger[aria-expanded="true"] .detail-address-text {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.detail-address-label {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-address-text {
  min-width: 0;
  color: #3f4a45;
  font-size: 0.82rem;
  font-weight: 820;
  line-height: 1.28;
  overflow-wrap: anywhere;
  white-space: normal;
}

.detail-address-actions {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 96;
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(222, 217, 206, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(23, 32, 29, 0.24);
  transform: translate(-50%, -50%);
}

.detail-address-actions[hidden] {
  display: none;
}

.detail-address-actions-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: start;
}

.detail-address-actions-header span {
  display: block;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-address-actions-header strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: #24302b;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-address-close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 999px;
  background: #fbfaf7;
  color: #38433e;
  cursor: pointer;
}

.detail-address-close .action-icon {
  --button-icon-bg: transparent;
  --button-icon-fg: currentColor;
  width: 16px;
  height: 16px;
}

.detail-address-action-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-address-action-buttons button,
.detail-address-action-buttons a {
  display: inline-flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 6px;
  background: #fff;
  color: #2c3531;
  font-size: 0.74rem;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.detail-address-close:hover,
.detail-address-close:focus-visible,
.detail-address-action-buttons button:hover,
.detail-address-action-buttons button:focus-visible,
.detail-address-action-buttons a:hover,
.detail-address-action-buttons a:focus-visible {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.roaming-map-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(260px, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(63, 121, 168, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(237, 244, 250, 0.86), rgba(255, 255, 255, 0) 45%),
    #fff;
}

.roaming-map-card.compact {
  grid-template-columns: 1fr;
  padding: 10px;
  background: #fbfdff;
}

.roaming-map-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.roaming-map-copy span,
.roaming-map-nearby > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 930;
  text-transform: uppercase;
}

.roaming-map-copy strong {
  color: #22342d;
  font-size: 1rem;
}

.roaming-map-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.roaming-map-stage {
  position: relative;
  min-height: 206px;
  overflow: hidden;
  border: 1px solid rgba(63, 121, 168, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(63, 121, 168, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(63, 121, 168, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #f9f7eb 0%, #eff7f2 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.roaming-map-card.compact .roaming-map-stage {
  min-height: 178px;
}

.roaming-map-water,
.roaming-map-road,
.roaming-map-route,
.roaming-map-roamer,
.roaming-map-marker {
  position: absolute;
}

.roaming-map-water {
  background: rgba(99, 167, 198, 0.18);
  filter: saturate(1.05);
}

.roaming-map-water.west {
  top: -10%;
  bottom: -10%;
  left: -18%;
  width: 28%;
  border-radius: 45%;
  transform: rotate(-8deg);
}

.roaming-map-water.east {
  right: -12%;
  bottom: -18%;
  width: 32%;
  height: 62%;
  border-radius: 55% 0 0 0;
}

.roaming-map-road {
  height: 6px;
  border-radius: 999px;
  background: rgba(137, 102, 32, 0.17);
  box-shadow: 0 0 0 1px rgba(137, 102, 32, 0.05);
  transform-origin: left center;
}

.roaming-map-road.market {
  top: 48%;
  left: 24%;
  width: 62%;
  transform: rotate(-14deg);
}

.roaming-map-road.mission {
  top: 62%;
  left: 34%;
  width: 42%;
  transform: rotate(78deg);
}

.roaming-map-road.embarcadero {
  top: 28%;
  right: 14%;
  width: 44%;
  transform: rotate(68deg);
}

.roaming-map-route {
  top: 22%;
  left: 28%;
  width: 44%;
  height: 46%;
  border: 2px dashed rgba(23, 100, 73, 0.42);
  border-right: 0;
  border-bottom: 0;
  border-radius: 40% 0 0 0;
  transform: rotate(-8deg);
}

.roaming-map-roamer {
  top: 17%;
  left: 24%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 8px 18px rgba(137, 102, 32, 0.2);
}

.roaming-map-marker {
  top: var(--map-y);
  left: var(--map-x);
  z-index: 2;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px 999px 999px 4px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 95, 135, 0.24);
  font-size: 0.72rem;
  font-weight: 950;
  transform: translate(-50%, -82%) rotate(-45deg);
}

.roaming-map-marker span {
  transform: rotate(45deg);
}

.roaming-map-marker.current {
  width: 34px;
  height: 34px;
  background: var(--green);
  box-shadow: 0 12px 24px rgba(23, 100, 73, 0.26);
  pointer-events: none;
}

.roaming-map-marker.nearby {
  cursor: pointer;
}

.roaming-map-marker.nearby:hover,
.roaming-map-marker.nearby:focus-visible {
  background: var(--coral);
  outline: none;
}

.roaming-map-nearby {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  min-width: 0;
}

.roaming-map-nearby button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(222, 217, 206, 0.82);
  border-radius: 8px;
  background: #fff;
  color: #2c3531;
  text-align: left;
}

.roaming-map-nearby button strong {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.7rem;
}

.roaming-map-nearby button span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 810;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roaming-map-nearby button:hover,
.roaming-map-nearby button:focus-visible {
  border-color: rgba(23, 100, 73, 0.3);
  background: var(--green-soft);
  outline: none;
}

.roaming-map-empty {
  padding: 8px 0 0;
}

.roaming-map-empty > span {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.event-feedback-popover {
  position: relative;
  max-width: 100%;
}

.event-feedback-popover summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #26302c;
  font-size: 0.78rem;
  font-weight: 780;
  list-style: none;
  cursor: pointer;
}

.event-feedback-popover summary::-webkit-details-marker {
  display: none;
}

.event-feedback-popover summary:hover,
.event-feedback-popover summary:focus-visible,
.event-feedback-popover[open] summary {
  border-color: rgba(23, 100, 73, 0.34);
  background: #fbfdfb;
  color: var(--green);
  outline: none;
}

.event-feedback-popover summary small {
  display: none;
}

.event-feedback-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: grid;
  gap: 9px;
  width: min(360px, calc(100vw - 44px));
  padding: 10px;
  border: 1px solid rgba(222, 217, 206, 0.95);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.16);
}

.event-feedback-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.event-feedback-options button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 6px;
  background: #fbfaf7;
  color: #2c3531;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.15;
  text-align: left;
}

.event-feedback-options button:hover,
.event-feedback-options button:focus-visible,
.event-feedback-options button.active {
  border-color: rgba(169, 80, 66, 0.32);
  background: var(--coral-soft);
  color: var(--coral);
  outline: none;
}

.event-feedback-form {
  display: grid;
  gap: 8px;
}

.event-feedback-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-feedback-form textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(23, 32, 29, 0.16);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  text-transform: none;
}

.event-feedback-form textarea:focus {
  border-color: rgba(23, 100, 73, 0.38);
  outline: 2px solid rgba(23, 100, 73, 0.12);
}

.event-feedback-form button {
  min-height: 36px;
  border: 1px solid #17201d;
  border-radius: 6px;
  background: #17201d;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 860;
}

.saved-plan {
  display: grid;
  gap: 8px;
}

.plan-item {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.plan-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.86rem;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.plan-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.plan-item-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
}

.plan-item-actions button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.detail-overlay[hidden] {
  display: none;
}

.detail-overlay,
.signout-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.signout-overlay[hidden] {
  display: none;
}

.site-feedback {
  position: fixed;
  right: 18px;
  bottom: 68px;
  z-index: 75;
  width: min(360px, calc(100vw - 36px));
  color: #26302c;
}

.site-feedback summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  float: right;
  padding: 0 13px;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 32, 29, 0.14);
  color: #26302c;
  font-size: 0.78rem;
  font-weight: 880;
  list-style: none;
  cursor: pointer;
}

.site-feedback summary::-webkit-details-marker {
  display: none;
}

.site-feedback summary:hover,
.site-feedback summary:focus-visible,
.site-feedback[open] summary {
  border-color: rgba(23, 100, 73, 0.34);
  background: #fbfdfb;
  color: var(--green);
  outline: none;
}

.site-feedback[open] summary {
  float: none;
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px 8px 0 0;
  box-shadow: none;
}

.site-feedback-form {
  clear: both;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(222, 217, 206, 0.95);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.16);
}

.site-feedback-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.site-feedback-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.site-feedback-options button,
.site-feedback-form button[type="submit"] {
  min-height: 34px;
  border: 1px solid rgba(23, 32, 29, 0.12);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 820;
}

.site-feedback-options button {
  background: #fbfaf7;
  color: #2c3531;
}

.site-feedback-options button:hover,
.site-feedback-options button:focus-visible,
.site-feedback-options button.active {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.site-feedback-form label {
  display: grid;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 880;
  text-transform: uppercase;
}

.site-feedback-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 82px;
  padding: 9px;
  border: 1px solid rgba(23, 32, 29, 0.14);
  border-radius: 6px;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.35;
}

.site-feedback-form textarea:focus-visible {
  border-color: rgba(23, 100, 73, 0.4);
  box-shadow: 0 0 0 3px rgba(126, 169, 145, 0.18);
  outline: none;
}

.site-feedback-form button[type="submit"] {
  background: var(--green);
  color: #fff;
}

.feedback-thanks-popup {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 115;
  width: min(420px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.feedback-thanks-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 100, 73, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 32, 29, 0.18);
  color: var(--ink);
}

.feedback-thanks-card strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
}

.feedback-thanks-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 740;
}

.feedback-thanks-card .icon-command {
  width: 32px;
  height: 32px;
  min-height: 32px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: #17201d;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 820;
}

.toast button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  white-space: nowrap;
}

.toast button:hover,
.toast button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.toast[hidden] {
  display: none;
}

.plan-main {
  max-width: 1360px;
}

.plan-page-lede {
  display: block;
  padding: 8px 0 4px;
}

.plan-page-lede h1 {
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 3.25rem);
}

.plan-page-lede p:not(.eyebrow) {
  max-width: 680px;
  margin: 8px 0 0;
  color: #4f5b56;
  font-size: 1rem;
}

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

.plan-summary-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(23, 100, 73, 0.16);
  border-radius: 8px;
  background: #fff;
}

.plan-summary-grid strong {
  font-family: var(--display-font);
  font-size: 1.5rem;
  line-height: 1;
}

.plan-summary-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.planner-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.44fr);
  gap: 14px;
  align-items: start;
}

.planner-panel,
.planning-panel,
.preference-panel,
.persona-panel,
.profile-dino-panel,
.reward-panel,
.profile-account-panel {
  display: grid;
  gap: 13px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 32, 29, 0.045);
}

.planner-panel h2,
.planning-panel h2,
.preference-panel h2,
.persona-panel h2,
.profile-dino-panel h2,
.reward-panel h2,
.profile-account-panel h2 {
  margin: 2px 0 0;
  font-size: 1.08rem;
}

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

.planner-controls label,
.setting-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.planner-controls span,
.setting-label,
.setting-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.planner-controls input,
.planner-controls select,
.setting-field input,
.setting-field select,
.setting-field textarea,
.event-note,
.plan-notes {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  outline: none;
}

.planner-controls input,
.planner-controls select,
.setting-field input,
.setting-field select {
  min-height: 40px;
  padding: 0 10px;
}

.setting-field textarea,
.event-note,
.plan-notes {
  min-height: 78px;
  padding: 10px;
  resize: vertical;
}

.planner-controls input:focus,
.planner-controls select:focus,
.setting-field input:focus,
.setting-field select:focus,
.setting-field textarea:focus,
.event-note:focus,
.plan-notes:focus {
  border-color: rgba(23, 100, 73, 0.5);
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.12);
}

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

.saved-event-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.saved-event-card header,
.saved-event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: space-between;
}

.saved-event-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.22;
}

.saved-event-card p {
  margin: 0;
  color: #4f5b56;
  font-size: 0.9rem;
}

.saved-event-card-actions {
  justify-content: flex-start;
  padding-top: 2px;
}

.saved-event-card-actions a,
.saved-event-card-actions button,
.planning-actions a,
.planning-actions button,
.preference-actions a,
.preference-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 880;
  text-decoration: none;
}

.saved-event-card-actions a.primary-link,
.planning-actions .primary-link,
.preference-actions .primary-link {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.planning-actions .primary-command,
.preference-actions .primary-command {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.saved-event-card-actions button.danger-command {
  border-color: rgba(169, 80, 66, 0.28);
  color: var(--coral);
}

.profile-account-panel {
  border-color: rgba(169, 80, 66, 0.18);
  background: #fffdfb;
}

.profile-account-panel p:not(.eyebrow) {
  margin: 5px 0 0;
  color: #5f5851;
  font-size: 0.88rem;
}

.profile-dino-panel {
  border-color: rgba(23, 100, 73, 0.2);
  background: #fbfffc;
}

.profile-dino-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
}

.profile-dino-stage {
  display: grid;
  place-items: center;
  min-height: 142px;
  overflow: hidden;
  border: 1px solid rgba(23, 100, 73, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(23, 100, 73, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(23, 100, 73, 0.06) 1px, transparent 1px),
    #f4fbf6;
  background-size: 16px 16px;
}

.profile-dino-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.profile-dino-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.profile-dino-copy h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1.05;
}

.dino-story-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dino-story-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(23, 100, 73, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
}

.dino-story-trigger:hover,
.dino-story-trigger:focus-visible {
  border-color: rgba(23, 100, 73, 0.42);
  background: #eff8f1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.12);
}

.dino-story-bubble {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 12;
  display: none;
  gap: 6px;
  width: min(292px, calc(100vw - 44px));
  padding: 12px;
  border: 1px solid rgba(23, 100, 73, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(23, 32, 29, 0.14);
}

.dino-story-tooltip:hover .dino-story-bubble,
.dino-story-trigger:focus-visible + .dino-story-bubble {
  display: grid;
}

.dino-story-bubble strong {
  display: block;
  color: #22342d;
  font-size: 0.82rem;
}

.profile-dino-copy .dino-story-bubble p {
  display: block;
  margin: 0;
  color: #4a5852;
  font-size: 0.8rem;
  line-height: 1.42;
}

.profile-dino-copy p {
  margin: 0;
  color: #40524b;
  font-size: 0.9rem;
  line-height: 1.36;
}

.profile-dino-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
}

.dino-wallet-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 2px;
}

.dino-wallet-strip .dino-shop-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: auto;
  padding: 0 12px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.coin-status {
  position: relative;
  overflow: hidden;
  border-color: rgba(184, 135, 34, 0.28);
  background:
    radial-gradient(circle at 22% 20%, rgba(255, 255, 255, 0.95), transparent 22%),
    linear-gradient(135deg, #fff6c9, #ffd45e);
  color: #6d4b08;
  box-shadow: 0 8px 18px rgba(184, 135, 34, 0.16);
}

.coin-status::after {
  position: absolute;
  inset: -30% auto auto -42%;
  width: 70%;
  height: 160%;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  transform: rotate(24deg);
}

.profile-dino-controls {
  display: grid;
  gap: 10px;
}

.profile-dino-name,
.profile-dino-control-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.profile-dino-name > span,
.profile-dino-control-group > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-dino-name input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

.profile-dino-name input:focus {
  border-color: rgba(23, 100, 73, 0.5);
  box-shadow: 0 0 0 3px rgba(23, 100, 73, 0.12);
}

.profile-dino-control-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-dino-control-group button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-dino-control-group button.active,
.profile-dino-control-group button:hover,
.profile-dino-control-group button:focus-visible {
  border-color: rgba(23, 100, 73, 0.32);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.profile-dino-swatch {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 32, 29, 0.16);
}

.reward-panel {
  border-color: rgba(63, 121, 168, 0.2);
  background: #fbfdff;
}

.reward-panel-body {
  display: grid;
  gap: 12px;
}

.invite-card,
.reward-progress,
.badge-card,
.dino-shop-card,
.reward-more-panel {
  min-width: 0;
  border: 1px solid rgba(222, 217, 206, 0.86);
  border-radius: 8px;
  background: #fff;
}

.invite-card {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 11px;
}

.invite-card small,
.shop-copy span,
.badge-card small,
.badge-card em,
.dino-shop-head small,
.reward-more-panel summary strong,
.persona-completion small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
}

.coin-meter {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(184, 135, 34, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.95), transparent 23%),
    linear-gradient(135deg, #fff7d7, #ffd86a);
  color: #6d4b08;
  box-shadow: 0 8px 18px rgba(184, 135, 34, 0.16);
}

.coin-meter::after {
  position: absolute;
  inset: -30% auto auto -40%;
  z-index: -1;
  width: 70%;
  height: 160%;
  background: rgba(255, 255, 255, 0.45);
  content: "";
  transform: rotate(24deg);
}

.coin-meter strong {
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1;
}

.coin-meter span,
.invite-card span,
.reward-progress-head span,
.persona-completion-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 920;
  text-transform: uppercase;
}

.coin-meter-shop {
  flex: 0 0 auto;
}

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

.dino-shop-head h3 {
  margin: 2px 0 3px;
  font-family: var(--display-font);
  font-size: 1.2rem;
  line-height: 1.05;
}

.dino-shop-head small {
  display: block;
  max-width: 420px;
  line-height: 1.32;
}

.reward-more-panel {
  padding: 0;
}

.reward-more-panel summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 11px;
  cursor: pointer;
  list-style: none;
}

.reward-more-panel summary::-webkit-details-marker {
  display: none;
}

.reward-more-panel summary span {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.reward-more-panel > div {
  display: grid;
  gap: 8px;
  padding: 0 11px 11px;
}

.invite-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
}

.invite-card button,
.reward-sync-button,
.dino-shop-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 880;
}

.invite-card button:hover,
.reward-sync-button:hover,
.dino-shop-card button:hover,
.invite-card button:focus-visible,
.reward-sync-button:focus-visible,
.dino-shop-card button:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
  outline: none;
}

.invite-card button:disabled,
.reward-sync-button:disabled,
.dino-shop-card button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.reward-progress {
  display: grid;
  gap: 9px;
  padding: 11px;
}

.reward-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reward-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.reward-section-item {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid rgba(222, 217, 206, 0.75);
  border-radius: 8px;
  color: #5f6b66;
  font-size: 0.76rem;
  font-weight: 800;
}

.reward-section-item.complete {
  border-color: rgba(23, 100, 73, 0.22);
  background: #f4fbf6;
  color: var(--green);
}

.reward-section-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.badge-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 9px;
  opacity: 0.62;
}

.badge-card.earned {
  border-color: rgba(184, 135, 34, 0.32);
  background: #fffaf0;
  opacity: 1;
}

.badge-medallion {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #eef4f8;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 950;
}

.badge-card.earned .badge-medallion {
  background: #ffe6a6;
  color: #6d4b08;
  box-shadow: inset 0 0 0 2px rgba(184, 135, 34, 0.2);
}

.badge-card strong,
.shop-copy strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.82rem;
  line-height: 1.15;
}

.badge-card em {
  display: block;
  font-style: normal;
}

.dino-shop-grid {
  display: grid;
  gap: 8px;
}

.dino-shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.dino-shop-overlay[hidden] {
  display: none;
}

.dino-shop-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(620px, calc(100vw - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  overflow: hidden;
  border: 1px solid rgba(222, 217, 206, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 32, 29, 0.24);
}

.dino-shop-modal-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(222, 217, 206, 0.8);
}

.dino-shop-modal-header h2 {
  margin: 2px 0 0;
  font-size: 1.18rem;
}

.dino-shop-modal-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
  background: #fbfaf7;
}

.dino-shop-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) minmax(80px, auto);
  gap: 9px;
  align-items: center;
  padding: 9px;
}

.dino-shop-card.owned {
  border-color: rgba(23, 100, 73, 0.18);
  background: #fbfffc;
}

.shop-preview {
  display: grid;
  place-items: center;
  min-height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(63, 121, 168, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(63, 121, 168, 0.08) 1px, transparent 1px),
    #f5f9fb;
  background-size: 13px 13px;
}

.shop-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dino-payment-panel {
  display: grid;
  gap: 8px;
}

.dino-payment-pack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(92px, auto);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(63, 121, 168, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 229, 149, 0.28), rgba(255, 255, 255, 0) 42%),
    #fff;
}

.dino-payment-pack.owned {
  border-color: rgba(23, 100, 73, 0.22);
  background: #fbfffc;
}

.dino-payment-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.dino-payment-copy span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 940;
  text-transform: uppercase;
}

.dino-payment-copy strong {
  overflow-wrap: anywhere;
  font-family: var(--display-font);
  font-size: 1.08rem;
  line-height: 1.05;
}

.dino-payment-copy small,
.dino-payment-copy em {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 760;
  line-height: 1.28;
}

.dino-payment-copy em {
  color: #6d4b08;
}

.dino-payment-bonus {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(184, 135, 34, 0.26);
  border-radius: 8px;
  background: #fff8df;
  color: #6d4b08;
}

.dino-payment-bonus strong {
  font-family: var(--display-font);
  font-size: 1.12rem;
  line-height: 1;
}

.dino-payment-bonus span {
  color: #8b6818;
  font-size: 0.64rem;
  font-weight: 920;
  text-transform: uppercase;
}

.dino-payment-pack button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.dino-payment-pack button:hover,
.dino-payment-pack button:focus-visible {
  border-color: rgba(23, 100, 73, 0.48);
  background: #115c42;
  outline: none;
}

.dino-payment-pack button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.dino-avatar {
  --dino-scale: 1;
  position: relative;
  width: calc(96px * var(--dino-scale));
  height: calc(88px * var(--dino-scale));
  image-rendering: pixelated;
}

.dino-avatar span {
  position: absolute;
  display: block;
}

.dino-body,
.dino-head,
.dino-tail,
.dino-leg,
.dino-arm,
.dino-spike,
.dino-foot {
  background: var(--dino-body);
  box-shadow: inset calc(-4px * var(--dino-scale)) calc(-4px * var(--dino-scale)) 0 rgba(23, 32, 29, 0.12);
}

.dino-shadow {
  left: calc(17px * var(--dino-scale));
  top: calc(76px * var(--dino-scale));
  width: calc(58px * var(--dino-scale));
  height: calc(8px * var(--dino-scale));
  border-radius: 999px;
  background: rgba(23, 32, 29, 0.1);
}

.dino-body {
  left: calc(24px * var(--dino-scale));
  top: calc(38px * var(--dino-scale));
  width: calc(43px * var(--dino-scale));
  height: calc(33px * var(--dino-scale));
  border-radius: calc(15px * var(--dino-scale)) calc(13px * var(--dino-scale)) calc(11px * var(--dino-scale)) calc(12px * var(--dino-scale));
}

.dino-belly {
  left: calc(36px * var(--dino-scale));
  top: calc(49px * var(--dino-scale));
  width: calc(23px * var(--dino-scale));
  height: calc(18px * var(--dino-scale));
  border-radius: calc(8px * var(--dino-scale));
  background: var(--dino-belly);
  box-shadow: inset calc(-2px * var(--dino-scale)) calc(-2px * var(--dino-scale)) 0 rgba(255, 255, 255, 0.5);
}

.dino-head {
  left: calc(50px * var(--dino-scale));
  top: calc(13px * var(--dino-scale));
  width: calc(36px * var(--dino-scale));
  height: calc(36px * var(--dino-scale));
  border-radius: calc(13px * var(--dino-scale)) calc(14px * var(--dino-scale)) calc(11px * var(--dino-scale)) calc(12px * var(--dino-scale));
}

.dino-snout {
  left: calc(72px * var(--dino-scale));
  top: calc(31px * var(--dino-scale));
  width: calc(16px * var(--dino-scale));
  height: calc(13px * var(--dino-scale));
  border-radius: calc(5px * var(--dino-scale));
  background: var(--dino-body);
  box-shadow: inset calc(-2px * var(--dino-scale)) calc(-2px * var(--dino-scale)) 0 rgba(23, 32, 29, 0.12);
}

.dino-eye {
  left: calc(68px * var(--dino-scale));
  top: calc(23px * var(--dino-scale));
  width: calc(9px * var(--dino-scale));
  height: calc(10px * var(--dino-scale));
  border-radius: calc(3px * var(--dino-scale));
  background: #17201d;
}

.dino-eye-shine {
  left: calc(71px * var(--dino-scale));
  top: calc(25px * var(--dino-scale));
  width: calc(3px * var(--dino-scale));
  height: calc(3px * var(--dino-scale));
  border-radius: calc(1px * var(--dino-scale));
  background: #fff;
}

.dino-cheek {
  left: calc(76px * var(--dino-scale));
  top: calc(35px * var(--dino-scale));
  width: calc(8px * var(--dino-scale));
  height: calc(5px * var(--dino-scale));
  border-radius: 999px;
  background: rgba(255, 192, 180, 0.72);
}

.dino-smile {
  left: calc(80px * var(--dino-scale));
  top: calc(38px * var(--dino-scale));
  width: calc(7px * var(--dino-scale));
  height: calc(5px * var(--dino-scale));
  border-bottom: calc(2px * var(--dino-scale)) solid rgba(23, 32, 29, 0.62);
  border-radius: 0 0 999px 999px;
}

.dino-tail {
  left: calc(7px * var(--dino-scale));
  top: calc(47px * var(--dino-scale));
  width: calc(27px * var(--dino-scale));
  height: calc(14px * var(--dino-scale));
  border-radius: calc(14px * var(--dino-scale)) calc(4px * var(--dino-scale)) calc(4px * var(--dino-scale)) calc(14px * var(--dino-scale));
  transform: rotate(-18deg);
  transform-origin: right center;
}

.dino-spike {
  width: calc(9px * var(--dino-scale));
  height: calc(9px * var(--dino-scale));
  border-radius: calc(2px * var(--dino-scale));
  transform: rotate(45deg);
}

.dino-spike.spike-one {
  left: calc(45px * var(--dino-scale));
  top: calc(32px * var(--dino-scale));
}

.dino-spike.spike-two {
  left: calc(54px * var(--dino-scale));
  top: calc(25px * var(--dino-scale));
}

.dino-spike.spike-three {
  left: calc(64px * var(--dino-scale));
  top: calc(13px * var(--dino-scale));
}

.dino-leg {
  top: calc(63px * var(--dino-scale));
  width: calc(10px * var(--dino-scale));
  height: calc(15px * var(--dino-scale));
  border-radius: calc(3px * var(--dino-scale));
}

.dino-leg.leg-a {
  left: calc(31px * var(--dino-scale));
}

.dino-leg.leg-b {
  left: calc(53px * var(--dino-scale));
}

.dino-foot {
  top: calc(74px * var(--dino-scale));
  width: calc(16px * var(--dino-scale));
  height: calc(7px * var(--dino-scale));
  border-radius: calc(5px * var(--dino-scale));
}

.dino-foot.foot-a {
  left: calc(26px * var(--dino-scale));
}

.dino-foot.foot-b {
  left: calc(50px * var(--dino-scale));
}

.dino-arm {
  left: calc(59px * var(--dino-scale));
  top: calc(51px * var(--dino-scale));
  width: calc(9px * var(--dino-scale));
  height: calc(14px * var(--dino-scale));
  border-radius: calc(4px * var(--dino-scale));
  transform: rotate(-22deg);
  transform-origin: top center;
}

.dino-accessory {
  pointer-events: none;
}

.dino-avatar.accessory-lanyard .dino-accessory {
  left: calc(50px * var(--dino-scale));
  top: calc(43px * var(--dino-scale));
  width: calc(4px * var(--dino-scale));
  height: calc(24px * var(--dino-scale));
  border-radius: calc(2px * var(--dino-scale));
  background: var(--blue);
  transform: rotate(-18deg);
}

.dino-avatar.accessory-lanyard .dino-accessory::after {
  content: "";
  position: absolute;
  left: calc(-3px * var(--dino-scale));
  bottom: calc(-4px * var(--dino-scale));
  width: calc(10px * var(--dino-scale));
  height: calc(9px * var(--dino-scale));
  border-radius: calc(2px * var(--dino-scale));
  background: #fff;
  box-shadow: 0 0 0 calc(2px * var(--dino-scale)) var(--blue);
}

.dino-avatar.accessory-headphones .dino-accessory {
  left: calc(56px * var(--dino-scale));
  top: calc(12px * var(--dino-scale));
  width: calc(31px * var(--dino-scale));
  height: calc(22px * var(--dino-scale));
  border: calc(3px * var(--dino-scale)) solid var(--blue);
  border-bottom: 0;
  border-radius: calc(16px * var(--dino-scale)) calc(16px * var(--dino-scale)) 0 0;
}

.dino-avatar.accessory-headphones .dino-accessory::after {
  content: "";
  position: absolute;
  right: calc(1px * var(--dino-scale));
  bottom: calc(-7px * var(--dino-scale));
  width: calc(6px * var(--dino-scale));
  height: calc(10px * var(--dino-scale));
  border-radius: calc(3px * var(--dino-scale));
  background: var(--blue);
}

.dino-avatar.accessory-scarf .dino-accessory {
  left: calc(50px * var(--dino-scale));
  top: calc(43px * var(--dino-scale));
  width: calc(29px * var(--dino-scale));
  height: calc(8px * var(--dino-scale));
  border-radius: calc(3px * var(--dino-scale));
  background: var(--coral);
  box-shadow: calc(14px * var(--dino-scale)) calc(7px * var(--dino-scale)) 0 var(--coral);
}

.dino-avatar.accessory-badge .dino-accessory {
  left: calc(48px * var(--dino-scale));
  top: calc(51px * var(--dino-scale));
  width: calc(12px * var(--dino-scale));
  height: calc(13px * var(--dino-scale));
  border: calc(2px * var(--dino-scale)) solid var(--blue);
  border-radius: calc(3px * var(--dino-scale));
  background: #fff;
}

.dino-avatar.accessory-mug .dino-accessory {
  left: calc(66px * var(--dino-scale));
  top: calc(54px * var(--dino-scale));
  width: calc(15px * var(--dino-scale));
  height: calc(13px * var(--dino-scale));
  border: calc(2px * var(--dino-scale)) solid var(--blue);
  border-radius: calc(3px * var(--dino-scale));
  background: #fff;
}

.dino-avatar.accessory-mug .dino-accessory::after {
  content: "";
  position: absolute;
  right: calc(-7px * var(--dino-scale));
  top: calc(3px * var(--dino-scale));
  width: calc(6px * var(--dino-scale));
  height: calc(6px * var(--dino-scale));
  border: calc(2px * var(--dino-scale)) solid var(--blue);
  border-left: 0;
  border-radius: 0 calc(4px * var(--dino-scale)) calc(4px * var(--dino-scale)) 0;
}

.dino-avatar.accessory-explorer-hat .dino-accessory {
  left: calc(57px * var(--dino-scale));
  top: calc(7px * var(--dino-scale));
  width: calc(28px * var(--dino-scale));
  height: calc(8px * var(--dino-scale));
  border-radius: calc(5px * var(--dino-scale));
  background: #8b6f3e;
  box-shadow: calc(-4px * var(--dino-scale)) calc(6px * var(--dino-scale)) 0 calc(-2px * var(--dino-scale)) #6f552d;
}

.dino-avatar.accessory-explorer-hat .dino-accessory::before {
  content: "";
  position: absolute;
  left: calc(6px * var(--dino-scale));
  bottom: calc(5px * var(--dino-scale));
  width: calc(15px * var(--dino-scale));
  height: calc(10px * var(--dino-scale));
  border-radius: calc(5px * var(--dino-scale)) calc(5px * var(--dino-scale)) calc(2px * var(--dino-scale)) calc(2px * var(--dino-scale));
  background: #9b7d47;
}

.dino-avatar.accessory-city-cape .dino-accessory {
  left: calc(28px * var(--dino-scale));
  top: calc(42px * var(--dino-scale));
  width: calc(35px * var(--dino-scale));
  height: calc(31px * var(--dino-scale));
  border-radius: calc(4px * var(--dino-scale)) calc(9px * var(--dino-scale)) calc(13px * var(--dino-scale)) calc(7px * var(--dino-scale));
  background: #9c4f86;
  clip-path: polygon(10% 0, 100% 14%, 72% 100%, 0 82%);
  opacity: 0.9;
}

.dino-avatar.accessory-neon-shades .dino-accessory {
  left: calc(64px * var(--dino-scale));
  top: calc(24px * var(--dino-scale));
  width: calc(24px * var(--dino-scale));
  height: calc(9px * var(--dino-scale));
  border-radius: calc(3px * var(--dino-scale));
  background: #17201d;
  box-shadow: inset 0 calc(-3px * var(--dino-scale)) 0 #43d6c9;
}

.dino-avatar.accessory-neon-shades .dino-accessory::before {
  content: "";
  position: absolute;
  left: calc(10px * var(--dino-scale));
  top: calc(3px * var(--dino-scale));
  width: calc(4px * var(--dino-scale));
  height: calc(2px * var(--dino-scale));
  background: #43d6c9;
}

.dino-avatar.accessory-gold-saddle .dino-accessory {
  left: calc(31px * var(--dino-scale));
  top: calc(36px * var(--dino-scale));
  width: calc(32px * var(--dino-scale));
  height: calc(18px * var(--dino-scale));
  border-radius: calc(8px * var(--dino-scale)) calc(8px * var(--dino-scale)) calc(5px * var(--dino-scale)) calc(5px * var(--dino-scale));
  background: #d9a52d;
  box-shadow:
    inset calc(-3px * var(--dino-scale)) calc(-3px * var(--dino-scale)) 0 rgba(104, 69, 7, 0.18),
    0 0 0 calc(2px * var(--dino-scale)) rgba(255, 242, 180, 0.86);
}

.dino-avatar.mood-calm .dino-eye {
  height: calc(4px * var(--dino-scale));
  margin-top: calc(4px * var(--dino-scale));
  border-radius: 999px;
}

.dino-avatar.mood-calm .dino-eye-shine {
  display: none;
}

.dino-avatar.mood-bright .dino-eye {
  box-shadow: calc(7px * var(--dino-scale)) 0 0 #17201d;
}

.dino-avatar.mood-bright .dino-eye-shine {
  box-shadow: calc(7px * var(--dino-scale)) 0 0 #fff;
}

.dino-avatar.mood-bright .dino-cheek {
  background: rgba(255, 177, 165, 0.9);
}

.dino-avatar.mood-focused .dino-eye {
  width: calc(11px * var(--dino-scale));
}

.dino-avatar.mood-focused .dino-smile {
  width: calc(5px * var(--dino-scale));
}

.dino-profile {
  --dino-scale: 0.88;
}

.dino-shop {
  --dino-scale: 0.52;
}

.dino-nav {
  --dino-scale: 0.34;
}

.danger-command,
.signout-actions .danger-command,
.profile-account-panel .danger-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(169, 80, 66, 0.7);
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 880;
  text-decoration: none;
}

.danger-command:hover,
.danger-command:focus-visible {
  border-color: #8f3f33;
  background: #8f3f33;
  outline: none;
}

.planner-side {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-self: start;
}

.planning-panel {
  position: static;
}

.persona-panel {
  border-color: rgba(47, 95, 135, 0.18);
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.persona-panel.is-listening {
  border-color: rgba(47, 95, 135, 0.36);
  background: #f8fcff;
  box-shadow: 0 18px 42px rgba(23, 32, 29, 0.09);
}

.persona-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(47, 95, 135, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.persona-status.listening {
  border-color: rgba(169, 80, 66, 0.28);
  background: var(--coral-soft);
  color: var(--coral);
}

.persona-listening-meter {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 138px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(47, 95, 135, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 42%, rgba(47, 95, 135, 0.16), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(23, 100, 73, 0.12), transparent 28%),
    radial-gradient(circle at 86% 78%, rgba(169, 80, 66, 0.14), transparent 30%),
    #fff;
}

.persona-listening-meter[hidden] {
  display: none;
}

.persona-listening-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 106px;
  aspect-ratio: 1;
}

.persona-pulse,
.persona-mic-icon {
  position: absolute;
  border-radius: 50%;
}

.persona-pulse {
  inset: 0;
  border: 1px solid rgba(47, 95, 135, 0.28);
  animation: persona-pulse 2s ease-out infinite;
}

.persona-pulse.pulse-two {
  animation-delay: 0.45s;
}

.persona-pulse.pulse-three {
  animation-delay: 0.9s;
}

.persona-mic-icon {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--green), var(--blue) 58%, var(--coral));
  box-shadow: 0 18px 34px rgba(47, 95, 135, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  animation: persona-mic-float 1.9s ease-in-out infinite;
}

.persona-mic-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.persona-wave {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: end;
  height: 28px;
}

.persona-wave span {
  width: 6px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral), var(--green));
  opacity: 0.76;
  animation: persona-wave 0.9s ease-in-out infinite;
}

.persona-wave span:nth-child(2) {
  animation-delay: 0.12s;
}

.persona-wave span:nth-child(3) {
  animation-delay: 0.24s;
}

.persona-wave span:nth-child(4) {
  animation-delay: 0.36s;
}

.persona-wave span:nth-child(5) {
  animation-delay: 0.48s;
}

.voice-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.voice-controls button {
  min-width: 0;
  padding-right: 8px;
  padding-left: 8px;
  white-space: nowrap;
}

.persona-transcript {
  min-height: 118px;
}

.persona-result {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(47, 95, 135, 0.16);
  border-radius: 8px;
  background: var(--blue-soft);
  color: #234661;
}

.persona-result:empty {
  display: none;
}

.profile-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 100, 73, 0.11);
}

.profile-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #3d79a8);
}

.persona-completion {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(47, 95, 135, 0.14);
}

.persona-completion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.persona-completion-head strong {
  color: #1e3d54;
  font-family: var(--display-font);
  font-size: 1.32rem;
  line-height: 1;
}

.persona-output {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.persona-empty {
  color: #31566f;
  font-size: 0.88rem;
  font-weight: 780;
}

.persona-result strong {
  display: block;
  color: #1e3d54;
  font-size: 1rem;
  line-height: 1.2;
}

.persona-result .persona-completion-head strong {
  font-family: var(--display-font);
  font-size: 1.32rem;
  line-height: 1;
}

.persona-result p {
  margin: 0;
  color: #294a60;
  font-size: 0.9rem;
}

.persona-life {
  padding-top: 3px;
  border-top: 1px solid rgba(47, 95, 135, 0.14);
}

.persona-follow-up {
  padding: 8px 9px;
  border-radius: 8px;
  background: #fff;
  color: #31566f;
  font-size: 0.84rem;
  font-weight: 820;
}

@keyframes persona-pulse {
  0% {
    opacity: 0.64;
    transform: scale(0.66);
  }

  74%,
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@keyframes persona-mic-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@keyframes persona-wave {
  0%,
  100% {
    height: 8px;
  }

  50% {
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .persona-pulse,
  .persona-mic-icon,
  .persona-wave span {
    animation: none;
  }

  .persona-pulse {
    opacity: 0.22;
    transform: scale(1);
  }

  .persona-wave span {
    height: 16px;
  }
}

.manual-preferences {
  display: block;
  border: 0;
  border-top: 1px solid rgba(40, 52, 47, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.manual-preferences summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}

.manual-preferences summary::-webkit-details-marker {
  display: none;
}

.manual-preferences summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg) translateY(-2px);
}

.manual-preferences[open] summary {
  border-bottom: 0;
}

.manual-preferences[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.manual-preferences > div {
  display: grid;
  gap: 13px;
  padding: 0 0 4px;
}

.next-plan {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(23, 100, 73, 0.16);
  border-radius: 8px;
  background: var(--green-soft);
}

.next-plan strong {
  color: var(--green);
  font-size: 0.95rem;
}

.next-plan span {
  color: #30413a;
  font-size: 0.84rem;
  font-weight: 820;
}

.planning-actions,
.preference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preference-form {
  display: grid;
  gap: 13px;
}

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

.preference-section {
  display: grid;
  grid-template-columns: minmax(96px, 0.24fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(40, 52, 47, 0.1);
}

.preference-section .setting-label {
  padding-top: 7px;
}

.setting-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 2px 12px;
  width: 100%;
  min-width: 0;
}

.setting-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  cursor: pointer;
}

.setting-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.setting-chip span {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-height: 30px;
  padding: 4px 0 4px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #4f5b56;
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.25;
}

.setting-chip span::before {
  position: absolute;
  left: 0;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(23, 100, 73, 0.34);
  border-radius: 4px;
  background: #fff;
  content: "";
}

.setting-chip input:checked + span {
  color: var(--green);
  font-weight: 850;
}

.setting-chip input:checked + span::before {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}

.setting-chip input:focus-visible + span {
  outline: 2px solid rgba(23, 100, 73, 0.3);
  outline-offset: 2px;
}

.preference-preview {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid rgba(47, 95, 135, 0.16);
  border-radius: 0;
  background: transparent;
  color: #234661;
}

.preference-preview strong {
  font-size: 0.9rem;
}

.preference-preview .event-tags span {
  border-color: rgba(47, 95, 135, 0.16);
  background: #fff;
  color: #234661;
}

.plan-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid rgba(23, 100, 73, 0.24);
  border-radius: 8px;
  background: #17201d;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  font-weight: 820;
}

.plan-toast[hidden] {
  display: none;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 32, 29, 0.46);
  backdrop-filter: blur(5px);
}

.detail-modal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  width: min(880px, calc(100vw - 36px));
  max-height: min(780px, calc(100dvh - 36px));
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: #fffffc;
  box-shadow: 0 26px 80px rgba(23, 32, 29, 0.28);
}

.detail-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(222, 217, 206, 0.68);
  background: #fffffc;
}

.detail-modal-header > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.detail-modal-header .eyebrow {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-modal-header h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.74rem;
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.signout-modal {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.signout-modal h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1.05;
}

.signout-modal p:not(.eyebrow) {
  margin: 0;
  color: #4f5b56;
}

.signout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
  margin-top: 4px;
}

.icon-command {
  display: inline-flex;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f7f2;
  color: var(--ink);
}

.icon-command:hover,
.icon-command:focus-visible {
  border-color: rgba(23, 100, 73, 0.34);
  background: var(--green-soft);
  color: var(--green);
  outline: none;
}

.icon-command svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body.detail-open {
  overflow: hidden;
}

body.dialog-open {
  overflow: hidden;
}

@media (min-width: 1181px) {
  .hero-planner .hero-concierge-card {
    height: 100%;
    min-height: 0;
  }

  .hero-planner .concierge-hints {
    display: none;
  }

  .hero-planner .hero-concierge-card .chat-messages {
    min-height: 112px;
    max-height: none;
  }

  body.concierge-active .hero-layout::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 330px;
    height: min(390px, calc(100dvh - 96px));
    content: "";
    pointer-events: none;
  }

  body.concierge-active .hero-planner {
    position: fixed;
    top: 82px;
    right: max(clamp(14px, 2.6vw, 34px), calc((100vw - 1480px) / 2 + clamp(14px, 2.6vw, 34px)));
    z-index: 24;
    grid-template-rows: minmax(0, 1fr);
    width: 330px;
    height: calc(100dvh - 96px);
    max-height: calc(100dvh - 96px);
  }

  body.concierge-active .hero-planner .plan-dialogue {
    display: none;
  }

  body.concierge-active .hero-planner .hero-concierge-card {
    height: 100%;
    max-height: none;
  }

  body.concierge-active .hero-planner .hero-concierge-card .chat-messages {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  body.concierge-active .hero-planner .hero-agent-panel {
    max-height: none;
    overflow: visible;
  }

  body.concierge-active .hero-planner .hero-agent-events {
    max-height: none;
    overflow: visible;
  }

  body.concierge-active .hero-planner .hero-concierge-form {
    padding-top: 8px;
  }

  body.concierge-active .hero-planner .hero-concierge-form input,
  body.concierge-active .hero-planner .hero-concierge-form .primary-command {
    min-height: 40px;
  }

  body.concierge-active .workspace {
    margin-right: 346px;
  }
}

@media (min-width: 900px) and (max-width: 1180px) {
  body.concierge-active .hero-agent-events {
    max-height: 92px;
    overflow: auto;
  }
}

@media (max-width: 1180px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .board-lede {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.8fr);
  }

  .hero-planner {
    position: static;
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    grid-template-rows: none;
    align-items: start;
    height: auto;
    overflow: visible;
  }

  .search-band {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-planner .board-metrics {
    grid-template-columns: 1fr;
  }

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

  .planner-workspace {
    grid-template-columns: 1fr;
  }

  .planning-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .public-header {
    align-items: start;
  }

  .board-lede,
  .hero-planner {
    grid-template-columns: 1fr;
  }

  .search-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .search-row .view-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .hero-planner .board-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .results-toolbar,
  .panel-heading {
    align-items: start;
  }

  .results-toolbar {
    flex-direction: column;
  }

  .view-tools {
    justify-content: start;
    width: 100%;
  }

  .auth-panel {
    justify-content: start;
  }

  .plan-page-lede {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .public-main {
    gap: 8px;
    padding: 8px 12px 34px;
    max-width: 100vw;
  }

  .hero-layout {
    width: 100%;
    max-width: calc(100vw - 24px);
    gap: 10px;
  }

  .public-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 8px 10px;
  }

  .brand-mark {
    display: flex;
    gap: 6px;
  }

  .public-header-left {
    gap: 6px;
  }

  .brand-mark span {
    font-size: 1.08rem;
    line-height: 1;
    white-space: nowrap;
  }

  .brand-mark small {
    display: none;
  }

  .public-nav {
    order: 3;
    width: 100%;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .public-nav a {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  .auth-panel {
    width: auto;
    margin-left: auto;
    flex-wrap: nowrap;
    justify-content: end;
    gap: 5px;
  }

  .language-select {
    justify-content: center;
    gap: 4px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 32px;
    padding: 0 7px;
    font-size: 0.72rem;
  }

  .language-select::before {
    color: var(--green);
    content: attr(data-language-short);
    font-size: 0.72rem;
    font-weight: 950;
    line-height: 1;
  }

  .language-select::after {
    width: 6px;
    height: 6px;
    transform: rotate(45deg) translateY(-1px);
  }

  .language-select[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .language-select span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .language-menu {
    right: 0;
    width: min(218px, calc(100vw - 24px));
  }

  .auth-panel > span {
    display: none;
  }

  .profile-button {
    width: 34px;
    max-width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 3px;
  }

  .profile-avatar {
    width: 27px;
    height: 27px;
    font-size: 0.72rem;
  }

  .profile-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .profile-saved-count {
    display: none;
  }

  .auth-panel .secondary-command.compact {
    display: none;
  }

  .board-lede {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: calc(100vw - 24px);
    gap: 8px;
    min-height: 0;
    padding: 4px 0 0;
  }

  .lede-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-planner,
  .hero-concierge-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-planner {
    display: none;
  }

  .hero-concierge-card {
    min-height: 0;
  }

  body.concierge-active .hero-concierge-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  body.concierge-active .hero-concierge-card .chat-messages {
    min-height: 0;
    max-height: 180px;
  }

  body.concierge-active .hero-concierge-form {
    position: sticky;
    bottom: 0;
    z-index: 8;
  }

  h1 {
    width: 320px;
    max-width: 100%;
    font-size: 1.88rem;
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .lede-copy > p:not(.eyebrow):not(.mobile-scroll-hint) {
    display: none;
  }

  .lede-copy > p.mobile-scroll-hint {
    display: block;
    max-width: 270px;
    color: #4f5b56;
    font-size: 0.9rem;
    font-weight: 780;
  }

  .hero-concierge-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 2px;
    padding: 0 10px 10px;
  }

  .hero-concierge-form.voice-ready {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hero-concierge-card .panel-heading {
    padding: 11px 10px 0;
  }

  .chat-heading-actions {
    gap: 6px;
  }

  .mobile-chat-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
  }

  .hero-concierge-card .chat-messages {
    min-height: 0;
    max-height: 180px;
    padding: 2px 10px 0;
  }

  .hero-concierge-card .hero-agent-panel,
  .concierge-hints {
    margin-right: 10px;
    margin-left: 10px;
  }

  .concierge-hints {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .hero-concierge-form input {
    grid-column: 1 / -1;
    min-height: 42px;
    min-width: 0;
    padding: 0 10px;
  }

  .hero-concierge-form:not(.voice-ready) .primary-command {
    grid-column: 1 / -1;
  }

  .hero-voice-button {
    grid-column: 1;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
  }

  .hero-concierge-form .primary-command {
    grid-column: 2;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
  }

  .hero-agent-panel {
    padding: 10px;
  }

  .hero-agent-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-agent-events {
    max-height: 120px;
  }

  .hero-agent-event-actions button,
  .hero-agent-event-actions a,
  .hero-agent-board-actions button,
  .hero-agent-feedback button {
    width: 100%;
  }

  .hero-agent-event-actions,
  .hero-agent-board-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-agent-feedback {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-agent-follow-up-options {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .hero-actions button {
    flex: 0 0 auto;
    min-height: 28px;
    padding: 0 7px;
    border-color: color-mix(in srgb, var(--quick-accent) 24%, transparent);
    background: color-mix(in srgb, var(--quick-soft) 84%, #fff);
    color: color-mix(in srgb, var(--quick-accent) 88%, var(--ink));
    font-size: 0.7rem;
    font-weight: 900;
    box-shadow: none;
  }

  .hero-actions button.active {
    border-color: color-mix(in srgb, var(--quick-accent) 36%, transparent);
    background: var(--quick-soft);
  }

  .hero-actions a {
    display: none;
  }

  .city-media,
  .city-media img {
    display: none;
  }

  .board-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .board-metrics div {
    display: flex;
    min-height: 32px;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    padding: 4px 6px;
  }

  .board-metrics strong {
    font-size: 1.1rem;
  }

  .board-metrics span {
    font-size: 0.6rem;
  }

  .search-band {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .mobile-refine-drawer > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(23, 100, 73, 0.2);
    border-radius: 8px;
    background: var(--green-soft);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
    list-style: none;
    white-space: nowrap;
  }

  .mobile-refine-drawer > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-refine-drawer > summary::after {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    content: "";
    transform: rotate(45deg) translateY(-2px);
  }

  .mobile-refine-drawer[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .mobile-refine-drawer > summary small {
    display: none;
  }

  .mobile-refine-panel {
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

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

  .visible-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .search-row .view-toggle {
    width: 100%;
    justify-self: stretch;
  }

  .search-row .view-toggle button {
    flex: 1 1 0;
  }

  .search-row > .secondary-command {
    width: 100%;
  }

  .filter-drawer summary {
    width: auto;
    justify-content: space-between;
  }

  .filter-drawer summary small {
    display: none;
  }

  .filter-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-exact-date {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .filter-exact-date input {
    max-width: 100%;
  }

  .filter-drawer[open] {
    grid-column: 1 / -1;
  }

  .filter-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 8px;
    padding: 8px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .chip-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 2px 10px;
    width: 100%;
  }

  .chip-row button {
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
    padding: 4px 0;
    border: 0;
    border-bottom: 1px solid rgba(40, 52, 47, 0.12);
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .mobile-refine-panel .chip-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .mobile-refine-panel .chip-row button {
    width: auto;
    min-width: max-content;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-align: center;
  }

  .chip-row button.active {
    padding-right: 8px;
    padding-left: 8px;
    border-bottom-color: transparent;
    border-radius: 6px;
  }

  .concierge-form {
    grid-template-columns: 1fr;
  }

  .concierge-form .primary-command {
    width: 100%;
    min-height: 42px;
  }

  .filter-line > span {
    padding-top: 0;
  }

  .workspace {
    margin-top: 0;
  }

  .results-toolbar {
    margin-bottom: 8px;
  }

  .results-toolbar .eyebrow {
    display: none;
  }

  .event-grid {
    grid-template-columns: 1fr;
    scroll-snap-type: y proximity;
  }

  .event-card-actions .concierge-command {
    display: none;
  }

  .event-card-actions .save-button {
    --button-bg: #fff;
    --button-fg: color-mix(in srgb, var(--card-accent) 86%, var(--ink));
    --button-border: color-mix(in srgb, var(--card-accent) 24%, transparent);
    --button-hover-bg: var(--card-soft);
    --button-hover-border: color-mix(in srgb, var(--card-accent) 36%, transparent);
    color: var(--button-fg);
  }

  .event-card-actions.action-count-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-card {
    min-height: 210px;
    scroll-margin-top: 12px;
    scroll-snap-align: start;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.9) inset,
      0 8px 0 -5px var(--card-soft),
      0 15px 26px rgba(23, 32, 29, 0.08);
    touch-action: pan-y;
  }

  .event-card::before {
    background: var(--card-accent);
    opacity: 0.58;
    transform: scaleX(0.68);
  }

  .event-card:hover,
  .event-card.selected,
  .event-card:nth-child(even):hover,
  .event-card:nth-child(even).selected {
    transform: translateY(-1px);
  }

  .event-summary {
    min-height: auto;
    -webkit-line-clamp: 2;
  }

  .event-card-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .event-action-bar.action-count-1 {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-action-bar.action-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-action-bar.action-count-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .event-action-bar.action-count-4 button,
  .event-action-bar.action-count-4 a,
  .event-action-bar.action-count-4 .event-action-disabled {
    gap: 3px;
    padding-right: 4px;
    padding-left: 4px;
  }

  .event-action-bar.action-count-4 .action-icon {
    width: 13px;
    height: 13px;
  }

  .event-card .detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .event-card .detail-actions a,
  .event-card .detail-actions button {
    width: 100%;
  }

  .calendar-days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .calendar-weekdays span {
    padding: 7px 3px;
    font-size: 0.58rem;
    text-align: center;
  }

  .calendar-month-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-month-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .calendar-day {
    min-height: 68px;
    gap: 4px;
    padding: 5px;
  }

  .calendar-day-head strong {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
  }

  .calendar-day-head small {
    min-width: 18px;
    height: 18px;
    font-size: 0.62rem;
  }

  .calendar-day-events span {
    display: none;
  }

  .calendar-day-events em {
    font-size: 0.62rem;
  }

  .detail-overlay,
  .signout-overlay {
    padding: 12px;
  }

  .detail-modal {
    width: 100%;
    max-height: calc(100dvh - 24px);
  }

  .detail-modal-header {
    padding: 14px;
  }

  .detail-modal-header h2 {
    font-size: 1.28rem;
  }

  .detail-modal #eventDetailModalBody.selected-detail {
    display: block;
    padding: 14px;
  }

  .detail-modal #eventDetailModalBody.selected-detail > * + * {
    margin-top: 14px;
  }

  .event-detail-overview.has-thumbnail {
    display: block;
    height: fit-content;
    min-height: 0;
  }

  .detail-thumbnail {
    height: auto;
    min-height: 0;
    max-height: 210px;
    margin-bottom: 12px;
    aspect-ratio: 16 / 10;
  }

  .event-detail-copy {
    gap: 10px;
  }

  .event-detail-summary {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .detail-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .detail-meta div {
    min-height: 32px;
    padding: 5px 8px;
    border: 1px solid rgba(222, 217, 206, 0.72);
  }

  .detail-meta dt {
    min-width: 72px;
  }

  .detail-meta dd {
    text-align: right;
  }

  .detail-modal .event-detail-action-area {
    margin: 0 -14px -14px;
    padding: 12px 14px;
  }

  .event-detail-command-strip {
    grid-template-columns: 1fr;
  }

  .detail-address-actions {
    width: min(340px, calc(100vw - 24px));
    padding: 12px;
  }

  .detail-address-action-buttons {
    grid-template-columns: 1fr;
  }

  .roaming-map-card {
    grid-template-columns: 1fr;
  }

  .roaming-map-stage,
  .roaming-map-card.compact .roaming-map-stage {
    min-height: 180px;
  }

  .event-detail-action-area .event-action-bar[data-action-variant="event-detail"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .event-detail-action-area .event-action-bar.action-count-1[data-action-variant="event-detail"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-detail-action-area .event-action-bar.action-count-2[data-action-variant="event-detail"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-feedback-popover {
    justify-self: stretch;
    max-width: none;
  }

  .event-feedback-popover summary {
    width: 100%;
  }

  .event-feedback-panel {
    position: static;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 10px 24px rgba(23, 32, 29, 0.1);
  }

  .event-feedback-options {
    grid-template-columns: 1fr;
  }

  .site-feedback {
    right: 12px;
    bottom: 14px;
    width: auto;
  }

  .site-feedback:not([open]) summary {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
  }

  .site-feedback:not([open]) summary::before {
    content: "?";
    color: var(--green);
    font-size: 0.96rem;
    font-weight: 950;
  }

  .site-feedback:not([open]) summary span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .site-feedback[open] {
    left: 12px;
    bottom: 62px;
    width: auto;
  }

  .site-feedback-options {
    grid-template-columns: 1fr;
  }

  .feedback-thanks-popup {
    top: 12px;
    width: calc(100vw - 24px);
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }

  .plan-main {
    padding: 10px 12px 34px;
  }

  .planner-side {
    order: -1;
  }

  .plan-page-lede h1 {
    width: auto;
    font-size: 1.88rem;
  }

  .plan-summary-grid,
  .setting-grid,
  .planner-controls,
  .profile-dino-card,
  .reward-section-list,
  .badge-grid,
  .dino-shop-card,
  .dino-payment-pack {
    grid-template-columns: 1fr;
  }

  .profile-dino-stage {
    min-height: 150px;
  }

  .invite-card,
  .dino-shop-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dino-wallet-strip {
    grid-template-columns: 1fr;
  }

  .reward-more-panel summary {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .preference-section {
    grid-template-columns: 1fr;
  }

  .preference-section .setting-label {
    padding-top: 0;
  }

  .saved-event-card-actions,
  .planning-actions,
  .preference-actions,
  .voice-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .saved-event-card-actions a,
  .saved-event-card-actions button,
  .planning-actions a,
  .planning-actions button,
  .preference-actions a,
  .preference-actions button,
  .voice-controls button,
  .dino-shop-card button,
  .dino-payment-pack button {
    width: 100%;
  }

  .plan-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

@media (max-width: 360px) {
  h1 {
    width: 292px;
    font-size: 1.7rem;
  }

  .language-select {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
  }
}
