/* Inbox title, custom menus, and compact conversation summaries. */
.ci-heading { gap: 14px; flex-wrap: wrap; align-items: center; }
.ci-title-group { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.ci-title-group h1 { flex-shrink: 0; margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -0.65px; line-height: 36px; background: linear-gradient(105deg, #129dff 0%, #a850f4 85%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.ci-choice { min-width: 0; }
.ci-inbox-picker { max-width: 250px; }
.ci-picker-trigger { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; padding: 7px 11px; border: 1px solid #e7e3ef; border-radius: 10px; background: #fff; color: #514b65; font: inherit; font-size: 12px; line-height: 20px; cursor: pointer; box-shadow: 0 1px 3px #29213c05; }
.ci-picker-trigger > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-picker-trigger > svg { flex-shrink: 0; color: #8a819b; transition: transform 140ms ease; }
.ci-picker-trigger[aria-expanded="true"] { border-color: #c9b9ee; background: #faf8ff; }
.ci-picker-trigger[aria-expanded="true"] > svg { transform: rotate(180deg); }
.ci-choice-menu { z-index: 1100; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #e6dff1; border-radius: 12px; background: #fff; box-shadow: 0 12px 36px #30234b1f, 0 2px 6px #30234b0a; color: #302d40; font-family: inherit; }
.ci-choice-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; border-radius: 7px; background: transparent; padding: 9px 10px; text-align: left; font: inherit; font-size: 12px; line-height: 18px; cursor: pointer; }
.ci-choice-menu button > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ci-choice-menu button small { display: block; color: #857c95; font-size: 11px; font-variant-numeric: tabular-nums; }
.ci-choice-menu button[aria-selected="true"] { background: #f4f0ff; color: #6550b8; font-weight: 600; }
.ci-choice-menu button:hover, .ci-choice-menu button:focus-visible { background: #f5f3fa; outline: none; }
.ci-choice-menu button:focus-visible { box-shadow: inset 0 0 0 2px #cfc1ec; }
.ci-list-tools { padding-top: 12px; }
.ci-filters { flex-wrap: nowrap; }
.ci-workspace .ci-choice.ci-more-views { flex: 1.7; width: 0; padding: 0; border: 0; background: transparent; }
.ci-filters .ci-more-views .ci-picker-trigger { min-height: 32px; padding: 5px 7px; gap: 5px; border: 0; border-radius: 6px; box-shadow: none; background: transparent; color: var(--ci-muted); font-size: 11px; }
.ci-filters .ci-more-views.is-active .ci-picker-trigger { background: #ece9ff; color: #5042b8; font-weight: 600; }
.ci-list { background: #fff; }
.ci-list-rows { padding: 3px 0; }
.ci-row { width: calc(100% - 16px); margin: 2px 8px; padding: 9px 10px; border: 1px solid transparent; border-bottom-color: #f0f1f5; border-radius: 0; background: #fff; line-height: 17px; }
.ci-row:hover { background: #f8f8fc; }
.ci-row.is-selected { border-radius: 9px; background: linear-gradient(110deg, #f5f1ff, #fcfbff); border-color: #e4dcf5; box-shadow: 0 1px 3px #69529a08; }
.ci-row > .ci-row-heading { gap: 5px; }
.ci-row > .ci-row-heading:first-child strong { font-size: 13px; font-weight: 600; letter-spacing: -0.1px; }
.ci-row time { font-size: 9px; color: #8b8e9d; flex-shrink: 0; }
.ci-row p { font-size: 12px; line-height: 17px; color: #646879; margin: 3px 0 5px; }
.ci-row > .ci-row-footer { line-height: 16px; gap: 6px; }
.ci-row-context { display: flex; align-items: center; gap: 4px; min-width: 0; color: #8b8599; font-size: 10px; }
.ci-row-context > svg, .ci-row-source { flex-shrink: 0; }
.ci-row-source { font-variant-numeric: tabular-nums; color: #81758f; }
.ci-row-owner { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ci-row .ci-badge { border-radius: 4px; background: #f1f2f6; color: #77798b; font-size: 9px; padding: 0 4px; line-height: 15px; }
.ci-row .ci-badge.danger { background: #fff0ea; color: #ab442b; }
@media (max-width: 740px) {
  .ci-heading { gap: 10px; }
  .ci-title-group { flex-basis: 100%; gap: 12px; }
  .ci-title-group h1 { font-size: 24px; }
  .ci-inbox-picker { max-width: none; flex: 1; }
  .ci-heading .ci-actions { flex-direction: row; justify-content: flex-end; width: 100%; }
  .ci-layout { height: max(360px, calc(100dvh - 190px)); }
}
@media (prefers-reduced-motion: reduce) { .ci-picker-trigger > svg { transition: none; } }

@media (min-width: 1100px) { .ci-layout { grid-template-columns: 320px minmax(0, 1fr); } }
