/* Section E · Kamalaya Connect portal + sign-in sheets. Mobile (390) first; desktop (1440) in
   @container page (min-width: 900px). Measured from Figma frames 912:10983 … 1298:6765. */

/* ---------- Footer without newsletter ("Footer / … · no newsletter") ---------- */
.e-footer .site-footer__letter { display: none; }
.e-footer .site-footer__cols { margin-top: 0; }
.e-footer { padding-top: 64px; }
@container page (min-width: 900px) { .e-footer { padding-top: 100px; } }

/* ---------- Portal header ---------- */
.e-phead { background: var(--c-maroon); color: var(--c-white); padding-top: 32px; }
.e-phead__eyebrow { color: var(--c-cream-ink); }
.e-phead__title { margin-top: 10px; font-weight: var(--fw-medium); font-size: 30px; line-height: 34px; letter-spacing: 0.04em; color: var(--c-white); }
.e-phead__top { display: flex; flex-direction: column; }
.e-account { display: flex; align-items: center; gap: 12px; }
.e-account__avatar { width: 40px; height: 40px; border-radius: var(--r-round); background: var(--c-avatar); flex: none; }
.e-account__text { display: flex; flex-direction: column; }
.e-account__name { font-size: 18px; line-height: 29px; letter-spacing: 0.02em; }
.e-account__since { font-size: 16px; line-height: 25px; color: var(--c-cream-soft); margin-top: 2px; }
.e-tabs { margin-top: 20px; padding-right: 0; }
.e-tabs__list { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-right: var(--page-gutter-m); scroll-snap-type: x proximity; }
.e-tabs__list::-webkit-scrollbar { display: none; }
.e-tabs__item { flex: none; scroll-snap-align: start; }
.e-tabs__link {
  position: relative; display: block; height: var(--e-tab-h-m, 69px); white-space: nowrap;
  font-size: 18px; line-height: 29px; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.78);
  transition: color var(--dur-fast) ease;
}
.e-tabs__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c-white);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out);
}
.e-tabs__link:hover { color: var(--c-white); }
.e-tabs__link:hover::after { transform: scaleX(0.35); }
.e-tabs__link.is-active { color: var(--c-white); }
.e-tabs__link.is-active::after { transform: none; }
@container page (min-width: 900px) {
  .e-phead { padding-top: 48px; }
  .e-phead__top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .e-phead__title { font-size: 40px; line-height: 48px; letter-spacing: 0.05em; }
  .e-tabs { margin-top: 28px; padding-right: var(--page-gutter); }
  .e-tabs__list { gap: 44px; padding-right: 0; overflow: visible; }
  .e-tabs__link { height: var(--e-tab-h, 69px); }
}

/* ---------- Page body + panels ---------- */
.e-body { padding: 40px 0 48px; background: var(--c-white); }
.e-body--sand { background: var(--c-sand); }
.e-stack { display: grid; gap: 20px; }
.e-panel { background: var(--c-white); border: 1px solid var(--c-line); padding: 28px 20px; min-width: 0; }
.e-panel--flush { padding: 0; }
.e-panel--pad32, .e-panel--pad36 { padding: 24px 20px; }
.e-panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 12px; padding-bottom: 16px; }
.e-panel__title { margin-top: 8px; font-size: 22px; line-height: 26px; letter-spacing: 0.05em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-panel__more { flex: none; }
.e-meta { font-size: 16px; line-height: 25px; color: var(--c-text-grey); letter-spacing: 0.02em; }
.e-muted-lg { font-size: 18px; line-height: 29px; color: var(--c-text-warm); }
.e-note { font-size: 16px; line-height: 25px; color: var(--c-text-muted); }
.e-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; }
.e-btn { height: 36px; padding: 0 14px; font-size: 16px; gap: 12px; letter-spacing: 0.1em; }
.e-btn--38 { height: 38px; }
.e-btn--44 { height: 44px; padding: 0 22px; }
.e-btn--46 { height: 46px; padding: 0 24px; }
.e-btn .e-btn-ico, .e-btn .icon { width: 14px; height: 14px; }
.btn.e-btn:hover .e-btn-ico { transform: translate(2px, -2px); }
.e-link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; gap: 8px; }
.e-link::after { display: none; }
.e-link:hover { color: var(--c-maroon-hover); }
button.text-link { cursor: pointer; }
.e-bar { position: relative; height: 3px; background: var(--c-line-soft); }
.e-bar span { position: absolute; inset: 0 auto 0 0; background: var(--c-maroon); transition: width var(--dur-med) var(--ease-out); }
.e-bar--gold { height: 6px; background: var(--c-white); }
.e-bar--gold span { background: var(--c-gold); }
@container page (min-width: 900px) {
  .e-body { padding: 64px 0 88px; }
  .e-stack { gap: 28px; }
  .e-panel { padding: 28px; }
  .e-panel--flush { padding: 0; }
  .e-panel--pad32 { padding: 32px; }
  .e-panel--pad36 { padding: 32px 36px; }
  .e-panel__title { font-size: var(--fs-h3); line-height: var(--lh-h3); }
  .e-panel__head { flex-wrap: nowrap; }
  .e-next__with, .e-next__who .e-meta { white-space: nowrap; }
  .e-actions { flex-direction: row; gap: 16px; }
}

