:root {
  color-scheme: light;
  --bg: #f7f7f6;
  --panel: #ffffff;
  --ink: #171515;
  --muted: #6f6b69;
  --line: #e5e2e0;
  --brand: #e42323;
  --brand-dark: #b31317;
  --bubble-in: #ffffff;
  --bubble-out: #fee2e2;
}

.account-space {
  animation: universe-panel-in 320ms ease both;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 600px;
  padding-bottom: 22px;
}

.account-space-hero {
  background: linear-gradient(135deg, rgba(228, 35, 35, 0.09), rgba(255, 255, 255, 0.96) 44%);
  border: 1px solid #eee8e6;
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(34, 23, 20, 0.07);
  overflow: hidden;
  padding: 34px 30px 28px;
  position: relative;
}

.account-space-hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.05;
  margin: 14px 0 10px;
}

.account-space-hero p,
.account-card-heading p {
  color: var(--muted);
  margin: 0;
}

.account-card {
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(34, 23, 20, 0.06);
  padding: 26px;
}

.account-card-heading,
.account-security-card summary {
  align-items: center;
  display: flex;
  gap: 14px;
}

.account-card-heading {
  margin-bottom: 22px;
}

.account-card-heading h2,
.account-card-summary-copy strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 5px;
}

.account-card-heading p,
.account-card-summary-copy small {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.account-card-symbol {
  align-items: center;
  background: #fff0f0;
  border-radius: 50%;
  color: var(--brand);
  display: flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.account-card-symbol svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.account-form label {
  gap: 8px;
  margin: 18px 0;
}

.account-form input,
.account-form select {
  border-color: #dedad8;
  border-radius: 10px;
  font-size: 14px;
  min-height: 48px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.account-form input:focus,
.account-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
  outline: 0;
}

.account-form small,
.account-helper {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.account-primary-button {
  background: var(--brand);
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  margin-top: 8px;
  min-height: 48px;
  padding: 12px 18px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.account-primary-button:hover {
  background: var(--brand-dark);
}

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

.account-primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.account-security-card {
  padding: 0;
}

.account-security-card summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 24px;
}

.account-security-card summary::-webkit-details-marker {
  display: none;
}

.account-card-summary-copy {
  min-width: 0;
}

.account-security-action {
  color: var(--brand);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  margin-left: auto;
}

.account-security-card[open] .account-security-action {
  visibility: hidden;
}

.account-security-form {
  border-top: 1px solid var(--line);
  padding: 6px 24px 24px;
}

.account-helper {
  margin: 16px 0 4px;
}

.account-back-link {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
  text-decoration: none;
}

@media (max-width: 640px) {
  .account-space {
    gap: 14px;
  }

  .account-space-hero {
    border-radius: 16px;
    padding: 28px 20px 22px;
  }

  .account-card {
    border-radius: 16px;
    padding: 20px;
  }

  .account-security-card {
    padding: 0;
  }

  .account-security-card summary {
    align-items: flex-start;
    padding: 18px;
  }

  .account-security-form {
    padding: 4px 18px 20px;
  }

  .account-security-action {
    font-size: 11px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f1efee;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  min-height: 100vh;
}

body.chat-page {
  height: 100vh;
  overflow: hidden;
}

body.chat-page .topbar {
  display: none;
}

body.inbox-page .topbar {
  display: none;
}

body.inbox-page .shell {
  max-width: none;
  padding: 0 0 68px;
}

.topbar {
  align-items: center;
  background: #111111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.topbar form {
  align-items: center;
  display: flex;
  gap: 12px;
}

.topbar-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-left: auto;
  margin-right: 22px;
}

.topbar-nav a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topbar-nav .nav-primary {
  background: var(--brand);
  border-radius: 6px;
  padding: 9px 13px;
}

.shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 32px 20px 100px;
}

.chat-shell {
  display: grid;
  height: calc(100vh - 68px);
  max-width: none;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.chat-shell .notice {
  left: 50%;
  margin: 0;
  max-width: calc(100% - 32px);
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  width: 520px;
  z-index: 5;
}

.login-panel,
.list,
.thread,
.reply,
.page-head {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-panel {
  background: #fff;
  border-color: #e8e5e4;
  margin: 64px auto;
  max-width: 420px;
  padding: 30px;
}

.auth-panel-wide {
  max-width: 520px;
}

.auth-brand {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.auth-brand b {
  color: #272222;
  font-weight: 700;
}

.login-panel h1 {
  color: #171515;
  font-size: 30px;
  letter-spacing: 0;
}

.auth-note {
  color: #746f6c;
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 18px;
}

.auth-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 18px;
}

.auth-actions a {
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.phone-field {
  display: grid;
  gap: 8px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.password-field {
  display: block;
  position: relative;
}

.password-field input {
  padding-right: 52px;
  width: 100%;
}

.login-panel .password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #6d6865;
  cursor: pointer;
  display: flex;
  font-size: 19px;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
}

.login-panel .password-toggle:hover,
.login-panel .password-toggle:focus-visible {
  background: #f5f2f0;
  color: var(--brand);
}

label small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

h1 {
  margin: 0 0 8px;
}

p {
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin: 16px 0;
}

input,
textarea,
select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  padding: 12px;
  width: 100%;
}

.login-panel input,
.login-panel select {
  border-color: #dedad8;
  border-radius: 8px;
  font-size: 14px;
  min-height: 46px;
  padding: 11px 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-panel input:focus,
.login-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
  outline: 0;
}

.login-panel button {
  background: var(--brand);
  color: #fff;
}

.login-panel button:hover {
  background: var(--brand-dark);
}

.universe-register {
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(34, 23, 20, 0.08);
  overflow: visible;
  padding: 36px;
  position: relative;
}

.universe-accent {
  background: linear-gradient(90deg, rgba(228, 35, 35, 0.95), rgba(228, 35, 35, 0.16), transparent);
  border-radius: 18px 18px 0 0;
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.universe-register .auth-brand {
  margin-bottom: 16px;
}

.universe-login {
  animation: universe-panel-in 320ms ease both;
  background: #fff;
  border: 1px solid #eee8e6;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(34, 23, 20, 0.08);
  overflow: hidden;
  padding: 36px;
  position: relative;
}

.universe-login h1 {
  font-size: 38px;
  line-height: 1.04;
  margin-bottom: 12px;
}

.universe-login .auth-note {
  font-size: 15px;
  margin-bottom: 26px;
}

.universe-login label {
  gap: 9px;
  margin: 20px 0;
}

.login-universe-actions {
  margin-top: 26px;
}

.login-microcopy {
  color: #77716f;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-universe-actions a {
  line-height: 1.55;
}

.login-universe-actions strong {
  color: var(--brand);
}

.forgot-link {
  color: var(--brand-dark);
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 2px;
  text-align: right;
  text-decoration: none;
}

@keyframes universe-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-step {
  align-items: center;
  color: #817976;
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.auth-step strong {
  background: #fff0f0;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 11px;
  padding: 6px 9px;
}

.auth-step b {
  color: var(--brand);
}

.universe-register h1 {
  font-size: 38px;
  line-height: 1.04;
  margin-bottom: 12px;
}

.universe-register .auth-note {
  font-size: 15px;
  margin-bottom: 26px;
}

.universe-register label {
  gap: 9px;
  margin: 20px 0;
}

.universe-register label small {
  color: #77716f;
}

.country-picker {
  min-width: 0;
  position: relative;
}

.country-native-select {
  display: none;
}

.login-panel .country-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  gap: 7px;
  height: 100%;
  justify-content: flex-start;
  min-height: 46px;
  padding: 8px 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.login-panel .country-trigger:hover,
.login-panel .country-trigger:focus-visible {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
}

.country-caret {
  color: #827b78;
  margin-left: auto;
}

.country-menu {
  background: #fff;
  border: 1px solid #dedad8;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(32, 21, 18, 0.14);
  left: 0;
  overflow: hidden;
  padding: 8px;
  position: absolute;
  top: calc(100% + 7px);
  width: min(340px, calc(100vw - 58px));
  z-index: 12;
}

.country-search {
  margin-bottom: 6px;
}

.country-options {
  max-height: 260px;
  overflow-y: auto;
}

.login-panel .country-option {
  align-items: center;
  background: #fff;
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  grid-template-columns: 24px 52px minmax(0, 1fr);
  padding: 10px 8px;
  text-align: left;
  width: 100%;
}

.login-panel .country-option:hover,
.login-panel .country-option:focus-visible,
.login-panel .country-option[aria-selected="true"] {
  background: #fff1f1;
  color: var(--brand-dark);
}

.country-option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-flag {
  font-size: 18px;
}

.universe-actions {
  align-items: stretch;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.universe-actions button {
  border-radius: 9px;
  min-height: 50px;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

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

.universe-actions button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.universe-actions a {
  text-align: center;
}

button {
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #07130b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
}

.home-page .shell {
  background: #fff;
  min-height: 100svh;
  max-width: none;
  padding: 0 0 78px;
}

.home-page .topbar {
  display: none;
}

.home-screen {
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 46px;
  margin: 0 auto;
  max-width: 1080px;
  min-height: calc(100svh - 78px);
  padding: 28px clamp(20px, 6vw, 72px) 46px;
}

.home-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.home-logo {
  display: block;
  height: auto;
  max-width: 230px;
  width: 42vw;
}

.home-profile-link {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-intro {
  align-self: center;
  max-width: 720px;
}

.home-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.home-intro h1 {
  color: #111;
  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.98;
  margin: 0 0 20px;
  max-width: 780px;
}

.home-intro > p:last-of-type {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 570px;
}

.home-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 18px;
  text-decoration: none;
}

.primary-link {
  background: var(--brand);
  color: #fff;
}

.secondary-link {
  border: 1px solid #d8d4d2;
  color: var(--ink);
}

.home-bottom-nav {
  align-items: stretch;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  min-height: 68px;
  padding: 5px max(12px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  position: fixed;
  right: 0;
  z-index: 60;
}

.home-bottom-nav a {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 20px;
  gap: 2px;
  justify-items: center;
  min-width: 94px;
  padding: 4px 10px;
  text-decoration: none;
}

.home-bottom-nav a.active {
  color: var(--brand);
}

.home-bottom-nav small {
  font-size: 11px;
  font-weight: 700;
}

.home-bottom-nav svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.bottom-chat-link {
  position: relative;
}

.bottom-chat-link em {
  align-items: center;
  background: var(--brand);
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: grid;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  min-height: 19px;
  min-width: 19px;
  padding: 1px 4px;
  place-items: center;
  position: absolute;
  right: calc(50% - 24px);
  top: 1px;
}

.bottom-chat-link em[hidden] {
  display: none;
}

.dashboard-page .shell {
  max-width: 980px;
}

.dashboard-page .topbar {
  display: none;
}

.dashboard-home {
  padding-bottom: 22px;
}

.dashboard-head {
  margin: 34px 0 24px;
}

.dashboard-head h1 {
  color: #111;
  font-size: 36px;
  letter-spacing: 0;
  margin: 12px 0 8px;
}

.dashboard-head p:last-child {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.dashboard-reveal {
  animation: dashboard-reveal 420ms ease both;
}

.dashboard-reveal:nth-child(2) {
  animation-delay: 70ms;
}

.dashboard-reveal:nth-child(3) {
  animation-delay: 120ms;
}

.dashboard-reveal:nth-child(4) {
  animation-delay: 170ms;
}

.dashboard-hero {
  align-items: center;
  background: #fff7f7;
  border: 1px solid #f4d3d3;
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 34px;
  overflow: hidden;
  padding: 28px;
  position: relative;
}

.dashboard-hero::before {
  background: var(--brand);
  content: "";
  height: 3px;
  inset: 0 0 auto;
  position: absolute;
}

.dashboard-hero-icon,
.dashboard-activity-icon {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.dashboard-hero-icon svg,
.dashboard-activity-icon svg,
.dashboard-icon svg,
.dashboard-quick-grid svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.dashboard-hero-icon svg {
  height: 30px;
  width: 30px;
}

.dashboard-eyebrow,
.dashboard-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.dashboard-hero h2 {
  font-size: 24px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.dashboard-hero p:not(.dashboard-eyebrow) {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 660px;
}

.dashboard-primary-action {
  align-items: center;
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 15px;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.dashboard-primary-action:hover {
  background: var(--brand-dark);
}

.dashboard-primary-action:active {
  transform: scale(0.98);
}

.dashboard-section {
  margin-top: 32px;
}

.dashboard-section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.dashboard-section-head h2,
.dashboard-activity h2 {
  font-size: 22px;
  letter-spacing: 0;
  margin: 0;
}

.dashboard-section-head > span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 148px;
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-card:hover {
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.08);
  transform: translateY(-3px) scale(1.02);
}

.dashboard-card h3 {
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.dashboard-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.dashboard-icon {
  background: #111;
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 16px;
  font-weight: 900;
  height: 44px;
  place-content: center;
  width: 44px;
}

.dashboard-icon svg {
  height: 22px;
  width: 22px;
}

.dashboard-icon-red {
  background: var(--brand);
}

.dashboard-status {
  background: #f5f3f2;
  border-radius: 999px;
  color: var(--brand-dark);
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  padding: 4px 7px;
  text-transform: uppercase;
}

.dashboard-arrow {
  color: var(--brand);
  font-size: 20px;
}

.dashboard-quick-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-quick-grid a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 94px;
  padding: 12px 8px;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.dashboard-quick-grid a:hover {
  border-color: #f0b6b6;
  box-shadow: 0 10px 20px rgba(17, 17, 17, 0.06);
  transform: translateY(-2px);
}

.dashboard-quick-grid svg {
  color: var(--brand);
  height: 23px;
  width: 23px;
}

.dashboard-activity {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 15px;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 32px;
  padding: 20px;
}

.dashboard-activity-icon {
  background: #111;
  height: 48px;
  width: 48px;
}

.dashboard-activity-icon svg {
  height: 24px;
  width: 24px;
}

.dashboard-activity p:last-child {
  color: var(--muted);
  font-size: 14px;
  margin: 7px 0 0;
}

.dashboard-logout {
  margin-top: 22px;
}

.dashboard-logout button {
  background: transparent;
  border: 1px solid #cfcac8;
  color: #3f3b39;
  font-size: 13px;
  padding: 10px 14px;
}

@keyframes dashboard-reveal {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.settings-panel h2 {
  font-size: 20px;
  margin: 0 0 6px;
}

.settings-divider {
  border-top: 1px solid var(--line);
  margin: 30px 0 24px;
}

.settings-head {
  margin: 28px 0 24px;
}

.settings-head h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.settings-head > p:last-child {
  color: var(--muted);
  margin: 0;
}

.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(35, 24, 21, 0.05);
  padding: 22px;
}

.settings-card-wide {
  grid-column: 1 / -1;
}

.settings-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.settings-card > p:not(.settings-eyebrow) {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.settings-eyebrow {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.settings-card button {
  color: #fff;
  margin-top: 10px;
  transition: background 160ms ease, transform 160ms ease;
}

.settings-card button:hover {
  background: var(--brand-dark);
}

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

.access-table {
  align-items: center;
  display: grid;
  font-size: 13px;
  gap: 10px 14px;
  grid-template-columns: minmax(0, 1fr) 46px 54px;
  margin: 18px 0 8px;
}

.access-table > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.access-table label {
  margin: 0;
}

.access-table input {
  accent-color: var(--brand);
  height: 18px;
  width: 18px;
}

.settings-form-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-span {
  grid-column: 1 / -1;
}

.page-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 22px;
}

.page-head p {
  color: var(--muted);
  margin: 0;
}

.wa-inbox {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  max-width: 620px;
  overflow: hidden;
}

.wa-inbox-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 24px 22px 12px;
}

.wa-inbox-head h1 {
  font-size: 30px;
  margin: 0;
}

.wa-inbox-head p,
.wa-inbox-head span {
  color: var(--muted);
  margin: 4px 0 0;
}

.inbox-toolbar {
  align-items: center;
  display: flex;
  gap: 7px;
}

.icon-button {
  align-items: center;
  background: #f4f6f5;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  display: inline-grid;
  height: 40px;
  justify-items: center;
  padding: 0;
  text-decoration: none;
  width: 40px;
}

.icon-button:hover {
  background: #eceeed;
}

.icon-button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.icon-button.primary:hover {
  background: var(--brand-dark);
}

.icon-button svg,
.scroll-bottom-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 19px;
}

.inbox-tool-panel {
  align-items: center;
  background: #fafbfa;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 10px 22px;
}

.inbox-tool-panel[hidden] {
  display: none;
}

.inbox-search-form {
  align-items: center;
  display: flex;
  gap: 7px;
  width: 100%;
}

.inbox-search-form input {
  min-height: 40px;
  width: 100%;
}

.inbox-tool-panel > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-right: auto;
}

.inbox-tool-panel > a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
  text-decoration: none;
}

.inbox-tool-panel > a.selected {
  background: #ffe2e2;
  color: var(--brand-dark);
}

.new-chat-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(22, 16, 16, 0.22);
  max-width: calc(100vw - 28px);
  padding: 0;
  width: 420px;
}

.new-chat-dialog::backdrop {
  background: rgba(18, 12, 12, 0.42);
}

.new-chat-dialog form,
.new-chat-dialog label {
  display: grid;
  gap: 8px;
}

.new-chat-dialog form {
  gap: 15px;
  padding: 18px;
}

.new-chat-dialog header,
.new-chat-dialog footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.new-chat-dialog header div {
  display: grid;
  gap: 3px;
}

.new-chat-dialog header span,
.new-chat-dialog small {
  color: var(--muted);
  font-size: 12px;
}

.compact-phone-field {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
}

.compact-phone-field select,
.compact-phone-field input {
  min-width: 0;
}

.primary-button,
.secondary-button {
  border-radius: 6px;
  font-weight: 800;
  min-height: 42px;
  padding: 10px 14px;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}

.secondary-button {
  background: #f0eeee;
  color: var(--ink);
}

.inbox-home-button {
  background: var(--brand);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 14px;
  text-decoration: none;
}

.chat-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 22px 14px;
}

.chat-filters a {
  align-items: center;
  background: #f0f4f2;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.reply-performance {
  border-top: 1px solid var(--line);
  padding: 0 22px;
}

.reply-performance summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 13px 0;
}

.reply-performance summary::-webkit-details-marker {
  display: none;
}

.reply-performance summary span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.reply-performance summary small,
.reply-performance li small {
  color: var(--muted);
  font-size: 12px;
}

.reply-performance ol {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 0;
  padding: 5px 0 9px;
}

.reply-performance li,
.reply-performance li span {
  align-items: center;
  display: flex;
  gap: 7px;
  justify-content: space-between;
}

.reply-performance li {
  padding: 7px 0;
}

.reply-performance li strong {
  font-size: 14px;
}

.reply-performance li em {
  background: #ffe1e1;
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 6px;
}

.chat-filters a.active {
  background: #dffbed;
  color: var(--brand-dark);
}

.chat-filters span,
.unread-total-badge {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  display: inline-grid;
  font-size: 12px;
  font-weight: 800;
  min-width: 22px;
  padding: 3px 7px;
  place-items: center;
}

.chat-filters span[hidden],
.unread-total-badge[hidden] {
  display: none;
}

.unread-total-badge {
  margin-left: 8px;
  vertical-align: middle;
}

.notification-toast {
  background: #101615;
  border-radius: 8px;
  bottom: auto;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  color: #fff;
  display: grid;
  gap: 1px;
  left: 50%;
  max-width: calc(100vw - 24px);
  padding: 9px 12px;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  transform: translateX(-50%);
  width: 300px;
  z-index: 120;
  text-decoration: none;
}

.notification-toast[hidden] {
  display: none;
}

.notification-toast span {
  color: #d9e2df;
  font-size: 12px;
}

.wa-chat-list {
  background: #fff;
}

.wa-chat-row {
  align-items: center;
  color: var(--ink);
  display: grid;
  gap: 14px;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 12px 18px;
  text-decoration: none;
}

.wa-chat-row + .wa-chat-row .wa-chat-main {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.wa-chat-row.unanswered {
  background: #fffafa;
}

.wa-chat-row.unanswered .wa-avatar {
  box-shadow: 0 0 0 3px rgba(239, 32, 38, 0.14);
}

.wa-chat-row.unanswered .wa-chat-top strong,
.wa-chat-row.unanswered .wa-chat-top time {
  color: var(--brand-dark);
}

.wa-avatar {
  align-items: center;
  align-self: start;
  background: var(--brand);
  border-radius: 50%;
  color: #07130b;
  display: grid;
  font-weight: 800;
  height: 50px;
  justify-items: center;
  object-fit: cover;
  width: 50px;
}

.wa-chat-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.wa-chat-top,
.wa-chat-bottom {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.wa-chat-top strong {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wa-chat-top time {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
}

.wa-chat-bottom p {
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-mark {
  align-items: center;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  white-space: nowrap;
}

.pending-mark::before {
  background: var(--brand);
  border-radius: 999px;
  content: "";
  height: 7px;
  width: 7px;
}

.conversation {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 240px 1fr auto;
  padding: 18px 20px;
  text-decoration: none;
}

.conversation:last-child {
  border-bottom: 0;
}

.conversation span,
.conversation p,
.bubble small,
.reply p {
  color: var(--muted);
}

.conversation p {
  margin: 0;
}

.status {
  background: #e8fff5;
  border-radius: 999px;
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 700;
  padding: 6px 10px;
}

.empty {
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.thread {
  align-content: start;
  background:
    radial-gradient(circle at 12px 12px, rgba(18, 32, 27, 0.04) 2px, transparent 2px) 0 0 / 38px 38px,
    #f4efe9;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px 22px;
}

.thread.initializing {
  visibility: hidden;
}

.bubble {
  border-radius: 8px;
  max-width: min(76%, 360px);
  min-width: 0;
  padding: 14px 16px;
  position: relative;
  touch-action: pan-y;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  width: fit-content;
  word-break: break-word;
}

.bubble p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bubble small {
  display: block;
  font-size: 12px;
  line-height: 1;
  text-align: right;
}

.bubble.inbound {
  background: var(--bubble-in);
}

.bubble.outbound {
  background: var(--bubble-out);
  justify-self: end;
}

.bubble.swipe-ready {
  box-shadow: -5px 0 0 rgba(20, 199, 132, 0.45);
}

.quoted-message {
  background: rgba(11, 126, 85, 0.08);
  border-left: 3px solid var(--brand);
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.quoted-message span,
.reply-preview span {
  color: var(--brand-dark);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 2px;
}

.quoted-message p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bubble-focus {
  box-shadow: 0 0 0 3px rgba(20, 199, 132, 0.22);
}

.reply {
  padding: 12px 16px;
}

.chat-layout {
  background: var(--panel);
  border: 0;
  border-radius: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  margin: 0 auto;
  max-width: 900px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.chat-head {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  padding: 12px 16px;
  z-index: 2;
}

.chat-head h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

.chat-head p {
  color: var(--muted);
  margin: 0;
}

.chat-search-trigger,
.chat-search-nav,
.chat-search-close {
  align-items: center;
  background: #f7f7f6;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 auto;
  height: 40px;
  justify-items: center;
  padding: 0;
  width: 40px;
}

.chat-search-trigger:hover,
.chat-search-nav:hover,
.chat-search-close:hover {
  background: #eeeeec;
}

.chat-search-trigger svg,
.chat-search-field svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.chat-search-panel {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(30, 20, 20, 0.08);
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  left: 0;
  padding: 8px 12px;
  position: absolute;
  right: 0;
  top: 69px;
  z-index: 4;
}

.chat-search-panel[hidden] {
  display: none;
}

.chat-search-field {
  align-items: center;
  background: #f7f7f6;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0 10px;
}

.chat-search-field:focus-within {
  border-color: rgba(228, 35, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(228, 35, 35, 0.1);
}

.chat-search-field input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  padding: 9px 0;
  width: 100%;
}

.chat-search-count {
  color: var(--muted);
  font-size: 12px;
  min-width: 32px;
  text-align: center;
}

.chat-search-nav,
.chat-search-close {
  font-size: 18px;
  height: 34px;
  width: 34px;
}

.bubble.search-match {
  outline: 2px solid rgba(228, 35, 35, 0.26);
  outline-offset: 2px;
}

.bubble.search-match-active {
  outline-color: var(--brand);
}

.contact-heading {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.edit-contact-trigger {
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  padding: 2px 4px;
}

.contact-name-form {
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(30, 20, 20, 0.12);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  left: 12px;
  padding: 10px;
  position: absolute;
  right: 12px;
  top: 72px;
  z-index: 5;
}

.contact-name-form[hidden] {
  display: none;
}

.contact-name-form label {
  display: grid;
  gap: 4px;
}

.contact-name-form span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.contact-name-form input {
  min-height: 40px;
}

.contact-name-form button {
  min-height: 40px;
  padding: 8px 10px;
}

.contact-name-cancel {
  background: #f0eeee;
  color: var(--ink);
}

.close-chat {
  margin: 0;
}

.back-link {
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  text-decoration: none;
}

.avatar {
  align-items: center;
  background: var(--brand);
  border-radius: 50%;
  color: #07130b;
  display: grid;
  font-weight: 800;
  height: 44px;
  justify-items: center;
  width: 44px;
}

.image-avatar {
  object-fit: cover;
}

.reply {
  align-items: end;
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: auto 1fr auto;
  z-index: 2;
}

.reply-preview {
  align-items: center;
  background: #f5f7f6;
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.reply-preview[hidden] {
  display: none;
}

.reply-preview p {
  color: var(--muted);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reply-preview button {
  align-items: center;
  background: transparent;
  color: var(--muted);
  display: grid;
  font-size: 22px;
  height: 34px;
  justify-items: center;
  padding: 0;
  width: 34px;
}

.reply textarea {
  background: #f5f7f6;
  border: 0;
  border-radius: 14px;
  line-height: 22px;
  max-height: 130px;
  min-height: 48px;
  overflow-y: hidden;
  padding: 13px 14px;
  resize: none;
}

.scroll-bottom-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  bottom: 82px;
  box-shadow: 0 6px 15px rgba(30, 20, 20, 0.15);
  color: var(--brand-dark);
  display: grid;
  height: 42px;
  justify-items: center;
  padding: 0;
  position: absolute;
  right: 16px;
  width: 42px;
  z-index: 4;
}

.scroll-bottom-button[hidden] {
  display: none;
}

.composer-field {
  display: grid;
  gap: 6px;
}

.composer-field p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 12px;
}

.attach-button {
  align-items: center;
  background: #f5f7f6;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  font-size: 28px;
  font-weight: 400;
  height: 48px;
  justify-items: center;
  margin: 0;
  width: 48px;
}

.attach-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.reply-foot {
  align-items: end;
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.attachment-preview {
  margin-bottom: 8px;
}

.message-image-link {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
}

.message-image {
  border-radius: 6px;
  display: block;
  max-height: 260px;
  max-width: min(100%, 280px);
  object-fit: contain;
  width: auto;
}

.message-file[hidden],
.message-image-link[hidden] {
  display: none;
}

.message-file {
  background: #f0f4f2;
  border-radius: 6px;
  color: var(--ink);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 10px 12px;
  text-decoration: none;
}

.image-modal {
  align-items: center;
  background: rgba(8, 12, 10, 0.86);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 22px;
  position: fixed;
  z-index: 50;
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  border-radius: 8px;
  max-height: 92vh;
  max-width: 96vw;
  object-fit: contain;
}

.image-modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  font-size: 28px;
  height: 44px;
  justify-items: center;
  padding: 0;
  position: fixed;
  right: 18px;
  top: 18px;
  width: 44px;
}

.notice {
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.notice.error {
  background: #ffe8e8;
}

.notice.info {
  background: #fff0f0;
}

@media (max-width: 760px) {
  body.chat-page {
    overflow: hidden;
  }

  .conversation {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .login-panel {
    border-radius: 0;
    margin: 0 auto;
    min-height: 100vh;
  }

  .universe-register {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 28px 22px 36px;
  }

  .universe-login {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    padding: 28px 22px 36px;
  }

  .universe-accent {
    border-radius: 0;
  }

  .universe-register h1,
  .universe-login h1 {
    font-size: 34px;
  }

  .auth-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    display: none;
  }

  .dashboard-page .topbar {
    display: none;
  }

  .dashboard-page .topbar-nav {
    gap: 12px;
    margin-right: 0;
  }

  .dashboard-page .topbar form {
    display: none;
  }

  .home-screen {
    gap: 28px;
    min-height: calc(100svh - 68px);
    padding: 22px 20px 30px;
  }

  .home-logo {
    max-width: 210px;
    width: 58vw;
  }

  .home-intro {
    align-self: center;
  }

  .home-intro h1 {
    font-size: 48px;
    line-height: 1.02;
  }

  .home-intro > p:last-of-type {
    font-size: 16px;
  }

  .home-actions {
    margin-top: 24px;
  }

  .home-bottom-nav {
    justify-content: space-around;
  }

  .home-bottom-nav a {
    min-width: 72px;
    padding: 4px 6px;
  }

  .dashboard-page .shell {
    padding: 24px 18px;
  }

  .dashboard-head {
    margin: 4px 0 20px;
  }

  .dashboard-head h1 {
    font-size: 27px;
    line-height: 1.18;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    align-items: start;
    grid-template-columns: 1fr;
    margin-bottom: 28px;
    padding: 22px;
  }

  .dashboard-hero-icon {
    height: 48px;
    width: 48px;
  }

  .dashboard-hero-icon svg {
    height: 26px;
    width: 26px;
  }

  .dashboard-hero h2 {
    font-size: 22px;
  }

  .dashboard-section {
    margin-top: 27px;
  }

  .dashboard-section-head h2,
  .dashboard-activity h2 {
    font-size: 20px;
  }

  .dashboard-card {
    min-height: 132px;
    padding: 17px;
  }

  .dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-activity {
    align-items: start;
    padding: 17px;
  }

  .settings-grid,
  .settings-form-grid {
    grid-template-columns: 1fr;
  }

  .settings-card-wide,
  .settings-span {
    grid-column: auto;
  }

  .settings-head {
    padding: 0 18px;
  }

  .settings-head h1 {
    font-size: 30px;
  }

  .settings-grid {
    padding: 0 14px 24px;
  }

  .shell {
    padding: 0 0 68px;
  }

  .wa-inbox {
    border: 0;
    border-radius: 0;
    min-height: calc(100dvh - 68px);
  }

  .wa-inbox-head {
    padding: 28px 18px 10px;
  }

  .wa-inbox-head h1 {
    font-size: 28px;
  }

  .wa-inbox-head span {
    display: none;
  }

  .wa-inbox-head .icon-button {
    flex: 0 0 40px;
    padding: 0;
  }

  .chat-filters {
    padding: 8px 18px 12px;
  }

  .reply-performance {
    padding: 0 18px;
  }

  .wa-chat-row {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 12px 16px;
  }

  .chat-shell {
    height: calc(100dvh - 68px);
    padding: 0;
  }

  .chat-layout {
    border: 0;
    border-radius: 0;
  }

  .chat-head {
    gap: 10px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    padding: 10px 12px;
  }

  .chat-head h1 {
    font-size: 18px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chat-head p {
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .reply {
    gap: 8px;
    grid-template-columns: auto 1fr auto;
    padding: 10px;
  }

  .composer-field p {
    display: none;
  }

  .reply-foot button {
    border-radius: 50%;
    height: 48px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-indent: -999px;
    width: 48px;
  }

  .reply-foot button::after {
    content: ">";
    display: grid;
    inset: 0;
    place-items: center;
    position: absolute;
    text-indent: 0;
  }

  .thread {
    padding: 14px 12px;
  }

  .bubble {
    max-width: calc(100% - 40px);
  }

  .message-image {
    max-height: 220px;
    max-width: min(100%, 240px);
  }
}
