:root {
  --bg: #050c17;
  --bg-deep: #030811;
  --panel: rgba(12, 28, 46, 0.86);
  --panel-solid: #0c1c2e;
  --panel-raised: #10243a;
  --text: #eef8f7;
  --muted: #91a8b8;
  --muted-strong: #bdd0d8;
  --teal: #44e1c7;
  --teal-bright: #7af4df;
  --teal-deep: #0d9488;
  --teal-glow: rgba(68, 225, 199, 0.2);
  --line: rgba(142, 197, 200, 0.16);
  --line-strong: rgba(142, 197, 200, 0.28);
  --danger: #ff7585;
  --danger-bg: rgba(255, 117, 133, 0.1);
  --amber: #f4ca77;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(24, 113, 117, 0.3), transparent 34rem),
    radial-gradient(circle at 106% 18%, rgba(23, 78, 113, 0.25), transparent 30rem),
    linear-gradient(160deg, #071321 0%, var(--bg) 48%, #030812 100%);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(142, 197, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 197, 200, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 68%);
}

[hidden] {
  display: none !important;
}

button,
input,
summary {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.14;
}

.ambient-one {
  top: 30%;
  left: -16rem;
  background: #20bfa9;
}

.ambient-two {
  right: -16rem;
  bottom: 8%;
  background: #1d6dab;
}

.app-shell {
  width: min(100% - 32px, 1060px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    calc(18px + env(safe-area-inset-top))
    0
    calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(38px, 7vw, 82px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #05211f;
  background: linear-gradient(145deg, var(--teal-bright), #1fb7a3);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(41, 209, 185, 0.22);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.9;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-text small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: var(--muted-strong);
  background: rgba(10, 25, 41, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal);
}

main {
  flex: 1;
}

.hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow,
.panel-kicker,
.state-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 8.4vw, 72px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--teal);
}

.hero-copy {
  max-width: 590px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 2vw, 17px);
}

.start-grid {
  display: grid;
  gap: 16px;
}

.panel {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  background:
    linear-gradient(155deg, rgba(21, 53, 72, 0.32), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel::after {
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 12rem;
  height: 12rem;
  content: "";
  background: radial-gradient(circle, rgba(68, 225, 199, 0.08), transparent 68%);
  pointer-events: none;
}

.create-panel {
  border-color: rgba(68, 225, 199, 0.25);
}

.create-panel::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  opacity: 0.8;
}

.panel h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--teal);
  background: rgba(68, 225, 199, 0.1);
  border: 1px solid rgba(68, 225, 199, 0.18);
  border-radius: 14px;
}

.panel-icon svg {
  width: 21px;
  height: 21px;
}

.panel-icon-muted {
  color: #94cfd1;
  background: rgba(148, 207, 209, 0.08);
  border-color: rgba(148, 207, 209, 0.14);
}

.panel-footnote {
  margin: -8px 0 0;
  color: #70899a;
  font-size: 11px;
  text-align: center;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--text);
  caret-color: var(--teal);
  background: rgba(4, 13, 24, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #5d7484;
  opacity: 1;
}

input:hover {
  border-color: var(--line-strong);
}

input:focus {
  background: rgba(4, 13, 24, 0.94);
  border-color: rgba(68, 225, 199, 0.62);
  box-shadow: 0 0 0 3px rgba(68, 225, 199, 0.1);
}

.input-with-actions {
  position: relative;
}

.input-with-actions input {
  padding-right: 76px;
}

.button-inline {
  position: absolute;
  top: 6px;
  right: 6px;
  min-height: 38px !important;
  padding: 6px 13px !important;
}