/* ---------- Overview ---------- */
.e-ov-row1, .e-ov-row2 { display: grid; gap: 20px; align-items: start; }
.e-upcoming__photo { height: 180px; }
.e-upcoming__body { padding: 20px 20px 20px; }
.e-upcoming__title { margin-top: 12px; }
.e-upcoming__title + .e-muted-lg { margin-top: 12px; }
.e-forms-progress { margin-top: 12px; }
.e-forms-progress__row { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0 8px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-next__who { display: flex; align-items: center; gap: 12px; margin-top: 0; }
.e-next__photo { width: 60px; height: 72px; margin-right: 2px; object-fit: cover; flex: none; }
.e-next__who > div { min-width: 0; }
.e-next__with { font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-next__actions { margin-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.e-next .e-note { margin-top: 16px; }
.e-msglist, .e-savedlist { border-top: 1px solid var(--c-line); }
.e-msg { display: grid; grid-template-columns: 8px 1fr auto; column-gap: 12px; padding: 15px 0 26px; border-bottom: 1px solid var(--c-line); }
.e-msg:last-child { border-bottom: 0; padding-bottom: 0; }
.e-msg__dot { width: 8px; height: 8px; border-radius: var(--r-round); background: var(--c-line-soft); margin-top: 0; }
.e-msg.is-unread .e-msg__dot { background: var(--c-maroon); }
.e-msg__from { font-size: 18px; line-height: 26px; letter-spacing: 0.1em; font-weight: var(--fw-medium); color: var(--c-text); }
.e-msg__text { margin-top: 4px; font-size: 18px; line-height: 29px; color: var(--c-text-warm); }
.e-saved { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.e-saved:last-child { border-bottom: 0; padding-bottom: 0; }
.e-saved__thumb { width: 84px; height: 64px; object-fit: cover; flex: none; }
.e-saved__main { flex: 1; min-width: 0; }
.e-saved__title { margin-top: 4px; font-size: 20px; line-height: 26px; letter-spacing: 0.02em; color: var(--c-maroon-ink); }
.e-bookmark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--c-maroon-deep); flex: none; margin-right: -7px; transition: transform var(--dur-fast) ease; }
.e-bookmark .icon { width: 18px; height: 18px; }
.e-bookmark[aria-pressed="true"] path { fill: currentColor; }
.e-bookmark:hover { transform: scale(1.12); }
.e-foryou { margin-top: 20px; }
.e-foryou__title { margin-top: 16px; }
.e-grid3 { display: grid; gap: 16px; margin-top: 16px; }
.e-card { display: block; background: var(--c-white); border: 1px solid var(--c-line); color: inherit; }
.e-card__photo { height: 170px; }
.e-card__body { padding: 20px 20px 20px; }
.e-card__title { margin-top: 8px; font-size: 20px; line-height: 26px; letter-spacing: 0.04em; font-weight: var(--fw-regular); color: var(--c-maroon-ink); }
.e-card__body .e-meta { margin-top: 8px; }
.e-card__link { margin-top: 8px; }
a.e-card:hover .e-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@container page (min-width: 900px) {
  .e-ov-row1 { grid-template-columns: 752px 420px; gap: 28px; }
  .e-ov-row2 { grid-template-columns: 586px 586px; gap: 28px; }
  .e-upcoming__photo { height: 220px; }
  .e-upcoming__body { padding: 28px 28px 28px; }
  .e-next__actions { flex-direction: row; align-items: flex-start; gap: 16px; }
  .e-next__resched { margin-top: 0; }
  .e-msg { padding: 15px 0 26px; }
  .e-saved { padding: 16px 0 15px; gap: 14px; }
  .e-saved__title { font-size: 20px; line-height: 31px; }
  .e-foryou { margin-top: 0; }
  .e-foryou__title { margin-top: 24px; }
  .e-grid3 { grid-template-columns: repeat(3, 381px); gap: 28px; margin-top: 24px; }
  .e-card__photo { height: 200px; }
  .e-card__title { line-height: 31px; letter-spacing: 0.02em; }
  .e-card__body .e-meta { margin-top: 8px; }
}

/* ---------- Sessions & purchases ---------- */
.e-book { background: var(--c-avatar); padding: 20px 20px; display: grid; gap: 0; }
.e-book__text .e-muted-lg { margin-top: 8px; color: var(--c-text-warm); }
.e-book__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 12px; }
.e-sessions { border-top: 1px solid var(--c-line); }
.e-session { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.e-session:last-child { border-bottom: 0; padding-bottom: 0; }
.e-session__date { font-size: 18px; line-height: 26px; letter-spacing: 0.1em; font-weight: var(--fw-medium); color: var(--c-text); }
.e-session__title { font-size: 20px; line-height: 31px; color: var(--c-maroon-ink); letter-spacing: 0.02em; }
.e-session .e-meta { font-size: 16px; }
.e-session__actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.e-table { width: 100%; border-collapse: collapse; text-align: left; }
.e-table th { padding: 12px 16px 16px 0; font-size: 15px; line-height: 16px; letter-spacing: 0.13em; font-weight: var(--fw-medium); text-transform: uppercase; color: var(--c-text-grey); border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.e-table td { padding: 16px 16px 16px 0; font-size: 18px; line-height: 29px; color: var(--c-text); border-bottom: 1px solid var(--c-line); vertical-align: top; }
.e-table th:last-child, .e-table td:last-child { padding-right: 0; }
.e-grey { color: var(--c-text-grey) !important; }
.e-table__sub { display: block; }
.e-table__total { font-size: 16px !important; letter-spacing: 0.1em; font-weight: var(--fw-medium); color: var(--c-text-grey) !important; white-space: nowrap; }
.e-receipt { gap: 6px; white-space: nowrap; }
.e-receipt .icon { width: 14px; height: 14px; }
@container page (min-width: 900px) {
  .e-book { padding: 32px; grid-template-columns: 266px 1fr; align-items: center; }
  .e-book__actions { flex-direction: row; justify-content: flex-end; margin-top: 0; }
  .e-session { grid-template-columns: 190px 1fr auto; column-gap: 24px; align-items: center; padding: 26px 0 27px; }
  .e-session__date { max-width: 140px; }
  .e-session:last-child .e-session__date { max-width: none; }
  .e-session__actions { margin-top: 0; flex-wrap: nowrap; }
  .e-table th { padding: 16px 16px 18px 0; }
  .e-table td { padding: 24px 16px 24px 0; }
  .e-table { margin-top: 0; }
  .e-table th:nth-child(1) { width: 166px; } .e-table th:nth-child(2) { width: 396px; } .e-table th:nth-child(3) { width: 206px; }
  .e-table th:nth-child(4) { width: 166px; } .e-table th:nth-child(5) { width: 136px; }
  .e-table td.e-table__total { vertical-align: middle; }
}

/* ---------- Library ---------- */
.e-filters { display: grid; gap: 12px; }
.e-goalbar { display: flex; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--page-gutter-m)); }
.e-goalbar::-webkit-scrollbar { display: none; }
.e-goal, .e-dropdown {
  flex: none; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px;
  border: 1px solid var(--c-line-strong) !important; background: var(--c-white);
  font-size: 16px; letter-spacing: 0.13em; font-weight: var(--fw-medium); text-transform: uppercase; color: var(--c-text);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.e-goal + .e-goal { margin-left: -1px; }
.e-goal .icon { width: 18px; height: 18px; color: var(--c-maroon-deep); }
.e-goal:hover, .e-dropdown:hover { border-color: var(--c-maroon) !important; position: relative; }
.e-goal[aria-pressed="true"] { background: var(--c-maroon); color: var(--c-white); border-color: var(--c-maroon) !important; position: relative; }
.e-goal[aria-pressed="true"] .icon { color: var(--c-white); }
.e-dropdowns { display: flex; gap: 12px; }
.e-dropdown { padding: 0 12px; gap: 6px; }
.e-dropdown .icon { width: 14px; height: 14px; }
.e-search { display: flex; align-items: center; gap: 12px; height: 48px; margin-top: 20px; padding: 0 16px; border: 1px solid var(--c-line-strong); transition: border-color var(--dur-fast) ease; }
.e-search:focus-within { border-color: var(--c-maroon); }
.e-search .icon { width: 18px; height: 18px; color: var(--c-text-grey); }
.e-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 18px; color: var(--c-text); }
.e-search input::placeholder { color: var(--c-text-grey); opacity: 1; }
.e-libgrid { margin-top: 20px; }
.e-card--lib .e-card__photo { height: 190px; }
.e-card__eyerow { display: flex; justify-content: space-between; align-items: center; }
.e-card--lib .e-card__title { margin-top: 6px; }
.e-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--c-line); }
.e-card__foot .e-meta { margin-top: 0 !important; }
.e-shared { margin-top: 20px; background: var(--c-avatar); padding: 20px; }
.e-shared__text { margin-top: 16px; font-size: 18px; line-height: 29px; color: var(--c-text-warm); }
.e-shared__list { margin-top: 16px; }
.e-shared__item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; border-top: 1px solid #d8c8b1; text-align: left; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-shared__item .icon { width: 14px; height: 14px; color: var(--c-maroon-deep); flex: none; transition: transform var(--dur-med) var(--ease-out); }
.e-shared__item:hover .icon { transform: translate(2px, -2px); }
.e-shared__item:hover span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@container page (min-width: 900px) {
  .e-filters { display: flex; gap: 28px; }
  .e-goalbar { margin-right: 0; overflow: visible; }
  .e-dropdowns { gap: 28px; }
  .e-dropdown { padding: 0 20px; gap: 12px; }
  .e-search { margin-top: 28px; }
  .e-libgrid { margin-top: 28px; row-gap: 36px; }
  .e-card--lib .e-card__photo { height: 200px; }
  .e-shared { margin-top: 28px; padding: 32px; }
}

