:root {
  --navy-deep: #1B1F3B;
  --navy-mid: #1A0B6B;
  --cyan: #06F9FD;
  --cyan-deep: #04C7CB;
  --cyan-light: #7EFBFD;
  --cyan-glow: rgba(6, 249, 253, 0.15);
  --off-white: #F7F7F4;
  --bone: #ECECE5;
  --ink: #14152A;
  --mist: #9A9AB2;
  --mist-light: #E6E6EF;
  --font-display: "Syne", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --kb: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
html { background: #07091A; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  overflow: hidden;
  height: 100dvh;
  height: 100svh;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  user-select: none;
}
.bubble .txt, textarea, input { user-select: text; -webkit-user-select: text; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--navy-deep); color: var(--cyan); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
.hidden { display: none !important; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Login — Chronex intro dark */
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 1.25rem calc(24px + var(--safe-b));
  background-color: #07091A;
  background-image:
    radial-gradient(ellipse 80% 70% at 50% 42%, rgba(6, 249, 253, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(26, 11, 107, 0.35) 0%, transparent 70%);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.login-card { width: min(440px, 100%); }
.brand { text-align: center; margin-bottom: 2rem; }
.brand .logo { width: 72px; height: 80px; margin: 0 auto 1rem; }
.brand h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--off-white);
}
.brand p { margin-top: 0.75rem; color: var(--mist-light); font-size: 0.95rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 1.25rem; border-bottom: 1.5px solid rgba(247,247,244,.12); }
.tab {
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.tab.active { color: var(--cyan); box-shadow: inset 0 -1.5px 0 var(--cyan); }
.field { display: grid; gap: 0.4rem; margin-bottom: 0.9rem; }
.field span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}
.field input {
  min-height: 48px;
  border: 1.5px solid rgba(247,247,244,.18);
  background: transparent;
  color: var(--off-white);
  padding: 0 1rem;
  border-radius: 2px;
  font-size: 16px;
  outline: none;
}
.field input:focus { border-color: var(--cyan); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin-top: 0.4rem;
  background: var(--cyan); color: var(--navy-deep);
  font-weight: 600; font-size: 0.9rem; border-radius: 2px;
  transition: background 0.35s var(--ease);
}
.btn-primary:hover { background: var(--cyan-light); }
.form-error { color: #ff8a9a; min-height: 1.2rem; font-size: 0.8rem; margin-top: 0.5rem; }
.hint { text-align: center; color: var(--mist); font-size: 0.75rem; margin: 1.25rem 0 0.75rem; }
.hint code { color: var(--cyan); }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; max-height: 210px; overflow: auto; }
.demo {
  display: flex; gap: 0.6rem; align-items: center; text-align: left;
  min-height: 48px; padding: 0.45rem 0.6rem;
  border: 1.5px solid rgba(247,247,244,.12); border-radius: 2px; color: var(--off-white);
}
.demo strong { display: block; font-size: 0.8rem; }
.demo small { color: var(--mist); font-size: 0.65rem; letter-spacing: 0.04em; }

/* App shell — light Chronex */
.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: 340px 1fr;
  background: var(--off-white);
}
.sidebar {
  background: var(--navy-deep);
  color: var(--off-white);
  display: flex; flex-direction: column; min-width: 0;
}
.side-head, .chat-head {
  display: flex; align-items: center; gap: 0.75rem;
  padding: calc(0.85rem + var(--safe-t)) 1rem 0.85rem;
  min-height: 72px;
}
.side-title { display: none; }
.chat-head {
  background: var(--off-white);
  border-bottom: 1.5px solid var(--mist-light);
  color: var(--ink);
}
.me, .peer-meta { flex: 1; min-width: 0; }
.me strong, .peer-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.me small, .peer-meta small {
  color: var(--mist); font-size: 0.75rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
}
.side-actions, .head-actions { display: flex; gap: 0.15rem; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--cyan); border-radius: 2px;
}
.chat-head .icon-btn { color: var(--navy-deep); }
.icon-btn:hover { background: var(--cyan-glow); }
.avatar {
  width: 40px; height: 40px; border-radius: 2px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  background: var(--cyan); color: var(--navy-deep); flex: none; position: relative;
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.7rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; margin: 0 auto 1rem; }
.avatar .dot {
  position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px;
  background: var(--cyan); border: 2px solid var(--navy-deep); border-radius: 50%;
}
.search-wrap { padding: 0.75rem 1rem; }
.search-wrap input {
  width: 100%; min-height: 44px; border: 1.5px solid rgba(247,247,244,.14);
  background: transparent; color: var(--off-white); padding: 0 0.9rem; border-radius: 2px; outline: none; font-size: 0.9rem;
}
.search-wrap input::placeholder { color: var(--mist); }
.filters { display: flex; gap: 0.4rem; padding: 0 1rem 0.75rem; }
.chip {
  min-height: 32px; padding: 0 0.75rem;
  font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist); border: 1.5px solid rgba(247,247,244,.12); border-radius: 2px;
}
.chip.active { color: var(--navy-deep); background: var(--cyan); border-color: var(--cyan); }
.chat-list { overflow: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.row {
  display: flex; gap: 0.75rem; padding: 0.8rem 1rem; cursor: pointer; align-items: center;
  border-bottom: 1px solid rgba(247,247,244,.06);
}
.row:hover, .row.active { background: rgba(6,249,253,.08); }
.row .meta { flex: 1; min-width: 0; }
.row .top, .row .bot { display: flex; justify-content: space-between; gap: 0.5rem; }
.row .preview { color: var(--mist); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.row .time { color: var(--mist); font-size: 0.68rem; flex: none; }
.row .time.unread { color: var(--cyan); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px;
  background: var(--cyan); color: var(--navy-deep);
  font-size: 0.65rem; font-weight: 800; display: grid; place-items: center;
}

.pane { min-width: 0; position: relative; background: var(--off-white); }
.empty { height: 100%; display: grid; place-items: center; padding: 2rem; }
.empty-card { text-align: center; max-width: 420px; }
.empty-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--navy-deep); margin-bottom: 0.75rem;
}
.empty-card p { color: var(--mist); }
.empty-card .sub { margin-top: 1rem; color: var(--cyan-deep); font-family: var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.7rem; }

