.trips-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
}

/* Keep long Guide and Trip transcripts inside the chat instead of growing
   the entire page whenever a workspace is restored. */
.chat-shell {
  height: clamp(620px, calc(100vh - 48px), 900px);
  min-height: 0;
}

.chat-stage,
.chat-messages {
  min-height: 0;
}

.chat-messages {
  overscroll-behavior: contain;
}

.suitcase-trips { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.suitcase-standalone { margin-top: 4px; }
.suitcase-section-title { margin: 0 0 10px; color: var(--brand-navy); font-size: .82rem; font-weight: 800; }
.suitcase-trip-item { list-style: none; }

.suitcase-trip {
  overflow: hidden;
  border: 1px solid rgba(23, 26, 106, .12);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .035);
}

.suitcase-trip[open] {
  border-color: rgba(23, 26, 106, .18);
}

.suitcase-trip > summary {
  position: relative;
  display: block;
  padding: 11px 32px 10px 12px;
  list-style: none;
  background: var(--brand-pink-soft);
  color: var(--brand-navy);
  cursor: pointer;
}

.suitcase-trip > summary::-webkit-details-marker { display: none; }

.suitcase-trip > summary::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-54%);
  color: var(--brand-navy);
  font-size: .9rem;
  line-height: 1;
  opacity: .72;
}

.suitcase-trip[open] > summary::after {
  content: "⌃";
}

