:root {
  --pink: #be176b;
  --pink-dark: #93104f;
  --ink: #352332;
  --muted: #776570;
  --paper: #fffaf8;
  --blush: #f8eeef;
  --line: #eadde1;
  --white: #fff;
  --green: #427963;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 5px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.8px;
}
h1 {
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.07;
}
h2 {
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.14;
}
h3 {
  font-weight: 600;
}
p {
  line-height: 1.7;
}
em {
  font-weight: 400;
  color: var(--pink);
}
.topbar {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: 1440px;
  margin: auto;
  padding: 0 6%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  color: var(--pink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  text-align: center;
  font-size: 9px;
  letter-spacing: 5px;
  margin-top: 6px;
  color: var(--ink);
}
.brand-mark {
  font-family: Georgia, serif;
  font-size: 49px;
  font-style: italic;
  letter-spacing: -7px;
  position: relative;
}
.brand-mark span {
  font-size: 22px;
  position: relative;
  top: -18px;
  left: 3px;
}
.topbar nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
}
.topbar nav a:hover {
  color: var(--pink);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 17px 23px;
  border: 1px solid var(--pink);
  border-radius: 6px;
  background: var(--pink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.button:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
}
.button.small {
  padding: 12px 18px;
}
.button.secondary {
  background: transparent;
  color: var(--pink);
}
.button.secondary:hover {
  background: #f8e5ee;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.5;
}
.spark {
  font-size: 18px;
  margin-right: 7px;
}
.hero {
  max-width: 1440px;
  margin: auto;
  padding: 70px 6% 76px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 590px;
  overflow: hidden;
}
.hero h1 {
  margin: 25px 0 24px;
}
.hero-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 450px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.text-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
  line-height: 1.8;
}
.text-link:hover {
  text-decoration: underline;
}
.quiet-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 27px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 100%;
  margin-right: 7px;
}
.hero-photos {
  position: relative;
  height: 410px;
  max-width: 530px;
  width: 100%;
  justify-self: center;
}
.hero-photo {
  object-fit: cover;
  aspect-ratio: 1;
  position: absolute;
  box-shadow: 0 12px 40px #5c203321;
  border: 7px solid var(--paper);
  border-radius: 24px;
}
.hero-maggie {
  width: 51%;
  left: 2%;
  top: 33px;
  transform: rotate(-8deg);
  z-index: 2;
}
.hero-sofia {
  width: 43%;
  right: 0;
  top: 0;
  transform: rotate(8deg);
}
.hero-jack {
  width: 40%;
  right: 4%;
  bottom: 0;
  transform: rotate(6deg);
  z-index: 3;
}
.photo-caption {
  position: absolute;
  bottom: 10px;
  left: 3%;
  font-size: 12px;
  line-height: 1.8;
  transform: rotate(-4deg);
  color: var(--muted);
}
.photo-caption strong {
  color: var(--pink);
  font-weight: 500;
}
.hero-spark {
  position: absolute;
  right: 35%;
  top: -19px;
  color: var(--pink);
  font-size: 58px;
  z-index: 4;
}
.orbit {
  position: absolute;
  border: 1px solid #e7c6d5;
  border-radius: 100%;
  width: 94%;
  height: 90%;
  top: 4%;
  left: 5%;
  transform: rotate(-25deg);
}
.orbit-two {
  height: 70%;
  width: 110%;
  top: 17%;
  left: -2%;
  transform: rotate(25deg);
}
.buddies-section {
  max-width: 1440px;
  padding: 56px 6% 64px;
  margin: auto;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section-heading .eyebrow {
  margin-bottom: 13px;
}
.section-heading h2 span {
  font-size: 30px;
  color: var(--pink);
  margin-left: 17px;
}
.section-heading > p {
  font-size: 12px;
  color: var(--muted);
}
.buddy-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 29px 21px;
}
.buddy-card {
  display: block;
  min-width: 0;
}
.buddy-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #efc5d6;
  aspect-ratio: 1;
}
.buddy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.buddy-card:hover img {
  transform: scale(1.035);
}
.ai-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--pink);
  padding: 6px 9px;
  border-radius: 4px;
  letter-spacing: 1px;
  font-size: 8px;
  font-weight: 700;
}
.buddy-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 5px;
}
.buddy-title h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 23px;
}
.buddy-title span {
  color: var(--pink);
  font-size: 19px;
}
.buddy-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 190px;
}
.section-note {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 32px;
}
.host-section {
  background: var(--blush);
  padding: 62px max(6%, calc((100vw - 1267px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: center;
}
.host-section h2 {
  margin: 17px 0 20px;
}
.host-section > div > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 20px;
}
.host-list {
  display: grid;
  gap: 14px;
}
.host-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.initials {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f1dce5;
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 25px;
}
.host-card h3 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}
.host-card p {
  font-size: 11px;
  color: var(--muted);
}
.on-duty {
  margin-left: auto;
  color: var(--green);
  font-size: 9px;
  font-weight: 600;
}
.care-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1440px;
  padding: 55px 6%;
  margin: auto;
}
.care-strip > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
}
.care-strip > div > span {
  grid-row: span 2;
  color: var(--pink);
  font-size: 40px;
}
.care-strip h3 {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}
.care-strip p {
  font-size: 12px;
  color: var(--muted);
  max-width: 590px;
  margin-top: 7px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 35px 6%;
  max-width: 1440px;
  margin: auto;
  display: flex;
  gap: 30px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  color: var(--pink);
  font-family: Georgia, serif;
  font-size: 24px;
  white-space: nowrap;
}
.footer-brand span {
  font-style: italic;
  font-size: 16px;
}
footer p {
  margin-right: auto;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
}
.profile-page {
  max-width: 1200px;
  margin: auto;
  padding: 40px 6% 70px;
}
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8%;
  align-items: center;
  margin-top: 35px;
}
.profile-portrait {
  position: relative;
}
.profile-portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
}
.profile-portrait .ai-pill {
  left: 20px;
  bottom: 20px;
  font-size: 10px;
}
.profile-copy h1 {
  margin: 20px 0;
}
.profile-bio {
  font-size: 16px;
  color: var(--muted);
}
.interest-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.interest-tags span {
  font-size: 10px;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
}
.profile-personality {
  font-size: 12px;
  margin-bottom: 25px;
  color: var(--muted);
}
.tiny {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.profile-copy .tiny {
  margin-top: 14px;
}
.casual-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 65px;
  padding-top: 55px;
}
.casual-section h2 {
  margin: 15px 0;
}
.casual-section p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.casual-section img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.chat-page {
  max-width: 1440px;
  margin: auto;
  padding: 35px 4% 50px;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.chat-heading h1 {
  font-size: 44px;
  margin-top: 8px;
}
.chat-heading h1 span {
  font-size: 27px;
  color: var(--pink);
  margin-left: 12px;
}
.connection {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 13px;
  border-radius: 20px;
}
.connection.connected {
  color: var(--green);
  background: #edf5ee;
}
.chat-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 225px;
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.room-sidebar,
.people-sidebar {
  padding: 25px 20px;
  background: var(--paper);
}
.room-sidebar {
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.room-button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  padding: 15px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.room-button.active {
  color: var(--pink);
  background: #f7e4ed;
  font-weight: 600;
}
.sidebar-note {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}
.sidebar-note > span {
  font-size: 30px;
  color: var(--pink);
}
.sidebar-note h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 23px;
  line-height: 1.2;
  margin: 15px 0 10px;
}
.sidebar-note p,
.sidebar-note a {
  font-size: 11px;
  color: var(--muted);
}
.sidebar-note a {
  color: var(--pink);
  display: block;
  margin-top: 15px;
}
.people-sidebar {
  border-left: 1px solid var(--line);
}
.people-sidebar h3 {
  font-size: 11px;
  margin: 28px 0 14px;
}
.people-sidebar h3 span {
  color: var(--muted);
  float: right;
}
.people-sidebar .eyebrow {
  letter-spacing: 1.5px;
}
.mini-buddy {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  margin-top: 13px;
}
.mini-buddy img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}
.mini-buddy small {
  color: var(--pink);
  font-size: 8px;
  margin-left: auto;
}
.mini-host {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 12px;
}
.mini-host small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.mini-host .initials {
  width: 38px;
  height: 38px;
  font-size: 20px;
}
.person-row {
  font-size: 11px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.person-row .dot {
  margin: 0;
}
.person-row button {
  margin-left: auto;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 760px;
}
.conversation-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.conversation-top h2 {
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.conversation-top p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.subtle {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.subtle:hover {
  background: var(--blush);
}
.messages {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  min-height: 320px;
  scroll-behavior: smooth;
}
.empty {
  padding: 80px 10px;
  text-align: center;
  color: var(--muted);
}
.empty > span {
  font-size: 40px;
  color: var(--pink);
}
.empty h3 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
  color: var(--ink);
  margin: 20px 0 12px;
}
.empty p {
  font-size: 12px;
}
.chat-message {
  margin-bottom: 23px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}
.chat-message .avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--blush);
  color: var(--pink);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
}
.message-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 6px;
}
.message-top strong {
  font-weight: 600;
}
.ai-label {
  font-size: 8px;
  color: var(--pink);
  background: #fae9f1;
  padding: 3px 5px;
  border-radius: 3px;
}
.message-top time {
  color: #9b8995;
  font-size: 9px;
}
.message-text {
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message-meta {
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.message-menu {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  padding: 0 6px;
}
.chat-message.pending {
  opacity: 0.6;
}
.chat-message.failed {
  border-left: 2px solid #a93241;
  padding-left: 8px;
}
.typing {
  font-size: 10px;
  color: var(--muted);
  height: 20px;
  margin: 0 24px;
}
#composer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 20px 12px;
}
textarea,
input,
select {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px;
  background: white;
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: none;
  line-height: 1.5;
  max-height: 120px;
}
.send {
  padding: 0;
  width: 43px;
  font-size: 22px;
  min-height: 44px;
}
#composer p {
  grid-column: span 2;
  font-size: 8px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}