.thread { height: 100%; display: grid; grid-template-rows: auto 1fr auto; position: relative; min-width: 0; }
.back { display: none; }
.stage { position: relative; overflow: hidden; background:
  linear-gradient(180deg, #F7F7F4 0%, #ECECE5 100%); }
.messages {
  height: 100%; overflow: auto; padding: 1.25rem 8% 1.5rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  touch-action: pan-y;
}
.day {
  align-self: center; margin: 0.6rem 0;
  font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mist);
}
.bubble-row { display: flex; max-width: 100%; }
.bubble-row.out { justify-content: flex-end; }
.bubble {
  max-width: min(78%, 520px); padding: 0.7rem 0.85rem 0.5rem;
  border-radius: 2px; min-width: 0; overflow: hidden;
}
.bubble.out { background: var(--navy-deep); color: var(--off-white); }
.bubble.in { background: #fff; border: 1.5px solid var(--mist-light); }
.bubble .who { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.bubble .txt { font-size: 0.95rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.bubble .txt a { color: var(--cyan-deep); }
.bubble.out .txt a { color: var(--cyan); }
.bubble .foot { display: flex; justify-content: flex-end; gap: 0.35rem; margin-top: 0.35rem; font-size: 0.68rem; opacity: 0.65; }
.quote {
  border-left: 2px solid var(--cyan); padding: 0.25rem 0.45rem; margin-bottom: 0.4rem;
  font-size: 0.78rem; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bubble.out .quote { border-color: var(--cyan); background: rgba(6,249,253,.08); }
.bubble.in .quote { background: var(--bone); }
.reacts { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.reacts button {
  min-height: 26px; padding: 0 0.4rem; border: 1.5px solid var(--mist-light);
  background: var(--off-white); border-radius: 2px; font-size: 0.78rem;
}
.bubble.out .reacts button { border-color: rgba(247,247,244,.2); background: transparent; color: inherit; }
.reacts button.mine { border-color: var(--cyan); }
.ticks.read { color: var(--cyan); }
.media { max-width: 100%; width: 100%; height: auto; border-radius: 2px; display: block; margin-bottom: 0.4rem; }
.file-chip, .voice {
  display: flex; gap: 0.55rem; align-items: center;
  padding: 0.45rem 0.5rem; margin-bottom: 0.3rem; min-width: 0; width: 100%;
  border: 1.5px solid currentColor; border-radius: 2px; text-decoration: none; color: inherit;
}
.file-chip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bubble.out .file-chip, .bubble.out .voice { border-color: rgba(247,247,244,.25); }
.voice button {
  width: 40px; height: 40px; border-radius: 2px; background: var(--cyan); color: var(--navy-deep); font-size: 0.8rem; flex: none;
}
.voice .wave { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; gap: 2px; }
.voice .wave i { flex: 1; height: 30%; background: currentColor; opacity: .35; border-radius: 1px; }
.voice.playing .wave i { animation: eq 0.7s ease-in-out infinite alternate; }
.voice.playing .wave i:nth-child(2) { animation-delay: .1s; }
.voice.playing .wave i:nth-child(3) { animation-delay: .2s; }
.voice.playing .wave i:nth-child(4) { animation-delay: .15s; }
.voice.playing .wave i:nth-child(5) { animation-delay: .25s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.voice .dur { font-variant-numeric: tabular-nums; font-size: 0.75rem; flex: none; }
.call-chip { font-size: 0.8rem; opacity: 0.8; min-height: 36px; display: flex; align-items: center; gap: 0.4rem; }
.call-chip.tap { cursor: pointer; }

.composer {
  display: flex; align-items: flex-end; gap: 0.4rem;
  padding: 0.55rem 0.85rem calc(0.55rem + var(--safe-b) + var(--kb));
  background: var(--off-white); border-top: 1.5px solid var(--mist-light);
  min-width: 0;
}
.composer.has-text .mic { display: none; }
.composer:not(.has-text) .send { display: none; }
.composer textarea {
  flex: 1; resize: none; max-height: 120px; min-height: 48px; min-width: 0; width: 0;
  border: 1.5px solid var(--navy-deep); border-radius: 2px;
  background: #fff; padding: 0.75rem 0.9rem; font-size: 16px; outline: none;
}
.plus { display: none; }
.plus-tray {
  position: absolute; left: 0.5rem; right: 0.5rem; bottom: calc(62px + var(--safe-b) + var(--kb));
  z-index: 5; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem;
  background: var(--navy-deep); color: var(--off-white); padding: 0.55rem;
  border: 1.5px solid rgba(6,249,253,.3);
}
.plus-tray button {
  min-height: 44px; color: var(--cyan); font-family: var(--font-display);
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1.5px solid rgba(247,247,244,.14);
}
.reply-bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.75rem; background: var(--bone); border-top: 1.5px solid var(--mist-light);
}
.reply-bar div { flex: 1; min-width: 0; }
.reply-bar small { display: block; font-family: var(--font-display); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); }
.reply-bar strong, .reply-bar span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; }
.reply-bar button { width: 36px; height: 36px; color: var(--navy-deep); }
.send, .mic {
  width: 48px; height: 48px; border-radius: 2px;
  background: var(--navy-deep); color: var(--cyan);
  display: grid; place-items: center; flex: none;
  touch-action: none; user-select: none;
}
.send:disabled { opacity: 0.3; }
.mic.is-rec { background: #e23d4d; color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: 0.7; } }
.rec-bar {
  position: absolute; left: 1rem; right: 1rem; bottom: calc(64px + var(--safe-b) + var(--kb));
  z-index: 4; background: var(--navy-deep); color: var(--off-white);
  min-height: 48px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; border-radius: 2px; font-family: var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.7rem;
}
.emoji-pop {
  position: absolute; left: 1rem; right: 1rem; bottom: calc(72px + var(--safe-b) + var(--kb)); z-index: 4;
  background: #fff; border: 1.5px solid var(--navy-deep); border-radius: 2px; padding: 0.6rem;
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.2rem;
}
.emoji-pop button { font-size: 1.3rem; height: 40px; }

.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(20,21,42,.45); display: grid; place-items: end center; }
.sheet-card {
  width: min(480px, 100%); background: var(--off-white);
  border-radius: 2px 2px 0 0; padding: 1rem 1rem calc(1.25rem + var(--safe-b));
}
.sheet-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.sheet-card h3 { font-family: var(--font-display); }

.call-overlay { position: fixed; inset: 0; z-index: 40; background: #07091A; display: grid; place-items: center; }
.call-overlay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #07091A; }
.call-overlay.audio #remote-video, .call-overlay.audio #local-video { opacity: 0; pointer-events: none; }
#local-video {
  width: 96px; height: 132px; right: 16px; bottom: calc(148px + var(--safe-b));
  left: auto; top: auto; border: 1.5px solid var(--cyan); object-fit: cover; z-index: 2; border-radius: 2px;
}
.call-stage {
  position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center;
  color: var(--off-white); padding-top: calc(72px + var(--safe-t));
}
.call-overlay:not(.audio) .call-stage .avatar { display: none; }
.avatar.xl { width: 128px; height: 128px; font-size: 2.4rem; margin-bottom: 1.25rem; }
.call-hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1.25rem 1rem calc(1.75rem + var(--safe-b)); color: var(--off-white);
}
.call-hud strong, .call-stage strong { font-family: var(--font-display); font-size: 1.85rem; letter-spacing: -0.03em; }
.call-hud small, .call-stage small { color: var(--mist-light); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; margin-top: 0.35rem; }
.incoming-native { align-items: stretch; }
.incoming-card {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; padding: calc(52px + var(--safe-t)) 24px calc(36px + var(--safe-b));
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(6,249,253,.14), transparent 55%),
    #07091A;
  color: var(--off-white);
}
.in-hero { position: relative; width: 148px; height: 148px; display: grid; place-items: center; margin: 0 auto 0.5rem; }
.in-hero .avatar { margin: 0; position: relative; z-index: 1; }
.pulse, .pulse.delay {
  position: absolute; inset: 8px; border: 1.5px solid rgba(6,249,253,.35); border-radius: 2px;
  animation: ring 2.4s var(--ease) infinite;
}
.pulse.delay { animation-delay: 0.8s; inset: 0; }
@keyframes ring { 0% { transform: scale(.86); opacity: .7; } 100% { transform: scale(1.28); opacity: 0; } }
.in-app { margin: 0 0 auto; font-family: var(--font-display); letter-spacing: 0.32em; text-transform: uppercase; font-size: 0.7rem; color: var(--cyan); }
.incoming-card h2 { font-family: var(--font-display); font-size: 2.1rem; letter-spacing: -0.03em; margin: 0.6rem 0 0.3rem; text-align: center; }
.call-actions { display: flex; gap: 1.4rem; justify-content: center; margin-top: 2.4rem; width: 100%; }
.call-actions.incall { gap: 0.85rem; margin-top: 0; }
.incoming-actions { justify-content: space-around; padding: 0 1.25rem; }
.fab-wrap { display: grid; gap: 0.55rem; justify-items: center; color: var(--mist); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--font-display); }
.fab {
  width: 64px; height: 64px; border-radius: 2px;
  background: rgba(247,247,244,.1); color: var(--off-white); font-weight: 600;
  display: grid; place-items: center;
}
.fab.phone { width: 72px; height: 72px; border-radius: 50%; }
.fab.up { background: #34c759; color: #fff; }
.fab.down { background: #ff3b30; color: #fff; }
.fab.on { background: var(--cyan); color: var(--navy-deep); }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%);
  z-index: 50; background: var(--navy-deep); color: var(--off-white);
  padding: 0.7rem 1rem; font-size: 0.8rem; border-radius: 2px;
}
.typing { display: inline-flex; gap: 3px; }
.typing i { width: 5px; height: 5px; background: var(--cyan); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { opacity: .35; } 40% { transform: translateY(-3px); opacity: 1; } }

@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .pane { position: absolute; inset: 0; transform: translateX(100%); transition: transform 0.38s var(--ease); }
  .app.chat-open .pane { transform: none; }
  .empty { display: none; }
  .back { display: grid; }
  .messages { padding: 0.55rem 0.45rem 0.7rem; gap: 0.28rem; }
  .bubble { max-width: calc(100% - 28px); padding: 0.55rem 0.6rem 0.4rem; }
  .chat-head {
    min-height: 56px; gap: 0.4rem;
    padding: calc(0.35rem + var(--safe-t)) 0.35rem 0.35rem;
  }
  .chat-head .avatar { width: 36px; height: 36px; font-size: 0.72rem; }
  .chat-head .icon-btn { width: 40px; height: 40px; }
  .peer-meta strong { font-size: 0.9rem; }
  .composer { gap: 0.28rem; padding: 0.4rem 0.45rem calc(0.4rem + var(--safe-b) + var(--kb)); }
  .composer .desk { display: none; }
  .plus { display: grid; width: 40px; height: 44px; color: var(--navy-deep); }
  .send, .mic { width: 44px; height: 44px; }
  .composer textarea { min-height: 44px; padding: 0.55rem 0.65rem; }
  .emoji-pop { grid-template-columns: repeat(6, 1fr); left: 0.45rem; right: 0.45rem; }
  .side-title {
    display: block; padding: 0.15rem 1.1rem 0.55rem;
  }
  .side-title h1 {
    font-family: var(--font-display); font-weight: 800;
    font-size: 2.15rem; letter-spacing: -0.04em; line-height: 1;
  }
  .row { min-height: 72px; padding: 0.85rem 1.05rem; }
  .avatar { width: 48px; height: 48px; }
  .search-wrap input { font-size: 16px; }
  .login-card { width: 100%; }
  .demo-row { grid-template-columns: 1fr; max-height: 28vh; }
  .bubble { max-width: 82%; }
  .call-actions.incall { gap: 0.5rem; padding: 0 0.4rem; }
  .fab.phone { width: 62px; height: 62px; }
}

