:root {
  /* Brand kit: cream, deep teal, pale mint, coral. --green is the brand's primary (teal); the call
     button keeps real green (--call) and hang-up real red, because those two mean the same to everyone. */
  --bg: #FFF7EE;
  --ink: #123F46;
  --muted: #4d686c;
  --card: #ffffff;
  --line: #d6e3de;
  --green: #123F46;
  --green-d: #0b2d32;
  --call: #138a45;
  --call-d: #0d6e36;
  --mint: #DCEEE8;
  --coral: #F17F68;
  --red: #d2382d;
  --red-d: #ad2b22;
  --yellow: #FFE04F;
  --shadow: 0 10px 30px rgba(40, 30, 10, 0.16);
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;   /* no double-tap zoom */
  overflow: hidden;
}
[hidden] { display: none !important; }
.ic { width: 1em; height: 1em; flex: none; }

.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 20px) 20px calc(env(safe-area-inset-bottom) + 20px);
  z-index: 10;
}
.center { align-items: center; justify-content: center; text-align: center; gap: 14px; }
h1 { font-size: calc(32px * var(--fs, 1)); line-height: 1.15; margin: 8px 0 0; letter-spacing: -0.01em; }
h2 { font-size: calc(28px * var(--fs, 1)); line-height: 1.2; margin: 0; }
.lead { font-size: calc(22px * var(--fs, 1)); line-height: 1.4; color: var(--muted); margin: 0; max-width: 26ch; }
.small { font-size: calc(17px * var(--fs, 1)); line-height: 1.4; color: var(--muted); margin: 0; max-width: 30ch; }