/* ---------- Messages ---------- */
.e-inbox { border: 1px solid var(--c-line); display: grid; }
.e-threads { border-right: 1px solid var(--c-line); }
.e-thread { display: block; width: 100%; text-align: left; padding: 18px 24px; min-height: 96px; border-bottom: 1px solid var(--c-line); transition: background-color var(--dur-fast) ease; }
.e-thread:hover { background: #fdf8ee; }
.e-thread.is-active { background: var(--c-sand); }
.e-thread__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.e-thread__name { font-size: 18px; line-height: 26px; letter-spacing: 0.1em; font-weight: var(--fw-medium); color: var(--c-text); }
.e-thread__text { display: block; margin-top: 4px; font-size: 18px; line-height: 29px; color: var(--c-text-warm); }
.e-convo { display: flex; flex-direction: column; min-width: 0; }
.e-convo__head { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid var(--c-line); }
.e-convo__avatar { width: 36px; height: 36px; border-radius: var(--r-round); background: var(--c-avatar); flex: none; }
.e-convo__msgs { background: var(--c-sand); padding: 16px; display: grid; gap: 16px; flex: 1; }
.e-bubble { max-width: 260px; background: var(--c-white); border: 1px solid var(--c-line); padding: 14px 15px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-bubble__time { margin-top: 6px; font-size: 16px; line-height: 25px; color: var(--c-text-grey); }
.e-bubble--sent { justify-self: end; background: var(--c-maroon); border-color: var(--c-maroon); color: var(--c-white); }
.e-bubble--sent .e-bubble__time { color: var(--c-cream-soft); }
.e-composer { display: flex; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--c-line); }
.e-composer__clip { display: grid; place-items: center; width: 24px; height: 44px; color: var(--c-text-grey); flex: none; }
.e-composer__clip .icon { width: 20px; height: 20px; }
.e-input.e-composer__input { flex: 1; height: 48px; }
.e-composer__send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; background: var(--c-maroon) !important; color: var(--c-white); transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease; }
.e-composer__send:hover { background: var(--c-maroon-hover) !important; }
.e-composer__send:active { transform: scale(0.95); }
.e-composer__send .icon { width: 18px; height: 18px; }
.e-inbox__note { margin-top: 0; }
@container page (min-width: 900px) {
  .e-inbox { grid-template-columns: 380px 1fr; min-height: 620px; }
  .e-convo__head { padding: 20px 20px; min-height: 94px; }
  .e-convo__msgs { padding: 28px; align-content: start; }
  .e-bubble { max-width: 460px; }
}

