:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --ink: #24322d;
  --muted: #6f7b73;
  --line: #e6ddd0;
  --panel: #ffffff;
  --accent: #2f6f5e;
  --accent-dark: #244f44;
  --soft: #f1eadf;
  --cream: #fffdf8;
  --warm: #c88463;
  --display: Georgia, "Times New Roman", serif;
  --page-zoom: 0.9;
}

/* Default the whole site to 90% scale, matching browser zoom, so it renders
   at the density the app was designed to be viewed at regardless of the
   visitor's own zoom setting. Visitors can still zoom further from there. */
html {
  zoom: var(--page-zoom);
  scrollbar-gutter: stable;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desktop-nav a:hover {
  color: var(--accent-dark);
}

.page-shell {
  display: grid;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}


.page-heading h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-heading p {
  max-width: 720px;
  color: var(--muted);
}

.vault-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  margin-top: 22px;
}

.vault-filter label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

.vault-filter select,
.vault-filter input[type="date"] {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

.vault-filter-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.vault-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.export-menu {
  position: relative;
  display: inline-block;
}

.export-menu summary {
  list-style: none;
}

.export-menu summary::-webkit-details-marker {
  display: none;
}

.export-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  min-width: 160px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(36, 50, 45, 0.12);
}

.export-menu-panel a,
.export-menu-panel button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.export-menu-panel a:hover,
.export-menu-panel button:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.vault-messages-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.vault-export-menu .export-menu-panel {
  right: 0;
  left: auto;
}

.vault-export-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vault-export-menu[open] summary {
  border-color: var(--accent);
}

.vault-export-note {
  margin: -4px 0 16px;
}

@media (max-width: 600px) {
  .vault-messages-heading {
    align-items: flex-start;
  }

  .vault-messages-toolbar {
    align-items: flex-end;
    flex-direction: column-reverse;
    gap: 8px;
  }
}

.vault-pagination {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.vault-pagination[hidden] {
  display: none;
}

.vault-pagination button:first-child {
  justify-self: start;
}

.vault-pagination button:last-child {
  justify-self: end;
}

.vault-pagination > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

@media (max-width: 460px) {
  .vault-pagination {
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--accent-dark);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  color: var(--ink);
}

td:last-child {
  min-width: 260px;
  white-space: pre-wrap;
}

.vault-blur {
  display: inline-block;
  cursor: pointer;
  filter: blur(5px);
  transition: filter 150ms ease;
  user-select: none;
}

.vault-blur:hover {
  filter: blur(3px);
}

.vault-blur.revealed {
  filter: none;
  cursor: text;
  user-select: text;
}

.vault-taxonomy-blur {
  border-radius: 999px;
  padding: 3px 7px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(200, 132, 99, 0.12), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: relative;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger-menu {
  position: static;
}

.hamburger-menu summary {
  position: relative;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  list-style: none;
}

.hamburger-menu summary:hover {
  background: var(--soft);
}

.hamburger-menu summary::-webkit-details-marker {
  display: none;
}

.hamburger-menu summary span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hamburger-menu[open] summary span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-menu[open] summary span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu[open] summary span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 4px;
  width: min(82vw, 340px);
  /* `zoom` scales the rendered size of fixed-position descendants without
     moving their viewport-relative anchor offsets, so a plain 100dvh here
     renders short by the zoom factor, leaving a gap at the bottom. Dividing
     by the zoom factor cancels that out so it visually spans the full
     viewport again. */
  height: calc(100vh / var(--page-zoom));
  height: calc(100dvh / var(--page-zoom));
  overflow-y: auto;
  border-left: 1px solid var(--line);
  padding: 96px 20px 24px;
  background: var(--cream);
  box-shadow: -22px 0 54px rgba(36, 50, 45, 0.18);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.hamburger-menu[open] .menu-panel {
  transform: translateX(0);
}

.hamburger-menu[open]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(36, 50, 45, 0.18);
}

.menu-panel a {
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 160ms ease, background 160ms ease;
}

.menu-panel a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.menu-panel a.current-page,
.menu-panel a[aria-current="page"] {
  background: #fce7b8;
  color: #232d34;
  box-shadow: inset 4px 0 0 #e0a93d;
}

.menu-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: var(--line);
}

.menu-logout {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--soft);
  color: #8b2f1b;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-logout:hover {
  background: #fff3ef;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  padding: 72px 32px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-family: var(--display);
  font-size: clamp(2.55rem, 5.4vw, 4.9rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.compact {
  margin-top: 16px;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.compact-actions {
  margin-top: 18px;
}

.compact-actions button,
.compact-actions .link-button {
  flex: 1 1 180px;
}

[hidden] {
  display: none !important;
}

button,
.link-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.dm-invite-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--cream);
}

.dm-invite-result {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dm-invite-code-block {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.dm-invite-code-block > span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#dm-invite-code-text {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  cursor: text;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  user-select: text;
  -webkit-user-select: text;
}

.dm-invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.dm-invite-actions .small-button {
  text-align: center;
}

.app-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(36, 50, 45, 0.24);
}

.app-dialog::backdrop {
  background: rgba(36, 50, 45, 0.42);
  backdrop-filter: blur(3px);
}

body.flutter-web .vault-content-warning {
  width: min(460px, calc(100vw - 32px));
  border: 1px solid #e1e5e8;
  border-radius: 22px;
  padding: 30px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 30px 90px rgba(12, 17, 20, 0.42);
}

body.flutter-web .vault-content-warning::backdrop {
  background: rgba(12, 17, 20, 0.76);
  backdrop-filter: blur(5px);
}

body.flutter-web .vault-content-warning .vault-warning-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: #fce7b8;
  color: #765510;
  font-size: 1.35rem;
  font-weight: 900;
}

body.flutter-web .bombardment-warning-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

body.flutter-web .bombardment-warning-title-row .vault-warning-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 12px;
  font-size: 1.05rem;
}

body.flutter-web .vault-content-warning h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #232d34;
  font-size: 1.5rem;
}

body.flutter-web .bombardment-warning-title-row h2 {
  margin: 0;
}

body.flutter-web .vault-content-warning p {
  margin: 0 0 12px;
  color: #64707a;
  font-weight: 600;
  line-height: 1.55;
}

body.flutter-web .vault-content-warning .vault-warning-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 24px;
}

body.flutter-web .vault-content-warning .vault-warning-actions button {
  width: 100%;
  min-height: 50px;
}

body.flutter-web .contact-removal-warning .vault-warning-icon {
  background: #fbe2df;
  color: #b3261e;
}

body.flutter-web .contact-removal-warning .danger {
  border-color: #b3261e;
  background: #b3261e;
  color: #ffffff;
}

body.flutter-web .contact-removal-warning .danger:hover:not(:disabled) {
  background: #8f1f19;
}

@media (max-width: 520px) {
  body.flutter-web .vault-content-warning {
    padding: 24px;
  }

  body.flutter-web .vault-content-warning .vault-warning-actions {
    grid-template-columns: 1fr;
  }
}

.app-dialog h2 {
  padding-right: 36px;
}

.dialog-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
  margin: 0;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 22px rgba(47, 111, 94, 0.18);
}

.primary:hover {
  background: var(--accent-dark);
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 750;
}

.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #e0b4a8;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff3ef;
  color: #8b2f1b;
  font-weight: 750;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(36, 50, 45, 0.07);
}

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

.feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--soft);
  font-weight: 650;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  border-top: 1px solid var(--line);
  padding: 28px 20px;
  background: var(--cream);
  color: var(--muted);
}

.site-footer strong {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 1.2rem;
}

.setup-warning {
  margin-top: 18px;
  color: #8a4b00;
  font-weight: 650;
}

.dashboard {
  display: grid;
  gap: 30px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 58px 32px;
}

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

.metric-card {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--cream);
  box-shadow: 0 12px 28px rgba(36, 50, 45, 0.06);
}

.metric-card span,
.dashboard-card .section-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 2.8rem;
  line-height: 1;
}

.metric-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.dashboard-card {
  display: grid;
  align-content: start;
  gap: 18px;
}

.activity-feed {
  display: grid;
  gap: 12px;
}

.activity-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--cream);
}

.activity-item strong,
.activity-item span {
  display: block;
}

.activity-item span {
  margin-top: 6px;
  color: var(--muted);
}

.category-breakdown {
  display: grid;
  gap: 14px;
}

.category-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
}

.category-row > span {
  font-weight: 800;
}

.category-row strong {
  text-align: right;
}

.category-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.category-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.register-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 24px;
  align-items: end;
}

.protected-number {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: var(--cream);
}

.protected-number span,
.section-heading span,
.helper-text,
.empty-text {
  color: var(--muted);
  font-weight: 650;
}

.protected-number strong {
  display: block;
  margin-top: 10px;
  font-size: 1.55rem;
}

.registering-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.stacked-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
  outline: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--cream) inset;
  box-shadow: 0 0 0 1000px var(--cream) inset;
  caret-color: var(--ink);
  transition: background-color 5000s ease-in-out 0s;
}

textarea {
  resize: vertical;
}

fieldset {
  margin: 0;
  border: 0;
  padding: 0;
}

.segmented-field {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented-field legend {
  width: 100%;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 750;
}

.segmented-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px;
  background: var(--cream);
  color: var(--ink);
}

.segmented-field input {
  width: auto;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.status-heading h2 {
  margin: 0;
}

.section-heading h2 {
  margin: 0;
}

.contact-list,
.message-log {
  display: grid;
  gap: 12px;
}

.contact-row,
.message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--cream);
}

.contact-row span,
.message-meta span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.dm-conversation-row {
  cursor: pointer;
}

.dm-conversation-row.active {
  border-color: var(--accent);
  background: var(--soft);
}

.message-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr) minmax(150px, auto);
  align-items: start;
}

.message-row p {
  margin: 0;
  line-height: 1.5;
}

.status-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.message-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.muted-pill {
  background: #f1f3ef;
  color: var(--muted);
}

.centered {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 78px);
  padding: 48px 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 111, 94, 0.09), transparent 32rem),
    var(--bg);
}

.auth-card {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px;
  background: var(--cream);
  box-shadow: 0 14px 36px rgba(36, 50, 45, 0.08);
}

.auth-brand {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--accent);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
}

.auth-card h1 {
  font-size: 2rem;
  line-height: 1.15;
}

.auth-subtitle {
  margin: 10px 0 28px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
}

.auth-panel input {
  min-height: 52px;
  border-color: var(--line);
  border-radius: 12px;
}

.auth-panel input:focus,
.auth-panel textarea:focus,
.auth-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(33, 107, 79, 0.14);
  outline: 0;
}

.auth-message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 650;
}

.auth-message[data-type="error"] {
  border-color: #e0b4a8;
  background: #fff3ef;
  color: #8b2f1b;
}

.checkbox-label {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.checkbox-label input {
  width: auto;
}

.auth-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.auth-form-footer .primary {
  min-width: 118px;
  border-radius: 999px;
}

.auth-link-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-control {
  min-height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
}

.link-control:hover {
  color: var(--accent-dark);
}

.qr-panel {
  max-width: 520px;
  text-align: center;
}

.qr-panel h1 {
  font-size: 2.5rem;
}

.qr-code {
  width: min(72vw, 320px);
  height: auto;
  margin: 28px auto 16px;
}

.qr-url {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-weight: 650;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.text-page {
  min-height: 100vh;
}

.text-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 32px;
}

.phone-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: calc(100vh - 120px);
}

.phone-layout.conversation-list-mode {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.phone-layout.thread-mode {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.conversation-list-mode .phone-frame,
.thread-mode .contact-sidebar {
  display: none;
}

.phone-layout > * {
  min-width: 0;
}

.contact-sidebar {
  display: grid;
  align-content: start;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.72);
  overflow: hidden;
}

.contact-sidebar h1 {
  font-size: 2.6rem;
}

.compact-form h2 {
  margin-bottom: 0;
}

.compact-list {
  gap: 8px;
}

.compact-list .contact-row {
  padding: 12px;
}

.tight-heading {
  margin-bottom: 10px;
}

.phone-frame {
  display: grid;
  grid-template-rows: auto minmax(340px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 18px 46px rgba(36, 50, 45, 0.1);
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
  background: rgba(255, 253, 248, 0.92);
}

.dm-back-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
}

.phone-header span {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
}

.text-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 22px;
  background:
    linear-gradient(rgba(255, 253, 248, 0.74), rgba(255, 253, 248, 0.74)),
    var(--soft);
}

.thread-empty {
  margin: auto;
  text-align: center;
}

.text-bubble {
  max-width: min(74%, 540px);
  border-radius: 18px;
  padding: 11px 13px 8px;
  box-shadow: 0 6px 18px rgba(23, 33, 27, 0.08);
}

.text-bubble p {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.text-bubble.incoming {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #f1f1f4;
  color: #1f2d28;
}

.text-bubble.outgoing {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: #0a84ff;
  color: white;
}

.bubble-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  opacity: 0.72;
  text-transform: capitalize;
}

.text-composer {
  border-top: 1px solid var(--line);
  padding: 14px;
  background: var(--cream);
}

.composer-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  width: 100%;
}

.composer-input {
  display: block;
  min-width: 0;
}

.composer-input textarea {
  min-height: 44px;
  max-height: 132px;
  border-radius: 18px;
}

.send-button {
  border-radius: 999px;
}

.mockups-shell {
  display: grid;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 32px;
}

.mockups-intro {
  max-width: 860px;
}

.mockups-intro h1 {
  font-size: clamp(2.4rem, 4.8vw, 4rem);
}

.mockup-board {
  display: grid;
  gap: 28px;
}

.mockup-frame {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 18px 46px rgba(36, 50, 45, 0.08);
}

.mockup-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  color: var(--muted);
}

.mockup-label span {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mockup-label strong {
  color: var(--accent-dark);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.concierge-mockup {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--cream);
}

.mockup-rail {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 520px;
  padding: 34px;
  background:
    linear-gradient(rgba(47, 111, 94, 0.9), rgba(47, 111, 94, 0.9)),
    var(--accent);
  color: white;
}

.mockup-rail .eyebrow,
.mockup-rail p {
  color: rgba(255, 255, 255, 0.78);
}

.mockup-rail h2 {
  max-width: 420px;
  color: white;
  font-size: 2.35rem;
  line-height: 1.05;
}

.mock-number-card {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.12);
}

.mock-number-card span,
.mock-number-pill span {
  display: block;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.72;
}

.mock-number-card strong,
.mock-number-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.mockup-workflow {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px;
}

.step-card {
  display: flex;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: var(--bg);
}

.step-index {
  color: var(--warm);
  font-weight: 900;
}

.step-card h3,
.command-panel h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 500;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.mock-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: white;
}

.contact-preview-list {
  display: grid;
  gap: 10px;
}

.contact-preview-list article,
.compact-contact,
.screening-row {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--cream);
}

.contact-preview-list span,
.compact-contact span,
.screening-row span {
  color: var(--muted);
}

.contact-preview-list em,
.screening-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.command-mockup {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(200, 132, 99, 0.12), transparent 24rem),
    var(--cream);
}

.command-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.command-header h2 {
  max-width: 620px;
  font-size: 2.25rem;
  line-height: 1.08;
}

.mock-number-pill {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  background: white;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(240px, 1fr);
  gap: 18px;
}

.command-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.wide-command {
  grid-column: 1 / -1;
}

.screening-row {
  grid-template-columns: minmax(90px, 0.6fr) minmax(0, 1fr) auto;
  align-items: center;
}

.settings-shell {
  display: grid;
  gap: 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 32px;
}

.settings-hero {
  display: grid;
  gap: 28px;
  align-items: end;
}

.settings-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.settings-nav-card {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.82);
}

.settings-nav-card a {
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.settings-nav-card a:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

.settings-stack {
  display: grid;
  gap: 22px;
}

.settings-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  background: var(--cream);
  box-shadow: 0 14px 34px rgba(36, 50, 45, 0.07);
}

.settings-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.settings-card-heading h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.setting-pill {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

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

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: white;
  color: var(--ink);
}

.choice-card input {
  width: auto;
  margin-top: 4px;
}

.choice-card strong,
.choice-card em {
  display: block;
}

.choice-card em {
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.active-choice {
  border-color: rgba(47, 111, 94, 0.45);
  background: #f4f0e8;
}

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

.toggle-row {
  display: flex;
  grid-column: span 1;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
}

.toggle-row input {
  width: auto;
}

.throttle-rule-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: white;
}

.throttle-rule-panel strong {
  display: block;
  margin-bottom: 6px;
}

.throttle-rule-panel p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.throttle-rule-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}

.throttle-rule-select {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.throttle-rule-select select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 42px 0 18px;
  background: var(--cream);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.throttle-rule-combo {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--cream);
}

.throttle-rule-combo:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 94, 0.12);
}

.throttle-rule-combo input {
  width: 56px;
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.throttle-rule-combo input:focus {
  outline: 0;
  box-shadow: none;
}

.throttle-rule-combo input::-webkit-outer-spin-button,
.throttle-rule-combo input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.throttle-rule-combo-unit {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.throttle-rule-combo-chevron {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.throttle-rule-combo .throttle-rule-combo-unit-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: auto;
  margin-left: 8px;
  border: none;
  border-radius: 0;
  padding: 0 15px 0 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 6px top 45% / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 1px top 45% / 5px 5px no-repeat;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.throttle-rule-combo-unit-select:focus {
  outline: 0;
  box-shadow: none;
}

.dnd-activation {
  max-width: 360px;
  margin-bottom: 16px;
}

[data-dnd-control]:disabled {
  opacity: 0.58;
}

@media (max-width: 980px) {
  .phone-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .contact-sidebar {
    padding: 20px;
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: 0 20px;
    min-height: 76px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 36px 20px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .dashboard {
    padding: 32px 20px;
  }

  .register-header {
    gap: 16px;
    align-items: stretch;
  }

  .register-header h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .protected-number {
    padding: 16px;
  }

  .protected-number strong {
    font-size: 1.28rem;
    overflow-wrap: anywhere;
  }

  .registering-grid {
    gap: 16px;
  }

  .registering-grid .panel {
    padding: 20px;
  }

  .registering-grid .section-heading {
    align-items: start;
    gap: 10px;
  }

  .registering-grid .section-heading h2 {
    font-size: 1.25rem;
  }

  .compact-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .compact-actions button,
  .compact-actions .link-button {
    width: 100%;
  }

  .app-dialog {
    width: min(100vw - 24px, 460px);
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  .dashboard-summary-grid,
  .dashboard-grid,
  .register-header,
  .registering-grid,
  .message-row {
    grid-template-columns: 1fr;
  }

  .category-row {
    grid-template-columns: 1fr;
  }

  .category-row strong {
    text-align: left;
  }

  .message-tags {
    justify-content: flex-start;
  }

  .contact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .text-shell {
    padding: 0;
  }

  .phone-layout {
    display: block;
    min-height: calc(100vh - 76px);
  }

  .contact-sidebar {
    min-height: calc(100vh - 76px);
    border: 0;
    border-radius: 0;
    padding: 18px;
    background: var(--cream);
  }

  .phone-frame {
    min-height: calc(100vh - 76px);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-header {
    position: sticky;
    top: 0;
    z-index: 2;
    justify-content: flex-start;
    min-height: 58px;
    padding: 10px 12px;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(12px);
  }

  .phone-header span {
    flex: 1;
    text-align: center;
  }

  .text-thread {
    min-height: calc(100vh - 154px);
    padding: 14px;
    background: #f6f6f7;
  }

  .text-bubble {
    max-width: 82%;
    box-shadow: none;
  }

  .text-bubble p {
    font-size: 0.98rem;
    line-height: 1.34;
  }

  .bubble-meta {
    font-size: 0.64rem;
  }

  .text-composer {
    position: sticky;
    bottom: 0;
    padding: 10px;
    background: rgba(255, 253, 248, 0.96);
    backdrop-filter: blur(12px);
  }

  .composer-input-row {
    align-items: center;
  }

  .composer-input textarea {
    min-height: 40px;
    border-radius: 20px;
  }

  .send-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .compact-list .contact-row {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 15px 28px 15px 4px;
    background: transparent;
  }

  .compact-list .contact-row::after {
    content: "›";
    position: absolute;
    right: 8px;
    color: var(--muted);
    font-size: 1.4rem;
  }

  .compact-list .contact-row strong {
    font-size: 1.05rem;
  }

  .compact-list .contact-row span {
    max-width: calc(100vw - 86px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mockups-shell {
    padding: 32px 18px;
  }

  .concierge-mockup,
  .command-grid {
    grid-template-columns: 1fr;
  }

  .mockup-rail {
    min-height: auto;
  }

  .command-header {
    align-items: start;
    flex-direction: column;
  }

  .screening-row {
    grid-template-columns: 1fr;
  }

  .settings-shell {
    padding: 32px 18px;
  }

  .settings-hero,
  .settings-layout,
  .settings-grid,
  .sensitivity-options {
    grid-template-columns: 1fr;
  }

  .settings-nav-card {
    position: static;
  }

  .settings-card-heading {
    flex-direction: column;
  }
}

/*
  Slate + gold theme, matched to the Flutter2 app's login/settings palette
  (amicableNavy/amicableInk/amicableGold). Scoped to `body.theme-slate-gold`
  so it only repaints the routes that opt in (Dashboard, Vault) instead of
  the whole site.
*/
body.theme-slate-gold {
  color-scheme: light;
  --bg: #f6f7f8;
  --ink: #232d34;
  --muted: #64707a;
  --line: #e1e5e8;
  --panel: #ffffff;
  --accent: #36454f;
  --accent-dark: #232d34;
  --soft: #fce7b8;
  --cream: #ffffff;
  --warm: #e0a93d;
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(224, 169, 61, 0.1), transparent 34rem),
    var(--bg);
}

body.theme-slate-gold h1,
body.theme-slate-gold .page-heading h1,
body.theme-slate-gold h2,
body.theme-slate-gold .metric-card strong {
  font-weight: 800;
}

body.theme-slate-gold .topbar {
  background: rgba(255, 255, 255, 0.94);
}

body.theme-slate-gold .menu-panel {
  background: var(--cream);
  box-shadow: -22px 0 54px rgba(35, 45, 52, 0.18);
}

body.theme-slate-gold .hamburger-menu[open]::before {
  background: rgba(35, 45, 52, 0.18);
}

body.theme-slate-gold .primary {
  background: #fdc757;
  color: #232d34;
  box-shadow: 0 10px 22px rgba(224, 169, 61, 0.32);
}

body.theme-slate-gold .primary:hover {
  background: #e0a93d;
}

body.theme-slate-gold .panel,
body.theme-slate-gold .metric-card {
  box-shadow: 0 12px 28px rgba(35, 45, 52, 0.07);
}

body.theme-slate-gold .export-menu-panel {
  box-shadow: 0 12px 28px rgba(35, 45, 52, 0.12);
}

body.theme-slate-gold input:focus,
body.theme-slate-gold select:focus,
body.theme-slate-gold textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(54, 69, 79, 0.14);
}

/*
  Flutter2-inspired web application theme. This is intentionally scoped to
  routes carrying `body.flutter-web`; Dashboard, Vault, and QR keep their
  existing presentation.
*/
body.flutter-web {
  color-scheme: light;
  --bg: #232d34;
  --ink: #232d34;
  --muted: #64707a;
  --line: #e1e5e8;
  --panel: #ffffff;
  --accent: #36454f;
  --accent-dark: #232d34;
  --soft: #fce7b8;
  --cream: #fbfcfd;
  --warm: #fdc757;
  --display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 199, 87, 0.1), transparent 30rem),
    linear-gradient(155deg, #36454f 0%, #2d3a43 46%, #232d34 100%);
  color: #ffffff;
}

body.flutter-web .topbar {
  position: sticky;
  top: 0;
  min-height: 80px;
  padding: 0 24px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: #36454f;
  backdrop-filter: blur(18px);
}

body.flutter-web .brand {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

body.flutter-web .brand::before {
  display: none;
}

/* App shell topbar: centered brand with a contextual back-to-Home button on
   the left, matching the Flutter app's AppBar. The brand is taken out of
   flex flow so it stays centered regardless of whether the back button or
   the hamburger menu are present. */
body.flutter-web .app-topbar .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-transform: none;
}

body.flutter-web .app-topbar .topbar-right {
  margin-left: auto;
}

body.flutter-web .topbar-back {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #ffffff;
}

body.flutter-web .topbar-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.flutter-web .hamburger-menu summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.flutter-web .hamburger-menu summary span {
  background: #ffffff;
}

body.flutter-web .menu-panel {
  border-left-color: rgba(255, 255, 255, 0.1);
  background: #2c3942;
  box-shadow: -22px 0 60px rgba(17, 23, 27, 0.38);
}

body.flutter-web .hamburger-menu[open]::before {
  background: rgba(12, 17, 20, 0.55);
  backdrop-filter: blur(2px);
}

body.flutter-web .menu-panel a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
}

body.flutter-web .menu-panel a:hover {
  background: rgba(253, 199, 87, 0.12);
  color: #fdc757;
}

body.flutter-web .menu-panel a.current-page,
body.flutter-web .menu-panel a[aria-current="page"] {
  border-radius: 14px;
  background: rgba(253, 199, 87, 0.16);
  color: #fdc757;
  box-shadow: none;
}

body.flutter-web .menu-panel a.current-page::before,
body.flutter-web .menu-panel a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 4px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #fdc757;
}

body.flutter-web .menu-divider {
  background: rgba(255, 255, 255, 0.12);
}

body.flutter-web .menu-logout {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffc3b6;
}

body.flutter-web h1,
body.flutter-web h2 {
  font-family: var(--display);
  letter-spacing: -0.025em;
}

body.flutter-web h1 {
  color: #ffffff;
  font-weight: 850;
}

body.flutter-web h2 {
  color: var(--ink);
  font-weight: 800;
}

body.flutter-web .eyebrow {
  color: #fdc757;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body.flutter-web .lede {
  color: rgba(255, 255, 255, 0.7);
}

body.flutter-web .panel,
body.flutter-web .settings-card,
body.flutter-web .auth-card,
body.flutter-web .app-dialog {
  border-color: var(--line);
  border-radius: 20px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(12, 17, 20, 0.2);
}

body.flutter-web .panel p:not(.eyebrow),
body.flutter-web .auth-card p,
body.flutter-web .settings-card p {
  color: var(--muted);
}

body.flutter-web .panel h1 {
  color: var(--ink);
}

body.flutter-web button,
body.flutter-web .link-button,
body.flutter-web .secondary {
  min-height: 48px;
  font-weight: 800;
}

body.flutter-web .small-button {
  min-height: 36px;
  font-weight: 750;
}

body.flutter-web .primary {
  background: #fdc757;
  color: #232d34;
  box-shadow: 0 12px 26px rgba(224, 169, 61, 0.3);
}

body.flutter-web .primary:hover {
  background: #eab548;
}

body.flutter-web .secondary {
  border-color: var(--line);
  background: #fbfcfd;
  color: var(--ink);
}

body.flutter-web .secondary:hover {
  border-color: #c6cdd2;
  background: #f2f4f5;
}

body.flutter-web.checkout-page {
  background: #f6f7f8;
  color: #232d34;
}

.checkout-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #36454f;
  color: #ffffff;
}

body.flutter-web .checkout-topbar h1 {
  position: absolute;
  left: 50%;
  margin: 0;
  color: #ffffff;
  font-size: 1.2rem;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.checkout-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  justify-self: start;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
}

.checkout-close:hover,
.checkout-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.checkout-shell {
  width: min(100%, 780px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.checkout-loading,
.checkout-error {
  margin: 48px auto;
  color: #64707a;
  text-align: center;
}

.checkout-error {
  max-width: 620px;
  padding: 20px;
  border: 1px solid #f1c7bc;
  border-radius: 16px;
  background: #fff3ef;
  color: #8c2f1e;
}

body.flutter-web input,
body.flutter-web select,
body.flutter-web textarea {
  border-color: var(--line);
  background: #f6f7f8;
  color: var(--ink);
}

body.flutter-web input:focus,
body.flutter-web select:focus,
body.flutter-web textarea:focus {
  border-color: #e0a93d;
  box-shadow: 0 0 0 3px rgba(224, 169, 61, 0.18);
}

body.flutter-web input:-webkit-autofill,
body.flutter-web input:-webkit-autofill:hover,
body.flutter-web input:-webkit-autofill:focus,
body.flutter-web input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #f6f7f8 inset;
  box-shadow: 0 0 0 1000px #f6f7f8 inset;
  caret-color: var(--ink);
  transition: background-color 5000s ease-in-out 0s;
}

body.flutter-web label {
  color: var(--muted);
}

.available-numbers-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 72px 24px;
}

body.flutter-web .available-numbers-card {
  display: grid;
  gap: 22px;
  padding: clamp(28px, 5vw, 48px);
}

body.flutter-web .available-numbers-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
}

.available-numbers-card .eyebrow,
.available-numbers-intro,
.available-numbers-status,
.available-numbers-confirmation {
  margin: 0;
}

.available-numbers-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.available-numbers-status {
  color: var(--muted);
  font-weight: 700;
}

.available-numbers-status[data-type="error"] {
  color: #8c2f1e;
}

.available-numbers-confirmation {
  border: 1px solid #d8e4dc;
  border-radius: 14px;
  padding: 16px 18px;
  background: #f1f7f3;
  color: #2f6f5e;
  font-weight: 800;
  line-height: 1.5;
}

body.flutter-web .hero {
  min-height: calc(100vh - 80px);
}

body.flutter-web .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1.02;
}

