:root {
  --ink: #171713;
  --ink-soft: #282720;
  --muted: #6d6b63;
  --paper: #f4f0e8;
  --paper-2: #ebe5da;
  --white: #fffefa;
  --violet: #675bd8;
  --violet-dark: #5146bd;
  --gold: #c8a15d;
  --success: #2f7043;
  --error: #9b3930;
  --line: rgba(23, 23, 19, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(34, 27, 17, 0.11);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.52; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 1rem; }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--violet);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.15rem;
  border: 1px solid transparent;
  background: var(--violet);
  color: #fff;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.button:hover { background: var(--violet-dark); }
.button:active { transform: translateY(1px); }
.button--light { background: #fff; color: var(--ink); }
.button--light:hover { background: var(--paper); }
.button--ink { background: var(--ink); }
.button--ink:hover { background: #32312c; }
.button--outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button--outline:hover { background: var(--paper); }
.text-button {
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.74rem;
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  cursor: pointer;
}
.text-button--light { color: #fff; }

.portal-loading {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: var(--paper);
  text-align: center;
}
.portal-loading img {
  width: 78px;
  height: 78px;
  margin: auto;
  clip-path: circle(49%);
  object-fit: cover;
}
.portal-loading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portal-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  height: 74px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(18px);
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
}
.portal-brand img {
  width: 46px;
  height: 46px;
  clip-path: circle(49%);
  object-fit: cover;
  background: #000;
}
.portal-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.portal-brand b { font: 500 1.02rem/1 var(--serif); letter-spacing: 0.01em; }
.portal-brand small,
.profile-copy small { color: var(--muted); font-size: 0.65rem; }
.header-actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}
.icon-button span { font-family: var(--serif); font-size: 1.25rem; }
.profile-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0.75rem 0.25rem 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}
.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.05em;
}
.profile-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; font-size: 0.72rem; }
.profile-copy b,
.profile-copy small { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.portal-shell {
  display: grid;
  min-height: calc(100svh - 74px);
  grid-template-columns: 224px minmax(0, 1fr);
}
.portal-sidebar {
  position: sticky;
  top: 74px;
  display: flex;
  height: calc(100svh - 74px);
  flex-direction: column;
  padding: 1.75rem 1.2rem 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.62);
}
.portal-nav { display: grid; gap: 0.3rem; }
.nav-item {
  display: flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.8rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}
