/* ═══════════════════════════════════════════════════════════════════════
   WanderMind Studio · AI Tool page
   Three-column layout: left sidebar / center chat / right panel
   Studio palette: #fcbf1e (amber), #0e7c6b (teal), #1a1a1a (ink)
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ws-amber:      #fcbf1e;
  --ws-amber-dk:   #f59e0b;
  --ws-teal:       #0e7c6b;
  --ws-teal-lt:    #14b8a6;
  --ws-ink:        #1a1a1a;
  --ws-ink-2:      #4a4a4a;
  --ws-ink-3:      #8a8a8a;
  --ws-bg:         #fafaf7;
  --ws-bg-2:       #f3f1ea;
  --ws-paper:      #ffffff;
  --ws-line:       #e5e2da;
  --ws-line-soft:  #f0ede5;
  --ws-shadow-sm:  0 2px 8px rgba(0,0,0,.04);
  --ws-shadow-md:  0 6px 24px rgba(0,0,0,.06);
  --ws-shadow-lg:  0 14px 40px rgba(0,0,0,.10);
  --ws-radius:     12px;
  --ws-radius-lg:  16px;
}
body.dark {
  --ws-bg:         #15171a;
  --ws-bg-2:       #1c1f23;
  --ws-paper:      #1f2226;
  --ws-line:       #2d3036;
  --ws-line-soft:  #25282d;
  --ws-ink:        #f3f1ea;
  --ws-ink-2:      #c9c6bd;
  --ws-ink-3:      #8a8a8a;
}

/* —— Page-level wrapper sits below the sticky Studio navbar + fixed tab bar —— */
.ws-aitool {
  background: var(--ws-bg);
  color: var(--ws-ink);
  min-height: calc(100vh - 80px);
  /* navbar height is measured live into --ws-nav-h (fallback 70px); + 52px tab bar + 12px gap */
  padding-top: calc(var(--ws-nav-h, 70px) + 64px);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
}

/* ─────────────────── TOP NAV TABS (FIXED — stays pinned under navbar) ─────────────────── */
.ws-top-tabs {
  display: flex;
  gap: 0;
  background: var(--ws-paper);
  border-bottom: 1px solid var(--ws-line);
  padding: 0 24px;
  position: fixed;
  top: var(--ws-nav-h, 70px);   /* sits flush under the live-measured navbar */
  left: 0;
  right: 0;
  z-index: 1020;       /* above page content, below modals */
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
  transition: top .25s ease;
}
body.dark .ws-top-tabs { background: var(--ws-bg-2); border-bottom-color: var(--ws-line); }
.ws-top-tabs::-webkit-scrollbar { display: none; }
.ws-top-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ws-ink-2);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: color .2s, border-color .2s, background .2s;
}
.ws-top-tab .fa { font-size: 14px; opacity: .8; }
.ws-top-tab:hover { color: var(--ws-ink); background: var(--ws-bg-2); }
.ws-top-tab.active {
  color: var(--ws-ink);
  border-bottom-color: var(--ws-amber);
}
.ws-top-tab.active .fa { color: var(--ws-amber); opacity: 1; }

/* ─────────────────── 3-COLUMN GRID ─────────────────── */
.ws-grid {
  display: grid;
  grid-template-columns: 280px 1fr 360px;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 180px);
}

@media (max-width: 1199px) {
  .ws-grid { grid-template-columns: 240px 1fr 320px; }
}
@media (max-width: 991px) {
  .ws-grid { grid-template-columns: 1fr; }
  .ws-sidebar, .ws-rightpanel { display: none; }
  .ws-sidebar.mobile-open, .ws-rightpanel.mobile-open {
    display: block;
    position: fixed;
    top: 80px;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    z-index: 100;
    background: var(--ws-paper);
    box-shadow: var(--ws-shadow-lg);
    overflow-y: auto;
  }
  .ws-sidebar.mobile-open { left: 0; }
  .ws-rightpanel.mobile-open { right: 0; }
}

/* ─────────────────── LEFT SIDEBAR ─────────────────── */
.ws-sidebar {
  background: var(--ws-paper);
  border-right: 1px solid var(--ws-line);
  padding: 24px 18px;
  overflow-y: auto;
}
.ws-sidebar-block { margin-bottom: 28px; }
.ws-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ws-ink-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 0 6px;
}

/* —— Trips list —— */
.ws-trip-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ws-trip-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--ws-ink-2);
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ws-trip-item:hover { background: var(--ws-line-soft); color: var(--ws-ink); }
.ws-trip-item.active {
  background: linear-gradient(135deg, rgba(252,191,30,.18), rgba(252,191,30,.06));
  color: var(--ws-ink);
  font-weight: 600;
}
.ws-trip-item .fa { font-size: 12px; opacity: .65; }
.ws-trip-empty {
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--ws-ink-3);
  background: var(--ws-bg-2);
  border-radius: 10px;
  line-height: 1.6;
}
.ws-newtrip-btn {
  width: 100%;
  padding: 11px 14px;
  background: var(--ws-amber);
  color: var(--ws-ink);
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s, transform .15s;
  font-family: inherit;
}
.ws-newtrip-btn:hover { background: var(--ws-amber-dk); transform: translateY(-1px); }
.ws-newtrip-btn .fa { font-size: 11px; }