body.flutter-web .feature-list li {
  border: 1px solid var(--line);
  background: #f6f7f8;
  color: var(--ink);
}

body.flutter-web .feature-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #e0a93d;
  font-weight: 950;
}

body.flutter-web .site-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: rgba(35, 45, 52, 0.72);
  color: rgba(255, 255, 255, 0.62);
}

body.flutter-web .site-footer strong {
  color: #fdc757;
  font-family: var(--display);
}

body.flutter-web .dashboard {
  width: min(1100px, 100%);
  min-height: calc(100vh - 80px);
  padding-top: 64px;
  padding-bottom: 80px;
}

body.flutter-web .dashboard > section:first-child h1,
body.flutter-web .register-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

body.flutter-web .dashboard-grid {
  gap: 22px;
}

body.flutter-web .dashboard-card {
  min-height: 230px;
  border-radius: 20px;
  padding: 28px;
}

body.flutter-web .dashboard-card.wide {
  background:
    linear-gradient(120deg, rgba(253, 199, 87, 0.13), transparent 55%),
    #ffffff;
}

body.flutter-web .dashboard-card .section-heading span,
body.flutter-web .section-heading span {
  color: #e0a93d;
}

body.flutter-web .dashboard-card .actions {
  margin-top: auto;
}

body.flutter-web .status-pill {
  background: #fce7b8;
  color: #7b5b19;
}

body.flutter-web .protected-number {
  border-color: rgba(253, 199, 87, 0.42);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

body.flutter-web .protected-number span {
  color: rgba(255, 255, 255, 0.65);
}

body.flutter-web .protected-number strong {
  color: #fdc757;
}

body.flutter-web .registering-grid .panel {
  border-radius: 20px;
}

body.flutter-web .contact-row {
  border-color: var(--line);
  background: #f6f7f8;
}

body.flutter-web .contact-row strong {
  color: var(--ink);
}

body.flutter-web .dm-invite-panel {
  background: #f6f7f8;
}

body.flutter-web .table-wrap {
  border-color: var(--line);
  background: #f6f7f8;
}

body.flutter-web th {
  color: var(--muted);
}

body.flutter-web td {
  border-color: var(--line);
}

body.flutter-web.vault-page .page-shell {
  width: min(1100px, 100%);
  padding-top: 64px;
}

body.flutter-web.vault-page .page-heading h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

body.flutter-web.vault-page .page-heading p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.7);
}

body.flutter-web .dialog-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: #f6f7f8;
}

body.flutter-web .app-dialog::backdrop {
  background: rgba(12, 17, 20, 0.62);
}

body.flutter-web.auth-page .topbar {
  position: absolute;
  width: 100%;
  border-bottom: 0;
  background: transparent;
}

body.flutter-web .auth-shell {
  min-height: 100vh;
  padding-top: 110px;
  background: transparent;
}

body.flutter-web .auth-card {
  width: min(100%, 480px);
  padding: 36px;
}

body.flutter-web .auth-brand {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.flutter-web .auth-card h1 {
  color: var(--ink);
  font-size: 2rem;
}

body.flutter-web .link-control {
  color: #36454f;
}

body.flutter-web .centered {
  background: transparent;
}

body.flutter-web .centered .panel {
  width: min(100%, 560px);
}

body.flutter-web .text-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 80px);
  padding-top: 34px;
  padding-bottom: 44px;
}

body.flutter-web .contact-sidebar {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(12, 17, 20, 0.2);
}

body.flutter-web .contact-sidebar h2 {
  font-size: 1.3rem;
}

body.flutter-web .dm-conversation-row {
  border-radius: 18px;
  background: #ffffff;
}

body.flutter-web .dm-conversation-row.active {
  border-color: #e0a93d;
  background: #fff8e8;
}

body.flutter-web .phone-frame {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(12, 17, 20, 0.24);
}

body.flutter-web .phone-header {
  border-bottom: 0;
  background: #36454f;
}

body.flutter-web .phone-header span {
  color: #ffffff;
}

body.flutter-web .phone-header .secondary {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.flutter-web .text-thread {
  background: #f6f7f8;
}

body.flutter-web .text-bubble {
  padding: 13px 16px 9px;
  box-shadow: none;
}

body.flutter-web .text-bubble.incoming {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

body.flutter-web .text-bubble.outgoing {
  background: #36454f;
  color: #ffffff;
}

body.flutter-web .text-composer {
  background: #ffffff;
}

body.flutter-web .composer-input textarea {
  background: #f6f7f8;
}

body.flutter-web.settings-page .settings-shell {
  width: min(936px, 100%);
  max-width: 936px;
  min-height: calc(100vh - 64px);
  align-content: start;
  gap: 28px;
  padding: 40px 24px 64px;
}

body.flutter-web.settings-page {
  background: linear-gradient(to bottom, #36454f, #232d34);
}

body.flutter-web.settings-page .settings-hero .eyebrow {
  margin-bottom: 8px;
}

body.flutter-web .settings-hero h1 {
  max-width: 720px;
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.05;
}

body.flutter-web.settings-page .settings-stack {
  width: 100%;
  gap: 28px;
  max-width: 936px;
  margin: 0 auto;
}

body.flutter-web .delete-account-dialog {
  width: min(520px, calc(100vw - 32px));
  border-color: #f2c8c0;
  border-radius: 22px;
  padding: 30px;
  background: #ffffff;
}

body.flutter-web .delete-account-dialog h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #ba1a1a;
  font-size: 1.5rem;
}

body.flutter-web .delete-account-dialog p {
  margin: 0;
  color: #64707a;
  font-weight: 600;
  line-height: 1.55;
}

body.flutter-web .delete-account-export {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web .delete-account-export-heading {
  display: block;
}

body.flutter-web .delete-account-export-heading h3 {
  margin: 0;
  color: #232d34;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
}

body.flutter-web .delete-account-export-heading p {
  margin-top: 4px;
  color: #64707a;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web .delete-account-export .delete-account-export-description {
  color: #64707a;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

body.flutter-web .delete-account-export-menu {
  display: block;
  width: 100%;
}

body.flutter-web .delete-account-export-button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid #d7dde0;
  border-radius: 13px;
  padding: 0 16px;
  background: #f7f8f9;
  color: #232d34;
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

body.flutter-web .delete-account-export-button:hover {
  border-color: #ba1a1a;
  background: #fff3ef;
  transform: translateY(-1px);
}

body.flutter-web .delete-account-export-button:focus-visible {
  outline: 3px solid rgba(186, 26, 26, 0.18);
  outline-offset: 2px;
}

body.flutter-web .delete-account-export-chevron {
  transition: transform 150ms ease;
}

body.flutter-web .delete-account-export-menu[open] .delete-account-export-chevron {
  transform: rotate(180deg);
}

body.flutter-web .delete-account-export-menu .export-menu-panel {
  right: 0;
  left: 0;
  min-width: 0;
  border-color: #d7dde0;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(12, 17, 20, 0.18);
}

body.flutter-web .delete-account-export-menu .export-menu-panel button {
  min-height: 44px;
  color: #36454f;
}

body.flutter-web .delete-account-export-menu .export-menu-panel button:hover,
body.flutter-web .delete-account-export-menu .export-menu-panel button:focus-visible {
  background: #fff3d5;
  color: #765510;
}

body.flutter-web .delete-account-export-status {
  min-height: 0;
  margin: 0;
  font-weight: 600;
  color: #64707a;
}

body.flutter-web .delete-account-export-status:empty {
  display: none;
}

body.flutter-web .delete-account-confirmation-field {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  color: #232d34;
  font-weight: 700;
}

body.flutter-web .delete-account-confirmation-field input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfcfd;
  color: #232d34;
  font: inherit;
}

body.flutter-web .delete-account-confirmation-field input:focus {
  border-color: #ba1a1a;
  outline: 3px solid rgba(186, 26, 26, 0.14);
  outline-offset: 1px;
}

body.flutter-web .delete-account-status {
  min-height: 1.4em;
  margin-top: 12px;
  font-weight: 700;
}

body.flutter-web .delete-account-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 12px;
  margin-top: 22px;
}

body.flutter-web .delete-account-dialog-actions button {
  width: 100%;
  min-height: 48px;
}

body.flutter-web .delete-account-dialog-actions .danger:not(:disabled) {
  border-color: #ba1a1a;
  background: #ba1a1a;
  color: #ffffff;
}

body.flutter-web.settings-page .settings-section-label {
  margin: 0 0 10px;
}

body.flutter-web.settings-page .settings-row-group {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

body.flutter-web.settings-page .settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  font-size: 0.98rem;
  text-align: left;
}

body.flutter-web.settings-page .settings-row + .settings-row {
  border-top: 1px solid var(--line);
}

body.flutter-web.settings-page button.settings-row {
  cursor: pointer;
}

body.flutter-web.settings-page .settings-row-icon {
  flex: 0 0 auto;
  color: var(--ink);
}

body.flutter-web.settings-page .settings-row.is-disabled {
  color: rgba(100, 112, 122, 0.48);
}

body.flutter-web.settings-page .settings-row.is-disabled .settings-row-icon {
  color: rgba(100, 112, 122, 0.42);
}

body.flutter-web.settings-page .settings-row-label {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
  overflow: hidden;
}

body.flutter-web.settings-page .settings-row-label small {
  color: rgba(100, 112, 122, 0.52);
  font-size: 0.76rem;
  font-weight: 800;
}

body.flutter-web.settings-page .settings-row-value {
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  color: rgba(100, 112, 122, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
}

body.flutter-web.settings-page #throttle-row-status.is-active {
  background: transparent;
  color: var(--muted);
}

body.flutter-web.settings-page .settings-row-chevron {
  flex: 0 0 auto;
  color: var(--muted);
}

body.flutter-web.settings-page .settings-row-danger,
body.flutter-web.settings-page .settings-row-danger .settings-row-icon {
  color: #ba1a1a;
}

body.flutter-web.settings-page .change-password-status:empty {
  display: none;
}

body.flutter-web .throttle-dialog {
  width: min(1040px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 36px;
}

body.flutter-web .throttle-dialog .throttle-settings-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.flutter-web .throttle-settings-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web .throttle-status-card {
  grid-column: 1;
  grid-row: 1;
}

body.flutter-web .throttle-explainer {
  grid-column: 1;
  grid-row: 2;
}

body.flutter-web .throttle-rule-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}

@media (max-width: 900px) {
  body.flutter-web .throttle-dialog .throttle-settings-card,
  body.flutter-web .throttle-settings-card {
    grid-template-columns: minmax(0, 1fr);
  }

  body.flutter-web .throttle-status-card,
  body.flutter-web .throttle-explainer,
  body.flutter-web .throttle-rule-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  body.flutter-web .throttle-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 22px;
  }

  body.flutter-web .delete-account-dialog {
    padding: 24px;
  }

  body.flutter-web .delete-account-dialog-actions {
    grid-template-columns: 1fr;
  }
}

body.flutter-web .throttle-status-card {
  border: 1px solid #e0a93d;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(to bottom right, #ffe7b3, #fbfcfd);
  color: var(--ink);
  box-shadow: none;
}

body.flutter-web .throttle-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.flutter-web .throttle-status-heading h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}

body.flutter-web .throttle-switch {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  cursor: pointer;
}

body.flutter-web .throttle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

body.flutter-web .throttle-switch-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cbd1d5;
  transition: background 160ms ease;
}

body.flutter-web .throttle-switch-track::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(35, 45, 52, 0.24);
  transition: transform 160ms ease, background 160ms ease;
}

body.flutter-web .throttle-switch input:checked + .throttle-switch-track {
  background: #36454f;
}

body.flutter-web .throttle-switch input:checked + .throttle-switch-track::after {
  transform: translateX(20px);
  background: #fdc757;
}

body.flutter-web .throttle-switch input:focus-visible + .throttle-switch-track {
  outline: 3px solid rgba(224, 169, 61, 0.35);
  outline-offset: 2px;
}

body.flutter-web .throttle-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

body.flutter-web .throttle-stats > div {
  display: grid;
  gap: 5px;
}

body.flutter-web .throttle-stats strong {
  color: var(--ink);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
}

body.flutter-web .throttle-stats span {
  max-width: 150px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.35;
}

body.flutter-web .throttle-explainer,
body.flutter-web .throttle-rule-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: none;
}

body.flutter-web .throttle-explainer p {
  margin: 0;
  color: #64707a;
  font-weight: 600;
  line-height: 1.5;
}

body.flutter-web .throttle-explainer strong {
  color: var(--ink);
  font-weight: 800;
}

body.flutter-web .throttle-rule-panel {
  display: block;
  transition: opacity 160ms ease;
}

body.flutter-web .throttle-rule-panel.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.flutter-web .throttle-rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

body.flutter-web .throttle-rule-title p {
  margin: 2px 0 0;
  font-weight: 600;
}

body.flutter-web .throttle-rule-title strong {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
}

body.flutter-web .throttle-rule-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #36454f;
  color: #fdc757;
  font-size: 1.6rem;
  font-weight: 950;
}

body.flutter-web .throttle-control-label {
  margin: 0 0 10px;
  color: #64707a;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

body.flutter-web .throttle-threshold-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  border-radius: 14px;
  padding: 4px;
  background: #f6f7f8;
}

body.flutter-web .throttle-threshold-picker button {
  min-width: 0;
  min-height: 45px;
  border: 0;
  border-radius: 11px;
  padding: 13px 8px;
  background: transparent;
  color: #64707a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

body.flutter-web .throttle-threshold-picker button.selected {
  background: #36454f;
  color: #ffffff;
}

body.flutter-web .throttle-threshold-picker button:focus-visible {
  outline: 3px solid rgba(224, 169, 61, 0.35);
  outline-offset: 1px;
}

body.flutter-web .throttle-custom-threshold-field {
  display: grid;
  width: min(100%, 240px);
  margin: -10px 0 22px;
  color: #64707a;
}

body.flutter-web .throttle-custom-threshold-field[hidden] {
  display: none;
}

body.flutter-web .throttle-custom-threshold-field > span {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin: 0 0 -8px 12px;
  padding: 0 4px;
  background: #fbfcfd;
  color: #64707a;
  font-size: 0.75rem;
  line-height: 1;
}

body.flutter-web .throttle-custom-threshold-field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  padding: 14px 12px 8px;
  background: #fbfcfd;
  color: #232d34;
  font: inherit;
}

body.flutter-web .throttle-custom-threshold-field input:focus {
  border-color: #e0a93d;
  box-shadow: none;
  outline: 0;
}

body.flutter-web .throttle-window-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

body.flutter-web .throttle-window-field {
  display: grid;
  width: 140px;
  color: #64707a;
}

body.flutter-web .throttle-window-field:nth-child(2) {
  width: 168px;
}

body.flutter-web .throttle-window-field > span {
  position: relative;
  z-index: 1;
  justify-self: start;
  margin: 0 0 -8px 12px;
  padding: 0 4px;
  background: #fbfcfd;
  color: #64707a;
  font-size: 0.75rem;
  line-height: 1;
}

body.flutter-web .throttle-window-field input,
body.flutter-web .throttle-window-field select {
  width: 100%;
  min-height: 56px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  padding: 14px 12px 8px;
  background: #fbfcfd;
  color: #232d34;
  font: inherit;
}

body.flutter-web .throttle-window-actions .primary {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  box-shadow: none;
}

body.flutter-web .throttle-save-status {
  margin-top: 12px;
  color: #232d34;
  font-weight: 700;
}

body.flutter-web .throttle-save-status:empty {
  display: none;
}

body.flutter-web .throttle-save-status.is-error {
  color: #ba1a1a;
}

/* Compact Settings-style bombardment controls. */
body.flutter-web .throttle-dialog {
  width: min(720px, calc(100vw - 48px));
  padding: 34px;
}

body.flutter-web .throttle-dialog .throttle-settings-card {
  display: block;
}

body.flutter-web .throttle-compact-header {
  margin: 0 0 22px;
  padding-right: 38px;
}

body.flutter-web .throttle-compact-header h2 {
  margin: 0;
  color: #24323a;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

body.flutter-web .throttle-compact-header p {
  margin: 7px 0 0;
  color: #66737b;
  line-height: 1.5;
}

body.flutter-web .throttle-compact-list {
  overflow: hidden;
  border: 1px solid #dfe4e7;
  border-radius: 18px;
  background: #ffffff;
}

body.flutter-web .throttle-compact-list .throttle-rule-panel {
  display: block;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

body.flutter-web .throttle-compact-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #dfe4e7;
  padding: 16px 20px;
  background: #ffffff;
  color: #24323a;
  text-decoration: none;
}

body.flutter-web .throttle-compact-list > .throttle-compact-row:last-child,
body.flutter-web .throttle-rule-panel .throttle-compact-row:last-child {
  border-bottom: 0;
}

body.flutter-web .throttle-compact-row strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 850;
}

body.flutter-web .throttle-compact-row p {
  margin: 4px 0 0;
  color: #66737b;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.4;
}

body.flutter-web .throttle-compact-row select {
  width: 178px;
  min-height: 42px;
  flex: 0 0 auto;
  border: 2px solid #e0a93d;
  border-radius: 11px;
  padding: 8px 33px 8px 10px;
  background-color: #fbfcfd;
  color: #24323a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
}

body.flutter-web .throttle-compact-row select:focus {
  border-color: #e0a93d;
  outline: 3px solid rgba(224, 169, 61, 0.22);
}

body.flutter-web .throttle-compact-actions {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-top: 18px;
}

body.flutter-web .throttle-compact-actions .throttle-save-status {
  margin: 0;
}

body.flutter-web .throttle-compact-actions .primary {
  min-width: 150px;
  min-height: 46px;
  border-radius: 999px;
}

@media (max-width: 620px) {
  body.flutter-web .throttle-dialog {
    width: calc(100vw - 24px);
    padding: 24px 18px 20px;
  }

  body.flutter-web .throttle-compact-row {
    align-items: flex-start;
    gap: 14px;
    padding: 15px 16px;
  }

  body.flutter-web .throttle-compact-row select {
    width: 142px;
  }

  body.flutter-web .throttle-vault-row {
    align-items: center;
  }

  body.flutter-web .throttle-vault-row > span {
    max-width: 105px;
    text-align: right;
  }

  body.flutter-web .throttle-compact-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  body.flutter-web .throttle-compact-actions .primary {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body.flutter-web .brand::before {
    width: 34px;
    height: 34px;
    font-size: 1.7rem;
  }

  body.flutter-web .dashboard {
    padding: 38px 20px 56px;
  }

  body.flutter-web .dashboard-card {
    min-height: auto;
  }

  body.flutter-web .contact-sidebar {
    min-height: calc(100vh - 76px);
    border-radius: 0;
    background: #ffffff;
  }

  body.flutter-web .phone-frame {
    border-radius: 0;
  }

  body.flutter-web .phone-header {
    background: rgba(54, 69, 79, 0.97);
  }

  body.flutter-web .text-thread {
    background: #f6f7f8;
  }

  body.flutter-web .text-composer {
    background: rgba(255, 255, 255, 0.97);
  }

  body.flutter-web.settings-page .settings-shell {
    padding-right: 24px;
    padding-left: 24px;
  }

  body.flutter-web .settings-hero h1 {
    font-size: 2.8rem;
  }
}
.helper-text.is-error {
  color: #ba1a1a;
}

.plan-dialog {
  width: min(680px, calc(100vw - 32px));
}

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

.plan-card {
  display: flex;
  flex-direction: column;
}

.plan-badge-slot {
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
}

.plan-card.highlight .plan-badge {
  background: #c88463;
}

.plan-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--cream);
}

.plan-card.highlight .plan-card-body {
  border-color: #c88463;
  border-width: 1.5px;
  box-shadow: 0 10px 20px rgba(200, 132, 99, 0.18);
}

.plan-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent);
}

.plan-card.highlight .plan-icon {
  background: #fff3ea;
  color: #c88463;
}