.history-button {
  border: 0;
  background: transparent;
  font-size: 10px;
  color: var(--pink);
  padding: 9px;
}
.dev-banner {
  font-size: 10px;
  padding: 8px 20px;
  background: #fff5df;
  color: #7b5e26;
}
.privacy-page,
.admin-page {
  max-width: 1200px;
  margin: auto;
  padding: 55px 6% 70px;
}
.privacy-page h1 {
  margin: 20px 0;
}
.lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 550px;
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 35px 0;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 24px;
}
.panel h2 {
  font-size: 31px;
  margin: 10px 0 20px;
}
.panel h3 {
  font-size: 14px;
  margin: 27px 0 12px;
}
.panel p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
.panel label:not(.switch-label) {
  font-size: 11px;
  display: block;
  margin: 16px 0 8px;
}
.panel input:not([type="checkbox"]),
.panel select {
  display: block;
  width: 100%;
}
.panel form .button {
  margin: 20px 0;
}
.switch-label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
  font-size: 13px;
}
.switch-label input {
  accent-color: var(--pink);
  width: 18px;
  height: 18px;
}
.memory-item,
.blocked-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.memory-item button,
.blocked-item button {
  margin-left: auto;
}
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.danger {
  color: #a62443;
}
.button.danger {
  background: #a62443;
  color: white;
  border-color: #a62443;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 8px;
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  margin: 10px 0;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
}
fieldset {
  border: 1px solid var(--line);
  margin-top: 20px;
}
legend {
  font-size: 12px;
}
#persona-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
#persona-controls label {
  font-size: 11px;
  display: flex;
  gap: 7px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}