.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  z-index: 30; display: flex; align-items: center; gap: 0.7rem;
  background: var(--navy-deep); color: var(--off-white);
  padding: 0.7rem 0.75rem; border: 1.5px solid rgba(6,249,253,.35);
}
.install-bar img { border-radius: 2px; flex: none; }
.install-bar div { flex: 1; min-width: 0; }
.install-bar strong { display: block; font-size: 0.82rem; }
.install-bar small { color: var(--mist); font-size: 0.7rem; }
.install-bar button {
  background: var(--cyan); color: var(--navy-deep);
  min-height: 36px; padding: 0 0.75rem; font-weight: 700; font-size: 0.78rem; border-radius: 2px;
}
.install-bar button.text { background: transparent; color: var(--mist); padding: 0 0.35rem; }
.ios-steps { padding: 0.5rem 1.1rem 0.25rem; color: var(--ink); line-height: 1.7; }
.ios-steps li { margin-bottom: 0.45rem; }

html.standalone .install-bar { display: none !important; }
html.on-call { background: #07091A; }

.react-row { display: flex; justify-content: space-between; gap: 0.35rem; margin-bottom: 0.75rem; }
.react-row button { font-size: 1.55rem; width: 44px; height: 44px; }
.sheet-act {
  width: 100%; min-height: 48px; text-align: left; padding: 0 0.2rem;
  font-size: 1rem; border-bottom: 1px solid var(--mist-light); color: var(--ink);
}
.lightbox {
  position: fixed; inset: 0; z-index: 45; background: #07091A;
  display: grid; place-items: center; padding: var(--safe-t) 0 var(--safe-b);
}
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; top: calc(10px + var(--safe-t)); right: 12px;
  width: 44px; height: 44px; color: var(--off-white); font-size: 1.2rem;
}