/* —— Agent list —— */
.ws-agent-list { display: flex; flex-direction: column; gap: 6px; }
.ws-agent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s;
}
.ws-agent-item:hover { background: var(--ws-line-soft); }
.ws-agent-item.active {
  background: linear-gradient(90deg, rgba(14,124,107,.10), transparent);
  border-left: 3px solid var(--ws-teal);
  padding-left: 9px;
}
.ws-agent-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  flex-shrink: 0;
}
.ws-agent-icon.planner  { background: linear-gradient(135deg, #14b8a6, #0e7c6b); }
.ws-agent-icon.hotel    { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.ws-agent-icon.food     { background: linear-gradient(135deg, #fb923c, #ea580c); }
.ws-agent-icon.activity { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.ws-agent-icon.budget   { background: linear-gradient(135deg, #fcbf1e, #d97706); }
.ws-agent-icon.search   { background: linear-gradient(135deg, #34d399, #059669); }
.ws-agent-meta { flex: 1; min-width: 0; }
.ws-agent-name { font-size: 13px; font-weight: 600; color: var(--ws-ink); line-height: 1.3; }
.ws-agent-role { font-size: 11px; color: var(--ws-ink-3); letter-spacing: .04em; margin-top: 2px; }

/* ─────────────────── CENTER CHAT ─────────────────── */
.ws-chat {
  display: flex;
  flex-direction: column;
  background: var(--ws-bg);
  min-width: 0;
  border-right: 1px solid var(--ws-line);
}
.ws-chat-header {
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--ws-line);
  background: var(--ws-paper);
}
.ws-dest-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--ws-teal);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-dest-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ws-ink);
  line-height: 1.25;
  margin: 0 0 12px;
}
.ws-dest-title em {
  font-style: normal;
  color: var(--ws-amber-dk);
  font-weight: 700;
  margin-left: 6px;
}
.ws-dest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-dest-chip {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--ws-line-soft);
  color: var(--ws-ink-2);
  border: 1px solid var(--ws-line);
}

/* —— Chat controls bar —— */
.ws-chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: var(--ws-paper);
  border-bottom: 1px solid var(--ws-line);
  gap: 12px;
  flex-wrap: wrap;
}
.ws-askall-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--ws-amber), var(--ws-amber-dk));
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  font-family: inherit;
}
.ws-askall-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(252,191,30,.4); }
.ws-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--ws-bg-2);
  border-radius: 18px;
  border: 1px solid var(--ws-line);
  font-size: 12px;
  color: var(--ws-ink-2);
  cursor: pointer;
}
.ws-mode-toggle .fa { color: var(--ws-teal); }
.ws-mode-toggle:hover { border-color: var(--ws-teal-lt); }
.ws-mode-toggle .ws-mode-label { font-weight: 600; color: var(--ws-ink); }

/* —— Right-side controls cluster (mode + share) —— */
.ws-chat-controls-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* —— Usage quota pill —— */
.ws-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--ws-line);
  background: var(--ws-bg-2);
  color: var(--ws-ink-2);
  transition: transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.ws-quota-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.ws-quota-pill .fa { font-size: 11px; }
