/* Phone mockup on the dashboard: iPhone frame, WhatsApp (dark) chat and the DeckVox
   keyboard. Colors were sampled from screenshots of the real iOS keyboard extension. */

.phone-column { display: flex; justify-content: center; align-items: flex-start; min-width: 0; }

.iphone {
  --srk-bg: #2c2c2c;
  --srk-key: #4f4f4f;
  --srk-key-down: #6c6c6c;
  --srk-blue: #0a91fb;
  --srk-card: #333333;
  --srk-line: #505050;
  --srk-muted: #8e8e93;
  --wa-bar: #101010;
  --wa-bg: #0b0b0b;
  --wa-in: #262628;
  --wa-out: #005c4b;
  --wa-text: #e9edef;
  --wa-meta: rgba(233, 237, 239, 0.6);
  --wa-link: #53bdeb;
  --wa-green: #21c063;
  width: 404px;
  max-width: 100%;
  height: min(880px, calc(100vh - 92px));
  min-height: 720px;
  padding: 11px;
  border-radius: 60px;
  background: linear-gradient(145deg, #2a2a2d, #121214 60%);
  box-shadow: 0 0 0 1.5px #3b3b3f, 0 30px 60px rgba(0, 0, 0, 0.28), inset 0 0 2px rgba(255, 255, 255, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.iphone-screen {
  position: relative;
  height: 100%;
  border-radius: 49px;
  overflow: hidden;
  background: var(--wa-bg);
  display: flex;
  flex-direction: column;
  color: var(--wa-text);
}

.iphone button { font-family: inherit; }

/* ---------- iOS status bar ---------- */
.ios-status {
  flex: none;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 40px;
  background: var(--wa-bar);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  position: relative;
}
.ios-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 114px; height: 33px; border-radius: 20px; background: #000; }
.ios-icons { display: inline-flex; align-items: center; gap: 6px; color: #fff; }

/* ---------- WhatsApp header ---------- */
.wa-header {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 4px;
  background: var(--wa-bar);
  border-bottom: 1px solid #1e1e1e;
  color: #fff;
}
.wa-back { display: flex; color: #fff; }
.wa-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: #5b6b73; color: #fff; font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.wa-peer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wa-peer strong { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-peer span { font-size: 12px; color: var(--srk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-head-ic { display: flex; color: #fff; margin-left: 14px; }

/* ---------- chat ---------- */
.wa-chat-wrap { position: relative; flex: 1; min-height: 0; }
.wa-chat {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 12px 10px;
  background-color: var(--wa-bg);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.025) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02) 0 3px, transparent 4px),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.02) 0 1.5px, transparent 2.5px);
  background-size: 46px 46px, 62px 62px, 38px 38px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3a transparent;
}
.wa-messages { display: flex; flex-direction: column; }
.wa-empty { margin: 40px auto; color: var(--srk-muted); font-size: 13px; text-align: center; }

