@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-0.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-1.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-2.ttf) format("truetype");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-3.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-4.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/font-5.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-6.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-7.ttf) format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/font-8.ttf) format("truetype");
}
:root {
  color-scheme: dark;
  --bg: #0a0e18;
  --panel: #111827;
  --line: #ffffff0e;
  --text: #eef2fb;
  --muted: #8e9bb2;
  --blue: #91b5ff;
  --accent: #4a78f2;
  --ui-scale: 1;
  --icon: 15px;
  --nav-height: 64px;
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
body.in-app {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  min-height: 32px;
}
button:hover {
  background: #ffffff0a;
  color: var(--blue);
}
button:active {
  transform: scale(0.96);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: calc(var(--icon) * var(--ui-scale));
  height: calc(var(--icon) * var(--ui-scale));
  flex-shrink: 0;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: -0.04em;
}
input,
select,
textarea {
  color: var(--text);
  background: #101725;
  border: 1px solid #ffffff17;
  border-radius: 9px;
  padding: 12px 13px;
  min-width: 0;
  width: 100%;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #91b5ff70;
  box-shadow: 0 0 0 3px #91b5ff0c;
}
input::placeholder,
textarea::placeholder {
  color: #8290a8;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
input[type="range"] {
  padding: 0;
  accent-color: var(--blue);
}
.primary {
  background: var(--accent);
  color: white;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  padding: 10px 17px;
  font-weight: 600;
  box-shadow: 0 4px 18px #2652b919;
}
.primary:hover {
  background: #5a85ff;
  color: white;
  box-shadow: 0 6px 24px #2652b942;
}
.primary.large {
  padding: 15px 22px;
  font-size: 14px;
}
.quiet {
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--muted);
}
.wide {
  width: 100%;
}
.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 42px;
  border-bottom: 1px solid var(--line);
  background: #0d1320f0;
  position: relative;
  z-index: 30;
  backdrop-filter: blur(20px);
}
.logo {
  display: flex;
  align-items: center;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 21px;
  letter-spacing: -1px;
  font-weight: 800;
  white-space: nowrap;
}
.logo > span:last-child {
  color: var(--blue);
}
.logo-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #759efd, #4462d9);
  color: white;
  height: 28px;
  width: 28px;
  border-radius: 8px;
  margin-right: 9px;
  box-shadow: 0 4px 15px #4a78f225;
}
.logo-mark svg {
  width: 16px;
  height: 16px;
}
nav {
  display: flex;
  height: 100%;
  gap: 24px;
}
nav button {
  font-size: 12px;
  padding: 0 2px;
  position: relative;
  color: var(--muted);
}
nav button.active {
  color: white;
}
nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  box-shadow: 0 0 15px #91b5ff50;
}
nav button:hover {
  background: none;
}
nav button svg {
  width: 15px;
  height: 15px;
}
.account-bar,
.guest-bar {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-bar button {
  font-size: 12px;
  min-height: 34px;
}
.account-bar #premium svg {
  color: var(--blue);
}
.avatar {
  height: 30px;
  width: 30px;
  background: linear-gradient(135deg, #355379, #7185b7);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  border: 1px solid #ffffff20;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #56de9d;
  box-shadow: 0 0 8px #56de9d30;
  flex-shrink: 0;
}
.dot.connecting {
  background: #ffbf60;
  animation: blink 0.8s infinite alternate;
}
.dot.inactive {
  background: #667080;
  box-shadow: none;
}
#unread {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
}
.network-banner {
  background: #202d43;
  color: #c5d7f6;
  font-size: 12px;
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 18px;
  border: 1px solid #91b5ff30;
  border-radius: 9px;
  max-width: calc(100% - 28px);
  text-align: center;
}
.landing {
  position: relative;
  overflow: hidden;
  min-height: calc(100dvh - var(--nav-height));
  background:
    radial-gradient(ellipse at 78% 18%, #18306424, transparent 52%), #0a0e18;
}
.landing-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  pointer-events: none;
}
.glow-one {
  width: 410px;
  height: 410px;
  top: 50px;
  right: 0;
  background: #26449222;
}
.glow-two {
  width: 270px;
  height: 270px;
  bottom: 80px;
  left: -130px;
  background: #234f7020;
}
.hero {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 65px;
  min-height: 650px;
  padding: 80px 55px 70px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a6c6;
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-size: clamp(42px, 4.6vw, 65px);
  line-height: 1.13;
  font-weight: 650;
  max-width: 620px;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-copy > p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 470px;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 35px;
}
.hero-footnote {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6c7c99;
  margin-top: 25px;
  line-height: 1.7;
}
.hero-art {
  height: 390px;
  position: relative;
  perspective: 1000px;
}
.hero-camera {
  position: absolute;
  width: 215px;
  height: 160px;
  border-radius: 38px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotateY(-20deg) rotateX(15deg) rotate(-10deg);
  background: linear-gradient(145deg, #a5c8ff, #426fe6 50%, #213e8c);
  box-shadow:
    inset 2px 2px 3px #fff8,
    inset -8px -8px 25px #07164099,
    20px 30px 70px #0009;
  animation: float-camera 7s ease-in-out infinite;
  z-index: 4;
}
.camera-lens {
  width: 103px;
  height: 103px;
  position: absolute;
  left: 31px;
  top: 29px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #cfe2ff,
    #7699ef 20%,
    #244287 60%,
    #122344
  );
  box-shadow:
    4px 8px 15px #081936a0,
    inset 2px 2px 3px #fff5;
  display: grid;
  place-items: center;
}
.lens-inner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 8px solid #101c36;
  background: radial-gradient(
    circle at 35% 30%,
    #67ccff 0,
    #142445 25%,
    #0d1830 50%,
    #234477
  );
  box-shadow: inset 0 0 4px #8babff;
}
.camera-light {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #bcf7ff;
  border-radius: 50%;
  top: 28px;
  right: 27px;
  box-shadow: 0 0 12px #78daff;
}
.camera-side {
  position: absolute;
  right: -48px;
  top: 35px;
  width: 50px;
  height: 90px;
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%);
  background: linear-gradient(130deg, #6d9bfd, #3154b0);
  filter: drop-shadow(3px 3px 3px #000);
}
.orb {
  position: absolute;
  width: 270px;
  height: 270px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, #23447960, transparent 68%);
}
.floating-note {
  position: absolute;
  z-index: 6;
  padding: 15px 20px;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  background: #142137c9;
  backdrop-filter: blur(20px);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 15px 35px #0003;
  animation: float-note 6s ease-in-out infinite;
}
.note-one {
  top: 36px;
  left: 6px;
  transform: rotate(-5deg);
}
.note-two {
  bottom: 18px;
  right: -4px;
  animation-delay: -3s;
  transform: rotate(3deg);
}
.floating-note svg {
  color: #b6cdff;
  width: 18px;
  height: 18px;
}
.orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid #739cff1a;
  border-radius: 50%;
  pointer-events: none;
}
.ring-one {
  width: 380px;
  height: 300px;
  transform: translate(-50%, -50%) rotate(-24deg);
}
.ring-two {
  width: 425px;
  height: 360px;
  transform: translate(-50%, -50%) rotate(25deg);
}
.star {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b1cdff;
  box-shadow: 0 0 15px #91b5ff77;
  position: absolute;
}
.star-one {
  top: 65px;
  right: 45px;
}
.star-two {
  left: 30px;
  bottom: 75px;
  width: 3px;
  height: 3px;
}
.wave-bars {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 22px;
}
.wave-bars i {
  height: 14px;
  width: 3px;
  background: #9fbfff;
  border-radius: 4px;
  animation: wave 1s ease-in-out infinite alternate;
}
.wave-bars i:nth-child(2) {
  height: 22px;
  animation-delay: 0.2s;
}
.wave-bars i:nth-child(3) {
  animation-delay: 0.4s;
}
.wave-bars i:nth-child(4) {
  height: 18px;
  animation-delay: 0.6s;
}
.landing-features {
  max-width: 1170px;
  margin: auto;
  padding: 5px 0 55px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
}
.landing-features article {
  padding: 28px 28px 18px;
  border-top: 1px solid var(--line);
}
.landing-features article > svg {
  color: var(--blue);
  height: 20px;
  width: 20px;
  margin-bottom: 18px;
}
.landing-features h2 {
  font-size: 17px;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 12px;
}
.landing-features p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 25px 40px;
  color: #687890;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.landing-footer div {
  display: flex;
  gap: 14px;
}
.landing-footer button {
  font-size: 10px;
  min-height: 24px;
  padding: 0;
}
#app {
  height: calc(100dvh - var(--nav-height));
}
.page {
  height: 100%;
  display: none;
}
.page.active {
  display: block;
  animation: page-in 0.3s ease;
}
.video-stage {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, #172641, #0b111d 70%);
}
.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.stage-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0004,
    transparent 23%,
    transparent 60%,
    #0008
  );
  pointer-events: none;
}
.stage-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
  z-index: 1;
}
.empty-orbit {
  border: 1px solid #91b5ff25;
  border-radius: 50%;
  height: 110px;
  width: 110px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  position: relative;
  background: #91b5ff05;
  box-shadow: 0 0 70px #4a78f20b;
}
.empty-orbit:after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid #91b5ff0b;
  border-radius: 50%;
}
.empty-orbit svg {
  height: 30px;
  width: 30px;
  color: #9ab8f5;
}
.stage-empty h1 {
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 13px;
}
.stage-empty p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 390px;
  margin-bottom: 25px;
}
.stage-empty small {
  font-size: 10px;
  color: #61728e;
  margin-top: 24px;
  max-width: 330px;
  line-height: 1.7;
}
.stage-empty.waiting .empty-orbit {
  animation: pulse-ring 2s infinite;
}
.stage-empty.waiting h1 {
  font-size: 28px;
}
.stage-overlay {
  transition:
    opacity 0.25s,
    transform 0.3s,
    visibility 0.25s;
}
.participant {
  position: absolute;
  top: 20px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px 5px 11px;
  background: #0e16256b;
  backdrop-filter: blur(14px);
  border: 1px solid #ffffff14;
  border-radius: 8px;
  font-size: calc(12px * var(--ui-scale));
  z-index: 6;
}
.participant button {
  width: 30px;
  height: 30px;
  border-radius: 5px;
}
.call-cost {
  font-size: 9px;
  color: #9db2d2;
  margin-right: 2px;
}
.self-group {
  position: absolute;
  width: 160px;
  z-index: 5;
  transition:
    width 0.25s ease,
    left 0.32s ease,
    top 0.32s ease,
    opacity 0.25s,
    visibility 0.25s;
  touch-action: none;
}
.self-group.dragging {
  transition: none;
}
.self-preview {
  aspect-ratio: 16/9;
  border: 1px solid #ffffff50;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 24px #0003;
  background: #101725;
}
.self-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#camera-off {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #101725;
}
.preview-tool {
  position: absolute;
  top: 3px;
  right: 3px;
  min-height: 24px;
  width: 24px;
  height: 24px;
  background: #10172560;
  border-radius: 4px;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.self-group:hover .preview-tool,
.preview-tool:focus-visible {
  opacity: 1;
}
.drag-handle {
  left: 3px;
  right: auto;
  cursor: grab;
  touch-action: none;
}
.self-controls {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
}
.self-controls button {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 1px solid #ffffff25;
  background: #101725ab;
  backdrop-filter: blur(12px);
}
button.muted {
  color: #ff9baf;
  background: #432332aa;
}
.chat-overlay {
  position: absolute;
  left: 24px;
  bottom: 26px;
  width: calc(250px * var(--ui-scale));
  max-width: 40vw;
  display: flex;
  flex-direction: column;
  gap: 9px;
  z-index: 6;
}
.chat-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #ffffff8a;
  padding: 0 5px;
  letter-spacing: 0.05em;
}
.chat-heading button {
  width: 24px;
  height: 24px;
  min-height: 24px;
}
.live-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-height: 32vh;
  overflow: auto;
  scrollbar-width: none;
}
.live-bubble {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #ffffff10;
  background: #1017258a;
  backdrop-filter: blur(15px);
  font-size: calc(12px * var(--ui-scale));
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  animation: bubble-in 0.25s ease;
}
.live-bubble small {
  display: block;
  font-size: 9px;
  color: #a2b0c7;
  margin-bottom: 3px;
}
.live-bubble.own {
  background: #25365090;
  align-self: flex-end;
}
.original-message {
  display: block;
  font-size: 0.85em;
  color: #96a3b8;
  opacity: 0.72;
  margin-top: 5px;
  line-height: 1.5;
  border-top: 1px solid #ffffff0c;
  padding-top: 5px;
}
.translation-notice {
  font-size: 9px;
  color: #9fb4d5;
  margin-top: 4px;
}
.composer {
  display: flex;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #111a29ab;
  backdrop-filter: blur(15px);
  align-items: center;
  padding-right: 5px;
}
.composer input {
  background: none;
  border: 0;
  padding: 10px 11px;
  font-size: calc(12px * var(--ui-scale));
  box-shadow: none !important;
}
.composer button {
  height: 32px;
  width: 32px;
  min-height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--blue);
}
.bottom-controls {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  gap: 10px;
  z-index: 7;
}
.bottom-controls button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid #ffffff20;
  background: #111a29a6;
  backdrop-filter: blur(16px);
  position: relative;
}
.bottom-controls #next {
  background: #4a78f2;
  color: white;
  border-color: #92b5ff60;
  box-shadow: 0 3px 15px #4a78f240;
}
.bottom-controls #next:hover {
  background: #648cfa;
}
.friend-button.pending {
  color: #f3b65c;
}
.friend-button.accepted {
  color: #61dca2;
}
.locked {
  opacity: 0.6;
}
.locked:after {
  content: "•";
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: #9bb0d1;
  font-size: 14px;
}
.toggle-controls {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  color: #e8edf6;
  background: #0c132070;
  border: 1px solid #ffffff17;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.toggle-controls svg {
  transition: transform 0.3s;
}
.ui-hidden .toggle-controls svg {
  transform: rotate(180deg);
}
.end-call {
  position: absolute;
  right: 62px;
  bottom: 24px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  border-radius: 8px;
  color: #ff94a7;
  background: #2a1c2870;
  border: 1px solid #ff94a720;
  z-index: 7;
}
.ui-hidden .stage-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ui-hidden .bottom-controls {
  transform: translate(-50%, 14px);
}
.ui-hidden .chat-overlay {
  transform: translateY(12px);
}
.ui-hidden.chat-peek .chat-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.messages-page.active {
  display: grid;
  grid-template-columns: 310px 1fr;
  background: #0d1320;
}
.conversation-list {
  border-right: 1px solid var(--line);
  overflow: auto;
  padding: 28px 18px;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}