.plan-card-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-price {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-price span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-card-body hr {
  margin: 0 0 12px;
  border: none;
  border-top: 1px solid var(--line);
}

.plan-features {
  flex: 1;
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.plan-card.highlight .plan-features li::before {
  color: #c88463;
}

.plan-card-body button {
  width: 100%;
  margin-top: auto;
}

.plan-card.highlight .plan-card-body button.primary {
  background: #c88463;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(200, 132, 99, 0.3);
}

.plan-card.highlight .plan-card-body button.primary:hover {
  background: #b8734f;
}

@media (max-width: 640px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

/* Flutter2 LoginPage parity. */
body.flutter-web.auth-page {
  background: linear-gradient(to bottom, #36454f, #232d34);
  font-family: Roboto, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.flutter-web.auth-page .auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: transparent;
}

body.flutter-web.auth-page .auth-stage {
  display: flex;
  width: min(100%, 420px);
  flex-direction: column;
  align-items: center;
}

body.flutter-web.auth-page .auth-mark {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  place-items: center;
  border: 1.5px solid #e0a93d;
  border-radius: 18px;
  background: #232d34;
}

body.flutter-web.auth-page .auth-mark span {
  position: absolute;
  width: 34px;
  height: 8px;
  border-radius: 4px;
  background: #fdc757;
}

body.flutter-web.auth-page .auth-mark span:first-child {
  transform: rotate(45deg);
}

body.flutter-web.auth-page .auth-mark span:last-child {
  transform: rotate(-45deg);
}

body.flutter-web.auth-page .auth-wordmark {
  margin: 20px 0 32px;
  color: #ffffff;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

body.flutter-web.auth-page .auth-card {
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 28px;
  background: #fbfcfd;
  box-shadow: 0 6px 18px rgba(35, 45, 52, 0.16);
}

body.flutter-web.auth-page .auth-card h1 {
  margin: 0 0 20px;
  color: #232d34;
  font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
}

body.flutter-web.auth-page .auth-panel {
  display: none;
  gap: 14px;
}

body.flutter-web.auth-page .auth-panel.active {
  display: grid;
}

body.flutter-web.auth-page .auth-field {
  position: relative;
  display: block;
  color: #64707a;
}

body.flutter-web.auth-page .auth-field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  padding: 18px 16px 8px;
  background: #fbfcfd;
  color: #232d34;
  font: 400 16px/1.35 Roboto, ui-sans-serif, system-ui, sans-serif;
  outline: 0;
  -webkit-tap-highlight-color: transparent;
}

body.flutter-web.auth-page .auth-field span {
  position: absolute;
  top: 17px;
  left: 16px;
  padding: 0 3px;
  background: #fbfcfd;
  color: #64707a;
  font-size: 16px;
  line-height: 1.25;
  pointer-events: none;
  transform-origin: left center;
  transition: transform 120ms ease, top 120ms ease, color 120ms ease;
}

body.flutter-web.auth-page .auth-field:focus-within input {
  border-color: #fdc757;
  box-shadow: none;
}

body.flutter-web.auth-page .auth-field input:-webkit-autofill,
body.flutter-web.auth-page .auth-field input:-webkit-autofill:hover,
body.flutter-web.auth-page .auth-field input:-webkit-autofill:focus,
body.flutter-web.auth-page .auth-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #232d34;
  -webkit-box-shadow: 0 0 0 1000px #fbfcfd inset;
  box-shadow: 0 0 0 1000px #fbfcfd inset;
  caret-color: #232d34;
  transition: background-color 5000s ease-in-out 0s;
}

body.flutter-web.auth-page .auth-field:focus-within span,
body.flutter-web.auth-page .auth-field input:not(:placeholder-shown) + span {
  top: 5px;
  color: #36454f;
  font-size: 12px;
}

body.flutter-web.auth-page .auth-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #fdc757;
  color: #232d34;
  box-shadow: none;
  font: 700 15px/1.2 Roboto, ui-sans-serif, system-ui, sans-serif;
}

body.flutter-web.auth-page .auth-submit:hover {
  background: #e0a93d;
}

body.flutter-web.auth-page .auth-submit:disabled {
  background: #e1e5e8;
  color: rgba(35, 45, 52, 0.45);
}

body.flutter-web.auth-page .auth-panel-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: -2px;
}

body.flutter-web.auth-page .link-control {
  min-height: 40px;
  padding: 8px;
  color: #36454f;
  font: 500 14px/1.2 Roboto, ui-sans-serif, system-ui, sans-serif;
}

body.flutter-web.auth-page .link-control:hover {
  color: #232d34;
}

body.flutter-web.settings-page .password-recovery-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 20px;
  padding: 28px;
}

body.flutter-web.settings-page .password-recovery-dialog form {
  display: grid;
  gap: 14px;
}

body.flutter-web.settings-page .password-recovery-step {
  display: grid;
  gap: 14px;
}

body.flutter-web.settings-page .password-recovery-step[hidden] {
  display: none;
}

body.flutter-web.settings-page .password-recovery-dialog h2,
body.flutter-web.settings-page .password-recovery-dialog p {
  margin: 0;
}

body.flutter-web.settings-page .password-recovery-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

body.flutter-web.settings-page .password-recovery-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}

body.flutter-web.settings-page .password-recovery-dialog .primary {
  width: 100%;
}

body.flutter-web.settings-page #password-recovery-dialog-status.is-error {
  color: var(--danger, #b3261e);
}

body.flutter-web.auth-page .auth-message {
  position: relative;
  margin: 4px 0 2px;
  border: 1px solid #e5c86f;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff8e5;
  color: #293840;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 5px 14px rgba(35, 45, 52, 0.08);
}

body.flutter-web.auth-page .auth-message[data-type="error"] {
  border: 0;
  background: transparent;
  color: #b3261e;
  box-shadow: none;
}

@media (max-width: 480px) {
  body.flutter-web.auth-page .auth-shell {
    padding: 24px;
  }

  body.flutter-web.auth-page .auth-card {
    padding: 28px;
  }
}

/* Action-oriented Home overview. */
body.flutter-web.home-page .home-shell {
  display: grid;
  gap: 34px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 72px;
}

body.flutter-web.home-page .home-hero {
  display: grid;
  grid-template-columns: 1fr;
}

body.flutter-web.home-page .home-hero > div {
  align-self: center;
}

body.flutter-web.home-page .home-hero h1 {
  max-width: 650px;
  color: #ffffff;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  font-weight: 850;
  line-height: 1.08;
}

body.flutter-web.home-page .home-hero > div > p:last-child {
  max-width: 600px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.5;
}

body.flutter-web.home-page .home-protection-status {
  display: grid;
  align-content: space-between;
  gap: 28px;
  min-height: 190px;
  border: 1px solid #e0a93d;
  border-radius: 22px;
  padding: 26px;
  background: linear-gradient(135deg, #ffe7b3, #fbfcfd 72%);
  color: #232d34;
}

body.flutter-web.home-page .home-status-heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

body.flutter-web.home-page .home-status-heading > div {
  display: grid;
  gap: 5px;
}

body.flutter-web.home-page .home-status-heading strong {
  font-size: 1.25rem;
  font-weight: 850;
}

body.flutter-web.home-page .home-status-heading span:last-child {
  color: #64707a;
  line-height: 1.4;
}

body.flutter-web.home-page .home-status-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #aeb7bd;
  box-shadow: 0 0 0 6px rgba(100, 112, 122, 0.12);
}

body.flutter-web.home-page .home-status-dot.active {
  background: #2f8f55;
  box-shadow: 0 0 0 6px rgba(47, 143, 85, 0.13);
}

body.flutter-web.home-page .home-status-dot.warning {
  background: #d48722;
  box-shadow: 0 0 0 6px rgba(212, 135, 34, 0.14);
}

body.flutter-web.home-page .home-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

body.flutter-web.home-page .home-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 11px;
  background: #36454f;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

body.flutter-web.home-page .home-pill.inactive {
  background: #e1e5e8;
  color: #64707a;
}

body.flutter-web.home-page .home-usage {
  display: grid;
  gap: 20px;
  border: 1px solid #e1e5e8;
  border-radius: 22px;
  padding: 27px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 16px 42px rgba(12, 17, 20, 0.16);
}

body.flutter-web.home-page .home-usage[hidden] {
  display: none;
}

body.flutter-web.home-page .home-usage-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid #e1e5e8;
}

body.flutter-web.home-page .home-usage-heading .eyebrow {
  margin-bottom: 7px;
}

body.flutter-web.home-page .home-usage-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

body.flutter-web.home-page .home-usage-heading p:last-child {
  margin: 7px 0 0;
  color: #64707a;
  font-size: 0.85rem;
}

body.flutter-web.home-page .home-usage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.flutter-web.home-page .home-usage-card {
  border: 1px solid #e1e5e8;
  border-radius: 17px;
  padding: 20px;
  background: #f8f9f9;
}

body.flutter-web.home-page .home-usage-card > span {
  color: #64707a;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.flutter-web.home-page .home-usage-number {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
}

body.flutter-web.home-page .home-usage-number strong {
  font-size: 2.2rem;
  letter-spacing: -0.06em;
  line-height: 1;
}

body.flutter-web.home-page .home-usage-number small,
body.flutter-web.home-page .home-usage-card p {
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 650;
}

body.flutter-web.home-page .home-usage-progress {
  height: 8px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebed;
}

body.flutter-web.home-page .home-usage-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fdc757;
  transition: width 220ms ease;
}

body.flutter-web.home-page .home-usage-progress.green i {
  background: #2f8f55;
}

body.flutter-web.home-page .home-usage-card p {
  margin: 10px 0 0;
  line-height: 1.45;
}

body.flutter-web.home-page .home-essentials {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e0a93d;
  border-radius: 24px;
  padding: 30px;
  background: linear-gradient(112deg, #fff1cf 0%, #fffaf0 68%, #ffffff 100%);
  color: #232d34;
}

body.flutter-web.home-page .home-essentials[hidden] {
  display: none;
}

body.flutter-web.home-page .home-essentials .eyebrow {
  margin-bottom: 10px;
  color: #c98218;
}

body.flutter-web.home-page .home-essentials h2 {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.05;
}

body.flutter-web.home-page .home-essentials-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

body.flutter-web.home-page .home-essentials-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  color: #64707a;
}

body.flutter-web.home-page .home-essential-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #36454f;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

body.flutter-web.home-page .home-essentials-list li > div {
  display: grid;
  gap: 3px;
  padding-top: 4px;
}

body.flutter-web.home-page .home-essentials-list strong {
  color: #36454f;
  font-size: 1rem;
}

body.flutter-web.home-page .home-essentials-list li > div > span {
  font-size: 1rem;
  line-height: 1.4;
}

body.flutter-web.home-page .home-essentials-list li.current .home-essential-marker {
  background: #d48722;
  box-shadow: 0 0 0 5px rgba(212, 135, 34, 0.14);
  transform: scale(1.04);
}

body.flutter-web.home-page .home-essentials-list li.complete {
  opacity: 0.62;
}

body.flutter-web.home-page .home-essentials-list li.complete .home-essential-marker {
  background: #2f8f55;
}

body.flutter-web.home-page .home-essentials-list li.complete strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

body.flutter-web.home-page .home-essentials-action {
  display: grid;
  gap: 14px;
  align-content: center;
}

body.flutter-web.home-page .home-essentials-action p {
  margin: 0;
  color: #64707a;
  text-align: center;
  line-height: 1.5;
}

body.flutter-web.home-page .home-essentials-action .primary {
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  white-space: normal;
  text-align: center;
}

body.flutter-web.home-page .home-section,
body.flutter-web.home-page .home-panel {
  display: grid;
  gap: 18px;
}

body.flutter-web.home-page .home-section-heading,
body.flutter-web.home-page .home-panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

body.flutter-web.home-page .home-section-heading h2,
body.flutter-web.home-page .home-panel-heading h2,
body.flutter-web.home-page .home-guidance h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

body.flutter-web.home-page .home-section-heading h2 {
  color: #ffffff;
}

body.flutter-web.home-page .home-section-heading > p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  text-align: right;
  line-height: 1.45;
}

body.flutter-web.home-page .home-section-heading > a {
  color: #fdc757;
  font-weight: 800;
}

body.flutter-web.home-page .home-attention-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.flutter-web.home-page .home-attention-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 3px 13px;
  border: 1px solid #e1e5e8;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  color: #232d34;
  transition: border-color 150ms ease, transform 150ms ease;
}

body.flutter-web.home-page .home-attention-card:hover {
  border-color: #fdc757;
  transform: translateY(-2px);
}

body.flutter-web.home-page .home-card-icon {
  display: grid;
  grid-row: 1 / 4;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #36454f;
  color: #fdc757;
  font-size: 1.25rem;
  font-weight: 900;
}

body.flutter-web.home-page .home-attention-card strong {
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
}

body.flutter-web.home-page .home-attention-card > span:not(.home-card-icon) {
  font-weight: 800;
}

body.flutter-web.home-page .home-attention-card small {
  color: #64707a;
}

body.flutter-web.home-page .home-filtered-activity {
  grid-column: 1 / -1;
  width: 100%;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

body.flutter-web.home-page .home-filtered-activity-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column: 2;
  gap: 3px 18px;
  transition: filter 180ms ease, opacity 180ms ease;
}

body.flutter-web.home-page .home-filtered-activity-values strong,
body.flutter-web.home-page .home-filtered-activity-values small {
  text-align: center;
}

body.flutter-web.home-page .home-filtered-activity-values small {
  grid-row: 2;
  white-space: nowrap;
}

body.flutter-web.home-page .home-filtered-activity.is-blurred .home-filtered-activity-values {
  filter: blur(7px);
  opacity: 0.65;
  user-select: none;
}

body.flutter-web.home-page .home-filtered-activity-label,
body.flutter-web.home-page .home-filtered-activity-prompt {
  grid-column: 2;
}

body.flutter-web.home-page .home-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: stretch;
}

body.flutter-web.home-page .home-panel {
  align-content: start;
  border: 1px solid #e1e5e8;
  border-radius: 20px;
  padding: 22px;
  background: #ffffff;
  color: #232d34;
}

body.flutter-web.home-page .home-panel .eyebrow {
  margin-bottom: 7px;
}

body.flutter-web.home-page .home-panel-heading > a,
body.flutter-web.home-page .home-text-link,
body.flutter-web.home-page .home-empty-state a {
  color: #36454f;
  font-weight: 850;
}

body.flutter-web.home-page .home-conversation-list {
  display: grid;
}

body.flutter-web.home-page .home-conversation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e1e5e8;
  padding: 14px 2px;
}

body.flutter-web.home-page .home-conversation-row:first-child {
  border-top: 0;
}

body.flutter-web.home-page .home-conversation-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 0.78rem;
  font-weight: 900;
}

body.flutter-web.home-page .home-conversation-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

body.flutter-web.home-page .home-conversation-copy strong,
body.flutter-web.home-page .home-conversation-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.home-page .home-conversation-copy small,
body.flutter-web.home-page .home-conversation-row time,
body.flutter-web.home-page .home-empty-copy,
body.flutter-web.home-page .home-subtle-status {
  color: #64707a;
}

body.flutter-web.home-page .home-conversation-row time {
  font-size: 0.72rem;
}

body.flutter-web.home-page .home-empty-state {
  display: grid;
  gap: 7px;
  border: 1px dashed #cbd1d5;
  border-radius: 14px;
  padding: 20px;
  color: #64707a;
}

body.flutter-web.home-page .home-empty-state strong {
  color: #232d34;
}

body.flutter-web.home-page .home-quick-actions {
  display: grid;
  gap: 9px;
}

body.flutter-web.home-page .home-quick-actions a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border-radius: 14px;
  padding: 9px 12px;
  background: #f6f7f8;
  color: #232d34;
}

body.flutter-web.home-page .home-quick-actions a:hover {
  background: #fce7b8;
}

body.flutter-web.home-page .home-quick-actions a > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #36454f;
  color: #fdc757;
  font-weight: 900;
}

body.flutter-web.home-page .home-activity-actions {
  display: flex;
  justify-content: flex-end;
}

body.flutter-web.home-page .home-activity-actions a {
  color: #fdc757;
  font-weight: 800;
}

body.flutter-web.home-page .home-guidance {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid #e0a93d;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(120deg, #ffe7b3, #fbfcfd);
  color: #232d34;
}

body.flutter-web.home-page .home-guidance-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #e0a93d;
  border-radius: 15px;
  color: #e0a93d;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

body.flutter-web.home-page .home-guidance .eyebrow {
  margin-bottom: 6px;
}

body.flutter-web.home-page .home-guidance p:last-child {
  margin: 8px 0 0;
  color: #64707a;
  line-height: 1.45;
}

body.flutter-web.home-page .home-guidance .primary {
  white-space: nowrap;
}