.ws-quota-pill.low { border-color: #fcd34d; color: #92400e; background: #fffbeb; }
.ws-quota-pill.empty { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }
body.dark .ws-quota-pill.low { background: rgba(252,191,30,.14); color: #fcd34d; border-color: rgba(252,191,30,.4); }
body.dark .ws-quota-pill.empty { background: rgba(220,38,38,.14); color: #fca5a5; border-color: rgba(220,38,38,.4); }
@media (max-width: 575px) { .ws-quota-pill { padding: 6px 10px; } }

/* ── Recharge modal: bean pricing tiers ── */
.ws-bean-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ws-bean-tier {
  border: 1.5px solid var(--ws-line); border-radius: 12px; padding: 12px 8px;
  text-align: center; background: var(--ws-bg-2); position: relative;
}
.ws-bean-tier.best { border-color: var(--ws-teal); }
.ws-bean-tier.best::after {
  content: '★'; position: absolute; top: -8px; right: -6px;
  background: var(--ws-teal); color: #fff; font-size: 10px;
  width: 18px; height: 18px; line-height: 18px; border-radius: 50%;
}
.ws-bean-price { font-size: 18px; font-weight: 800; color: var(--ws-ink-1); }
.ws-bean-amt { font-size: 12px; color: var(--ws-ink-2); margin-top: 3px; white-space: nowrap; }
.ws-bean-amt .fa { color: var(--ws-teal); font-size: 10px; }

/* ── Recharge modal: payment QR codes ── */
.ws-pay-qrs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ws-pay-qr { text-align: center; }
.ws-pay-qr-label { font-size: 12px; font-weight: 600; color: var(--ws-ink-2); margin-bottom: 6px; }
.ws-pay-qr-img {
  border: 1px solid var(--ws-line); border-radius: 12px; overflow: hidden;
  background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.ws-pay-qr-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ws-pay-qr-missing {
  width: 100%; height: 100%; align-items: center; justify-content: center;
  color: var(--ws-ink-3); font-size: 40px; background: var(--ws-bg-2);
}
@media (max-width: 420px) {
  .ws-bean-tiers { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ws-bean-price { font-size: 16px; }
}

/* —— Share button — small outline pill with teal accent —— */
.ws-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--ws-paper);
  border: 1px solid var(--ws-teal-lt);
  color: var(--ws-teal);
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.ws-share-btn .fa { font-size: 12px; }
.ws-share-btn:hover {
  background: linear-gradient(135deg, rgba(14,124,107,.10), rgba(14,124,107,.04));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14,124,107,.18);
}
.ws-share-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
body.dark .ws-share-btn {
  background: rgba(14,124,107,.08);
  border-color: rgba(20,184,166,.4);
  color: #5eead4;
}
body.dark .ws-share-btn:hover {
  background: rgba(20,184,166,.18);
}
/* Mobile: hide label, keep icon only — keeps the row compact */
@media (max-width: 575px) {
  .ws-share-btn .ws-share-label { display: none; }
  .ws-share-btn { padding: 6px 10px; }
  .ws-chat-controls { padding: 10px 16px; gap: 8px; }
}

/* —— Share modal styling —— */
.ws-share-link-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0 6px;
}
.ws-share-link-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  padding: 10px 12px;
  background: var(--ws-bg-2);
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  color: var(--ws-ink);
  outline: none;
  min-width: 0;            /* allow flex shrink on mobile */
}
.ws-share-link-input:focus { border-color: var(--ws-teal-lt); }
.ws-share-copy-btn {
  flex-shrink: 0;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--ws-amber), var(--ws-amber-dk));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s;
  white-space: nowrap;
}
.ws-share-copy-btn:hover { transform: translateY(-1px); }
.ws-share-copy-btn.copied {
  background: linear-gradient(135deg, #14b8a6, #0e7c6b);
}
.ws-share-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ws-share-actions button {
  flex: 1 1 120px;
  min-width: 0;
}
.ws-share-meta {
  font-size: 12px;
  color: var(--ws-ink-3);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--ws-line);
}
.ws-share-loading {
  padding: 30px 0;
  text-align: center;
  color: var(--ws-ink-3);
  font-size: 13px;
}
.ws-share-loading .fa { animation: ws-spin 1s linear infinite; margin-right: 6px; color: var(--ws-amber); }
@keyframes ws-spin { to { transform: rotate(360deg); } }
@media (max-width: 575px) {
  .ws-share-link-row { flex-direction: column; }
  .ws-share-copy-btn { padding: 12px 16px; justify-content: center; }
}

/* —— Messages —— */
.ws-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ws-msg { display: flex; gap: 12px; max-width: 88%; }
.ws-msg.ai { align-self: flex-start; }
.ws-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.ws-msg.system { align-self: center; max-width: 100%; }
.ws-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}
.ws-msg.user .ws-msg-avatar {
  background: var(--ws-ink);
}
.ws-msg-body {
  background: var(--ws-paper);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--ws-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ws-ink);
  box-shadow: var(--ws-shadow-sm);
  word-break: break-word;
}
.ws-msg.user .ws-msg-body {
  background: linear-gradient(135deg, #fff8e1, #ffeaa7);
  border-color: rgba(252,191,30,.4);
}
.ws-msg-meta {
  font-size: 11px;
  color: var(--ws-ink-3);
  margin-bottom: 4px;
  font-weight: 600;
  letter-spacing: .04em;
}
.ws-msg.system .ws-msg-body {
  background: var(--ws-bg-2);
  border: 1px dashed var(--ws-line);
  color: var(--ws-ink-2);
  font-size: 12.5px;
  text-align: center;
  font-style: italic;
}
.ws-msg-typing { display: inline-flex; gap: 4px; align-items: center; }
.ws-msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ws-teal); opacity: .4;
  animation: wstype 1.2s infinite ease-in-out;
}
.ws-msg-typing span:nth-child(2) { animation-delay: .2s; }
.ws-msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes wstype { 0%, 80%, 100% { opacity: .3; transform: scale(1); } 40% { opacity: 1; transform: scale(1.3); } }

/* —— Quick actions row —— */
.ws-quick-row {
  display: flex;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ws-paper);
  border-top: 1px solid var(--ws-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.ws-quick-row::-webkit-scrollbar { display: none; }
.ws-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--ws-bg-2);
  border: 1px solid var(--ws-line);
  border-radius: 18px;
  font-size: 12px;
  color: var(--ws-ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .2s, background .2s, color .2s;
  font-family: inherit;
}
.ws-quick-btn .fa { color: var(--ws-teal); font-size: 11px; }
.ws-quick-btn:hover {
  border-color: var(--ws-amber);
  background: #fff8e1;
  color: var(--ws-ink);
}