.list-heading h1 {
  font-size: 23px;
  margin-bottom: 20px;
}
.list-heading .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.list-heading > button {
  height: 34px;
  width: 34px;
  margin-bottom: 15px;
  border-radius: 8px;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff04;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 22px;
  color: var(--muted);
}
.search input {
  background: none;
  border: 0;
  padding: 11px 0;
  font-size: 11px;
  box-shadow: none !important;
}
.conversation-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 9px;
  text-align: left;
  margin-bottom: 4px;
  position: relative;
}
.conversation-item.selected {
  background: #91b5ff0a;
}
.conversation-item .avatar {
  width: 38px;
  height: 38px;
}
.conversation-item > div {
  min-width: 0;
  flex: 1;
}
.conversation-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  font-weight: 600;
}
.conversation-item small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 205px;
}
.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: radial-gradient(ellipse at 70% 15%, #192b4720, transparent 60%);
}
.conversation-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 75px;
  border-bottom: 1px solid var(--line);
  padding: 0 30px;
}
.conversation-header > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.conversation-header strong {
  font-size: 13px;
  font-weight: 550;
}
.conversation-header small {
  color: var(--muted);
  font-size: 10px;
}
.conversation-header > button:last-child {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.mobile-back {
  display: none;
}
.thread {
  flex: 1;
  overflow: auto;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #344259 transparent;
}
.thread-message {
  max-width: min(440px, 80%);
  padding: 12px 15px;
  border-radius: 12px;
  background: #192334;
  border: 1px solid #ffffff06;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  animation: bubble-in 0.2s;
}
.thread-message.outgoing {
  align-self: flex-end;
  background: #284371;
  color: #e4edff;
}
.thread-message small {
  display: block;
  color: #889bb9;
  font-size: 9px;
  margin-bottom: 5px;
}
.thread-bottom {
  padding: 17px 30px 25px;
  border-top: 1px solid var(--line);
}
.thread-bottom .composer {
  background: #151e2d;
  max-width: 900px;
  margin: auto;
}
.thread-bottom .composer input {
  padding: 13px;
}
.thread-bottom > .primary {
  max-width: 900px;
  display: flex;
  margin: auto;
}
.gift-message {
  background: linear-gradient(130deg, #18253a, #1b233f);
  border: 1px solid #91b5ff25;
  padding: 18px 25px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
  text-align: center;
  align-self: flex-end;
}
.gift-message small {
  font-size: 9px;
  color: var(--muted);
}
.gift-emoji {
  font-size: 32px;
}
.gift-message strong {
  font-size: 12px;
  font-weight: 500;
}
.empty-state {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 35px;
  color: var(--muted);
}
.empty-state > svg {
  height: 34px;
  width: 34px;
  margin-bottom: 24px;
  color: #6c83af;
}
.empty-state h2 {
  font-size: 20px;
  font-weight: 500;
  color: #c0cde4;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 330px;
}
.conversation-list .empty-state {
  padding: 25px 15px;
}
.conversation-list .empty-state h2 {
  font-size: 15px;
}
.stories-page.active {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: center;
  background: radial-gradient(ellipse at 50% 30%, #1c2a441f, transparent 60%);
  overflow: hidden;
}
.stories-top {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 7;
  pointer-events: none;
}
.stories-top > div,
.stories-top > button {
  pointer-events: auto;
}
.stories-top h1 {
  font-size: 23px;
  margin: 0;
}
.stories-top .eyebrow {
  font-size: 8px;
  margin-bottom: 8px;
}
.stories-top .primary {
  font-size: 11px;
  padding: 10px 15px;
}
.story-viewer {
  height: calc(100% - 60px);
  max-height: 900px;
  aspect-ratio: 9/16;
  position: relative;
  overflow: hidden;
  background: #111927;
  border-radius: 12px;
  border: 1px solid #ffffff0f;
  margin: 17px 0 0;
}
.story-viewer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.story-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0003,
    transparent 30%,
    transparent 55%,
    #0009
  );
  pointer-events: none;
}
.story-progress {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #ffffff30;
  border-radius: 5px;
  overflow: hidden;
}
.story-progress span {
  height: 100%;
  display: block;
  background: white;
  width: 0;
  transition: none;
}
.story-author {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 65px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.story-author strong {
  font-size: 12px;
}
.story-author p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 250px;
  margin: 5px 0 0;
  color: #d2d9e5;
  overflow-wrap: anywhere;
}
.story-actions {
  position: absolute;
  right: 12px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.story-actions button {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #17203160;
  backdrop-filter: blur(10px);
  position: relative;
}
.story-actions small {
  font-size: 9px;
  margin-top: -7px;
  color: #cad7eb;
}
.liked {
  color: #ff8ca5 !important;
}
.liked svg {
  fill: #ff8ca530;
}
.story-delete {
  position: absolute;
  right: 10px;
  top: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10172590;
}
.story-hint {
  margin: 11px 0;
  color: #7384a2;
  font-size: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.story-hint svg {
  height: 11px;
  width: 11px;
}
.story-empty {
  height: 100%;
}
.account-menu {
  position: absolute;
  top: calc(var(--nav-height) + 8px);
  right: 24px;
  width: 252px;
  padding: 8px;
  background: #141d2ef5;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  box-shadow: 0 15px 60px #0007;
  z-index: 40;
  backdrop-filter: blur(25px);
  animation: menu-in 0.2s;
}
.menu-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 10px 18px;
  overflow: hidden;
}
.menu-identity .avatar {
  height: 36px;
  width: 36px;
}
.menu-identity > div {
  min-width: 0;
}
.menu-identity strong {
  display: block;
  font-size: 12px;
}
.menu-identity small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.account-menu > button {
  display: flex;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border-radius: 7px;
  font-size: 12px;
}
.account-menu > button svg {
  color: var(--muted);
}
.menu-divider {
  height: 1px;
  background: var(--line);
  margin: 8px;
}
.account-menu #logout {
  color: #c5a9b5;
}
dialog {
  border: 1px solid #ffffff16;
  border-radius: 16px;
  background: #121b2b;
  color: var(--text);
  padding: 25px;
  width: min(460px, calc(100vw - 30px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 0 30px 100px #0008;
  animation: modal-in 0.25s ease;
  scrollbar-width: thin;
}
dialog::backdrop {
  background: #050a13bb;
  backdrop-filter: blur(7px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.modal-heading h2 {
  font-size: 20px;
  font-weight: 550;
  margin: 0;
}
.modal-heading button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #9aabc7;
}
.modal-copy {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #b4c1d7;
  margin-bottom: 16px;
}
.field input,
.field select,
.field textarea {
  font-size: 12px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.check-row {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: #9eacc3;
  line-height: 1.7;
  margin: 15px 0;
  align-items: flex-start;
}
.check-row input {
  margin-top: 3px;
}
.check-row a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #bfd2fc;
}
.form-error {
  font-size: 11px;
  color: #ffc2cf;
  padding: 10px 12px;
  background: #5a25362a;
  border: 1px solid #ff9bae20;
  border-radius: 7px;
  margin-bottom: 14px;
  line-height: 1.7;
}
.auth-switch {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin: 18px 0 0;
}
.auth-switch button {
  color: var(--blue);
  font-size: 11px;
  min-height: 24px;
  padding: 0 6px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.chips button {
  border: 1px solid #ffffff16;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 11px;
}
.chips button.selected {
  border-color: #91b5ff66;
  background: #91b5ff0c;
  color: #bfd2ff;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 1.6;
}
.setting-row output {
  font-size: 10px;
  color: var(--blue);
}
.setting-row input[type="range"] {
  width: 150px;
}
.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gift-grid button {
  border: 1px solid #91b5ff15;
  border-radius: 12px;
  background: #19243a;
  display: flex;
  flex-direction: column;
  padding: 18px 10px;
  gap: 7px;
}
.gift-grid button > span {
  font-size: 30px;
}
.gift-grid button small {
  font-size: 10px;
  color: var(--muted);
}
.package-card {
  padding: 20px;
  background: linear-gradient(130deg, #1d3051, #19263d);
  border: 1px solid #91b5ff30;
  border-radius: 12px;
  margin: 15px 0 22px;
}
.package-card h3 {
  font-size: 25px;
  margin-bottom: 5px;
  color: #dce8ff;
}
.package-card p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}
.package-card strong {
  color: #9dbfff;
  font-size: 12px;
}
.recorder-video {
  width: 100%;
  aspect-ratio: 9/12;
  max-height: 45dvh;
  object-fit: cover;
  background: #080e19;
  border-radius: 9px;
  margin-bottom: 14px;
}
.device-select {
  margin-bottom: 15px;
  font-size: 11px;
}
.record-button {
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 50%;
  background: #eb6f8c;
  display: flex;
  margin: 10px auto;
  border: 5px solid #18253a;
  outline: 1px solid #eb6f8c80;
}
.record-button.recording {
  border-radius: 14px;
  animation: pulse-ring 1s infinite;
}
.record-meta {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 15px 0;
}
.friends-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.friend-row {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.friend-row > div {
  flex: 1;
  font-size: 12px;
}
.friend-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.friend-row button {
  font-size: 10px;
  padding: 7px;
}
.status-copy {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  padding: 12px 0;
}
.inline-link {
  color: var(--blue);
  text-decoration: underline;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 15px);
  z-index: 100;
  background: #23324bf5;
  border: 1px solid #91b5ff25;
  padding: 13px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 40px #0005;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  max-width: calc(100vw - 30px);
  width: max-content;
  line-height: 1.6;
  font-size: 12px;
  pointer-events: none;
}
#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  to {
    opacity: 0.35;
  }
}
@keyframes pulse-ring {
  50% {
    box-shadow: 0 0 0 12px #91b5ff08;
  }
}
@keyframes float-camera {
  50% {
    transform: translate(-50%, calc(-50% - 12px)) rotateY(-15deg) rotateX(12deg)
      rotate(-7deg);
  }
}
@keyframes float-note {
  50% {
    translate: 0 -10px;
  }
}
@keyframes wave {
  to {
    height: 7px;
  }
}
@media (min-width: 2000px) {
  .hero {
    max-width: 1400px;
    min-height: 740px;
  }
  .landing-features {
    max-width: 1300px;
  }
}
@media (max-width: 1000px) {
  .navbar {
    gap: 25px;
    padding: 0 22px;
  }
  .hero {
    gap: 25px;
    padding: 60px 35px;
    min-height: 600px;
  }
  .hero-art {
    scale: 0.88;
  }
  .landing-features {
    gap: 12px;
    padding: 10px 20px 35px;
  }
  .landing-features article {
    padding: 25px 15px;
  }
  .stories-top > div {
    display: none;
  }
  .stories-top {
    top: 18px;
    left: auto;
    right: 20px;
  }
  .messages-page.active {
    grid-template-columns: 280px 1fr;
  }
}
@media (max-width: 700px) {
  :root {
    --icon: 22px;
    --nav-height: 61px;
    font-size: 14px;
  }
  .navbar {
    padding: 0 12px;
    gap: 12px;
  }
  .logo {
    font-size: 18px;
  }
  .logo-mark {
    width: 25px;
    height: 25px;
    margin-right: 6px;
    border-radius: 7px;
  }
  .logo-mark svg {
    width: 15px;
    height: 15px;
  }
  .guest-bar {
    gap: 3px;
  }
  .guest-bar button {
    min-height: 40px;
  }
  .guest-bar .quiet {
    font-size: 11px;
    padding: 8px;
  }
  .guest-bar .primary {
    font-size: 11px;
    padding: 8px 11px;
  }
  .guest-bar #guest-language {
    width: 34px;
  }
  .guest-bar #guest-language svg {
    height: 18px;
    width: 18px;
  }
  #app-nav {
    gap: 3px;
    margin: auto;
  }
  #app-nav button {
    min-width: 42px;
    height: 60px;
    padding: 0 8px;
  }
  #app-nav button > span:not([data-icon]) {
    display: none;
  }
  nav button svg {
    width: 20px;
    height: 20px;
  }
  .account-bar {
    gap: 3px;
    margin-left: 0;
  }
  .account-bar button {
    min-height: 44px;
  }
  .account-bar #premium {
    width: 32px;
    gap: 2px;
  }
  .premium-text {
    display: none;
  }
  #premium-dot {
    width: 4px;
    height: 4px;
    position: absolute;
    margin: 26px 0 0 19px;
  }
  .account-bar #premium svg {
    height: 18px;
    width: 18px;
  }
  .account-bar #balance {
    gap: 4px;
    font-size: 10px;
    padding: 0 3px;
  }
  .account-bar #balance svg {
    height: 13px;
    width: 13px;
  }
  .avatar-button {
    padding: 0 0 0 4px;
  }
  .avatar-button .avatar {
    height: 27px;
    width: 27px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 48px 25px 35px;
    gap: 15px;
    min-height: 0;
    align-items: stretch;
  }
  .hero-copy h1 {
    font-size: 43px;
    line-height: 1.16;
    margin-bottom: 19px;
  }
  .hero-copy > p {
    font-size: 14px;
    line-height: 1.8;
    max-width: 400px;
  }
  .hero-copy > .eyebrow {
    font-size: 8px;
    margin-bottom: 22px;
  }
  .hero-buttons {
    margin-top: 26px;
    gap: 9px;
  }
  .hero-buttons .large {
    font-size: 12px;
    padding: 14px 16px;
  }
  .hero-buttons .large svg {
    height: 18px;
    width: 18px;
  }
  .hero-buttons .quiet {
    font-size: 11px;
    padding: 9px;
  }
  .hero-buttons .quiet svg {
    width: 16px;
    height: 16px;
  }
  .hero-footnote {
    font-size: 9px;
    gap: 7px;
    margin-top: 20px;
  }
  .hero-footnote svg {
    height: 13px;
    width: 13px;
  }
  .hero-art {
    height: 315px;
    scale: 0.87;
    margin: 0 -10px -10px;
  }
  .hero-camera {
    width: 205px;
    height: 153px;
  }
  .ring-one {
    width: 330px;
    height: 250px;
  }
  .ring-two {
    width: 360px;
    height: 320px;
  }
  .floating-note {
    font-size: 10px;
    padding: 13px;
  }
  .note-one {
    left: 0;
    top: 22px;
  }
  .note-two {
    right: -2px;
    bottom: 10px;
  }
  .landing-features {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 25px 20px;
  }
  .landing-features article {
    padding: 24px 0 8px;
  }
  .landing-features article > svg {
    height: 20px;
    width: 20px;
    margin-bottom: 12px;
  }
  .landing-features h2 {
    font-size: 17px;
  }
  .landing-features p {
    font-size: 12px;
    max-width: 400px;
  }
  .landing-footer {
    padding: 20px 25px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 9px;
  }
  .landing-footer > span:last-child {
    width: 100%;
  }
  .landing-footer button {
    font-size: 9px;
  }
  .participant {
    top: 12px;
    left: 10px;
    gap: 6px;
    padding: 2px 4px 2px 8px;
    max-width: calc(100% - 145px);
    font-size: 12px;
  }
  .participant > span:first-of-type {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 90px;
  }
  .participant button {
    width: 35px;
    height: 40px;
    min-height: 40px;
  }
  .participant button svg {
    width: 20px;
    height: 20px;
  }
  .call-cost {
    display: none;
  }
  .self-preview {
    border-radius: 7px;
  }
  .preview-tool {
    opacity: 1;
    height: 30px;
    min-height: 30px;
    width: 30px;
    top: 1px;
    right: 1px;
  }
  .preview-tool svg {
    width: 17px;
    height: 17px;
  }
  .drag-handle {
    left: 1px;
  }
  .self-controls {
    gap: 3px;
    margin-top: 4px;
  }
  .self-controls button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    background: #0b1426b0;
    border: none;
  }
  .self-controls button svg {
    height: 21px;
    width: 21px;
  }
  .chat-overlay {
    left: 12px;
    bottom: 90px;
    width: calc(235px * var(--ui-scale));
    max-width: 70vw;
    gap: 7px;
  }
  .chat-heading {
    font-size: 10px;
  }
  .chat-heading button {
    height: 30px;
    min-height: 30px;
    width: 30px;
  }
  .chat-heading button svg {
    width: 16px;
    height: 16px;
  }
  .live-messages {
    max-height: 25dvh;
    gap: 5px;
  }
  .live-bubble {
    font-size: 12px;
    padding: 7px 10px;
  }
  .live-bubble small {
    font-size: 9px;
  }
  .composer input {
    font-size: 13px;
    padding: 12px;
    min-height: 44px;
  }
  .composer button {
    height: 40px;
    min-height: 40px;
    width: 40px;
  }
  .composer button svg {
    height: 20px;
    width: 20px;
  }
  .bottom-controls {
    bottom: max(18px, env(safe-area-inset-bottom));
    gap: 10px;
  }
  .bottom-controls button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .bottom-controls button svg {
    width: 22px;
    height: 22px;
  }
  .toggle-controls {
    right: 10px;
    bottom: max(18px, env(safe-area-inset-bottom));
    height: 44px;
    width: 35px;
    min-height: 44px;
    border: none;
    background: #101a2a85;
  }
  .toggle-controls svg {
    width: 18px;
    height: 18px;
  }
  .end-call {
    right: 10px;
    bottom: 74px;
    width: 35px;
    height: 40px;
    min-height: 40px;
    border: none;
  }
  .end-call svg {
    height: 18px;
    width: 18px;
  }
  .stage-empty {
    padding: 24px;
  }
  .stage-empty h1 {
    font-size: 27px;
  }
  .stage-empty > .eyebrow {
    font-size: 8px;
  }
  .stage-empty p {
    font-size: 13px;
    max-width: 300px;
  }
  .stage-empty button {
    min-height: 44px;
  }
  .stage-empty button svg {
    height: 19px;
    width: 19px;
  }
  .empty-orbit {
    width: 85px;
    height: 85px;
    margin-bottom: 24px;
  }
  .empty-orbit svg {
    height: 26px;
    width: 26px;
  }
  .messages-page.active {
    display: block;
  }
  .conversation-list {
    height: 100%;
    padding: 25px 12px;
    border-right: 0;
  }
  .list-heading h1 {
    font-size: 24px;
  }
  .conversation-list .search input {
    font-size: 13px;
    min-height: 44px;
  }
  .conversation-list .search svg {
    height: 17px;
    width: 17px;
  }
  .conversation-item {
    padding: 15px 12px;
  }
  .conversation-item .avatar {
    height: 42px;
    width: 42px;
  }
  .conversation-item strong {
    font-size: 13px;
  }
  .conversation-item small {
    font-size: 11px;
    max-width: 260px;
  }
  .messages-page .conversation-list {
    display: none;
  }
  .messages-page.show-list .conversation-list {
    display: block;
  }
  .messages-page.show-list .conversation {
    display: none;
  }
  .conversation-header {
    height: 69px;
    padding: 0 14px;
    gap: 10px;
  }
  .conversation-header strong {
    font-size: 13px;
  }
  .conversation-header > button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .mobile-back {
    display: flex;
  }
  .thread {
    padding: 20px 15px;
    gap: 10px;
  }
  .thread-message {
    max-width: 84%;
    font-size: 13px;
    padding: 10px 13px;
  }
  .thread-bottom {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  }
  .thread-bottom > .primary {
    min-height: 44px;
  }
  .stories-top {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: flex-end;
  }
  .stories-top .primary {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 40px;
    background: #15253dd0;
    backdrop-filter: blur(12px);
  }
  .stories-top .primary svg {
    width: 17px;
    height: 17px;
  }
  .story-viewer {
    height: 100%;
    width: 100%;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .story-viewer video {
    object-fit: cover;
  }
  .story-progress {
    top: 7px;
    left: 10px;
    right: 10px;
  }
  .story-author {
    bottom: max(28px, env(safe-area-inset-bottom));
    left: 16px;
    right: 75px;
  }
  .story-author strong {
    font-size: 13px;
  }
  .story-author p {
    font-size: 12px;
    line-height: 1.6;
  }
  .story-author .avatar {
    height: 35px;
    width: 35px;
  }
  .story-actions {
    right: 12px;
    bottom: 30px;
    gap: 10px;
  }
  .story-actions button {
    height: 44px;
    width: 44px;
    min-height: 44px;
  }
  .story-actions svg {
    height: 22px;
    width: 22px;
  }
  .story-actions small {
    font-size: 10px;
  }
  .story-delete {
    top: 64px;
    right: 14px;
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .story-hint {
    position: absolute;
    bottom: 8px;
    margin: 0;
    color: #d3def780;
    z-index: 6;
    font-size: 9px;
  }
  .story-hint svg {
    width: 11px;
    height: 11px;
  }
  .account-menu {
    right: 12px;
    top: calc(var(--nav-height) + 8px);
    width: 270px;
  }
  .account-menu > button {
    min-height: 44px;
    font-size: 13px;
    padding: 13px;
  }
  .account-menu svg {
    width: 20px;
    height: 20px;
  }
  dialog {
    padding: 22px;
    width: calc(100vw - 24px);
    border-radius: 14px;
    max-height: calc(100dvh - 24px);
  }
  .modal-heading h2 {
    font-size: 21px;
  }
  .modal-heading button {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }
  .modal-heading button svg {
    height: 20px;
    width: 20px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 45px;
  }
  .field {
    font-size: 12px;
  }
  .check-row {
    font-size: 11px;
  }
  .check-row input {
    width: 18px;
    height: 18px;
  }
  .primary {
    min-height: 44px;
  }
  .chips button {
    font-size: 12px;
    min-height: 42px;
    padding: 10px 13px;
  }
  .setting-row {
    font-size: 12px;
  }
  .setting-row input[type="range"] {
    width: 135px;
  }
  .friend-row button {
    min-height: 40px;
  }
  .empty-state {
    padding: 30px 20px;
  }
  .empty-state h2 {
    font-size: 20px;
  }
  .empty-state p {
    font-size: 13px;
  }
  #toast {
    font-size: 12px;
    bottom: max(20px, env(safe-area-inset-bottom));
  }
  .network-banner {
    font-size: 11px;
  }
  .story-empty {
    padding-top: 80px;
  }
}
@media (max-width: 360px) {
  .navbar {
    gap: 5px;
    padding: 0 8px;
  }
  .logo {
    font-size: 15px;
  }
  .logo-mark {
    width: 22px;
    height: 22px;
    margin-right: 4px;
  }
  #app-nav button {
    min-width: 34px;
    padding: 0 6px;
  }
  .account-bar #balance {
    font-size: 9px;
  }
  .account-bar #balance svg {
    display: none;
  }
  .hero-copy h1 {
    font-size: 37px;
  }
  .bottom-controls {
    gap: 5px;
  }
  .participant {
    max-width: calc(100% - 135px);
  }
  .participant button {
    width: 30px;
  }
  .hero-art {
    scale: 0.77;
    margin: 0 -24px -25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
html[dir="rtl"] .hero-copy,
html[dir="rtl"] .field {
  text-align: right;
}
html[dir="rtl"] .original-message {
  direction: auto;
}
@media (max-width: 700px) {
  .navbar {
    gap: 8px;
    padding: 0 10px;
  }
  .account-bar #balance {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .self-controls {
    gap: 0;
  }
  .self-controls button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }
  .participant button {
    height: 44px;
    min-height: 44px;
  }
  .avatar-button {
    flex-shrink: 0;
  }
  .self-group:focus-within .preview-tool {
    opacity: 1;
  }
}
.locked:after {
  content: "";
  width: 5px;
  height: 6px;
  border: 1px solid #adc1e3;
  border-radius: 1px;
  right: 4px;
  bottom: 5px;
  background: #16243a;
}
.locked:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border: 1px solid #adc1e3;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  right: 5px;
  bottom: 11px;
}
nav button {
  font-size: calc(12px * var(--ui-scale));
}
.bottom-controls button {
  width: calc(38px * var(--ui-scale));
  height: calc(38px * var(--ui-scale));
}
.self-controls button {
  width: calc(30px * var(--ui-scale));
  height: calc(30px * var(--ui-scale));
}
.account-menu > button {
  font-size: calc(12px * var(--ui-scale));
}
.live-bubble .original-message {
  font-size: 0.85em;
}
.thread-message {
  font-size: calc(13px * var(--ui-scale));
}
@media (max-width: 700px) {
  .bottom-controls button {
    width: max(44px, calc(44px * var(--ui-scale)));
    height: max(44px, calc(44px * var(--ui-scale)));
  }
  .self-controls button {
    width: max(44px, calc(44px * var(--ui-scale)));
    height: max(44px, calc(44px * var(--ui-scale)));
  }
  .account-menu > button {
    font-size: calc(13px * var(--ui-scale));
  }
}