.wa-day { align-self: center; margin: 12px 0 6px; }
.wa-day span { display: inline-block; background: #1d1f1f; color: #9a9a9f; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px; }

.wa-row { display: flex; margin-top: 2px; }
.wa-row.first { margin-top: 8px; }
.wa-row.in { justify-content: flex-start; }
.wa-row.out { justify-content: flex-end; }

.wa-bubble {
  position: relative;
  max-width: 82%;
  padding: 6px 8px 7px 9px;
  border-radius: 13px;
  font-size: 15px;
  line-height: 1.34;
  color: var(--wa-text);
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.3);
}
.wa-row.in .wa-bubble { background: var(--wa-in); }
.wa-row.out .wa-bubble { background: var(--wa-out); }
.wa-row.first.in .wa-bubble { border-top-left-radius: 0; }
.wa-row.first.out .wa-bubble { border-top-right-radius: 0; }
.wa-row.first .wa-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 13px;
  background: inherit;
}
.wa-row.first.in .wa-bubble::before { left: -7px; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-row.first.out .wa-bubble::before { right: -7px; clip-path: polygon(0 0, 100% 0, 0 100%); }

.wa-label { font-size: 11px; font-style: italic; color: var(--wa-meta); margin-bottom: 2px; }
.wa-text { display: inline; white-space: pre-wrap; }
.wa-text a { color: var(--wa-link); text-decoration: underline; }
/* Invisible spacer so the time never overlaps the last line of text. */
.wa-bubble .wa-text::after { content: ""; display: inline-block; width: 40px; height: 1px; }
.wa-row.out .wa-bubble .wa-text::after { width: 60px; }

.wa-meta-slot { position: absolute; right: 8px; bottom: 4px; }
.wa-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--wa-meta); white-space: nowrap; }
.wa-tick { display: inline-flex; color: var(--wa-meta); }
.wa-tick.read { color: var(--wa-link); }
.wa-tick.failed { color: #f15c6d; font-weight: 800; font-size: 12px; padding: 0 2px; }

/* image / video */
.wa-bubble.media, .wa-bubble.sticker { padding: 3px; }
.wa-img { display: block; }
.wa-img img { display: block; width: 100%; max-width: 262px; max-height: 330px; min-width: 120px; object-fit: cover; border-radius: 10px; background: #1a1a1a; }
.wa-bubble.sticker { background: transparent !important; box-shadow: none; }
.wa-bubble.sticker::before { display: none; }
.wa-bubble.media .wa-text { display: block; padding: 5px 6px 3px; }
.wa-bubble.media .wa-meta-slot { right: 9px; bottom: 7px; }
.wa-bubble.media:not(:has(.wa-text)) .wa-meta { background: rgba(0, 0, 0, 0.42); color: #fff; padding: 1px 6px; border-radius: 9px; }
.wa-bubble.media:not(:has(.wa-text)) .wa-tick:not(.read) { color: #fff; }
.wa-video { display: block; width: 250px; max-width: 100%; border-radius: 10px; background: #000; }

/* document */
.wa-doc { display: flex; align-items: center; gap: 8px; min-width: 210px; padding: 10px; margin-bottom: 16px; border-radius: 9px; background: rgba(0, 0, 0, 0.2); color: var(--wa-text); text-decoration: none; }
.wa-doc-ic { color: #ff6b6b; display: flex; }
.wa-doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }

/* voice note */
.wa-bubble.voice { width: 272px; padding: 7px 9px 5px 5px; }
.wa-voice-main { display: flex; align-items: center; gap: 6px; }
.wa-voice-play {
  flex: none; width: 36px; height: 36px; border: none; background: none; padding: 0;
  display: flex; align-items: center; justify-content: center; color: #d5dade; cursor: pointer;
}
.wa-voice-track { position: relative; flex: 1; height: 30px; cursor: pointer; }
.wa-voice-wave { display: flex; align-items: center; gap: 2px; height: 100%; }
.wa-voice-wave i { flex: 1; min-height: 3px; border-radius: 2px; background: rgba(233, 237, 239, 0.32); transition: background-color 0.12s; }
.wa-voice-wave i.on { background: #e9edef; }
.wa-voice-knob {
  position: absolute; top: 50%; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--wa-link); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}
.wa-voice.heard .wa-voice-knob { background: #9aa3a8; }
.wa-voice-mic { flex: none; width: 28px; display: flex; justify-content: center; color: var(--wa-link); }
.wa-row.out .wa-voice-mic { color: #7ee2b8; }
.wa-voice-foot { height: 15px; padding-left: 42px; font-size: 11px; color: var(--wa-meta); }

.wa-jump {
  position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: #1f1f21; color: var(--wa-text); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.wa-jump[hidden] { display: none; }

.wa-window-note { flex: none; background: #3a2e12; color: #f6c86c; font-size: 12px; padding: 6px 14px; text-align: center; }
.wa-window-note[hidden] { display: none; }

/* ---------- WhatsApp composer (real textarea: type with the computer keyboard) ---------- */
.wa-composer {
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 7px 10px 9px 8px;
  background: var(--wa-bar);
}
.wa-ic { display: flex; align-items: center; height: 38px; color: #fff; flex: none; }
.wa-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  min-height: 38px;
  padding: 0 8px 0 14px;
  border-radius: 19px;
  background: #282828;
  border: 1px solid #333;
}
.wa-field:focus-within { border-color: #3d3d3d; }
.wa-field textarea {
  flex: 1;
  min-width: 0;
  height: 36px;
  max-height: 120px;
  padding: 8px 0;
  border: none;
  outline: none;
  resize: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 20px;
  caret-color: var(--wa-green);
  scrollbar-width: thin;
}
.wa-field textarea::placeholder { color: #8e8e93; }
.wa-field .wa-ic { height: 36px; margin-left: 6px; }
.wa-mic, .wa-send {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--wa-green); color: #04210f; display: flex; align-items: center; justify-content: center;
}
.wa-send { display: none; }
.wa-composer.has-text .wa-send { display: flex; }
.wa-composer.has-text .wa-mic, .wa-composer.has-text .wa-camera { display: none; }
.wa-composer.sending .wa-send { opacity: 0.5; pointer-events: none; }

/* ---------- DeckVox keyboard ---------- */
.srk {
  flex: none;
  position: relative;
  height: 316px;
  display: grid;
  grid-template-rows: 48px 38px minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  background: var(--srk-bg);
  border-radius: 22px 22px 0 0;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}
.srk input, .srk textarea { user-select: text; -webkit-user-select: text; }

.srk-toolbar { display: flex; align-items: center; gap: 1px; padding: 8px 8px 0 10px; min-width: 0; }
.srk-pill {
  flex: 0 1 auto; min-width: 0; max-width: 170px; height: 34px; margin-right: 4px;
  display: inline-flex; align-items: center; gap: 7px; padding: 0 10px 0 12px;
  border: none; border-radius: 17px; background: #161616; color: var(--srk-blue);
  font-size: 15.5px; font-weight: 700; cursor: pointer;
}
.srk-pill .ic { flex: none; }
.srk-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srk-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8e8e96; display: inline-block; }
.srk-dot.open { background: #30d158; }
.srk-tool {
  flex: none; width: 40px; height: 40px; padding: 0; border: none; border-radius: 10px;
  background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.srk-tool:hover { background: rgba(255, 255, 255, 0.07); }
.srk-tool.on { color: var(--srk-muted); }
.srk-spacer { flex: 1; }
.srk-right { margin-left: 2px; }

.srk-predict { display: flex; align-items: center; border-top: 1px solid #363636; border-bottom: 1px solid #363636; }
.srk-sugg {
  flex: 1; min-width: 0; height: 100%; padding: 0 6px; border: none; background: none; color: #fff;
  font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.srk-sugg:disabled { cursor: default; }
.srk-sugg.best { font-weight: 600; }
.srk-sugg:not(:disabled):hover { background: rgba(255, 255, 255, 0.05); }
.srk-sugg-div { width: 1px; height: 52%; background: #5c5c5c; flex: none; }

.srk-body { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.srk-field-slot { flex: none; min-width: 0; }
.srk-main { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }

/* internal field ("campo interno") */
.srk-field {
  margin: 7px 8px 0;
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 3px 8px 3px 4px;
  border: 2px solid #1a8cec; border-radius: 12px; background: #262f38;
}
.srk-field-x, .srk-field-ok {
  flex: none; width: 34px; height: 34px; padding: 0; border: none; background: none; color: var(--srk-blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.srk-field-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.srk-field-label { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk .srk-field-input {
  width: 100%; height: 20px; padding: 0; margin: 0; border: none; outline: none; resize: none; overflow: hidden;
  background: transparent; color: #fff; font: inherit; font-size: 14.5px; line-height: 20px; caret-color: var(--srk-blue);
}
.srk .srk-field-input::placeholder { color: #d1d1d6; }
.srk-field-count { flex: none; font-size: 13px; color: #d1d1d6; font-variant-numeric: tabular-nums; }

/* keys */
.kb {
  --kw: calc((100cqw - 54px) / 10);
  container-type: inline-size;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 6px 3px 6px;
}
.srk.has-field .kb { gap: 8px; padding-top: 6px; }
.kb-row { display: flex; gap: 6px; justify-content: center; height: 42px; flex: none; }
.srk.has-field .kb-row { height: 36px; }
.kb-row.r3 { justify-content: space-between; }
.kb-mid { display: flex; gap: 6px; justify-content: center; }
.k {
  position: relative;
  flex: none;
  width: var(--kw);
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--srk-key);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  cursor: pointer;
  touch-action: manipulation;
}
.kb.numbers .k.ch, .kb.symbols .k.ch { font-size: 21px; }
.kb-mid.punct .k { width: calc(var(--kw) * 1.42); }
.k.fn { font-size: 16px; }
.k.shift, .k.back { width: calc(var(--kw) * 1.32 + 2px); }
.k.shift.on { background: #e5e5ea; color: #111; }
.k.mode { width: calc(var(--kw) * 1.27); }
.k.space { flex: 1; width: auto; font-size: 16px; }
.k.ret { width: calc(var(--kw) * 2.6); }
.k.pressed { background: var(--srk-key-down); }
/* iOS-style callout above a pressed letter */
.k.ch.pressed::after {
  content: attr(data-k);
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  transform: translateX(-50%);
  width: calc(100% + 18px);
  height: 52px;
  border-radius: 10px;
  background: var(--srk-key-down);
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  z-index: 5;
  pointer-events: none;
}

/* emoji */
.srk-emoji { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.srk-emoji-grid {
  flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr);
  align-content: start; gap: 2px; padding: 6px 8px; scrollbar-width: thin; scrollbar-color: #555 transparent;
}
.srk-emo { height: 40px; border: none; border-radius: 8px; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 0; }
.srk-emo:hover { background: rgba(255, 255, 255, 0.08); }
.srk-emoji-bar { flex: none; height: 42px; display: flex; align-items: center; gap: 3px; padding: 0 6px 6px; }
.srk-emoji-abc { height: 32px; padding: 0 12px; border: none; border-radius: 8px; background: var(--srk-key); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.srk-emoji-tab { width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: none; font-size: 18px; cursor: pointer; }
.srk-emoji-tab.on { background: rgba(255, 255, 255, 0.15); }
.srk-emoji-back { margin-left: auto; width: 40px; height: 32px; border: none; background: none; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* panels */
.srk-panel {
  flex: 1; min-height: 0; min-width: 0; overflow-x: hidden; overflow-y: auto; padding: 10px 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: #555 transparent;
}
.srk-h { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: #fff; }
.srk-card {
  position: relative; flex: none; display: flex; align-items: center; gap: 14px;
  padding: 9px 14px; border: 1px solid var(--srk-line); border-radius: 14px; background: var(--srk-card); color: #fff;
}
.srk-card > .ic:first-child { flex: none; color: #fff; }
.srk-card-btn { cursor: pointer; }
.srk-card-btn:hover { background: #393939; }
.srk-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.srk-card-text small { font-size: 13px; color: var(--srk-muted); }
.srk-card-text strong { font-size: 16.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-chev { flex: none; color: var(--srk-muted); }
.srk-card-clear { flex: none; width: 28px; height: 28px; border: none; border-radius: 50%; background: #4a4a4a; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.srk-select select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.srk-note { margin: 0 2px; font-size: 14px; color: #c7c7cc; }
.srk-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.srk-btn { height: 40px; padding: 0 20px; border: none; border-radius: 20px; font-size: 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.srk-btn.primary { background: var(--srk-blue); color: #fff; }
.srk-btn.ghost { background: transparent; color: var(--srk-blue); padding: 0 12px; }
.srk-btn.dark { background: #161616; color: #fff; }
.srk-btn:disabled { cursor: default; }
.srk-btn.primary:disabled, .srk-btn.ghost:disabled { opacity: 0.4; }
.srk-btn.dark:disabled { background: #050505; color: #4d4d4d; }
.srk-back {
  align-self: flex-start; flex: none; display: inline-flex; align-items: center; gap: 2px;
  height: 36px; padding: 0 14px 0 8px; border: none; border-radius: 18px; background: #161616;
  color: var(--srk-blue); font-size: 16px; font-weight: 600; cursor: pointer;
}
.srk-empty { margin: 18px 0; text-align: center; color: var(--srk-muted); font-size: 14px; }

.srk-chips { flex: none; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.srk-chips::-webkit-scrollbar { display: none; }
.srk-chip {
  flex: none; max-width: 210px; height: 36px; padding: 0 16px; border: none; border-radius: 18px;
  background: #3f3f3f; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.srk-chip.on { background: #204a63; }

.srk-qr-list, .srk-results { display: flex; flex-direction: column; gap: 4px; }
.srk-qr { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.srk-qr-ic { flex: none; width: 24px; display: flex; justify-content: center; color: #d1d1d6; }
.srk-qr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.srk-qr-text strong { font-size: 15.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-qr-text span { font-size: 14px; color: #d1d1d6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-qr-insert { flex: none; width: 34px; height: 40px; padding: 0; border: none; background: none; color: var(--srk-blue); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.srk-round {
  flex: none; width: 46px; height: 46px; padding: 0; border: none; border-radius: 50%;
  background: #161616; color: var(--srk-blue); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.srk-round:hover, .srk-back:hover, .srk-pill:hover { background: #0d0d0d; }
.srk.busy .srk-round, .srk.busy .srk-btn.primary { opacity: 0.4; pointer-events: none; }

.srk-ed-items { flex: none; display: flex; flex-direction: column; gap: 6px; }
.srk-ed-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #262626; }
.srk-ed-label { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-ed-x { flex: none; width: 26px; height: 26px; padding: 0; border: none; border-radius: 50%; background: #3a3a3a; color: #d1d1d6; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.srk-menu { flex: none; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #3a3a3a; border-radius: 12px; background: #262626; }
.srk-menu-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: none; border-bottom: 1px solid #333;
  background: none; color: #fff; font-size: 15px; text-align: left; cursor: pointer;
}
.srk-menu-row:last-child { border-bottom: none; }
.srk-menu-row:hover { background: #2f2f2f; }
.srk-menu-row .ic { color: var(--srk-blue); flex: none; }
.srk-menu-row.sub { padding-left: 42px; color: #d1d1d6; }
.srk-menu-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.srk-conv {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 6px; border: none; border-radius: 12px;
  background: none; color: #fff; text-align: left; cursor: pointer; flex: none;
}
.srk-conv:hover { background: #333; }
.srk-conv.on { background: #333; }
.srk-conv-av {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #5b6b73;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.srk-conv-av .srk-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border: 2px solid var(--srk-bg); }
.srk-conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.srk-conv-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-conv-text span { font-size: 13px; color: var(--srk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srk-conv-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #30d158; color: #000; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* inline send confirmation */
.srk-confirm {
  position: absolute; inset: 48px 0 0 0; z-index: 10;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(18, 18, 18, 0.74); backdrop-filter: blur(6px);
}
.srk-confirm[hidden] { display: none; }
.srk-confirm-card { width: 100%; padding: 16px; border-radius: 16px; background: #3a3a3c; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.srk-confirm-card p { margin: 0 0 14px; font-size: 16px; line-height: 1.35; color: #fff; }
.srk-confirm-card .srk-actions { justify-content: flex-end; }

.ios-home { flex: none; height: 24px; display: flex; align-items: center; justify-content: center; background: var(--srk-bg); }
.ios-home span { width: 134px; height: 5px; border-radius: 3px; background: #fff; opacity: 0.85; }

@media (max-width: 1000px) {
  .iphone { height: 820px; min-height: 0; }
}
@media (max-width: 440px) {
  .iphone { padding: 6px; border-radius: 44px; height: 760px; }
  .iphone-screen { border-radius: 38px; }
}

.iphone button:focus { outline: none; }
.iphone button:focus-visible { outline: 2px solid rgba(10, 145, 251, 0.75); outline-offset: 2px; }
