/* ROTATOR Mobile UI — Dark theme, mobile-first, responsive touch design */
:root {
  --bg:        #0f1117;
  --bg2:       #1a1d27;
  --bg3:       #252836;
  --border:    #2e3245;
  --accent:    #4f8ef7;
  --green:     #3ecf8e;
  --red:       #f04d4d;
  --yellow:    #f5a623;
  --text:      #e2e8f0;
  --dim:       #8a94a6;
  --radius:    10px;
  --font:      system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
body {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  height: 100dvh;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 52px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  color: var(--accent);
}
.header-active-account {
  font-size: 12px;
  background: var(--bg3);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.badge-ok      { background: rgba(62,207,142,.15); color: var(--green); border: 1px solid var(--green); }
.badge-error   { background: rgba(240,77,77,.15);  color: var(--red);   border: 1px solid var(--red);   }
.badge-unknown { background: var(--bg3); color: var(--dim); border: 1px solid var(--border); }

/* TABS NAV (min 48px touch target) */
#tabs {
  display: flex;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.tab {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--dim);
  cursor: pointer;
  transition: color .15s, background .15s;
  border-bottom: 3px solid transparent;
}
.tab-icon { font-size: 17px; }
.tab-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.tab:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.tab.active { color: var(--accent); border-bottom: 3px solid var(--accent); }

/* CONTENT */
.tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.tab-content.active { display: flex; }

/* BANNERS */
.banner {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.banner-info {
  background: rgba(79,142,247,.12);
  border-color: rgba(79,142,247,.3);
  color: var(--text);
}
.banner-warn {
  background: rgba(245,166,35,.15);
  border-color: rgba(245,166,35,.4);
  color: #fff;
}
.banner-action-btn {
  margin-top: 8px;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  min-height: 38px;
}

/* CARDS */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.card h3 {
  font-size: 12px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.card-header-flex h3 { margin-bottom: 0; }
.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(46,50,69,0.5);
}
.card-row:last-child { border-bottom: none; }
.label {
  font-size: 13px;
  color: var(--dim);
  min-width: 90px;
}
.value {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
  word-break: break-all;
}
.dim { color: var(--dim); font-size: 13px; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}
.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num { font-size: 18px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 10px; color: var(--dim); text-transform: uppercase; }
.stat-ok .stat-num { color: var(--green); }
.stat-err .stat-num { color: var(--red); }
.stat-warn .stat-num { color: var(--yellow); }

/* STATUS INDICATORS */
.ok    { color: var(--green); }
.err   { color: var(--red); }
.warn  { color: var(--yellow); }

/* BUTTONS (min 44px height for main actions) */
button { cursor: pointer; font-family: inherit; }
.btn-sm {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-action {
  min-height: 44px;
  padding: 8px 16px;
  font-weight: 600;
}
.btn-primary {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.btn-primary:hover { opacity: .88; }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; }

/* CHAT */
.chat-header-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 4px 6px;
  background: var(--bg2);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.chat-pill {
  background: var(--bg3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--accent);
}
#chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 2px;
  min-height: 250px;
}
.msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.msg-user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.msg-bot {
  background: var(--bg3);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.04);
}
.msg-err {
  background: rgba(240,77,77,.15);
  color: var(--red);
  border: 1px solid var(--red);
  align-self: center;
  font-size: 13px;
}
#chat-status {
  font-size: 12px;
  color: var(--dim);
  padding: 4px 0;
  text-align: center;
  min-height: 18px;
}
#chat-input-row {
  display: flex;
  gap: 8px;
  padding-top: 6px;
  flex-shrink: 0;
}
#chat-input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
  resize: none;
  font-family: var(--font);
  min-height: 48px;
}
#chat-input:focus { outline: none; border-color: var(--accent); }
#btn-send {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#btn-send:disabled { opacity: .4; cursor: not-allowed; }

/* ACCOUNTS */
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.toolbar-title { font-size: 12px; color: var(--dim); text-transform: uppercase; font-weight: 600; }
#accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-card.active-account {
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(62,207,142,0.1);
}
.account-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.account-info { flex: 1; min-width: 0; }
.account-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.account-name { font-weight: 600; font-size: 14px; }
.account-alias { font-size: 12px; color: var(--accent); }
.account-meta { font-size: 12px; color: var(--dim); margin-top: 2px; }
.account-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid rgba(46,50,69,0.4);
}
.account-action-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.unsaved-box {
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
}

/* QUOTAS */
.quota-sections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quota-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.quota-table th {
  text-align: left;
  color: var(--dim);
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  white-space: nowrap;
}
.quota-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.quota-table tr:last-child td { border-bottom: none; }
.null-val { color: var(--dim); font-style: italic; }

/* AUDIT TABLE */
.audit-table-wrapper {
  overflow-x: auto;
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-family: monospace;
}
.audit-table th {
  text-align: left;
  color: var(--dim);
  padding: 6px;
  background: var(--bg3);
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--border);
}
.audit-table td {
  padding: 6px;
  border-bottom: 1px solid rgba(46,50,69,0.3);
  white-space: nowrap;
}

/* LOG */
.log-box {
  background: var(--bg3);
  border-radius: 8px;
  padding: 10px;
  font-size: 11px;
  font-family: monospace;
  max-height: 250px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--dim);
}

/* LOADING */
.loading { color: var(--dim); text-align: center; padding: 20px; font-size: 13px; }