.nav-item > span { width: 1.15rem; color: var(--ink); font: 1.15rem/1 var(--serif); text-align: center; }
.nav-item:hover,
.nav-item.is-active { background: var(--paper-2); color: var(--ink); }
.nav-item.is-active { font-weight: 720; }
.sidebar-help {
  display: grid;
  gap: 0.22rem;
  margin-top: auto;
  padding: 1.05rem;
  border: 1px solid var(--line);
  background: var(--white);
}
.sidebar-help span { color: var(--muted); font-size: 0.65rem; }
.sidebar-help b { margin-bottom: 0.5rem; font: 500 1.07rem/1.2 var(--serif); }
.sidebar-help a,
.back-home { font-size: 0.69rem; font-weight: 690; text-underline-offset: 0.2rem; }
.back-home { margin-top: 0.75rem; color: var(--muted); }
.signout-button { min-height: 2rem; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.portal-main { min-width: 0; max-width: 100vw; padding: clamp(1.8rem, 4vw, 4.2rem); }
.portal-main:focus { outline: none; }
.portal-view { max-width: 1400px; margin: auto; }

.welcome-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.65rem;
}
.welcome-row h1,
.page-heading h1 {
  margin: 0 0 0.5rem;
  font: 500 clamp(2.25rem, 4vw, 4.3rem)/0.98 var(--serif);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.welcome-row > div > p:last-child,
.page-heading > p:last-child { margin: 0; color: var(--muted); }
.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.privacy-note span { color: var(--success); }

.stay-hero {
  position: relative;
  min-height: clamp(360px, 39vw, 530px);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.stay-hero > img {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
.stay-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 11, 9, 0.82), rgba(12, 11, 9, 0.24) 70%, rgba(12, 11, 9, 0.04));
}
.stay-mark {
  position: absolute;
  z-index: -1;
  right: 4%;
  bottom: 4%;
  width: min(16vw, 155px);
  opacity: 0.075;
  clip-path: circle(49%);
  mix-blend-mode: screen;
}
.stay-content {
  position: absolute;
  right: 1.5rem;
  bottom: clamp(1.5rem, 4vw, 3.4rem);
  left: clamp(1.5rem, 4vw, 3.8rem);
  max-width: 650px;
}
.stay-content .eyebrow { color: #ddd7ff; }
.stay-content h2 {
  max-width: 11ch;
  margin: 0 0 0.95rem;
  font: 500 clamp(2.35rem, 4.7vw, 4.8rem)/0.95 var(--serif);
  letter-spacing: -0.04em;
}
.stay-content > p:not(.eyebrow) { max-width: 520px; color: rgba(255, 255, 255, 0.8); }
.stay-meta { display: flex; gap: 0.75rem 1.5rem; flex-wrap: wrap; color: rgba(255, 255, 255, 0.82); font-size: 0.75rem; }
.stay-meta span + span { position: relative; }
.stay-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -0.8rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.stay-actions { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.55rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 1rem; margin-top: 1rem; }
.panel { padding: clamp(1.35rem, 2.5vw, 2.2rem); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.panel h2,
.request-history h2 { margin: 0; font: 500 clamp(1.7rem, 2.5vw, 2.5rem)/1 var(--serif); letter-spacing: -0.03em; }
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.6rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.quick-actions button {
  position: relative;
  display: flex;
  min-height: 125px;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.1rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease;
}
.quick-actions button:hover { background: var(--paper); }
.quick-actions span { color: var(--violet); font-size: 0.61rem; }
.quick-actions b { margin: auto 0 0.1rem; font: 500 1.08rem/1.2 var(--serif); }
.quick-actions small { color: var(--muted); font-size: 0.68rem; }
.care-panel > p:not(.eyebrow) { color: var(--muted); font-size: 0.76rem; }
.care-panel ul { margin: 1.25rem 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.care-panel li { display: flex; gap: 0.7rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.74rem; }
.care-panel li span { color: var(--violet); font-size: 0.61rem; }

.page-heading { max-width: 810px; margin-bottom: 2rem; }
.page-heading--compact h1 { font-size: clamp(2.5rem, 4.3vw, 4.7rem); }
.stay-list { display: grid; gap: 1rem; }
.empty-card,
.stay-list-card { padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--white); box-shadow: 0 1px 0 var(--line); }
.empty-card { min-height: 330px; }
.empty-card h2,
.stay-list-card h2 { max-width: 13ch; margin: 0.6rem 0; font: 500 clamp(2rem, 4vw, 3.8rem)/1 var(--serif); letter-spacing: -0.035em; }
.empty-card p:not(.eyebrow),
.stay-list-card p { max-width: 580px; color: var(--muted); }
.empty-card .button { margin-top: 1rem; }
.stay-list-card small { color: var(--muted); }
.status-pill {
  display: inline-flex;
  padding: 0.32rem 0.62rem;
  background: #e7f0e5;
  color: #2b5a35;
  font-size: 0.59rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.concierge-layout { display: grid; grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr); gap: 1rem; }
.request-form,
.request-history { padding: clamp(1.35rem, 3vw, 2.6rem); background: var(--white); }
.request-form > div { display: grid; gap: 1.1rem; }
.request-form label,
.form-grid label,
.totp-form label { display: flex; flex-direction: column; gap: 0.35rem; color: var(--muted); font-size: 0.67rem; }
.request-form select,
.request-form textarea,
.form-grid input,
.form-grid select,
.form-grid textarea,
.totp-form input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.55rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  outline: none;
}
.request-form textarea,
.form-grid textarea { resize: vertical; }
.request-form select:focus,
.request-form textarea:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.totp-form input:focus { border-color: var(--violet); }
.request-form > p { display: flex; gap: 0.5rem; margin: 1rem 0; color: var(--muted); font-size: 0.65rem; }
.request-form > p span { color: var(--success); }
.request-form .button { width: 100%; justify-content: space-between; }
.request-history { min-height: 450px; }
.request-history .panel-head { margin-bottom: 1rem; }
.request-empty { max-width: 420px; padding: 1.2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.request-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.request-item > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.request-item h3 { margin: 0; font: 500 1.2rem/1.2 var(--serif); }
.request-item p { margin: 0.5rem 0; color: var(--muted); font-size: 0.74rem; white-space: pre-wrap; }
.request-item small { color: var(--muted); font-size: 0.61rem; }
.conversation-thread { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); }
.conversation-thread h4 { margin: 0 0 0.65rem; font: 500 1.05rem/1 var(--serif); }
.message-list { display: grid; gap: 0.5rem; }
.message-bubble { width: min(90%, 520px); padding: 0.7rem 0.8rem; background: var(--paper); }
.message-bubble--staff { justify-self: end; border-left: 2px solid var(--violet); background: #efedf9; }
.message-bubble p { margin: 0.2rem 0 0; color: var(--ink); font-size: 0.7rem; }
.message-bubble small { color: var(--muted); font-size: 0.55rem; }
.message-empty { margin: 0; color: var(--muted); font-size: 0.66rem; }
.message-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.7rem; margin-top: 0.75rem; }
.message-form label { display: grid; gap: 0.25rem; color: var(--muted); font-size: 0.6rem; }
.message-form textarea { width: 100%; min-height: 2.7rem; padding: 0.45rem 0; resize: vertical; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.message-form .button { min-height: 2.7rem; }

.settings-form { display: grid; gap: 1rem; }
.settings-card { display: grid; grid-template-columns: minmax(210px, 0.52fr) minmax(0, 1.48fr); gap: clamp(2rem, 5vw, 5.5rem); padding: clamp(1.45rem, 3vw, 2.6rem); background: var(--white); }
.settings-card > div:first-child > span { color: var(--violet); font-size: 0.63rem; }
.settings-card h2 { margin: 0.45rem 0; font: 500 1.9rem/1 var(--serif); }
.settings-card > div:first-child p { max-width: 290px; color: var(--muted); font-size: 0.73rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-grid small { font-size: 0.59rem; }
.form-span { grid-column: 1 / -1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.75rem 0; }
.form-footer p { margin: 0; color: var(--muted); font-size: 0.7rem; }
.engagement-settings { display: grid; gap: 1rem; }
.choice-row { display: grid !important; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem !important; }
.choice-row > input { width: 1.05rem !important; height: 1.05rem; min-height: 0 !important; margin: 0.16rem 0 0; accent-color: var(--violet); }
.choice-row > span { display: grid; gap: 0.12rem; color: var(--ink); }
.choice-row b { font-size: 0.7rem; }
.choice-row small { color: var(--muted); font-size: 0.6rem; font-weight: 400; }
.engagement-settings fieldset,
.join-preferences { margin: 0; padding: 0; border: 0; }
.engagement-settings legend,
.join-preferences legend { margin-bottom: 0.55rem; color: var(--ink); font-size: 0.67rem; font-weight: 600; }
.join-preferences legend span { color: var(--muted); font-size: 0.55rem; font-weight: 400; }
.location-choices { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.location-choices > span { width: 100%; color: var(--muted); font-size: 0.58rem; }
.location-choices label { display: flex !important; min-height: 2rem; align-items: center; flex-direction: row !important; gap: 0.35rem !important; padding: 0.35rem 0.55rem; border: 1px solid var(--line); color: var(--ink); font-size: 0.58rem; cursor: pointer; }
.location-choices input { width: 0.85rem !important; height: 0.85rem; min-height: 0 !important; margin: 0; accent-color: var(--violet); }

.security-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr); gap: 1rem; }
.security-card { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.5rem); background: var(--white); }
.security-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 1.25rem/1 var(--serif); }
.security-card h2 { margin: 0.3rem 0 0.45rem; font: 500 1.9rem/1 var(--serif); }
.security-card p:not(.state) { color: var(--muted); font-size: 0.76rem; }
.security-card small { display: block; color: var(--muted); font-size: 0.63rem; }
.security-card > .button,
.security-card > .text-button { grid-column: 2; justify-self: start; margin-top: 0.65rem; }
.security-card--primary { grid-row: span 2; align-content: center; min-height: 380px; background: linear-gradient(135deg, #fff 0%, #fbf9f3 100%); }
.security-card--primary .button { min-width: 190px; justify-content: center; }
.security-card--wide { grid-column: auto; grid-template-columns: auto 1fr; align-content: center; }
.security-card--wide > .text-button { grid-column: 2; }
.state { margin: 0; color: var(--violet); font-size: 0.59rem; font-weight: 760; letter-spacing: 0.12em; text-transform: uppercase; }
.security-status { margin: 1rem 0 0 !important; padding: 0.75rem 0.85rem; border-left: 3px solid var(--violet); background: var(--paper); color: var(--ink) !important; font-size: 0.68rem !important; }
.security-status[data-tone="error"] { border-color: var(--error); background: #fff3f1; color: #7c2e27 !important; }
.security-status[data-tone="success"] { border-color: var(--success); background: #f0f8f2; color: #245734 !important; }
.device { display: grid; grid-template-columns: 1fr auto; margin-top: 1rem; padding: 0.9rem; border: 1px solid var(--line); }
.device span,
.device small { grid-column: 1; }
.device span { font-size: 0.72rem; font-weight: 720; }
.device b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--success); font-size: 0.63rem; }
.security-note { margin-top: 1rem; padding: 1.15rem; border-left: 3px solid var(--gold); background: var(--paper-2); }
.security-note p { margin: 0.22rem 0 0; color: var(--muted); font-size: 0.72rem; }
.nav-badge { display: grid; min-width: 1.15rem; height: 1.15rem; place-items: center; margin-left: auto; border-radius: 99px; background: var(--violet); color: #fff; font-size: 0.5rem; }
.team-heading { display: flex; max-width: none; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.team-heading > div:first-child { max-width: 760px; }
.team-actions { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 0.35rem; }
.team-dashboard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 1rem; }
.team-notifications,
.team-interests { min-height: 420px; }
.team-feed { display: grid; margin-top: 1rem; }
.team-feed-item { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.team-feed-marker { width: 7px; height: 7px; margin-top: 0.45rem; border-radius: 50%; background: var(--line); }
.team-feed-item.is-unread .team-feed-marker { background: var(--violet); box-shadow: 0 0 0 4px rgba(103, 91, 216, 0.12); }
.team-feed-item h3 { margin: 0; font: 500 1.1rem/1.1 var(--serif); }
.team-feed-item p { margin: 0.22rem 0; color: var(--muted); font-size: 0.67rem; }
.team-feed-item small { color: var(--muted); font-size: 0.56rem; }
.team-interest-summary { display: flex; align-items: baseline; gap: 0.5rem; margin: 1rem 0; }
.team-interest-summary b { font: 500 3.2rem/1 var(--serif); }
.team-interest-summary span { max-width: 140px; color: var(--muted); font-size: 0.63rem; }
.interest-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.interest-tags span { padding: 0.4rem 0.55rem; background: var(--paper); font-size: 0.58rem; text-transform: capitalize; }
.recent-activity { margin-top: 1rem; border-top: 1px solid var(--line); }
.recent-activity p { margin: 0; padding: 0.55rem 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.62rem; text-transform: capitalize; }
.team-conversations { margin-top: 1rem; }
.team-conversations > .panel-head { margin-bottom: 1rem; }
.team-conversation-card { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.team-conversation-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.team-conversation-card h3 { margin: 0.18rem 0 0; font: 500 1.35rem/1 var(--serif); }
.team-conversation-card small { color: var(--muted); font-size: 0.58rem; }
.team-conversation-card select { min-height: 2.25rem; padding: 0 0.55rem; border: 1px solid var(--line); background: var(--paper); font-size: 0.62rem; text-transform: capitalize; }
.team-conversation-card > p { max-width: 720px; color: var(--muted); font-size: 0.7rem; }

.mobile-nav { display: none; }
.action-dialog { width: min(520px, calc(100% - 2rem)); max-height: 90svh; padding: 0; overflow: auto; border: 0; background: var(--white); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3); }
.action-dialog::backdrop { background: rgba(16, 15, 13, 0.72); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; z-index: 2; top: 0.8rem; right: 0.8rem; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 1.3rem; cursor: pointer; }
.dialog-body { padding: clamp(1.6rem, 5vw, 3rem); }
.dialog-body h2 { max-width: 11ch; margin: 0.35rem 0 0.9rem; font: 500 clamp(2rem, 5vw, 3.1rem)/1 var(--serif); }
.dialog-body > p:not(.eyebrow) { color: var(--muted); }
.totp-qr { width: 210px; margin: 1.2rem auto; border: 10px solid #fff; }
.dialog-body details { margin: 1rem 0; font-size: 0.7rem; }
.dialog-body summary { cursor: pointer; text-decoration: underline; text-underline-offset: 0.2rem; }
.dialog-body code { display: block; margin-top: 0.65rem; padding: 0.7rem; overflow-wrap: anywhere; background: var(--paper); }
.totp-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.totp-form input { font-size: 1.15rem; letter-spacing: 0.35em; }
.toast { position: fixed; z-index: 150; right: 1rem; bottom: 1rem; max-width: 360px; padding: 0.85rem 1rem; background: var(--ink); color: #fff; box-shadow: var(--shadow); font-size: 0.72rem; opacity: 0; pointer-events: none; transform: translateY(10px); transition: 180ms ease; }
.toast[data-tone="error"] { background: var(--error); }
.toast[data-tone="success"] { background: var(--success); }
.toast.is-visible { opacity: 1; transform: none; }

.join-page { padding: 0; background: var(--ink); }
.join-header { position: absolute; right: 0; left: 0; border: 0; background: linear-gradient(180deg, rgba(10, 9, 7, 0.58), transparent); color: #fff; }
.join-header .portal-brand small { color: rgba(255, 255, 255, 0.7); }
.join-help { min-height: 44px; display: flex; align-items: center; font-size: 0.7rem; font-weight: 720; text-underline-offset: 0.25rem; }
.join-shell { display: grid; min-height: 100svh; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, 0.92fr); }
.join-visual { position: relative; display: flex; min-height: 700px; align-items: flex-end; overflow: hidden; padding: clamp(2rem, 6vw, 5.5rem); color: #fff; isolation: isolate; }
.join-visual > img:first-child { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.join-visual-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, rgba(12, 11, 9, 0.84), rgba(12, 11, 9, 0.08) 72%); }
.join-visual-copy { max-width: 640px; }
.join-visual-copy .eyebrow { color: #ded8ff; }
.join-visual-copy h1 { max-width: 10ch; margin: 0 0 0.9rem; font: 500 clamp(3.15rem, 5.6vw, 6.4rem)/0.92 var(--serif); letter-spacing: -0.048em; }
.join-visual-copy > p:last-child { max-width: 470px; color: rgba(255, 255, 255, 0.8); }
.join-watermark { position: absolute; z-index: -1 !important; right: 5%; bottom: 5%; width: min(16vw, 170px) !important; height: auto !important; opacity: 0.07; clip-path: circle(49%); mix-blend-mode: screen; }
.join-form-panel { position: relative; display: grid; align-items: center; overflow: hidden; padding: 7rem clamp(1.5rem, 5vw, 5rem) 3.5rem; background: var(--paper); isolation: isolate; }
.join-panel-mark { position: absolute; z-index: -1; top: 9%; right: -4%; width: min(25vw, 290px); height: auto; clip-path: circle(49%); opacity: 0.075; mix-blend-mode: multiply; pointer-events: none; }
.join-form-wrap { position: relative; z-index: 1; width: min(100%, 470px); margin: auto; }
.join-form-wrap h2 { margin: 0 0 0.8rem; font: 500 clamp(2.5rem, 4vw, 4rem)/0.96 var(--serif); letter-spacing: -0.04em; }
.join-intro { margin-bottom: 1.6rem; color: var(--muted); }
.join-signature { margin: 0 0 0.35rem; color: var(--violet-dark); font: italic 500 clamp(1.2rem, 1.8vw, 1.55rem)/1 var(--serif); letter-spacing: 0.01em; }
.provider-grid { display: grid; gap: 0.65rem; }
.oauth-button { display: flex; width: 100%; min-height: 3.1rem; align-items: center; justify-content: center; gap: 0.72rem; border: 1px solid var(--line); background: var(--white); font-weight: 600; cursor: pointer; }
.oauth-button:hover { background: #faf8f2; }
.oauth-button:disabled { cursor: not-allowed; opacity: 0.68; }
.oauth-button svg { width: 19px; }
.oauth-button--quiet { background: transparent; }
.join-divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.15rem 0; color: var(--muted); font-size: 0.63rem; }
.join-divider::before,
.join-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.auth-mode-tabs button { min-height: 2.65rem; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 0.68rem; font-weight: 600; cursor: pointer; }
.auth-mode-tabs button.is-active { border-color: var(--violet); color: var(--ink); }
.join-form { display: grid; gap: 0.65rem; }
.join-form label { display: flex; flex-direction: column; gap: 0.24rem; color: var(--muted); font-size: 0.64rem; font-weight: 500; }
.join-form label small { margin-top: 0.1rem; color: var(--muted); font-size: 0.56rem; font-weight: 400; }
.join-form input { min-height: 3.1rem; padding: 0.55rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; outline: none; }
.join-form input:focus { border-color: var(--violet); }
.join-form .button { width: 100%; justify-content: space-between; margin-top: 0.45rem; }
.join-preferences { display: grid; gap: 0.85rem; margin: 0.35rem 0; padding: 0.9rem; border: 1px solid var(--line); }
.join-preferences .location-choices { padding-left: 1.8rem; }
.forgot-button { justify-self: end; min-height: 2rem; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 0.62rem; text-decoration: underline; text-underline-offset: 0.2rem; cursor: pointer; }
.recovery-form { margin-top: 1.5rem; }
.auth-status { padding: 0.8rem; background: var(--paper-2); color: var(--muted); font-size: 0.68rem; }
.auth-status[data-tone="success"] { border-left: 3px solid var(--success); color: #245734; }
.auth-status[data-tone="error"] { border-left: 3px solid var(--error); color: #7c2e27; }
.join-legal { margin: 1rem 0; color: var(--muted); font-size: 0.62rem; }
.join-legal a { text-underline-offset: 0.18rem; }
.join-security { display: flex; gap: 0.7rem; margin-top: 1.25rem; padding: 0.9rem; border-left: 2px solid var(--gold); background: var(--paper-2); }
.join-security p { margin: 0; color: var(--muted); font-size: 0.66rem; }
.mfa-dialog { width: min(440px, calc(100% - 2rem)); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 32px 100px rgba(0, 0, 0, 0.32); }
.mfa-dialog::backdrop { background: rgba(16, 15, 13, 0.72); backdrop-filter: blur(6px); }
.mfa-dialog > form:first-child { position: absolute; z-index: 2; top: 0.7rem; right: 0.7rem; }
.mfa-form { display: grid; gap: 0.85rem; padding: clamp(2rem, 7vw, 3rem); }
.mfa-form h2 { margin: 0; font: 500 2.6rem/0.95 var(--serif); letter-spacing: -0.035em; }
.mfa-form > p:not(.eyebrow, .mfa-error) { margin: 0; color: var(--muted); font-size: 0.75rem; }
.mfa-form label { display: grid; gap: 0.35rem; color: var(--muted); font-size: 0.65rem; }
.mfa-form input { min-height: 3.2rem; padding: 0.6rem 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 1rem; letter-spacing: 0.18em; }
.mfa-form .button { width: 100%; justify-content: space-between; }
.mfa-error { min-height: 1em; margin: 0; color: var(--error); font-size: 0.64rem; }

@media (max-width: 1050px) {
  .portal-shell { grid-template-columns: 190px minmax(0, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .concierge-layout { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .team-dashboard { grid-template-columns: 1fr; }
  .security-card--wide { grid-column: auto; }
  .portal-main { padding: 2rem; }
}

@media (max-width: 820px) {
  .join-header { position: relative; background: var(--ink); }
  .join-shell { grid-template-columns: 1fr; }
  .join-visual { min-height: 52svh; padding: 6rem 1.5rem 2rem; }
  .join-form-panel { padding: 3.3rem 1.5rem 5rem; }
  .join-panel-mark { top: 5%; right: -4rem; width: 15rem; opacity: 0.065; }
  .join-watermark { width: 8.5rem !important; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .join-page { padding-bottom: 0; }
  .portal-header { height: 64px; }
  .portal-brand img { width: 42px; height: 42px; }
  .portal-brand small,
  .profile-button { display: none; }
  .portal-shell { display: block; min-height: calc(100svh - 64px); }
  .portal-sidebar { display: none; }
  .portal-main { padding: 1.1rem; }
  .welcome-row { display: block; margin-bottom: 1.1rem; }
  .welcome-row h1 { max-width: 100%; font-size: 2.25rem; }
  .welcome-row > div > p:last-child { max-width: 34ch; }
  .privacy-note { margin-top: 0.7rem; }
  .stay-hero { min-height: 455px; }
  .stay-shade { background: linear-gradient(0deg, rgba(12, 11, 9, 0.88), rgba(12, 11, 9, 0.08) 76%); }
  .stay-content h2 { font-size: 2.85rem; }
  .stay-meta { font-size: 0.7rem; }
  .stay-actions { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
  .panel { padding: 1.15rem; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .quick-actions button { min-height: 112px; }
  .page-heading { margin: 0.8rem 0 1.4rem; }
  .page-heading h1,
  .page-heading--compact h1 { font-size: 2.6rem; }
  .settings-card { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.15rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .team-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .team-actions { align-items: flex-start; flex-direction: column; }
  .security-card,
  .security-card--wide { grid-template-columns: auto 1fr; padding: 1.15rem; }
  .security-card > .button,
  .security-card > .text-button { grid-column: 1 / -1; }
  .device { grid-template-columns: 1fr; }
  .device b { grid-column: 1; grid-row: auto; margin-top: 0.35rem; }
  .mobile-nav {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: rgba(255, 254, 250, 0.97);
    backdrop-filter: blur(18px);
  }
  .mobile-nav button {
    display: flex;
    min-width: 0;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.08rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.52rem;
  }
  .mobile-nav button span { font: 1rem/1 var(--serif); }
  .mobile-nav button.is-active { color: var(--violet); font-weight: 760; }
  .mobile-nav.has-team { grid-template-columns: repeat(6, 1fr); }
  .toast { right: 0.7rem; bottom: calc(76px + env(safe-area-inset-bottom)); left: 0.7rem; max-width: none; }
}

@media (max-width: 480px) {
  .portal-brand b { font-size: 0.95rem; }
  .join-help { font-size: 0.65rem; }
  .join-visual { min-height: 55svh; }
  .join-visual-copy h1 { font-size: 3rem; }
  .join-form-wrap h2 { font-size: 2.55rem; }
  .join-panel-mark { right: -5rem; width: 13rem; }
  .stay-content h2 { font-size: 2.55rem; }
  .stay-meta span { width: 100%; }
  .stay-meta span + span::before { display: none; }
  .quick-actions { grid-template-columns: 1fr; }
  .quick-actions button { min-height: 96px; }
  .security-card { display: block; }
  .security-icon { margin-bottom: 0.8rem; }
  .request-item > div { align-items: flex-start; flex-direction: column; }
  .message-form { grid-template-columns: 1fr; }
  .message-form .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
