@import url("./fonts.css");
:root {
  color-scheme: light;
  --paper: #f4efe5;
  --ink: #383e32;
  --muted: #77796c;
  --olive: #626e48;
  --olive-dark: #4d5838;
  --line: #dfdfd0;
  --honey: #efdca5;
  --panel: #faf8f2;
  --shadow: 0 12px 42px #4e49350a;
  font-family:
    ChillinSans, ui-rounded, "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 50% 32%, #fffaf0 0, transparent 60%),
    var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.56;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #9f9f6e;
  outline-offset: 5px;
}
button {
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(30px, 3.6vw, 43px);
  line-height: 1.16;
}
h2 {
  font-size: 27px;
  line-height: 1.25;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.015em;
}
button[hidden],
[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;
}
.topbar {
  height: 102px;
  max-width: 1480px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
}
.wordmark {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -2.5px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.brand-dot {
  width: 7px;
  height: 7px;
  background: #97a376;
  border-radius: 50%;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: #68705b;
  font-size: 14px;
  padding: 7px;
  border-radius: 22px;
}
.profile-button:hover {
  background: #eaeadd;
}
.app-help-button {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px;
  background: transparent;
  border-radius: 12px;
  color: #68705b;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-help-button:hover {
  background: #eaeadd;
}
#profile-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e3e5d5;
  font-size: 14px;
}
.connection {
  font-size: 12px;
  color: #967335;
}
.home {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px 24px 30px;
}
.composer-section {
  text-align: center;
}
.home-companion {
  pointer-events: none;
  position: relative;
  height: 244px;
  display: grid;
  place-items: center;
}
.home-companion img {
  position: relative;
  height: 228px;
  filter: drop-shadow(0 12px 9px #5c533512);
  animation: breathe 6s ease-in-out infinite;
  transform-origin: 50% 90%;
  z-index: 1;
}
.companion-halo {
  position: absolute;
  width: 290px;
  height: 215px;
  background: radial-gradient(ellipse, #e9dda36b, transparent 70%);
  border-radius: 50%;
  bottom: 0;
}
.companion-note {
  position: absolute;
  right: -8px;
  top: 95px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: #8a8c72;
  transform: rotate(-7deg);
  max-width: 110px;
  line-height: 1.45;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2.1px;
  color: #81866a;
  display: block;
  margin-bottom: 11px;
}
#home-heading p {
  margin-top: 12px;
  font-size: 16px;
}
.composer {
  margin-top: 30px;
  border: 1px solid #d7d5b9;
  background: linear-gradient(145deg, #faf3d7, #f2e5b7);
  border-radius: 22px;
  position: relative;
  box-shadow:
    0 4px 9px #b6a76b12,
    0 0 35px #e4ca8533;
  transition:
    box-shadow 0.45s,
    background 0.45s,
    transform 0.45s;
  overflow: hidden;
  text-align: left;
}
.composer:focus-within {
  box-shadow:
    0 0 0 4px #f4e6b14d,
    0 0 55px #e4c56866;
  border-color: #c6b87a;
}
.composer textarea {
  display: block;
  resize: none;
  overflow: hidden;
  border: 0;
  background: transparent;
  width: 100%;
  padding: 25px 25px 7px;
  line-height: 1.5;
  font-size: 17px;
  min-height: 61px;
  max-height: 100px;
  outline: none;
}
.composer textarea::placeholder {
  font-size: 15px;
  color: #97916f;
}
.composer textarea:focus-visible {
  outline: 0;
}
.start-button {
  background: transparent;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 25px 21px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  text-align: left;
  min-height: 66px;
}
.start-button:focus-visible {
  outline: none;
}
.composer:has(.start-button:focus-visible) {
  outline: 3px solid #939765;
  outline-offset: 4px;
}
.start-arrow {
  font-size: 25px;
  font-weight: 400;
  transition: transform 0.3s;
}
.start-button:hover .start-button:focus-visible {
  outline: none;
}
.composer:has(.start-button:focus-visible) {
  outline: 3px solid #939765;
  outline-offset: 4px;
}
.start-arrow {
  transform: translate(3px, -3px);
}
.composer.settled {
  cursor: pointer;
}
.composer.ready,
.composer.launching,
.composer.hangout-expansion {
  border-color: #ccb363;
  background: linear-gradient(130deg, #fff0b8, #f2d680);
  box-shadow:
    inset 0 1px 0 #fff8de,
    0 5px 18px #b69a3d24,
    0 0 38px 5px #efc95c66;
}
.composer.ready {
  animation: hangout-ready 1.2s ease-out;
}
.composer.launching {
  animation: hangout-press 0.24s ease-out;
}
.composer.hangout-expansion {
  position: fixed;
  z-index: 100;
  margin: 0;
  pointer-events: none;
  transform-origin: top left;
  animation: none;
  transition: none;
  outline: none;
}
@keyframes hangout-press {
  50% {
    transform: scale(0.985);
  }
}
.composer.ready .start-button {
  color: #48512a;
}
@keyframes hangout-ready {
  0% {
    box-shadow:
      inset 0 1px 0 #fff8de,
      0 4px 9px #b6a76b12,
      0 0 12px 0 #efc95c22;
  }
  45% {
    box-shadow:
      inset 0 1px 0 #fff8de,
      0 7px 22px #b69a3d2e,
      0 0 52px 10px #efc95c88;
  }
  100% {
    box-shadow:
      inset 0 1px 0 #fff8de,
      0 5px 18px #b69a3d24,
      0 0 38px 5px #efc95c66;
  }
}
.composer.settled textarea {
  font-size: 14px;
  padding-bottom: 0;
  min-height: 50px;
  color: #797450;
  pointer-events: none;
}
.composer.settled .start-button {
  padding-top: 6px;
  padding-bottom: 24px;
}
.edit-status {
  position: absolute;
  right: 22px;
  top: 15px;
  background: transparent;
  font-size: 11px;
  color: #747149;
  text-decoration: underline;
  padding: 5px;
}
.composer.settled textarea {
  padding-right: 94px;
}
.prejoin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 2px 0;
  gap: 8px;
}
.media-choices {
  display: flex;
  gap: 6px;
}
.small-control {
  border: 1px solid #d9dccd;
  background: #ecefe2;
  color: #626d50;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 20px;
  min-height: 35px;
}
.small-control[aria-pressed="false"] {
  background: #eae5df;
  border-color: #dbd4cb;
  color: #917665;
}
.duration-label {
  font-size: 12px;
  color: #818571;
  white-space: nowrap;
}
.duration-label select {
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  padding: 8px 1px;
  max-width: 110px;
}
.privacy-note {
  font-size: 11px;
  margin-top: 13px;
  color: #91917f;
}
.friends-section {
  margin-top: 51px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dedfd0;
  padding-bottom: 14px;
}
.section-heading h2 {
  font-size: 16px;
  letter-spacing: -0.2px;
}
.section-heading > span {
  font-size: 11px;
  color: #989a89;
}
.empty-note {
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  padding: 24px 0 10px;
  color: #919383;
}
.home-footer {
  text-align: center;
  margin-top: 48px;
  font-size: 11px;
  color: #969784;
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
.tiny-flower {
  font-size: 19px;
  color: #98a17c;
}
.friends {
  display: grid;
  gap: 7px;
  padding-top: 12px;
}
.friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 15px;
  padding: 12px;
  background: transparent;
  text-align: left;
  width: 100%;
}
.friend-row:hover {
  background: #e9eadb;
}
.friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0e5ce;
  display: grid;
  place-items: center;
  font-weight: 500;
  color: #637149;
  position: relative;
}
.friend-row.available .friend-avatar:after {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  background: #8c9e61;
  border-radius: 50%;
  position: absolute;
  right: 0;
  bottom: 1px;
}
.friend-copy {
  flex: 1;
  min-width: 0;
}
.friend-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
}
.friend-copy span {
  font-size: 12px;
  color: #969783;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}
.friend-row .join-hint {
  font-size: 12px;
  color: #758150;
}
.resume-button {
  margin-top: 24px;
  background: #e4e9d4;
  border-radius: 13px;
  padding: 16px;
  width: 100%;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
}
.invitation {
  text-align: center;
  padding-top: 38px;
}
.invitation h1 {
  font-size: 34px;
}
.invitation p {
  margin: 12px 0 20px;
  font-size: 14px;
}
.invitation .primary {
  width: 100%;
}
.home.has-invite .home-companion {
  height: 180px;
}
.home.has-invite .home-companion img {
  height: 177px;
}
.home.has-invite .companion-note {
  display: none;
}
.home.has-invite #home-heading h1 {
  font-size: 25px;
}
.home.has-invite #home-heading .eyebrow {
  display: none;
}
.home.has-invite #home-heading p {
  font-size: 14px;
}
.home.has-invite .composer {
  margin-top: 20px;
}
.invitation.available {
  animation: invite-glow 1.4s ease-out;
}
.invitation.available .primary {
  box-shadow: 0 0 35px #d7dcac80;
}
.primary {
  background: var(--olive);
  color: #fffdf3;
  border-radius: 14px;
  min-height: 52px;
  padding: 15px 21px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 550;
  gap: 30px;
}
.primary:hover {
  background: var(--olive-dark);
  box-shadow: 0 5px 15px #4858321a;
}
.soft-button {
  background: #e9ebdd;
  border: 1px solid #dadfcc;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px;
  min-height: 43px;
  white-space: nowrap;
}
.soft-button:hover {
  background: #e0e5cf;
}
.call {
  max-width: 1480px;
  margin: auto;
  padding: 15px 56px 18px;
  animation: room-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.call.from-composer {
  animation: none;
}
.call-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.call-heading h1 {
  font-size: 29px;
  max-width: 850px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.call-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 1.4px;
  margin-bottom: 6px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8c9b62;
  box-shadow: 0 0 0 4px #8c9b6210;
}
.call-heading-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.time-left {
  font-size: 11px;
  color: #90927f;
  white-space: nowrap;
}
.call-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 19px;
  height: calc(100dvh - 297px);
  min-height: 360px;
  max-height: 850px;
}
.stage {
  border-radius: 24px;
  background: #e9e9dc;
  box-shadow: inset 0 0 0 1px #7e816b12;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.waiting {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
}
.waiting img {
  height: clamp(150px, 25vh, 290px);
  max-height: 49%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 12px #555c3315);
  animation: waiting-companion 8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.waiting-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, #f7edbb95, transparent 65%);
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.waiting-copy {
  position: relative;
}
.waiting-copy .eyebrow {
  font-size: 9px;
  margin: 15px 0 11px;
  letter-spacing: 1.5px;
}
.waiting h2 {
  font-size: clamp(20px, 2.1vw, 28px);
}
.waiting p {
  font-size: 13px;
  margin: 10px 0 17px;
}
.waiting .soft-button {
  background: #f6f4e9b0;
  border-color: #d7dac5;
}
.tiles {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}
.tiles.solo {
  pointer-events: none;
  padding: 0;
  display: block;
}
.tile {
  position: relative;
  isolation: isolate;
  border-radius: 17px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #f7f0d8, #e1e5d5);
  min-width: 0;
  min-height: 0;
  box-shadow: inset 0 0 0 1px #88937619;
  transition: box-shadow 0.4s;
  animation: tile-in 0.5s ease-out;
}
.tile.speaking {
  box-shadow:
    inset 0 0 0 3px #95a96a,
    0 0 20px #c1cb9550;
}
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
  z-index: 1;
}
.tile.local video {
  transform: scaleX(-1);
}
.tile.has-video video {
  opacity: 1;
}
.tile .buddy {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
  opacity: 1;
  overflow: hidden;
}
.tile.has-video .buddy {
  opacity: 0;
}
.buddy img {
  max-width: 72%;
  max-height: 77%;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px #434e2520);
  transform-origin: 50% 90%;
  animation: breathe 6s ease-in-out infinite;
}
.tile.speaking .buddy img {
  animation: talk 0.7s ease-in-out infinite;
}
.tile.elsewhere .buddy img {
  animation: tablet-breathe 5s ease-in-out infinite;
}
.tile .tile-label {
  position: absolute;
  bottom: 14px;
  left: 15px;
  right: 15px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
  font-size: 12px;
}
.tile-label .name {
  background: #f7f6ecdc;
  padding: 6px 10px;
  border-radius: 20px;
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.tile.has-video .name {
  background: #222b27a6;
  color: #fff;
}
.tile-label .attention {
  font-size: 10px;
  background: #faf8eac4;
  padding: 5px 8px;
  border-radius: 20px;
  white-space: nowrap;
  color: #727d57;
}
.tile.has-video .attention {
  display: none;
}
.tiles.solo .tile {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 155px;
  height: 112px;
  pointer-events: auto;
  border: 3px solid #faf9ef;
  box-shadow: 0 4px 16px #52583a20;
  border-radius: 17px;
}
.tiles.solo .tile .tile-label {
  bottom: 7px;
  left: 7px;
  right: 7px;
  font-size: 10px;
}
.tiles.solo .tile .attention {
  display: none;
}
.tiles.solo .tile .name {
  padding: 3px 7px;
}
.tiles[data-count="3"] .tile:first-child {
  grid-column: 1/-1;
}
.tiles[data-count="5"],
.tiles[data-count="6"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tiles[data-count="7"],
.tiles[data-count="8"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.enable-sound,
.call-banner {
  position: absolute;
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  background: #fbf9edf0;
  border: 1px solid #d4d9bd;
  border-radius: 15px;
  padding: 12px 18px;
  font-size: 13px;
  text-align: center;
  max-width: 90%;
  box-shadow: var(--shadow);
}
.call-banner {
  top: auto;
  bottom: 18px;
  pointer-events: none;
}
.chat {
  background: #faf9f2;
  border: 1px solid #e3e4d5;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.chat-heading {
  padding: 22px 20px 18px;
  border-bottom: 1px solid #ececdf;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-heading h2 {
  font-size: 15px;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-dot {
  height: 5px;
  width: 5px;
  background: #c9cfb0;
  border-radius: 50%;
}
.messages {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 19px 16px;
  flex: 1;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #d5d9c6 transparent;
}
.chat-empty {
  font-size: 13px;
  text-align: center;
  line-height: 1.8;
  color: #a2a38e;
  padding-top: 28px;
}
.message {
  margin-bottom: 15px;
  animation: message-in 0.28s ease-out;
  max-width: 93%;
  width: fit-content;
}
.message.mine {
  margin-left: auto;
}
.message-meta {
  font-size: 10px;
  color: #949981;
  margin-bottom: 5px;
  padding: 0 4px;
}
.message.mine .message-meta {
  text-align: right;
}
.message-body {
  border-radius: 14px 14px 14px 3px;
  background: #edeedf;
  padding: 10px 13px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: #555e45;
}
.message.mine .message-body {
  border-radius: 14px 14px 3px 14px;
  background: #e1e8d2;
  color: #4c6036;
}
.chat-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 0 13px 6px;
  border: 1px solid #dfe2d1;
  border-radius: 14px;
  padding: 6px;
  background: #fffdf6;
}
.chat-form textarea {
  border: 0;
  background: transparent;
  resize: none;
  outline: 0;
  flex: 1;
  min-width: 0;
  padding: 7px 6px;
  font-size: 13px;
  line-height: 1.5;
  max-height: 120px;
}
.chat-form textarea::placeholder {
  color: #a0a48f;
}
.chat-form textarea:focus-visible {
  outline: 0;
}
.chat-form:focus-within {
  border-color: #aeb68c;
}
.send-message {
  width: 33px;
  height: 33px;
  min-width: 33px;
  background: #6e7e51;
  border-radius: 10px;
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
}
.chat-footnote {
  display: block;
  text-align: center;
  font-size: 9px;
  color: #aaad99;
  margin: 6px 6px 13px;
}
.call-bottom {
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 100px;
  align-items: center;
}
.call-controls {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #dfdfd0;
  background: #faf8efc4;
  border-radius: 22px;
}
.control {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 11px;
  background: transparent;
  border-radius: 12px;
  min-width: 55px;
  min-height: 55px;
}
.control:hover {
  background: #e7ead8;
}
.control-icon {
  width: 21px;
  height: 21px;
  display: block;
}
.control-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.control-label {
  font-size: 10px;
  white-space: nowrap;
}
.control[aria-pressed="false"]:is(#mic-button, #camera-button) {
  background: #eee4db;
  color: #92705b;
}
.control[aria-pressed="true"]#lock-button {
  background: #e4e6d1;
  color: #6a764f;
}
.control.leave {
  color: #ab7565;
}
.control.leave:hover {
  background: #efe2d8;
}
.control-divider {
  height: 27px;
  width: 1px;
  background: #e0e2d4;
  margin: 0 3px;
}
.bell-wrap {
  position: absolute;
  right: 21px;
  top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.bell-wrap > span {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #959782;
  transform: rotate(-5deg);
}
.bell {
  background: none;
  width: 73px;
  height: 90px;
  padding: 0;
  transform-origin: 50% 10%;
  border-radius: 15px;
  position: relative;
}
.bell img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px #5b432126);
}
.bell:hover {
  transform: rotate(7deg);
}
.bell.ringing {
  animation: ring 1.1s ease-in-out;
}
.bell:disabled {
  opacity: 0.65;
  cursor: default;
}
.bell.ringing:disabled {
  opacity: 1;
}
.mobile-only {
  display: none;
}
.toast {
  pointer-events: none;
  position: fixed;
  bottom: max(25px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: #424c35;
  color: #fffced;
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 8px 40px #3c452333;
  font-size: 13px;
  max-width: min(90vw, 540px);
  line-height: 1.5;
  text-align: center;
  animation: toast-in 0.25s ease-out;
}
.modal {
  background: #f8f5eb;
  border: 1px solid #daddca;
  border-radius: 25px;
  padding: 37px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 24px 100px #30362329;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: #3d483453;
  backdrop-filter: blur(6px);
}
.modal[open] {
  animation: modal-in 0.25s ease-out;
}
.modal h2 {
  font-size: 29px;
  margin: 8px 0 12px;
}
.modal p {
  font-size: 14px;
  margin-bottom: 20px;
}
.modal label {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.modal input {
  width: 100%;
  background: #fffdf4;
  border: 1px solid #d4dac0;
  border-radius: 12px;
  padding: 13px 15px;
  outline-offset: 2px;
  min-width: 0;
}
.modal .primary {
  width: 100%;
  margin-top: 12px;
}
.modal .fine-print {
  font-size: 11px;
  margin: 16px 0;
  color: #92967e;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: transparent;
  padding: 8px;
  font-size: 25px;
  font-weight: 300;
  color: #939981;
}
.input-row {
  display: flex;
  gap: 8px;
}
.settings-section {
  border-top: 1px solid #dfe2d0;
  margin-top: 24px;
  padding-top: 22px;
}
.settings-section h3 {
  margin-bottom: 10px;
}
.settings-section p {
  font-size: 12px;
}
.help-steps {
  border-top: 1px solid #dfe2d0;
}
.help-steps summary {
  padding: 14px 0;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.help-steps ol {
  padding-left: 22px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}
.help-steps li + li {
  margin-top: 8px;
}
.app-help .settings-section p,
.app-help .help-steps p {
  font-size: 14px;
}
.text-button {
  padding: 8px 0;
  background: transparent;
  text-decoration: underline;
  font-size: 12px;
}
.danger-text {
  color: #ad7663;
}
.manage-friend {
  padding: 10px 0;
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}
.manage-friend > span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
.manage-friend button {
  background: #e9ecde;
  border-radius: 9px;
  padding: 8px;
  font-size: 10px;
}
.manage-friend button.remove {
  background: transparent;
  color: #9b8272;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  margin-top: 23px;
}
.modal .dialog-actions .primary {
  margin: 0;
  width: auto;
  flex: 1;
  justify-content: center;
}
.dialog-actions .soft-button {
  flex: 1;
  white-space: normal;
}
.form-error {
  color: #a25a49 !important;
  font-size: 12px !important;
}
.unread {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 50%;
  background: #7f8c59;
  color: white;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.noscript {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 1000;
  margin: 0;
  border-radius: 16px;
  background: #fffdf5;
  color: #343b2d;
  box-shadow: 0 4px 24px #343b2d30;
  text-align: center;
  padding: 30px;
}
.icon-button {
  background: transparent;
  padding: 4px 8px;
  font-size: 23px;
  color: #889171;
}
.offline .connection {
  color: #a87e5c;
}
@keyframes breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.013, 1.008);
  }
}
/* Two soft breaths and a slow sway, pivoting near the companion's feet. */
@keyframes waiting-companion {
  0%,
  100% {
    transform: translateY(-6px) rotate(-1.8deg) scale(1);
  }
  25%,
  75% {
    transform: translateY(-12px) rotate(0deg) scale(1.015, 1.025);
  }
  50% {
    transform: translateY(-6px) rotate(1.8deg) scale(1);
  }
}
@keyframes talk {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}
@keyframes tablet-breathe {
  0%,
  100% {
    transform: rotate(-1deg);
  }
  50% {
    transform: translateY(-3px) rotate(1deg);
  }
}
@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  12% {
    transform: rotate(21deg);
  }
  26% {
    transform: rotate(-19deg);
  }
  40% {
    transform: rotate(15deg);
  }
  55% {
    transform: rotate(-11deg);
  }
  73% {
    transform: rotate(6deg);
  }
  88% {
    transform: rotate(-3deg);
  }
}
@keyframes room-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tile-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes invite-glow {
  0% {
    filter: drop-shadow(0 0 0 #d7dca100);
  }
  40% {
    filter: drop-shadow(0 0 25px #d7dca1);
  }
  100% {
    filter: drop-shadow(0 0 0 #d7dca100);
  }
}
@media (min-width: 1600px) {
  .home {
    padding-top: 40px;
  }
  .home-companion {
    height: 265px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding: 0 30px;
    height: 86px;
  }
  .call {
    padding: 15px 30px;
  }
  .call-body {
    grid-template-columns: minmax(0, 1fr) 265px;
    height: calc(100dvh - 280px);
  }
  .bell-wrap > span {
    display: none;
  }
  .bell-wrap {
    right: 3px;
  }
  .call-heading h1 {
    max-width: calc(100vw - 340px);
  }
  .control {
    padding: 8px;
  }
  .home {
    padding-top: 0;
  }
}
@media (max-width: 760px) {
  .topbar {
    height: 78px;
    padding: 0 23px;
  }
  .wordmark {
    font-size: 32px;
  }
  .profile-button {
    font-size: 12px;
  }
  .home {
    max-width: 560px;
    padding: 0 24px 30px;
  }
  .home-companion {
    height: 228px;
  }
  .home-companion img {
    height: 210px;
  }
  .companion-note {
    right: 10px;
    max-width: 92px;
    font-size: 13px;
    top: 90px;
  }
  .home h1 {
    font-size: 33px;
  }
  .home #home-heading p {
    font-size: 14px;
  }
  .composer {
    margin-top: 26px;
  }
  .composer textarea {
    font-size: 16px;
    padding: 22px 19px 6px;
  }
  .composer textarea::placeholder {
    font-size: 13px;
  }
  .start-button {
    padding-left: 20px;
    padding-right: 20px;
  }
  .friends-section {
    margin-top: 38px;
  }
  .home-footer {
    margin-top: 35px;
  }
  .home.has-invite .home-companion {
    height: 130px;
  }
  .home.has-invite .home-companion img {
    height: 132px;
  }
  .invitation {
    padding-top: 19px;
  }
  .call {
    padding: 8px 14px 0;
  }
  .call-heading {
    margin: 0 7px 17px;
  }
  .call-heading h1 {
    font-size: 23px;
    max-width: calc(100vw - 153px);
  }
  .call-heading-actions {
    gap: 0;
  }
  .call-heading-actions .soft-button {
    font-size: 11px;
    padding: 10px;
  }
  .time-left {
    display: none;
  }
  .call-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .call-body {
    display: block;
    height: calc(100dvh - 263px);
    min-height: 300px;
  }
  .stage {
    height: 100%;
    border-radius: 22px;
  }
  .waiting img {
    height: 240px;
    max-height: 46%;
  }
  .waiting {
    padding: 16px 20px 72px;
  }
  .waiting h2 {
    font-size: 23px;
    max-width: 285px;
    margin: auto;
  }
  .waiting p {
    font-size: 12px;
  }
  .waiting .eyebrow {
    font-size: 8px;
  }
  .waiting .soft-button {
    padding: 9px 13px;
    font-size: 12px;
  }
  .tiles.solo .tile {
    width: 108px;
    height: 83px;
    right: 12px;
    bottom: 12px;
    border-width: 2px;
  }
  .chat {
    position: fixed;
    z-index: 15;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    height: 65dvh;
    max-height: 650px;
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 -15px 80px #3039231a;
    visibility: hidden;
  }
  .chat.open {
    transform: translateY(0);
    visibility: visible;
  }
  .chat-heading {
    padding: 17px 19px;
  }
  .chat-form textarea {
    font-size: 16px;
  }
  .chat-footnote {
    font-size: 10px;
  }
  .message-body {
    font-size: 14px;
  }
  .message-meta {
    font-size: 11px;
  }
  .mobile-only {
    display: flex;
  }
  .call-bottom {
    justify-content: flex-start;
    min-height: 101px;
    padding: 9px 0 max(9px, env(safe-area-inset-bottom));
  }
  .call-controls {
    gap: 0;
    padding: 7px;
    border-radius: 19px;
  }
  .control {
    min-width: 43px;
    min-height: 52px;
    padding: 7px 8px;
    gap: 5px;
  }
  .control-label {
    font-size: 8px;
  }
  .control-icon {
    width: 19px;
    height: 19px;
  }
  .control-divider {
    margin: 0 3px;
  }
  .bell-wrap {
    right: 1px;
    top: 6px;
  }
  .bell {
    width: 56px;
    height: 77px;
  }
  .tile .tile-label {
    left: 8px;
    right: 8px;
    bottom: 9px;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
  }
  .tile-label .name {
    max-width: 100%;
  }
  .tile-label .attention {
    font-size: 8px;
  }
  .tiles {
    gap: 6px;
    padding: 7px;
  }
  .tiles[data-count="2"] {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .tiles[data-count="3"] {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .tiles[data-count="5"],
  .tiles[data-count="6"],
  .tiles[data-count="7"],
  .tiles[data-count="8"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile {
    border-radius: 15px;
  }
  .buddy img {
    max-height: 80%;
    max-width: 65%;
  }
  .modal {
    padding: 31px 26px;
  }
  .modal h2 {
    font-size: 27px;
  }
  .connection {
    max-width: 86px;
    font-size: 10px;
  }
  .profile-button #profile-name {
    max-width: 120px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }
  .friend-copy span {
    max-width: 230px;
  }
  .call-banner {
    font-size: 11px;
    padding: 10px 12px;
    bottom: 10px;
  }
  .call:has(.chat.open) .stage {
    filter: brightness(0.9);
  }
}
@media (max-width: 380px) {
  .control {
    padding: 7px 6px;
    min-width: 38px;
  }
  .bell {
    width: 47px;
  }
  .prejoin {
    margin-left: 0;
    margin-right: 0;
  }
  .small-control {
    padding: 8px 9px;
  }
  .home {
    padding-left: 20px;
    padding-right: 20px;
  }
  .companion-note {
    right: -5px;
  }
  .call-controls {
    padding: 5px;
  }
  .call-heading h1 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Keep the closed mobile sheet out of scrollable overflow. */
@media (max-width: 760px) {
  .chat {
    display: none;
    transform: none;
    visibility: visible;
  }
  .chat.open {
    display: flex;
    animation: chat-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .control-label {
    font-size: 10px;
  }
  .call-bottom {
    padding-right: 57px;
  }
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 761px) and (max-height: 550px) {
  .topbar {
    height: 55px;
  }
  .call {
    padding-top: 3px;
  }
  .call-heading {
    margin-bottom: 12px;
  }
  .call-heading h1 {
    font-size: 23px;
  }
  .call-body {
    height: calc(100dvh - 210px);
    min-height: 180px;
  }
  .call-bottom {
    min-height: 80px;
  }
  .waiting {
    flex-direction: row;
    gap: 16px;
    padding: 15px;
  }
  .waiting img {
    height: 160px;
    max-height: 95%;
    max-width: 32%;
  }
  .waiting-copy .eyebrow {
    margin: 0 0 8px;
  }
  .waiting h2 {
    font-size: 20px;
  }
  .waiting p {
    font-size: 11px;
    margin: 6px 0 10px;
  }
  .waiting .soft-button {
    min-height: 35px;
    padding: 7px 10px;
    font-size: 11px;
  }
  .chat-heading {
    padding: 11px 15px;
  }
  .chat-footnote {
    display: none;
  }
  .chat-form {
    margin-bottom: 10px;
  }
  .tiles.solo .tile {
    width: 95px;
    height: 70px;
    right: 10px;
    bottom: 10px;
  }
  .bell {
    height: 73px;
  }
  .control {
    min-height: 49px;
    padding: 6px 8px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .waiting {
    padding: 14px 14px 90px;
  }
  .waiting img {
    height: 85px;
    max-height: 85px;
    flex-shrink: 0;
  }
  .waiting-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
    margin: 10px 0 8px;
  }
  .waiting h2 {
    font-size: 19px;
  }
  .waiting p {
    font-size: 11px;
    line-height: 1.45;
    margin: 8px 0 0;
  }
  .waiting .soft-button {
    display: none;
  }
}

.account-code-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
#account-code {
  font-size: 24px;
  letter-spacing: 0.15em;
  font-variant-numeric: tabular-nums;
}
#recover-profile-button {
  display: block;
  margin-top: 8px;
}
#account-email {
  font-size: 16px;
}
