/* Clean, Full-Width Modern Dashboard CSS for WhatsVendedora */

:root {
  --bg-main: #f8fafc;
  --bg-panel: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-dark: #0f172a;
  
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #1D9E75;
  --primary-hover: #17825f;
  --primary-soft: #dcfce7;
  --line: #e5e7eb;
  
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --error: #ef4444;
  --error-bg: #fee2e2;

  --sidebar-w: 360px;
  --stats-w: 300px;
  --panel-radius: 12px;
  --input-radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Manrope', -apple-system, sans-serif;
  line-height: 1.5;
  height: 100vh;
  overflow: hidden;
}

.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 0.85rem; }

/* -----------------------------------------
   Login View
----------------------------------------- */
.login-view {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 8% 12%, #dbeafe 0%, transparent 45%),
    radial-gradient(circle at 90% 86%, #ccfbf1 0%, transparent 50%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 52%, #f0fdfa 100%);
}
.login-shell {
  width: min(1040px, 100%);
  min-height: min(680px, calc(100vh - 48px));
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #dbe2ee;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.login-hero {
  color: #ecfeff;
  padding: 48px 42px;
  background:
    radial-gradient(circle at 20% 10%, rgba(236, 254, 255, 0.18), transparent 38%),
    linear-gradient(155deg, #0f172a 0%, #0f766e 58%, #155e75 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.hero-pill {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(236, 254, 255, 0.4);
  background: rgba(15, 23, 42, 0.26);
}
.login-hero h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.14;
  font-weight: 800;
}
.login-hero p {
  font-size: 1rem;
  line-height: 1.65;
  color: #ccfbf1;
  max-width: 56ch;
}
.hero-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ecfeff;
  font-size: 0.95rem;
}
.hero-highlights i {
  color: #67e8f9;
  font-size: 1rem;
}
.login-card {
  background: var(--bg-panel);
  padding: 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--bg-dark); }
.brand-logo-login { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 8px; display: block; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.input-icon-wrapper { position: relative; }
.input-icon-wrapper i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.input-icon-wrapper input {
  width: 100%; padding: 11px 12px 11px 38px; border: 1px solid #cbd5e1;
  border-radius: var(--input-radius); font-size: 0.95rem; font-family: inherit; transition: 0.2s;
}
.input-icon-wrapper input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; border: none; border-radius: var(--input-radius);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.2s;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; padding: 10px; font-size: 1rem; }
.btn-soft { background: var(--bg-main); color: var(--text-main); }
.btn-soft:hover { background: #e2e8f0; }
.btn-danger-soft { background: var(--error-bg); color: var(--error); padding: 8px; border-radius: 8px;}
.btn-outline { background: transparent; border: 1px solid #cbd5e1; color: var(--text-main); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--text-light); }
.btn-text { background: transparent; color: var(--text-muted); }
.btn-text:hover { color: var(--text-main); }
.btn-small { padding: 4px 8px; font-size: 0.75rem; }

.flash-alert { padding: 12px; border-radius: var(--input-radius); margin-top: 16px; font-size: 0.85rem; }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }

/* -----------------------------------------
   Dashboard Layout
----------------------------------------- */
.dashboard-layout { display: flex; flex-direction: column; height: 100vh; }
.top-nav {
  height: 60px; background: var(--bg-panel); border-bottom: 0.5px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 24px; flex-shrink:0;
}
.nav-brand {
  font-weight: 700;
  font-size: 1.02rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--bg-dark);
  line-height: 1;
}
.brand-logo-nav {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 50%;
  border: 0.5px solid var(--line);
  background: #ffffff;
  padding: 4px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.user-pill { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-right: 8px;}

/* NO MARGINS - FULL WIDTH */
.dashboard-grid {
  flex: 1;
  display: flex;
  overflow: hidden;
  background: var(--bg-main);
  min-height: 0;
}
.panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-panel);
  border: 0.5px solid var(--line);
}
.panel-left {
  width: var(--sidebar-w);
  min-width: 160px;
  max-width: 420px;
  flex: 0 0 auto;
  border-right: none;
}
.panel-center {
  flex: 1;
  min-width: 0;
  border-left: none;
  border-right: none;
}
.panel.col-right {
  width: var(--stats-w);
  min-width: 160px;
  max-width: 380px;
  flex: 0 0 auto;
  background: var(--bg-main);
  border-left: none;
}

