@font-face {
  font-family: Euclid;
  src: url("../fonts/EuclidSquare-Regular.woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Euclid;
  src: url("../fonts/EuclidSquare-Medium.woff");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: Euclid;
  src: url("../fonts/EuclidSquare-Light.woff");
  font-weight: 300;
  font-display: swap;
}
:root {
  --ink: #252334;
  --muted: #93919e;
  --purple: #7760cf;
  --purple-dark: #654cb9;
  --lavender: #f0ebfb;
  --line: #eceaf0;
  --surface: #fff;
  --background: #f7f7f9;
  --green: #4a8971;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font:
    14px Euclid,
    Arial,
    sans-serif;
  line-height: 1.5;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #b7a7e9;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.studio-header {
  height: 88px;
  background: #fff;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 4.1%;
  gap: 45px;
}
.studio-logo {
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -1.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.studio-logo > span {
  letter-spacing: 0.7px;
  font-size: 10px;
  background: var(--lavender);
  color: var(--purple);
  border: 1px solid #e4ddf5;
  border-radius: 5px;
  padding: 3px 6px;
}
.studio-header nav {
  display: flex;
  gap: 26px;
  height: 100%;
  margin-left: 40px;
  align-items: center;
}
.studio-header nav > a,
.studio-header nav > button {
  font-size: 13px;
  background: none;
  border: 0;
  color: #85828f;
  height: 100%;
  position: relative;
  padding: 0 4px;
}
.studio-header nav > button.active {
  color: var(--purple);
  font-weight: 500;
}
.studio-header nav > button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--purple);
}
#saved-count {
  font-size: 9px;
  background: #f1f0f5;
  border-radius: 6px;
  padding: 2px 5px;
  margin-left: 4px;
}
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.device-label {
  font-size: 11px;
  color: #92909c;
  display: flex;
  align-items: center;
  gap: 7px;
}
i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6fa891;
}
.profile-mark {
  width: 35px;
  height: 35px;
  background: #eee8dc;
  border: 3px solid white;
  outline: 1px solid #ece6dc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8d795a;
  font-size: 13px;
}
.studio-main {
  max-width: 1570px;
  margin: auto;
  padding: 38px 4.1% 0;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 33px;
  gap: 20px;
}
.overline {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a09aa9;
  margin-bottom: 8px;
}
.page-intro h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 400;
  line-height: 1.3;
}
.page-intro h1 em {
  font-style: normal;
  color: var(--purple);
}
.page-intro p {
  font-size: 12px;
  color: #9995a2;
  margin-top: 9px;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.primary {
  background: var(--purple);
  color: #fff;
}
.primary:hover {
  background: var(--purple-dark);
  box-shadow: 0 5px 16px #7760cf25;
}
.button:active {
  transform: scale(0.98);
}
.secondary {
  border: 1px solid #e5e0ec;
  background: #fff;
  color: #72677e;
}
.new-trip > span {
  font-size: 20px;
  font-weight: 300;
}
.studio-grid {
  display: grid;
  grid-template-columns: 260px minmax(340px, 1fr) 286px;
  gap: 22px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 4px 20px #342e4806;
}
.request-panel {
  overflow: hidden;
}
.request-panel summary {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 21px 19px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}
.request-panel summary::-webkit-details-marker {
  display: none;
}
.icon-box {
  width: 31px;
  height: 31px;
  background: var(--lavender);
  color: var(--purple);
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 23px;
}
.request-panel summary small {
  display: block;
  font-size: 9px;
  color: #a39ba9;
  margin-top: 3px;
  font-weight: 400;
}
.summary-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #a599b1;
}
.request-panel form {
  padding: 21px 19px;
}
.field {
  display: block;
  position: relative;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 19px;
  color: #655e71;
}
.field input,
.field select {
  display: block;
  border: 1px solid #e8e4ee;
  border-radius: 8px;
  padding: 11px 12px;
  color: #453d52;
  width: 100%;
  margin-top: 8px;
  outline: none;
  background: #fff;
  min-height: 41px;
  font-size: 12px;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.field input:focus,
.field select:focus {
  border-color: #af9bdd;
  box-shadow: 0 0 0 3px #ede7fa;
}
.add-destination {
  width: 100%;
  margin: -8px 0 12px;
  padding: 10px 12px;
  border: 1px dashed #b6a5dc;
  border-radius: 8px;
  background: #f8f5ff;
  color: #625080;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.add-destination:hover,
.add-destination:focus-visible {
  border-color: #846bad;
  background: #f1ebff;
}
.selected-destinations {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 19px;
}
.destination-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 8px 7px 10px;
  border: 1px solid #e2d9f5;
  border-radius: 999px;
  background: #f7f3ff;
  color: #514266;
  font-size: 10px;
}
.destination-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.destination-chip button {
  border: 0;
  background: transparent;
  color: #7c6a97;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field-row input {
  padding-right: 32px;
}
.field-unit {
  position: absolute;
  right: 25px;
  bottom: 12px;
  font-size: 9px;
  color: #b1aaba;
  pointer-events: none;
}
.money-input {
  position: relative;
}
.money-input input {
  padding-right: 40px;
}
.money-input > span {
  position: absolute;
  right: 12px;
  top: 13px;
  font-size: 9px;
  color: #b1aaba;
}
.request-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
}
.request-panel legend {
  padding: 0;
  margin-bottom: 11px;
  font-size: 11px;
  font-weight: 500;
  color: #655e71;
}
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.interest-grid label {
  position: relative;
  cursor: pointer;
}
.interest-grid input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.interest-grid span {
  display: block;
  font-size: 10px;
  padding: 8px 10px;
  border: 1px solid #e9e6ef;
  border-radius: 7px;
  background: #fff;
  color: #9990a5;
  transition: all 0.2s;
}
.interest-grid input:checked + span {
  background: var(--lavender);
  border-color: #d8cbed;
  color: #7f65b9;
}
.interest-grid input:focus-visible + span {
  outline: 2px solid #af9bdd;
  outline-offset: 2px;
}
.generate {
  width: 100%;
  font-size: 12px;
  padding: 13px 8px;
}
.generate > span:first-child {
  font-size: 20px;
}
.generate > span:last-child {
  margin-left: auto;
}
.form-footnote {
  margin-top: 16px;
  text-align: center;
  color: #b0a9b6;
  font-size: 9px;
  line-height: 1.7;
}
.error {
  font-size: 11px;
  color: #bc535c;
  margin-bottom: 10px;
}
.gentle-note {
  display: flex;
  gap: 12px;
  padding: 23px 14px;
  color: #a296af;
}
.gentle-note > span {
  font-size: 23px;
  color: #b8a6ca;
}
.gentle-note strong {
  font-size: 11px;
  font-weight: 500;
  color: #8c7d99;
}
.gentle-note p {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 5px;
}