@media (max-width: 900px) {
  body.flutter-web.home-page .home-hero,
  body.flutter-web.home-page .home-two-column,
  body.flutter-web.home-page .home-essentials {
    grid-template-columns: 1fr;
  }

  body.flutter-web.home-page .home-settings-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.flutter-web.home-page .home-shell {
    width: min(100% - 40px, 1120px);
    padding: 36px 0 56px;
  }

  body.flutter-web.home-page .home-hero h1 {
    font-size: 2.1rem;
  }

  body.flutter-web.home-page .home-attention-grid,
  body.flutter-web.home-page .home-usage-grid,
  body.flutter-web.home-page .home-settings-row {
    grid-template-columns: 1fr;
  }

  body.flutter-web.home-page .home-section-heading,
  body.flutter-web.home-page .home-panel-heading {
    align-items: start;
  }

  body.flutter-web.home-page .home-section-heading {
    flex-direction: column;
  }

  body.flutter-web.home-page .home-section-heading > p {
    text-align: left;
  }

  body.flutter-web.home-page .home-guidance {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.flutter-web.home-page .home-guidance .primary {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 460px) {
  body.flutter-web.home-page .home-shell {
    width: min(100% - 32px, 1120px);
  }

  body.flutter-web.home-page .home-protection-status,
  body.flutter-web.home-page .home-usage,
  body.flutter-web.home-page .home-panel,
  body.flutter-web.home-page .home-guidance,
  body.flutter-web.home-page .home-essentials {
    padding: 18px;
  }

  body.flutter-web.home-page .home-conversation-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.flutter-web.home-page .home-conversation-row time {
    display: none;
  }

  body.flutter-web.home-page .home-guidance {
    grid-template-columns: 1fr;
  }

  body.flutter-web.home-page .home-guidance-mark {
    width: 46px;
    height: 46px;
  }
}

/* Messages route, matched to Flutter2's list and thread views. */
body.flutter-web.messages-page {
  overflow-x: auto;
  background: linear-gradient(to bottom, #36454f, #232d34);
}

body.flutter-web.messages-page .topbar {
  min-height: 80px;
  padding: 0 24px;
  background: #36454f;
}

body.flutter-web.messages-page .brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.4px;
}

body.flutter-web.messages-page .brand::before {
  display: none;
}

body.flutter-web.messages-page.message-thread-open .topbar {
  display: none;
}

body.flutter-web.messages-page .text-shell {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 80px);
  margin: 0;
  padding: 0;
}

body.flutter-web.messages-page.messages-locked .text-shell {
  display: grid;
  place-items: center;
  padding: 18px 0 32px;
}

body.flutter-web.messages-page .messages-subscription-lock {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
  overflow: hidden;
  width: min(calc(100% - 64px), 920px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 24px 64px rgba(12, 17, 20, 0.24);
}

body.flutter-web.messages-page .messages-subscription-lock[hidden],
body.flutter-web.messages-page .phone-layout[hidden] {
  display: none;
}

body.flutter-web.messages-page .messages-lock-label {
  margin: 0;
  color: #e0a93d;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.flutter-web.messages-page .messages-subscription-lock h1 {
  margin: 3px 0 0;
  color: #232d34;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

body.flutter-web.messages-page .messages-lock-copy {
  display: grid;
  align-content: start;
  padding: clamp(26px, 4vw, 40px);
}

body.flutter-web.messages-page .messages-lock-copy > p:not(.messages-lock-label) {
  margin: 5px 0 18px;
  color: #64707a;
  line-height: 1.6;
}

body.flutter-web.messages-page .messages-lock-preview {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  background: linear-gradient(155deg, #36454f, #232d34);
}

body.flutter-web.messages-page .messages-lock-preview-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

body.flutter-web.messages-page .messages-lock-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #fdc757;
  color: #232d34;
}

body.flutter-web.messages-page .messages-lock-bubble {
  width: fit-content;
  max-width: 86%;
  border-radius: 18px 18px 18px 5px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.flutter-web.messages-page .messages-lock-bubble.mine {
  justify-self: end;
  border-radius: 18px 18px 5px 18px;
  background: #fdc757;
  color: #232d34;
  font-weight: 700;
}

body.flutter-web.messages-page .messages-lock-features {
  display: none;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

body.flutter-web.messages-page .messages-lock-features li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  font-weight: 750;
}

body.flutter-web.messages-page .messages-lock-features li::before {
  display: grid;
  width: 14px;
  height: 1.5em;
  place-items: center;
  color: #e0a93d;
  content: "✓";
  font-size: 0.9rem;
  line-height: 1;
}

body.flutter-web.messages-page .messages-lock-copy .link-button {
  justify-self: start;
  min-height: 48px;
  padding: 12px 22px;
  font-weight: 800;
}

@media (max-width: 700px) {
  body.flutter-web.messages-page .messages-subscription-lock {
    grid-template-columns: 1fr;
    width: min(calc(100% - 32px), 900px);
    margin: 0 auto;
  }

  body.flutter-web.messages-page .messages-lock-preview {
    min-height: 230px;
  }

  body.flutter-web.messages-page.messages-locked .text-shell {
    padding: 18px 0;
  }

  body.flutter-web.messages-page .messages-lock-copy .link-button {
    width: 100%;
  }
}

body.flutter-web.messages-page.message-thread-open .text-shell {
  min-height: 100vh;
}

/* Matches the single-column breakpoint below (780px) so the conversation
   row's alignment stays correct through the whole range where the list is
   shown full-width, instead of reverting to the split-inbox alignment for
   a band of widths just above the old 700px cutoff. */
@media (max-width: 780px) {
  body.flutter-web.messages-page .dm-conversation-row {
    justify-content: flex-start;
    text-align: left;
  }

  body.flutter-web.messages-page .dm-conversation-copy {
    width: 100%;
    justify-items: stretch;
    text-align: left;
  }
}

body.flutter-web.messages-page .phone-layout,
body.flutter-web.messages-page .phone-layout.conversation-list-mode,
body.flutter-web.messages-page .phone-layout.thread-mode {
  min-height: inherit;
  gap: 0;
  margin: 0 auto;
}

body.flutter-web.messages-page .phone-layout.conversation-list-mode {
  width: min(100%, 720px);
  grid-template-columns: minmax(0, 1fr);
}

body.flutter-web.messages-page .phone-layout.thread-mode {
  width: min(100%, 760px);
  grid-template-columns: minmax(0, 1fr);
}

body.flutter-web.messages-page .contact-sidebar {
  position: relative;
  display: block;
  min-height: calc(100vh - 80px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 24px 20px 112px;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar,
body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame {
  display: none;
}

body.flutter-web.messages-page .phone-layout.thread-mode .phone-frame {
  display: grid;
}

body.flutter-web.messages-page .compact-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

body.flutter-web.messages-page .dm-conversation-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  min-width: 0;
  min-height: 96px;
  border: 1px solid #e1e5e8;
  border-radius: 20px;
  padding: 20px 18px;
  background: #ffffff;
  color: #232d34;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

body.flutter-web.messages-page .dm-conversation-row::after {
  content: none;
}

body.flutter-web.messages-page .dm-conversation-row:hover,
body.flutter-web.messages-page .dm-conversation-row:focus-visible,
body.flutter-web.messages-page .dm-conversation-row.active {
  border-color: #fdc757;
  background: #ffffff;
  outline: 0;
}

body.flutter-web.messages-page .dm-conversation-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 1rem;
  font-weight: 900;
}

body.flutter-web.messages-page .dm-conversation-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

body.flutter-web.messages-page .dm-conversation-name-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

body.flutter-web.messages-page .dm-conversation-name-row strong {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.messages-page .dm-conversation-name-row time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #98a2a8;
  font-size: 0.76rem;
  font-weight: 600;
}

body.flutter-web.messages-page .dm-unread-badge {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 7px;
  background: #b3261e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
}

body.flutter-web.messages-page .dm-conversation-copy strong {
  overflow: hidden;
  color: #232d34;
  font-size: 1.0625rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.messages-page .dm-conversation-copy > span:not(.dm-conversation-name-row) {
  overflow: hidden;
  color: #64707a;
  font-size: 0.9375rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.messages-page .messages-add-contact {
  position: absolute;
  left: 20px;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 999px;
  padding: 0 24px;
  background: #fdc757;
  color: #232d34;
  box-shadow: 0 8px 18px rgba(12, 17, 20, 0.28);
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1;
}

body.flutter-web.messages-page .messages-empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid #e1e5e8;
  border-radius: 22px;
  padding: 32px 24px;
  background: #ffffff;
  color: #232d34;
  text-align: center;
}

body.flutter-web.messages-page .messages-empty-icon {
  margin-bottom: 8px;
  color: #36454f;
  font-size: 2.25rem;
}

body.flutter-web.messages-page .messages-empty-state strong {
  font-size: 1.125rem;
  font-weight: 800;
}

body.flutter-web.messages-page .messages-empty-state p,
body.flutter-web.messages-page .messages-loading-state {
  margin: 0;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web.messages-page .messages-empty-state p {
  color: #64707a;
}

body.flutter-web.messages-page .messages-loading-state {
  padding: 48px 24px;
  text-align: center;
}

body.flutter-web.messages-page .messages-error-banner {
  position: fixed;
  top: 94px;
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 32px), 680px);
  border-radius: 14px;
  padding: 12px 16px;
  background: #fff0ec;
  color: #b3261e;
  font-weight: 700;
  transform: translateX(-50%);
}

body.flutter-web.messages-page.message-thread-open .messages-error-banner {
  top: 92px;
}

body.flutter-web.messages-page .phone-frame {
  position: relative;
  height: 100vh;
  height: 100dvh;
  border: 0;
  border-radius: 0;
  background: linear-gradient(to bottom, #36454f, #232d34);
  box-shadow: none;
}

body.flutter-web.messages-page .phone-header {
  justify-content: flex-start;
  gap: 4px;
  min-height: 82px;
  border: 0;
  padding: 12px 20px 18px 8px;
  background: #36454f;
}

body.flutter-web.messages-page .dm-back-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
}

body.flutter-web.messages-page .dm-back-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.flutter-web.messages-page .dm-recipient-heading {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body.flutter-web.messages-page .dm-recipient-heading strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 1.1875rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.messages-page .dm-recipient-heading span {
  color: #fdc757;
  font-size: 0.8125rem;
  font-weight: 600;
}

body.flutter-web.messages-page .text-thread {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 18px 18px;
  background: linear-gradient(to bottom, #36454f, #232d34);
}

body.flutter-web.messages-page .dm-date-separator,
body.flutter-web.messages-page .dm-new-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 4px 0 18px;
  color: #64707a;
  font-size: 0.75rem;
  font-weight: 800;
}

body.flutter-web.messages-page .dm-date-separator::before,
body.flutter-web.messages-page .dm-date-separator::after,
body.flutter-web.messages-page .dm-new-divider::before,
body.flutter-web.messages-page .dm-new-divider::after {
  height: 1px;
  flex: 1 1 auto;
  background: #dce2e5;
  content: "";
}

body.flutter-web.messages-page .dm-new-divider {
  color: #fdc757;
}

body.flutter-web.messages-page .dm-new-divider::before,
body.flutter-web.messages-page .dm-new-divider::after {
  background: rgba(253, 199, 87, 0.58);
}

body.flutter-web.messages-page .messages-thread-state {
  max-width: 420px;
  margin: auto;
  padding: 32px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

body.flutter-web.messages-page .message-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: min(82%, 640px);
  padding-bottom: 16px;
}

body.flutter-web.messages-page .message-bubble-wrap.mine {
  align-self: flex-end;
  align-items: flex-end;
}

body.flutter-web.messages-page .message-bubble-wrap.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

body.flutter-web.messages-page .text-bubble {
  max-width: 100%;
  border-radius: 22px;
  padding: 16px 20px;
  box-shadow: none;
}

body.flutter-web.messages-page .text-bubble p {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.45;
}

body.flutter-web.messages-page .text-bubble.incoming {
  border: 1px solid #e1e5e8;
  border-bottom-left-radius: 5px;
  background: #ffffff;
  color: #232d34;
}

body.flutter-web.messages-page .text-bubble.outgoing {
  border-bottom-right-radius: 5px;
  background: #36454f;
  color: #ffffff;
}

body.flutter-web.messages-page .message-bubble-wrap time,
body.flutter-web.messages-page .held-message-notice > time {
  margin: 5px 6px 0;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
}

body.flutter-web.messages-page .held-message-notice {
  display: grid;
  justify-items: center;
  align-self: center;
  width: min(100%, 340px);
  padding-bottom: 16px;
  text-align: center;
}

body.flutter-web.messages-page .held-message-notice > div {
  display: grid;
  gap: 4px;
  border: 1px solid #e0b4a8;
  border-radius: 24px;
  padding: 10px 18px;
  background: #fff3ef;
}

body.flutter-web.messages-page .held-message-notice strong {
  color: #8c2f1e;
  font-weight: 800;
}

body.flutter-web.messages-page .held-message-notice span {
  display: -webkit-box;
  overflow: hidden;
  color: #36454f;
  font-size: 0.6875rem;
  font-weight: 500;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

body.flutter-web.messages-page .held-message-notice p {
  margin: 0;
  color: #6f3b32;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-line;
}

body.flutter-web.messages-page .dm-thread-scroll-controls {
  position: absolute;
  right: 18px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}

body.flutter-web.messages-page .dm-thread-scroll-controls button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 8px 24px rgba(12, 17, 20, 0.28);
  font-size: 0.76rem;
  font-weight: 850;
  pointer-events: auto;
}

body.flutter-web.messages-page #dm-new-messages-button {
  border-color: #fdc757;
  background: #fdc757;
}

body.flutter-web.messages-page .held-message-notice > time {
  color: #64707a;
}

body.flutter-web.messages-page .text-composer {
  border-top: 0;
  padding: 12px 14px max(12px, env(safe-area-inset-bottom)) 16px;
  background: transparent;
}

body.flutter-web.messages-page .filtered-text-thread-note {
  padding: 14px 18px;
  border-top: 1px solid #e5c66c;
  background: #fff8e8;
  color: #142a34;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

body.flutter-web.messages-page .filtered-text-thread-note[hidden] {
  display: none;
}

body.flutter-web.messages-page .composer-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

body.flutter-web.messages-page .composer-input {
  flex: 1 1 auto;
}

body.flutter-web.messages-page .composer-input textarea {
  width: 100%;
  min-height: 52px;
  max-height: 116px;
  resize: none;
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  background: transparent;
  color: #ffffff;
  caret-color: #fdc757;
  font: inherit;
  line-height: 1.35;
}

body.flutter-web.messages-page .composer-input textarea::placeholder {
  color: #aab3ba;
}

body.flutter-web.messages-page .composer-input textarea:focus {
  border-color: transparent;
  box-shadow: none;
  outline: 0;
}

body.flutter-web.messages-page .composer-input textarea:disabled {
  color: #aab3ba;
  cursor: wait;
  opacity: 0.72;
}

body.flutter-web.messages-page .send-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 52px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: #fdc757;
  color: #232d34;
  box-shadow: none;
  font-size: 1.55rem;
  font-weight: 800;
  cursor: pointer;
}

body.flutter-web.messages-page .send-button:disabled {
  background: #e1e5e8;
  color: rgba(35, 45, 52, 0.45);
  cursor: default;
}

body.flutter-web.messages-page .send-button.sending {
  font-size: 1rem;
}

@media (max-width: 760px) {
  body.flutter-web.messages-page .contact-sidebar {
    min-height: calc(100vh - 76px);
    padding: 24px 20px 112px;
    background: transparent;
  }

  body.flutter-web.messages-page .phone-frame,
  body.flutter-web.messages-page .phone-header,
  body.flutter-web.messages-page .text-thread {
    border-radius: 0;
  }
}

@media (max-width: 460px) {
  body.flutter-web.messages-page .dm-conversation-row {
    min-height: 92px;
    padding: 18px 16px;
  }

  body.flutter-web.messages-page .message-bubble-wrap {
    max-width: 90%;
  }
}

/* Keep the conversation list and open thread side by side at every viewport
   width. The fixed workspace can scroll horizontally on smaller screens. */
  body.flutter-web.messages-page.message-thread-open .topbar {
    display: flex;
  }

  body.flutter-web.messages-page.message-thread-open .text-shell {
    min-height: calc(100vh - 80px);
  }

  body.flutter-web.messages-page .phone-layout,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode,
  body.flutter-web.messages-page .phone-layout.thread-mode {
    width: 100%;
    max-width: none;
    grid-template-columns: clamp(260px, 23vw, 340px) minmax(0, 1fr);
    justify-content: normal;
    gap: 0;
    margin: 0;
  }

  body.flutter-web.messages-page .contact-sidebar,
  body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar {
    display: block;
    height: calc(100vh - 80px);
    overflow-y: auto;
  }

  body.flutter-web.messages-page .conversation-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    background: #2f3d46;
    box-shadow: 12px 0 30px rgba(12, 17, 20, 0.12);
  }

  body.flutter-web.messages-page .phone-frame,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame {
    display: grid;
    width: 100%;
    min-width: 0;
    height: calc(100vh - 80px);
  }

  body.flutter-web.messages-page .dm-back-button {
    display: none;
  }

/* Subscribed Messages: calm split inbox (mockup 5, option A). */
body.flutter-web.messages-page:not(.messages-locked) {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 199, 87, 0.1), transparent 30rem),
    linear-gradient(155deg, #36454f 0%, #2d3a43 46%, #232d34 100%);
  background-attachment: fixed;
  color: #ffffff;
}

body.flutter-web.messages-page:not(.messages-locked) .brand {
  color: #ffffff;
}

body.flutter-web.messages-page:not(.messages-locked) .brand::before {
  display: none;
}

body.flutter-web.messages-page:not(.messages-locked) .text-shell {
  width: min(1360px, 100%);
  min-width: 0;
  max-width: 1360px;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 48px clamp(16px, 3vw, 32px) 88px;
}

body.flutter-web.messages-page .messages-sidebar-header {
  padding: 22px 20px 14px;
}

body.flutter-web.messages-page .messages-sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.flutter-web.messages-page .messages-sidebar-title h1 {
  margin: 0;
  color: #24323a;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.025em;
}

body.flutter-web.messages-page .dm-active-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 0.9rem;
  font-weight: 900;
}

body.flutter-web.messages-page .dm-active-avatar[hidden],
body.flutter-web.messages-page .dm-recipient-heading span[hidden] {
  display: none;
}

body.flutter-web.messages-page .dm-recipient-heading span {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.flutter-web.messages-page .dm-recipient-heading span i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f8f55;
}

body.flutter-web.messages-page:not(.messages-locked) .messages-loading-state {
  color: #6c7880;
}

  body.flutter-web.messages-page .phone-layout,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode,
  body.flutter-web.messages-page .phone-layout.thread-mode {
    display: grid;
    grid-template-columns: 330px minmax(380px, 1fr);
    width: 100%;
    height: clamp(580px, calc(100vh - 216px), 760px);
    min-height: 580px;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(19, 31, 38, 0.14);
    isolation: isolate;
    overscroll-behavior-x: contain;
  }

  body.flutter-web.messages-page .contact-sidebar,
  body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid #dce2e5;
    padding: 0;
    background: #fbfcfc;
    box-shadow: none;
  }

  body.flutter-web.messages-page .compact-list {
    display: block;
    overflow-y: auto;
    padding: 0 9px;
  }

  body.flutter-web.messages-page .dm-conversation-row {
    min-height: 78px;
    gap: 11px;
    margin: 3px 0;
    border: 0;
    border-radius: 15px;
    padding: 11px 12px;
    background: transparent;
  }

  body.flutter-web.messages-page .dm-conversation-row:hover,
  body.flutter-web.messages-page .dm-conversation-row:focus-visible {
    border-color: transparent;
    background: #f6f7f8;
  }

  body.flutter-web.messages-page .dm-conversation-row.active {
    background: #fff8e8;
    box-shadow: inset 3px 0 #e0a93d;
  }

  body.flutter-web.messages-page .dm-conversation-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #36454f;
    color: #fdc757;
    font-size: 0.78rem;
  }

  body.flutter-web.messages-page .dm-conversation-copy {
    gap: 3px;
  }

  body.flutter-web.messages-page .dm-conversation-copy strong {
    font-size: 1rem;
  }

  body.flutter-web.messages-page .dm-conversation-copy > span {
    color: #6c7880;
    font-size: 0.875rem;
  }

  body.flutter-web.messages-page .messages-add-contact {
    position: static;
    width: calc(100% - 40px);
    height: 48px;
    min-height: 48px;
    margin: 14px 20px 20px;
    border-radius: 999px;
    padding: 0 16px;
    box-shadow: 0 12px 24px rgba(224, 169, 61, 0.22);
    font-size: 0.94rem;
  }

  body.flutter-web.messages-page .messages-add-contact:hover {
    background: #e0a93d;
  }

  body.flutter-web.messages-page .phone-frame,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame {
    position: relative;
    z-index: 2;
    height: auto;
    min-height: 0;
    border: 0;
    background: #ffffff;
  }

  body.flutter-web.messages-page .phone-header {
    overflow: visible;
    gap: 14px;
    min-height: 76px;
    border-bottom: 1px solid #dce2e5;
    padding: 12px 22px;
    background: #ffffff;
  }

  body.flutter-web.messages-page .dm-recipient-heading {
    max-width: 100%;
    flex: 1 1 auto;
  }

  body.flutter-web.messages-page .dm-recipient-heading strong {
    overflow: visible;
    color: #24323a;
    font-size: 1.1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  body.flutter-web.messages-page .dm-recipient-heading span {
    color: #2f8f55;
    font-size: 0.8rem;
    font-weight: 800;
  }

  body.flutter-web.messages-page .text-thread {
    gap: 0;
    padding: 28px 26px 18px;
    background: linear-gradient(#ffffff, #fafbfb);
  }

  body.flutter-web.messages-page .messages-thread-state {
    color: #6c7880;
  }

  body.flutter-web.messages-page .message-bubble-wrap {
    max-width: min(72%, 640px);
    padding-bottom: 11px;
  }

  body.flutter-web.messages-page .text-bubble {
    border-radius: 17px;
    padding: 11px 14px;
  }

  body.flutter-web.messages-page .text-bubble p {
    font-size: 1.05rem;
    line-height: 1.45;
  }

  body.flutter-web.messages-page .text-bubble.incoming {
    border: 0;
    border-bottom-left-radius: 5px;
    background: #edf0f2;
  }

  body.flutter-web.messages-page .text-bubble.outgoing {
    border-bottom-right-radius: 5px;
    background: #36454f;
  }

  body.flutter-web.messages-page .message-bubble-wrap time,
  body.flutter-web.messages-page .held-message-notice > time {
    color: #8b969c;
    font-size: 0.76rem;
  }

  body.flutter-web.messages-page .text-composer {
    border-top: 1px solid #dce2e5;
    padding: 14px 18px 12px;
    background: #ffffff;
  }

  body.flutter-web.messages-page .composer-input-row {
    gap: 10px;
    border: 1px solid #ccd4d8;
    border-radius: 16px;
    padding: 7px;
  }

  body.flutter-web.messages-page .composer-input textarea {
    min-height: 38px;
    border-radius: 0;
    padding: 9px 7px 5px;
    background: transparent;
    color: #24323a;
    caret-color: #d89f2f;
    font-size: 1.05rem;
  }

  body.flutter-web.messages-page .composer-input textarea::placeholder {
    color: #8b969c;
  }

  body.flutter-web.messages-page .send-button {
    width: 38px;
    height: 38px;
    min-height: 38px;
    border-radius: 11px;
    font-size: 1.25rem;
  }

/* Below this width the desktop split inbox (330px sidebar + a 380px-minimum
   thread pane, ~710px of content) no longer fits the viewport even with the
   shell's own padding subtracted, so switch to the same one-screen-at-a-time
   flow as the mobile app instead of letting the split inbox get clipped. */
@media (max-width: 780px) {
  body.flutter-web.messages-page:not(.messages-locked) {
    overflow: hidden;
  }

  body.flutter-web.messages-page:not(.messages-locked) .text-shell {
    width: 100%;
    min-height: calc(100vh - 80px);
    min-height: calc(100dvh - 80px);
    padding: 0;
  }

  body.flutter-web.messages-page.message-thread-open .topbar {
    display: none;
  }

  body.flutter-web.messages-page.message-thread-open .text-shell {
    min-height: 100vh;
    min-height: 100dvh;
  }

  body.flutter-web.messages-page .phone-layout,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode,
  body.flutter-web.messages-page .phone-layout.thread-mode {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.flutter-web.messages-page .phone-layout.thread-mode {
    height: 100vh;
    height: 100dvh;
  }

  body.flutter-web.messages-page .contact-sidebar,
  body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    border: 0;
    padding: 24px 20px 112px;
    background: transparent;
  }

  body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame {
    display: none;
  }

  body.flutter-web.messages-page .phone-layout.thread-mode .phone-frame {
    display: grid;
  }

  body.flutter-web.messages-page .compact-list {
    display: grid;
    gap: 14px;
    overflow: visible;
    padding: 0;
  }

  body.flutter-web.messages-page .dm-conversation-row {
    min-height: 92px;
    gap: 16px;
    margin: 0;
    max-width: none;
    border: 1px solid #e1e5e8;
    border-radius: 20px;
    padding: 18px 16px;
    background: #ffffff;
  }

  body.flutter-web.messages-page .dm-conversation-row:hover,
  body.flutter-web.messages-page .dm-conversation-row:focus-visible,
  body.flutter-web.messages-page .dm-conversation-row.active {
    border-color: #fdc757;
    background: #ffffff;
    box-shadow: none;
  }

  body.flutter-web.messages-page .dm-conversation-avatar {
    width: 54px;
    height: 54px;
    font-size: 1rem;
  }

  body.flutter-web.messages-page .messages-add-contact {
    position: fixed;
    right: 20px;
    bottom: max(22px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    height: 56px;
    min-height: 56px;
    margin: 0;
    padding: 0 24px;
    box-shadow: 0 8px 18px rgba(12, 17, 20, 0.28);
  }

  body.flutter-web.messages-page .phone-frame,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #ffffff;
  }

  body.flutter-web.messages-page .phone-header {
    min-height: 80px;
    padding: 12px 20px 12px 8px;
  }

  body.flutter-web.messages-page .dm-back-button {
    display: grid;
    color: #24323a;
  }

  body.flutter-web.messages-page .dm-back-button:hover {
    background: #f2f4f5;
  }

  body.flutter-web.messages-page .text-thread {
    min-height: 0;
    padding: 24px 18px 18px;
  }

  body.flutter-web.messages-page .message-bubble-wrap {
    max-width: 82%;
  }

  body.flutter-web.messages-page .text-composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  body.flutter-web.messages-page .dm-thread-scroll-controls {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

/* Subscription and billing, adapted from the approved desktop mockup. */
body.flutter-web.account-page .account-shell {
  width: min(980px, 100%);
  align-content: start;
  gap: 12px;
  padding-top: 32px;
}

body.flutter-web.account-page .account-hero > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.55;
}

body.flutter-web.account-page .account-plan-picker {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 42px);
  background: #f5f7f8;
  color: #232d34;
  box-shadow: 0 24px 60px rgba(12, 17, 20, 0.2);
}

body.flutter-web.account-page .account-plan-picker-heading {
  display: block;
  margin-bottom: 26px;
  text-align: center;
}

body.flutter-web.account-page .account-plan-picker-heading .account-section-label {
  margin-bottom: 8px;
  color: #e0a93d;
}

body.flutter-web.account-page .account-plan-picker-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  letter-spacing: -0.035em;
}

body.flutter-web.account-page .account-plan-picker-heading p:last-child {
  max-width: 680px;
  margin: 10px auto 0;
  color: #64707a;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.55;
}

body.flutter-web.account-page .account-no-plan-pill,
body.flutter-web.account-page .account-plan-recommendation {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f2f4f5;
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.flutter-web.account-page .account-inline-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.flutter-web.account-page .subscription-billing-picker {
  display: flex;
  width: fit-content;
  margin: 0 auto 24px;
  gap: 4px;
  border: 1px solid #dfe4e7;
  border-radius: 14px;
  padding: 4px;
  background: #f2f4f5;
}

body.flutter-web.account-page .subscription-billing-picker button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 8px 16px;
  background: transparent;
  color: #64707a;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

body.flutter-web.account-page .subscription-billing-picker button span {
  display: block;
  font-size: 0.65rem;
  font-weight: 750;
}

body.flutter-web.account-page .subscription-billing-picker button[aria-pressed="true"] {
  background: #36454f;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(35, 45, 52, 0.16);
}

body.flutter-web.account-page .subscription-billing-picker button:focus-visible {
  outline: 3px solid rgba(253, 199, 87, 0.55);
  outline-offset: 2px;
}

body.flutter-web.account-page .dialog-billing-picker {
  margin: 0 auto 24px;
}

body.flutter-web.account-page .mobile-plan-billing-picker {
  display: none;
}

body.flutter-web.account-page .account-inline-plan-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 2px solid #d7dde1;
  border-radius: 22px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(12, 17, 20, 0.14);
}

body.flutter-web.account-page .account-inline-plan-card.recommended {
  border: 2px solid #e0a93d;
  background: linear-gradient(155deg, #fff8e8, #ffffff 58%);
  box-shadow: 0 14px 30px rgba(224, 169, 61, 0.15);
}

body.flutter-web.account-page .account-inline-plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

body.flutter-web.account-page .account-inline-plan-card .plan-icon {
  width: 46px;
  height: 46px;
  margin: 0;
  border-radius: 14px;
  background: #36454f;
  color: #fdc757;
}

body.flutter-web.account-page .account-plan-recommendation {
  background: #fce7b8;
  color: #765510;
}

body.flutter-web.account-page .account-plan-recommendation.premium {
  background: #e9eef1;
  color: #4f5e68;
}

body.flutter-web.account-page .account-inline-plan-card h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

body.flutter-web.account-page .account-inline-plan-access,
body.flutter-web.account-page .plan-access-summary {
  margin: 6px 0 4px;
  color: #36454f;
  font-size: 1rem;
  line-height: 1.4;
}

body.flutter-web.account-page .account-inline-plan-access strong,
body.flutter-web.account-page .plan-access-summary strong {
  font-weight: 900;
}

body.flutter-web.account-page .account-inline-plan-grid .account-inline-plan-access {
  min-height: 2.8em;
}

body.flutter-web.account-page .account-inline-plan-card .plan-price {
  margin: 22px 0 3px;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

body.flutter-web.account-page .account-inline-plan-card .plan-price span {
  margin-left: 4px;
  font-size: 0.85rem;
}

body.flutter-web.account-page .plan-price [data-subscription-price] {
  margin-left: 0;
  font-size: inherit;
}

body.flutter-web.account-page .subscription-price-detail {
  min-height: 20px;
  margin: 0 0 20px;
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 700;
}

body.flutter-web.account-page .subscription-deal-grid,
body.flutter-web.account-page .dialog-deal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.flutter-web.account-page .subscription-deal-grid {
  margin: 12px 0 20px;
}

body.flutter-web.account-page .subscription-deal,
body.flutter-web.account-page .dialog-deal {
  min-width: 0;
  border: 1px solid #dfe4e7;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
}

body.flutter-web.account-page .subscription-deal > strong,
body.flutter-web.account-page .dialog-deal > strong {
  color: #36454f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.flutter-web.account-page .subscription-deal .plan-price,
body.flutter-web.account-page .dialog-deal .plan-price {
  margin: 8px 0 5px;
  font-size: 1.45rem;
  line-height: 1.1;
}

body.flutter-web.account-page .subscription-deal .plan-price span,
body.flutter-web.account-page .dialog-deal .plan-price span {
  display: block;
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0;
}

body.flutter-web.account-page .subscription-deal > p:last-child:not(.plan-price),
body.flutter-web.account-page .dialog-deal > p:nth-last-child(2):not(.plan-price) {
  min-height: 32px;
  margin: 0;
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
}

body.flutter-web.account-page .subscription-deal-savings {
  border-color: #efcf87;
  background: #fff8e8;
}

body.flutter-web.account-page .account-inline-plan-card > .primary,
body.flutter-web.account-page .account-inline-plan-card > .secondary {
  width: 100%;
  margin-top: auto;
  cursor: pointer;
}

body.flutter-web.account-page .account-inline-plan-card > button:disabled {
  cursor: not-allowed;
}

body.flutter-web.account-page .six-month-savings .subscription-price-detail {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fce7b8;
  color: #765510;
}

body.flutter-web.account-page .account-inline-plan-summary {
  min-height: 46px;
  margin: 0 0 20px;
  color: #64707a;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.5;
}

body.flutter-web.account-page .account-inline-plan-card .plan-features {
  gap: 10px;
  margin-bottom: 24px;
}

body.flutter-web.account-page .account-inline-plan-card .plan-features li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  padding-left: 0;
  color: #36454f;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

body.flutter-web.account-page .account-inline-plan-card .plan-features li::before,
body.flutter-web.account-page .account-plan-feature-item::before {
  position: static;
  display: grid;
  place-items: center;
  width: 14px;
  height: 1.5em;
  line-height: 1;
  color: #e0a93d;
}

body.flutter-web.account-page .account-plan-benefit-pairs {
  display: grid;
  gap: 10px;
}

body.flutter-web.account-page .account-plan-benefit-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

body.flutter-web.account-page .account-plan-feature-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  color: #36454f;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.5;
}

body.flutter-web.account-page .account-plan-feature-item::before {
  content: "✓";
}

body.flutter-web.account-page .account-inline-plan-card .link-button {
  width: 100%;
  margin-top: auto;
}

body.flutter-web.account-page .account-inline-plan-card .plan-icon,
body.flutter-web.account-page .account-current-plan-icons,
body.flutter-web.account-page .account-plan-recommendation {
  display: none;
}

body.flutter-web.account-page .account-plan-fine-print {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 650;
}

body.flutter-web.account-page .account-plan-picker > .setup-warning {
  margin: 16px 0 0;
  text-align: center;
}

body.flutter-web.account-page .account-picker-message {
  margin: 16px 0 0;
  text-align: center;
}

body.flutter-web.account-page .account-billing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  color: #232d34;
}

body.flutter-web.account-page .account-current-plan-actions {
  margin-top: 24px;
  border-top: 1px solid #e1e5e8;
  padding-top: 24px;
}

body.flutter-web.account-page .account-current-plan-actions .helper-text,
body.flutter-web.account-page .account-current-plan-actions .setup-warning {
  margin: 12px 0 0;
  line-height: 1.45;
}

body.flutter-web.account-page .account-current-plan-heading-row {
  margin-top: 6px;
}

body.flutter-web.account-page .account-current-plan-heading-copy {
  min-width: min(100%, 360px);
}

body.flutter-web.account-page .account-current-plan-eyebrow {
  margin: 0;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.flutter-web.account-page .account-plan-price-period {
  margin: 4px 0 10px;
  color: #232d34;
  font-size: 1.05rem;
  font-weight: 800;
}

body.flutter-web.account-page .account-current-plan-next-payment {
  margin: 10px 0 0;
  color: #64707a;
  font-size: 0.9rem;
  font-weight: 600;
}

body.flutter-web.account-page .account-current-plan-next-payment strong {
  color: #232d34;
  font-weight: 800;
}

body.flutter-web.account-page .account-billing-card.is-basic-plan .account-current-plan-icon-premium,
body.flutter-web.account-page .account-billing-card.is-premium-plan .account-current-plan-icon-basic {
  display: none;
}

body.flutter-web.account-page .account-section-label {
  margin: 0 0 20px;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.flutter-web.account-page .account-plan-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

body.flutter-web.account-page .account-plan-benefits {
  margin: 28px 0 0;
  padding: 0;
}

body.flutter-web.account-page .account-plan-benefits .plan-features {
  margin-bottom: 0;
}

body.flutter-web.account-page .account-billing-card.is-premium-plan .account-plan-benefits {
  display: block;
}

body.flutter-web.account-page .account-plan-actions {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

body.flutter-web.account-page .account-plan-actions button {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 19px;
}

body.flutter-web.account-page .account-button-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

body.flutter-web.account-page .account-button-stack button {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding: 13px 20px;
}

body.flutter-web.account-page .account-manage-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 24px;
  padding: 32px;
  background: #f5f7f8;
  color: #232d34;
  box-shadow: 0 30px 90px rgba(12, 17, 20, 0.42);
}

body.flutter-web.account-page .account-manage-dialog::backdrop {
  background: rgba(12, 17, 20, 0.72);
  backdrop-filter: blur(5px);
}

body.flutter-web.account-page .manage-billing-actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

body.flutter-web.account-page .manage-billing-actions button {
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 850;
}

body.flutter-web.account-page .manage-billing-note {
  margin: 18px 2px 0;
  color: #64707a;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.45;
}

body.flutter-web.account-page .account-cancel-dialog {
  width: min(460px, calc(100vw - 32px));
  border: 0;
  border-radius: 28px;
  padding: 28px 28px 24px;
  background: #fbfcfd;
  color: #232d34;
  box-shadow: 0 30px 90px rgba(12, 17, 20, 0.42);
}

body.flutter-web.account-page .account-cancel-dialog::backdrop {
  background: rgba(12, 17, 20, 0.62);
  backdrop-filter: blur(3px);
}

body.flutter-web.account-page .account-cancel-dialog h2 {
  margin: 0;
  padding: 0;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

body.flutter-web.account-page .account-cancel-dialog > p {
  margin: 17px 0 0;
  color: #64707a;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.55;
}

body.flutter-web.account-page .account-cancel-dialog-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 26px;
}

body.flutter-web.account-page .account-cancel-dialog-actions button {
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 900;
}

body.flutter-web.account-page .account-secure-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 0;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 650;
}

body.flutter-web.account-page .account-plan-dialog {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  border-radius: 24px;
  padding: 34px;
  background: #f5f7f8;
  box-shadow: 0 30px 90px rgba(12, 17, 20, 0.42);
}

body.flutter-web.account-page .account-plan-dialog::backdrop {
  background: rgba(12, 17, 20, 0.72);
  backdrop-filter: blur(5px);
}

body.flutter-web.account-page .account-plan-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

body.flutter-web.account-page .account-plan-dialog-header h2 {
  margin: 0 0 7px;
  padding: 0;
  font-size: 2rem;
  letter-spacing: -0.035em;
}

body.flutter-web.account-page .account-plan-dialog-header p {
  margin: 0;
  color: #64707a;
  line-height: 1.45;
}

body.flutter-web.account-page .account-plan-dialog-header .dialog-close-form {
  position: static;
  flex: 0 0 auto;
}

body.flutter-web.account-page .account-plan-dialog-header .dialog-close {
  width: 42px;
  min-height: 42px;
  background: #f6f7f8;
  font-size: 1.5rem;
}

body.flutter-web.account-page .account-plan-dialog-message {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e8;
}

body.flutter-web.account-page .account-plan-dialog-message.is-error {
  background: #fff3ef;
}

body.flutter-web.account-page .premium-phone-verification-dialog {
  width: min(512px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(11, 29, 39, 0.28);
}

body.flutter-web.account-page .premium-phone-verification-dialog::backdrop {
  background: rgba(14, 31, 41, 0.62);
}

body.flutter-web.account-page .premium-phone-verification-dialog h2,
body.flutter-web.account-page .premium-phone-verification-dialog > form > p {
  margin: 0;
}

body.flutter-web.account-page .premium-phone-verification-dialog > form > p {
  color: var(--muted);
  line-height: 1.5;
}

body.flutter-web.account-page .premium-phone-verification-actions {
  display: grid;
  gap: 10px;
}

body.flutter-web.account-page .account-plan-dialog[data-mode="subscribe"]:not([data-selected-plan=""]) .account-plan-dialog-grid {
  grid-template-columns: minmax(0, 1fr);
  width: min(620px, 100%);
  margin-inline: auto;
}

body.flutter-web.account-page .account-plan-dialog [data-dialog-plan][hidden] {
  display: none;
}

body.flutter-web.account-page .account-plan-dialog [data-subscribe-plan].is-current-plan:disabled {
  cursor: default;
}

@media (max-width: 900px) {
  body.flutter-web.account-page .account-shell {
    padding-top: 24px;
  }

  body.flutter-web.account-page .account-billing-card {
    grid-template-columns: 1fr;
  }

  body.flutter-web.account-page .account-inline-plan-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  body.flutter-web.account-page .account-plan-picker > .subscription-billing-picker {
    display: none;
  }

  body.flutter-web.account-page .account-inline-plan-grid .account-inline-plan-access {
    min-height: 0;
  }

  body.flutter-web.account-page .account-inline-plan-card .mobile-plan-billing-picker {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px;
  }

  body.flutter-web.account-page .account-inline-plan-card .mobile-plan-billing-picker button {
    flex: 0 0 auto;
  }

  body.flutter-web.account-page .account-plan-dialog {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  body.flutter-web.account-page .topbar {
    min-height: 64px;
    padding: 0 16px 0 20px;
  }

  body.flutter-web.account-page .account-shell {
    gap: 14px;
    min-height: calc(100vh - 64px);
    padding: 24px 20px 56px;
  }

  body.flutter-web.account-page .account-hero h1 {
    font-size: clamp(2.2rem, 10vw, 2.75rem);
    line-height: 1.08;
  }

  body.flutter-web.account-page .account-hero > p:last-child {
    margin-top: 16px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
  }

  body.flutter-web.account-page .account-billing-card {
    border-radius: 22px;
  }

  body.flutter-web.account-page .account-plan-picker {
    border-radius: 22px;
    padding: 24px 18px;
  }

  body.flutter-web.account-page .account-plan-picker-heading {
    display: block;
    margin-bottom: 22px;
  }

  body.flutter-web.account-page .account-no-plan-pill {
    margin-top: 16px;
  }

  body.flutter-web.account-page .account-inline-plan-card {
    padding: 22px;
  }

  body.flutter-web.account-page .subscription-deal-grid,
  body.flutter-web.account-page .dialog-deal-grid {
    grid-template-columns: 1fr;
  }

  body.flutter-web.account-page .account-inline-plan-summary {
    min-height: 0;
  }

  body.flutter-web.account-page .account-billing-card.is-premium-plan .account-plan-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.flutter-web.account-page .account-section-label {
    margin-bottom: 20px;
  }

  body.flutter-web.account-page .account-plan-heading {
    align-items: center;
    row-gap: 10px;
  }

  body.flutter-web.account-page .account-plan-heading h2 {
    font-size: 1.75rem;
  }

  body.flutter-web.account-page .account-plan-dialog {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
  }

  body.flutter-web.account-page .account-plan-dialog-header {
    position: sticky;
    z-index: 2;
    top: calc(-20px - env(safe-area-inset-top));
    align-items: center;
    margin: calc(-20px - env(safe-area-inset-top)) -20px 22px;
    padding: calc(18px + env(safe-area-inset-top)) 20px 16px;
    border-bottom: 1px solid #e1e5e8;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  body.flutter-web.account-page .account-plan-dialog-header h2 {
    margin: 0;
    font-size: 1.25rem;
  }

  body.flutter-web.account-page .account-plan-dialog-header p {
    display: none;
  }

}

/* Message Records route, aligned with the shared Flutter-inspired application UI. */
body.flutter-web.dashboard-page .dashboard-page-shell {
  width: min(980px, 100%);
  gap: 28px;
  padding-top: 48px;
}

body.flutter-web.dashboard-page #dashboard-records-view {
  display: grid;
  align-content: start;
  gap: 28px;
}

body.flutter-web.dashboard-page .vault-message-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  margin: 4px 0;
  border: 1px dashed #dfe4e6;
  border-radius: 18px;
  padding: 32px;
  background: #f6f7f8;
  color: #232d34;
  font-size: clamp(1.1rem, 1.4vw + 0.75rem, 1.6rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.45;
}

body.flutter-web.dashboard-page .communication-vault-heading h1 {
  max-width: 760px;
  margin: 8px 0 0;
  color: #ffffff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.flutter-web.dashboard-page .communication-vault-section {
  display: grid;
  gap: 18px;
}

body.flutter-web.dashboard-page .communication-vault-heading > p:last-child {
  max-width: 680px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

body.flutter-web.dashboard-page .communication-vault-card {
  border: 1px solid #e1e5e8;
  border-radius: 22px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgba(12, 17, 20, 0.15);
}

body.flutter-web.dashboard-page .communication-vault-card .section-heading h2 {
  margin: 0;
  color: #232d34;
  font-size: 1.45rem;
}

body.flutter-web.dashboard-page .vault-filter {
  gap: 14px 18px;
  margin-top: 20px;
}

body.flutter-web.dashboard-page .vault-filter label {
  gap: 7px;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.flutter-web.dashboard-page .vault-filter select,
body.flutter-web.dashboard-page .vault-filter input[type="date"] {
  min-height: 46px;
  border: 1px solid #e1e5e8;
  border-radius: 12px;
  padding: 0 13px;
  background: #f9fafb;
  color: #232d34;
  font-weight: 700;
}

body.flutter-web.dashboard-page .vault-filter select:focus,
body.flutter-web.dashboard-page .vault-filter input[type="date"]:focus {
  outline: 0;
  border-color: #fdc757;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(253, 199, 87, 0.2);
}

body.flutter-web.dashboard-page .vault-messages-toolbar #vault-status {
  color: #64707a;
  font-weight: 700;
}

body.flutter-web.dashboard-page .vault-export-note {
  color: #98a2a8;
}

body.flutter-web.dashboard-page .table-wrap {
  border: 1px solid #e1e5e8;
  border-radius: 16px;
  background: #ffffff;
}

body.flutter-web.dashboard-page table {
  font-size: 0.88rem;
}

body.flutter-web.dashboard-page th,
body.flutter-web.dashboard-page td {
  border-bottom: 1px solid #eef1f2;
  padding: 14px 16px;
}

body.flutter-web.dashboard-page tr:last-child th,
body.flutter-web.dashboard-page tr:last-child td {
  border-bottom: 0;
}

body.flutter-web.dashboard-page th {
  background: #fbfcfd;
  color: #64707a;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

body.flutter-web.dashboard-page td {
  color: #232d34;
}

body.flutter-web.dashboard-page tbody tr:hover td {
  background: #fbfcfd;
}

body.flutter-web.dashboard-page .vault-taxonomy-blur {
  background: #fce7b8;
  color: #765510;
  font-weight: 800;
}

body.flutter-web.dashboard-page .vault-pagination > span {
  color: #64707a;
}

@media (max-width: 900px) {
  body.flutter-web.dashboard-page .dashboard-page-shell {
    padding-top: 32px;
  }
}

@media (max-width: 600px) {
  body.flutter-web.account-page .account-plan-benefit-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.flutter-web.dashboard-page .topbar {
    min-height: 64px;
    padding: 0 16px 0 20px;
  }

  body.flutter-web.dashboard-page .dashboard-page-shell {
    min-height: calc(100vh - 64px);
    padding: 36px 20px 56px;
  }

  body.flutter-web.dashboard-page .communication-vault-heading h1 {
    font-size: clamp(2.2rem, 10vw, 2.75rem);
    line-height: 1.08;
  }
}

/* Connections / registering page */
body.flutter-web.register-page .connections-shell {
  width: min(calc(100% - 48px), 980px);
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 22px 0 72px;
}

body.flutter-web.register-page .connections-hero .eyebrow,
body.flutter-web.register-page .connections-section-label,
body.flutter-web.register-page .connections-dialog-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.flutter-web.register-page .connections-hero .eyebrow,
body.flutter-web.register-page .connections-dialog-eyebrow {
  color: #fdc757;
}

body.flutter-web.register-page .connections-hero h1 {
  margin: 0;
  color: #ffffff;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.flutter-web.register-page .connections-hero > p:last-child {
  max-width: 650px;
  margin: 12px 0 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 550;
  line-height: 1.55;
}

body.flutter-web.register-page .connections-protected-card {
  display: block;
  margin-bottom: 16px;
  border: 1px solid rgba(253, 199, 87, 0.52);
  border-radius: 22px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(253, 199, 87, 0.16), rgba(255, 255, 255, 0.07));
  box-shadow: 0 16px 42px rgba(12, 17, 20, 0.16);
}

body.flutter-web.register-page .connections-protected-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

body.flutter-web.register-page .connections-protected-heading > div {
  min-width: 0;
}

body.flutter-web.register-page .connections-protected-icon {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: #fdc757;
  color: #232d34;
  font-size: 1.25rem;
  font-weight: 900;
}

body.flutter-web.register-page .connections-section-label {
  color: rgba(255, 255, 255, 0.64);
}

body.flutter-web.register-page .connections-protected-number {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
}

body.flutter-web.register-page .connections-protected-number strong {
  color: #ffffff;
  font-size: clamp(1.08rem, 3vw, 1.45rem);
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

body.flutter-web.register-page .connections-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 0;
  background: transparent;
  color: #fdc757;
  font-size: 0.72rem;
  font-weight: 850;
}

body.flutter-web.register-page .connections-status-pill::before {
  content: none;
}

body.flutter-web.register-page .connections-button {
  min-height: 48px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 850;
  cursor: pointer;
}

body.flutter-web.register-page .connections-lock-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  border: 1px solid #e1e5e8;
  border-radius: 22px;
  padding: 26px 28px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 16px 42px rgba(12, 17, 20, 0.2);
}

body.flutter-web.register-page .connections-lock-card[hidden],
body.flutter-web.register-page .connections-protected-card[hidden],
body.flutter-web.register-page .connections-workspace[hidden],
body.flutter-web.register-page .connections-workspace-panel[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-lock-card .connections-section-label {
  color: #e0a93d;
}

body.flutter-web.register-page .connections-lock-card h2 {
  margin: 6px 0 5px;
  font-size: clamp(1.15rem, 3.8vw, 1.55rem);
  line-height: 1.05;
}

body.flutter-web.register-page .connections-lock-card p:last-child {
  margin: 0;
  color: #64707a;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-lock-actions,
body.flutter-web.register-page .connections-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

body.flutter-web.register-page .connections-lock-actions {
  justify-content: center;
}

body.flutter-web.register-page .connections-contact-type-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.flutter-web.register-page .connections-lock-actions .link-button {
  min-width: 210px;
}

body.flutter-web.register-page .connections-workspace {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: #ffffff;
  color: #232d34;
  box-shadow: 0 24px 64px rgba(12, 17, 20, 0.24);
}

body.flutter-web.register-page .connections-page-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  background: #f6f7f8;
}

body.flutter-web.register-page .connections-page-picker[hidden],
body.flutter-web.register-page .connections-page-button[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-page-button {
  display: flex;
  min-width: 0;
  min-height: 154px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid #dce2e5;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  color: #36454f;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(35, 45, 52, 0.09);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.flutter-web.register-page .connections-page-button:hover,
body.flutter-web.register-page .connections-page-button:focus-visible {
  transform: translateY(-2px);
  border-color: #36454f;
  box-shadow: 0 16px 34px rgba(35, 45, 52, 0.15);
}

body.flutter-web.register-page .connections-page-button-texting {
  border-color: #e0a93d;
  background: linear-gradient(150deg, #fff9e9, #ffffff 60%);
  box-shadow: 0 12px 30px rgba(224, 169, 61, 0.14);
}

body.flutter-web.register-page .connections-page-button-texting:hover,
body.flutter-web.register-page .connections-page-button-texting:focus-visible {
  border-color: #c58b1f;
  box-shadow: 0 16px 34px rgba(224, 169, 61, 0.24);
}

body.flutter-web.register-page .connections-page-button-topline,
body.flutter-web.register-page .connections-page-button-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.flutter-web.register-page .connections-page-button-content,
body.flutter-web.register-page .connections-page-button-main,
body.flutter-web.register-page .connections-page-button-description {
  display: block;
}

body.flutter-web.register-page .connections-page-button-content {
  flex: 1;
  margin-top: 8px;
}

body.flutter-web.register-page .connections-page-plan-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff4d6;
  color: #9c6a08;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.flutter-web.register-page .connections-page-button-chat .connections-page-plan-pill {
  background: #e9eef1;
  color: #4f5e68;
}

body.flutter-web.register-page .connections-page-button-main {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.register-page .connections-page-button-description {
  margin-top: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64707a;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-page-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 700px) {
  body.flutter-web.register-page .connections-page-picker {
    grid-template-columns: 1fr;
  }

  body.flutter-web.register-page .connections-page-button {
    min-height: 142px;
  }
}

@media (min-width: 900px) {
  body.flutter-web.register-page .connections-page-button {
    min-height: 170px;
  }
}

body.flutter-web.register-page .connections-page-button-arrow {
  flex: 0 0 auto;
  color: #36454f;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

body.flutter-web.register-page .connections-page-back {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #53616b;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

body.flutter-web.register-page .connections-page-back:hover,
body.flutter-web.register-page .connections-page-back:focus-visible {
  color: #182128;
  text-decoration: underline;
}

body.flutter-web.register-page .connections-workspace-panel {
  padding: 32px;
}

body.flutter-web.register-page .connections-panel-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

body.flutter-web.register-page .connections-panel-toolbar h2 {
  margin: 0 0 7px;
  color: #232d34;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

body.flutter-web.register-page .connections-panel-toolbar p {
  max-width: 580px;
  margin: 0;
  color: #64707a;
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-button-primary {
  border: 1px solid #fdc757;
  background: #fdc757;
  color: #232d34;
  box-shadow: 0 12px 24px rgba(224, 169, 61, 0.22);
}

body.flutter-web.register-page .connections-button-secondary {
  border: 1px solid #e1e5e8;
  background: #ffffff;
  color: #232d34;
}

body.flutter-web.register-page .connections-list {
  display: grid;
  gap: 12px;
}

body.flutter-web.register-page .connections-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #e1e5e8;
  border-radius: 18px;
  padding: 18px 20px;
  background: #fbfcfd;
}

body.flutter-web.register-page .connections-row-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.flutter-web.register-page .connections-row-contact:focus-visible {
  border-radius: 12px;
  outline: 3px solid rgba(253, 199, 87, 0.55);
  outline-offset: 5px;
}

body.flutter-web.register-page .connections-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 0.9rem;
  font-weight: 900;
}

body.flutter-web.register-page .connections-row-copy {
  min-width: 0;
}

body.flutter-web.register-page .connections-row-copy strong,
body.flutter-web.register-page .connections-row-copy span {
  display: block;
}

body.flutter-web.register-page .connections-row-copy strong {
  overflow: hidden;
  color: #232d34;
  font-size: 1rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.register-page .connections-row-copy span {
  margin-top: 4px;
  color: #64707a;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web.register-page .connections-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.flutter-web.register-page .connections-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid #e1e5e8;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #232d34;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.flutter-web.register-page .connections-row-button.message {
  border-color: #fdc757;
  background: #fce7b8;
}

body.flutter-web.register-page .connections-row-button.remove {
  color: #b3261e;
}

body.flutter-web.register-page .connections-row-actions .connections-row-button {
  min-width: 92px;
}

body.flutter-web.register-page .contact-detail-actions .connections-row-button {
  min-width: 132px;
}

body.flutter-web.register-page .contact-detail-dialog {
  width: min(440px, calc(100vw - 32px));
}

body.flutter-web.register-page .contact-detail-header {
  display: grid;
  justify-items: center;
  padding: 10px 20px 24px;
  text-align: center;
}

body.flutter-web.register-page .contact-detail-avatar {
  display: grid;
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 1.65rem;
  font-weight: 900;
}

body.flutter-web.register-page .contact-detail-header h2 {
  margin: 0;
  padding: 0;
  color: #232d34;
  font-size: 1.65rem;
}

body.flutter-web.register-page .contact-detail-header p {
  margin: 6px 0 0;
  color: #64707a;
  font-size: 0.88rem;
  font-weight: 650;
}

body.flutter-web.register-page .contact-detail-fields {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

body.flutter-web.register-page .contact-detail-field {
  border: 1px solid #e1e5e8;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfcfd;
}

body.flutter-web.register-page .contact-detail-field span,
body.flutter-web.register-page .contact-detail-field strong {
  display: block;
}

body.flutter-web.register-page .contact-detail-field span {
  margin-bottom: 5px;
  color: #64707a;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.flutter-web.register-page .contact-detail-field strong {
  color: #232d34;
  font-size: 1rem;
}

body.flutter-web.register-page .contact-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

body.flutter-web.register-page .contact-link-send {
  width: 100%;
  min-height: 48px;
  margin-bottom: 12px;
  border-color: #36454f;
  background: #36454f;
  color: #ffffff;
}

body.flutter-web.register-page .google-contacts-button {
  border-color: #d5dade;
  background: #ffffff;
}

body.flutter-web.register-page .connections-export-status {
  margin: 12px 0;
  color: #64707a;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.45;
}

body.flutter-web.register-page .connections-export-status.is-error {
  color: #8c2f1e;
}

body.flutter-web.register-page .google-contacts-dialog {
  width: min(540px, calc(100vw - 32px));
}

body.flutter-web.register-page .google-contacts-search {
  display: grid;
  gap: 7px;
  color: #232d34;
  font-size: 0.82rem;
  font-weight: 800;
}

body.flutter-web.register-page .google-contacts-search input {
  width: 100%;
}

body.flutter-web.register-page .google-contacts-list {
  display: grid;
  gap: 8px;
  max-height: min(420px, 50vh);
  overflow-y: auto;
}

body.flutter-web.register-page .google-contact-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  width: 100%;
  border: 1px solid #e1e5e8;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fbfcfd;
  color: #232d34;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

body.flutter-web.register-page .google-contact-choice:hover,
body.flutter-web.register-page .google-contact-choice:focus-visible {
  border-color: #e0a93d;
  background: #fffaf0;
}

body.flutter-web.register-page .google-contact-choice .connections-avatar {
  width: 42px;
  height: 42px;
}

body.flutter-web.register-page .google-contact-choice strong,
body.flutter-web.register-page .google-contact-choice small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.register-page .google-contact-choice strong {
  font-size: 0.92rem;
}

body.flutter-web.register-page .google-contact-choice small {
  margin-top: 4px;
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 650;
}

body.flutter-web.register-page .connections-empty-state {
  display: grid;
  justify-items: center;
  border: 1px dashed #d5dade;
  border-radius: 18px;
  padding: 42px 24px;
  background: #fbfcfd;
  text-align: center;
}

body.flutter-web.register-page .connections-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 14px;
  background: #fce7b8;
  color: #765510;
  font-size: 1.2rem;
  font-weight: 900;
}

body.flutter-web.register-page .connections-empty-state strong {
  color: #232d34;
}

body.flutter-web.register-page .connections-empty-state p {
  max-width: 480px;
  margin: 7px 0 0;
  color: #64707a;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  color: #64707a;
  font-size: 0.78rem;
  font-weight: 650;
}

body.flutter-web.register-page .connections-dialog-copy {
  margin: -4px 0 22px;
  color: #64707a;
  font-weight: 600;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-guided-dialog {
  width: min(860px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 32px));
  overflow: hidden;
  padding: 0;
}

body.flutter-web.register-page .connections-guided-dialog .dialog-close-form {
  z-index: 3;
}

body.flutter-web.register-page .connections-guided-dialog .dialog-close {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #ffffff;
}

body.flutter-web.register-page .connections-dialog-back {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 304px;
  min-height: 34px;
  border: 1px solid #e1e5e8;
  border-radius: 999px;
  padding: 0 13px;
  background: #ffffff;
  color: #36454f;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

body.flutter-web.register-page .connections-dialog-back:hover,
body.flutter-web.register-page .connections-dialog-back:focus-visible {
  color: #232d34;
  box-shadow: 0 0 0 3px rgba(253, 199, 87, 0.2);
  outline: none;
}

body.flutter-web.register-page .connections-guided-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 610px;
}

body.flutter-web.register-page .connections-guided-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 38px 30px;
  background: #36454f;
  color: #ffffff;
}

body.flutter-web.register-page .connections-guided-sidebar h2 {
  margin: 10px 0 0;
  padding: 0;
  color: #ffffff;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
}

body.flutter-web.register-page .connections-guided-sidebar > div > p:last-child {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.55;
}

body.flutter-web.register-page .connections-progress-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

body.flutter-web.register-page .connections-progress-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border-radius: 12px;
  padding: 9px 11px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.76rem;
  transition: background 160ms ease, color 160ms ease;
}

body.flutter-web.register-page .connections-progress-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  font-weight: 900;
}

body.flutter-web.register-page .connections-progress-list li.is-active {
  background: rgba(253, 199, 87, 0.14);
  color: #ffffff;
}

body.flutter-web.register-page .connections-progress-list li.is-active > span {
  border-color: #fdc757;
  background: #fdc757;
  color: #232d34;
}

body.flutter-web.register-page .connections-progress-list li.is-complete {
  color: rgba(255, 255, 255, 0.76);
}

body.flutter-web.register-page .connections-progress-list li.is-complete > span {
  border-color: rgba(253, 199, 87, 0.55);
  color: #fdc757;
}

body.flutter-web.register-page .connections-guided-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
  overflow-y: auto;
  padding: 44px 42px;
  background: #ffffff;
}

body.flutter-web.register-page .connections-mobile-step-navbar {
  display: none;
}

body.flutter-web.register-page .connections-guided-content .connections-number-step {
  width: 100%;
}

body.flutter-web.register-page .connections-guided-content h2 {
  margin: 7px 0 12px;
  padding: 0 38px 0 0;
  color: #232d34;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  outline: none;
}

body.flutter-web.register-page .connections-guided-step-label {
  margin: 0;
  color: #9c6a08;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.flutter-web.register-page .connections-explanation-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 26px;
  padding: 0;
  list-style: none;
}

body.flutter-web.register-page .connections-explanation-list > * {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border: 1px solid #e1e5e8;
  border-radius: 15px;
  padding: 16px;
  background: #f9fafb;
}

body.flutter-web.register-page .connections-explanation-list span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #fff1cb;
  color: #765510;
  font-weight: 900;
}

body.flutter-web.register-page .connections-explanation-list p {
  margin: 3px 0 0;
  color: #36454f;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.52;
}

body.flutter-web.register-page .connections-guided-content .stacked-form label {
  color: #36454f;
  font-size: 0.82rem;
  font-weight: 850;
}

body.flutter-web.register-page .connections-guided-content .stacked-form input {
  min-height: 50px;
  border-color: #dce2e5;
  border-radius: 13px;
  background: #f9fafb;
}

body.flutter-web.register-page .connections-guided-content .stacked-form input:focus {
  border-color: #d4a136;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(253, 199, 87, 0.2);
}

body.flutter-web.register-page .connections-input-hint {
  color: #7b878e;
  font-size: 0.7rem;
  font-weight: 650;
}

body.flutter-web.register-page .connections-guided-content .stacked-form .primary {
  width: 100%;
}

body.flutter-web.register-page .connections-number-step[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-readonly-contact {
  margin-bottom: 22px;
}

body.flutter-web.register-page .connections-readonly-contact input[readonly] {
  border-color: #dfe4e6;
  background: #f6f7f8;
  color: #36454f;
  cursor: default;
}

body.flutter-web.register-page .connections-vcf-file-name {
  overflow-wrap: anywhere;
  margin: -2px 0 0;
  color: #64707a;
  font-size: 0.78rem;
  font-weight: 650;
}

body.flutter-web.register-page #register-number-form .secondary {
  width: 100%;
}

body.flutter-web.register-page .connections-form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: #879198;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.flutter-web.register-page .connections-form-divider::before,
body.flutter-web.register-page .connections-form-divider::after {
  height: 1px;
  flex: 1;
  background: #e1e5e8;
  content: "";
}

body.flutter-web.register-page .connections-save-contact {
  width: 100%;
  margin-bottom: 10px;
}

body.flutter-web.register-page .connections-number-step > .primary {
  width: 100%;
}

body.flutter-web.register-page .connections-filtered-contact-card {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  border: 1px solid #e1e5e8;
  border-radius: 18px;
  padding: 24px 18px;
  background: #fbfcfd;
  text-align: center;
}

body.flutter-web.register-page .connections-filtered-contact-card .contact-detail-avatar {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

body.flutter-web.register-page .connections-filtered-contact-card strong {
  color: #232d34;
  font-size: 1.12rem;
}

body.flutter-web.register-page .connections-filtered-contact-card > span:last-child {
  margin-top: 6px;
  color: #64707a;
  font-weight: 700;
}

body.flutter-web.register-page .connections-dialog-number {
  display: grid;
  gap: 5px;
  margin: 0 0 20px;
  border: 1px solid #d5dade;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fbfcfd;
}

body.flutter-web.register-page .connections-dialog-number span {
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.flutter-web.register-page .connections-edit-field {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

body.flutter-web.register-page .connections-edit-field label {
  color: #64707a;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.flutter-web.register-page .connections-edit-field input {
  min-height: 46px;
  border: 1px solid #e1e5e8;
  border-radius: 13px;
  padding: 0 13px;
  background: #f9fafb;
  color: #232d34;
  font-size: 1rem;
  font-weight: 800;
}

body.flutter-web.register-page .connections-edit-field input:focus {
  outline: none;
  border-color: #d4a136;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(253, 199, 87, 0.2);
}

body.flutter-web.register-page .connections-edit-readonly-fields {
  margin: 10px 0 18px;
}

body.flutter-web.register-page .connections-edit-readonly-fields .contact-detail-field {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

body.flutter-web.register-page .connections-edit-email-note {
  margin: -4px 0 4px;
  color: #64707a;
  font-size: 0.88rem;
  font-weight: 650;
}

body.flutter-web.register-page .connections-edit-email-note strong {
  color: #232d34;
  font-weight: 800;
}

body.flutter-web.register-page .connections-dialog-number strong {
  color: #232d34;
  font-size: 1.2rem;
}

body.flutter-web.register-page .connections-message-draft {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  border: 1px solid #d5dade;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fffaf0;
}

body.flutter-web.register-page .connections-message-draft > span {
  color: #7d6427;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.flutter-web.register-page .connections-message-draft p {
  margin: 0;
  color: #2f3a42;
  font-size: 0.95rem;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-message-draft-label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

body.flutter-web.register-page .connections-message-draft-label textarea {
  box-sizing: border-box;
  width: 100%;
  resize: vertical;
}

body.flutter-web.register-page .connections-setup-checklist {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

body.flutter-web.register-page .connections-setup-checklist[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-setup-checklist > p {
  margin: 0 0 2px;
  color: #64707a;
  font-weight: 650;
  line-height: 1.5;
}

body.flutter-web.register-page .connections-check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  color: #232d34;
  font-weight: 750;
  line-height: 1.4;
}

body.flutter-web.register-page .connections-check-row input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: #765510;
}

body.flutter-web.register-page .connections-antagonist-proxy {
  margin: 0;
  background: #fff7e5;
  border-color: #efcf87;
}

body.flutter-web.register-page .connections-dialog-eyebrow {
  margin-bottom: 7px;
}

body.flutter-web.register-page .connections-dialog-switch {
  width: 100%;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: #765510;
  font-weight: 800;
  text-decoration: underline;
}

body.flutter-web.register-page .dm-invite-panel {
  margin-top: 20px;
  border-radius: 16px;
  padding: 18px;
}

body.flutter-web.register-page .dm-invite-panel p {
  color: #64707a;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  body.flutter-web.register-page .connections-shell {
    width: min(calc(100% - 32px), 980px);
    padding: 32px 0 56px;
  }

  body.flutter-web.register-page .connections-hero h1 {
    font-size: clamp(2.5rem, 12vw, 3.4rem);
  }

  body.flutter-web.register-page .connections-protected-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  body.flutter-web.register-page .connections-lock-card,
  body.flutter-web.register-page .connections-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.flutter-web.register-page .connections-lock-actions,
  body.flutter-web.register-page .connections-toolbar-actions {
    width: 100%;
    flex-direction: column;
  }

  body.flutter-web.register-page .connections-lock-actions > *,
  body.flutter-web.register-page .connections-toolbar-actions .connections-button {
    width: 100%;
  }

  body.flutter-web.register-page .connections-page-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  body.flutter-web.register-page .connections-page-button {
    min-height: 0;
    padding: 16px;
  }

  body.flutter-web.register-page .connections-page-button-content {
    margin-top: 12px;
  }

  body.flutter-web.register-page .connections-page-button-description {
    line-height: 1.38;
  }

  body.flutter-web.register-page .connections-page-button-footer {
    margin-top: 12px;
  }

  body.flutter-web.register-page .connections-guided-dialog {
    max-height: calc(100vh - 24px);
    overflow: hidden;
  }

  body.flutter-web.register-page .connections-guided-layout {
    display: flex;
    min-height: min(620px, calc(100vh - 24px));
    flex-direction: column;
  }

  body.flutter-web.register-page .connections-guided-sidebar {
    display: block;
    min-height: 66px;
    border: 0;
    padding: 0 54px;
    background: #36454f;
    color: #ffffff;
    box-shadow: none;
  }

  body.flutter-web.register-page .connections-guided-sidebar > div {
    display: none;
  }

  body.flutter-web.register-page .connections-guided-sidebar > .connections-mobile-step-navbar {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  body.flutter-web.register-page .connections-mobile-step-navbar strong {
    display: block;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  body.flutter-web.register-page .connections-progress-list {
    display: none;
  }

  body.flutter-web.register-page .connections-guided-content {
    display: block;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
  }

  body.flutter-web.register-page .connections-workspace-panel {
    padding: 24px 20px;
  }

  body.flutter-web.register-page .connections-row {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  body.flutter-web.register-page .connections-row-actions {
    grid-column: 1 / -1;
    padding-left: 64px;
  }

  body.flutter-web.register-page .connections-row-actions .connections-row-button {
    flex: 1;
  }

  body.flutter-web.register-page .connections-workspace-footer {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  body.flutter-web.register-page .topbar {
    min-height: 64px;
    padding: 0 16px 0 20px;
  }

}

@media (max-width: 430px) {
  body.flutter-web.register-page .connections-protected-heading {
    align-items: flex-start;
  }

  body.flutter-web.register-page .connections-protected-number {
    align-items: flex-start;
    flex-direction: column;
  }

  body.flutter-web.register-page .connections-row-actions {
    padding-left: 0;
  }
}
/* Public live screening demo. */
.demo-page {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(253, 199, 87, 0.1), transparent 30rem),
    linear-gradient(155deg, #36454f 0%, #2d3a43 46%, #232d34 100%);
  background-attachment: fixed;
  color: #ffffff;
}

.demo-page .topbar {
  min-height: 80px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  background: rgba(54, 69, 79, 0.94);
}

.demo-page .brand {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.demo-shell {
  display: flex;
  height: calc(100dvh - 80px);
  width: min(1180px, 100%);
  margin: 0 auto;
  flex-direction: column;
  padding: 28px clamp(16px, 3vw, 32px) 24px;
  box-sizing: border-box;
}

.demo-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 18px;
}

.demo-intro-copy {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  max-width: 640px;
  padding: 0;
}

.demo-intro h1 {
  margin: 0;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.demo-intro-copy > p:last-child {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  line-height: 1.55;
}

.demo-number-card {
  display: grid;
  min-width: 300px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-number-card > span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-number {
  margin: 3px 0;
  color: #fdc757;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.demo-number:hover {
  color: #ffe1a0;
}

.demo-number-card small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.73rem;
}

.demo-board {
  display: flex;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(19, 31, 38, 0.18);
}

.demo-column-heading,
.demo-message-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.demo-column-heading {
  min-height: 76px;
  border-bottom: 1px solid #dce2e5;
  background: #ffffff;
}

.demo-column-heading > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 22px;
}

.demo-column-heading > div:first-child {
  background: #f1f4f5;
}

.demo-column-heading > div:last-child {
  background: #fff8e8;
}

.demo-column-heading strong,
.demo-column-heading small {
  display: block;
}

.demo-column-heading strong {
  color: #24323a;
  font-size: 1.05rem;
  font-weight: 850;
}

.demo-column-heading small {
  margin-top: 2px;
  color: #6c7880;
  font-size: 0.78rem;
  font-weight: 650;
}

.demo-column-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #36454f;
  color: #fdc757;
  font-size: 0.8rem;
  font-weight: 900;
}

.demo-column-avatar.sender {
  border: 2px solid #36454f;
  background: #ffffff;
  color: #36454f;
  box-shadow: 0 2px 8px rgba(36, 50, 58, 0.18);
}

.demo-message-list {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: linear-gradient(
    to right,
    #f7f9fa 0%,
    #f7f9fa 50%,
    #fffcf5 50%,
    #fffcf5 100%
  );
}

.demo-message-pair {
  border-bottom: 0;
}

.demo-message-card {
  min-height: 0;
  padding: 7px 26px;
  background: transparent;
}

.demo-message-pair:first-child .demo-message-card {
  padding-top: 22px;
}

.demo-message-pair:last-child .demo-message-card {
  padding-bottom: 22px;
}

.demo-bubble {
  width: fit-content;
  max-width: 82%;
  margin: 0;
  border-radius: 17px;
  padding: 11px 14px;
  color: #24323a;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
}

.demo-message-card.attempted .demo-bubble {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: #36454f;
  color: #ffffff;
}

.demo-message-card.delivered .demo-bubble {
  border-bottom-left-radius: 5px;
  background: #edf0f2;
}

.demo-timestamp {
  display: block;
  margin: 4px 5px 0;
  color: #8b969c;
  font-size: 0.7rem;
  font-weight: 650;
}

.demo-message-card.attempted .demo-timestamp {
  text-align: right;
}

.demo-outcome {
  display: block;
  margin: 7px 6px 0;
  color: #8b969c;
  font-size: 0.75rem;
  font-weight: 650;
}

.demo-rejection {
  width: min(82%, 430px);
  margin: 9px 0 0 auto;
}

.demo-not-forwarded {
  display: block;
  border-radius: 14px 14px 14px 5px;
  padding: 12px 14px 4px;
  background: #fff0ec;
  color: #9d3428;
  font-size: 1rem;
}

.demo-filter-reason {
  margin: 0;
  border-radius: 0 0 14px 5px;
  padding: 4px 14px 12px;
  background: #fff0ec;
  color: #6f4c47;
  font-size: 0.88rem;
  line-height: 1.45;
}

.demo-outcome.rejected {
  color: #a03c2f;
  font-weight: 800;
}

.demo-empty {
  display: grid;
  min-height: 100%;
  place-items: center;
  align-content: center;
  padding: 40px;
  color: #6c7880;
  text-align: center;
}

.demo-empty strong {
  margin-top: 10px;
  color: #24323a;
  font-size: 1.1rem;
  font-weight: 800;
}

.demo-empty p {
  max-width: 420px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.demo-empty-icon {
  color: #e0a93d;
  font-size: 2rem;
}

.demo-board-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 48px;
  border-top: 1px solid #dce2e5;
  padding: 10px 18px;
  background: #ffffff;
}

.demo-board-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.flutter-web.demo-page .demo-clear-button {
  min-width: 80px;
  min-height: 32px;
  height: 32px;
  border: 1px solid #d5dade;
  border-radius: 999px;
  padding: 0 14px;
  background: #ffffff;
  color: #36454f;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

body.flutter-web.demo-page .demo-clear-button:hover:not(:disabled) {
  border-color: #36454f;
  background: #f5f7f8;
}

body.flutter-web.demo-page .demo-clear-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.demo-privacy-note,
.demo-status {
  margin: 0;
  color: #8b969c;
  font-size: 0.72rem;
  font-weight: 650;
}

.demo-status {
  flex: 0 0 auto;
  text-align: right;
}

.demo-status[data-error="true"] {
  color: #b3261e;
}

@media (max-width: 760px) {
  .demo-page .topbar {
    min-height: 68px;
    padding: 0 16px;
  }

  .demo-shell {
    height: calc(100dvh - 68px);
    padding: 18px 16px 16px;
  }

  .demo-intro {
    display: grid;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }

  .demo-number-card {
    min-width: 0;
  }

  .demo-column-heading {
    display: none;
  }

  .demo-message-list {
    background: #ffffff;
  }

  .demo-message-pair {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }

  .demo-message-card {
    min-height: 0;
    padding: 7px 16px;
  }

  .demo-message-card.attempted {
    background: #f7f9fa;
  }

  .demo-message-card.delivered,
  .demo-message-card.blocked {
    background: #fffcf5;
  }

  .demo-message-pair:first-child .demo-message-card:first-child {
    padding-top: 18px;
  }

  .demo-message-pair:first-child .demo-message-card:last-child {
    padding-top: 7px;
  }

  .demo-message-pair:last-child .demo-message-card:first-child {
    padding-bottom: 18px;
  }

  .demo-message-pair:last-child .demo-message-card:last-child {
    padding-bottom: 18px;
  }

  .demo-message-card.blocked:empty {
    display: none;
  }

  .demo-message-card::before {
    display: block;
    margin-bottom: 8px;
    color: #8b969c;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .demo-message-card.attempted::before {
    content: "Sender’s phone";
    text-align: right;
  }

  .demo-message-card.delivered::before,
  .demo-message-card.blocked::before {
    content: "Amicable user";
  }

  .demo-board-footer {
    display: grid;
    gap: 5px;
  }

  .demo-board-actions {
    justify-content: space-between;
  }

  .demo-status {
    text-align: left;
  }
}

/* ==========================================================================
   Flutter parity layer
   --------------------------------------------------------------------------
   Values below are lifted directly from flutter/lib (main.dart constants,
   signed_in_shell.dart, home_screen.dart, messages_screen.dart, …) so the
   web routes render at the same sizes, colors, radii, and shadows as the
   app. Reference screenshots: flutter/test/goldens/web_parity/*.png
   (regenerate with `flutter test test/web_parity_reference_test.dart
   --update-goldens`). This block is intentionally last so it wins over the
   older layered overrides above.
   ========================================================================== */
html:has(body.flutter-web) {
  --page-zoom: 1;
  zoom: 1;
}

body.flutter-web {
  --amx-bg: #f6f7f8;
  --amx-cream: #fbfcfd;
  --amx-ink: #232d34;
  --amx-muted: #64707a;
  --amx-line: #e1e5e8;
  --amx-navy: #36454f;
  --amx-navy-dark: #232d34;
  --amx-gold: #fdc757;
  --amx-gold-dark: #e0a93d;
  --amx-red: #ff3b30;
  --amx-soft: #fce7b8;
  --amx-white: #ffffff;
  --amx-success: #2f8f55;
  --amx-current: #d48722;
  --amx-error-bg: #fff0ec;
  --amx-error-ink: #ba1a1a;
  --amx-held-bg: #fff3ef;
  --amx-held-line: #e0b4a8;
  --amx-held-ink: #8c2f1e;
  --amx-held-note: #6f3b32;
  --amx-timestamp: #8b969c;
  --amx-navbar-height: 56px;
  --amx-radius-button: 14px;
  --amx-radius-input: 12px;
  --amx-card-shadow: 0 12px 28px rgba(12, 17, 20, 0.13);
  --amx-dialog-shadow: 0 24px 64px rgba(12, 17, 20, 0.24);
  --amx-route-title: 28px;
  --display: Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  font-family: var(--display);
  background: linear-gradient(180deg, var(--amx-navy) 0%, var(--amx-navy-dark) 100%) fixed;
  background-color: var(--amx-navy-dark);
}

@media (min-width: 600px) {
  body.flutter-web {
    --amx-route-title: 34px;
  }
}

body.flutter-web,
body.flutter-web button,
body.flutter-web input,
body.flutter-web select,
body.flutter-web textarea {
  font-family: var(--display);
}

/* ---- Navbar: AppBar(toolbarHeight 56, navyDark, centered brand) ---------- */
body.flutter-web .topbar.app-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  min-height: var(--amx-navbar-height);
  height: var(--amx-navbar-height);
  padding: 0 4px 0 2px;
  border-bottom: 0;
  background: var(--amx-navy-dark);
  backdrop-filter: none;
  box-shadow: none;
}

body.flutter-web .app-topbar .brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--amx-white);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.4px;
  text-transform: none;
}

body.flutter-web .app-topbar .topbar-back,
body.flutter-web .app-topbar .hamburger-menu summary {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: var(--amx-navbar-height);
  min-height: 0;
  margin: 0 2px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--amx-white);
  box-shadow: none;
}

body.flutter-web .app-topbar .topbar-back:hover,
body.flutter-web .app-topbar .hamburger-menu summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.flutter-web .app-topbar .topbar-back:focus-visible,
body.flutter-web .app-topbar .hamburger-menu summary:focus-visible {
  outline: 2px solid var(--amx-gold);
  outline-offset: -6px;
}

body.flutter-web .app-topbar .topbar-right {
  margin-left: auto;
  margin-right: 4px;
}

body.flutter-web .app-topbar .hamburger-menu summary {
  position: relative;
  z-index: 1;
}

body.flutter-web .app-topbar .hamburger-menu summary > span:not(.amicable-badge) {
  display: none;
}

body.flutter-web .app-topbar .hamburger-menu summary > .nav-menu-badge.amicable-badge {
  position: absolute;
  top: 10px;
  right: 2px;
  display: inline-grid;
  width: auto;
  height: 16px;
  background: var(--amx-red);
  transform: none;
  opacity: 1;
}

body.flutter-web .app-topbar .hamburger-menu summary > .nav-menu-badge.amicable-badge[hidden] {
  display: none;
}

/* Material Badge: red pill, 16px tall, 11px label. */
body.flutter-web .amicable-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--amx-red);
  color: var(--amx-white);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

body.flutter-web .amicable-badge[hidden] {
  display: none;
}

/* ---- Drawer: endDrawer(width min(88%,360), #2C3942, radius 16) ---------- */
body.flutter-web .hamburger-menu .menu-panel {
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  padding: 28px 14px 24px;
  border: 0;
  border-radius: 16px 0 0 16px;
  background: #2c3942;
  box-shadow: none;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.2, 0, 0, 1);
}

body.flutter-web .hamburger-menu[open] .menu-panel {
  transform: translateX(0);
}

body.flutter-web .hamburger-menu[open]::before {
  z-index: 55;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: none;
}

body.flutter-web .hamburger-menu .menu-panel a,
body.flutter-web .hamburger-menu .menu-panel .menu-logout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 2px 0;
  padding: 0 12px 0 22px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: none;
}

body.flutter-web .hamburger-menu .menu-panel a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
}

body.flutter-web .hamburger-menu .menu-panel a.current-page,
body.flutter-web .hamburger-menu .menu-panel a[aria-current="page"] {
  background: rgba(253, 199, 87, 0.16);
  color: var(--amx-gold);
}

body.flutter-web .hamburger-menu .menu-panel a.current-page::before,
body.flutter-web .hamburger-menu .menu-panel a[aria-current="page"]::before {
  left: 12px;
  width: 4px;
  height: 24px;
}

body.flutter-web .hamburger-menu .menu-panel a .amicable-badge {
  margin-left: auto;
}

body.flutter-web .hamburger-menu .menu-panel a[target="_blank"] {
  padding-left: 16px;
  font-size: 13px;
  letter-spacing: 1.04px;
}

body.flutter-web .hamburger-menu .menu-divider {
  width: 100%;
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
}

body.flutter-web .hamburger-menu .menu-panel .menu-logout {
  width: 100%;
  margin-top: 8px;
  padding-left: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffc3b6;
  font-size: 13px;
  letter-spacing: 1.04px;
  text-align: left;
}

body.flutter-web .hamburger-menu .menu-panel .menu-logout:hover {
  background: rgba(255, 255, 255, 0.1);
}

body.navigation-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body.flutter-web .hamburger-menu .menu-panel {
    transition: none;
  }
}

/* ---- Shared surfaces --------------------------------------------------- */
body.flutter-web .amicable-spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(253, 199, 87, 0.25);
  border-top-color: var(--amx-gold);
  border-radius: 50%;
  animation: amicable-spin 900ms linear infinite;
}

@keyframes amicable-spin {
  to { transform: rotate(360deg); }
}

body.flutter-web .amicable-error-banner {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--amx-error-bg);
  color: var(--amx-error-ink);
  font-weight: 700;
  line-height: 1.4;
}

body.flutter-web .primary,
body.flutter-web .link-button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: var(--amx-radius-button);
  background: var(--amx-gold);
  color: var(--amx-navy-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  box-shadow: none;
}

body.flutter-web .primary:hover:not(:disabled) {
  background: #f4bd4c;
}

body.flutter-web .primary:disabled {
  background: var(--amx-line);
  color: rgba(35, 45, 52, 0.45);
}

body.flutter-web .secondary,
body.flutter-web .link-button.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #c4c7c9;
  border-radius: var(--amx-radius-button);
  background: transparent;
  color: var(--amx-navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

/* ---- Home (home_screen.dart) ------------------------------------------- */
body.flutter-web.home-page .home-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 20px 48px;
}

body.flutter-web.home-page .home-hero {
  margin: 0;
  padding: 0;
}

body.flutter-web.home-page .home-hero h1 {
  margin: 0;
  color: var(--amx-white);
  font-family: "Archivo Black", var(--display);
  font-size: var(--amx-route-title);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -1.2px;
  overflow-wrap: anywhere;
}

body.flutter-web.home-page .home-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--amx-line);
  border-radius: 22px;
  background: var(--amx-white);
  color: var(--amx-ink);
  box-shadow: var(--amx-card-shadow);
}

body.flutter-web.home-page .home-card > h2 {
  margin: 0 0 16px;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

/* Setup card (_HomeNextStepCard) */
body.flutter-web.home-page .home-setup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--amx-gold-dark);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff1cf 0%, #fffaf0 50%, #ffffff 100%);
  color: var(--amx-ink);
  box-shadow: none;
}