.resizer {
  width: 5px;
  flex: 0 0 5px;
  cursor: col-resize;
  background: transparent;
  transition: background-color 0.2s ease;
}
.resizer:hover,
.resizer.is-dragging {
  background: rgba(29, 158, 117, 0.15);
}

/* Scrollbars */
.scroll-list { overflow-y: auto; overflow-x: hidden; }
.scroll-list::-webkit-scrollbar { width: 4px; }
.scroll-list::-webkit-scrollbar-track { background: transparent; }
.scroll-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 0.5px solid var(--line); flex-shrink:0; background:var(--bg-panel);}
.panel-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase;}
.counter-badge { background: #dcfce7; color: #0f5132; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; }

/* -----------------------------------------
   Sellers List (Left Column)
----------------------------------------- */
.seller-add-box { padding: 16px; background: var(--bg-main); border-bottom: 0.5px solid var(--line); }

.seller-list { flex: 1; display: flex; flex-direction: column; }
.seller-item { border-bottom: 0.5px solid var(--line); padding: 12px 16px; cursor: pointer; transition: 0.2s;}
.seller-item:hover { background: var(--bg-hover); }
.seller-item.active { background: var(--primary-soft); border-left: 2px solid var(--primary);}
.seller-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;}
.seller-name { font-weight: 600; font-size: 0.95rem; color: var(--bg-dark); }
.seller-sub { font-size: 0.8rem; color: var(--text-muted); }
.status-dot { font-size: 0.7rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: #e2e8f0;}
.status-open { background: var(--success-bg); color: var(--success); }
.status-connecting { background: var(--warning-bg); color: var(--warning); }
.seller-actions { margin-top: 8px; display: flex; gap: 6px; }

/* -----------------------------------------
   Center Area (Conversations)
----------------------------------------- */
.content-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 0.5px solid var(--line); flex-shrink: 0;}
.conv-info h2 { font-size: 1.15rem; font-weight: 700; color: var(--bg-dark); margin-bottom: 2px;}
.mobile-threads-header,
.mobile-chat-header { display: none; }
.mobile-header-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.mobile-header-copy strong {
  font-size: 0.95rem;
  color: var(--bg-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-header-copy .muted {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-filters { display: flex; gap: 12px; align-items: center;}
.filter-group { display: flex; background: var(--bg-main); padding: 4px; border-radius: 8px; }
.filter-btn { background: transparent; border: none; padding: 4px 12px; font-size: 0.8rem; font-weight: 600; border-radius: 4px; color: var(--text-muted); cursor: pointer; }
.filter-btn.active { background: white; color: var(--bg-dark); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.sync-actions { display: flex; gap: 8px; }

.chat-workspace { flex: 1; display: grid; grid-template-columns: 280px 1fr; overflow: hidden; min-width: 0; min-height: 0; }

.threads-sidebar { border-right: 0.5px solid var(--line); display: flex; flex-direction: column; background: #f8fafc; overflow: hidden; min-width: 0; min-height: 0; }
.threads-header { padding: 12px 16px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; border-bottom: 0.5px solid var(--line); display:flex; justify-content: space-between; flex-shrink: 0;}
.threads-list { flex: 1; overflow-y: auto; overflow-x: hidden; }
.thread-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
  cursor: pointer;
  width: 100%;
}
.thread-item:hover, .thread-item.active { background: white; }
.thread-topline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.thread-copy { display: flex; flex-direction: column; min-width: 0; }
.thread-title { font-weight: 600; font-size: 0.9rem; color: var(--bg-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-sub { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread-preview { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.thread-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 0.5px solid var(--line);
}
.thread-header { display: flex; justify-content: space-between; align-items: center; }
.thread-name { font-weight: 600; font-size: 0.9rem; color: var(--bg-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px;}
.thread-time { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; }
.thread-body { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.messages-area { display: flex; flex-direction: column; position: relative; background: #efeae2; overflow: hidden; min-width: 0; min-height: 0;}
.messages-feed { flex: 1; padding: 16px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; overflow-x: hidden; }
.empty-feed { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); text-align: center; }

.message-bubble { max-width: 80%; display: flex; flex-direction: column; position: relative; }
.message-mine { align-self: flex-end; }
.message-their { align-self: flex-start; }
.message-content { padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; box-shadow: 0 1px 1px rgba(0,0,0,0.05); word-wrap: break-word; overflow:hidden;}
.message-item { max-width: min(86%, 640px); display: flex; flex-direction: column; gap: 6px; }
.message-item.incoming { align-self: flex-start; }
.message-item.outgoing { align-self: flex-end; }
.message-meta-rich { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--text-muted); }
.message-author-block { display: flex; flex-direction: column; min-width: 0; }
.message-context { font-size: 0.68rem; color: var(--text-light); }
.message-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
}
.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.message-body { padding: 10px 12px; border-radius: 10px; word-break: break-word; }
.message-item.incoming .message-body { background: #ffffff; color: var(--text-main); border-top-left-radius: 2px; }
.message-item.outgoing .message-body { background: #d9fdd3; color: var(--bg-dark); border-top-right-radius: 2px; }
.message-media {
  width: clamp(160px, 32vw, 320px);
  max-width: 100%;
  max-height: 240px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 2px;
  display: block;
  background: #e2e8f0;
}
.message-media-placeholder {
  width: clamp(160px, 32vw, 320px);
  max-width: 100%;
  border-radius: 8px;
  background: #e2e8f0;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 10px;
}
.message-mine .message-content { background: #d9fdd3; color: var(--bg-dark); border-top-right-radius: 0; }
.message-their .message-content { background: white; color: var(--text-main); border-top-left-radius: 0; }
.message-meta { font-size: 0.65rem; color: var(--text-light); text-align: right; margin-top: 2px;}

.message-composer { position: absolute; bottom: 0; left: 0; right: 0; background: #f0f2f5; padding: 12px 16px; display: flex; gap: 12px; align-items: center; border-top: 0.5px solid var(--line); }
.composer-inputs { flex: 1; display: flex; gap: 8px; background: white; border-radius: 8px; padding: 8px 12px; }
.composer-inputs input, .composer-inputs textarea { border: none; background: transparent; font-family: inherit; font-size: 0.95rem; resize: none; color: var(--text-main); }
.composer-inputs input:focus, .composer-inputs textarea:focus { outline: none; }
.composer-inputs input { width: 140px; border-right: 0.5px solid var(--line); margin-right: 8px;}
.composer-inputs textarea { flex: 1; }
.btn-send {
  background: var(--primary);
  color: white;
  min-width: 132px;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  white-space: nowrap;
  font-weight: 600;
}
.btn-send:hover { background: var(--primary-hover); }

/* -----------------------------------------
   Stats Area (Right Column)
----------------------------------------- */
.col-right { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.panel-right { overflow-y: auto; }

.stats-grid { display: flex; flex-direction: column; gap: 8px; }
.stat-card { background: white; padding: 12px 16px; border-radius: 8px; border: 0.5px solid var(--line); display: flex; justify-content: space-between; align-items: center;}
.stat-card span { font-size: 0.8rem; color: var(--text-main); font-weight: 500;}
.stat-card strong { font-size: 1.1rem; font-weight: 800; color: var(--bg-dark); }

.widget { background: white; border-radius: 8px; border: 0.5px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.widget.collapsible-section { flex: 0 0 auto; min-height: 0; }
.collapse-header {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.collapse-chevron {
  transition: transform 0.2s ease;
  color: #1f2937;
}
.collapsible-section.is-collapsed .collapse-chevron {
  transform: rotate(-90deg);
}
.collapse-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.collapse-content > * {
  border-top: 0.5px solid var(--line);
}
.compact-list { flex: 1; display: flex; flex-direction: column;}
.collapse-content .compact-list { max-height: 260px; overflow-y: auto; }
.compact-item { padding: 10px 16px; border-bottom: 0.5px solid var(--line); display: flex; flex-direction: column; font-size: 0.8rem;}
.compact-item-title { font-weight: 600; color: var(--bg-dark); }
.compact-item-sub { color: var(--text-muted); margin-top: 2px;}

.empty-state { text-align: center; color: var(--text-light); padding: 24px 0; font-size: 0.85rem; }

/* -----------------------------------------
   Modals
----------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(2px);}
.modal { background: white; padding: 24px; border-radius: 12px; width: 100%; max-width: 400px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 1.1rem; font-weight: 700; color: var(--bg-dark);}
.btn-close { background: transparent; border: none; cursor: pointer; font-size: 1.2rem; color: var(--text-muted); padding: 4px;}

/* QR modal visual aligned with Evolution Manager style */
#qrCard .modal {
  background: #021713;
  border: 1px solid #0a3b33;
  color: #e8f4f2;
}
#qrCard .modal-header {
  color: #e8f4f2;
}
#qrCard .btn-close {
  color: #a5c3be;
}
#qrCard .muted {
  color: #a5c3be;
}
#qrCard .qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 6px;
  background: #ffffff;
}
#qrCard #qrImage {
  display: block;
  width: min(360px, 88vw);
  height: auto;
  background: #ffffff;
  image-rendering: pixelated;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.form-grid { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px;}
.form-grid label { font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; display: block; color: var(--text-main);}
.form-grid input { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 6px; font-size: 0.9rem;}
.form-grid input:focus { outline: none; border-color: var(--primary);}

/* App.js Toast Alerts */
.toast { position: fixed; top: 20px; right: 20px; padding: 12px 24px; border-radius: 8px; background: var(--bg-dark); color: white; font-size: 0.9rem; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: fade-in 0.3s ease; }
.toast.error { background: var(--error); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* QR Status overrides inline app.js styles */
#historyStatus { background: var(--warning-bg); border: 1px solid #fcd34d; padding: 10px 16px; font-size: 0.85rem; color: #92400e;}

@media (max-width: 1024px) {
  .panel-right,
  #rightResizer { display: none; }
}

@media (max-width: 820px) {
  .login-view {
    padding: 0;
  }
  .login-shell {
    min-height: 100vh;
    border-radius: 0;
    border: none;
    grid-template-columns: 1fr;
  }
  .login-hero {
    padding: 30px 22px 24px;
    gap: 14px;
  }
  .login-hero h2 {
    font-size: 1.5rem;
  }
  .login-hero p {
    font-size: 0.92rem;
  }
  .hero-highlights {
    gap: 8px;
  }
  .hero-highlights li {
    font-size: 0.88rem;
  }
  .login-card {
    padding: 30px 22px 26px;
  }
  body { height: 100vh; overflow: hidden; }
  .dashboard-layout { height: 100dvh; overflow: hidden; }
  .dashboard-grid {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 0;
    flex: 1;
  }
  .top-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0 10px;
    gap: 8px;
  }
  .brand-logo-nav { width: 40px; height: 40px; }
  .nav-brand {
    font-size: 0.86rem;
    min-width: 0;
  }
  .nav-actions {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .user-pill { display: none; }
  .btn-small { padding: 4px 7px; font-size: 0.72rem; }
  .resizer { display: none; }
  .panel {
    border: none;
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
  }
  .panel-left,
  .panel-center {
    width: 100% !important;
    max-width: none;
    min-width: 0;
    display: none;
  }
  #dashboardView[data-mobile-view="sellers"] .panel-left { display: flex; }
  #dashboardView[data-mobile-view="threads"] .panel-center,
  #dashboardView[data-mobile-view="chat"] .panel-center { display: flex; }
  .panel-right { display: none; }
  .content-header { display: none; }
  .mobile-threads-header,
  .mobile-chat-header {
    display: none;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 0.5px solid var(--line);
    background: #ffffff;
    flex-shrink: 0;
  }
  #dashboardView[data-mobile-view="threads"] .mobile-threads-header { display: flex; }
  #dashboardView[data-mobile-view="chat"] .mobile-chat-header { display: flex; }
  .chat-workspace {
    display: flex;
    flex: 1;
    min-height: 0;
    height: auto;
  }
  .threads-sidebar,
  .messages-area {
    display: none;
    flex: 1;
    min-height: 0;
    border: none;
  }
  #dashboardView[data-mobile-view="threads"] .threads-sidebar { display: flex; }
  #dashboardView[data-mobile-view="chat"] .messages-area { display: flex; }
  .message-item { max-width: 94%; }
  .message-media,
  .message-media-placeholder { width: min(260px, 100%); max-height: 200px; }
  .messages-feed { padding: 12px; padding-bottom: 90px; }
  .message-composer {
    padding: 10px 12px;
    gap: 8px;
  }
  .composer-inputs input { width: 120px; }
  .btn-send { min-width: 112px; padding: 0 14px; }
  .seller-list { max-height: none; }
  .modal { width: 90%; }
}