th,
td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
}
.report {
  border-top: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.report p {
  overflow-wrap: anywhere;
}
.report button {
  margin: 5px;
}
.audit-row {
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  overflow-wrap: anywhere;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 13px 20px;
  font-size: 12px;
  border-radius: 7px;
  max-width: 90%;
  box-shadow: 0 5px 20px #0002;
  z-index: 50;
  display: none;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  background: white;
  padding: 15px;
}
.dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  width: min(450px, 90vw);
  color: var(--ink);
}
.dialog::backdrop {
  background: #35233266;
}
.dialog h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.dialog label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.dialog input {
  width: 100%;
  margin-bottom: 20px;
}
.dialog .button-row {
  margin-top: 20px;
}
.dialog p {
  font-size: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .host-section {
    padding-left: max(6%, calc((100vw - 1267px) / 2));
    padding-right: max(6%, calc((100vw - 1267px) / 2));
  }
}
@media (max-width: 1100px) {
  .hero {
    gap: 15px;
    padding-top: 55px;
    padding-bottom: 55px;
    min-height: 530px;
  }
  .hero-photos {
    height: 350px;
  }
  .hero-intro {
    font-size: 14px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .text-link {
    font-size: 10px;
  }
  .topbar nav {
    gap: 20px;
  }
  .chat-shell {
    grid-template-columns: 155px minmax(0, 1fr);
  }
  .people-sidebar {
    display: none;
  }
  .hero-photo {
    border-width: 5px;
  }
  .hero-jack {
    bottom: 10px;
  }
  .photo-caption {
    font-size: 10px;
  }
  .host-section {
    gap: 6%;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 83px;
    padding: 0 5%;
    gap: 16px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-mark {
    font-size: 40px;
  }
  .brand small {
    font-size: 7px;
  }
  .topbar nav {
    gap: 16px;
  }
  .topbar nav a {
    font-size: 11px;
  }
  .topbar .button {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6% 35px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 49px;
    max-width: 550px;
  }
  .hero-intro {
    font-size: 15px;
    max-width: 480px;
  }
  .hero-photos {
    height: 345px;
    max-width: 430px;
  }
  .hero-maggie {
    width: 48%;
  }
  .hero-sofia {
    right: 4%;
    width: 40%;
  }
  .hero-jack {
    right: 8%;
    width: 37%;
  }
  .photo-caption {
    left: 6%;
    bottom: 15px;
    font-size: 11px;
  }
  .hero-spark {
    font-size: 45px;
  }
  .quiet-note {
    font-size: 9px;
  }
  .buddies-section {
    padding: 35px 6%;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }
  .section-heading h2 {
    font-size: 34px;
  }
  .section-heading > p {
    font-size: 12px;
  }
  .buddy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 16px;
  }
  .buddy-card p {
    max-width: none;
  }
  .buddy-image .ai-pill {
    left: 8px;
    bottom: 8px;
  }
  .host-section {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 30px;
  }
  .host-list {
    gap: 10px;
  }
  .care-strip {
    padding: 35px 6%;
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  .care-strip h3 {
    font-size: 24px;
  }
  .care-strip p {
    font-size: 11px;
  }
  footer {
    flex-wrap: wrap;
    padding: 30px 6%;
    gap: 20px;
  }
  footer p {
    width: 60%;
    font-size: 9px;
  }
  .profile-layout,
  .casual-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .profile-page {
    padding-top: 25px;
  }
  .profile-layout {
    margin-top: 25px;
  }
  .profile-portrait {
    max-width: 460px;
  }
  .profile-copy h1 {
    font-size: 52px;
  }
  .casual-section {
    margin-top: 40px;
    padding-top: 35px;
  }
  .casual-section img {
    max-width: 460px;
  }
  .chat-page {
    padding: 25px 3%;
  }
  .chat-heading h1 {
    font-size: 34px;
  }
  .chat-shell {
    grid-template-columns: 1fr;
    min-height: 650px;
  }
  .room-sidebar {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .room-sidebar > .eyebrow,
  .sidebar-note {
    display: none;
  }
  #room-list {
    display: flex;
    gap: 6px;
  }
  .room-button {
    margin: 0;
    padding: 12px;
    font-size: 11px;
  }
  .conversation-top {
    padding: 16px;
  }
  .conversation-top h2 {
    font-size: 13px;
  }
  .conversation-top p {
    font-size: 9px;
  }
  .messages {
    padding: 18px 16px;
    max-height: 440px;
  }
  .conversation {
    max-height: 700px;
  }
  .connection {
    font-size: 9px;
    padding: 7px 10px;
  }
  .empty {
    padding: 65px 0;
  }
  .empty h3 {
    font-size: 22px;
  }
  .empty p {
    font-size: 11px;
  }
  #composer {
    padding: 15px 12px 10px;
  }
  #composer p span {
    display: none;
  }
  .privacy-page,
  .admin-page {
    padding: 35px 5%;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 24px;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .admin-page .section-heading h1 {
    font-size: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.host-portrait {
  object-fit: cover;
  aspect-ratio: 1;
}

.portrait-trigger,
.name-trigger,
.inline-profile,
.profile-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.name-trigger {
  font-weight: 600;
}
.name-trigger:hover,
.inline-profile:hover {
  text-decoration: underline;
}
.portrait-trigger {
  align-self: start;
  border-radius: 50%;
}
.profile-trigger {
  width: 100%;
}
.persona-dialog {
  position: relative;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
}
.persona-dialog .profile-popup-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
}
.profile-popup-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--pink);
  margin-bottom: 12px;
}
.persona-dialog .interest-tags {
  justify-content: center;
}
.persona-dialog .button-row {
  justify-content: center;
}
.profile-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--muted);
}
.persona-dialog h2 {
  margin: 10px 0 16px;
}
.persona-dialog p {
  font-size: 13px;
  line-height: 1.7;
}

