:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #fff5ed;
  background: #171018;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(240, 171, 113, .22), transparent 40%),
    linear-gradient(180deg, rgba(15, 9, 17, .48), rgba(25, 14, 25, .9)),
    url('./assets/generated/bar-window-night.webp') center / cover fixed;
}

body::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #f4b181, #e86f66 42%, #8c5d8f);
}

button,
input,
select,
textarea { font: inherit; }

button {
  min-height: 44px;
  border: 1px solid #f4a777;
  border-radius: 12px;
  background: linear-gradient(135deg, #eb876e, #d85e62);
  box-shadow: 0 8px 20px rgba(112, 35, 45, .24);
  color: #fffaf5;
  padding: 11px 18px;
  font-weight: 750;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

button:hover:not(:disabled) { background: linear-gradient(135deg, #f4977a, #de676b); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0 5px; color: rgba(255, 244, 235, .86); font-size: 13px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.consent input { display: inline-block; flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: #e86f66; }
.consent span { min-width: 0; }
.consent a { color: #ffd1ab; }
.save-profile { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; line-height: 1.5; }
.save-profile input { display: inline-block; flex: 0 0 20px; width: 20px; min-height: 20px; height: 20px; margin: 1px 0 0; padding: 0; accent-color: #e86f66; }
.privacy-summary { margin: 4px 0 12px; padding: 12px; border: 1px solid rgba(244, 177, 129, .24); border-radius: 12px; background: rgba(244, 177, 129, .08); }
.privacy-summary b { color: #ffd1ab; font-size: 13px; }
.privacy-summary p { margin: 5px 0 0; color: rgba(255, 244, 235, .72); font-size: 12px; line-height: 1.6; }
.validation-error { margin: 4px 0 8px; color: #ffb5ad; font-size: 12px; font-weight: 700; }
.terms-copy { margin: 0 0 14px; color: rgba(255, 244, 235, .62); font-size: 12px; line-height: 1.55; }
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible { outline: 3px solid #f4b181; outline-offset: 3px; }
button:disabled { cursor: default; opacity: .48; }

main {
  width: min(600px, 100%);
  margin: 0 auto;
  padding: 26px 18px 64px;
}

.network-banner { position: sticky; top: 8px; z-index: 20; width: min(480px, 100%); min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 12px; padding: 9px 12px; border: 1px solid rgba(244, 177, 129, .58); border-radius: 12px; background: rgba(43, 28, 36, .97); box-shadow: 0 10px 30px rgba(8, 4, 8, .36); color: #fff5ed; font-size: 13px; }
.network-banner button { flex: 0 0 auto; min-height: 44px; }

.brand {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  align-items: center;
  margin: 0 auto 24px;
  width: min(480px, 100%);
}

.brand p {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: rgba(255, 244, 235, .82);
  font-size: 14px;
  text-align: center;
}

.brand-wave {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 50%;
  background: rgba(255, 229, 203, .94);
  border: 1px solid rgba(244, 177, 129, .78);
  box-shadow: 0 10px 24px rgba(20, 8, 16, .22);
}

.brand-wave i {
  width: 3px;
  border-radius: 2px;
  background: #b64c58;
}

.brand-wave i:nth-child(1),
.brand-wave i:nth-child(5) { height: 12px; }
.brand-wave i:nth-child(2),
.brand-wave i:nth-child(4) { height: 24px; }
.brand-wave i:nth-child(3) { height: 32px; }

.eyebrow {
  display: block;
  color: #f4b181;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 46px;
  color: #fff4eb;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

p { line-height: 1.65; }

.surface {
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 220, 183, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(60, 36, 38, .88), rgba(23, 15, 27, .94));
  color: #fff5ed;
  box-shadow: 0 18px 48px rgba(8, 4, 8, .32);
  backdrop-filter: blur(12px);
}

.hidden { display: none !important; }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0 22px;
}

label {
  color: rgba(255, 244, 235, .88);
  font-size: 12px;
  font-weight: 750;
}

.grid label > small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 244, 235, .64);
  font-size: 10px;
  font-weight: 550;
  line-height: 1.45;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  border: 1px solid rgba(255, 214, 166, .28);
  border-radius: 12px;
  background: rgba(255, 249, 244, .09);
  color: #fff5ed;
  padding: 10px 12px;
  font-size: 16px;
}
textarea { resize: vertical; padding: 11px 12px; }

select option { color: #21151c; background: #fff7f0; }

small,
.note {
  display: block;
  color: rgba(255, 244, 235, .68);
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
}

#join,
.full-width { width: 100%; }

.queue-surface { text-align: center; }
.queue-surface h2 { margin-bottom: 12px; }
.search-radar { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin: 8px auto; }
.search-radar i { position: absolute; inset: 10px; border: 1px solid rgba(244, 177, 129, .42); border-radius: 50%; animation: radar 2s ease-out infinite; }
.search-radar i:nth-child(2) { animation-delay: 1s; }
.search-radar span { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: rgba(232, 111, 102, .24); color: #ffd1ab; font-size: 28px; }
.queue-elapsed { margin: 4px 0; color: #f4b181; font-size: 15px; font-weight: 800; }
.queue-expectation { margin: 6px auto 12px; color: rgba(255, 244, 235, .68); font-size: 12px; }
@keyframes radar { from { transform: scale(.45); opacity: .9; } to { transform: scale(1); opacity: 0; } }

.entry-mode { display: grid; gap: 9px; margin: 0 0 16px; padding: 0; border: 0; }
.entry-mode legend { margin-bottom: 8px; color: rgba(255, 244, 235, .82); font-size: 12px; font-weight: 750; }
.mode-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid rgba(255, 214, 166, .18); border-radius: 14px; background: rgba(255, 249, 244, .06); cursor: pointer; transition: border-color .16s ease, background .16s ease; }
.mode-card.selected { border-color: rgba(244, 177, 129, .85); background: rgba(244, 177, 129, .12); }
.mode-card input { display: inline-block; flex: 0 0 18px; width: 18px; min-height: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: #f07f73; }
.mode-card span { display: grid; gap: 3px; }
.mode-card b { font-size: 14px; }
.mode-card small { margin: 0; font-weight: 500; }
.mode-card em { margin-left: 5px; color: #f4b181; font-size: 11px; font-style: normal; }

.status {
  min-height: 24px;
  color: #f4b181;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.voice-wave {
  height: 142px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.voice-wave i {
  display: block;
  width: 7px;
  height: 30px;
  border-radius: 4px;
  background: #e86f66;
  animation: wave 1.1s ease-in-out infinite;
}

.voice-wave i:nth-child(2),
.voice-wave i:nth-child(4) { animation-delay: .16s; background: #277c71; }
.voice-wave i:nth-child(3) { animation-delay: .32s; background: #5e6ca8; }

.group-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: -4px 0 12px; }
.group-member { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid rgba(244, 177, 129, .32); border-radius: 999px; background: rgba(244, 177, 129, .10); color: #fff5ed; font-size: 12px; font-weight: 700; }
.group-member::before { content: "〰"; color: #f4b181; }

@keyframes wave { 50% { height: 82px; } }
@media (prefers-reduced-motion: reduce) { .voice-wave i { animation: none; } }

.topic-label {
  margin: 0 0 6px;
  color: #f4b181;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.topic-label.left { text-align: left; }

#room h2,
#ringing h2,
#decision h2 { text-align: center; }

.meter {
  height: 7px;
  margin: 24px 0 18px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 244, 235, .14);
}

.meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f4b181, #e86f66);
  transition: width 250ms linear;
}

.connection,
.rtc-stats,
.decision-status,
.ringing-copy {
  min-height: 24px;
  margin: 10px 0;
  color: rgba(255, 244, 235, .72);
  font-size: 13px;
  text-align: center;
}

.rtc-stats {
  min-height: 18px;
  color: rgba(255, 244, 235, .54);
  font-size: 10px;
}

.rtc-diagnostic { min-height: 18px; margin: 2px 0; color: #ffd1ab; font-size: 11px; text-align: center; }
.membership-status { min-height: 22px; margin: -4px 0 4px; color: #f7cfaa; font-size: 12px; font-weight: 800; text-align: center; }

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.actions button { flex: 1 1 0; }
.secondary { border-color: rgba(255, 220, 183, .32); background: rgba(255, 249, 244, .08); box-shadow: none; color: #fff5ed; }
.secondary:hover:not(:disabled) { background: rgba(255, 249, 244, .16); }
.danger { border-color: rgba(235, 135, 110, .58); background: rgba(115, 42, 54, .86); box-shadow: none; }
.danger:hover:not(:disabled) { background: rgba(139, 50, 62, .96); }

#ringing { text-align: center; }
.ring-countdown { min-height: 22px; margin: 4px 0; color: #f4b181; font-size: 13px; font-weight: 800; }

.contact-avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 177, 129, .52);
  border-radius: 50%;
  background: linear-gradient(145deg, #f3b78d, #b85f67);
  color: #301924;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 20px;
  font-weight: 700;
}

.contact-avatar.large {
  width: 88px;
  height: 88px;
  margin: 14px auto 22px;
  font-size: 34px;
}

#decision > p:not(.decision-status) {
  margin: -8px 0 20px;
  color: rgba(255, 244, 235, .68);
  font-size: 13px;
  text-align: center;
}

.chat-surface { padding: 0; overflow: hidden; }

.contacts-surface { padding: 0; overflow: hidden; }

.contacts-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 220, 183, .15);
}

.contacts-header h2 { margin: 0; }
.contacts-header #find-new { flex: 0 0 auto; padding: 9px 12px; font-size: 13px; }

.search-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(244, 177, 129, .20);
  background: rgba(244, 177, 129, .10);
  color: #f7cfaa;
  font-size: 12px;
}

.search-banner .text-button { margin: 0; color: #f7cfaa; }

.contact-list { min-height: 180px; background: rgba(15, 10, 18, .26); }

.contact-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 220, 183, .11);
  border-radius: 0;
  background: rgba(255, 249, 244, .025);
  color: #fff5ed;
  padding: 12px 16px;
  text-align: left;
}

.contact-row:hover:not(:disabled) { background: rgba(255, 249, 244, .09); }
.contact-row .contact-avatar { grid-row: 1 / 3; }
.contact-row-copy { min-width: 0; }
.contact-row-name { display: block; overflow: hidden; font-size: 15px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.contact-row-preview { display: block; overflow: hidden; margin-top: 4px; color: rgba(255, 244, 235, .58); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.contact-row-meta { align-self: start; color: rgba(255, 244, 235, .48); font-size: 10px; }
.unread-badge { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: #e86f66; color: #fff; font-size: 10px; font-weight: 800; }
.offline-dot { color: rgba(255, 244, 235, .48); font-size: 11px; }

.empty-state {
  margin: 0;
  padding: 56px 20px;
  color: rgba(255, 244, 235, .55);
  font-size: 13px;
  text-align: center;
}

.chat-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 220, 183, .15);
}

.back-button {
  flex: 0 0 44px;
  width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: #f7cfaa;
  padding: 0;
  font-size: 34px;
  font-weight: 400;
}

.back-button:hover:not(:disabled) { background: rgba(255, 249, 244, .10); }

.contact-copy { min-width: 0; flex: 1 1 auto; }
.contact-copy h2 { overflow: hidden; margin: 0; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.contact-copy p { margin: 2px 0 0; color: #f4b181; font-size: 11px; line-height: 1.4; }
.chat-header #call { min-height: 44px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.safety-icon { flex: 0 0 44px; width: 44px; min-height: 44px; padding: 0; border-color: rgba(255, 220, 183, .24); background: rgba(255, 249, 244, .06); box-shadow: none; font-size: 24px; }

.contact-profile { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px; border-bottom: 1px solid rgba(255, 220, 183, .15); background: rgba(217, 154, 108, .055); }
.profile-photo-wrap { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(241, 189, 139, .42); border-radius: 22px; background: rgba(255, 249, 244, .06); }
.profile-photo { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-fallback { color: var(--copper-bright, #f4b181); font-family: Georgia, "Yu Mincho", serif; font-size: 30px; font-weight: 700; }
.profile-sheet-copy { min-width: 0; }
.membership-badge { display: inline-flex; padding: 3px 8px; border: 1px solid rgba(241, 189, 139, .38); border-radius: 999px; color: #f7cfaa; font-size: 10px; font-weight: 800; }
.profile-note { margin: 8px 0; color: rgba(255, 244, 235, .86); font-size: 13px; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 0; color: rgba(255, 244, 235, .64); font-size: 11px; }
.profile-facts div { display: inline-flex; gap: 4px; }
.profile-facts dt { font-weight: 800; }
.profile-facts dd { margin: 0; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.profile-tags span { padding: 3px 7px; border-radius: 999px; background: rgba(255, 249, 244, .08); color: rgba(255, 244, 235, .72); font-size: 10px; }

.chat-banner {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(244, 177, 129, .18);
  background: rgba(244, 177, 129, .10);
  color: #f7cfaa;
  font-size: 12px;
  text-align: center;
}

.messages {
  height: min(52vh, 420px);
  min-height: 280px;
  overflow-y: auto;
  padding: 18px 16px;
  background:
    linear-gradient(rgba(20, 12, 22, .92), rgba(20, 12, 22, .92)),
    url('./assets/generated/soundwave-paper-texture.webp') center / 260px;
}

.message {
  width: fit-content;
  max-width: min(78%, 360px);
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.message span { white-space: pre-wrap; }
.message time { display: block; margin-top: 3px; color: rgba(255, 244, 235, .46); font-size: 9px; text-align: right; }
.message.expiring { opacity: var(--expiry-opacity, .72); transition: opacity 160ms ease; }
.message-expiry { display: block; margin-top: 5px; color: #ffd1ab; font-size: 9px; font-weight: 750; text-align: right; }
.message.them { border: 1px solid rgba(255, 220, 183, .18); background: rgba(255, 249, 244, .10); }
.message.me { margin-left: auto; border: 1px solid rgba(244, 177, 129, .48); background: rgba(197, 83, 85, .36); }
.message.system { max-width: 100%; margin: 14px auto; padding: 3px 10px; color: rgba(255, 244, 235, .52); font-size: 11px; text-align: center; }
.message-retention-note { margin: 0; padding: 8px 16px; border-bottom: 1px solid rgba(255, 220, 183, .12); background: rgba(244, 177, 129, .06); color: rgba(255, 244, 235, .58); font-size: 10px; line-height: 1.5; text-align: center; }

form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 220, 183, .15);
  background: rgba(18, 11, 20, .72);
}

form input { margin: 0; }
form button { flex: 0 0 auto; }

.text-button {
  display: block;
  min-height: 44px;
  margin: 2px auto 10px;
  border: 0;
  background: transparent;
  color: #f4b181;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
}

.text-button:hover:not(:disabled) { background: rgba(244, 177, 129, .12); }
.safety-button { display: block; min-height: 44px; margin: 12px auto 0; border-color: rgba(255, 220, 183, .32); background: transparent; box-shadow: none; color: #ffd1ab; }
.outcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

dialog { width: min(460px, calc(100% - 24px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid rgba(244, 177, 129, .38); border-radius: 18px; background: #281b26; color: #fff5ed; padding: 0; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); }
dialog::backdrop { background: rgba(8, 4, 8, .74); }
dialog form { display: block; padding: 22px; background: transparent; }
dialog h2 { margin-bottom: 8px; }
dialog p { color: rgba(255, 244, 235, .7); font-size: 12px; }
dialog fieldset { display: grid; gap: 8px; margin: 16px 0; padding: 14px; border: 1px solid rgba(255, 220, 183, .2); border-radius: 12px; }
dialog legend { padding: 0 6px; font-size: 13px; font-weight: 800; }
dialog label { min-height: 44px; display: flex; align-items: center; gap: 9px; }
dialog label input { flex: 0 0 20px; width: 20px; min-height: 20px; margin: 0; }
.dialog-actions { display: grid; gap: 8px; }

.policy-page main { width: min(760px, 100%); }
.policy-brand { width: min(680px, 100%); }
.policy-surface section { padding-top: 14px; scroll-margin-top: 20px; }
.policy-surface li, .policy-surface dd { color: rgba(255, 244, 235, .76); line-height: 1.7; }
.policy-surface dt { margin-top: 12px; color: #ffd1ab; font-weight: 800; }
.policy-surface dd { margin: 4px 0 0; }
.policy-version { color: #f4b181; font-weight: 800; }
.policy-back { display: inline-flex; min-height: 44px; align-items: center; color: #ffd1ab; font-weight: 800; }

@media (max-width: 520px) {
  main { padding: 20px 12px 36px; }
  .surface { padding: 22px 18px; }
  .chat-surface { padding: 0; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  h1 { font-size: 42px; }
  .voice-wave { height: 120px; }
  .chat-header { padding: 12px; }
  .chat-header #call { max-width: 102px; white-space: normal; line-height: 1.2; }
  .messages { height: 50vh; min-height: 250px; }
  #setup {
    padding-bottom: 76px;
    /* A filtered ancestor becomes the containing block for position: fixed in
       Chrome, which pushed the primary action below a 390x844 viewport. */
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  #join { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5; width: auto; max-width: 354px; margin: 0 auto; box-shadow: 0 10px 30px rgba(8, 4, 8, .45); }
  .contacts-header #find-new { min-height: 44px; }
  .outcome-actions { grid-template-columns: 1fr; }
}

/* 2026-07 privacy-first nearby voice bar visual system. */
:root {
  --ink: #160f14;
  --ink-soft: #24171f;
  --panel: rgba(33, 21, 28, .92);
  --panel-raised: rgba(48, 29, 35, .92);
  --line: rgba(225, 173, 133, .26);
  --line-strong: rgba(225, 173, 133, .56);
  --copper: #d99a6c;
  --copper-bright: #f1bd8b;
  --rose: #d5666e;
  --cream: #fff7ef;
  --muted: rgba(255, 240, 228, .68);
  --shadow: 0 28px 80px rgba(5, 2, 6, .44);
}

body {
  background:
    radial-gradient(circle at 72% 12%, rgba(171, 91, 92, .14), transparent 34%),
    linear-gradient(90deg, rgba(12, 8, 11, .18), rgba(14, 8, 13, .64) 52%, rgba(14, 8, 13, .88)),
    url('./assets/generated/nearby-voice-bar-desktop-v1.webp') left center / cover fixed;
}

body::before {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 30;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--copper-bright), var(--rose) 54%, #745377);
  box-shadow: 0 1px 18px rgba(217, 154, 108, .25);
}

main {
  width: min(636px, 100%);
  margin-right: clamp(28px, 7vw, 128px);
  padding: 34px 18px 72px;
}

.brand {
  position: relative;
  grid-template-columns: 58px 1fr;
  width: min(520px, 100%);
  margin-bottom: 22px;
  padding: 4px 2px 0;
}

.brand::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.brand-wave {
  width: 58px;
  height: 58px;
  background: linear-gradient(145deg, #fff5e8, #e9c19e);
  border-color: rgba(255, 228, 198, .85);
  box-shadow: 0 12px 32px rgba(8, 3, 7, .36), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.brand-wave i { background: #8e3f4c; }
.eyebrow { color: var(--copper-bright); letter-spacing: .18em; }
h1 { color: var(--cream); font-size: 48px; letter-spacing: .04em; text-shadow: 0 2px 18px rgba(0, 0, 0, .32); }
.brand p { color: rgba(255, 242, 230, .8); font-size: 14px; letter-spacing: .03em; }

.brand-promises {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
}

.brand-promises span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(225, 173, 133, .22);
  border-radius: 999px;
  background: rgba(19, 12, 17, .48);
  color: rgba(255, 241, 228, .76);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .04em;
}

.brand-promises span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper-bright);
  box-shadow: 0 0 0 3px rgba(217, 154, 108, .12);
}

.surface {
  border-color: var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 34%),
    linear-gradient(152deg, var(--panel-raised), var(--panel));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 245, 233, .06);
}

.surface h2 { color: var(--cream); }
.surface-intro {
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.setup-heading, .dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.setup-heading h2, .dialog-heading h2 { margin-bottom: 0; }
.beta-badge { display: inline-flex; margin-bottom: 5px; padding: 4px 9px; border: 1px solid rgba(225, 173, 133, .42); border-radius: 999px; color: var(--copper-bright); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.account-button { width: auto; min-width: 108px; }
.guest-progress { margin: 0 0 16px; color: rgba(255, 245, 237, .72); font-size: 13px; }
.account-dialog-body { padding: 22px; }
.account-dialog-body form { display: grid; gap: 12px; }
.account-dialog-body h3 { margin: 18px 0 0; }
.account-dialog-body p { line-height: 1.6; }
.account-dialog-body form > label,
.profile-fields-two > label { display: block; min-height: 0; }
.account-dialog-body form > label > input,
.profile-fields-two > label > input,
.profile-fields-two > label > select { flex: none; width: 100%; min-height: 44px; margin: 6px 0 0; padding: 10px 12px; }
.photo-editor { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; }
.photo-editor small { display: block; margin-top: 6px; color: rgba(255, 245, 237, .58); font-size: 10px; line-height: 1.5; }
.photo-editor .file-label { display: block; min-height: 0; }
.photo-editor input[type="file"] { width: 100%; min-height: 44px; margin-top: 6px; padding: 8px; font-size: 11px; }
.photo-editor .text-button { margin: 4px 0 0; }
.profile-fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-dialog-body textarea { width: 100%; margin-top: 6px; border: 1px solid rgba(225, 173, 133, .24); border-radius: 12px; background: rgba(255, 250, 246, .065); color: #fff5ed; }
.account-unlock { margin: 16px 0 4px; padding: 12px 14px; border: 1px solid rgba(225, 173, 133, .28); border-radius: 14px; background: rgba(217, 154, 108, .08); line-height: 1.6; }
.account-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: rgba(255, 245, 237, .58); font-size: 12px; }
.account-divider::before, .account-divider::after { content: ''; height: 1px; flex: 1; background: rgba(255, 245, 237, .14); }
.interest-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.interest-picker legend { grid-column: 1 / -1; }
.interest-picker label { display: flex; align-items: center; gap: 8px; min-height: 42px; }
.interest-picker input { width: 18px; min-height: 18px; margin: 0; padding: 0; accent-color: #e86f66; }

#setup h2::before,
#queue h2::before,
#room h2::before,
#ringing h2::before,
#decision h2::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  margin: 0 9px 6px 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper-bright), var(--rose));
}

input,
select {
  border-color: rgba(225, 173, 133, .24);
  background: rgba(255, 250, 246, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

input:hover,
select:hover { border-color: rgba(225, 173, 133, .44); }

input:focus-visible,
select:focus-visible {
  border-color: var(--copper-bright);
  background: rgba(255, 250, 246, .1);
}

button {
  border-color: rgba(247, 178, 133, .74);
  border-radius: 14px;
  background: linear-gradient(135deg, #a84250, #862d3d);
  box-shadow: 0 10px 26px rgba(108, 31, 46, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
  letter-spacing: .02em;
}

button:hover:not(:disabled) {
  border-color: #ffd0a5;
  background: linear-gradient(135deg, #b24f59, #923442);
  transform: translateY(-1px);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline-color: #ffd29f;
  box-shadow: 0 0 0 4px rgba(22, 15, 20, .86), 0 0 0 7px rgba(255, 210, 159, .86);
}

button:disabled {
  opacity: .52;
  filter: saturate(.58);
}

.secondary {
  border-color: rgba(225, 173, 133, .3);
  background: rgba(255, 249, 244, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.danger {
  border-color: rgba(231, 131, 109, .52);
  background: rgba(111, 42, 53, .78);
}

.privacy-summary {
  padding: 14px 15px;
  border-color: rgba(225, 173, 133, .3);
  background: linear-gradient(135deg, rgba(217, 154, 108, .1), rgba(111, 66, 93, .08));
}

.privacy-summary b::before {
  content: "◇";
  margin-right: 7px;
  color: var(--copper-bright);
}

.entry-sections { display: grid; gap: 14px; margin: 18px 0; }
.entry-section { margin: 0; padding: 14px; border: 1px solid rgba(225, 173, 133, .22); border-radius: 16px; background: rgba(255, 250, 246, .035); }
.entry-section legend { padding: 0 7px; color: var(--copper-bright); font-size: 13px; font-weight: 800; }
.entry-section .grid { margin: 2px 0 0; }
.entry-section .preference-grid { grid-template-columns: 1fr 1fr; }
.entry-confirmation { margin: 14px 0 8px; padding: 12px 14px; border: 1px solid rgba(225, 173, 133, .28); border-radius: 14px; background: rgba(217, 154, 108, .08); }
.entry-confirmation > b { color: var(--copper-bright); font-size: 12px; }
.entry-confirmation .consent { margin-top: 8px; }

.topic-area { margin: 0 auto 12px; padding: 12px 14px; border: 1px solid rgba(241, 189, 139, .3); border-radius: 16px; background: rgba(217, 154, 108, .08); }
.topic-area h2 { margin-bottom: 0; font-size: 19px; }
.topic-chip { display: block; min-height: 44px; margin: 0 auto 12px; padding: 8px 14px; border-color: rgba(225, 173, 133, .34); background: rgba(255, 249, 244, .07); box-shadow: none; color: var(--copper-bright); font-size: 13px; }
.call-notice { min-height: 24px; margin: 6px 0; color: rgba(255, 244, 235, .76); font-size: 13px; font-weight: 750; text-align: center; }
#room.ending-warning .call-notice { color: #ffd29f; }
#room.ending-countdown .call-notice { color: #ffb5ad; font-size: 16px; }
.extension-box { margin: 10px 0; padding: 10px; border: 1px solid rgba(225, 173, 133, .22); border-radius: 14px; background: rgba(19, 12, 17, .34); text-align: center; }
.extension-box button { width: 100%; }
.extension-box p { margin: 7px 0 0; color: rgba(255, 244, 235, .64); font-size: 11px; }
.room-safety-icon { margin: 12px auto 0; color: rgba(255, 244, 235, .64); }
.decision-countdown { min-height: 20px; margin: 8px 0 0; color: var(--copper-bright); font-size: 12px; text-align: center; }
.decision-notice { padding: 10px 16px; border-bottom: 1px solid rgba(244, 177, 129, .2); background: rgba(244, 177, 129, .1); color: #f7cfaa; font-size: 12px; }

.mode-card { border-radius: 16px; }
.mode-card.selected {
  border-color: rgba(241, 189, 139, .72);
  background: linear-gradient(135deg, rgba(217, 154, 108, .14), rgba(112, 67, 94, .1));
  box-shadow: inset 3px 0 0 var(--copper);
}

.network-banner {
  border-color: rgba(241, 189, 139, .52);
  background: rgba(35, 22, 29, .97);
  box-shadow: 0 16px 42px rgba(4, 2, 4, .5);
}

.queue-surface,
#ringing,
#decision { padding-block: 34px; }

.search-radar {
  width: 166px;
  height: 166px;
  margin-block: 12px;
}

.search-radar::before,
.search-radar::after {
  content: "";
  position: absolute;
  background: rgba(225, 173, 133, .18);
}

.search-radar::before { width: 1px; height: 100%; }
.search-radar::after { width: 100%; height: 1px; }
.search-radar span {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(241, 189, 139, .42);
  background: radial-gradient(circle, rgba(213, 102, 110, .3), rgba(213, 102, 110, .11));
  box-shadow: 0 0 40px rgba(213, 102, 110, .16);
}

.status,
.queue-elapsed,
.ring-countdown,
.topic-label { color: var(--copper-bright); }

.voice-wave {
  position: relative;
  height: 150px;
  margin: 4px 0;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at center, rgba(213, 102, 110, .1), transparent 58%),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, .025) 24px);
}

.voice-wave i {
  width: 5px;
  background: linear-gradient(180deg, var(--copper-bright), var(--rose));
  box-shadow: 0 0 18px rgba(213, 102, 110, .2);
}

.voice-wave i:nth-child(2),
.voice-wave i:nth-child(4) { background: linear-gradient(180deg, #c9aa83, #8a6a75); }
.voice-wave i:nth-child(3) { background: linear-gradient(180deg, #e3b07c, #8f607c); }

.meter { height: 6px; background: rgba(255, 244, 235, .1); }
.meter span { background: linear-gradient(90deg, var(--copper-bright), var(--rose), #8f607c); }

.rtc-stats {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 5px 9px;
  border: 1px solid rgba(225, 173, 133, .14);
  border-radius: 999px;
  background: rgba(11, 7, 10, .24);
  font-variant-numeric: tabular-nums;
}

.contact-avatar {
  border-color: rgba(241, 189, 139, .62);
  background: linear-gradient(145deg, #edc096, #a74e5c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 22px rgba(6, 2, 5, .25);
}

.contact-list { background: rgba(12, 8, 11, .32); }
.contact-row { transition: background .16s ease, box-shadow .16s ease; }
.contact-row:hover:not(:disabled) { background: rgba(225, 173, 133, .09); box-shadow: inset 3px 0 0 var(--copper); transform: none; }

.chat-header,
.contacts-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent);
}

.messages {
  background:
    radial-gradient(circle at 50% 10%, rgba(126, 76, 91, .09), transparent 36%),
    linear-gradient(rgba(17, 11, 16, .94), rgba(17, 11, 16, .94)),
    url('./assets/generated/soundwave-paper-texture.webp') center / 260px;
}

.message { border-radius: 14px 14px 14px 5px; }
.message.me { border-radius: 14px 14px 5px 14px; background: linear-gradient(135deg, rgba(171, 72, 83, .52), rgba(111, 58, 83, .5)); }
.message.them { background: rgba(255, 249, 244, .085); }

dialog {
  border-color: rgba(241, 189, 139, .44);
  border-radius: 22px;
  background: linear-gradient(150deg, #34212b, #1d141b);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .68), inset 0 1px 0 rgba(255, 255, 255, .06);
}

dialog::backdrop { background: rgba(8, 4, 8, .82); backdrop-filter: blur(5px); }

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 50% -10%, rgba(240, 171, 113, .18), transparent 36%),
      linear-gradient(180deg, rgba(15, 9, 17, .5), rgba(18, 11, 19, .92)),
      url('./assets/generated/bar-window-night.webp') center / cover fixed;
  }

  main { margin-inline: auto; }
}

@media (max-width: 520px) {
  main { padding: 16px 12px calc(38px + env(safe-area-inset-bottom)); }
  .brand { grid-template-columns: 48px 1fr; margin-bottom: 18px; }
  .brand-wave { width: 48px; height: 48px; }
  h1 { font-size: 40px; }
  .brand p { margin-top: 7px; font-size: 13px; }
  .brand-promises { gap: 5px; margin-top: 9px; }
  .brand-promises span { min-height: 24px; padding: 3px 7px; font-size: 9px; }
  .surface { border-radius: 20px; }
  .surface-intro { margin-bottom: 16px; }
  .setup-heading { align-items: center; }
  .account-button { min-width: 100px; padding-inline: 12px; }
  .interest-picker { grid-template-columns: 1fr; }
  .profile-fields-two { grid-template-columns: 1fr; }
  .contact-profile { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
  .contact-profile .profile-photo-wrap { width: 68px; height: 68px; border-radius: 18px; }
  .entry-section .preference-grid { grid-template-columns: 1fr; }
  #setup { padding-bottom: 82px; }
  #join { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .queue-surface,
  #ringing,
  #decision { padding-block: 26px; }
  .search-radar { width: 144px; height: 144px; }
  .voice-wave { height: 122px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (forced-colors: active) {
  .surface,
  .privacy-summary,
  .mode-card,
  .contact-row,
  dialog { border: 1px solid CanvasText; }
  .brand-promises span::before { background: CanvasText; }
}
