/* Product additions: theme discovery, saved wishes and live-task coordination. */
.theme-feed,
.theme-card,
.theme-card-body,
.wish-grid,
.wish-card,
.location-guardian,
.guardian-copy,
.data-health,
.vip-card,
.custom-result {
  min-width: 0;
}
.discover-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 19px;
  padding: 3px 0;
}
.discover-tabs::-webkit-scrollbar { display: none; }
.discover-tabs button {
  flex: 1 0 auto;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #e7e0ed;
  border-radius: 13px;
  background: #fff;
  color: #82748f;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}
.discover-tabs button.active {
  background: var(--purple, #6355df);
  border-color: var(--purple, #6355df);
  color: #fff;
}
.feed-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 14px;
  color: #8b7b98;
  font-size: 12px;
  line-height: 1.7;
}
.feed-toolbar strong,
.feed-toolbar h2 {
  color: var(--ink, #25242b);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}
#feed-status { font-size: 12px; color: #897a96; }
.theme-feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 19px; }
.theme-card {
  background: #fff;
  border: 1px solid #e9e2ee;
  border-radius: 23px;
  overflow: hidden;
  box-shadow: 0 4px 18px #49345c03;
}
.theme-art {
  --theme-surface: #eee8f9;
  --theme-ink: #8365a4;
  --theme-shape: #d5c5eb;
  width: 100%;
  min-height: 174px;
  border: 0;
  border-radius: 0;
  appearance: none;
  text-align: left;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 9px;
  padding: 22px;
  background: var(--theme-surface);
  color: var(--theme-ink);
}
.theme-art[data-palette="peach"] { --theme-surface: #f8e9e0; --theme-ink: #aa7860; --theme-shape: #eac5b1; }
.theme-art[data-palette="green"] { --theme-surface: #e9f0e5; --theme-ink: #7a936b; --theme-shape: #c7d9b9; }
.theme-art[data-palette="blue"] { --theme-surface: #e8edf6; --theme-ink: #7a8baa; --theme-shape: #cad5e7; }
.theme-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 142px;
  height: 142px;
  right: -28px;
  top: -29px;
  border: 21px solid var(--theme-shape);
  border-radius: 50%;
  opacity: .52;
  transform: rotate(-25deg);
}
.theme-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 66px;
  height: 76px;
  right: 39px;
  bottom: -21px;
  border: 1px solid var(--theme-ink);
  border-radius: 24px 24px 0 0;
  opacity: .2;
  transform: rotate(22deg);
}
.theme-art-kicker { font-size: 11px; line-height: 1.7; letter-spacing: .1em; font-weight: 500; }
.theme-art-title { font-size: 23px; line-height: 1.35; letter-spacing: -.045em; font-weight: 600; max-width: 90%; }
.theme-art-route { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 5px; max-width: 100%; }
.theme-art-route span {
  font-size: 11px;
  line-height: 1.6;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid #ffffff82;
  background: #ffffff73;
  backdrop-filter: none;
}
.theme-card-body { padding: 19px; }
.theme-author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 13px; }
.theme-author .avatar {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #ede4f3;
  border-radius: 50%;
  background: #f1e9f8;
  color: #a485b7;
  font-size: 12px;
  font-weight: 600;
}
.theme-author strong { color: #72607f; font-size: 13px; font-weight: 550; }
.theme-author small { color: #81718e; font-size: 11px; line-height: 1.6; }
.theme-card-body > h3 { font-size: 19px; line-height: 1.5; font-weight: 600; letter-spacing: -.03em; margin-bottom: 7px; }
.theme-card-body > p { font-size: 13px; line-height: 1.85; color: #796786; }
.theme-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.theme-meta span { color: #7d688c; font-size: 11px; line-height: 1.6; background: #f6f1f9; border-radius: 6px; padding: 4px 7px; }
.theme-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.theme-actions .btn { flex: 1 1 auto; min-width: 0; min-height: 45px; font-size: 14px; padding: 10px 11px; }
.theme-actions .btn.ghost { flex-grow: 0; padding-left: 8px; padding-right: 8px; }
.feed-sentinel { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 49px; color: #856b92; font-size: 12px; line-height: 1.7; padding: 14px 9px; text-align: center; }
.feed-load { width: 100%; min-height: 45px; border: 1px solid #e4d9eb; border-radius: 13px; background: #fff; color: #9275a3; font-size: 14px; margin: 2px 0 18px; padding: 10px 13px; }
#destination-catalog { margin-top: 20px; }


.plan-heading { flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; }
.plan-heading > div { flex: 1 1 155px; min-width: 0; }
.plan-heading > .btn { margin-top: 0; align-self: center; padding-left: 0; text-align: left; white-space: normal; }
.plan-card > .theme-origin { margin: 0 17px 14px; padding: 12px 14px; font-size: 13px; }
#party-label { overflow-wrap: anywhere; }
#current-destination-name { overflow-wrap: anywhere; }
.feed-toolbar .btn { font-size: 14px; padding-left: 0; padding-right: 0; }
.feed-sentinel .feed-load { align-self: stretch; margin-bottom: 0; }

/* A theme remains an editable starting point, not a paid reservation. */
.theme-origin { padding: 15px; border: 1px solid #e5d9ef; border-radius: 15px; background: #f4eefb; color: #785b8c; font-size: 13px; line-height: 1.85; margin-bottom: 20px; }
.theme-origin strong { color: #66487c; font-size: 14px; font-weight: 600; }
.theme-origin p { margin-top: 6px; }
.custom-fields { margin-top: 17px; grid-template-columns: minmax(0, 1fr); }
.custom-fields label { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: #7b648c; font-size: 13px; line-height: 1.7; }
.custom-fields select,
.custom-fields input:not([type="checkbox"]):not([type="radio"]),
.custom-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 47px;
  border: 1px solid #e4d7ed;
  border-radius: 11px;
  background: #fcfafd;
  color: #71557f;
  padding: 10px 11px;
  font-size: 16px;
  line-height: 1.5;
}
.preference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 15px 0; }
.preference-grid label,
.preference-grid button {
  min-width: 0;
  min-height: 47px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid #e8ddee;
  border-radius: 12px;
  background: #fbf8fe;
  color: #7a5f8b;
  padding: 11px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
}
.preference-grid button { font-size: 14px; }
.preference-grid input[type="checkbox"],
.preference-grid input[type="radio"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--purple, #6355df); }
.preference-grid label:has(input:checked),
.preference-grid button.active,
.preference-grid button[aria-pressed="true"] { border-color: #bda6d8; background: #f0e6fb; color: #805b9d; }
.custom-result { background: #f4eff9; border: 1px solid #e7dbef; padding: 17px; border-radius: 17px; margin-top: 20px; color: #795d8b; font-size: 13px; line-height: 1.85; }
.custom-result > strong { color: #624672; font-size: 14px; line-height: 1.7; font-weight: 600; }
.custom-result h3 { font-size: 16px; font-weight: 600; color: #624672; line-height: 1.6; margin-bottom: 8px; }
.custom-result > p { margin-top: 7px; }
.custom-diff { margin: 12px 0 0; padding: 0; list-style: none; }
.custom-diff li { position: relative; padding-left: 17px; font-size: 13px; line-height: 1.9; color: #7b618b; }
.custom-diff li + li { margin-top: 6px; }
.custom-diff li::before { content: ""; position: absolute; top: 10px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #b496ce; }
.custom-result .btn { margin-top: 15px; font-size: 14px; }

/* Saved wishes group travel ideas and destination interests. */
.wish-summary { padding: 20px; border: 1px solid #e7ddef; border-radius: 20px; background: #f0e9f9; color: #785c8c; font-size: 13px; line-height: 1.8; margin-bottom: 20px; }
.wish-summary h2,
.wish-summary h3,
.wish-summary strong { color: #6c4d81; font-size: 18px; font-weight: 600; line-height: 1.6; }
.wish-summary p { margin-top: 6px; }
.wish-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.wish-card { border: 1px solid #e8ddee; border-radius: 18px; background: #fff; padding: 19px; }
.wish-card h3 { font-size: 16px; font-weight: 600; line-height: 1.6; margin: 0 0 7px; }
.wish-card p { color: #7d638d; font-size: 13px; line-height: 1.85; }
.wish-card small { color: #816a90; font-size: 11px; line-height: 1.7; }
.wish-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.wish-actions .btn { flex: 1 1 auto; min-height: 44px; font-size: 14px; padding: 10px 11px; }
.saved-destination-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.saved-destination-chips button { min-height: 44px; min-width: 0; border: 1px solid #e4d7ed; background: #fff; color: #7e5f91; border-radius: 12px; padding: 10px 13px; font-size: 14px; line-height: 1.6; }

/* Proactive changes expose the reason, latest position and confirmation path. */
.location-guardian { border: 1px solid #e6ddeb; background: #fff; border-radius: 18px; overflow: hidden; margin: 18px 0; }
.guardian-main { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; text-align: left; padding: 16px; min-height: 78px; }
.guardian-icon { width: 37px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: #f0e9f8; color: #aa86c4; }
.guardian-icon svg { width: 20px; height: 20px; }
.guardian-copy { flex: 1; }
.guardian-copy strong { display: block; color: #66546f; font-size: 14px; font-weight: 600; line-height: 1.6; }
.guardian-copy small { display: block; color: #7f6c8b; font-size: 12px; line-height: 1.8; margin-top: 3px; }
.guardian-arrow { flex-shrink: 0; color: #b299c2; font-size: 21px; line-height: 1; }
.guardian-arrow svg { width: 16px; height: 16px; }
.location-guardian.statusok .guardian-icon,
.guardian-main.statusok .guardian-icon { background: #edf4e9; color: #8ca47b; }
.location-guardian.warning .guardian-icon,
.guardian-main.warning .guardian-icon { background: #f9eadf; color: #c69470; }
.location-guardian.unknown .guardian-icon,
.guardian-main.unknown .guardian-icon { background: #f0edf3; color: #a99aaf; }
.geo-alert { padding: 16px; border-top: 1px solid #efe0d6; background: #fcf1e9; }
.alert-heading { display: flex; align-items: center; gap: 7px; color: #ae7f5d; font-size: 14px; font-weight: 600; line-height: 1.7; }
.alert-heading svg { width: 18px; height: 18px; flex-shrink: 0; }
.geo-alert p { color: #8c6b50; font-size: 13px; line-height: 1.9; margin-top: 7px; }
.geo-alert .btn { font-size: 14px; margin-top: 12px; }
.geo-alert.statusok { border-top-color: #e2eadb; background: #f0f5e9; }
.geo-alert.statusok .alert-heading { color: #829566; }
.geo-alert.unknown { border-top-color: #e8e0ec; background: #f5f1f7; }
.geo-alert.unknown .alert-heading { color: #9d89ac; }
.location-map {
  position: relative;
  height: 191px;
  border: 1px solid #e9dfee;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f3fa;
  margin: 17px 0;
}
.location-path { position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; background: #d8c4e8; transform: rotate(-27deg); transform-origin: center; }
.location-path::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-right: 2px solid #b597cb; border-top: 2px solid #b597cb; transform: rotate(45deg); }
.location-point { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #d7c4e6; border: 3px solid #fff; box-shadow: 0 0 0 1px #d7c6e3; display: flex; justify-content: center; align-items: center; }
.location-point.start { left: 15%; top: 68%; }
.location-point.current { left: 44%; top: 48%; background: var(--purple, #6355df); box-shadow: 0 0 0 6px #e8dcf6; }
.location-point.target { left: 80%; top: 28%; background: #a3b695; box-shadow: 0 0 0 1px #b7c6a8; }
.location-point span,
.location-point small,
.location-point strong { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); min-width: 60px; width: max-content; max-width: 112px; font-size: 11px; font-weight: 500; color: #876a99; text-align: center; line-height: 1.5; }
.location-point.current span,
.location-point.current small,
.location-point.current strong { top: auto; bottom: 23px; color: #8f68b2; }
.location-point.target span,
.location-point.target small,
.location-point.target strong { left: auto; right: -24px; transform: none; text-align: right; }
.geo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 16px 0; }
.geo-metrics > div { min-width: 0; border: 1px solid #e9ddf0; border-radius: 12px; padding: 13px 8px; background: #fcf9fe; text-align: center; }
.geo-metrics small { display: block; color: #876f95; font-size: 11px; line-height: 1.7; }
.geo-metrics strong { display: block; color: #826293; font-size: 15px; line-height: 1.6; font-weight: 600; margin-top: 4px; overflow-wrap: anywhere; }
.monitor-note { font-size: 13px; line-height: 1.9; color: #7c658b; padding: 13px 14px; border: 1px solid #e9dfef; background: #f8f4fb; border-radius: 13px; margin: 15px 0; }

/* Queue confidence is shown beside its value; VIP access remains explicit. */
.data-health { padding: 15px; border: 1px solid #e5dbea; border-radius: 16px; background: #f8f4fb; margin: 16px 0; }
.data-state { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: #80658f; font-size: 12px; line-height: 1.7; font-weight: 500; }
.data-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b59ac8; flex-shrink: 0; }
.data-state.fresh,
.data-state .fresh { color: #7c9a6a; }
.data-state.fresh::before { background: #a6ba93; }
.data-state.stale,
.data-state .stale { color: #b28b5d; }
.data-state.stale::before { background: #d6b282; }
.data-state.unknown,
.data-state .unknown { color: #a38fad; }
.data-health > p { margin-top: 9px; color: #7d658c; font-size: 13px; line-height: 1.85; }
.source-lines { margin-top: 12px; }
.source-lines dl { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 7px 11px; font-size: 12px; line-height: 1.8; }
.source-lines dt { color: #8b709b; }
.source-lines dd { margin: 0; color: #7e608f; overflow-wrap: anywhere; }
.queue-scene-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; margin: 19px 0 11px; }
.queue-scene-heading h3,
.queue-scene-heading strong { font-size: 15px; color: #795889; font-weight: 600; line-height: 1.6; }
.queue-scene-heading p,
.queue-scene-heading small { font-size: 11px; color: #8d709e; line-height: 1.7; }
#queue-spatial-host { min-width: 0; max-width: 100%; margin: 11px 0 17px; }
.vip-card { padding: 18px; border: 1px solid #e9dcc6; border-radius: 18px; background: #fbf4e8; margin: 17px 0; }
.vip-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.vip-head strong { color: #96794e; font-size: 16px; line-height: 1.6; font-weight: 600; }
.vip-head .badge { background: #f0e5ce; color: #b29767; font-size: 11px; }
.vip-card > p { color: #8a6f4e; font-size: 13px; line-height: 1.9; margin-top: 8px; }
.vip-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: #8e744c; font-size: 12px; line-height: 1.8; margin-top: 11px; }
.vip-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vip-actions .btn { flex: 1 1 auto; min-width: 0; font-size: 14px; min-height: 45px; padding: 10px 11px; }
.vip-actions .btn.secondary { color: #a48a5d; border-color: #e6d8bd; background: #fffdf7; }
.vip-card > .btn { margin-top: 14px; font-size: 14px; }
.vip-rule { color: #8c714b; font-size: 13px; line-height: 1.85; margin-top: 12px; }

@media (hover: hover) and (pointer: fine) {
  .discover-tabs button:not(.active):hover,
  .feed-load:hover,
  .saved-destination-chips button:hover { background: #f7effd; border-color: #cbb3de; }
  .theme-actions .btn.ghost:hover { background: #f6effb; }
  .preference-grid button:hover,
  .preference-grid label:hover { border-color: #c7acdc; }
  .guardian-main:hover { background: #fcf9fe; }
  .vip-actions .btn.secondary:hover { background: #f6edd9; border-color: #d6c39e; }
}
@media (max-width: 360px) {
  .plan-heading > div { flex-basis: 100%; }
  .plan-heading > .btn { margin-top: -2px; padding-left: 0; padding-right: 0; }
  .discover-tabs { gap: 6px; }
  .discover-tabs button { padding-left: 11px; padding-right: 11px; }
  .theme-art { min-height: 163px; padding: 18px; }
  .theme-art-title { font-size: 21px; }
  .theme-art-route { gap: 4px; }
  .theme-art-route span { padding-left: 6px; padding-right: 6px; }
  .theme-card-body { padding: 16px; }
  .theme-card-body > h3 { font-size: 18px; }
  .theme-actions .btn { flex: 1 1 100%; }
  .theme-actions .btn.ghost { flex: 1 1 auto; }
  .wish-card { padding: 17px; }
  .wish-summary { padding: 18px; }
  .preference-grid { gap: 7px; }
  .preference-grid label,
  .preference-grid button { padding: 10px 8px; gap: 6px; }
  .guardian-main { padding: 14px; gap: 10px; }
  .guardian-icon { width: 32px; height: 37px; }
  .geo-alert { padding: 14px; }
  .location-map { height: 181px; }
  .geo-metrics { gap: 5px; }
  .geo-metrics > div { padding: 11px 5px; }
  .geo-metrics strong { font-size: 14px; }
  .data-health { padding: 13px; }
  .source-lines dl { grid-template-columns: 63px minmax(0, 1fr); gap: 7px 8px; }
  .vip-card { padding: 16px; }
  .vip-actions .btn { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-card,
  .location-guardian,
  .geo-alert { animation: none; transition: none; }
}
