
  /* ==== VALOON DESIGN TOKENS ==== */
  :root {
    --bg-content: #F4F4F6;
    --bg-card: #FFFFFF;
    --bg-soft: #F9FAFB;
    --bg-hover: #F3F4F6;

    --text: #111827;
    --text-muted: #6B7280;
    --text-faint: #9CA3AF;

    --brand: #2A6BF2;
    --brand-deep: #1B4FCC;
    --brand-soft: #E6EEFF;
    --brand-soft-2: #F0F5FF;

    --wa: #25D366;
    --wa-deep: #128C7E;
    --wa-soft: #E7F8EE;

    --warn: #F59E0B;
    --warn-soft: #FEF3C7;
    --danger: #EF4444;
    --danger-deep: #B91C1C;
    --danger-soft: #FEE2E2;

    --line: #E5E7EB;
    --line-soft: #F3F4F6;

    --r: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 22px;

    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow:    0 4px 12px rgba(15,23,42,0.05), 0 2px 4px rgba(15,23,42,0.04);
    --shadow-md: 0 8px 24px rgba(15,23,42,0.08), 0 2px 6px rgba(15,23,42,0.04);
    --shadow-lg: 0 16px 40px rgba(15,23,42,0.10), 0 4px 12px rgba(15,23,42,0.06);

    --mobile-w: 420px;

    --font: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: var(--font);
    background: var(--bg-content);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    min-height: 100vh;
  }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
  input, select { font-family: inherit; }
  a { color: inherit; text-decoration: none; }

  /* ==== MOBILE-FIRST PAGE CONTAINER ==== */
  .pages {
    max-width: var(--mobile-w);
    margin: 0 auto;
    padding: 16px 16px 96px;
  }
  .page {
    display: none;
    min-height: calc(100vh - 32px);
    animation: pageIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .page.is-visible { display: flex; flex-direction: column; }
  @keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ==== LANGUAGE SELECTOR (top-right, persistent) ==== */
  .lang-selector { position: fixed; top: 14px; right: 14px; z-index: 120; }
  .lang-trigger {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 9px 6px 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-xs);
    color: var(--text);
    transition: all 0.15s ease;
  }
  .lang-trigger:hover { border-color: #D1D5DB; box-shadow: var(--shadow-sm); }

  .lang-menu {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    min-width: 180px;
    display: none;
    animation: menuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .lang-selector.is-open .lang-menu { display: block; }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .lang-option {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text);
    transition: background 0.12s ease;
    text-align: left;
  }
  .lang-option:hover { background: var(--bg-hover); }
  .lang-option.is-active { background: var(--brand-soft-2); color: var(--brand-deep); }
  .lang-option .lang-name { flex: 1; }
  .lang-option .check { color: var(--brand); opacity: 0; }
  .lang-option.is-active .check { opacity: 1; }


  /* ==== FLAG (replaces emoji for cross-platform render) ==== */
  .flag {
    display: inline-block;
    width: 22px; height: 16px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    background: #fff;
    line-height: 0;
  }
  .flag svg { display: block; width: 100%; height: 100%; }
  .lang-option .flag { width: 26px; height: 19px; border-radius: 3px; }
  .lang-trigger .lang-caret { color: var(--text-faint); transition: transform 0.2s ease; }
  .lang-selector.is-open .lang-trigger .lang-caret { transform: rotate(180deg); }

  /* ==== AUTH STEPS ==== */
  .auth-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin: 56px 0 24px; flex-wrap: wrap;
  }
  .auth-step {
    display: flex; align-items: center; gap: 7px;
    padding: 5px 9px 5px 5px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 11.5px; color: var(--text-muted); font-weight: 500;
  }
  .auth-step .step-num {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-muted);
    display: grid; place-items: center;
    font-size: 10px; font-weight: 700;
  }
  .auth-step.active { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-deep); }
  .auth-step.active .step-num { background: var(--brand); color: white; }
  .auth-step.done { color: var(--brand); }
  .auth-step.done .step-num { background: var(--brand); color: white; }
  .auth-step-line { width: 10px; height: 1px; background: var(--line); }

  /* ==== PAGE 1 — AUTH ==== */
  .auth-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
  .auth-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 32px 24px 26px;
    box-shadow: var(--shadow);
  }
  .auth-logo { display: flex; justify-content: center; margin-bottom: 22px; }
  .auth-logo img { height: 34px; width: auto; }
  .auth-title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
  .auth-subtitle { text-align: center; font-size: 13.5px; color: var(--text-muted); margin: 0 0 24px; line-height: 1.5; }
  .auth-card .field { margin-bottom: 14px; }
  .field-label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }

  .input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 14px;
    background: var(--bg-card); color: var(--text);
    transition: all 0.15s ease;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
  }
  .input::placeholder { color: var(--text-faint); }
  .input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(42, 107, 242, 0.12);
  }
  .input-with-icon { position: relative; }
  .input-with-icon svg {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint); pointer-events: none;
  }
  .input-with-icon .input { padding-left: 42px; }

  /* ==== BUTTONS ==== */
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--r-md);
    font-size: 14px; font-weight: 600;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--brand); color: white;
    box-shadow: 0 1px 2px rgba(42, 107, 242, 0.3);
  }
  .btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(42, 107, 242, 0.32); }
  .btn-primary:active { transform: translateY(0); }
  .btn-block { width: 100%; }
  .btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--line); }
  .btn-ghost:hover { background: var(--bg-hover); border-color: #D1D5DB; }
  .btn-danger-solid { background: var(--danger); color: white; }
  .btn-danger-solid:hover { background: var(--danger-deep); }

  .auth-help { text-align: center; margin-top: 18px; font-size: 12.5px; color: var(--text-muted); }
  .auth-help a { color: var(--brand); font-weight: 600; }
  .auth-help a:hover { text-decoration: underline; }

  /* ==== PAGE 2 — QR (vertical) ==== */
  .qr-stage { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
  .qr-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .qr-top {
    padding: 28px 20px 22px;
    background: linear-gradient(180deg, #FAFBFE 0%, #F0F5FF 100%);
    display: flex; flex-direction: column; align-items: center;
    border-bottom: 1px solid var(--line);
  }
  .qr-status .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--wa); position: relative;
  }
  
  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
  }

  .qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    display: block;
  }

  .qr-bottom { padding: 24px 20px; }
  .qr-eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    background: var(--wa-soft); color: var(--wa-deep);
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
    margin-bottom: 12px;
    text-transform: uppercase;
  }
  .qr-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 8px; }
  .qr-desc { color: var(--text-muted); font-size: 13.5px; margin: 0 0 18px; line-height: 1.55; }
  .qr-steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 11px; }
  .qr-steps li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; }
  .qr-step-num {
    flex-shrink: 0; width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
  }
  .qr-actions .btn { width: 100%; }

  /* ==== PAGE 3 — DASHBOARD (mobile vertical) ==== */
  .dash { width: 100%; padding-top: 56px; }
  .dash-header { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
  .dash-title {
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
    margin: 0 0 4px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  }
  .wa-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 9px;
    background: var(--wa-soft); color: var(--wa-deep);
    border-radius: 999px;
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.02em; text-transform: uppercase;
  }
  .dash-subtitle { color: var(--text-muted); font-size: 13.5px; margin: 0; line-height: 1.5; }

  .phone-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 12px 7px 7px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12.5px;
    box-shadow: var(--shadow-xs);
    align-self: flex-start;
    margin-top: 4px;
  }
  .phone-pill-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--wa-soft); color: var(--wa-deep);
    display: grid; place-items: center;
  }
  .phone-pill-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
  .phone-pill-info .label { font-size: 9.5px; color: var(--text-faint); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
  .phone-pill-info .value { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
  .verified { color: var(--brand); margin-left: 2px; }

  /* ==== SYNC BUILDER CARD ==== */
  .sync-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
  }
  .sync-card-header { margin-bottom: 16px; }
  .sync-card-title { font-size: 15px; font-weight: 700; }
  .sync-card-subtitle { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; margin-top: 3px; }

  .sync-stack { display: flex; flex-direction: column; gap: 14px; }
  .sync-arrow-down {
    align-self: center;
    color: var(--text-faint);
    margin: -4px 0;
  }

  .sync-error{
  color:#ef4444;
  font-size:0.9rem;
  margin-top:12px;
  min-height:20px;
}

  .select-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; color: var(--text-muted);
    margin-bottom: 7px;
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .select-label-dot { width: 8px; height: 8px; border-radius: 3px; }
  .select-label-dot.valoon { background: var(--brand); }
  .select-label-dot.whatsapp { background: var(--wa); }

  .select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 13.5px;
    background: var(--bg-card); color: var(--text);
    appearance: none; -webkit-appearance: none;
    transition: all 0.15s ease;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-weight: 500;
  }
  .select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(42, 107, 242, 0.12);
  }

  .sync-action {
    margin-top: 18px; padding-top: 16px;
    border-top: 1px dashed var(--line);
    display: flex; flex-direction: column; gap: 14px;
  }
  .sync-action-info {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 12px; color: var(--text-muted);
    line-height: 1.5;
  }
  .sync-action-info svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
  .sync-action .btn { width: 100%; }

  /* ==== CONNECTIONS LIST (cards instead of table) ==== */
  .conn-section { margin-top: 6px; }
  .conn-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; gap: 10px;
  }
  .conn-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 700;
  }
  .conn-count {
    font-size: 11px; color: var(--text-muted);
    padding: 3px 8px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600; font-family: var(--font-mono);
  }
  .conn-tabs {
    display: flex; gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px; padding: 3px;
    margin-bottom: 14px;
    width: 100%;
  }
  .conn-tab {
    flex: 1;
    padding: 7px 10px; border-radius: 7px;
    font-size: 12px; font-weight: 600;
    color: var(--text-muted);
    transition: all 0.15s ease;
  }
  .conn-tab.active { background: var(--bg-content); color: var(--text); }

  .conn-list { display: flex; flex-direction: column; gap: 10px; }

  .conn-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 14px 14px 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
  }
  .conn-card:hover { border-color: #D1D5DB; box-shadow: var(--shadow-xs); }
  .conn-card[data-state="inactive"] { opacity: 0.78; }

  .conn-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
  }
  .conn-card-body {
    display: flex; flex-direction: column; gap: 8px;
  }
  .conn-side {
    display: flex; align-items: center; gap: 10px;
  }
  .conn-link-arrow {
    padding-left: 11px;
    color: var(--text-faint);
    line-height: 1;
  }

  .cell-icon {
    width: 32px; height: 32px; border-radius: 8px;
    display: grid; place-items: center; flex-shrink: 0;
    font-weight: 700; font-size: 11px;
  }
  .cell-icon.valoon { background: var(--brand-soft); color: var(--brand-deep); }
  .cell-icon.whatsapp { background: var(--wa-soft); color: var(--wa-deep); }
  .cell-name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
  .cell-sub { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

  .badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
  }
  .badge.active { background: var(--brand-soft); color: var(--brand); }
  .badge.active::before {
    content: ""; width: 7px; height: 7px;
    border-radius: 50%; background: var(--brand);
    box-shadow: 0 0 0 3px rgba(42, 107, 242, 0.15);
  }
  .badge.inactive { background: #F3F4F6; color: var(--text-muted); }
  .badge.inactive::before {
    content: ""; width: 7px; height: 7px;
    border-radius: 50%; background: var(--text-faint);
  }

  /* ==== KEBAB MENU (3 dots) ==== */
  .kebab-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--text-muted);
    transition: all 0.15s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
  }
  .kebab-btn:hover { background: var(--bg-hover); color: var(--text); }
  .kebab-btn.is-open { background: var(--brand-soft-2); color: var(--brand); border-color: var(--brand-soft); }

  .kebab-menu {
    position: fixed;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-md);
    padding: 6px;
    min-width: 180px;
    z-index: 130;
    display: none;
    animation: menuIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .kebab-menu.is-open { display: block; }
  .kebab-menu .item {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 13.5px; font-weight: 500;
    color: var(--text);
    transition: background 0.12s ease;
    text-align: left;
  }
  .kebab-menu .item:hover { background: var(--bg-hover); }
  .kebab-menu .item.danger { color: var(--danger); }
  .kebab-menu .item.danger:hover { background: var(--danger-soft); }
  .kebab-menu .item svg { flex-shrink: 0; }
  .kebab-menu .divider { height: 1px; background: var(--line-soft); margin: 4px 2px; }

  /* ==== MODAL ==== */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn 0.2s ease;
  }
  .modal-overlay.is-open { display: flex; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .modal {
    background: var(--bg-card);
    border-radius: var(--r-xl);
    padding: 24px;
    max-width: 380px; width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  @keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .modal-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--danger-soft); color: var(--danger);
    display: grid; place-items: center;
    margin-bottom: 14px;
  }
  .modal-title { font-size: 17px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.015em; }
  .modal-text { color: var(--text-muted); font-size: 13.5px; margin: 0 0 8px; line-height: 1.55; }
  .modal-detail {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 10px 12px;
    margin: 12px 0 18px;
    font-size: 12.5px;
  }
  .modal-detail .row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
  .modal-detail .row + .row { border-top: 1px dashed var(--line); }
  .modal-detail .key {
    color: var(--text-muted);
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.04em; text-transform: uppercase;
  }
  .modal-detail .val { font-weight: 600; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

  /* ==== DEV NAV ==== */
  .dev-nav {
    position: fixed;
    bottom: 14px; left: 50%; transform: translateX(-50%);
    z-index: 110;
    display: flex; align-items: center; gap: 4px;
    padding: 5px 5px 5px 12px;
    background: #0A0A0A; color: white;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    font-size: 12px;
  }
  .dev-nav-label {
    font-family: var(--font-mono);
    font-size: 9.5px; letter-spacing: 0.06em;
    text-transform: uppercase; opacity: 0.55;
    margin-right: 4px;
  }
  .dev-btn {
    background: rgba(255,255,255,0.1); color: white;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11.5px; font-weight: 600;
    transition: all 0.15s ease;
  }
  .dev-btn:hover { background: white; color: var(--text); }
  .dev-btn:disabled { opacity: 0.35; cursor: not-allowed; background: rgba(255,255,255,0.05); }
  .dev-btn:disabled:hover { background: rgba(255,255,255,0.05); color: white; }

  /* ============================================================
     DESKTOP — responsive overrides for ≥768px
     ============================================================ */
  @media (min-width: 768px) {
    .pages {
      max-width: 1100px;
      padding: 24px 32px 96px;
    }
    .page { min-height: calc(100vh - 48px); }

    /* Auth + QR stay constrained but centered horizontally on desktop */
    .auth-stage {
      max-width: 460px;
      width: 100%;
      margin: 0 auto;
    }
    .qr-stage {
      max-width: 880px;
      width: 100%;
      margin: 0 auto;
    }
    .auth-steps { margin: 40px 0 28px; }

    /* QR: side-by-side on desktop */
    .qr-card { display: grid; grid-template-columns: 1fr 1fr; }
    .qr-top {
      border-bottom: none;
      border-right: 1px solid var(--line);
      padding: 40px 28px;
    }
    .qr-bottom { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
    .qr-svg { width: 220px; height: 220px; }
    .qr-title { font-size: 24px; }

    /* Dashboard: wider layout */
    .dash { padding-top: 40px; }
    .dash-header {
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
    }
    .dash-header > div:first-child { flex: 1; min-width: 0; }
    .dash-title { font-size: 26px; }
    .phone-pill { margin-top: 8px; }

    /* Sync builder: 3-column horizontal */
    .sync-card { padding: 28px; }
    .sync-stack {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 18px;
      align-items: end;
    }
    .sync-arrow-down {
      align-self: end;
      padding-bottom: 10px;
      transform: rotate(-90deg);
    }
    .sync-action {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .sync-action-info { max-width: 600px; font-size: 13px; }
    .sync-action .btn { width: auto; }

    /* Connection cards: row layout, kebab + badge top-right */
    .conn-card {
      padding: 18px 20px;
      position: relative;
    }
    .conn-card-head {
      position: absolute;
      top: 16px;
      right: 16px;
      margin-bottom: 0;
      gap: 10px;
    }
    .conn-card-body {
      flex-direction: row;
      align-items: center;
      gap: 16px;
      padding-right: 130px;
    }
    .conn-side { flex: 1; min-width: 0; }
    .conn-side .cell-name {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .conn-link-arrow {
      padding: 0;
      transform: rotate(-90deg);
    }

    /* Conn header back to inline */
    .conn-tabs { width: auto; align-self: flex-start; }

    /* Modal a touch wider on desktop */
    .modal { max-width: 440px; padding: 28px; }
    .modal-title { font-size: 18px; }

    /* Lang selector slightly more space on desktop */
    .lang-selector { top: 18px; right: 22px; }
  }

