/* Модуль «Входящие» — Coldy Unibox */

.tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  margin-left: 2px;
}

.ib-bell {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  border: 1px solid #fde68a; background: var(--amber-soft); color: var(--amber);
}
.ib-bell:hover { background: #fef3c7; }
.ib-bell .icon { width: 16px; height: 16px; }
.ib-bell-count { font-size: 11px; font-weight: 800; }
.ib-notif-list { display: flex; flex-direction: column; gap: 6px; max-height: 54vh; overflow-y: auto; }
.ib-notif {
  display: flex; align-items: flex-start; gap: 9px; text-align: left;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  padding: 9px 11px; width: 100%;
}
.ib-notif:hover { border-color: var(--border-strong); }
.ib-notif.is-unread { background: var(--amber-soft); border-color: #fde68a; }
.ib-notif .icon { color: var(--amber); width: 15px; height: 15px; margin-top: 2px; flex: none; }
.ib-notif-main { min-width: 0; }
.ib-notif-text { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.ib-notif-time { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.ib-page { display: flex; flex-direction: column; gap: 12px; }
.ib-page-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 50vh; color: var(--muted);
}

/* ---------- панель управления ---------- */
.ib-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ib-title { display: flex; align-items: center; gap: 9px; }
.ib-title h2 { font-size: 20px; letter-spacing: -0.02em; }
.ib-title-icon {
  width: 34px; height: 34px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(180deg, #5b52ea, var(--accent)); color: #fff;
}
.ib-title-icon svg { width: 18px; height: 18px; }
.ib-count {
  background: var(--surface-3); color: var(--muted); border-radius: 999px;
  font-size: 11.5px; font-weight: 750; padding: 2px 8px;
}
.ib-toolbar-spacer { flex: 1; }
.ib-search .input { min-width: 230px; }
.ib-toolbar .select { height: 36px; min-height: 36px; width: auto; min-width: 150px; }

.ib-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ib-conn {
  display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted);
  margin-top: -4px;
}
.ib-conn .icon { width: 13px; height: 13px; color: var(--green); }
.ib-conn-sep { color: var(--muted-2); }
.ib-conn.is-warn {
  background: var(--amber-soft); color: #78350f; border-radius: 8px;
  padding: 6px 10px; margin-top: 0;
}
.ib-conn.is-warn .icon { color: var(--amber); }
.ib-conn.is-warn .btn { margin-left: auto; }
.ib-chip {
  height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.ib-chip:hover { background: var(--surface-2); border-color: var(--border-strong); }
.ib-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ib-check {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px;
  color: var(--muted); cursor: pointer; white-space: nowrap;
}
.ib-check input { width: 15px; height: 15px; accent-color: var(--accent); }

/* ---------- раскладка ---------- */
.ib-layout {
  display: grid; grid-template-columns: 348px minmax(0, 1fr);
  height: calc(100vh - 272px); min-height: 520px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
  overflow: hidden;
}
.ib-list {
  border-right: 1px solid var(--border); overflow-y: auto; background: #fbfcfe;
}
.ib-list-empty { padding: 40px 22px; text-align: center; }
.ib-list-more { padding: 14px; text-align: center; font-size: 12px; color: var(--muted); }

.ib-item {
  width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
  position: relative; transition: background .12s;
}
.ib-item:hover { background: #f4f6fc; }
.ib-item.is-active { background: #eef2ff; box-shadow: inset 3px 0 0 var(--accent); }
.ib-item.is-unread { background: #fff; }
.ib-item.is-unread .ib-item-name { font-weight: 750; }
.ib-item.is-unread .ib-item-subject { color: var(--text); font-weight: 650; }
.ib-item-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ib-dot {
  width: 7px; height: 7px; border-radius: 50%; background: transparent; flex: none;
}
.ib-item.is-unread .ib-dot { background: var(--accent); }
.ib-item-name {
  font-size: 13.5px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.ib-item-time { margin-left: auto; font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.ib-item-subject {
  font-size: 12.5px; color: var(--text-2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.ib-item-preview {
  font-size: 12px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ib-item-foot { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; }
.ib-item-spacer { flex: 1; }
.ib-item-campaign {
  font-size: 10.5px; color: var(--muted); background: var(--surface-3);
  border-radius: 4px; padding: 1px 5px; max-width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ib-mini-avatar {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-strong); font-size: 9px; font-weight: 750;
  display: inline-flex; align-items: center; justify-content: center;
}
.ib-sla {
  display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 700;
  color: var(--rose); background: var(--rose-soft); border-radius: 4px; padding: 2px 5px;
}
.ib-sla svg { width: 11px; height: 11px; }

/* ---------- статусы ---------- */
.ib-pill {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700;
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.ib-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .85; }
.ib-pill--amber { background: var(--amber-soft); color: var(--amber); }
.ib-pill--sky { background: var(--sky-soft); color: var(--sky); }
.ib-pill--slate { background: var(--slate-soft); color: #475569; }
.ib-pill--green { background: var(--green-soft); color: var(--green); }
.ib-pill--violet { background: #ede9fe; color: #6d28d9; }
.ib-pill--rose { background: var(--rose-soft); color: var(--rose); }
.ib-pill--muted { background: var(--surface-3); color: var(--muted); }

.ib-status-select {
  height: 32px; min-height: 32px; font-size: 12px; font-weight: 650;
  border-color: transparent; padding-left: 10px; width: auto; min-width: 170px;
}
.ib-status-select.ib-status-amber { background: var(--amber-soft); color: var(--amber); }
.ib-status-select.ib-status-sky { background: var(--sky-soft); color: var(--sky); }
.ib-status-select.ib-status-slate { background: var(--slate-soft); color: #475569; }
.ib-status-select.ib-status-green { background: var(--green-soft); color: var(--green); }
.ib-status-select.ib-status-violet { background: #ede9fe; color: #6d28d9; }
.ib-status-select.ib-status-rose { background: var(--rose-soft); color: var(--rose); }
.ib-status-select.ib-status-muted { background: var(--surface-3); color: var(--muted); }
.ib-assignee-select { height: 32px; min-height: 32px; font-size: 12px; width: auto; min-width: 140px; }

/* ---------- читалка ---------- */
.ib-reader { min-width: 0; display: flex; background: var(--surface); }
.ib-reader-empty {
  margin: auto; text-align: center; color: var(--muted); padding: 30px; max-width: 380px;
}
.ib-empty-art {
  width: 58px; height: 58px; border-radius: 18px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.ib-empty-art svg { width: 28px; height: 28px; }
.ib-empty-title { font-size: 15px; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.ib-empty-text { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ib-reader-inner { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.ib-reader-head {
  padding: 13px 18px 11px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #fcfdff); flex: none;
}
.ib-reader-top { display: flex; align-items: center; gap: 10px; }
.ib-reader-who { min-width: 0; flex: 1; }
.ib-reader-name {
  font-size: 16px; font-weight: 720; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ib-reader-email { font-size: 12px; color: var(--muted); }
.ib-reader-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ib-back { display: none; }
.ib-reader-subject { font-size: 13.5px; font-weight: 650; margin-top: 8px; overflow-wrap: anywhere; }
.ib-reader-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 5px; }
.ib-meta-item {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--muted);
}
.ib-meta-item svg { width: 13px; height: 13px; }
.ib-meta-item.is-ok { color: var(--green); }
.ib-meta-item.is-late { color: var(--rose); font-weight: 650; }

.ib-reader-body {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 318px;
}
.ib-thread { overflow-y: auto; padding: 18px; min-width: 0; background: #fbfcfe; }
.ib-messages { display: flex; flex-direction: column; gap: 12px; }
.ib-msg {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; max-width: 88%; align-self: flex-start; box-shadow: var(--shadow-sm);
}
.ib-msg.is-ours { align-self: flex-end; background: var(--accent-soft); border-color: #dbe2ff; }
.ib-msg-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.ib-msg-from { font-size: 12px; font-weight: 750; color: var(--text-2); }
.ib-msg-addr { font-size: 10.5px; color: var(--muted); }
.ib-msg-date { margin-left: auto; font-size: 10.5px; color: var(--muted-2); }
.ib-msg-body { font-size: 13px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ib-msg-body a { color: var(--accent); word-break: break-all; }
.ib-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-attachment {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 7px; color: var(--text-2); text-decoration: none;
}
.ib-attachment:hover { border-color: var(--accent); color: var(--accent); }
.ib-attachment svg { width: 12px; height: 12px; }

/* ---------- композер ---------- */
.ib-composer {
  margin-top: 18px; background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 12px; box-shadow: var(--shadow);
}
.ib-composer-head { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ib-composer-head .icon { color: var(--accent); }
.ib-composer-title { font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); }
.ib-composer-spacer { flex: 1; }
.ib-template { height: 28px; min-height: 28px; font-size: 11.5px; width: auto; min-width: 150px; }
.ib-composer-line { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.ib-composer-line .input, .ib-composer-line .select { height: 30px; min-height: 30px; font-size: 12.5px; }
.ib-composer-line .select { width: auto; max-width: 260px; }
.ib-composer-line .input { flex: 1; }
.ib-composer-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ib-composer-to { font-size: 12.5px; color: var(--text-2); }
.ib-composer textarea {
  width: 100%; min-height: 132px; resize: vertical; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 11px; font-size: 13.5px; line-height: 1.55;
  background: var(--surface-2); margin-top: 2px;
}
.ib-composer textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: #fff; }
.ib-file-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ib-file-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px;
  background: var(--surface-3); border-radius: 6px; padding: 3px 7px; color: var(--text-2);
}
.ib-file-chip svg { width: 12px; height: 12px; }
.ib-file-x { border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 1px; }
.ib-file-x:hover { color: var(--rose); }
.ib-composer-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 9px; }
.ib-sig-hint { font-size: 11px; color: var(--muted-2); max-width: 290px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- правая панель ---------- */
.ib-context {
  border-left: 1px solid var(--border); overflow-y: auto; padding: 14px;
  display: flex; flex-direction: column; gap: 12px; background: #fbfcfe;
}
.ib-card { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 12px; }
.ib-card-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); margin-bottom: 9px;
}
.ib-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ib-client { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.ib-client-name { font-size: 13.5px; font-weight: 700; }
.ib-client-mail { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.ib-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; }
.ib-kv span { color: var(--muted); }
.ib-kv b { font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.ib-kv b.is-danger { color: var(--rose); }
.ib-campaign-name { font-size: 13.5px; font-weight: 700; margin-bottom: 5px; overflow-wrap: anywhere; }
.ib-seq-head { font-size: 11.5px; font-weight: 700; color: var(--text-2); margin: 10px 0 5px; }
.ib-sequence { border-top: 1px solid var(--border); padding: 6px 0; }
.ib-sequence summary { display: flex; gap: 6px; cursor: pointer; list-style: none; align-items: baseline; }
.ib-sequence summary::-webkit-details-marker { display: none; }
.ib-seq-day { font-size: 10px; font-weight: 750; color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 4px; flex: none; }
.ib-seq-subject { font-size: 12px; color: var(--text-2); font-weight: 600; overflow-wrap: anywhere; }
.ib-seq-body { font-size: 11.5px; color: var(--muted); white-space: pre-wrap; margin-top: 5px; padding-left: 2px; max-height: 180px; overflow: auto; }
.ib-hint { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.ib-muted { color: var(--muted); font-size: 12px; }

.ib-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 9px; }
.ib-note { background: var(--amber-soft); border-radius: 8px; padding: 7px 9px; }
.ib-note-head { display: flex; align-items: baseline; gap: 7px; font-size: 10.5px; color: var(--amber); }
.ib-note-head b { font-size: 11px; }
.ib-note-head span { color: #a16207; }
.ib-note-del { margin-left: auto; border: 0; background: transparent; color: #a16207; font-size: 15px; line-height: 1; }
.ib-note-del:hover { color: var(--rose); }
.ib-note-body { font-size: 12px; color: #78350f; white-space: pre-wrap; margin-top: 2px; overflow-wrap: anywhere; }
.ib-note-actions { display: flex; justify-content: flex-end; margin-top: 7px; }
.ib-context textarea { width: 100%; min-height: 62px; font-size: 12.5px; }

.ib-audit-row { display: flex; align-items: baseline; gap: 6px; font-size: 11.5px; padding: 3px 0; border-top: 1px solid var(--border); }
.ib-audit-row:first-of-type { border-top: 0; }
.ib-audit-action { font-weight: 650; color: var(--text-2); }
.ib-audit-user { color: var(--muted); }
.ib-audit-time { margin-left: auto; color: var(--muted-2); font-size: 10.5px; }

/* ---------- настройки ---------- */
.ib-checks { display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--text-2); }
.ib-checks .select { height: 32px; min-height: 32px; width: auto; display: inline-block; margin-left: 4px; }
.ib-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ib-inline .input { flex: 1; min-width: 260px; }
.ib-settings-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ib-tag-map { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ib-tag-row { display: flex; align-items: center; gap: 10px; }
.ib-tag-status { min-width: 170px; }
.ib-tag-row .select { height: 30px; min-height: 30px; font-size: 12px; width: auto; min-width: 200px; }

/* ---------- шаблоны ---------- */
.ib-template-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; }
.ib-template-row {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
}
.ib-template-title { font-size: 13px; font-weight: 700; }
.ib-template-preview { grid-column: 1; font-size: 11.5px; color: var(--muted); white-space: pre-wrap; max-height: 44px; overflow: hidden; }
.ib-template-actions { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 2px; }

/* ---------- аналитика ---------- */
.ib-analytics { display: flex; flex-direction: column; gap: 14px; }
.ib-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ib-kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 14px; box-shadow: var(--shadow-sm);
}
.ib-kpi-value { font-size: 24px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.ib-kpi-value.is-danger { color: var(--rose); }
.ib-kpi-label { font-size: 12px; font-weight: 650; color: var(--text-2); margin-top: 2px; }
.ib-kpi-hint { font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }
.ib-analytics .ib-card { padding: 14px 16px; }
.ib-analytics .ib-card-title { margin-bottom: 12px; }
.ib-alerts { display: flex; flex-direction: column; gap: 6px; }
.ib-alert {
  display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px;
  border-radius: 8px; padding: 8px 10px; line-height: 1.45;
}
.ib-alert svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.ib-alert--danger { background: var(--rose-soft); color: #881337; }
.ib-alert--warning { background: var(--amber-soft); color: #78350f; }
.ib-funnel { display: flex; flex-direction: column; gap: 7px; }
.ib-funnel-row { display: flex; align-items: center; gap: 10px; }
.ib-funnel-label { width: 160px; font-size: 12px; color: var(--text-2); flex: none; }
.ib-funnel-bar { flex: 1; height: 9px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ib-funnel-fill { height: 100%; border-radius: 999px; transition: width .3s; }
.ib-fill--amber { background: #f59e0b; }
.ib-fill--sky { background: #0ea5e9; }
.ib-fill--slate { background: #94a3b8; }
.ib-fill--green { background: #10b981; }
.ib-fill--violet { background: #8b5cf6; }
.ib-fill--rose { background: #fb7185; }
.ib-fill--muted { background: #cbd5e1; }
.ib-funnel-count { width: 38px; text-align: right; font-size: 12px; font-weight: 700; color: var(--text-2); }
.ib-analytics .table td, .ib-analytics .table th { font-size: 12px; }
.ib-report { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ib-report-list { display: flex; flex-direction: column; gap: 4px; }
.ib-report-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px;
  text-align: left; border: 0; border-radius: 7px; background: transparent; padding: 6px 7px;
}
.ib-report-row:hover { background: var(--surface-2); }
.ib-report-row.is-overdue { background: #fff5f6; }
.ib-report-name { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-report-subject { grid-column: 1; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-report-time { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 10.5px; color: var(--muted-2); }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .topbar { gap: 12px; }
  .brand-text { display: none; }
  .tab { padding: 7px 10px; }
  .top-actions { gap: 7px; }
}
@media (max-width: 1280px) {
  .ib-reader-body { grid-template-columns: minmax(0, 1fr) 286px; }
  .ib-layout { grid-template-columns: 310px minmax(0, 1fr); }
}
@media (max-width: 1080px) {
  .ib-reader-body { grid-template-columns: 1fr; }
  .ib-context {
    border-left: 0; border-top: 1px solid var(--border);
    max-height: 42%; display: grid; grid-template-columns: 1fr 1fr; align-content: start;
  }
  .ib-context .ib-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .ib-layout { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .ib-list { border-right: 0; max-height: none; }
  .ib-reader { display: none; }
  .ib-layout.is-reading .ib-list { display: none; }
  .ib-layout.is-reading .ib-reader { display: flex; height: calc(100vh - 190px); min-height: 520px; }
  .ib-back { display: inline-flex; }
  .ib-reader-actions { width: 100%; justify-content: flex-start; }
  .ib-reader-top { flex-wrap: wrap; }
  .ib-msg { max-width: 100%; }
  .ib-search .input { min-width: 160px; }
  .ib-context { grid-template-columns: 1fr; max-height: none; }
  .ib-report { grid-template-columns: 1fr; }
  .ib-toolbar .ib-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
}

@media (max-width: 560px) {
  .view { padding: 14px 12px 28px; }
  .ib-title h2 { font-size: 17px; }
  .ib-toolbar .select, .ib-toolbar .btn { font-size: 12px; }
  .ib-kpis { grid-template-columns: 1fr 1fr; }
  .ib-funnel-label { width: 110px; }
  .ib-composer-line { flex-wrap: wrap; }
  .ib-composer-line .select { max-width: 100%; }
  .ib-composer-foot .ib-sig-hint { display: none; }
}