.big-icon {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mint); color: var(--ink); font-size: calc(52px * var(--fs, 1));
}
.big-icon.ok { background: var(--mint); color: var(--green); }
.big-icon.warn { background: #fdeccc; color: #9a5b00; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 68px; padding: 0 24px; border: 0; border-radius: 20px;
  font-family: inherit; font-size: calc(22px * var(--fs, 1)); line-height: 1; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn .ic { font-size: calc(26px * var(--fs, 1)); }
.btn.green { background: var(--green); color: #fff; }
.btn.green:active { background: var(--green-d); }
.btn.light { background: var(--mint); color: var(--ink); }
.btn.wide { width: min(100%, 360px); margin-top: 6px; }

/* ---------- home ---------- */
.home { align-items: center; justify-content: space-between; text-align: center; }
.greet { font-size: calc(36px * var(--fs, 1)); font-weight: 800; margin: 24px 0 0; letter-spacing: -0.01em; }
.ring {
  border: 0; background: none; padding: 0; color: var(--ink); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  font-family: inherit;
}
.ring-disc {
  width: min(62vw, 250px); height: min(62vw, 250px); border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #22b25c, var(--call) 60%, var(--call-d));
  color: #fff; font-size: min(26vw, 108px);
  box-shadow: 0 0 0 0 rgba(19, 138, 69, 0.35), 0 18px 40px rgba(13, 110, 54, 0.35);
  animation: breathe 2.8s ease-in-out infinite;
}
.ring:active .ring-disc { transform: scale(0.96); }
.ring-label { font-size: calc(40px * var(--fs, 1)); font-weight: 800; letter-spacing: -0.01em; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(19, 138, 69, 0.30), 0 18px 40px rgba(13, 110, 54, 0.32); }
  50% { box-shadow: 0 0 0 22px rgba(19, 138, 69, 0), 0 18px 40px rgba(13, 110, 54, 0.32); }
}
.home-help { font-size: calc(21px * var(--fs, 1)); line-height: 1.45; color: var(--muted); margin: 0 0 8px; max-width: 24ch; }
.home-foot { display: flex; align-items: center; gap: 10px; margin-top: -12px; }
.repair {
  border: 0; background: none; color: #6d8588; font: inherit; font-size: calc(15px * var(--fs, 1)); padding: 8px 6px;
  text-decoration: underline; text-underline-offset: 3px;
}
.ver { color: #8fa5a6; font-size: calc(13px * var(--fs, 1)); }

/* ---------- install + pairing ---------- */
.app-icon { border-radius: 16px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.install { align-items: stretch; gap: 12px; overflow-y: auto; padding-top: calc(env(safe-area-inset-top) + 14px); }
.install-head { display: flex; align-items: center; gap: 12px; }
.install-head .app-icon { border-radius: 10px; flex: none; }
.install h1 { font-size: calc(24px * var(--fs, 1)); margin: 0; line-height: 1.2; }
.isteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.isteps li { display: flex; align-items: center; gap: 12px; font-size: calc(21px * var(--fs, 1)); font-weight: 700; line-height: 1.3; min-height: 46px; }
.istep-n {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: calc(19px * var(--fs, 1));
}
.itip { margin: 0; font-size: calc(16px * var(--fs, 1)); color: var(--muted); line-height: 1.4; }
.once { margin: 0; font-size: calc(16px * var(--fs, 1)); color: var(--muted); }
/* drawn stand-ins for the real iOS buttons */
.key {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin: 0 2px;
  background: #eef3ff; color: #0a60e0; border: 1.5px solid #c9d8f7; border-radius: 10px;
  padding: 3px 8px; font-size: calc(18px * var(--fs, 1)); font-weight: 700; line-height: 1.2;
}
.key .ic { font-size: calc(24px * var(--fs, 1)); }
/* big arrow pointing at where the button actually is */
.pointer { position: fixed; z-index: 20; color: var(--coral); font-size: calc(64px * var(--fs, 1)); pointer-events: none; filter: drop-shadow(0 4px 8px rgba(19, 138, 69, 0.35)); }
.pointer .ic { stroke-width: 2.6; }
.pointer.top-right { top: calc(env(safe-area-inset-top) + 2px); right: 18px; animation: nudgeUp 1.1s ease-in-out infinite; }
.pointer.bottom { bottom: calc(env(safe-area-inset-bottom) + 6px); left: 50%; margin-left: -32px; transform: rotate(180deg); animation: nudgeDown 1.1s ease-in-out infinite; }
.pointer.bottom-right { bottom: calc(env(safe-area-inset-bottom) + 6px); right: 14px; transform: rotate(180deg); animation: nudgeDown 1.1s ease-in-out infinite; }
@keyframes nudgeUp { 50% { translate: 0 -12px; } }
@keyframes nudgeDown { 50% { translate: 0 12px; } }
.pair-input {
  width: min(100%, 360px); font: inherit; font-size: calc(38px * var(--fs, 1)); font-weight: 800; letter-spacing: 0.08em;
  text-align: center; padding: 16px 12px; border-radius: 20px; border: 3px solid var(--line);
  background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text;
}
.pair-input:focus { outline: none; border-color: var(--green); }
.pair-input::placeholder { color: #c3d3ce; }
.pair-msg { min-height: 1.4em; font-size: calc(20px * var(--fs, 1)); line-height: 1.4; margin: 0; max-width: 26ch; color: var(--muted); }
.pair-msg.bad { color: var(--red); font-weight: 700; }
.pair-msg.ok { color: var(--green); font-weight: 800; font-size: calc(24px * var(--fs, 1)); }

/* ---------- camera layer ---------- */
#camLayer { position: fixed; inset: 0; background: #000; z-index: 1; }
#local { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#frozen { position: absolute; inset: 0; background: #0b0b0b; z-index: 2; }
#frozen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#fInk.pulse { animation: inkPulse 0.5s ease-in-out 3; }
@keyframes inkPulse { 50% { opacity: 0.25; } }

/* ---------- call ui ---------- */
.call { justify-content: space-between; pointer-events: none; }
.call > * { pointer-events: auto; }
.top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0, 0, 0, 0.62); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-size: calc(20px * var(--fs, 1)); font-weight: 700;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: #f5b400; animation: blink 1.2s infinite; }
.status.live .dot { background: #32d26a; animation: none; }
@keyframes blink { 50% { opacity: 0.3; } }
.hint {
  margin: 0; text-align: center; color: #fff; font-size: calc(22px * var(--fs, 1)); font-weight: 700; line-height: 1.35;
  background: rgba(0, 0, 0, 0.55); padding: 12px 18px; border-radius: 18px; max-width: 22ch;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hint:empty { display: none; }
.textcard {
  position: relative; width: 100%; max-width: 520px;
  background: var(--yellow); color: #1b1600; border-radius: 22px;
  padding: 22px 64px 22px 22px; box-shadow: var(--shadow);
  animation: pop 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.textcard p { margin: 0; font-size: calc(30px * var(--fs, 1)); line-height: 1.25; font-weight: 800; }
.textclose {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, 0.1); color: #1b1600; font-size: calc(22px * var(--fs, 1)); display: grid; place-items: center;
}
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }

.sheet {
  background: var(--card); border-radius: 26px; padding: 26px 22px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px; text-align: center; align-items: stretch;
  width: 100%; max-width: 460px; align-self: center;
}
.sheet p { font-size: calc(20px * var(--fs, 1)); line-height: 1.4; color: var(--muted); margin: 0 0 6px; }
.sheet-icon:empty { display: none; }
.sheet-icon { align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); font-size: calc(32px * var(--fs, 1)); }

.bottom { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hangup {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: min(100%, 360px); min-height: 76px; border: 0; border-radius: 999px;
  background: var(--red); color: #fff; font-family: inherit; font-size: calc(26px * var(--fs, 1)); line-height: 1; font-weight: 800;
  box-shadow: 0 10px 26px rgba(150, 30, 20, 0.4);
}
.hangup .ic { font-size: calc(32px * var(--fs, 1)); }
.hangup:active { background: var(--red-d); }

.texticon { display: flex; justify-content: center; margin-bottom: 8px; font-size: calc(64px * var(--fs, 1)); }
.texticon .ic { animation: turn 2.2s ease-in-out infinite; }
@keyframes turn { 0%, 25% { transform: rotate(90deg); } 55%, 100% { transform: rotate(0deg); } }

/* ---------- phone on its side ---------- */
@media (orientation: landscape) and (max-height: 540px) {
  .screen {
    padding: calc(env(safe-area-inset-top) + 10px) calc(env(safe-area-inset-right) + 16px)
             calc(env(safe-area-inset-bottom) + 10px) calc(env(safe-area-inset-left) + 16px);
  }
  .center { overflow-y: auto; justify-content: safe center; gap: 10px; }
  h1 { font-size: calc(26px * var(--fs, 1)); }
  .big-icon { width: 72px; height: 72px; font-size: calc(36px * var(--fs, 1)); flex: none; }
  .btn { min-height: 54px; font-size: calc(20px * var(--fs, 1)); }

  .home { flex-direction: row; flex-wrap: wrap; align-content: center; justify-content: center; column-gap: 48px; row-gap: 8px; }
  .greet { width: 100%; margin: 0; font-size: calc(28px * var(--fs, 1)); }
  .ring { gap: 10px; }
  .ring-disc { width: min(50vh, 200px); height: min(50vh, 200px); font-size: min(22vh, 88px); }
  .ring-label { font-size: calc(30px * var(--fs, 1)); }
  .home-help { max-width: 26ch; text-align: left; font-size: calc(19px * var(--fs, 1)); margin: 0; }
  .home-foot { margin: 0; }
  .pair-input { font-size: calc(30px * var(--fs, 1)); padding: 10px; }

  .status { font-size: calc(16px * var(--fs, 1)); padding: 8px 14px; }
  .hint { font-size: calc(18px * var(--fs, 1)); padding: 8px 14px; max-width: 40ch; }
  .bottom { flex-direction: row; align-items: flex-end; }
  .textcard { max-width: 62%; padding: 14px 56px 14px 18px; }
  .textcard p { font-size: calc(24px * var(--fs, 1)); }
  .texticon { font-size: calc(44px * var(--fs, 1)); margin-bottom: 4px; }
  .hangup { width: auto; min-height: 60px; padding: 0 28px; font-size: calc(22px * var(--fs, 1)); margin-left: auto; }
  .sheet { max-height: calc(100% - 140px); overflow-y: auto; padding: 16px; gap: 8px; }
  .sheet h2 { font-size: calc(22px * var(--fs, 1)); }
  .sheet p { font-size: calc(17px * var(--fs, 1)); margin: 0; }
  .sheet-icon { width: 48px; height: 48px; font-size: calc(24px * var(--fs, 1)); }
}

/* ---------- guides ---------- */
.guides-btn {
  display: inline-flex; align-items: center; gap: 10px; border: 2px solid var(--line); background: var(--card);
  color: var(--ink); font: inherit; font-size: calc(20px * var(--fs, 1)); font-weight: 700; padding: 12px 22px; border-radius: 999px;
}
.home-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: -8px; }
.home-row:not(:has(button:not([hidden]))) { display: none; }
.guides-btn .ic { font-size: calc(24px * var(--fs, 1)); color: var(--coral); }
.glist, .gview { gap: 12px; overflow-y: auto; }
.ghead { display: flex; align-items: center; justify-content: space-between; }
.backbtn {
  display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--green);
  font: inherit; font-size: calc(20px * var(--fs, 1)); font-weight: 700; padding: 8px 4px;
}
.backbtn .ic { font-size: calc(24px * var(--fs, 1)); }
.small-lead { font-size: calc(18px * var(--fs, 1)); max-width: none; }
.gcards { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.gcard {
  display: flex; gap: 14px; align-items: center; text-align: left; width: 100%;
  background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 10px; font: inherit; color: var(--ink);
}
.gcard canvas { width: 96px; height: 96px; border-radius: 14px; background: #222; flex: none; }
.gcard-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gcard-info b { font-size: calc(21px * var(--fs, 1)); line-height: 1.25; }
.gcard-info span { font-size: calc(16px * var(--fs, 1)); color: var(--muted); }
.gcount { font-size: calc(18px * var(--fs, 1)); font-weight: 700; color: var(--muted); }
.gvtitle { margin: 0; font-size: calc(22px * var(--fs, 1)); font-weight: 800; }
.gvimg { flex: 1; min-height: 200px; background: #111; border-radius: 18px; overflow: hidden; position: relative; }
.gvimg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gvtext { margin: 0; background: var(--yellow); color: #1b1600; border-radius: 18px; padding: 14px 16px; font-size: calc(24px * var(--fs, 1)); font-weight: 800; line-height: 1.3; }
.gvnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.gvnav .btn:disabled { opacity: 0.35; }
.iconround {
  width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--mint); color: var(--ink);
  display: grid; place-items: center; font-size: calc(28px * var(--fs, 1));
}
/* "here!" dot from the helper */
.ping { position: absolute; z-index: 4; width: 0; height: 0; pointer-events: none; }
.ping::before, .ping::after {
  content: ''; position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  background: #ff2a2a; box-shadow: 0 0 0 4px #fff, 0 4px 14px rgba(0, 0, 0, 0.4);
}
.ping::after { background: transparent; border: 5px solid #ff2a2a; box-shadow: none; animation: pingRing 1s ease-out 3; }
@keyframes pingRing { from { transform: scale(1); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }

/* ---------- notes ---------- */
.notecard { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 16px 70px 16px 18px; }
.notecard b { display: block; font-size: calc(24px * var(--fs, 1)); line-height: 1.25; margin-bottom: 6px; }
.notecard p { margin: 0; font-size: calc(22px * var(--fs, 1)); line-height: 1.4; white-space: pre-wrap; -webkit-user-select: text; user-select: text; }
.iconround.small { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; font-size: calc(22px * var(--fs, 1)); }

/* ---------- start screen 2.12: ring button(s) + self-help tiles ---------- */
.home { overflow-y: auto; }
.ringwrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.home.compact { justify-content: flex-start; gap: 18px; }
.home.compact .greet { margin-top: 8px; font-size: calc(30px * var(--fs, 1)); }
.home.compact .ring { gap: 12px; }
.home.compact .ring-disc { width: min(44vw, 170px); height: min(44vw, 170px); font-size: min(18vw, 72px); }
.home.compact .ring-label { font-size: calc(30px * var(--fs, 1)); }
.ringwrap.multi .ring-disc { width: min(33vw, 128px); height: min(33vw, 128px); font-size: min(14vw, 54px); }
.ringwrap.multi .ring-label { font-size: calc(24px * var(--fs, 1)); }
.tilesbox { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 10px; }
.tiles-title { margin: 6px 0 0; font-size: calc(19px * var(--fs, 1)); font-weight: 700; color: var(--muted); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; min-height: 104px;
  background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 14px; font: inherit; color: var(--ink);
}
.tile:active { border-color: var(--green); }
.tile .ic { font-size: calc(30px * var(--fs, 1)); color: var(--coral); margin-bottom: 2px; }
.tile b { font-size: calc(20px * var(--fs, 1)); line-height: 1.2; }
.tile span { font-size: calc(15px * var(--fs, 1)); color: var(--muted); }
.home .home-foot { margin-top: auto; padding-top: 6px; }
.ringstack { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; margin-top: 8px; }
.ringlead { margin: 4px 0 0; font-size: calc(19px * var(--fs, 1)); font-weight: 700; color: var(--muted); }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 12px 14px 12px 18px; }
.hrow b { font-size: calc(24px * var(--fs, 1)); }
.hrow .btn { min-height: 52px; font-size: calc(18px * var(--fs, 1)); }
.notefrom { display: block; margin-top: 8px; font-size: calc(15px * var(--fs, 1)); color: var(--muted); }
@media (orientation: landscape) and (max-height: 540px) {
  .home, .home.compact { flex-direction: column; flex-wrap: nowrap; align-content: normal; justify-content: flex-start; row-gap: 12px; }
  .home .greet { width: auto; }
  .home.compact .ring-disc, .ring-disc { width: min(34vh, 130px); height: min(34vh, 130px); font-size: min(15vh, 56px); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tilesbox { max-width: 700px; }
}

/* ---------- settings: text size + language ---------- */
.set-h { font-size: calc(20px * var(--fs, 1)); margin: 14px 0 0; }
.seg { display: flex; gap: 8px; }
.seg.wrap { flex-wrap: wrap; }
.seg button {
  flex: 1; min-height: 56px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 16px; font: inherit; font-size: calc(19px * var(--fs, 1)); font-weight: 700; padding: 0 14px; white-space: nowrap;
}
.seg button.on { border-color: var(--green); background: var(--mint); color: var(--green-d); }
.glist .btn.wide { align-self: center; }

/* ---------- QR scanner ---------- */
.scanlayer { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: 14px; padding: 20px 20px calc(env(safe-area-inset-bottom) + 24px); }
#scanVideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanframe { position: absolute; left: 50%; top: 42%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 4px solid #fff; border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45); }
.scanhint { position: relative; margin: 0; color: #fff; font-size: calc(21px * var(--fs, 1)); font-weight: 700; text-align: center; max-width: 24ch; text-shadow: 0 1px 4px #000; }
.scanlayer .btn { position: relative; }

/* settings button on the start screen: big enough to see and hit */
.setbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 20px;
  border: 2px solid #b5cfc8; border-radius: 16px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; font-size: calc(19px * var(--fs, 1));
}
.setbtn .ic { width: 26px; height: 26px; flex: none; }
.setbtn:active { background: #c9e2da; }
.home-foot { margin-top: 0; justify-content: space-between; width: 100%; }

/* microphone on/off during a call */
.mutebtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: min(100%, 360px); min-height: 60px; padding: 8px 20px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: #1c1a17; font-family: inherit; font-weight: 700;
  font-size: calc(20px * var(--fs, 1)); line-height: 1.15; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.mutebtn .ic { width: 28px; height: 28px; flex: none; }
.mutebtn.off { background: #f5b400; }
.mutednote {
  margin: 10px auto 0; padding: 10px 16px; border-radius: 14px; background: #f5b400; color: #1c1a17;
  font-weight: 800; font-size: calc(22px * var(--fs, 1)); text-align: center; max-width: 24ch;
}
@media (orientation: landscape) and (max-height: 540px) {
  .mutebtn { width: auto; min-height: 60px; font-size: calc(18px * var(--fs, 1)); }
  .mutednote { font-size: calc(18px * var(--fs, 1)); padding: 6px 12px; }
}
.bottom .mutebtn { margin-bottom: 8px; }

/* brand illustration on the pairing screen */
.pair-art { width: min(52vw, 220px); height: auto; align-self: center; }
@media (orientation: landscape) and (max-height: 540px) { .pair-art { display: none; } }

/* buttons that place a call stay green */
.btn.green.callbtn { background: var(--call); }
.btn.green.callbtn:active { background: var(--call-d); }

/* practice mode */
.home-foot { flex-wrap: wrap; justify-content: flex-start; }
.home-foot .ver { margin-left: auto; }
.status.practice { background: #f5b400; color: #1c1a17; }
.status.practice .dot { background: #1c1a17; }

/* microphone button: a small round button beside Lägg på, and a small note when it is off */
.callrow { display: flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 360px); }
.callrow .hangup { flex: 1; width: auto; }
.callrow .mutebtn { flex: none; width: 64px; height: 64px; min-height: 0; padding: 0; margin: 0; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.callrow .mutebtn .ic { width: 30px; height: 30px; }
#muteLabel { display: none; }
.mutednote { margin: 8px auto 0; padding: 5px 12px; border-radius: 999px; font-size: calc(15px * var(--fs, 1)); font-weight: 700; max-width: none; width: fit-content; }
@media (orientation: landscape) and (max-height: 540px) {
  .callrow { width: auto; margin-left: auto; }
  .callrow .hangup { flex: none; margin-left: 0; }
  .callrow .mutebtn { width: 56px; height: 56px; }
  .mutednote { font-size: calc(14px * var(--fs, 1)); padding: 4px 10px; }
}

/* pairing screen: the logo on top, a smaller picture, room for the text */
.pair-logo { width: min(46vw, 180px); height: auto; align-self: center; margin-bottom: 2px; }
.pair-art { width: min(40vw, 170px); }
#pair h1 { font-size: calc(28px * var(--fs, 1)); line-height: 1.15; }
@media (orientation: landscape) and (max-height: 540px) { .pair-logo { display: none; } }
/* centred when there is room, from the top (and scrollable) when there isn't, so the logo is never cut off */
#pair { justify-content: flex-start; overflow-y: auto; }
#pair > :first-child { margin-top: auto; }
#pair > :last-child { margin-bottom: auto; }
@media (max-height: 700px) { .pair-art { width: min(30vw, 120px); } .pair-logo { width: min(40vw, 150px); } }

/* a helper is ringing */
.big-icon.ringing { background: #dff3e6; color: var(--call); animation: ringing 1.2s ease-out infinite; }
@keyframes ringing { 0% { box-shadow: 0 0 0 0 rgba(19, 138, 69, 0.45); } 100% { box-shadow: 0 0 0 34px rgba(19, 138, 69, 0); } }
.inviteyes { min-height: 84px; font-size: calc(30px * var(--fs, 1)); }

/* language buttons: two even columns, so the last one isn't stretched across the whole row */
#langRow { display: grid; grid-template-columns: 1fr 1fr; }