.destination-cover {
  height: 195px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(125deg, #526e84, #98a69c);
  color: white;
}
.destination-cover img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #132832ac, transparent 85%);
}
.cover-top {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.cover-pill {
  background: #ffffff29;
  border: 1px solid #ffffff4d;
  border-radius: 20px;
  padding: 5px 9px;
  backdrop-filter: blur(8px);
}
#cover-weather {
  opacity: 0.7;
  font-size: 8px;
}
.cover-content {
  position: absolute;
  left: 24px;
  bottom: 22px;
}
.cover-location {
  font-size: 10px;
  opacity: 0.75;
}
.cover-content h2 {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.7px;
  line-height: 1.15;
  margin: 3px 0 8px;
}
.cover-content p {
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #edf5f6;
}
.itinerary-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e9e5ee;
  margin: 17px 0 18px;
  gap: 8px;
}
.view-tabs {
  display: flex;
  gap: 20px;
}
.view-tabs button {
  border: 0;
  background: none;
  padding: 12px 0 14px;
  font-size: 11px;
  color: #aaa1b3;
  position: relative;
}
.view-tabs button.selected {
  color: var(--purple);
  font-weight: 500;
}
.view-tabs button.selected:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--purple);
}
.draft-label {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #aaa1b3;
  font-size: 8px;
  white-space: nowrap;
}
.draft-label i {
  width: 4px;
  height: 4px;
  background: #b4a0d9;
}
.day-tabs {
  display: flex;
  overflow: auto;
  gap: 9px;
  scrollbar-width: thin;
  padding-bottom: 7px;
  margin-bottom: 12px;
}
.day-tabs button {
  white-space: nowrap;
  background: white;
  color: #9c92a9;
  border: 1px solid #e7e2ee;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 11px;
  transition: all 0.2s;
}
.day-tabs button.active {
  background: #ede7f8;
  border-color: #d9ccee;
  color: #8163b3;
}
.day-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0 17px;
}
.day-topline h3 {
  font-size: 15px;
  font-weight: 500;
}
.day-topline small {
  font-size: 10px;
  font-weight: 400;
  color: #a19aa9;
  margin-left: 5px;
}
.day-topline button {
  border: 0;
  background: none;
  color: #a58fba;
  font-size: 10px;
  padding: 5px;
}
.activity-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.activity-card:hover {
  box-shadow: 0 6px 18px #5b426010;
  transform: translateY(-2px);
}
.activity-icon {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8f0df;
  color: #b89855;
  font-size: 19px;
}
.activity-card:nth-of-type(3) .activity-icon {
  background: #eaf2ef;
  color: #76a58f;
}
.activity-card:nth-of-type(4) .activity-icon {
  background: #f1ebf8;
  color: #a48abc;
}
.activity-time {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b5a8c2;
  margin-bottom: 6px;
}
.activity-card h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 8px;
}
.activity-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.activity-tag {
  padding: 3px 7px;
  border-radius: 4px;
  background: #f6f4f8;
  color: #a198ab;
  font-size: 8px;
}
.activity-cost {
  font-size: 10px;
  color: #93899d;
}
.day-tip {
  padding: 13px 14px;
  background: #efedf5;
  color: #a295b3;
  border-radius: 9px;
  font-size: 10px;
  line-height: 1.7;
}
.itinerary-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  color: #afa3ba;
  font-size: 9px;
  padding: 0 3px;
}
.itinerary-bottom button {
  border: 1px solid #e2dbea;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: none;
  color: #9d8eae;
}
.budget-panel {
  padding: 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.panel-heading h2 {
  font-size: 13px;
  font-weight: 500;
}
.small-icon {
  color: #bdb2cb;
  font-size: 21px;
}
.muted {
  color: #b2a8bd;
}
.caption {
  font-size: 9px;
}
.budget-number {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 5px 0 15px;
  font-variant-numeric: tabular-nums;
}
.budget-number small {
  font-size: 11px;
  color: #aaa0b6;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 5px;
}
.budget-meter {
  height: 5px;
  border-radius: 5px;
  background: #eeebf3;
  overflow: hidden;
}
.budget-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b3a1df, #8570bd);
  width: 0;
  transition: width 0.7s ease;
}
.budget-status {
  font-size: 9px;
  color: #9e96aa;
  line-height: 1.5;
  margin: 9px 0 16px;
}
.budget-status.over {
  color: #b77758;
}
.budget-brief {
  border-top: 1px dashed #e9e4ef;
  padding: 12px 0;
  margin-bottom: 6px;
}
.budget-brief > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 10px;
  color: #a299ae;
}
.budget-brief strong {
  font-weight: 400;
  color: #776c85;
}
.save-button {
  width: 100%;
  padding: 11px;
  font-size: 11px;
}
.saving-button {
  display: block;
  width: 100%;
  margin-top: 11px;
  background: none;
  border: 0;
  color: #9c88b4;
  font-size: 9px;
  padding: 3px;
}
.assistant-panel {
  margin-top: 18px;
  overflow: hidden;
}
.assistant-top {
  padding: 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid #efebf4;
  background: linear-gradient(120deg, #faf8ff, white);
}
.assistant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eee7fa;
  display: grid;
  place-items: center;
  color: #9072bd;
  font-size: 23px;
}
.assistant-top h2 {
  font-size: 11px;
  font-weight: 500;
}
.assistant-top p {
  font-size: 8px;
  color: #b0a3be;
  margin-top: 4px;
}
.assistant-top i {
  width: 4px;
  height: 4px;
  margin-right: 4px;
}
.demo-label {
  font-size: 7px;
  letter-spacing: 0.8px;
  border: 1px solid #e7dfef;
  color: #baaaca;
  border-radius: 4px;
  padding: 3px 4px;
  margin-left: auto;
}
.studio-messages {
  padding: 15px 13px;
  max-height: 310px;
  min-height: 150px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.chat-bubble {
  border-radius: 0 10px 10px 10px;
  background: #f3eff9;
  padding: 11px 12px;
  font-size: 11px;
  line-height: 1.75;
  color: #90829f;
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin: 0 15px 10px 0;
}
.chat-bubble.user {
  margin-left: 20px;
  margin-right: 0;
  color: white;
  background: #9d86c9;
  border-radius: 10px 0 10px 10px;
}
.quick-questions {
  display: flex;
  gap: 5px;
  padding: 0 13px 12px;
}
.quick-questions button {
  background: white;
  border: 1px solid #e8dff1;
  border-radius: 6px;
  font-size: 8px;
  padding: 6px 7px;
  color: #a28bb9;
}
#studio-chat-form {
  display: flex;
  gap: 4px;
  margin: 0 12px 13px;
  border: 1px solid #e7deef;
  border-radius: 9px;
  padding: 5px;
  background: white;
}
#studio-chat-input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: 10px;
  padding: 5px;
  color: #6c587e;
}
#studio-chat-input::placeholder {
  color: #b6a9c2;
}
#studio-chat-form button {
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 7px;
  background: #9476c4;
  color: white;
  font-size: 19px;
}
.data-note {
  font-size: 9px;
  line-height: 1.7;
  color: #b8aebf;
  padding: 13px 7px;
}