/* ---------- Forms (shared within the section) ---------- */
.e-field { display: grid; gap: 8px; min-width: 0; }
.e-label { font-size: 15px; line-height: 23px; letter-spacing: 0.13em; font-weight: var(--fw-medium); text-transform: uppercase; color: var(--c-text-grey); }
.e-q { font-size: 16px; line-height: 25px; color: var(--c-text); }
.e-input {
  width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--c-line-strong); border-radius: 0; background: var(--c-white);
  font-family: inherit; font-size: 18px; color: var(--c-text); outline: 0; transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.e-input::placeholder { color: var(--c-text-grey); opacity: 1; }
.e-input:hover { border-color: var(--c-line-maroon); }
.e-input:focus { border-color: var(--c-maroon); box-shadow: 0 0 0 3px rgba(118, 40, 45, 0.12); }
.e-input:user-invalid { border-color: #b3261e; }
.e-input:disabled { background: var(--c-line-soft); color: var(--c-text-muted); }
.e-input--55 { height: 55px; padding: 0 15px; }
.e-textarea { height: 96px; padding: 12px 15px; resize: vertical; font-family: inherit; line-height: 29px; }
.e-check { display: flex; align-items: center; gap: 10px; font-size: 18px; line-height: 29px; color: var(--c-text); cursor: pointer; position: relative; }
.e-check input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; }
.e-check__box { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--c-text-grey); flex: none; color: var(--c-white); transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.e-check__box .icon { width: 12px; height: 12px; opacity: 0; transition: opacity var(--dur-fast) ease; }
.e-check input:checked + .e-check__box { background: var(--c-maroon); border-color: var(--c-maroon); }
.e-check input:checked + .e-check__box .icon { opacity: 1; }
.e-check input:focus-visible + .e-check__box { outline: 2px solid var(--c-gold-ink); outline-offset: 2px; }
.e-check input:user-invalid + .e-check__box { border-color: #b3261e; }
.e-check__box--20 { width: 20px; height: 20px; }

/* ---------- Profile ---------- */
.e-profile-row { display: grid; gap: 20px; align-items: start; }
.e-fields { display: grid; gap: 16px; }
.e-personal .btn { margin-top: 16px; }
.e-checks { border: 0; margin: 0; padding: 0; display: grid; gap: 16px; }
.e-checks legend { padding: 0; margin-bottom: 16px; }
.e-prefs__comm { margin-top: 40px; }
.e-toggles { margin-top: 0; }
.e-toggle { display: flex; justify-content: space-between; align-items: center; min-height: 74px; padding-top: 16px; border-bottom: 1px solid var(--c-line); font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-switch { position: relative; width: 40px; height: 22px; border-radius: var(--r-pill); background: #e3e3e1 !important; flex: none; transition: background-color var(--dur-med) var(--ease-out); }
.e-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: var(--r-round); background: var(--c-white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform var(--dur-med) var(--ease-out); }
.e-switch[aria-checked="true"] { background: var(--c-maroon) !important; }
.e-switch[aria-checked="true"]::after { transform: translateX(18px); }
.e-selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.e-select { position: relative; display: block; }
.e-select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.e-select .icon { position: absolute; right: 17px; top: 17px; width: 18px; height: 18px; pointer-events: none; color: var(--c-text-grey); }
.e-select--caps { font-size: 16px; letter-spacing: 0.1em; font-weight: var(--fw-medium); }
.e-security { display: grid; gap: 4px; }
.e-security__text { margin-top: 8px; font-size: 20px; line-height: 26px; letter-spacing: 0.02em; color: var(--c-maroon-ink); }
.e-security__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 4px; }
@container page (min-width: 900px) {
  .e-profile-row { grid-template-columns: 752px 420px; gap: 28px; }
  .e-fields { grid-template-columns: 336px 336px; gap: 16px; }
  .e-selects { gap: 12px; }
  .e-security { grid-template-columns: 1fr auto; align-items: center; }
  .e-security__text { line-height: 31px; }
  .e-security__actions { margin-top: 0; }
}

/* ---------- My stays ---------- */
.e-panel--flush.e-stay { display: grid; border-color: var(--c-line-strong); }
.e-panel--pad36, .e-stays .e-panel { border-color: var(--c-line-strong); }
.e-stay__photo { height: 220px; }
.e-stay__details { padding: 24px 20px 24px; }
.e-stay__status { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.e-chip-status { display: inline-flex; align-items: center; height: 33px; padding: 0 12px; border: 1px solid var(--c-gold); background: var(--c-cream); font-size: 15px; letter-spacing: 0.13em; font-weight: var(--fw-medium); text-transform: uppercase; color: var(--c-olive); }
.e-stay__title { margin-top: 14px; }
.e-facts { margin-top: 14px; display: grid; gap: 10px; }
.e-fact { display: flex; justify-content: space-between; align-items: baseline; }
.e-fact dt { font-size: 16px; line-height: 25px; color: var(--c-text-grey); }
.e-fact dd { margin: 0; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-before { margin-top: 14px; background: #fcf2e0; padding: 16px 20px; }
.e-before ul { margin-top: 10px; display: grid; gap: 10px; }
.e-before li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 25px; color: var(--c-text); }
.e-before__ico { flex: none; width: 16px; font-size: 18px; line-height: 25px; color: var(--c-olive); }
.e-before__text { flex: 1; }
.e-stay__actions { margin-top: 14px; display: grid; gap: 12px; justify-items: center; }
.e-stay__actions .btn { width: 100%; }
.e-bd__head { display: flex; justify-content: space-between; align-items: flex-end; }
.e-bd__ref { margin-top: 4px; font-size: 20px; line-height: 28px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-bd__dl { display: none; }
.e-bd__dl-m { display: block; margin-top: 24px; }
.e-bd__cols { margin-top: 16px; display: grid; gap: 20px; }
.e-bd__h { font-size: 18px; line-height: 26px; letter-spacing: 0.1em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-bd__list { margin-top: 8px; display: grid; gap: 8px; }
.e-bd__list li { font-size: 16px; line-height: 25px; color: var(--c-text); padding-left: 15px; position: relative; }
.e-bd__list li::before { content: "·"; position: absolute; left: 0; }
.e-pay { margin-top: 8px; }
.e-pay > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 6px; font-size: 16px; line-height: 25px; color: var(--c-text); }
.e-pay dd { margin: 0; white-space: nowrap; }
.e-pay__due { border-top: 1px solid var(--c-line-strong); margin-top: 6px; padding-top: 10px !important; color: var(--c-maroon-deep) !important; align-items: baseline; }
.e-pay__due dd { font-size: 18px; letter-spacing: 0.1em; font-weight: var(--fw-medium); }
.e-pay__note { margin-top: 8px; }
.e-past__head { padding-bottom: 16px; border-bottom: 1px solid var(--c-line-strong); }
.e-past { display: grid; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--c-line-strong); justify-items: start; }
.e-past:last-child { border-bottom: 0; padding-bottom: 0; }
.e-past__thumb { width: 120px; height: 80px; object-fit: cover; }
.e-past__title { font-size: 20px; line-height: 28px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-past__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 4px; }
.e-plan { background: var(--c-sand); padding: 24px 20px; display: grid; gap: 16px; }
.e-plan__text { margin-top: 6px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-plan__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@container page (min-width: 900px) {
  .e-panel--flush.e-stay { grid-template-columns: 440px 1fr; }
  .e-stay__photo { height: 498px; }
  .e-stay__details { padding: 36px 36px 36px; }
  .e-stay__status { flex-direction: row; align-items: center; gap: 12px; }
  .e-stay__title { margin-top: 14px; }
  .e-facts { display: flex; gap: 32px; margin-top: 14px; }
  .e-fact { display: block; }
  .e-fact dd { margin-top: 4px; }
  .e-before { margin-top: 14px; }
  .e-before ul { gap: 10px; margin-top: 10px; }
  .e-before li { align-items: center; min-height: 29px; }
  .e-before li:first-child, .e-before li:last-child { min-height: 44px; }
  .e-stay__actions { display: flex; align-items: center; gap: 12px; }
  .e-stay__actions .btn { width: auto; }
  .e-bd__dl { display: block; }
  .e-bd__dl-m { display: none; }
  .e-bd__cols { grid-template-columns: 539px 539px; column-gap: 48px; margin-top: 16px; }
  .e-past { grid-template-columns: 140px 1fr auto; column-gap: 24px; align-items: center; padding: 20px 0; }
  .e-past__thumb { width: 140px; height: 92px; }
  .e-past__actions { flex-direction: row; align-items: center; gap: 20px; margin-top: 0; }
  .e-plan { grid-template-columns: 1fr auto; align-items: center; padding: 32px 36px; }
  .e-plan__actions { flex-direction: row; align-items: center; gap: 16px; }
}

/* ---------- Offers & events ---------- */
.e-offers .e-panel, .e-prearrival .e-panel { border-color: var(--c-line-strong); }
.e-intro__text { margin-top: 6px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-head-sm__title { margin-top: 4px; font-size: 20px; line-height: 28px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-rates { margin-top: 16px; display: grid; gap: 16px; }
.e-rate__photo { height: 180px; }
.e-rate__body { background: var(--c-sand); padding: 20px; }
.e-rate__title { margin-top: 8px; font-size: 22px; line-height: 31px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-rate__text { margin-top: 8px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-rate .e-link { margin-top: 6px; }
.e-rows { margin-top: 16px; border-top: 1px solid var(--c-line-strong); }
.e-pkg, .e-event { display: grid; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--c-line-strong); justify-items: start; }
.e-pkg:last-child, .e-event:last-child { border-bottom: 0; padding-bottom: 0; }
.e-pkg__title { font-size: 20px; line-height: 28px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-pkg__price { font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-event__date { white-space: nowrap; }
@container page (min-width: 900px) {
  .e-rates { grid-template-columns: 555px 555px; gap: 24px; align-items: start; }
  .e-rate__photo { height: 200px; }
  .e-rate__title { font-size: 24px; }
  .e-pkg { grid-template-columns: 1fr auto auto; column-gap: 24px; align-items: center; padding: 24px 0 25px; }
  .e-event { grid-template-columns: 200px 1fr auto; column-gap: 24px; align-items: center; padding: 24px 0 25px; }
  .e-event__date { white-space: normal; }
}

/* ---------- Pre-arrival form ---------- */
.e-back { margin-bottom: 20px; }
.e-stepper { display: grid; }
.e-step { display: flex; width: 100%; align-items: center; gap: 10px; height: 53px; text-align: left; border-bottom: 1px solid var(--c-line-strong); position: relative; font-size: 16px; line-height: 25px; color: var(--c-text-grey); }
.e-step::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--c-maroon); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-med) var(--ease-out); }
.e-step:hover .e-step__label { color: var(--c-maroon-deep); }
.e-step__dot { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--c-line-strong); flex: none; font-size: 16px; transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease; }
.e-step__tick { display: none; font-size: 18px; }
.e-step.is-done .e-step__dot { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-white); }
.e-step.is-done .e-step__num { display: none; }
.e-step.is-done .e-step__tick { display: inline; }
.e-step.is-active { color: var(--c-maroon-deep); }
.e-step.is-active::after { transform: none; }
.e-step.is-active .e-step__dot { background: var(--c-maroon); border-color: var(--c-maroon); color: var(--c-white); }
.e-pa-row { margin-top: 20px; display: grid; gap: 20px; align-items: start; }
.e-paform__fields { display: grid; gap: 20px; margin-top: 20px; }
.e-paform__fields[hidden] { display: none; }
.e-paform__grid { display: grid; gap: 20px; }
.e-q__opt { font-weight: var(--fw-regular); color: var(--c-text-warm); font-size: 0.85em; }
@container page (min-width: 900px) { .e-paform__grid { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.e-paform__intro { font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-paform__goals { border: 0; margin: 0; padding: 0; }
.e-paform__goals legend { padding: 0; margin-bottom: 10px; }
.e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.e-chip { height: 43px; padding: 0 16px; border: 1px solid var(--c-maroon) !important; font-size: 16px; color: var(--c-maroon-deep); transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease; }
.e-chip:hover { background: var(--c-cream); }
.e-chip[aria-pressed="true"] { background: var(--c-maroon); color: var(--c-white); }
.e-field--q { gap: 6px; }
.e-consent { align-items: flex-start; font-size: 16px; line-height: 25px; gap: 10px; }
.e-consent .e-check__box { width: 20px; height: 20px; margin-top: 1px; }
.e-paform__actions { margin-top: 20px; display: flex; flex-direction: column-reverse; align-items: center; gap: 16px; }
.e-paform__actions .btn { width: 100%; }
.e-yourstay { background: var(--c-sand); border: 1px solid var(--c-line-strong); padding: 24px 20px; }
.e-yourstay .e-head-sm__title { margin-top: 8px; }
.e-yourstay > .e-meta { margin-top: 16px; }
.e-yourstay__count { margin-top: 16px; font-size: 16px; line-height: 25px; color: var(--c-text); }
.e-yourstay .e-bar { margin-top: 8px; }
.e-yourstay__note { margin-top: 16px !important; }
.e-yourstay .e-link { margin-top: 16px; }
@container page (min-width: 900px) {
  .e-body--pa { padding-top: 64px; }
  .e-back { margin-bottom: 28px; }
  .e-stepper { grid-template-columns: repeat(4, 300px); }
  .e-step { height: 53px; }
  .e-pa-row { grid-template-columns: 828px 340px; gap: 32px; margin-top: 28px; }
  .e-paform__fields { margin-top: 20px; gap: 20px; }
  .e-paform__actions { flex-direction: row; justify-content: space-between; }
  .e-paform__actions .btn { width: auto; }
  .e-yourstay { padding: 32px; }
}

/* ---------- Sign-in sheets (page dimmed behind a card / bottom sheet) ---------- */
.e-sheetpage { position: relative; display: grid; min-height: 871px; overflow: hidden; }
.e-sheetpage > * { grid-area: 1 / 1; }
.e-sheetpage__bg { min-width: 0; }
.e-sheetpage__scrim { position: absolute; inset: 0; z-index: 35; background: var(--c-scrim); animation: e-fade var(--dur-med) ease both; }
.e-sheetpage__layer { position: relative; z-index: 36; padding-top: var(--e-top-m); display: flex; flex-direction: column; justify-content: flex-end; }
.e-guest { padding: 40px 0; }
.e-guest__title { margin-top: 24px; }
.e-guest__grid { margin-top: 24px; gap: 28px; }
.e-guest__photo { height: 181px; }
.e-guest .e-card__title { margin-top: 8px; }
.e-guest__ico { color: var(--c-maroon-deep); display: grid; place-items: center; }
.e-guest__ico .icon { width: 18px; height: 18px; }
.e-sheet {
  position: relative; background: var(--c-white); border-radius: 20px 20px 0 0; padding: 40px 24px 26px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18); animation: e-sheet-up var(--dur-slow) var(--ease-out) both;
}
.e-sheet__handle { position: absolute; top: 16px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--c-line-strong); }
.e-sheet--gate { padding-top: 40px; }
.e-sheet__close { position: absolute; top: 22px; right: 38px; }
.e-sheet__close .icon { width: 13px; height: 13px; }
.e-sheet:focus { outline: 0; }
.e-sheet__icon { display: grid; place-items: center; width: 50px; height: 50px; background: var(--c-cream); color: var(--c-maroon-deep); }
.e-sheet__icon .icon { width: 22px; height: 22px; }
.e-sheet__eyebrow { margin-top: 20px; }
.e-sheet__big { margin-top: 10px; font-size: 30px; line-height: 34px; letter-spacing: 0.05em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-sheet__lead { margin-top: 10px; font-size: 18px; line-height: 29px; color: var(--c-text-warm); }
.e-sheet__script { margin-top: 6px; font-family: var(--font-script); font-weight: 400; font-size: 46px; line-height: 56px; letter-spacing: 0; color: var(--c-maroon-ink); }
.e-sheet__title { margin-top: 16px; font-size: 20px; line-height: 27px; letter-spacing: 0.06em; font-weight: var(--fw-medium); color: var(--c-maroon-ink); }
.e-sheet__text { margin-top: 16px; font-size: 18px; line-height: 29px; color: var(--c-text); }
.e-sheet--center .e-sheet__eyebrow, .e-sheet--center .e-sheet__title, .e-sheet--center .e-sheet__text { text-align: center; margin-inline: auto; }
.e-sheet__actions { margin-top: 20px; display: grid; gap: 12px; }
.e-sheet__form { margin-top: 16px; display: grid; gap: 16px; }
.e-sfield { gap: 6px; }
.e-sfield__row { display: flex; justify-content: space-between; align-items: baseline; }
.e-sbtn { height: 46px; font-size: 16px; letter-spacing: 0.1em; gap: 10px; }
.e-sbtn--48 { height: 48px; }
.e-sbtn .icon { width: 16px; height: 16px; }
.e-sheet__form .e-sbtn { margin-top: 0; }
.e-or { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 25px; color: var(--c-text-grey); }
.e-or::before, .e-or::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.e-notnow { justify-self: center; margin-top: 8px; font-size: 15px; line-height: 23px; letter-spacing: 0.13em; font-weight: var(--fw-medium); text-transform: uppercase; color: var(--c-text-grey); transition: color var(--dur-fast) ease; }
.e-notnow:hover { color: var(--c-maroon-deep); }
.e-ulink { font-size: 16px; line-height: 25px; color: var(--c-maroon-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.e-ulink:hover { color: var(--c-maroon-hover); }
.e-switchline { margin-top: 16px; text-align: center; font-size: 16px; line-height: 25px; color: var(--c-text-grey); }
.e-check--top { align-items: flex-start; }
.e-check--top .e-check__box { margin-top: 3px; }
.e-sheet__form .e-check { font-size: 16px; line-height: 25px; }
.e-backlink { margin-top: 16px; }
.e-benefits { margin-top: 16px; background: var(--c-sand); padding: 16px 20px; display: grid; gap: 8px; }
.e-benefits li { position: relative; padding-left: 24px; font-size: 16px; line-height: 25px; color: var(--c-text); }
.e-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--c-text); font-size: 18px; }
@keyframes e-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes e-sheet-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes e-sheet-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.is-static .e-sheet, .is-static .e-sheetpage__scrim { animation: none; }
@container page (min-width: 900px) {
  .e-sheetpage { min-height: var(--e-page-h); }
  .e-sheetpage__layer { padding-top: 68px; justify-content: flex-start; align-items: center; }
  .e-guest { padding: 64px 0; }
  .e-guest__title { margin-top: 24px; }
  .e-guest__grid { margin-top: 24px; }
  .e-guest__photo { height: 221px; }
  .e-sheet { width: 520px; border-radius: 0; padding: 72px 48px 44px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); animation-name: e-sheet-in; }
  .e-sheet--center { padding-top: 72px; }
  .e-sheet__icon { width: 62px; height: 62px; }
  .e-sheet__icon .icon { width: 26px; height: 28px; }
  .e-sheet__title { font-size: 24px; line-height: 31px; }
  .e-sheet__actions { margin-top: 20px; }
}
.e-sheet__text + .btn { margin-top: 16px; }

/* Fluid wide screens: the sign-in sheets' guest page is not inside .site-main, so it gets the same centring
   borders as other top-level blocks; the header bar, scrim and centred card already span the screen. */
@container page (min-width: 1441px) {
  .e-guest { border-left: calc((100cqw - 1440px) / 2) solid transparent; border-right: calc((100cqw - 1440px) / 2) solid transparent; }
}

/* ---------- Sign-in modal (the sign-in family opened in place over any screen; see app.js MODAL_ROUTES) ---------- */
.overlay__panel:has(.e-sheet--modal) {
  padding: 0; background: none; box-shadow: none; width: min(520px, calc(100% - 32px));
  max-height: calc(100% - 32px); overflow-y: auto;
}
.e-sheet--modal { animation: none; }
.overlay__panel:has(.e-sheet--modal) > .overlay__close { top: 18px; right: 18px; z-index: 2; }
@container page (max-width: 899.98px) {
  /* Mobile: a bottom sheet that slides up. */
  .overlay__panel:has(.e-sheet--modal) {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: calc(100% - 48px);
    transform: translateY(100%); opacity: 1;
  }
  .overlay.is-open .overlay__panel:has(.e-sheet--modal) { transform: none; }
  .overlay__panel:has(.e-sheet--modal) > .overlay__close { top: 22px; right: 16px; }
  .overlay__panel:has(.e-sheet--modal).is-swapping { transform: none; }
}