.conversation-top { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.conversation-top > .subtle { justify-self:end; }
.title-host-profile { display:flex; align-items:center; gap:8px; padding:3px; background:transparent; border:0; color:var(--ink); cursor:pointer; text-align:left; }
.title-host-profile img { width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--gold); }
.title-host-profile span { font-size:12px; font-weight:600; }
.title-host-profile small { display:block; margin-top:4px; font-size:9px; font-weight:400; color:var(--muted); }
@media(max-width:600px) { .conversation-top { gap:8px; padding:12px; } .title-host-profile { flex-direction:column; text-align:center; gap:3px; } .title-host-profile img { width:38px; height:38px; } .title-host-profile small { font-size:8px; } .conversation-top > .subtle { max-width:88px; } }

.embedded-chat .topbar,.embedded-chat > footer,.embedded-chat > .skip {display:none!important;}
.embedded-chat .chat-page {max-width:none; padding:18px 20px; margin:0;}
.embedded-chat .chat-shell {height:calc(100dvh - 112px); min-height:280px;}
.embedded-chat .conversation {max-height:none; height:100%;}
.embedded-chat .messages {max-height:none; min-height:80px;}
.embedded-chat .chat-heading {margin-bottom:12px;}
.embedded-chat .chat-heading h1 {font-size:30px;}
.embedded-mini .chat-heading,.embedded-mini .room-sidebar,.embedded-mini .people-sidebar,.embedded-mini #older,.embedded-mini #mute-ai,.embedded-mini .composer-footer,.embedded-mini .sidebar-note {display:none!important;}
.embedded-mini .chat-page {padding:0; height:100dvh;}
.embedded-mini .chat-shell {display:block; height:100dvh; border:0; border-radius:0;}
.embedded-mini .conversation-top {padding:10px; grid-template-columns:1fr auto;}
.embedded-mini .conversation-top h2 {font-size:12px;}
.embedded-mini .title-host-profile {flex-direction:row; text-align:left;}
.embedded-mini .title-host-profile img {width:34px;height:34px;}
.embedded-mini .title-host-profile span {font-size:10px;}
.embedded-mini .title-host-profile small {font-size:8px;}
.embedded-mini .messages {padding:12px 10px;}
.embedded-mini .chat-message {gap:7px;}
.embedded-mini .message-text {font-size:12px;}
.embedded-mini .composer {padding:10px;}
.embedded-mini .empty {padding:25px 10px;}
.embedded-mini .empty h3 {font-size:20px;}
.embedded-mini .profile-popup {max-width:calc(100vw - 16px);}
.embedded-full .chat-page{height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;overflow:hidden}
.embedded-full .chat-heading{flex:0 0 auto}
.embedded-full .chat-shell{flex:1;min-height:0;height:auto;grid-template-rows:minmax(0,1fr);overflow:hidden}
.embedded-chat .conversation{min-height:0;overflow:hidden}
.embedded-chat .conversation-top,.embedded-chat #composer,.embedded-chat .history-button{flex:0 0 auto}
.embedded-chat .messages{flex:1 1 0;min-height:0;overflow:auto}
@media(max-width:760px){.embedded-full .chat-shell{grid-template-rows:auto minmax(0,1fr)}}
.embedded-mini #composer{padding:8px}
.embedded-mini #composer p,.embedded-mini #composer>label{display:none}
.embedded-mini #composer textarea{min-height:38px;height:38px;font-size:12px}
.embedded-mini .chat-shell{min-height:0!important}