.budget-full {
  padding: 25px;
}
.budget-full h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}
.budget-full > p {
  font-size: 11px;
  color: #9990a4;
  line-height: 1.7;
}
.cost-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cost-row > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #8f829d;
  margin-bottom: 9px;
}
.cost-row strong {
  color: #514358;
  font-weight: 500;
}
.cost-row .bar {
  height: 5px;
  background: #f2eef8;
  border-radius: 5px;
}
.cost-row .bar > span {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #baa6db;
}
.cost-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 14px;
  font-weight: 500;
}
.saved-heading {
  display: flex;
  justify-content: space-between;
  color: #9b90a6;
  margin: 5px 0 23px;
  font-size: 12px;
}
.saved-heading span {
  font-size: 10px;
}
.studio-saved {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.saved-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.saved-art {
  height: 130px;
  background: linear-gradient(120deg, #c0cfcd, #8b9fbc);
  position: relative;
  overflow: hidden;
}
.saved-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.saved-art > span {
  position: absolute;
  bottom: 15px;
  left: 20px;
  color: #fff;
  font-size: 25px;
  text-shadow: 0 2px 10px #0004;
}
.saved-body {
  padding: 20px;
}
.saved-body > p {
  color: #a89ab2;
  font-size: 11px;
  line-height: 1.8;
}
.saved-total {
  font-size: 21px;
  color: #6c5483;
  margin: 15px 0;
}
.saved-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.saved-actions .delete {
  margin-left: auto;
  background: none;
  border: 0;
  color: #b69398;
  font-size: 11px;
  padding: 10px;
}
.empty-library {
  grid-column: 1/-1;
  min-height: 370px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #a698b4;
}
.empty-library > span {
  font-size: 60px;
  font-weight: 300;
}
.empty-library h3 {
  font-size: 23px;
  font-weight: 400;
  color: #71607f;
  margin: 12px 0;
}
.empty-library p {
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 23px;
}
.studio-footer {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #bbb0c3;
  gap: 20px;
}
.toast {
  position: fixed;
  z-index: 100;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #382e47;
  color: white;
  border-radius: 12px;
  padding: 13px 21px;
  max-width: calc(100vw - 36px);
  font-size: 12px;
  box-shadow: 0 8px 30px #30203a30;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1550px) {
  .studio-grid {
    grid-template-columns: 290px minmax(400px, 1fr) 315px;
    gap: 27px;
  }
  .destination-cover {
    height: 230px;
  }
  .activity-card {
    padding: 23px;
  }
  .request-panel form {
    padding: 25px;
  }
  .field {
    margin-bottom: 23px;
  }
}
@media (max-width: 1190px) {
  .studio-grid {
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 20px;
  }
  .assistant-column {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .assistant-panel {
    margin-top: 0;
  }
  .data-note {
    grid-column: 1/-1;
    padding: 0;
  }
  .studio-header {
    gap: 20px;
  }
  .studio-header nav {
    margin-left: 10px;
    gap: 20px;
  }
  .device-label {
    display: none;
  }
  .studio-main {
    padding-top: 28px;
  }
  .draft-label {
    font-size: 8px;
  }
  .studio-saved {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 740px) {
  .studio-header {
    height: 73px;
    padding: 0 20px;
    gap: 20px;
  }
  .studio-logo {
    font-size: 24px;
  }
  .studio-logo > span {
    font-size: 8px;
  }
  .studio-header nav {
    gap: 16px;
    margin-left: auto;
  }
  .studio-header nav > * {
    font-size: 11px !important;
  }
  .studio-header nav > a,
  .header-right {
    display: none;
  }
  .studio-main {
    padding: 25px 18px 0;
  }
  .page-intro {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .page-intro h1 {
    font-size: 27px;
  }
  .page-intro p {
    font-size: 11px;
    max-width: 260px;
    line-height: 1.6;
  }
  .overline {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .new-trip {
    font-size: 0;
    padding: 5px 11px;
    border-radius: 10px;
  }
  .new-trip > span {
    font-size: 24px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
  }
  .assistant-column {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .data-note {
    grid-column: 1;
  }
  .request-panel summary {
    padding: 16px 19px;
  }
  .request-panel form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
  }
  .request-panel fieldset,
  .request-panel .generate,
  .request-panel .error,
  .form-footnote {
    grid-column: 1/-1;
  }
  .field-row {
    gap: 9px;
  }
  .gentle-note {
    display: none;
  }
  .field {
    margin-bottom: 15px;
  }
  .destination-cover {
    height: 205px;
  }
  .cover-content h2 {
    font-size: 35px;
  }
  .studio-messages {
    max-height: 300px;
  }
  .chat-bubble {
    font-size: 13px;
  }
  .assistant-top h2 {
    font-size: 13px;
  }
  .quick-questions button {
    font-size: 10px;
  }
  #studio-chat-input {
    font-size: 12px;
  }
  .assistant-column {
    gap: 18px;
  }
  .studio-saved {
    grid-template-columns: 1fr;
  }
  .saved-heading {
    display: block;
  }
  .saved-heading span {
    display: block;
    margin-top: 6px;
  }
  .studio-footer > span:last-child {
    display: none;
  }
  .draft-label {
    font-size: 8px;
  }
  .budget-brief > div,
  .budget-status {
    font-size: 11px;
  }
  .data-note {
    font-size: 10px;
  }
  .form-footnote {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}

.saved-actions button:not(.delete),
.empty-library button {
  border: 0;
  border-radius: 9px;
  background: #eee8f8;
  color: #7156a2;
  padding: 11px 15px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.saved-body h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
}
.saved-total {
  display: block;
}
.day-topline {
  gap: 12px;
}
.day-topline small {
  font-size: 8px;
  letter-spacing: 0.7px;
  margin: 0;
}
.day-topline h3 {
  margin: 6px 0;
}

/* Three distinct functional pages. */
.studio-header nav > a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.studio-header nav > a.active {
  color: var(--purple);
  font-weight: 500;
}
.studio-header nav > a.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--purple);
  border-radius: 3px 3px 0 0;
}
.chat-page-link {
  display: block;
  background: linear-gradient(135deg, #eee8fa, #f7f3fc);
  border: 1px solid #e3d9f2;
  border-radius: 14px;
  padding: 23px;
  color: #73559d;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.chat-page-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px #7760cf15;
}
.chat-page-link > span {
  font-size: 26px;
  display: block;
  margin-bottom: 12px;
}
.chat-page-link strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
}
.chat-page-link p {
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0 17px;
  color: #8d7ca0;
}
.chat-page-link b {
  font-size: 12px;
}
.chat-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
}
.chat-context {
  padding: 25px;
  align-self: start;
}
.chat-context > h2 {
  font-size: 26px;
  font-weight: 400;
  margin: 8px 0;
}
.chat-context > p {
  color: #95899f;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.chat-context > .chat-page-link {
  padding: 13px;
  font-size: 12px;
}
.chat-guide {
  margin: 27px 0;
}
.chat-guide > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: #b4a2d0;
  display: block;
  margin-top: 20px;
}
.chat-guide h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 5px 0;
}
.chat-guide p {
  font-size: 12px;
  color: #998ba4;
  line-height: 1.8;
}
.chat-context .budget-panel {
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}
.chat-main .assistant-panel {
  display: flex;
  flex-direction: column;
  min-height: 610px;
  height: calc(100vh - 295px);
  max-height: 850px;
  overflow: hidden;
}
.chat-main .assistant-top {
  padding: 25px 28px;
}
.chat-main .assistant-top h2 {
  font-size: 18px;
}
.chat-main .studio-messages {
  flex: 1;
  min-height: 260px;
  max-height: none;
  height: auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.chat-main .chat-bubble {
  font-size: 14px;
  line-height: 1.85;
  max-width: 85%;
  padding: 16px 19px;
  align-self: flex-start;
}
.chat-main .chat-bubble.user {
  align-self: flex-end;
}
.chat-main .quick-questions {
  padding: 10px 25px;
  gap: 10px;
}
.chat-main .quick-questions button {
  font-size: 12px;
  padding: 10px 13px;
}
.chat-main #studio-chat-form {
  margin: 10px 24px 24px;
  padding: 8px 10px;
  border-radius: 13px;
}
.chat-main #studio-chat-input {
  font-size: 14px;
  padding: 8px;
}
.chat-main .data-note {
  font-size: 11px;
  text-align: center;
  line-height: 1.8;
}
body[data-screen="saved"] .studio-main {
  min-height: calc(100vh - 88px);
}
body[data-screen="saved"] #saved-page {
  min-height: 60vh;
}
@media (max-width: 1050px) {
  .studio-header {
    gap: 20px;
  }
  .studio-header nav {
    margin-left: 0;
    gap: 17px;
  }
  .device-label {
    display: none;
  }
  .chat-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
  }
}
@media (max-width: 740px) {
  .studio-header {
    height: auto;
    min-height: 104px;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 13px;
  }
  .studio-header nav {
    order: 3;
    width: 100%;
    height: 48px;
    justify-content: space-between;
    gap: 9px;
    overflow: auto;
  }
  .studio-header nav > a {
    font-size: 11px;
  }
  .header-right {
    margin-left: auto;
  }
  .chat-layout {
    display: flex;
    flex-direction: column;
  }
  .chat-context {
    width: 100%;
    padding: 20px;
  }
  .chat-guide {
    display: none;
  }
  .chat-context .budget-panel {
    margin-top: 20px;
  }
  .chat-main .assistant-panel {
    height: 650px;
    min-height: 500px;
  }
  .chat-main .chat-bubble {
    max-width: 95%;
    font-size: 13px;
  }
  .chat-main .studio-messages {
    padding: 18px;
  }
  .chat-main .assistant-top {
    padding: 20px;
  }
  .chat-main #studio-chat-form {
    margin: 10px 15px 18px;
  }
}