/* TRUST BADGES */
.trust-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: .3px;
  cursor: default;
  white-space: nowrap;
}
.trust-confirmed {
  background: rgba(62,207,142,.12);
  color: #3ecf8e;
  border: 1px solid rgba(62,207,142,.3);
}
.trust-local {
  background: rgba(245,166,35,.12);
  color: #f5a623;
  border: 1px solid rgba(245,166,35,.3);
}
.trust-unavail {
  background: rgba(107,114,128,.15);
  color: #9ca3af;
  border: 1px solid rgba(107,114,128,.25);
}

/* LEGEND BOX */
.legend-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--dim);
  line-height: 2;
}
.legend-title { font-weight: 600; display: block; margin-bottom: 2px; color: var(--text); }

/* NOTICE */
.notice {
  background: rgba(79,142,247,.08);
  border: 1px solid rgba(79,142,247,.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--dim);
}
.notice strong { color: var(--yellow); }
.notice code { background: var(--bg3); padding: 1px 5px; border-radius: 4px; font-size: 11px; color: var(--text); }

/* GATEWAY SPECIFIC STYLES */
.badge-gateway {
  background: rgba(79,142,247,.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: .5px;
}

.header-status-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.pill-status {
  background: var(--bg3);
  border: 1px solid var(--border);
}
.pill-info {
  background: rgba(79,142,247,.1);
  color: var(--text);
  border: 1px solid rgba(79,142,247,.25);
}
.status-ok { color: var(--green); border-color: rgba(62,207,142,.3); }
.status-err { color: var(--red); border-color: rgba(240,77,77,.3); }

.pill-mini {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}
.pill-ok { background: rgba(62,207,142,.15); color: var(--green); }
.pill-err { background: rgba(240,77,77,.15); color: var(--red); }
.pill-active { background: var(--accent); color: #fff; }

.chat-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg2);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 12px;
}
.chat-pill-code {
  font-family: monospace;
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 11px;
}

.msg-sys {
  align-self: center;
  background: none;
  border: none;
  font-size: 11px;
  color: var(--dim);
  font-style: italic;
  padding: 4px 8px;
}

.btn-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  min-height: 48px;
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn-send:hover { opacity: .9; }
.btn-send:disabled { opacity: .4; cursor: not-allowed; }

/* ── BLOQUE C: CONVERSATION MANAGER & MODEL CONTROLS ── */
.chat-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--bg2);
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.chat-meta-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.select-sm {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  max-width: 200px;
}
.select-sm:focus { border-color: var(--accent); }
.select-sm option { background: var(--bg2); color: var(--text); }

.mode-switch {
  display: inline-flex;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.mode-btn {
  background: none;
  border: none;
  color: var(--dim);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.active {
  background: var(--accent);
  color: #fff;
}
#mode-auto.active {
  background: #f59e0b;
  color: #000;
  font-weight: 700;
}

.chat-workspace-row {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.chat-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all .2s ease;
}
.chat-sidebar:not(.is-open) {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.input-sm {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  color: var(--text);
  font-size: 12px;
  outline: none;
}
.input-sm:focus { border-color: var(--accent); }

.conv-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}
.conv-item {
  background: var(--bg3);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  text-align: left;
}
.conv-item:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
.conv-item.active {
  border-color: var(--accent);
  background: rgba(79,142,247,0.12);
}
.conv-item-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.conv-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--dim);
}
.conv-tag {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-primary:hover { opacity: .9; }

@media (max-width: 768px) {
  .chat-sidebar {
    position: absolute;
    top: 110px;
    left: 12px;
    right: 12px;
    bottom: 20px;
    width: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  }
}

/* ── DECK STATS & UNIFIED ACCOUNTS/QUOTAS ── */
.deck-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dim);
}
.stat-gemini .stat-num { color: var(--green); }
.stat-claude .stat-num { color: #c084fc; }

.deck-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deck-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .15s;
}
.deck-card.is-active {
  border-color: var(--accent);
  background: rgba(79,142,247,0.06);
}
.deck-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.deck-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-order-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.deck-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.deck-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chip-quota {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.chip-ok {
  background: rgba(62,207,142,.12);
  color: var(--green);
  border-color: rgba(62,207,142,.25);
}
.chip-wait {
  background: rgba(245,166,35,.15);
  color: #fbbf24;
  border-color: rgba(245,166,35,.35);
}
.deck-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 8px;
}

.btn-mini-act {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-mini-act:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--text);
}
.btn-mini-act.btn-use {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-mini-act.btn-exhaust {
  color: #f87171;
  border-color: rgba(248,113,113,.3);
}
.btn-mini-act.btn-exhaust:hover {
  background: rgba(248,113,113,.15);
}

/* MODALS */
.deck-modal {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  width: 90%;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.7);
}
.deck-modal::backdrop {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg3);
}
.modal-header h3 { font-size: 14px; margin: 0; }
.btn-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 16px;
  cursor: pointer;
}
.modal-body { padding: 14px 16px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}
.bulk-textarea {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: monospace;
  font-size: 12px;
  padding: 8px;
  resize: vertical;
  outline: none;
}
.bulk-textarea:focus { border-color: var(--accent); }
.bulk-preview {
  margin-top: 6px;
  font-size: 12px;
}
.bulk-preview.ok { color: var(--green); }
.bulk-preview.err { color: var(--red); }

/* SIDEBAR CONVERSATION ITEM ENHANCEMENT */
.conv-item {
  display: flex;
  flex-direction: column;
  position: relative;
}
.conv-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-del-conv {
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.3;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity .15s, background .15s;
}
.conv-item:hover .btn-del-conv { opacity: 0.8; }
.btn-del-conv:hover {
  opacity: 1;
  background: rgba(240,77,77,.2);
}


