.topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 0 0 14px 0;
      padding: calc(10px + var(--safe-top)) 12px 10px;
      border-radius: 0;
      width: 100%;
      overflow: hidden;
    }
    .topbar-banner {
      position: absolute;
      inset: 0;
      border-radius: 0;
      background:
        linear-gradient(115deg, rgba(248,113,113,.26), rgba(15,118,110,.14) 58%, rgba(255,255,255,.12)),
        radial-gradient(120% 130% at 8% 0%, rgba(255,255,255,.45), transparent 52%);
      background-size: cover;
      background-position: center;
      opacity: .96;
      pointer-events: none;
    }
    .topbar-banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(255,255,255,.68), rgba(255,255,255,.84));
    }
    :root[data-theme="dark"] .topbar-banner-overlay {
      background: linear-gradient(to bottom, rgba(17,24,39,.56), rgba(17,24,39,.82));
    }
    .topbar-side {
      min-width: 44px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      position: relative;
      z-index: 1;
    }
    .topbar-actions { justify-content: flex-end; }
    .brand { min-width: 0; }
    .brand.centered { flex: 1; text-align: center; position: relative; z-index: 1; }
    .brand-title { font-size: 17px; font-weight: 900; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-subtitle { margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .status-dot {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      margin-inline: 2px;
      background: #9ca3af;
      vertical-align: middle;
    }
    .status-dot.connected { background: #22c55e; }
    .status-dot.connecting { background: #f59e0b; }
    .status-dot.offline { background: #ef4444; }
    .icon-row { display: flex; align-items: center; gap: 8px; }
    .icon-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      border: 1px solid var(--line);
      background: var(--panel-strong);
      display: grid;
      place-items: center;
      font-weight: 900;
      box-shadow: 0 10px 28px rgba(127,29,29,.08);
      position: relative;
      flex: 0 0 42px;
    }
    .topbar .icon-btn i { font-size: 15px; }
    .topbar-badge {
      position: absolute;
      top: -5px;
      inset-inline-end: -3px;
      min-width: 17px;
      height: 17px;
      border-radius: 999px;
      padding: 0 4px;
      background: #ef4444;
      color: #fff;
      font-size: 10px;
      font-weight: 900;
      display: grid;
      place-items: center;
      border: 2px solid var(--panel-strong);
    }
    
    /* Topbar Chat Content */
    .topbar-chat-content {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
      position: relative;
      z-index: 1;
    }
    
    .topbar-chat-contact {
      display: flex;
      align-items: center;
      gap: 7px;
      border: 0;
      background: transparent;
      color: inherit;
      cursor: pointer;
      padding: 0;
      flex-shrink: 0;
      transition: opacity .15s ease;
    }
    
    .topbar-chat-contact:active {
      opacity: 0.7;
    }
    
    .topbar-chat-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--bg-soft);
      border: 2px solid var(--line);
      flex-shrink: 0;
    }
    
    .topbar-chat-avatar-empty {
      display: grid;
      place-items: center;
      color: var(--muted);
      font-size: 13px;
    }
    
    .topbar-chat-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--ink);
      white-space: nowrap;
    }
    
    .topbar-chat-ad-center {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 7px;
      background: var(--bg-soft);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 5px;
      min-width: 0;
      position: relative;
      z-index: 1;
    }
    
    .topbar-chat-ad {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 7px;
      background: var(--bg-soft);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 5px;
      min-width: 0;
    }
    
    .topbar-chat-ad-image {
      width: 36px;
      height: 36px;
      border-radius: 6px;
      object-fit: cover;
      background: var(--bg);
      flex-shrink: 0;
    }
    
    .topbar-chat-ad-info {
      flex: 1;
      min-width: 0;
      display: grid;
      gap: 1px;
    }
    
    .topbar-chat-ad-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--ink);
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    
    .topbar-chat-ad-price {
      font-size: 10px;
      font-weight: 600;
      color: var(--primary);
    }
    .route-title { display: grid; gap: 4px; margin: 8px 2px 14px; }
    .route-title { text-align: center; justify-items: center; }
    .route-title h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: 0; }
    .route-title p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
    .searchbar {
      width: 100%;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--ink);
      border-radius: 18px;
      padding: 13px 16px;
      outline: none;
      text-align: center;
    }