/* Travel palette: sand, forest and coastal blue. */
:root {
  --ink: #253e35;
  --muted: #68786c;
  --purple: #2f6655;
  --purple-dark: #214c3f;
  --lavender: #e8eee2;
  --line: #dedfd2;
  --surface: #fffef9;
  --background: #f2eedf;
  --green: #377865;
}
body {
  background: var(--background);
  color: var(--ink);
}
.studio-header,
.panel,
.activity-card,
.saved-tile {
  background: var(--surface);
}
.studio-header nav > a,
.device-label,
.overline,
.page-intro p,
.saved-heading,
.studio-footer,
.data-note,
.form-footnote,
.request-panel summary small,
.gentle-note,
.gentle-note strong,
.day-topline small,
.draft-label,
.activity-time,
.activity-cost,
.budget-status,
.budget-brief > div,
.budget-number small,
.muted,
.assistant-top p,
.saved-body > p,
.empty-library,
.chat-context > p,
.chat-guide p,
.chat-guide > span {
  color: #67776a;
}
.studio-logo > span {
  border-color: #cedac9;
}
#saved-count,
.activity-tag {
  background: #e8eee2;
  color: #486347;
}
.secondary {
  background: #fffef9;
  border-color: #d8dece;
  color: #365948;
}
.field,
.request-panel legend {
  color: #405d4d;
}
.field input,
.field select {
  background: #fffefb;
  border-color: #d9ddcf;
  color: #293f35;
}
.field input:focus,
.field select:focus {
  border-color: #739987;
  box-shadow: 0 0 0 3px #e0eadc;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: #6d9987;
}
.interest-grid span,
.day-tabs button {
  background: #fffef9;
  border-color: #d9dece;
  color: #61735f;
}
.interest-grid input:checked + span,
.day-tabs button.active {
  background: #e1ebda;
  border-color: #acbea0;
  color: #345a40;
}
.interest-grid input:focus-visible + span {
  outline-color: #6d9987;
}
.summary-arrow,
.field-unit,
.money-input > span,
.small-icon {
  color: #7c8e77;
}
.day-tip {
  background: #e8eee2;
  color: #526a51;
}
.day-topline button,
.saving-button,
.itinerary-bottom,
.itinerary-bottom button {
  color: #496f5e;
}
.itinerary-toolbar,
.budget-brief,
.itinerary-bottom button {
  border-color: #d9dece;
}
.view-tabs button {
  color: #667768;
}
.draft-label i {
  background: #87a575;
}
.activity-icon {
  background: #f5e8cc;
  color: #9b753d;
}
.activity-card:nth-of-type(3) .activity-icon {
  background: #e0eee6;
  color: #4d816c;
}
.activity-card:nth-of-type(4) .activity-icon {
  background: #e0eef0;
  color: #4a7f86;
}
.budget-meter,
.cost-row .bar {
  background: #e4eadb;
}
.budget-meter span {
  background: linear-gradient(90deg, #98b985, #3d7f6b);
}
.budget-brief strong,
.cost-row strong,
.cost-total,
.saved-total,
.empty-library h3 {
  color: #355b47;
}
.cost-row > div:first-child,
.budget-full > p {
  color: #637663;
}
.cost-row .bar > span {
  background: #82a878;
}
.budget-status.over,
.error,
.saved-actions .delete {
  color: #a35638;
}
.assistant-top {
  background: linear-gradient(120deg, #eaf0e4, #fffef9);
  border-color: #dce3d3;
}
.assistant-avatar {
  background: #deead5;
  color: #3b7156;
}
.demo-label {
  background: #f4f6ed;
  border-color: #d5deca;
  color: #647a57;
}
.chat-bubble {
  background: #e8eee1;
  color: #3b5544;
}
.chat-bubble.user {
  background: #356f67;
  color: #fff;
}
.quick-questions button {
  background: #fffef9;
  border-color: #cadbcb;
  color: #48705b;
}
#studio-chat-form {
  background: #fffef9;
  border-color: #cbd8c6;
}
#studio-chat-input {
  color: #2f4c3d;
}
#studio-chat-input::placeholder {
  color: #748672;
}
#studio-chat-form button {
  background: #356f67;
}
.chat-page-link {
  background: linear-gradient(135deg, #e3ecdb, #f2f4e7);
  border-color: #cfdcc2;
  color: #356147;
}
.chat-page-link p {
  color: #65795b;
}
.saved-actions button:not(.delete),
.empty-library button {
  background: #e2ecda;
  color: #355e43;
}
.toast {
  background: #294e3c;
  box-shadow: 0 8px 30px #1e392530;
}
.primary:hover {
  box-shadow: 0 5px 16px #2f665525;
}
.activity-card:hover {
  box-shadow: 0 6px 18px #344c3010;
}
.chat-page-link:hover {
  box-shadow: 0 10px 25px #4d704015;
}

/* Keep budget and assistant cards visually separate on the planner. */
body[data-screen="plan"] .assistant-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
body[data-screen="plan"] .assistant-column > .data-note {
  padding-top: 0;
  margin-top: -10px;
}
@media (min-width: 741px) and (max-width: 1190px) {
  body[data-screen="plan"] .assistant-column {
    grid-template-columns: 1fr 1fr;
  }
  body[data-screen="plan"] .assistant-column > .data-note {
    grid-column: 1/-1;
  }
}
/* Labels already identify days and people; reserve the right edge for native steppers. */
#studio-form .field-row input[type="number"] {
  padding-right: 10px;
}
#studio-form .field-row input[type="number"]::-webkit-inner-spin-button {
  opacity: 1;
  cursor: pointer;
}
/* Keep currency outside the numeric input so it cannot cover the stepper. */
#studio-form .money-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
#studio-form .money-input input {
  min-width: 0;
  flex: 1;
  margin-top: 0;
  padding-right: 10px;
}
#studio-form .money-input > span {
  position: static;
  flex-shrink: 0;
}
#studio-form .money-input input::-webkit-inner-spin-button {
  opacity: 1;
  cursor: pointer;
}
/* Hourly agenda: clear time labels and readable meal/rest notes. */
.activity-time {font-variant-numeric:tabular-nums;font-size:12px;font-weight:600;color:var(--green)}
.activity-footer {flex-wrap:wrap;gap:8px}
.activity-cost {line-height:1.6}
/* Lower the image slightly within its crop to reveal the pass. */
img[src*="ma-pi-leng.jpg"] {
  object-position: center 95%;
}


/* Preserve readable lists in simulated chat replies. */
.chat-bubble { white-space: pre-line; overflow-wrap: anywhere; }
.chat-bubble strong { font-weight: 600; }
.quick-questions { flex-wrap: wrap; }

/* ── Typing indicator ── */
.chat-bubble.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  min-height: 0;
}
.chat-bubble.typing-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted, #93919e);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.chat-bubble.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-bubble.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.field textarea{width:100%;box-sizing:border-box;padding:12px;border:1px solid #d8d4c7;border-radius:10px;font:inherit;resize:vertical;background:transparent;color:inherit} #plan-status{font-size:13px;line-height:1.5} .generate:disabled{opacity:.65;cursor:wait}