body.flutter-web.home-page .home-setup-card[hidden] {
  display: none;
}

body.flutter-web.home-page .home-setup-card.is-celebrating {
  animation: amicable-setup-glow 1900ms ease-in-out 1;
}

@keyframes amicable-setup-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253, 199, 87, 0); }
  50% { box-shadow: 0 0 30px 5px rgba(253, 199, 87, 0.3); }
}

body.flutter-web.home-page .home-setup-card h2 {
  margin: 0 0 14px;
  color: var(--amx-ink);
  font-family: "Archivo Black", var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.7px;
}

body.flutter-web.home-page .home-setup-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--amx-ink);
}

body.flutter-web.home-page .home-setup-dismiss[hidden] {
  display: none;
}

body.flutter-web.home-page .home-setup-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
}

body.flutter-web.home-page .home-setup-row.complete {
  opacity: 0.62;
}

body.flutter-web.home-page .home-setup-row strong {
  display: block;
  color: var(--amx-navy);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.43;
}

body.flutter-web.home-page .home-setup-row.complete strong {
  text-decoration: line-through;
}

body.flutter-web.home-page .home-setup-row span:not(.home-essential-marker) {
  display: block;
  margin-top: 3px;
  color: var(--amx-muted);
  font-size: 14px;
  line-height: 1.35;
}