.button {
  min-height: 48px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    opacity 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button-primary {
  color: #03211e;
  background: linear-gradient(135deg, var(--teal-bright), #2acbae);
  border-color: rgba(122, 244, 223, 0.42);
  box-shadow: 0 12px 30px rgba(30, 190, 165, 0.19);
}

.button-primary:hover {
  box-shadow: 0 14px 34px rgba(30, 190, 165, 0.28);
}

.button-secondary {
  color: #d8efec;
  background: rgba(68, 225, 199, 0.09);
  border-color: rgba(68, 225, 199, 0.22);
}

.button-secondary:hover {
  background: rgba(68, 225, 199, 0.15);
  border-color: rgba(68, 225, 199, 0.36);
}

.button-quiet {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.button-quiet:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.button-wide {
  width: 100%;
}

.manual-entry {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.manual-entry summary {
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  border-radius: 8px;
}

.manual-entry summary::-webkit-details-marker {
  display: none;
}

.manual-entry summary::after {
  margin-left: 7px;
  display: inline-block;
  color: var(--teal);
  content: "+";
  font-weight: 500;
  transition: transform 160ms ease;
}

.manual-entry[open] summary::after {
  transform: rotate(45deg);
}

.manual-fields {
  padding-top: 16px;
  display: grid;
  gap: 14px;
}

.privacy-panel {
  margin-top: 16px;
  padding: 20px;
  display: flex;
  gap: 14px;
  color: var(--muted);
  background: rgba(8, 20, 34, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.privacy-panel h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.privacy-panel p {
  margin: 0;
}

.privacy-panel strong {
  color: var(--muted-strong);
  font-weight: 600;
}

.privacy-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(68, 225, 199, 0.08);
  border-radius: 11px;
}

.privacy-icon svg {
  width: 19px;
  height: 19px;
}

.notice {
  position: relative;
  margin-bottom: 18px;
  padding: 13px 15px;
  color: #cfe3e6;
  background: rgba(33, 80, 94, 0.28);
  border: 1px solid rgba(121, 185, 194, 0.24);
  border-radius: 14px;
  font-size: 13px;
}

.notice-error {
  color: #ffd8dc;
  background: var(--danger-bg);
  border-color: rgba(255, 117, 133, 0.3);
}

.notice-info {
  color: #d8e8ea;
  background: rgba(53, 122, 133, 0.16);
}

.notice-success {
  color: #d4fff6;
  background: rgba(42, 203, 174, 0.1);
  border-color: rgba(68, 225, 199, 0.28);
}

.call-view {
  animation: view-in 260ms ease both;
}

.call-topbar {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.call-topbar h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.call-panel {
  position: relative;
  padding: 18px clamp(16px, 4vw, 34px) 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 36%, rgba(32, 121, 116, 0.18), transparent 44%),
    linear-gradient(160deg, rgba(17, 44, 63, 0.4), transparent 48%),
    var(--panel);
  border: 1px solid rgba(104, 190, 190, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.room-line {
  padding: 4px 2px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.room-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.room-line code {
  max-width: 55vw;
  overflow: hidden;
  color: var(--muted-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  margin-left: auto;
  padding: 4px 8px;
  color: var(--teal);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
}

.text-button:hover {
  background: rgba(68, 225, 199, 0.08);
}

.voice-stage {
  padding: clamp(30px, 7vw, 54px) 0 clamp(26px, 5vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.voice-orb {
  position: relative;
  width: clamp(132px, 32vw, 174px);
  height: clamp(132px, 32vw, 174px);
  margin-bottom: clamp(24px, 4vw, 34px);
  display: grid;
  place-items: center;
  color: var(--teal);
}

.orb-halo {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(68, 225, 199, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.orb-halo-one {
  inset: -12px;
  opacity: 0.62;
}

.orb-halo-two {
  inset: -26px;
  opacity: 0.26;
}

.orb-core {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 36% 26%, rgba(122, 244, 223, 0.2), transparent 27%),
    radial-gradient(circle at 50% 60%, #103d42, #071c2a 72%);
  border: 1px solid rgba(68, 225, 199, 0.4);
  border-radius: 50%;
  box-shadow:
    inset 0 0 46px rgba(32, 196, 172, 0.12),
    0 0 0 10px rgba(68, 225, 199, 0.025),
    0 18px 60px rgba(0, 0, 0, 0.36);
}

.orb-core::after {
  position: absolute;
  inset: 12%;
  content: "";
  border: 1px solid rgba(142, 197, 200, 0.1);
  border-radius: 50%;
}

.orb-core svg {
  width: 36%;
  height: 36%;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 16px rgba(68, 225, 199, 0.36));
}

.voice-stage[data-state="waiting"] .orb-halo-one {
  animation: slow-pulse 4.4s ease-in-out infinite;
}

.voice-stage[data-state="connecting"] .orb-core {
  border-color: rgba(68, 225, 199, 0.75);
  animation: breathe 2s ease-in-out infinite;
}

.voice-stage[data-state="connecting"] .orb-halo-one {
  border-color: rgba(68, 225, 199, 0.3);
  animation: halo-wave 2.4s ease-out infinite;
}

.voice-stage[data-state="connecting"] .orb-halo-two {
  animation: halo-wave 2.4s 0.8s ease-out infinite;
}

.voice-stage[data-state="connected"] .orb-core {
  border-color: rgba(122, 244, 223, 0.72);
  box-shadow:
    inset 0 0 54px rgba(44, 219, 190, 0.17),
    0 0 0 12px rgba(68, 225, 199, 0.035),
    0 18px 70px rgba(16, 157, 137, 0.22);
}

.voice-stage[data-state="connected"] .orb-halo-one {
  border-color: rgba(68, 225, 199, 0.26);
  animation: halo-wave 3.6s ease-out infinite;
}

.voice-stage[data-state="connected"] .orb-halo-two {
  animation: halo-wave 3.6s 1.2s ease-out infinite;
}

.voice-stage[data-state="error"] .orb-core {
  color: var(--danger);
  border-color: rgba(255, 117, 133, 0.4);
  box-shadow: inset 0 0 46px rgba(255, 117, 133, 0.08);
}

.voice-stage[data-state="error"] .orb-halo {
  border-color: rgba(255, 117, 133, 0.12);
}

.voice-stage.is-muted .orb-core {
  color: #8aa2ae;
  border-color: rgba(138, 162, 174, 0.24);
}

.state-copy {
  max-width: 470px;
}

.state-copy h2 {
  margin: 0;
  font-size: clamp(21px, 4vw, 28px);
  font-weight: 650;
  letter-spacing: -0.035em;
}

.state-copy p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.elapsed {
  margin-top: 20px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #cce9e4;
  background: rgba(7, 27, 36, 0.7);
  border: 1px solid rgba(68, 225, 199, 0.18);
  border-radius: 999px;
  font-size: 11px;
}

.elapsed time {
  color: var(--teal-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.live-dot {
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
}

.relay-line {
  max-width: min(94vw, 430px);
  margin-top: 12px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7591a0;
  background: rgba(4, 15, 25, 0.5);
  border: 1px solid rgba(142, 197, 200, 0.1);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.015em;
}

.relay-dot {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: #5e7480;
  border-radius: 50%;
}

.relay-line[data-kind="pending"] {
  color: #96b4bd;
}

.relay-line[data-kind="pending"] .relay-dot {
  background: var(--amber);
  box-shadow: 0 0 7px rgba(244, 202, 119, 0.6);
}

.relay-line[data-kind="confirmed"] {
  color: #b7eee2;
  border-color: rgba(68, 225, 199, 0.2);
}

.relay-line[data-kind="confirmed"] .relay-dot {
  background: var(--teal);
  box-shadow: 0 0 8px rgba(68, 225, 199, 0.7);
}

.relay-line[data-kind="warning"] {
  color: var(--amber);
  border-color: rgba(244, 202, 119, 0.22);
}

.relay-line[data-kind="warning"] .relay-dot {
  background: var(--amber);
}

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

.stage-actions .button {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 12px;
}

.call-controls {
  max-width: 490px;
  margin: 0 auto;
  padding-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
}

.control-button {
  min-height: 64px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #bdd7d8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(142, 197, 200, 0.12);
  border-radius: 16px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}

.control-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.control-button:active {
  transform: scale(0.98);
}

.control-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.control-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
}

.control-icon svg {
  width: 20px;
  height: 20px;
}

.control-button[aria-pressed="true"] {
  color: var(--teal);
  background: rgba(68, 225, 199, 0.09);
  border-color: rgba(68, 225, 199, 0.26);
}

.control-danger {
  color: #ffb7c0;
  background: var(--danger-bg);
  border-color: rgba(255, 117, 133, 0.22);
}

.control-danger:hover {
  background: rgba(255, 117, 133, 0.16);
  border-color: rgba(255, 117, 133, 0.38);
}

#remoteAudio {
  display: none;
}

.call-notice {
  margin-top: 16px;
  margin-bottom: 0;
}

.invite-panel {
  margin-top: 16px;
  padding: clamp(20px, 4vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(10, 24, 39, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.invite-panel h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.invite-panel p:last-child {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.invite-actions {
  display: flex;
}

.invite-actions .button {
  width: 100%;
}

.privacy-inline {
  margin: 18px 4px 0;
  color: #6f8794;
  font-size: 11px;
  text-align: center;
}

.privacy-inline span {
  margin-right: 5px;
  color: var(--teal);
  font-size: 7px;
  vertical-align: middle;
}

.app-footer {
  margin-top: clamp(32px, 6vw, 60px);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  color: #5d7483;
  border-top: 1px solid rgba(142, 197, 200, 0.1);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  color: #dffbf4;
  background: rgba(12, 38, 46, 0.96);
  border: 1px solid rgba(68, 225, 199, 0.28);
  border-radius: 12px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 180ms ease both;
}

.toast-error {
  color: #ffd9de;
  background: rgba(55, 24, 31, 0.97);
  border-color: rgba(255, 117, 133, 0.32);
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

@keyframes slow-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.99);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.025);
  }
}

@keyframes breathe {
  0%,
  100% {
    box-shadow:
      inset 0 0 46px rgba(32, 196, 172, 0.12),
      0 0 0 10px rgba(68, 225, 199, 0.025);
  }
  50% {
    box-shadow:
      inset 0 0 64px rgba(32, 196, 172, 0.2),
      0 0 0 14px rgba(68, 225, 199, 0.045),
      0 0 54px rgba(32, 196, 172, 0.1);
  }
}

@keyframes halo-wave {
  0% {
    opacity: 0.28;
    transform: scale(0.94);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 760px) {
  .app-shell {
    width: min(100% - 64px, 1060px);
    padding-top: calc(28px + env(safe-area-inset-top));
  }

  .app-header {
    margin-bottom: 74px;
  }

  .start-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
    align-items: stretch;
  }

  .panel {
    padding: 30px;
  }

  .privacy-panel {
    padding: 22px 24px;
  }

  .call-panel {
    padding: 22px 38px 28px;
  }

  .call-controls {
    max-width: 530px;
  }

  .control-button {
    min-height: 70px;
  }

  .invite-panel {
    padding: 24px 28px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .invite-actions {
    flex: 0 0 auto;
  }

  .invite-actions .button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .header-badge {
    padding: 6px 8px;
    font-size: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 17px;
  }

  .call-controls {
    gap: 7px;
  }

  .control-button {
    min-height: 60px;
    font-size: 9px;
  }

  .call-topbar .button {
    min-height: 40px;
    padding: 7px 12px;
    font-size: 12px;
  }
}

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