/* —— Input —— */
.ws-input-wrap {
  padding: 16px 28px 22px;
  background: var(--ws-paper);
  border-top: 1px solid var(--ws-line);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.ws-input-box {
  flex: 1;
  border: 1.5px solid var(--ws-line);
  border-radius: 14px;
  background: var(--ws-bg);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ws-ink);
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.5;
  min-height: 46px;
  max-height: 160px;
  transition: border-color .2s, box-shadow .2s;
}
.ws-input-box:focus { border-color: var(--ws-teal-lt); box-shadow: 0 0 0 3px rgba(20,184,166,.12); }
.ws-input-box::placeholder { color: var(--ws-ink-3); }
.ws-send-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ws-ink);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.ws-send-btn:hover { background: var(--ws-teal); transform: translateY(-1px); }
.ws-send-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ─────────────────── RIGHT PANEL ─────────────────── */
.ws-rightpanel {
  background: var(--ws-paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ws-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--ws-line);
  background: var(--ws-bg-2);
}
.ws-panel-tab {
  flex: 1;
  padding: 12px 6px;
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ws-ink-3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  letter-spacing: .04em;
  transition: color .2s, border-color .2s, background .2s;
  font-family: inherit;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ws-panel-tab .fa { font-size: 14px; }
.ws-panel-tab:hover { color: var(--ws-ink); background: var(--ws-paper); }
.ws-panel-tab.active {
  color: var(--ws-teal);
  border-bottom-color: var(--ws-teal);
  background: var(--ws-paper);
}
.ws-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: none;
}
.ws-panel-content.active { display: block; }
.ws-panel-section { margin-bottom: 24px; }
.ws-panel-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ws-ink);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* —— Weather card —— */
.ws-weather {
  background: linear-gradient(135deg, #fffbe6, #fff0c2);
  padding: 18px;
  border-radius: var(--ws-radius);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(252,191,30,.3);
}
body.dark .ws-weather { background: linear-gradient(135deg, rgba(252,191,30,.10), rgba(252,191,30,.04)); }
.ws-weather-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-weather-temp { font-size: 32px; font-weight: 700; color: var(--ws-ink); line-height: 1; }
.ws-weather-cond { font-size: 12px; color: var(--ws-ink-2); margin-top: 4px; }
.ws-weather-icon { font-size: 30px; }
.ws-weather-row2 { margin-top: 10px; font-size: 11px; color: var(--ws-ink-3); }
.ws-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ws-stat-card {
  background: var(--ws-bg-2);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  border: 1px solid var(--ws-line);
}
.ws-stat-val { font-size: 14px; font-weight: 700; color: var(--ws-ink); line-height: 1.2; }
.ws-stat-lbl { font-size: 10px; color: var(--ws-ink-3); margin-top: 3px; letter-spacing: .04em; }

/* —— Region chips —— */
.ws-region-list { display: flex; flex-direction: column; gap: 8px; }
.ws-region-card {
  padding: 10px 12px;
  background: var(--ws-bg-2);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--ws-line);
  transition: border-color .2s, background .2s;
}
.ws-region-card:hover { border-color: var(--ws-teal); background: var(--ws-paper); }
.ws-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ws-region-name { font-size: 13px; font-weight: 700; color: var(--ws-ink); }
.ws-region-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .02em;
}
.ws-region-tag.tag-blue  { background: #e0f2fe; color: #075985; }
.ws-region-tag.tag-amber { background: #fef3c7; color: #92400e; }
.ws-region-tag.tag-green { background: #d1fae5; color: #065f46; }
body.dark .ws-region-tag { filter: brightness(.85); }
.ws-region-desc { font-size: 11.5px; color: var(--ws-ink-2); line-height: 1.5; }

/* —— Tips —— */
.ws-tip {
  padding: 10px 12px;
  background: var(--ws-bg-2);
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--ws-line);
}
.ws-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ws-tip-title { font-size: 12.5px; font-weight: 700; color: var(--ws-ink); }
.ws-tip-tag {
  font-size: 10px; padding: 2px 8px; border-radius: 8px;
  font-weight: 600;
}
.ws-tip-tag.tag-blue  { background: #e0f2fe; color: #075985; }
.ws-tip-tag.tag-amber { background: #fef3c7; color: #92400e; }
.ws-tip-tag.tag-green { background: #d1fae5; color: #065f46; }
.ws-tip-desc { font-size: 11.5px; color: var(--ws-ink-2); line-height: 1.5; }
.ws-tip.driver { background: linear-gradient(135deg, rgba(14,124,107,.08), rgba(14,124,107,.02)); border-color: rgba(14,124,107,.3); }
.ws-tip.driver .ws-tip-title { color: var(--ws-teal); }
/* —— Tip contact rows (used by driver Dicky card) —— */
.ws-tip-contacts {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(14,124,107,.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ws-tip-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ws-ink-2);
  text-decoration: none;
  padding: 4px 0;
  word-break: break-all;
}
.ws-tip-contact:hover { color: var(--ws-teal); text-decoration: none; }
.ws-tip-contact .fa {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  color: var(--ws-teal);
  font-size: 13px;
}
.ws-tip-contact-text { line-height: 1.4; }

/* —— Placeholder for unbuilt phase 2 panels —— */
.ws-coming {
  text-align: center;
  padding: 40px 20px;
  color: var(--ws-ink-3);
}
.ws-coming .fa {
  font-size: 40px;
  margin-bottom: 14px;
  opacity: .4;
  color: var(--ws-amber);
}
.ws-coming h4 { font-size: 14px; font-weight: 700; color: var(--ws-ink); margin-bottom: 6px; }
.ws-coming p { font-size: 12px; line-height: 1.6; }

/* ─────────────────── DESTINATION SWITCHER (in chat header) ─────────────────── */
.ws-dest-switch-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ws-dest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--ws-bg-2);
  border: 1px solid var(--ws-line);
  font-size: 11.5px;
  color: var(--ws-ink-2);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.ws-dest-pill:hover { border-color: var(--ws-teal); color: var(--ws-ink); }
.ws-dest-pill.active {
  background: var(--ws-teal);
  border-color: var(--ws-teal);
  color: #fff;
  font-weight: 600;
}

/* ─────────────────── MOBILE PANEL TOGGLE ─────────────────── */
.ws-mobile-bar {
  display: none;
  background: var(--ws-paper);
  border-bottom: 1px solid var(--ws-line);
  padding: 10px 16px;
  gap: 8px;
  justify-content: space-between;
  position: fixed;
  top: 132px;          /* sits flush under the fixed top-tab bar */
  left: 0;
  right: 0;
  z-index: 1019;
}
@media (max-width: 991px) { .ws-mobile-bar { display: flex; } }
.ws-mobile-btn {
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--ws-bg-2);
  border: 1px solid var(--ws-line);
  font-size: 12px;
  color: var(--ws-ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

/* ─────────────────── TOAST ─────────────────── */
.ws-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--ws-ink);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  box-shadow: var(--ws-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 90vw;
}
.ws-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.ws-toast .fa { color: var(--ws-amber); }

/* ═══════════════════════════════════════════════════════════════════
   PHASE 2 — RIGHT PANEL FULL CONTENT
   Compare (hotels + flights) · Itinerary · Budget · Log · Modals
   ═══════════════════════════════════════════════════════════════════ */

/* —— Sub-tab strip (used inside Compare for Hotels/Flights toggle) —— */
.ws-subtabs {
  display: flex;
  gap: 4px;
  background: var(--ws-bg-2);
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 14px;
}
.ws-subtab {
  flex: 1;
  padding: 7px 10px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-ink-3);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ws-subtab:hover { color: var(--ws-ink); }
.ws-subtab.active { background: var(--ws-paper); color: var(--ws-teal); box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* —— Compare form inputs —— */
.ws-form-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ws-form-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ws-form-label { font-size: 10.5px; color: var(--ws-ink-3); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.ws-form-input, .ws-form-select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: var(--ws-paper);
  font-size: 12.5px;
  color: var(--ws-ink);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.ws-form-input:focus, .ws-form-select:focus { border-color: var(--ws-teal); }
.ws-form-input::placeholder { color: var(--ws-ink-3); }

.ws-search-btn {
  width: 100%;
  padding: 9px 14px;
  background: var(--ws-teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background .2s, transform .15s;
}
.ws-search-btn:hover { background: #0d6f5f; transform: translateY(-1px); }
.ws-search-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.ws-search-btn .fa { font-size: 12px; }

/* —— Area chip strip (e.g. Bali sub-areas inside Hotels) —— */
.ws-area-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 12px; }
.ws-area-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 12px;
  background: var(--ws-bg-2);
  border: 1px solid var(--ws-line);
  color: var(--ws-ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.ws-area-chip:hover { border-color: var(--ws-teal); }
.ws-area-chip.active { background: var(--ws-teal); border-color: var(--ws-teal); color: #fff; font-weight: 600; }

/* —— Trip type toggle for flights —— */
.ws-trip-toggle {
  display: inline-flex;
  background: var(--ws-bg-2);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 10px;
}
.ws-trip-toggle-btn {
  padding: 5px 14px;
  background: transparent;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--ws-ink-3);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
}
.ws-trip-toggle-btn.active { background: var(--ws-paper); color: var(--ws-teal); }

/* —— Hotel result card —— */
.ws-hotel-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--ws-paper);
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.ws-hotel-card:hover { border-color: var(--ws-teal); transform: translateY(-1px); box-shadow: var(--ws-shadow-sm); }
.ws-hotel-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ws-bg-2);
}
.ws-hotel-thumb-ph {
  width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--ws-line), var(--ws-bg-2));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ws-ink-3); font-size: 22px;
}
.ws-hotel-body { flex: 1; min-width: 0; }
.ws-hotel-name {
  font-size: 12.5px; font-weight: 700; color: var(--ws-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.ws-hotel-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--ws-ink-2); flex-wrap: wrap; }
.ws-hotel-rating { color: #f59e0b; font-weight: 600; }
.ws-hotel-price { color: var(--ws-teal); font-weight: 700; font-size: 13px; margin-left: auto; }
.ws-hotel-price .per { font-weight: 400; color: var(--ws-ink-3); font-size: 10px; margin-left: 2px; }
.ws-hotel-amen { font-size: 10.5px; color: var(--ws-ink-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* —— Flight result card —— */
.ws-flight-card {
  background: var(--ws-paper);
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.ws-flight-card:hover { border-color: var(--ws-teal); transform: translateY(-1px); box-shadow: var(--ws-shadow-sm); }
.ws-flight-row { display: flex; align-items: center; gap: 8px; }
.ws-flight-logo { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; background: #fff; flex-shrink: 0; }
.ws-flight-logo-ph { width: 28px; height: 28px; border-radius: 4px; background: var(--ws-bg-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ws-ink-3); font-size: 14px; flex-shrink: 0; }
.ws-flight-times { font-size: 13px; font-weight: 700; color: var(--ws-ink); flex: 1; }
.ws-flight-route { font-size: 10.5px; color: var(--ws-ink-3); margin-top: 2px; }
.ws-flight-price { font-size: 14px; font-weight: 700; color: var(--ws-teal); }
.ws-flight-stops {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: 6px;
  display: inline-block;
}
.ws-flight-stops.direct { background: #d1fae5; color: #065f46; }
.ws-flight-stops.s1     { background: #fef3c7; color: #92400e; }
.ws-flight-stops.s2     { background: #fee2e2; color: #991b1b; }
body.dark .ws-flight-stops { filter: brightness(.85); }
.ws-flight-dur { font-size: 10.5px; color: var(--ws-ink-3); margin-top: 4px; }

/* —— Loading + empty states —— */
.ws-loading {
  text-align: center;
  padding: 24px 12px;
  color: var(--ws-ink-3);
  font-size: 12px;
}
.ws-loading .fa { font-size: 22px; color: var(--ws-amber); animation: wsspin 1s linear infinite; margin-bottom: 8px; }
@keyframes wsspin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.ws-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--ws-ink-3);
  font-size: 12px;
}
.ws-empty .fa { font-size: 28px; opacity: .4; margin-bottom: 8px; display: block; color: var(--ws-amber); }
.ws-error {
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  font-size: 11.5px;
  margin: 6px 0;
}
body.dark .ws-error { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.3); color: #fca5a5; }

/* —— Itinerary timeline —— */
.ws-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ws-tl-item {
  display: flex; gap: 12px;
  padding: 10px 12px;
  background: var(--ws-bg-2);
  border-radius: 10px;
  border: 1px solid var(--ws-line);
}
.ws-tl-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; flex-shrink: 0;
}
.ws-tl-body { flex: 1; min-width: 0; }
.ws-tl-day { font-size: 10.5px; color: var(--ws-teal); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ws-tl-title { font-size: 13px; font-weight: 700; color: var(--ws-ink); margin: 1px 0 3px; }
.ws-tl-desc { font-size: 11.5px; color: var(--ws-ink-2); line-height: 1.5; }
.ws-action-btn {
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  background: var(--ws-amber);
  color: var(--ws-ink);
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background .2s;
}
.ws-action-btn:hover { background: var(--ws-amber-dk); }
.ws-action-btn.secondary {
  background: var(--ws-paper);
  border: 1.5px solid var(--ws-teal);
  color: var(--ws-teal);
}
.ws-action-btn.secondary:hover { background: var(--ws-teal); color: #fff; }
.ws-action-btn .fa { font-size: 12px; }

/* —— Budget panel —— */
.ws-budget-total {
  text-align: center;
  padding: 18px 14px;
  background: linear-gradient(135deg, rgba(252,191,30,.18), rgba(252,191,30,.04));
  border-radius: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(252,191,30,.3);
}
.ws-budget-amount {
  font-size: 28px; font-weight: 700; color: var(--ws-ink); line-height: 1;
}
.ws-budget-sub { font-size: 11px; color: var(--ws-ink-3); margin-top: 5px; letter-spacing: .04em; }
.ws-budget-rows { display: flex; flex-direction: column; gap: 6px; }
.ws-budget-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: var(--ws-bg-2);
  border-radius: 10px;
  border: 1px solid var(--ws-line);
}
.ws-budget-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; flex-shrink: 0;
}
.ws-budget-info { flex: 1; min-width: 0; }
.ws-budget-cat { font-size: 12px; font-weight: 600; color: var(--ws-ink); }
.ws-budget-note { font-size: 10.5px; color: var(--ws-ink-3); margin-top: 1px; }
.ws-budget-val { font-size: 13px; font-weight: 700; color: var(--ws-teal); }

/* —— Activity log stream —— */
.ws-log-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 100%;
  overflow-y: auto;
}
.ws-log-row {
  display: flex; gap: 8px;
  padding: 7px 10px;
  background: var(--ws-bg-2);
  border-radius: 8px;
  border-left: 3px solid var(--ws-teal);
  font-size: 11.5px;
  color: var(--ws-ink-2);
  line-height: 1.4;
  animation: wslogin .25s ease-out;
}
.ws-log-row.success { border-left-color: #10b981; }
.ws-log-row.warn    { border-left-color: #f59e0b; }
.ws-log-row.error   { border-left-color: #ef4444; }
.ws-log-row.info    { border-left-color: var(--ws-teal-lt); }
.ws-log-time { font-size: 9.5px; color: var(--ws-ink-3); margin-top: 2px; letter-spacing: .03em; font-family: 'SF Mono', monospace; }
.ws-log-icon { width: 18px; text-align: center; color: var(--ws-amber); flex-shrink: 0; }
.ws-log-msg { flex: 1; min-width: 0; }
.ws-log-msg strong { color: var(--ws-ink); font-weight: 700; }
@keyframes wslogin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ws-log-clear {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--ws-line);
  border-radius: 12px;
  font-size: 11px;
  color: var(--ws-ink-3);
  cursor: pointer;
  font-family: inherit;
  float: right;
}
.ws-log-clear:hover { color: var(--ws-ink); border-color: var(--ws-ink-3); }

/* —— Modals (Map + Diary) —— */
.ws-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 17, 20, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: wsfadein .2s ease-out;
}
.ws-modal-overlay.show { display: flex; }
@keyframes wsfadein { from { opacity: 0; } to { opacity: 1; } }
.ws-modal {
  background: var(--ws-paper);
  border-radius: 18px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--ws-shadow-lg);
  animation: wsmodalin .25s ease-out;
}
@keyframes wsmodalin { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.ws-modal-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--ws-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ws-modal-title { font-size: 18px; font-weight: 700; color: var(--ws-ink); display: inline-flex; align-items: center; gap: 10px; }
.ws-modal-title .fa { color: var(--ws-amber); }
.ws-modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ws-bg-2);
  border: none;
  color: var(--ws-ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.ws-modal-close:hover { background: var(--ws-line); color: var(--ws-ink); }
.ws-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}
.ws-modal-body p { font-size: 13.5px; line-height: 1.75; color: var(--ws-ink-2); margin-bottom: 12px; white-space: pre-wrap; }
.ws-modal-body h3, .ws-modal-body h4 { color: var(--ws-ink); margin: 18px 0 8px; }
.ws-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--ws-line);
  background: var(--ws-bg-2);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* —— Map modal specific —— */
.ws-map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 767px) { .ws-map-grid { grid-template-columns: 1fr; } }
.ws-map-visual {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 14px;
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ws-map-globe {
  font-size: 86px;
  color: var(--ws-amber);
  filter: drop-shadow(0 0 30px rgba(252,191,30,.4));
}
.ws-map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -130%);
  font-size: 22px;
  color: var(--ws-amber);
  animation: wspulse 2s infinite;
}
@keyframes wspulse { 0%, 100% { opacity: 1; transform: translate(-50%, -130%) scale(1); } 50% { opacity: .6; transform: translate(-50%, -130%) scale(1.15); } }
.ws-map-dest-name { font-size: 22px; font-weight: 700; color: #fff; margin-top: 16px; }
.ws-map-dest-region { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.ws-map-region-list { display: flex; flex-direction: column; gap: 8px; }
.ws-map-region {
  padding: 12px 14px;
  background: var(--ws-bg-2);
  border-left: 3px solid var(--ws-teal);
  border-radius: 8px;
  cursor: pointer;
  transition: border-left-width .2s, background .2s;
}
.ws-map-region:hover { background: var(--ws-paper); border-left-width: 6px; }
.ws-map-region-name { font-size: 14px; font-weight: 700; color: var(--ws-ink); }
.ws-map-region-desc { font-size: 11.5px; color: var(--ws-ink-2); margin-top: 3px; line-height: 1.5; }

/* —— Diary modal specific —— */
.ws-diary-content {
  font-family: 'Georgia', 'Noto Serif SC', serif;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ws-ink);
  padding: 8px 0;
}
.ws-diary-content p { font-size: 14px; line-height: 1.85; color: var(--ws-ink-2); margin-bottom: 14px; }
.ws-diary-meta { font-size: 11px; color: var(--ws-ink-3); margin-bottom: 18px; letter-spacing: .08em; text-transform: uppercase; }

/* Print stylesheet for PDF export */
@media print {
  body * { visibility: hidden; }
  .ws-print-target, .ws-print-target * { visibility: visible; }
  .ws-print-target { position: absolute; top: 0; left: 0; width: 100%; padding: 40px; background: #fff; color: #000; }
  .ws-print-target h2 { font-size: 26px; margin-bottom: 6px; }
  .ws-print-target .ws-tl-item { page-break-inside: avoid; border: 1px solid #ddd; }
}

/* ═══════════════════════════════════════════════════════════════════
   PHASE 3a — Auth modal + trip list delete handle
   ═══════════════════════════════════════════════════════════════════ */
.ws-auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--ws-bg-2);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.ws-auth-tab {
  flex: 1;
  padding: 9px 14px;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ws-ink-3);
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, color .2s;
}
.ws-auth-tab:hover { color: var(--ws-ink); }
.ws-auth-tab.active { background: var(--ws-paper); color: var(--ws-teal); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.ws-auth-form { display: flex; flex-direction: column; gap: 10px; }
.ws-auth-input {
  padding: 11px 14px !important;
  font-size: 14px !important;
  border-radius: 10px !important;
}
.ws-auth-error {
  font-size: 12px;
  color: #dc2626;
  min-height: 16px;
  padding: 0 4px;
  letter-spacing: .02em;
}
body.dark .ws-auth-error { color: #fca5a5; }

/* Trip delete handle hover state */
.ws-trip-item .ws-trip-del {
  transition: opacity .2s, color .2s;
}
.ws-trip-item:hover .ws-trip-del {
  opacity: 1 !important;
}
.ws-trip-item .ws-trip-del:hover {
  color: #dc2626 !important;
}

/* —— Thinking step pill (used during Ask-the-Team SSE) —— */
.ws-thinking-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(14,124,107,.08);
  border: 1px solid rgba(14,124,107,.25);
  border-radius: 14px;
  font-size: 11px;
  color: var(--ws-teal);
  margin-right: 5px;
  margin-bottom: 4px;
}
.ws-thinking-pill .fa { font-size: 10px; animation: wsspin 1.2s linear infinite; }

/* ═══════════════════════════════════════════════════════════════════
   PHASE 3b — PREFERENCES / MULTIVERSE / BUDGET CALCULATOR
   ═══════════════════════════════════════════════════════════════════ */

/* —— Preferences modal chips —— */
.ws-prefs-section { margin-bottom: 18px; }
.ws-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ws-chip-pick {
  padding: 7px 13px;
  border-radius: 16px;
  border: 1.5px solid var(--ws-line);
  background: var(--ws-paper);
  color: var(--ws-ink-2);
  font-size: 12.5px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ws-chip-pick:hover {
  border-color: var(--ws-teal);
  color: var(--ws-ink);
}
.ws-chip-pick.active {
  background: var(--ws-teal);
  border-color: var(--ws-teal);
  color: #fff;
  font-weight: 600;
}
body.dark .ws-chip-pick { background: var(--ws-bg-2); }

/* —— Multiverse modal —— */
.ws-mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
@media (max-width: 767px) {
  .ws-mv-grid { grid-template-columns: 1fr; }
}
.ws-mv-card {
  background: var(--ws-paper);
  border: 1px solid var(--ws-line);
  border-top: 4px solid var(--ws-teal);
  border-radius: 14px;
  padding: 22px 18px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.ws-mv-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ws-mv-head .fa { font-size: 12px; }
.ws-mv-price {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
}
.ws-mv-price-sub {
  font-size: 11px;
  color: var(--ws-ink-3);
  margin-top: 4px;
}
.ws-mv-divider {
  height: 1px;
  background: var(--ws-line);
  margin: 14px 0 12px;
}
.ws-mv-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
}
.ws-mv-item .fa {
  width: 16px;
  text-align: center;
  color: var(--ws-ink-3);
  margin-top: 3px;
  flex-shrink: 0;
}
.ws-mv-lbl {
  font-size: 10px;
  color: var(--ws-ink-3);
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 600;
}
.ws-mv-val {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ws-ink);
  margin: 1px 0;
  line-height: 1.35;
}
.ws-mv-note {
  font-size: 11px;
  color: var(--ws-ink-3);
}
.ws-mv-tag {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
}
.ws-mv-tag strong {
  font-weight: 700;
  letter-spacing: .02em;
}

/* —— Budget calculator —— */
.ws-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--ws-line);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}
.ws-range::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ws-amber);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(252,191,30,.4);
}
.ws-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ws-amber);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(252,191,30,.4);
}
.ws-calc-result {
  margin-top: 8px;
}
.ws-calc-tips {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.ws-calc-tips li {
  padding: 8px 12px;
  background: var(--ws-bg-2);
  border-left: 3px solid var(--ws-amber);
  border-radius: 6px;
  font-size: 12px;
  color: var(--ws-ink-2);
  margin-bottom: 6px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ws-calc-tips li .fa {
  color: var(--ws-amber);
  margin-top: 2px;
  flex-shrink: 0;
}

/* —— Sidebar Prefs button hover —— */
#ws-prefs-btn:hover {
  background: var(--ws-line-soft) !important;
  color: var(--ws-ink) !important;
}
body.dark #ws-prefs-btn { color: var(--ws-ink-2) !important; }