body.flutter-web.home-page .home-essential-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-white);
  font-size: 13px;
  font-weight: 900;
}

body.flutter-web.home-page .home-setup-row.complete .home-essential-marker {
  background: var(--amx-success);
}

body.flutter-web.home-page .home-setup-row.current .home-essential-marker {
  background: var(--amx-current);
  box-shadow: 0 0 0 5px rgba(212, 135, 34, 0.22);
  animation: amicable-step-pulse 900ms ease-in-out infinite alternate;
}

@keyframes amicable-step-pulse {
  from { transform: scale(1); box-shadow: 0 0 0 5px rgba(212, 135, 34, 0.22); }
  to { transform: scale(1.14); box-shadow: 0 0 0 8px rgba(212, 135, 34, 0.22); }
}

@media (prefers-reduced-motion: reduce) {
  body.flutter-web.home-page .home-setup-row.current .home-essential-marker,
  body.flutter-web.home-page .home-setup-card.is-celebrating {
    animation: none;
  }
}

body.flutter-web.home-page .home-setup-divider {
  height: 1px;
  margin: 14px 0;
  border: 0;
  background: var(--amx-line);
}

body.flutter-web.home-page .home-setup-complete {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.flutter-web.home-page .home-setup-complete[hidden],
body.flutter-web.home-page .home-setup-card [hidden] {
  display: none;
}

body.flutter-web.home-page .home-setup-complete-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--amx-success);
  color: var(--amx-white);
}