.embedded-chat .conversation{height:100%;max-height:none;min-height:0}
.embedded-mini .chat-shell{display:flex;flex-direction:column;align-items:stretch}
.embedded-mini .conversation{flex:1 1 0}
.message-meta:empty{display:none}

.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
.presence-toggle{display:flex;align-items:center;justify-content:center;gap:4px;background:var(--paper,#fff8fb);color:var(--pink-dark,#851447);border:1px solid var(--line,#e5cbd7);border-radius:8px;padding:7px;cursor:pointer;font-size:10px}
.embedded-mini .conversation-top{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.embedded-mini .title-host-profile span{display:none}
.company-dialog{width:min(430px,calc(100vw - 20px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--paper,#fff8fb);color:var(--ink,#442535);padding:18px}
.company-dialog::backdrop{background:#25152266}.company-heading{display:flex;justify-content:space-between;align-items:center}.company-heading h2{font-size:19px;margin:0}.company-section{font-size:11px;font-weight:700;letter-spacing:.5px;margin:18px 0 8px}.company-list{display:grid;gap:5px}.company-person{display:flex;align-items:center;gap:10px;padding:7px;border:0;border-radius:8px;background:transparent;text-align:left;color:inherit;font:inherit;width:100%}.company-person small{margin-left:auto;color:var(--muted);font-size:10px}.company-person:is(button){cursor:pointer}.company-person:is(button):hover{background:#eecfdf66}.company-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#f2dce7;color:#781e4c}
#composer{position:relative;grid-template-columns:minmax(0,1fr) auto auto}
.emoji-toggle{width:36px;min-height:40px;border:1px solid var(--line);border-radius:7px;background:var(--paper,#fff8fb);color:var(--pink-dark,#851447);font-size:25px;cursor:pointer;padding:0}
.emoji-picker{position:absolute;right:8px;bottom:calc(100% - 1px);z-index:30;width:min(310px,calc(100vw - 20px));max-height:min(280px,calc(100dvh - 90px));overflow:auto;padding:12px;background:#fff9fc;color:#512c40;border:1px solid #dbb2c8;border-radius:12px;box-shadow:0 8px 28px #35112438}.emoji-picker[hidden]{display:none}.emoji-title{font-size:13px}.emoji-group-label{font-size:10px!important;font-weight:700;margin:10px 0 6px!important}.emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}.emoji-grid.bingo-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.emoji-choice{border:1px solid #e3c4d5;background:white;border-radius:6px;padding:7px 2px;font-size:21px;cursor:pointer}.bingo-grid .emoji-choice{font-size:12px;font-weight:700}.emoji-choice:hover,.emoji-choice:focus-visible{background:#f8dfec;outline:2px solid #ad447b;outline-offset:1px}.embedded-mini #composer{gap:5px}.embedded-mini .emoji-toggle{width:29px;min-height:38px}
.room-notice{align-self:center;max-width:95%;padding:5px 12px;margin:5px auto;border:1px solid;border-radius:16px;font-size:11px;text-align:center;line-height:1.45}
.room-notice-join{background:#e0f5ef;color:#165c50;border-color:#72b7a6}.room-notice-leave{background:#f0e7f8;color:#614274;border-color:#b69ac9}
@media(prefers-color-scheme:dark){.room-notice-join{background:#173f37;color:#d5fff0;border-color:#6eb19c}.room-notice-leave{background:#392a45;color:#efddff;border-color:#ad8ac5}}

/* Keep message controls usable inside the narrow game chat frame. */
.dialog.conversation-controls{box-sizing:border-box;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:18px;border-radius:12px;background:var(--paper,#fff);}
.dialog.conversation-controls h2{font-family:inherit;font-size:19px;line-height:1.25;letter-spacing:0;margin:0 0 8px;}
.dialog.conversation-controls p{font-size:13px;line-height:1.45;margin:0 0 16px;}
.dialog.conversation-controls .button-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 0;}
.dialog.conversation-controls .button-row button{flex:1 1 auto;min-height:40px;padding:9px 12px;font-family:inherit;font-size:13px;font-weight:600;line-height:1.2;border-radius:7px;}
.dialog.conversation-controls button:focus-visible{outline:2px solid #a63372;outline-offset:2px;}

.embedded-profile{background:#fff7fc!important;min-height:0}.embedded-profile>.topbar,.embedded-profile>footer,.embedded-profile>.skip,.embedded-profile .back-link{display:none!important}.embedded-profile .profile-page,.embedded-profile-content{max-width:none;margin:0;padding:24px;background:#fff7fc}.embedded-profile .profile-layout,.embedded-profile-content .profile-layout{grid-template-columns:minmax(160px,.8fr) 1.2fr;gap:28px;padding:0}.embedded-profile .profile-copy h1,.embedded-profile-content .profile-copy h1{font-size:38px}.embedded-profile .profile-copy p,.embedded-profile-content .profile-copy p{font-size:14px;line-height:1.65}.embedded-profile .casual-section,.embedded-profile-content .casual-section{margin-top:28px;padding-top:24px}.embedded-profile .casual-section h2,.embedded-profile-content .casual-section h2{font-size:28px}.full-profile-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 32px);border:1px solid #e7cddb;border-radius:22px;padding:0;background:#fff7fc;color:var(--ink);overflow:auto}.full-profile-dialog::backdrop{background:#3b173b80;backdrop-filter:blur(5px)}.full-profile-heading{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:16px 22px;background:#fff7fc;border-bottom:1px solid #eddae6;z-index:2}.full-profile-heading strong{font-size:22px}.full-profile-heading button{border:0;border-radius:50%;background:#f8e5f0;color:#8b365f;font-size:27px;width:36px;height:36px;cursor:pointer}.profile-loading{padding:24px}@media(max-width:600px){.embedded-profile .profile-page,.embedded-profile-content{padding:18px}.embedded-profile .profile-layout,.embedded-profile-content .profile-layout{grid-template-columns:1fr}.embedded-profile .profile-portrait,.embedded-profile-content .profile-portrait{max-width:220px;margin:auto}.embedded-profile .profile-copy h1,.embedded-profile-content .profile-copy h1{font-size:32px}.full-profile-heading strong{font-size:19px}}

.embedded-settings .topbar,.embedded-settings>footer,.embedded-settings>.skip{display:none!important}.embedded-settings .privacy-page{padding:24px;max-width:100%;box-sizing:border-box}.embedded-settings .privacy-page>h1,.embedded-settings .privacy-page>.eyebrow,.embedded-settings .privacy-page>.lead{display:none!important}.embedded-settings .privacy-grid{grid-template-columns:1fr}.embedded-settings .privacy-grid>.panel:last-child{order:-1}.embedded-settings .panel{padding:22px}.embedded-settings{background:#fff8fc}

@media(max-width:600px){
.embedded-full .chat-heading,.embedded-full .conversation-top{display:none!important}
.embedded-full .chat-page{padding:0}
.embedded-full .chat-shell{border:0;border-radius:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-height:0}
.embedded-full .room-sidebar{padding:6px;min-height:0}
.embedded-full #room-list{display:flex;gap:6px}
.embedded-full .room-button{flex:1;min-height:40px;margin:0;padding:8px;font-size:12px}
.embedded-full .composer{padding:8px}
.embedded-full .composer p,.embedded-full .composer>label{display:none}
.embedded-full .composer textarea{min-height:40px;height:40px;font-size:14px}
.embedded-full .messages{padding:12px}
}

@media(max-width:600px){
.embedded-full .room-sidebar{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:4px;height:52px;box-sizing:border-box;padding:4px 104px 4px 6px;overflow:hidden}
.embedded-full #room-list{display:flex;gap:3px;min-width:0;flex:1}
.embedded-full #room-list .room-button{width:auto;flex:0 0 auto;min-width:0;min-height:40px;padding:8px 7px;white-space:nowrap;font-size:12px}
.embedded-full .room-sidebar>.presence-toggle{flex:0 0 auto;min-height:40px;padding:5px;gap:2px;font-size:10px}
.embedded-full .room-sidebar>.presence-toggle svg{width:16px;height:16px}
.presence-chevron{font-size:12px}
}

@media(max-width:360px){.embedded-full #room-list .room-button{font-size:11px;padding-inline:5px}.embedded-full .room-sidebar>.presence-toggle{padding-inline:3px;gap:1px}}

@media(max-width:600px){.embedded-chat #composer textarea{font-size:16px!important}}