.trip-list-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.suitcase-trip .trip-list-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--brand-navy);
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trip-list-active-label {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(234, 47, 139, .12);
  color: var(--brand-pink);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.suitcase-trip .trip-list-meta {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: .64rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suitcase-trip .trip-list-meta[hidden] {
  display: none;
}

.suitcase-trip-tips {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px 9px 5px;
  color: var(--brand-navy);
  font-size: .7rem;
  line-height: 1.25;
  list-style: none;
}

.suitcase-trip-tips li { margin: 0; }

.suitcase-trip-empty {
  padding: 7px 8px;
  color: var(--text-muted);
  font-size: .68rem;
}

.suitcase-trip-tip-row {
  display: flex;
  align-items: stretch;
  min-width: 0;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 9px;
  background: #f8fafc;
}

.suitcase-trip-tip-accent {
  flex: 0 0 12px;
  width: 12px;
  background: var(--brand-pink);
}

.suitcase-trip-tip-button {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 7px 7px 7px 8px;
  color: var(--brand-navy);
  font: inherit;
  font-size: .69rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suitcase-trip-tip-button:hover {
  color: var(--brand-pink);
}

.suitcase-trip-tip-remove {
  flex: 0 0 26px;
  width: 26px;
  min-height: 30px;
  padding: 0;
  border-radius: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: .88rem;
  line-height: 1;
}

.suitcase-trip-tip-remove:hover {
  color: var(--brand-pink);
  background: var(--brand-pink-soft);
}

.suitcase-trip-tip-remove:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: -2px;
}

.suitcase-trip-tip-remove:disabled {
  opacity: .45;
  cursor: wait;
}

.suitcase-trip-controls {
  display: flex;
  justify-content: flex-end;
  padding: 5px 9px 9px;
}
.trip-delete-button { padding: 5px 8px; color: #b42318; font: inherit; font-size: .64rem; font-weight: 800; border-radius: 999px; background: #fff1f0; }
.trip-delete-button:hover { background: #fee4e2; }
.trip-delete-button:disabled { opacity: .5; cursor: wait; }

.suitcase-item-name { padding: 0; text-align: left; cursor: pointer; }
.suitcase-item-name:hover { color: var(--brand-pink); }

/* Compact editorial references within the Guide. Photos and photo credit
   live in Tip Detail, not in the conversational card. */
.message-bubble .tiplr-tip-card-list {
  margin: 8px 0 10px;
  padding: 0;
  list-style: none;
}

.message-bubble .tiplr-tip-card {
  margin: 0 0 12px;
  padding: 0 0 10px;
  list-style: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.message-bubble .tiplr-tip-card:last-child {
  margin-bottom: 6px;
  border-bottom: 0;
}

.message-bubble .tiplr-tip-card::marker { content: ""; }

.tip-card-header {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 5px;
}

.tip-card-category {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--brand-pink-soft);
  color: var(--brand-pink);
  font-size: 0.95rem;
  line-height: 1;
}

.tip-card-category .tip-card-category-glyph {
  width: 20px;
  height: 20px;
}

.tip-card-title-row,
.tip-card-title-copy {
  min-width: 0;
  flex: 1;
  display: block;
}

.tip-title-button {
  display: inline;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-navy);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  overflow-wrap: anywhere;
}

.tip-title-button:hover {
  color: var(--brand-pink);
  background: transparent;
}

.tip-title-button:focus-visible,
.tip-card-open-button:focus-visible {
  outline: 2px solid var(--brand-pink);
  outline-offset: 3px;
  border-radius: 3px;
}

.tip-card-body {
  margin: 3px 0 0 39px;
  color: var(--text);
  font-size: 0.93rem;
  line-height: 1.52;
}

.tip-card-body p:first-child { margin-top: 0; }
.tip-card-body p:last-child { margin-bottom: 0; }

.tip-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin: 7px 0 0 39px;
}

.tip-card-open-button {
  margin-right: auto;
  padding: 5px 0;
  color: var(--brand-navy);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  text-align: left;
}

.tip-card-open-button:hover { color: var(--brand-pink); }

.tip-card-actions .tip-suitcase-button,
.tip-card-actions .tip-trip-control {
  margin: 0;
  flex-shrink: 0;
}

.tiplr-tip-card > .tip-save-feedback {
  display: block;
  min-height: 0;
  margin: 2px 0 0 39px;
}

@media (max-width: 720px) {
  .tip-card-header { gap: 8px; }
  .tip-card-category {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
  .tip-title-button { font-size: 0.93rem; }
  .tip-card-body,
  .tip-card-actions,
  .tiplr-tip-card > .tip-save-feedback { margin-left: 0; }
  .tip-card-body { font-size: 0.92rem; }
}

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

.tip-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .5);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.tip-detail-open { overflow: hidden; }

.tip-detail-dialog {
  position: relative;
  width: min(660px, 100%);
  max-height: min(820px, calc(100vh - 40px));
  overflow-y: auto;
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(15, 23, 42, .3);
}

.tip-detail-head {
  position: relative;
  min-height: 74px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 68px 18px 26px;
  border-radius: 29px 29px 0 0;
  background: var(--brand-pink);
  color: #fff;
}

.tip-detail-category {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip-detail-category-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.tip-detail-category-icon .tiplr-category-icon,
.tip-detail-category-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.tip-detail-category-icon .tiplr-category-icon {
  color: #fff;
  background: #fff;
}

.tip-detail-kicker {
  margin: 0;
  color: #fff;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tip-detail-brand {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, .94);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .045em;
}

.tip-detail-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  opacity: .96;
}

.tip-detail-close:hover {
  background: transparent;
  opacity: .72;
}

.tip-detail-image-wrap {
  position: relative;
  margin: 0;
  background: #eef2f7;
}

.tip-detail-image-wrap[hidden] { display: none; }

.tip-detail-image {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tip-detail-image-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  max-width: calc(100% - 24px);
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .66);
  color: #fff;
  font-size: .6rem;
  line-height: 1.2;
}

.tip-detail-image-credit:empty { display: none; }

.tip-detail-body {
  padding: 28px 30px 26px;
}

.tip-detail-title {
  margin: 0;
  max-width: 560px;
  color: var(--brand-navy);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.tip-detail-meta-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 9px;
}

.tip-detail-meta {
  margin: 0;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.tip-detail-meta:empty { display: none; }

.tip-detail-map-link {
  color: var(--brand-pink);
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.tip-detail-map-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tip-detail-map-link[hidden] { display: none; }

.tip-detail-byline {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding: 14px 0;
  border-top: 1px solid rgba(15, 23, 42, .07);
  border-bottom: 1px solid rgba(15, 23, 42, .07);
}

.tip-detail-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-pink-soft);
  color: var(--brand-pink);
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .02em;
}

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

.tip-detail-byline-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.tip-detail-author {
  overflow: hidden;
  color: var(--brand-navy);
  font-size: .8rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-detail-author-role {
  overflow: hidden;
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tip-detail-content {
  margin-top: 23px;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.72;
}

.tip-detail-content p {
  margin: 0 0 1em;
}

.tip-detail-content > :first-child { margin-top: 0; }
.tip-detail-content > :last-child { margin-bottom: 0; }

.tip-detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.tip-detail-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.tip-detail-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-navy);
  font-size: .7rem;
  font-weight: 800;
}

.tip-detail-action .tip-suitcase-button,
.tip-detail-action .tip-trip-button {
  margin: 0;
}

.tip-detail-action .tip-suitcase-button {
  width: 34px;
  height: 34px;
}

.tip-detail-action .tip-trip-button {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.tip-detail-feedback {
  min-height: 18px;
  color: var(--brand-pink);
  font-size: .68rem;
  font-weight: 700;
  text-align: right;
}

@media (max-width: 620px) {
  .tip-detail-modal { padding: 12px; }

  .tip-detail-dialog {
    max-height: calc(100vh - 24px);
    border-radius: 24px;
  }

  .tip-detail-head {
    min-height: 68px;
    padding: 15px 60px 15px 20px;
    border-radius: 23px 23px 0 0;
  }

  .tip-detail-brand { display: none; }

  .tip-detail-close {
    top: 7px;
    right: 8px;
  }

  .tip-detail-body {
    padding: 23px 21px 22px;
  }

  .tip-detail-title {
    font-size: 1.55rem;
  }

  .tip-detail-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .tip-detail-feedback {
    text-align: left;
  }
}

.trips-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trips-title {
  margin: 0;
  color: var(--brand-navy);
  font-size: .82rem;
  font-weight: 800;
}

.trips-actions {
  display: flex;
  gap: 6px;
}

.trip-small-button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  cursor: pointer;
  background: #eef2f7;
  color: var(--brand-navy);
}

.trip-small-button.primary {
  background: var(--brand-pink);
  color: #fff;
}

.trip-active {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: var(--brand-pink-soft);
}

.trip-active[hidden] { display: none; }

.trip-active-kicker {
  margin: 0 0 3px;
  color: var(--brand-pink);
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.trip-active-name {
  margin: 0;
  color: var(--brand-navy);
  font-size: .88rem;
  font-weight: 800;
}

.trip-active-meta {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: .7rem;
  line-height: 1.4;
}

.trip-guide-note {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: .7rem;
  line-height: 1.45;
}

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

.trip-list:empty { display: none; }

.trip-list-button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  color: var(--brand-navy);
  font: inherit;
  cursor: pointer;
}

.trip-list-button.is-active {
  border-color: rgba(233, 65, 124, .34);
  box-shadow: 0 0 0 2px rgba(233, 65, 124, .08);
}

.trip-list-name {
  display: block;
  font-size: .78rem;
  font-weight: 800;
}

.trip-list-meta {
  display: block;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: .66rem;
}

.trip-create-modal[hidden] { display: none; }

.trip-create-modal {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trip-create-open { overflow: hidden; }

.trip-create-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .24);
}