body.flutter-web.home-page .home-setup-complete strong {
  color: var(--amx-ink);
  font-family: "Archivo Black", var(--display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

body.flutter-web.home-page .home-setup-note {
  margin: 14px 0 0;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

body.flutter-web.home-page #home-setup-filter-label {
  margin-top: 8px;
}

body.flutter-web.home-page .home-setup-button {
  width: 100%;
  margin-top: 10px;
}

body.flutter-web.home-page #home-essentials-button,
body.flutter-web.home-page .home-setup-complete + .home-setup-note + #home-setup-inapp {
  margin-top: 14px;
}

/* Quick actions (_HomeQuickAction) */
body.flutter-web.home-page .home-quick-actions {
  display: grid;
  gap: 9px;
}

body.flutter-web.home-page .home-quick-actions a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 9px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--amx-bg);
  color: var(--amx-ink);
  box-shadow: none;
}

body.flutter-web.home-page .home-quick-actions a:hover {
  background: #eceef0;
}

body.flutter-web.home-page .home-quick-actions strong {
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
}

body.flutter-web.home-page .home-quick-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--amx-navy);
  color: var(--amx-gold);
}

body.flutter-web .home-chevron {
  width: 24px;
  height: 24px;
  background: currentColor;
  color: var(--amx-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* In-App Messages overview (_HomeMessagesOverview) */
body.flutter-web.home-page .home-conversation-list {
  display: block;
}

body.flutter-web.home-page .home-conversation-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 3px 0;
  border: 0;
  border-top: 1px solid var(--amx-line);
  border-radius: 0;
  background: transparent;
  color: var(--amx-ink);
}

body.flutter-web.home-page .home-conversation-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-gold);
  font-size: 16px;
  font-weight: 900;
}

body.flutter-web.home-page .home-conversation-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.flutter-web.home-page .home-conversation-copy strong {
  overflow: hidden;
  color: #1a1c1e;
  font-size: 16px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.home-page .home-conversation-copy small {
  overflow: hidden;
  color: #44474e;
  font-size: 14px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.home-page .home-conversation-row .home-chevron {
  color: var(--amx-ink);
}

body.flutter-web.home-page .home-view-all {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 2px 0 0 auto;
  padding: 2px 0 2px 8px;
  color: var(--amx-navy);
  font-size: 14px;
  font-weight: 700;
}

body.flutter-web.home-page .home-view-all[hidden] {
  display: none;
}

body.flutter-web.home-page .home-view-all span {
  font-size: 18px;
}

body.flutter-web.home-page .home-empty-state {
  display: grid;
  gap: 4px;
  justify-items: start;
  color: var(--amx-muted);
  font-size: 14px;
}

body.flutter-web.home-page .home-empty-state strong {
  color: var(--amx-ink);
  font-weight: 800;
}

body.flutter-web.home-page .home-empty-state .link-button {
  justify-self: center;
  margin-top: 8px;
}

body.flutter-web.home-page .home-loading {
  display: grid;
  place-items: center;
  min-height: 72px;
}

/* Protection Summary (_HomeFilteredActivityCard) */
body.flutter-web.home-page .home-protection-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--amx-line);
  border-radius: 18px;
  background: var(--amx-white);
  color: var(--amx-ink);
  text-align: left;
  box-shadow: none;
  cursor: pointer;
}

body.flutter-web.home-page .home-protection-card:focus-visible {
  outline: 3px solid var(--amx-gold);
  outline-offset: 2px;
}

body.flutter-web.home-page .home-protection-title {
  color: var(--amx-ink);
  font-size: 20px;
  font-weight: 900;
}

body.flutter-web.home-page .home-filtered-activity-prompt {
  margin-top: 3px;
  color: var(--amx-muted);
  font-size: 13px;
  font-weight: 400;
}

body.flutter-web.home-page .home-filtered-activity-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin-top: 14px;
  transition: filter 160ms ease;
}

body.flutter-web.home-page .home-filtered-activity.is-blurred .home-filtered-activity-values {
  filter: blur(7px);
}

body.flutter-web.home-page .home-filtered-activity-values > span {
  display: flex;
  flex-direction: row;
  text-align: left;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--amx-line);
}

body.flutter-web.home-page .home-filtered-activity-values > span:first-child {
  border-top: 0;
}

body.flutter-web.home-page .home-filtered-activity-values small {
  color: var(--amx-muted);
  font-size: 13px;
  font-weight: 700;
}

body.flutter-web.home-page .home-filtered-activity-values strong {
  color: var(--amx-ink);
  font-family: "Archivo Black", var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

/* Premium Usage (_HomeUsageMetric) */
body.flutter-web.home-page .home-usage {
  display: block;
}

body.flutter-web.home-page .home-usage[hidden] {
  display: none;
}

body.flutter-web.home-page .home-usage-card {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  padding: 20px;
  border: 1px solid var(--amx-line);
  border-radius: 17px;
  background: #f8f9f9;
  box-shadow: none;
}

body.flutter-web.home-page .home-usage-label {
  color: var(--amx-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

body.flutter-web.home-page .home-usage-description {
  letter-spacing: 0;
  text-transform: none;
  margin-top: 3px;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 600;
}

body.flutter-web.home-page .home-usage-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 12px;
}

body.flutter-web.home-page .home-usage-number strong {
  color: var(--amx-ink);
  font-family: "Archivo Black", var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -1px;
}

body.flutter-web.home-page .home-usage-number small {
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.home-page .home-usage-progress {
  height: 8px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebed;
}

body.flutter-web.home-page .home-usage-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amx-gold);
}

body.flutter-web.home-page .home-usage-card p {
  margin: 10px 0 0;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 600;
}

body.flutter-web.home-page .home-usage-reset {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 16px 0 0;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web.home-page .home-usage-reset svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--amx-gold-dark);
}

/* ---- Route titles (AmicableRouteTitle: 28/34px, w800, -1 tracking) ----- */
body.flutter-web.settings-page .settings-hero h1,
body.flutter-web.register-page .connections-hero h1,
body.flutter-web.account-page .account-hero h1,
body.flutter-web.account-page .account-plan-picker-heading h1,
body.flutter-web .route-title {
  margin: 0;
  color: var(--amx-white);
  font-family: var(--display);
  font-size: var(--amx-route-title);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1px;
}

/* ---- Settings (settings_screens.dart) ---------------------------------- */
body.flutter-web.settings-page .settings-shell {
  display: block;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  padding: 14px 24px 64px;
}

body.flutter-web.settings-page .settings-hero {
  margin: 0 0 18px;
  padding: 0;
}

body.flutter-web.settings-page .settings-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.settings-page .settings-section-label {
  margin: 0 0 8px;
  color: var(--amx-gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

body.flutter-web.settings-page .settings-row-group {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--amx-line);
  border-radius: 16px;
  background: var(--amx-white);
  box-shadow: none;
}

body.flutter-web.settings-page .settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid var(--amx-line);
  border-radius: 0;
  background: transparent;
  color: var(--amx-ink);
  text-align: left;
  opacity: 1;
  box-shadow: none;
}

body.flutter-web.settings-page .settings-row:first-child {
  border-top: 0;
}

body.flutter-web.settings-page button.settings-row:hover {
  background: rgba(35, 45, 52, 0.04);
}

body.flutter-web.settings-page button.settings-row:focus-visible {
  outline: 2px solid var(--amx-gold);
  outline-offset: -2px;
}

body.flutter-web.settings-page .settings-row-icon {
  flex: 0 0 20px;
  color: var(--amx-navy);
  opacity: 1;
}

body.flutter-web.settings-page .settings-row-label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  color: var(--amx-ink);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  opacity: 1;
}

body.flutter-web.settings-page .settings-row-label small {
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

body.flutter-web.settings-page .settings-row.is-disabled,
body.flutter-web.settings-page .settings-row.is-disabled * {
  color: inherit;
  opacity: 1;
  cursor: default;
}

body.flutter-web.settings-page .settings-row.is-disabled .settings-row-icon {
  color: var(--amx-navy);
}

body.flutter-web.settings-page .settings-row.is-disabled .settings-row-label {
  color: var(--amx-ink);
}

body.flutter-web.settings-page .settings-row.is-disabled .settings-row-label small {
  color: var(--amx-muted);
}

body.flutter-web.settings-page .settings-row-chevron {
  flex: 0 0 20px;
  color: var(--amx-muted);
}

body.flutter-web.settings-page .settings-row-danger,
body.flutter-web.settings-page .settings-row-danger .settings-row-icon,
body.flutter-web.settings-page .settings-row-danger .settings-row-label {
  color: #8b2f1b;
}

body.flutter-web.settings-page .change-password-status:empty {
  display: none;
}

body.flutter-web.settings-page .change-password-status {
  margin: -8px 0 18px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Dialogs (Dialog: radius 22, inset 12, max 560, scrollable) -------- */
body.flutter-web dialog.app-dialog,
body.flutter-web dialog.vault-content-warning {
  width: min(560px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: max(280px, calc(100dvh - 24px));
  margin: auto;
  padding: 20px 22px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-radius: 22px;
  background: var(--amx-white);
  color: var(--amx-ink);
  box-shadow: var(--amx-dialog-shadow);
}

body.flutter-web dialog.app-dialog::backdrop,
body.flutter-web dialog.vault-content-warning::backdrop {
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: none;
}

body.flutter-web dialog.app-dialog h2,
body.flutter-web dialog.vault-content-warning h2 {
  margin: 0 42px 4px 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

body.flutter-web dialog.app-dialog p {
  color: var(--amx-muted);
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web dialog.app-dialog .dialog-close-form {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  margin: 0;
}

body.flutter-web dialog.app-dialog .dialog-close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #44474e;
  font-size: 0;
  box-shadow: none;
}

body.flutter-web dialog.app-dialog .dialog-close::before {
  content: "";
  width: 24px;
  height: 24px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / 24px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") center / 24px no-repeat;
}

body.flutter-web dialog.app-dialog .dialog-close:hover {
  background: rgba(35, 45, 52, 0.08);
}

body.flutter-web dialog.app-dialog .dialog-close:focus:not(:focus-visible) {
  outline: none;
}

body.flutter-web dialog.app-dialog input:not([type="checkbox"]):not([type="radio"]),
body.flutter-web dialog.app-dialog select,
body.flutter-web dialog.app-dialog textarea {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--amx-line);
  border-radius: var(--amx-radius-input);
  background: var(--amx-cream);
  color: var(--amx-ink);
  font-size: 16px;
  box-shadow: none;
}

body.flutter-web dialog.app-dialog input:focus,
body.flutter-web dialog.app-dialog select:focus,
body.flutter-web dialog.app-dialog textarea:focus {
  border-color: var(--amx-gold);
  outline: 1px solid var(--amx-gold);
}

body.flutter-web .text-button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--amx-radius-button);
  background: transparent;
  color: var(--amx-navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

body.flutter-web .text-button:hover {
  background: rgba(54, 69, 79, 0.08);
}

/* When the on-screen keyboard is open, Flutter pins popups to the bottom
   inset (12/12/12/0) so the focused field sits directly above the keyboard. */
body.flutter-web.keyboard-open dialog.app-dialog[open],
body.flutter-web.keyboard-open dialog.vault-content-warning[open] {
  margin: 12px auto var(--amx-keyboard-inset, 0px);
  max-height: calc(var(--amx-visual-height, 100dvh) - 12px);
  border-bottom-right-radius: 22px;
  border-bottom-left-radius: 22px;
}

/* Throttle settings (_ThrottleSettingsDialog / _ThrottleLimitRule) */
body.flutter-web dialog.throttle-dialog .throttle-settings-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-header {
  margin: 0 0 12px;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-header p {
  margin: 0;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-list {
  display: flex;
  overflow: visible;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-list > .throttle-compact-row {
  padding: 14px 16px;
  border: 1px solid var(--amx-line);
  border-radius: 16px;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-row strong {
  color: var(--amx-ink);
  font-size: 15px;
  font-weight: 800;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-list > .throttle-compact-row strong {
  font-size: 16px;
}

body.flutter-web dialog.throttle-dialog .throttle-compact-row p {
  margin: 3px 0 0;
  color: var(--amx-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

body.flutter-web dialog.throttle-dialog .throttle-rule-panel {
  padding: 0 16px;
  border: 1px solid var(--amx-line);
  border-radius: 16px;
  background: var(--amx-white);
  transition: opacity 160ms ease;
}

body.flutter-web dialog.throttle-dialog .throttle-rule-panel.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

body.flutter-web dialog.throttle-dialog .throttle-rule-panel .throttle-compact-row + .throttle-compact-row {
  border-top: 1px solid var(--amx-line);
}

body.flutter-web dialog.throttle-dialog .throttle-rule-panel select {
  flex: 0 0 160px;
  width: 160px;
  min-height: 44px;
  border: 2px solid var(--amx-gold-dark);
  border-radius: 12px;
  background-color: var(--amx-white);
  color: var(--amx-ink);
  font-size: 16px;
  font-weight: 400;
  opacity: 1;
}

@media (max-width: 430px) {
  body.flutter-web dialog.throttle-dialog .throttle-rule-panel .throttle-compact-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  body.flutter-web dialog.throttle-dialog .throttle-rule-panel select {
    flex-basis: auto;
    width: 100%;
  }
}

body.flutter-web dialog.throttle-dialog .throttle-compact-actions:has(.throttle-save-status:empty) {
  display: none;
}

/* Password recovery: Flutter's AccountRecoveryPage card. */
body.flutter-web dialog.password-recovery-dialog .password-recovery-step {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

body.flutter-web dialog.password-recovery-dialog .password-recovery-field {
  display: grid;
  gap: 6px;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 700;
}

body.flutter-web dialog.password-recovery-dialog #password-recovery-dialog-copy {
  margin: 4px 0 0;
  color: #1a1c1e;
  font-weight: 400;
}

body.flutter-web dialog.password-recovery-dialog .helper-text:empty {
  display: none;
}

/* ---- Messages (messages_screen.dart) ----------------------------------- */
body.flutter-web.messages-page .text-shell,
body.flutter-web.messages-page:not(.messages-locked) .text-shell,
body.flutter-web.messages-page.message-thread-open .text-shell {
  width: 100%;
  max-width: none;
  min-height: calc(100dvh - var(--amx-navbar-height));
  margin: 0;
  padding: 0;
}

/* Flutter keeps the AppBar while a thread is open and only drops the
   back-to-Home button; the thread header carries its own back button. */
body.flutter-web.messages-page.message-thread-open .topbar.app-topbar {
  display: flex;
}

body.flutter-web.messages-page.message-thread-open .app-topbar .topbar-back {
  visibility: hidden;
}

body.flutter-web.messages-page:not(.messages-locked) .hamburger-menu summary {
  color: var(--amx-white);
}

body.flutter-web.messages-page .phone-layout,
body.flutter-web.messages-page .phone-layout.conversation-list-mode,
body.flutter-web.messages-page .phone-layout.thread-mode {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  height: calc(100dvh - var(--amx-navbar-height));
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.messages-page .phone-layout[hidden] {
  display: none;
}

body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame,
body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar {
  display: none;
}

body.flutter-web.messages-page .messages-error-banner:not([hidden]) {
  position: absolute;
  top: 12px;
  left: 20px;
  right: 20px;
  z-index: 3;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--amx-error-bg);
  color: var(--amx-error-ink);
  font-weight: 700;
}

/* Conversation list (_ConversationListView) */
body.flutter-web.messages-page .contact-sidebar.conversation-sidebar {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.messages-page #dm-conversation-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
  margin: 0;
  padding: 24px 20px 112px;
}

body.flutter-web.messages-page .dm-conversation-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 20px 18px;
  border: 1px solid var(--amx-line);
  border-radius: 20px;
  background: var(--amx-white);
  color: var(--amx-ink);
  text-align: left;
  box-shadow: none;
}

body.flutter-web.messages-page .dm-conversation-row:hover {
  background: #fdfdfd;
}

body.flutter-web.messages-page .dm-conversation-row:focus-visible,
body.flutter-web.messages-page .dm-conversation-row.active {
  border: 2px solid var(--amx-gold);
  padding: 19px 17px;
  box-shadow: 0 8px 24px rgba(253, 199, 87, 0.4);
}

body.flutter-web.messages-page .dm-unread-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-right: -6px;
  border-radius: 50%;
  background: var(--amx-gold);
}

body.flutter-web.messages-page .dm-conversation-avatar {
  display: grid;
  flex: 0 0 54px;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-gold);
  font-size: 16px;
  font-weight: 900;
}

body.flutter-web.messages-page .dm-conversation-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

body.flutter-web.messages-page .dm-conversation-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.flutter-web.messages-page .dm-conversation-name-row strong {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--amx-ink);
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.flutter-web.messages-page .dm-conversation-row.unread .dm-conversation-name-row strong {
  font-weight: 900;
}

body.flutter-web.messages-page .dm-conversation-name-row time {
  flex: 0 0 auto;
  color: #98a2a8;
  font-size: 11px;
  font-weight: 600;
}

body.flutter-web.messages-page .dm-conversation-preview {
  overflow: hidden;
  color: var(--amx-muted);
  font-size: 15px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.flutter-web.messages-page .messages-add-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--amx-gold);
  color: var(--amx-navy-dark);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 8px rgba(0, 0, 0, 0.14);
}

body.flutter-web.messages-page .messages-empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 24px;
  border: 1px solid var(--amx-line);
  border-radius: 22px;
  background: var(--amx-white);
  color: var(--amx-muted);
  text-align: center;
}

body.flutter-web.messages-page .messages-empty-icon {
  margin-bottom: 8px;
  color: var(--amx-navy);
}

body.flutter-web.messages-page .messages-empty-state strong {
  color: var(--amx-ink);
  font-size: 18px;
  font-weight: 800;
}

body.flutter-web.messages-page .messages-empty-state p {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}

body.flutter-web.messages-page .messages-loading-state {
  display: grid;
  place-items: center;
  min-height: 50vh;
}

/* Thread (_MessageThreadView) */
body.flutter-web.messages-page .phone-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--amx-white);
  box-shadow: none;
}

body.flutter-web.messages-page .phone-header {
  position: static;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 12px 12px 12px 8px;
  border: 0;
  background: var(--amx-white);
  box-shadow: none;
}

body.flutter-web.messages-page .dm-back-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 0;
  margin: 0 4px 0 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--amx-ink);
  box-shadow: none;
}

body.flutter-web.messages-page .dm-back-button:hover {
  background: rgba(35, 45, 52, 0.08);
}

body.flutter-web.messages-page .dm-active-avatar {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-gold);
  font-size: 14px;
  font-weight: 900;
}

body.flutter-web.messages-page .dm-active-avatar[hidden] {
  display: none;
}

body.flutter-web.messages-page .dm-recipient-heading strong {
  color: #24323a;
  font-size: 18px;
  font-weight: 800;
}

body.flutter-web.messages-page .message-log.text-thread {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 24px 18px 34px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfb 100%);
}

body.flutter-web.messages-page .message-log.is-loading-older::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 16px;
  border: 3px solid rgba(253, 199, 87, 0.25);
  border-top-color: var(--amx-gold);
  border-radius: 50%;
  animation: amicable-spin 900ms linear infinite;
}

body.flutter-web.messages-page .messages-thread-state {
  margin: 0;
  padding: 14px;
  color: var(--amx-muted);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

body.flutter-web.messages-page .message-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  margin: 0 0 11px;
  padding: 0;
}

body.flutter-web.messages-page .message-bubble-wrap.mine {
  align-items: flex-end;
  margin-left: auto;
}

body.flutter-web.messages-page .message-bubble-wrap.theirs {
  align-items: flex-start;
  margin-right: auto;
}

body.flutter-web.messages-page .text-bubble {
  max-width: 100%;
  margin: 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 17px 17px 17px 5px;
  background: #edf0f2;
  color: var(--amx-ink);
  box-shadow: none;
}

body.flutter-web.messages-page .text-bubble.outgoing {
  border-radius: 17px 17px 5px 17px;
  background: var(--amx-navy);
  color: var(--amx-white);
}

body.flutter-web.messages-page .text-bubble p {
  margin: 0;
  color: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.flutter-web.messages-page .message-bubble-wrap time,
body.flutter-web.messages-page .held-message-notice time {
  margin: 5px 6px 0;
  color: var(--amx-timestamp);
  font-size: 12px;
  font-weight: 600;
}

/* HeldMessageNotice */
body.flutter-web.messages-page .held-message-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 340px;
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

body.flutter-web.messages-page .held-message-notice > div {
  width: 100%;
  padding: 10px 18px;
  border: 1px solid #e0b4a8;
  border-radius: 24px;
  background: #fff3ef;
  text-align: center;
}

body.flutter-web.messages-page .held-message-notice strong {
  display: block;
  color: #8c2f1e;
  font-size: 14px;
  font-weight: 800;
}

body.flutter-web.messages-page .held-message-notice p {
  margin: 4px 0 0;
  color: #6f3b32;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Date and unread separators (web keeps these for long threads). */
body.flutter-web.messages-page .dm-date-separator,
body.flutter-web.messages-page .dm-new-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  color: var(--amx-timestamp);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.messages-page .dm-date-separator::before,
body.flutter-web.messages-page .dm-date-separator::after,
body.flutter-web.messages-page .dm-new-divider::before,
body.flutter-web.messages-page .dm-new-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--amx-line);
}

body.flutter-web.messages-page .dm-new-divider {
  color: var(--amx-gold-dark);
}

body.flutter-web.messages-page .dm-new-divider::before,
body.flutter-web.messages-page .dm-new-divider::after {
  background: rgba(224, 169, 61, 0.55);
}

