/* Call Translator: periwinkle header curving into a white card, rounded pills,
   soft avatar tints, a bottom tab bar. Mobile first; on wide screens the app
   sits in a phone-width column. */

:root {
  --brand: #5B5FC7;
  --brand-ink: #3A3FB0;
  --brand-soft: #ECEDFB;
  --bg: #F3F4FB;
  --surface: #FFFFFF;
  --field: #F3F4FB;
  --text: #1C1D2E;
  --muted: #4A4D63;
  --faint: #5F6275;
  --line: #EEEFF6;
  --border: #D9DAE8;
  --blue: #2F5BEA;
  --green: #1F8A4C;
  --green-ink: #1E6B40;
  --green-soft: #E6F4EC;
  --blue-soft: #E3ECFF;
  --blue-ink: #2D4FB8;
  --red: #C62828;
  --red-ink: #B3261E;
  --mine: #2F5BEA;
  --radius: 28px;
  --tabbar-h: 76px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-soft: #262946;
    --brand-ink: #B9BDFF;
    --bg: #0F1018;
    --surface: #171823;
    --field: #22243A;
    --text: #EEEFF7;
    --muted: #B5B8CC;
    --faint: #A3A6BB;
    --line: #262838;
    --border: #34374E;
    --green-soft: #18321F;
    --green-ink: #8FDAA9;
    --blue-soft: #1C2747;
    --blue-ink: #A9BEFF;
    --red-ink: #FF8A80;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-ink); }
h1, h2, p { margin: 0; }
code { font-size: 0.85em; overflow-wrap: anywhere; }

/* ---------- Shell ---------- */

.shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
}
.view { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.view[data-tab] { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

.hero {
  background: var(--brand);
  color: #FFFFFF;
  padding: calc(20px + env(safe-area-inset-top)) 20px 52px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero.compact { padding-bottom: 44px; padding-left: 12px; padding-right: 12px; }
.hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.hero h1.h-small { font-size: 20px; flex: 1; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-text { font-size: 15px; font-weight: 600; line-height: 1.45; }
.spacer { width: 44px; }

.card-sheet {
  flex: 1;
  margin-top: -28px;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 8px 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.card-sheet.padded { padding: 20px 20px 28px; gap: 16px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--field);
  color: var(--text);
  text-decoration: none;
}
.icon-btn.on-brand { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.icon-btn.plain { background: transparent; color: var(--muted); }
.pill-btn {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border: 0;
  font-weight: 700;
  font-size: 14px;
}
.pill-btn.on-brand { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  background: #FFFFFF;
  color: #5F6275;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #1C1D2E; font-size: 16px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips button {
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.chips button[aria-pressed="true"] { background: #FFFFFF; border-color: #FFFFFF; color: #3A3FB0; font-weight: 700; }

.section-label { display: block; padding: 16px 20px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); }
.card-sheet.padded .section-label { padding: 0 0 8px; }
.field-label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field-label.strong { font-size: 15px; font-weight: 800; color: var(--text); }
.small-note { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.4; min-height: 0; }
.small-note:empty { display: none; }
.small-note.center, .center-note { text-align: center; }
.center-note { font-size: 13px; font-weight: 600; color: var(--muted); }
.error { color: var(--red-ink); font-weight: 600; min-height: 1.2em; }

/* ---------- Bottom tab bar ---------- */

.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 560px;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  z-index: 10;
}
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tabbar a[aria-current="page"] { background: var(--brand); color: #FFFFFF; font-weight: 700; }
.badge {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--blue);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab {
  position: fixed;
  right: max(20px, calc(50% - 280px + 20px));
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom));
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: var(--blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(47, 91, 234, 0.35);
  z-index: 9;
}

/* ---------- Lists ---------- */

.list { display: flex; flex-direction: column; }
.row-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  min-height: 68px;
}
.card-sheet.padded .row-item { padding-left: 0; padding-right: 0; }
.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  text-decoration: none;
}
.row-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title.missed { color: var(--red-ink); }
.row-sub { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); min-width: 0; }
.row-sub span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.row-time { font-size: 12px; font-weight: 600; color: var(--faint); flex: none; }
.dir-in { color: var(--green); }
.dir-out { color: var(--blue); }
.dir-missed { color: var(--red); }
.empty-state { padding: 40px 28px; text-align: center; color: var(--muted); font-weight: 600; display: grid; gap: 12px; justify-items: center; }

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  background: var(--blue-soft);
  color: var(--blue-ink);
}
.avatar.xl { width: 80px; height: 80px; border-radius: 40px; font-size: 28px; }
.avatar.t1 { background: #E3ECFF; color: #2D4FB8; }
.avatar.t2 { background: #DDF3E6; color: #1E6B40; }
.avatar.t3 { background: #ECE7FB; color: #5B45A8; }
.avatar.t4 { background: #FFE9DC; color: #9A4317; }

.round-action {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tone-translated { background: var(--brand-soft); color: var(--brand-ink); }
.tone-video { background: var(--blue-soft); color: var(--blue-ink); }
.tone-normal { background: var(--green-soft); color: var(--green-ink); }
.tone-inperson { background: #FFF1E2; color: #93520F; }

.tag {
  align-self: flex-start;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.tag.plain { background: var(--field); color: var(--muted); }
.tags { display: flex; gap: 6px; }

.unread {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--blue);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}

.device-banner { margin: 12px 20px 0; padding: 10px 14px; border-radius: 14px; background: #FDECEA; color: #8C1D18; font-size: 14px; font-weight: 600; }

/* ---------- Forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); min-width: 0; }
.field input, .field select {
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  min-width: 0;
}
.field.compact { padding: 8px 14px; border-radius: 16px; background: var(--field); gap: 2px; font-size: 12px; }
.field.compact select { height: 28px; padding: 0; border: 0; background: transparent; font-weight: 700; font-size: 15px; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px; }
.field.inline select { width: auto; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.btn {
  height: 52px;
  padding: 0 20px;
  border-radius: 26px;
  border: 0;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
}
.btn.primary { background: var(--brand); color: #FFFFFF; }
.btn.outline { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.btn.danger-text { color: var(--red-ink); }
.btn.danger { background: var(--red); color: #FFFFFF; }
.btn.block { width: 100%; }
.btn.big { height: 60px; font-size: 17px; border-radius: 30px; }
.btn.grow { flex: 1; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: var(--field);
}
.segmented button {
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(20, 22, 60, 0.12); }
.segmented.on-brand { background: rgba(255, 255, 255, 0.16); }
.segmented.on-brand button { height: 44px; color: #FFFFFF; font-size: 15px; }
.segmented.on-brand button[aria-checked="true"] { background: #FFFFFF; color: #3A3FB0; }

/* A whole-row switch: label on the left, toggle on the right. */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--field);
  text-align: left;
  color: var(--text);
}
.switch-row > span:not(.switch):not(.switch-icon) { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.switch-row strong { font-size: 15px; font-weight: 800; }
.switch-row small { font-size: 12px; font-weight: 600; color: var(--muted); }
.switch-row.tinted[aria-checked="true"] { background: var(--brand-soft); }
.switch-icon { width: 36px; height: 36px; border-radius: 18px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--surface); color: var(--muted); }
.switch-row[aria-checked="true"] .switch-icon { background: var(--brand); color: #FFFFFF; }
.panel .switch-row { padding: 0; background: transparent; }

.switch {
  width: 48px;
  height: 28px;
  border-radius: 14px;
  flex: none;
  padding: 3px;
  background: #9A9DB2;
  display: flex;
  transition: background 0.15s;
}
.switch::after { content: ""; width: 22px; height: 22px; border-radius: 11px; background: #FFFFFF; transition: transform 0.15s; }
[aria-checked="true"] > .switch { background: var(--brand); }
[aria-checked="true"] > .switch::after { transform: translateX(20px); }
.switch.small { width: 34px; height: 20px; padding: 2px; border-radius: 10px; }
.switch.small::after { width: 16px; height: 16px; border-radius: 8px; }
[aria-checked="true"] > .switch.small::after { transform: translateX(14px); }

.switch-pill {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-ink);
}

.panel { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--field); }
.panel .section-label { padding: 0; }
.panel .field select { background: var(--surface); }

/* Settings: big tappable choices. */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-align: left;
  color: var(--text);
}
.choice[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); }
.choice .choice-icon { width: 40px; height: 40px; border-radius: 20px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--field); color: var(--brand-ink); }
.choice[aria-checked="true"] .choice-icon { background: var(--brand); color: #FFFFFF; }
.choice .choice-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.choice strong { font-size: 15px; font-weight: 800; }
.choice small { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.35; }
.choice .radio { width: 22px; height: 22px; border-radius: 11px; border: 2px solid #9A9DB2; flex: none; display: flex; align-items: center; justify-content: center; }
.choice[aria-checked="true"] .radio { border-color: var(--brand); }
.choice[aria-checked="true"] .radio::after { content: ""; width: 10px; height: 10px; border-radius: 5px; background: var(--brand); }

.number-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
}
.number-card > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.number-card small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; }
.number-card strong { font-size: 18px; font-weight: 800; }
.status-chip {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: #FFFFFF;
  color: #5F6275;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #9A9DB2; }
.status-chip.ok { color: #1E6B40; }
.status-chip.ok::before { background: #1F8A4C; }
.status-chip.bad { color: #B3261E; }
.status-chip.bad::before { background: #C62828; }
.settings-actions { display: flex; gap: 12px; }

/* ---------- Dial pad ---------- */

.dial-sheet { padding: 18px 24px 24px; gap: 12px; }
.dial-number { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.dial-number input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.dial-match { min-height: 20px; font-size: 14px; font-weight: 600; color: var(--faint); }
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 18px; padding: 0 8px; }
.keys button {
  height: 58px;
  border: 0;
  border-radius: 29px;
  background: var(--field);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.keys button:active { background: var(--brand-soft); }
.keys .digit { font-size: 24px; font-weight: 700; line-height: 1; }
.keys .letters { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--faint); min-height: 12px; }
.keys.small button { height: 50px; }
.dial-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; padding: 0 8px; }
.call-btn {
  width: 72px;
  height: 72px;
  border-radius: 36px;
  border: 0;
  background: var(--green);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(31, 138, 76, 0.35);
}

/* ---------- Contact page ---------- */

.contact-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.contact-head h1 { font-size: 24px; }
.contact-head span { font-size: 15px; font-weight: 600; }
.action-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.action {
  height: 56px;
  border-radius: 18px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.action.green { background: var(--green); color: #FFFFFF; }
.action.blue { background: var(--blue); color: #FFFFFF; }
.action.soft { background: var(--brand-soft); color: var(--brand-ink); }
.pill-small {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

/* ---------- Services ---------- */

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 132px;
  padding: 16px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  text-align: left;
  color: var(--text);
}
.service-tile strong { font-size: 15px; font-weight: 800; line-height: 1.25; margin-top: 8px; }
.service-tile small { font-size: 13px; font-weight: 600; color: var(--muted); }
.service-icon { width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex: none; }
.service-icon.small { width: 44px; height: 44px; border-radius: 14px; background: var(--field); color: var(--text); }
.service-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1.5px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.service-row > svg:last-child { color: var(--faint); flex: none; }

/* ---------- Live Chat ---------- */

#view-support .chat-who .avatar { width: 40px; height: 40px; }
#support-human { height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; flex: none; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.starters .pill-small { height: auto; min-height: 36px; padding: 8px 12px; text-align: left; line-height: 1.3; }
.bubble.typing { flex-direction: row; gap: 4px; padding: 14px 16px; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 4px; background: var(--faint); animation: typing 1s infinite ease-in-out; }
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ---------- Rates ---------- */

.rates-detail { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.rates-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 0 4px; }
.rates-head h2 { font-size: 22px; font-weight: 800; }
.rates-head small { font-size: 13px; font-weight: 600; color: var(--muted); }
.rate-card { border: 1.5px solid var(--line); border-radius: 20px; padding: 14px 16px 6px; }
.rate-card .section-label { padding: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.rate-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rate-line > span:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rate-line strong { font-size: 15px; font-weight: 800; }
.rate-line small { font-size: 12px; font-weight: 600; color: var(--muted); }
.rate-value { font-size: 16px; font-weight: 800; color: var(--brand-ink); white-space: nowrap; }
.row-item > svg:last-child { color: var(--faint); flex: none; }

/* ---------- In person (start page) ---------- */

.tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }

/* ---------- Messages ---------- */

.chat-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; }
.chat-who .avatar { width: 40px; height: 40px; font-size: 14px; }
.chat-who span { display: flex; flex-direction: column; min-width: 0; }
.chat-who strong { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { font-size: 12px; font-weight: 600; }
.chat-sheet { height: calc(100dvh - 72px - env(safe-area-inset-top)); flex: none; }
.chat-to { padding: 14px 16px 0; }
.chat-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px 4px; }
.chat-toolbar .section-label { padding: 0; }

.bubbles { list-style: none; margin: 0; padding: 6px 16px 12px; flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.bubble-wrap { display: flex; flex-direction: column; gap: 3px; max-width: 84%; }
.bubble-wrap.theirs { align-self: flex-start; align-items: flex-start; }
.bubble-wrap.mine { align-self: flex-end; align-items: flex-end; }
.bubble {
  padding: 10px 14px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-wrap: anywhere;
}
.theirs .bubble { background: var(--field); color: var(--text); border-bottom-left-radius: 6px; }
.mine .bubble { background: var(--mine); color: #FFFFFF; border-bottom-right-radius: 6px; }
.bubble .main { font-size: 16px; font-weight: 600; line-height: 1.35; white-space: pre-line; }
.bubble .other { padding-top: 6px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.35; color: var(--muted); white-space: pre-line; }
.mine .bubble .other { border-top-color: rgba(255, 255, 255, 0.35); color: #E4EAFF; }
.bubbles.hide-originals .other { display: none; }
.bubble-meta { font-size: 11px; font-weight: 600; color: var(--faint); }
.bubble-meta.failed { color: var(--red-ink); }
.bubble-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--faint); padding: 4px 0; }

.composer { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.composer-row { display: flex; align-items: center; gap: 8px; }
.composer-row input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  border: 0;
  outline: 0;
  background: var(--field);
  font-size: 16px;
}
.preview { display: flex; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.preview svg { flex: none; margin-top: 1px; }
.preview > span { display: flex; flex-direction: column; gap: 2px; color: var(--text); font-size: 14px; font-weight: 600; }
.preview-label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--brand-ink); text-transform: uppercase; }

.round-btn {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  border: 0;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.round-btn.send { background: var(--blue); }
.round-btn.big { width: 72px; height: 72px; border-radius: 36px; }
.round-btn.red { background: var(--red); }
.round-btn.green { background: var(--green); }

/* ---------- During a call ---------- */

.call-screen, .incoming-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--brand);
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}
.call-hero {
  padding: calc(18px + env(safe-area-inset-top)) 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  text-align: center;
}
.call-hero .avatar { width: 72px; height: 72px; font-size: 24px; margin-bottom: 4px; }
.call-hero h1 { font-size: 22px; font-weight: 800; }
.call-hero > span { font-size: 14px; font-weight: 600; }
.lang-pill { height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.16); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-top: 4px; }
.call-card {
  flex: 1;
  min-height: 0;
  margin-top: -28px;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
.people-strip { display: flex; align-items: center; gap: 8px; padding: 14px 20px 6px; overflow-x: auto; scrollbar-width: none; }
.people-strip .label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--faint); flex: none; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; background: var(--field); font-size: 13px; font-weight: 700; white-space: nowrap; flex: none; }
.person-chip .mini { width: 22px; height: 22px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; background: var(--brand-soft); color: var(--brand-ink); }
.person-chip.calling { opacity: 0.7; }
.call-bubbles { padding-top: 12px; }
.call-plain { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; text-align: center; padding: 20px; }
.keypad-panel { padding: 8px 20px 4px; display: flex; flex-direction: column; gap: 8px; }
.keypad-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.keypad-digits { flex: 1; text-align: right; font: 700 22px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.call-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 24px 12px; border-top: 1px solid var(--line); }
.call-controls button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; color: var(--muted); font-weight: 700; font-size: 12px; }
.call-controls .ctl { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: var(--field); color: var(--text); }
.call-controls button[aria-pressed="true"] .ctl { background: var(--brand); color: #FFFFFF; }
.hangup-btn {
  align-self: center;
  width: 200px;
  height: 60px;
  border-radius: 30px;
  border: 0;
  background: var(--red);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.incoming-screen { justify-content: space-between; color: #FFFFFF; padding: calc(60px + env(safe-area-inset-top)) 24px calc(56px + env(safe-area-inset-bottom)); }
.incoming-body { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.incoming-body h1 { font-size: 28px; font-weight: 800; }
.incoming-body p { font-size: 16px; font-weight: 600; }
.incoming-actions { display: flex; justify-content: space-around; }

/* ---------- Bottom sheet ---------- */

.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(14, 15, 30, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 16px 20px calc(24px + env(safe-area-inset-bottom));
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 20px; font-weight: 800; }
.sheet-form { display: flex; flex-direction: column; gap: 14px; }
.sheet-actions { display: flex; gap: 10px; }
.transcript-lines { display: flex; flex-direction: column; gap: 10px; }
.people-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.people-list .row-item { padding-left: 0; padding-right: 0; min-height: 56px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 16px;
  background: #1C1D2E;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Login ---------- */

.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.login-hero { background: var(--brand); color: #FFFFFF; padding: calc(64px + env(safe-area-inset-top)) 24px 72px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.login-hero h1 { font-size: 28px; font-weight: 800; }
.login-hero p { font-size: 15px; font-weight: 600; }
.login-logo { width: 72px; height: 72px; border-radius: 36px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.login-card { flex: 1; margin-top: -28px; background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Guest lobby (join.html) ---------- */

.card { background: var(--surface); border-radius: 24px; padding: 24px; box-shadow: 0 6px 24px rgba(20, 22, 60, 0.08); }
.narrow { max-width: 420px; margin: 10vh auto 0; display: flex; flex-direction: column; gap: 16px; width: calc(100% - 32px); }
.narrow h1 { font-size: 24px; font-weight: 800; color: var(--brand-ink); }
.narrow label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.narrow input, .narrow select { height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: 16px; }
.narrow #choices { display: flex; flex-direction: column; gap: 12px; }
.narrow label.check { flex-direction: row; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.narrow label.check input { width: 22px; height: 22px; }
.muted { color: var(--muted); }
button.primary.big { height: 56px; border-radius: 28px; border: 0; background: var(--brand); color: #FFFFFF; font-weight: 800; font-size: 17px; }

/* ---------- Accounts ---------- */

.login-title { font-size: 22px; font-weight: 800; }
.link-btn { border: 0; background: transparent; color: var(--brand-ink); font-weight: 800; padding: 6px 4px; text-decoration: underline; }
.account-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--field); }

/* ---------- Credit (DigiLingo Recharge) ---------- */
.balance-chip {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  flex: none;
}
.balance-chip.low { background: #FFE4E1; color: #A3271B; }
.balance-chip.on-call { height: 30px; font-size: 13px; margin-top: 4px; }
.balance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--brand-soft);
  color: var(--text);
  text-decoration: none;
}
.balance-card .row-title { font-size: 13px; font-weight: 700; color: var(--muted); }
.balance-card strong { font-size: 26px; font-weight: 800; color: var(--brand-ink); }
.balance-card.low strong { color: var(--red-ink); }
.balance-card .add-credit { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #FFFFFF; }
.balance-hero { display: grid; justify-items: center; gap: 2px; padding: 8px 0 4px; }
.balance-hero small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.8; }
.balance-hero strong { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.amount {
  height: 56px;
  border-radius: 18px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}
.amount[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.service-icon.small.tone-normal { background: var(--green-soft); color: var(--green-ink); }
.ledger-amount { font-size: 15px; font-weight: 800; flex: none; }
.ledger-amount.plus { color: var(--green-ink); }

/* ---------- Payments (admin) ---------- */
.company-list { display: grid; gap: 10px; }
.company-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: 18px; background: var(--field); font-size: 14px; font-weight: 600; }
.company-card small { color: var(--muted); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.company-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.company-head strong { font-size: 16px; font-weight: 800; }
.mode-chip { height: 24px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; background: #FFF1E2; color: #93520F; flex: none; }
.mode-chip.live { background: var(--green-soft); color: var(--green-ink); }

/* ---------- Paying for calls ---------- */
.dial-price { text-align: center; font-size: 14px; font-weight: 700; color: var(--brand-ink); margin: 0; }
.dial-price.short { color: var(--red-ink); }
.dial-price a { color: inherit; }
.call-credit { margin: 0 0 8px; padding: 10px 14px; border-radius: 14px; background: #FFE4E1; color: #A3271B; font-size: 14px; font-weight: 700; text-align: center; }
.fx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-grid:empty { display: none; }

/* ---------- Security ---------- */
.btn.small { height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
.text-btn { border: 0; background: none; padding: 8px 0; color: var(--brand-ink); font-weight: 700; font-size: 14px; cursor: pointer; }
.verify-code { font-size: 40px; font-weight: 800; letter-spacing: 8px; text-align: center; margin: 8px 0; color: var(--brand-ink); }

/* ---------- New message: who to write to ---------- */
.to-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--field);
  color: var(--faint);
}
.to-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; outline: none; }
.to-results { flex: 1; min-height: 0; overflow-y: auto; padding-top: 6px; }
.to-results .row-item { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.to-results .row-item:hover { background: var(--field); }
.avatar.new-contact { background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.to-new .row-title { color: var(--green-ink); }
.tag.on-dl { background: var(--green-soft); color: var(--green-ink); }

/* ---------- New / edit contact screen ---------- */
.cs-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(14, 15, 30, 0.45); display: flex; align-items: flex-end; justify-content: center; }
.cs-panel {
  width: 100%;
  max-width: 560px;
  height: calc(100dvh - 24px - env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.cs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); }
.cs-head h2 { font-size: 18px; font-weight: 800; }
.cs-round { width: 48px; height: 48px; border-radius: 24px; border: 0; display: flex; align-items: center; justify-content: center; background: var(--field); color: var(--text); cursor: pointer; flex: none; }
.cs-save { background: var(--green); color: #FFFFFF; }
.cs-save:disabled { opacity: 0.4; cursor: default; }
.cs-body { flex: 1; overflow-y: auto; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 18px; }
.cs-group { background: var(--surface); border-radius: 22px; padding: 4px 18px; display: flex; flex-direction: column; }
.cs-group > input { height: 52px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 600; outline: none; }
.cs-group > input:last-child { border-bottom: 0; }
.cs-group > input::placeholder { color: var(--faint); font-weight: 500; }
.cs-row { display: flex; align-items: center; gap: 14px; min-height: 54px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); font: inherit; text-align: left; padding: 0; width: 100%; }
.cs-row:last-child, .cs-row:has(+ .cs-on:empty) { border-bottom: 0; }
.cs-label { width: 76px; flex: none; font-size: 16px; font-weight: 800; }
.cs-select { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: var(--faint); position: relative; }
/* The list fills the row, under its arrow, so a tap anywhere on it opens the list. */
.cs-select > :not(select) { position: absolute; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; }
.cs-select select { cursor: pointer; padding-right: 26px; width: 100%; }
.cs-select select { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; appearance: none; -webkit-appearance: none; outline: none; text-overflow: ellipsis; }
.cs-number { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.cs-number input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; outline: none; }
.cs-on { display: flex; flex-direction: column; align-items: flex-start; padding: 0 0 10px 90px; }
.cs-on:empty { display: none; }
.cs-note { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.cs-note.yes { color: var(--green-ink); }
.cs-on .text-btn { padding: 4px 0; color: var(--green-ink); font-size: 13px; }
.cs-switch { justify-content: space-between; cursor: pointer; padding: 10px 0; }
.cs-switch > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.cs-switch strong { font-size: 15px; font-weight: 800; }
.cs-switch small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cs-delete { border: 0; background: var(--surface); border-radius: 22px; height: 52px; color: var(--red-ink); font: inherit; font-weight: 800; cursor: pointer; }
@media (max-width: 380px) { .cs-on { padding-left: 0; } .cs-label { width: 64px; } }
.cs-pad { flex: none; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cs-pad .keys { gap: 8px 14px; }
.cs-pad .keys button { color: var(--text); cursor: pointer; }
.cs-pad .keys > span { visibility: hidden; }

/* ---------- Photos, voice notes, blocking ---------- */
.round-btn.plain { width: 40px; height: 40px; background: transparent; color: var(--muted); cursor: pointer; }
.round-btn.plain:hover { background: var(--field); }
.bubble.has-media.image { padding: 4px; }
.bubble.has-media.image .main, .bubble.has-media.image .other { padding: 2px 10px 6px; }
.bubble-photo { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; }
.bubble-photo img { display: block; width: 100%; max-width: 240px; min-width: 120px; min-height: 80px; max-height: 320px; object-fit: cover; background: rgba(0, 0, 0, 0.08); }
.voice-note { display: flex; align-items: center; gap: 8px; }
.voice-note audio { flex: 1; min-width: 0; width: 200px; height: 40px; }
.voice-len { flex: none; white-space: nowrap; font-size: 12px; font-weight: 700; opacity: 0.8; }
.media-missing { font-size: 13px; font-style: italic; opacity: 0.8; }
.photo-full { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 16px; }
.recording { gap: 10px; }
.rec-dot { width: 12px; height: 12px; border-radius: 6px; background: var(--red); flex: none; animation: rec-pulse 1s infinite ease-in-out; }
@keyframes rec-pulse { 50% { opacity: 0.3; } }
.rec-time { font: 700 16px/1 ui-monospace, Menlo, Consolas, monospace; }
.rec-label { flex: 1; font-size: 14px; font-weight: 600; color: var(--muted); }
.chat-blocked { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.chat-blocked span { flex: 1; }
.settings-note { padding: 4px 20px 8px; }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.voice-text { font-size: 15px; }
.voice-text.pending { font-size: 13px; font-style: italic; font-weight: 600; opacity: 0.75; }

/* ---------- Top-Up Friends ---------- */
#view-topup .card-sheet > * + * { margin-top: 14px; }
#topup-pay { display: flex; flex-direction: column; gap: 14px; }
#topup-pay[hidden] { display: none; }
.friend-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--brand-soft); }
.friend-card[hidden] { display: none; }
#topup-people .row-item { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.topup-gets { text-align: center; font-size: 16px; font-weight: 600; color: var(--muted); min-height: 1.4em; }
.topup-gets strong { color: var(--text); font-size: 20px; }
.segmented button:disabled { opacity: 0.4; cursor: default; }

/* Number pads (New contact, Verify your number) */
.keys .pad-gap { visibility: hidden; }
.number-pad[hidden] { display: none; }
.keys button { cursor: pointer; }
.dial-input { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-radius: 16px; background: var(--field); color: var(--text); font-size: 18px; font-weight: 700; }
.dial-input span { flex: none; color: var(--muted); }
.dial-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: 0.04em; outline: none; }
.cs-note.bad { color: var(--red-ink); }
.avatar.invalid { background: var(--red); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.to-invalid .row-title { color: var(--red-ink); }

/* Translation problems */
.issue-banner { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 60; width: min(560px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: start; padding: 12px 8px 12px 16px; border-radius: 18px; background: var(--red-ink); color: #FFFFFF; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); font-size: 14px; line-height: 1.35; }
.issue-banner[hidden] { display: none; }
.issue-banner strong { grid-column: 1; font-size: 15px; }
.issue-banner span { grid-column: 1; font-weight: 600; }
.issue-banner .icon-btn { grid-column: 2; grid-row: 1 / span 2; color: #FFFFFF; }
.other.failed, .bubble .other.failed { color: var(--red-ink); }
.forgot-link { justify-self: center; align-self: center; }
.account-card #change-email { flex: none; }