.trip-create-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--brand-navy);
  font-size: 20px;
}

.trip-create-kicker {
  margin: 0 42px 7px 0;
  color: var(--brand-pink);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trip-create-title {
  margin: 0 42px 0 0;
  color: var(--brand-navy);
  font-size: 1.45rem;
  line-height: 1.2;
}

.trip-create-intro {
  margin: 9px 0 18px;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.trip-create-form {
  display: grid;
  gap: 12px;
}

.trip-create-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8dee7;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  font-size: .9rem;
  color: var(--brand-navy);
  outline: none;
}

.trip-create-form input:focus {
  border-color: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(234, 47, 139, .1);
}

.trip-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.trip-create-submit,
.trip-create-cancel {
  border-radius: 999px;
  padding: 9px 13px;
  font: inherit;
  font-size: .74rem;
  font-weight: 800;
}

.trip-create-submit {
  background: var(--brand-pink);
  color: #fff;
}

.trip-create-submit:disabled {
  opacity: .55;
  cursor: wait;
}

.trip-create-cancel {
  background: #eef2f7;
  color: var(--brand-navy);
}

.trip-create-message {
  min-height: 17px;
  margin: 0;
  color: var(--text-muted);
  font-size: .7rem;
  line-height: 1.4;
}


.chat-heading.is-trip {
  color: var(--brand-navy);
  font-weight: 850;
}

.workspace-action-card {
  margin: 8px 48px 14px 48px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}

.workspace-action-copy {
  margin: 0;
  color: var(--brand-navy);
  font-size: .78rem;
  line-height: 1.45;
  font-weight: 700;
}

.workspace-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.workspace-action-button {
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: #eef2f7;
  color: var(--brand-navy);
  font: inherit;
  font-size: .69rem;
  font-weight: 800;
  cursor: pointer;
}

.workspace-action-button.primary {
  background: var(--brand-pink);
  color: #fff;
}

.workspace-action-button:disabled {
  opacity: .55;
  cursor: default;
}


.trip-small-button.primary.requires-sign-in {
  background: #eef2f7;
  color: var(--brand-pink);
  box-shadow: inset 0 0 0 1px rgba(234, 47, 139, .2);
}