/* Jump to latest / new-message chips float above the composer. */
body.flutter-web.messages-page .dm-thread-scroll-controls {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 4;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

body.flutter-web.messages-page .dm-thread-scroll-controls button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--amx-navy-dark);
  color: var(--amx-white);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(12, 17, 20, 0.24);
}

body.flutter-web.messages-page .dm-thread-scroll-controls #dm-new-messages-button {
  background: var(--amx-gold);
  color: var(--amx-navy-dark);
}

body.flutter-web.messages-page .dm-thread-scroll-controls button[hidden] {
  display: none;
}

/* Composer (_MessageComposer) */
body.flutter-web.messages-page .text-composer {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 18px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid #dce2e5;
  border-radius: 0;
  background: var(--amx-white);
  box-shadow: none;
}

body.flutter-web.messages-page .text-composer[hidden] {
  display: none;
}

body.flutter-web.messages-page .composer-input-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 7px;
  border: 1px solid #ccd4d8;
  border-radius: 16px;
  background: var(--amx-white);
}

body.flutter-web.messages-page .composer-input-row:focus-within {
  border-color: var(--amx-gold-dark);
}

body.flutter-web.messages-page .composer-input {
  flex: 1 1 auto;
  min-width: 0;
}

body.flutter-web.messages-page .composer-input textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  max-height: 120px;
  margin: 0;
  padding: 9px 7px;
  border: 0;
  outline: none;
  background: transparent;
  color: #24323a;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  resize: none;
  box-shadow: none;
}

body.flutter-web.messages-page .composer-input textarea::placeholder {
  color: var(--amx-timestamp);
  font-weight: 400;
}

body.flutter-web.messages-page .send-button {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--amx-gold);
  color: var(--amx-navy-dark);
  box-shadow: none;
}

body.flutter-web.messages-page .send-button:disabled {
  background: var(--amx-line);
  color: rgba(35, 45, 52, 0.45);
}

/* Desktop: Flutter is single-pane; the web adds a split inbox on wide
   screens while keeping every surface identical to the app. */
@media (min-width: 1024px) {
  body.flutter-web.messages-page .phone-layout,
  body.flutter-web.messages-page .phone-layout.conversation-list-mode,
  body.flutter-web.messages-page .phone-layout.thread-mode {
    display: grid;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
  }

  body.flutter-web.messages-page .phone-layout.conversation-list-mode .phone-frame,
  body.flutter-web.messages-page .phone-layout.thread-mode .contact-sidebar {
    display: flex;
  }

  body.flutter-web.messages-page .phone-layout .contact-sidebar.conversation-sidebar {
    display: block;
  }

  body.flutter-web.messages-page .phone-layout .phone-frame {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  body.flutter-web.messages-page .messages-add-contact {
    position: absolute;
  }

  body.flutter-web.messages-page .dm-back-button {
    display: none;
  }

  body.flutter-web.messages-page .phone-header {
    padding-left: 18px;
  }

  body.flutter-web.messages-page.message-thread-open .app-topbar .topbar-back {
    visibility: visible;
  }
}

/* Subscription lock (_MessagesLockedView) */
body.flutter-web.messages-page.messages-locked .text-shell {
  display: block;
  padding: 16px;
}

body.flutter-web.messages-page .messages-subscription-lock {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background: var(--amx-white);
  box-shadow: 0 24px 64px rgba(12, 17, 20, 0.24);
}

body.flutter-web.messages-page .messages-subscription-lock[hidden] {
  display: none;
}

body.flutter-web.messages-page .messages-lock-copy {
  display: block;
  padding: 24px;
  background: var(--amx-white);
  text-align: left;
}

body.flutter-web.messages-page .messages-lock-copy .messages-lock-label {
  margin: 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.2px;
  text-transform: none;
}

body.flutter-web.messages-page .messages-lock-copy p {
  margin: 9px 0 0;
  color: var(--amx-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

body.flutter-web.messages-page .messages-lock-copy .link-button {
  width: 100%;
  margin-top: 18px;
}

@media (min-width: 600px) {
  body.flutter-web.messages-page.messages-locked .text-shell {
    padding: 32px;
  }
}

/* ---- Shared buttons (FilledButton / OutlinedButton / danger) ---------- */
body.flutter-web .outlined-button,
body.flutter-web .connections-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #74777f;
  border-radius: var(--amx-radius-button);
  background: transparent;
  color: var(--amx-navy);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: none;
}

body.flutter-web .outlined-button:hover,
body.flutter-web .connections-button-secondary:hover {
  background: rgba(54, 69, 79, 0.06);
}

body.flutter-web .outlined-button.danger-outlined {
  border-color: #e0b4a8;
  background: #fff3ef;
  color: #b3261e;
}

body.flutter-web .connections-button-primary,
body.flutter-web.register-page .connections-button.connections-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--amx-radius-button);
  background: var(--amx-gold);
  color: var(--amx-navy-dark);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

/* ---- Contacts (contacts_numbers.dart) ---------------------------------- */
body.flutter-web.register-page .connections-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 1028px;
  margin: 0 auto;
  padding: 14px 24px 32px;
}

@media (max-width: 599px) {
  body.flutter-web.register-page .connections-shell {
    padding: 10px 16px;
  }
}

body.flutter-web.register-page .connections-hero {
  margin: 0;
  padding: 0;
}

body.flutter-web.register-page .connections-hero p {
  display: none;
}

/* Flutter shows the protected number in Home setup and the add-number
   flow, not as a standalone card on Contacts. */
body.flutter-web.register-page .connections-protected-card {
  display: none;
}

body.flutter-web.register-page .connections-workspace {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.register-page .connections-workspace[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-workspace-panel,
body.flutter-web.register-page .connections-lock-card {
  margin: 0;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  background: var(--amx-white);
  color: var(--amx-ink);
  box-shadow: 0 20px 40px rgba(12, 17, 20, 0.24);
}

@media (max-width: 599px) {
  body.flutter-web.register-page .connections-workspace-panel,
  body.flutter-web.register-page .connections-lock-card {
    padding: 20px;
  }
}

body.flutter-web.register-page .connections-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

body.flutter-web.register-page .connections-panel-toolbar h2 {
  margin: 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

body.flutter-web.register-page .connections-toolbar-actions {
  display: flex;
  margin: 0;
}

@media (max-width: 571px) {
  body.flutter-web.register-page .connections-panel-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  body.flutter-web.register-page .connections-toolbar-actions,
  body.flutter-web.register-page .connections-toolbar-actions .connections-button {
    width: 100%;
  }
}

body.flutter-web.register-page .connections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.flutter-web.register-page .connections-row.connections-row-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--amx-line);
  border-radius: 18px;
  background: var(--amx-white);
  color: var(--amx-ink);
  text-align: left;
  box-shadow: none;
}

body.flutter-web.register-page .connections-row.connections-row-contact:hover {
  background: #fafbfb;
}

body.flutter-web.register-page .connections-row.connections-row-contact:focus-visible {
  outline: 2px solid var(--amx-gold);
  outline-offset: 1px;
}

body.flutter-web.register-page .connections-avatar {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-gold);
  font-size: 13px;
  font-weight: 900;
}

body.flutter-web.register-page .connections-row-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.flutter-web.register-page .connections-row-copy strong {
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.flutter-web.register-page .connections-row-copy span {
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.register-page .connections-row-chevron {
  flex: 0 0 24px;
  margin-left: 7px;
  color: var(--amx-navy);
}

body.flutter-web.register-page .connections-workspace-footer {
  display: block;
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.register-page .connections-empty-state {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 24px 16px;
  border: 1px solid var(--amx-line);
  border-radius: 18px;
  background: var(--amx-cream);
  color: var(--amx-muted);
  text-align: center;
}

body.flutter-web.register-page .connections-empty-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--amx-soft);
  color: #7a5200;
  font-weight: 900;
}

body.flutter-web.register-page .connections-empty-state strong {
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
}

body.flutter-web.register-page .connections-empty-state p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

/* _SubscriptionLockCard */
body.flutter-web.register-page .connections-lock-card {
  display: grid;
  gap: 16px;
  text-align: left;
}

body.flutter-web.register-page .connections-lock-card[hidden] {
  display: none;
}

body.flutter-web.register-page .connections-lock-card .connections-section-label {
  margin: 0 0 6px;
  color: var(--amx-gold-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.flutter-web.register-page .connections-lock-card h2 {
  margin: 0;
  color: var(--amx-ink);
  font-size: 20px;
  font-weight: 800;
}

body.flutter-web.register-page .connections-lock-actions {
  display: flex;
  justify-content: center;
}

/* Contact dialogs (_ContactTypePickerDialog, detail, invite, redeem) */
body.flutter-web.register-page dialog.app-dialog {
  border-radius: 24px;
  padding: 24px;
}

body.flutter-web.register-page dialog.app-dialog .dialog-content {
  display: block;
}

body.flutter-web.register-page dialog.app-dialog .connections-contact-type-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

body.flutter-web.register-page dialog.app-dialog .connections-contact-type-actions .text-button {
  margin-top: 2px;
}

body.flutter-web.register-page dialog.app-dialog .connections-dialog-copy {
  margin: 8px 0 0;
  color: var(--amx-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

body.flutter-web.register-page dialog.app-dialog .stacked-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

body.flutter-web.register-page dialog.app-dialog .stacked-form label {
  display: grid;
  gap: 6px;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 700;
}

body.flutter-web.register-page dialog.app-dialog .stacked-form .primary {
  width: 100%;
  min-height: 52px;
}

body.flutter-web.register-page dialog.app-dialog .connections-dialog-switch {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

body.flutter-web.register-page dialog.contact-detail-dialog {
  padding: 12px 24px 24px;
}

body.flutter-web.register-page dialog.contact-detail-dialog .dialog-close-form {
  position: static;
  display: flex;
  justify-content: flex-end;
}

body.flutter-web.register-page .contact-detail-header {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: 0;
  text-align: center;
}

body.flutter-web.register-page .contact-detail-avatar {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: var(--amx-navy);
  color: var(--amx-gold);
  font-size: 16px;
  font-weight: 900;
}

body.flutter-web.register-page .contact-detail-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

body.flutter-web.register-page .contact-detail-header p {
  margin: 0;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.register-page .contact-detail-fields {
  margin-top: 14px;
}

body.flutter-web.register-page .contact-detail-fields[hidden] {
  display: none;
}

body.flutter-web.register-page .contact-detail-field {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--amx-line);
  border-radius: 14px;
  background: var(--amx-cream);
}

body.flutter-web.register-page .contact-detail-field span {
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.register-page .contact-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

body.flutter-web.register-page .contact-detail-actions > * {
  width: 100%;
  min-height: 52px;
  font-weight: 900;
}

body.flutter-web.register-page .contact-detail-actions [hidden] {
  display: none;
}

body.flutter-web.register-page .connections-invite-ready {
  margin: 16px 0 0;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
}

body.flutter-web.register-page .connections-invite-ready + .connections-dialog-copy {
  margin-top: 4px;
}

body.flutter-web.register-page .dm-invite-panel,
body.flutter-web.register-page .dm-invite-result {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.flutter-web.register-page .dm-invite-code-block {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  margin: 12px 0 0;
  padding: 0 56px;
  border: 1px solid var(--amx-line);
  border-radius: 14px;
  background: var(--amx-cream);
}

body.flutter-web.register-page .dm-invite-code-block code {
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 2px;
}

body.flutter-web.register-page .dm-invite-copy-icon {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--amx-ink);
  box-shadow: none;
}

body.flutter-web.register-page .dm-invite-copy-icon.is-copied {
  color: var(--amx-success);
}

body.flutter-web.register-page .dm-invite-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

body.flutter-web.register-page .dm-invite-actions .outlined-button {
  width: 100%;
  border-color: #74777f;
  color: #1f5f78;
  font-weight: 600;
}

/* Add-number guided flow keeps its stepper but uses the shared surfaces. */
body.flutter-web.register-page dialog.connections-guided-dialog {
  width: min(760px, calc(100vw - 24px));
}

body.flutter-web.register-page dialog.connections-guided-dialog input,
body.flutter-web.register-page dialog.connections-guided-dialog textarea {
  width: 100%;
}

/* ---- Subscription (subscription_screens.dart / checkout_billing.dart) -- */
body.flutter-web.account-page .account-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 1028px;
  margin: 0 auto;
  padding: 14px 24px 40px;
  background: transparent;
}

@media (max-width: 599px) {
  body.flutter-web.account-page .account-shell {
    padding: 10px 16px 32px;
  }
}

body.flutter-web.account-page .account-hero {
  margin: 0;
  padding: 0;
}

body.flutter-web.account-page .account-hero[hidden],
body.flutter-web.account-page .account-plan-picker[hidden],
body.flutter-web.account-page .account-billing-card[hidden] {
  display: none;
}

body.flutter-web.account-page .account-plan-picker {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.account-page .account-plan-picker-heading {
  margin: 0;
  padding: 0;
}

body.flutter-web.account-page .account-plan-picker-heading p {
  margin: 8px 0 0;
  color: var(--amx-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Flutter puts the billing-period control inside each plan card. */
body.flutter-web.account-page .account-plan-picker > .subscription-billing-picker {
  display: none;
}

body.flutter-web.account-page .account-inline-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 0;
}

@media (min-width: 760px) {
  body.flutter-web.account-page .account-plan-picker .account-inline-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.flutter-web .account-inline-plan-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px;
  border: 1px solid #d7dde1;
  border-radius: 22px;
  background: var(--amx-white);
  color: var(--amx-ink);
  box-shadow: 0 16px 36px rgba(12, 17, 20, 0.14);
}

body.flutter-web .account-inline-plan-card.recommended {
  border: 2px solid #e0a93d;
  background: linear-gradient(135deg, #fff8e8, #ffffff 70%);
  box-shadow: 0 14px 30px rgba(224, 169, 61, 0.15);
}

body.flutter-web .account-inline-plan-card h3 {
  margin: 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

body.flutter-web .account-inline-plan-card .plan-price {
  margin: 10px 0 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}

body.flutter-web .account-inline-plan-card .subscription-price-detail {
  margin: 5px 0 0;
  color: var(--amx-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

body.flutter-web .account-inline-plan-card .mobile-plan-billing-picker,
body.flutter-web .subscription-billing-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 10px 0 0;
  padding: 4px;
  border: 1px solid #dfe4e7;
  border-radius: 14px;
  background: #f2f4f5;
}

body.flutter-web .subscription-billing-picker button {
  display: grid;
  place-items: center;
  gap: 1px;
  min-height: 44px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  box-shadow: none;
}

body.flutter-web .subscription-billing-picker button span {
  display: block;
  font-size: 11px;
  font-weight: 800;
}

body.flutter-web .subscription-billing-picker button[aria-pressed="true"] {
  background: var(--amx-navy);
  color: var(--amx-white);
  box-shadow: 0 4px 10px rgba(54, 69, 79, 0.16);
}

body.flutter-web .account-inline-plan-card .plan-features,
body.flutter-web .account-plan-benefits .plan-features,
body.flutter-web .all-features-dialog .plan-features {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

body.flutter-web .account-inline-plan-card .plan-features li,
body.flutter-web .account-plan-benefits .plan-features li,
body.flutter-web .all-features-dialog .plan-features li {
  position: relative;
  padding-left: 25px;
  color: var(--amx-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

body.flutter-web .account-inline-plan-card .plan-features li::before,
body.flutter-web .account-plan-benefits .plan-features li::before,
body.flutter-web .all-features-dialog .plan-features li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 17px;
  height: 17px;
  background: var(--amx-gold-dark);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 17px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center / 17px no-repeat;
}

body.flutter-web .account-plan-benefits .plan-features li,
body.flutter-web .all-features-dialog .plan-features li {
  color: var(--amx-navy);
}

body.flutter-web .all-features-dialog .plan-features {
  gap: 12px;
  margin-top: 18px;
}

body.flutter-web .account-inline-plan-card > .primary,
body.flutter-web .account-inline-plan-card > .secondary {
  width: 100%;
  min-height: 46px;
  margin-top: auto;
}

body.flutter-web .account-inline-plan-card .plan-features + .primary,
body.flutter-web .account-inline-plan-card .plan-features + .secondary {
  margin-top: 13px;
}

body.flutter-web .account-inline-plan-card > .secondary {
  border-color: var(--amx-line);
  background: var(--amx-white);
  color: var(--amx-ink);
}

body.flutter-web .account-plan-fine-print {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

body.flutter-web .account-plan-fine-print svg {
  flex: 0 0 auto;
}

body.flutter-web dialog .account-plan-fine-print,
body.flutter-web .account-current-fine-print {
  justify-content: flex-start;
  color: var(--amx-muted);
  text-align: left;
}

/* Current plan card (_buildPlanCard) */
body.flutter-web.account-page .account-billing-card {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.flutter-web.account-page .account-plan-summary.account-inline-plan-card {
  padding: 20px;
  border: 1px solid var(--amx-line);
  background: var(--amx-white);
  box-shadow: 0 16px 42px rgba(12, 17, 20, 0.16);
}

body.flutter-web.account-page .account-plan-summary.account-inline-plan-card.recommended {
  border: 2px solid #e0a93d;
  background: linear-gradient(135deg, #fff8e8, #ffffff 70%);
  box-shadow: 0 14px 30px rgba(224, 169, 61, 0.15);
}

@media (min-width: 760px) {
  body.flutter-web.account-page .account-plan-summary.account-inline-plan-card {
    min-height: 320px;
    padding: 22px;
  }
}

body.flutter-web.account-page .account-current-plan-topline[hidden] {
  display: none;
}

body.flutter-web.account-page .account-current-plan-heading-row {
  display: block;
}

body.flutter-web.account-page .account-current-plan-eyebrow {
  margin: 0;
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

body.flutter-web.account-page #account-plan-name {
  margin: 8px 0 0;
  color: var(--amx-ink);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.4px;
}

@media (min-width: 760px) {
  body.flutter-web.account-page #account-plan-name {
    font-size: 38px;
  }
}

body.flutter-web.account-page .account-plan-price-period {
  margin: 4px 0 0;
  color: var(--amx-ink);
  font-size: 17px;
  font-weight: 800;
}

body.flutter-web.account-page .account-current-plan-next-payment {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--amx-line);
  color: var(--amx-muted);
  font-size: 12px;
  font-weight: 700;
}

body.flutter-web.account-page .account-current-plan-next-payment strong {
  color: var(--amx-ink);
  font-weight: 800;
}

body.flutter-web.account-page .account-plan-benefits {
  margin: 12px 0 0;
}

@media (min-width: 760px) {
  body.flutter-web.account-page .account-plan-benefits .plan-features {
    grid-template-columns: repeat(auto-fill, 205px);
    gap: 8px 24px;
  }
}

body.flutter-web.account-page .account-see-all-features {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  min-height: 0;
  margin: 2px 0 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--amx-gold-dark);
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
}

body.flutter-web.account-page .account-see-all-features[hidden] {
  display: none;
}

body.flutter-web.account-page .account-current-plan-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--amx-line);
}

body.flutter-web.account-page .account-button-stack {
  order: 2;
}

body.flutter-web.account-page .account-button-stack .primary {
  width: 100%;
  min-height: 48px;
}

body.flutter-web.account-page .account-current-plan-actions .helper-text {
  order: 1;
  margin: 0;
  color: var(--amx-muted);
  font-weight: 700;
  line-height: 1.4;
}

body.flutter-web.account-page .account-current-plan-actions .helper-text.is-error {
  color: var(--amx-error-ink);
}

body.flutter-web.account-page .account-current-plan-actions .helper-text[hidden],
body.flutter-web.account-page .setup-warning[hidden] {
  display: none;
}

body.flutter-web.account-page .account-current-fine-print {
  order: 3;
  margin-top: 2px;
}

body.flutter-web.account-page .account-picker-message:not([hidden]) {
  margin: 0;
  color: var(--amx-white);
  font-weight: 700;
  text-align: center;
}

body.flutter-web.account-page .account-picker-message.is-error {
  color: #ffb4ab;
}

/* Edit / change / cancel dialogs (EditSubscriptionPage, confirmation) */
body.flutter-web.account-page .account-plan-dialog-header {
  display: block;
}

body.flutter-web.account-page dialog.account-plan-dialog {
  width: min(980px, calc(100vw - 24px));
}

body.flutter-web.account-page dialog.account-plan-dialog .account-inline-plan-grid {
  margin-top: 16px;
}

@media (min-width: 760px) {
  body.flutter-web.account-page dialog.account-plan-dialog .account-inline-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.flutter-web.account-page dialog.account-plan-dialog .account-plan-fine-print {
  margin-top: 16px;
}

body.flutter-web.account-page .manage-billing-actions,
body.flutter-web.account-page .account-cancel-dialog-actions,
body.flutter-web.account-page .premium-phone-verification-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.flutter-web.account-page .manage-billing-actions > *,
body.flutter-web.account-page .account-cancel-dialog-actions > *,
body.flutter-web.account-page .premium-phone-verification-actions > * {
  width: 100%;
  min-height: 52px;
}

body.flutter-web .danger,
body.flutter-web.account-page #manage-billing-cancel,
body.flutter-web.account-page #cancel-subscription-confirm {
  border: 1px solid #e0b4a8;
  border-radius: var(--amx-radius-button);
  background: var(--amx-white);
  color: #8b2f1b;
  font-weight: 900;
  box-shadow: none;
}

body.flutter-web.account-page .manage-billing-note {
  margin: 14px 0 0;
  font-size: 12px;
}

body.flutter-web.account-page .all-features-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

body.flutter-web.account-page dialog.premium-phone-verification-dialog .stacked-form {
  display: grid;
  gap: 14px;
}

body.flutter-web.account-page dialog.premium-phone-verification-dialog label {
  display: grid;
  gap: 6px;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 700;
}

body.flutter-web.account-page dialog.premium-phone-verification-dialog [hidden] {
  display: none;
}

body.flutter-web.account-page .account-plan-picker-heading,
body.flutter-web.account-page .account-plan-picker-heading h1,
body.flutter-web.account-page .account-plan-picker-heading p {
  color: var(--amx-white);
  text-align: left;
}

body.flutter-web .account-inline-plan-card .mobile-plan-billing-picker {
  width: 100%;
  max-width: none;
}

body.flutter-web .account-plan-fine-print span {
  flex: 0 1 auto;
}

body.flutter-web.account-page .account-shell .account-hero h1,
body.flutter-web.account-page .account-shell .account-plan-picker-heading h1 {
  margin: 0;
  font-size: var(--amx-route-title);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1px;
}

body.flutter-web.account-page .account-shell .account-plan-picker-heading p {
  max-width: none;
  margin: 8px 0 0;
  padding: 0;
}

body.flutter-web.account-page .account-shell .account-button-stack .primary {
  border-radius: var(--amx-radius-button);
}

body.flutter-web.account-page .account-shell .account-current-fine-print {
  justify-content: flex-start;
}

/* Checkout return (confirm-checkout-session in flight) */
body.flutter-web.account-page .checkout-return-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--amx-line);
  border-radius: 22px;
  background: var(--amx-white);
  color: var(--amx-ink);
  font-weight: 800;
  box-shadow: var(--amx-card-shadow);
}

body.flutter-web.account-page .checkout-return-status[hidden] {
  display: none;
}

body.flutter-web.account-page .checkout-return-status .amicable-spinner {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-width: 3px;
}

body.flutter-web.messages-page .message-bubble-wrap,
body.flutter-web.messages-page .held-message-notice {
  background: transparent;
  box-shadow: none;
}

body.flutter-web.messages-page .remove-conversation-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.flutter-web.messages-page .remove-conversation-actions > * {
  min-height: 48px;
}

body.flutter-web.messages-page dialog.remove-conversation-dialog {
  width: min(420px, calc(100vw - 24px));
}

body.flutter-web.messages-page .remove-conversation-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

body.flutter-web.messages-page .remove-conversation-actions > * {
  min-height: 48px;
}

body.flutter-web.messages-page dialog.remove-conversation-dialog {
  width: min(420px, calc(100vw - 24px));
}

/* Remember me (Flutter CheckboxListTile on the sign-in form) */
body.flutter-web .auth-remember {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 2px 0 6px;
  color: var(--amx-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

body.flutter-web .auth-remember input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--amx-navy);
}


/* Contrast: Flutter's #8B969C / #98A2A8 timestamp greys measure about
   2.6-3:1 on white, below WCAG AA (4.5:1). The web uses the nearest grey
   that passes. */
body.flutter-web {
  --amx-timestamp: #687379;
}

body.flutter-web.messages-page .dm-conversation-name-row time {
  color: var(--amx-timestamp);
}

body.flutter-web.messages-page .message-log.text-thread:focus-visible {
  outline: 2px solid var(--amx-gold);
  outline-offset: -2px;
}

/* Message Records on phones: the table scrolls inside its own frame instead
   of widening the page. */
body.flutter-web.dashboard-page .dashboard-page-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.flutter-web.dashboard-page #dashboard-records-view,
body.flutter-web.dashboard-page .communication-vault-section,
body.flutter-web.dashboard-page .communication-vault-section > * {
  min-width: 0;
  max-width: 100%;
}

body.flutter-web.dashboard-page #vault-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
