.inbox-widget {
  --inbox-ink: #211a29;
  --inbox-muted: #746e7a;
  --inbox-border: #eae7eb;
  --inbox-accent: #f53e6a;
  width: 100%;
  color: var(--inbox-ink);
  background: #fff;
  border: 1px solid #ded9df;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 90px #211a2910;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.015em;
}
.inbox-widget *,
.inbox-widget *::before,
.inbox-widget *::after {
  box-sizing: border-box;
}
.inbox-widget button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.inbox-widget button:focus-visible {
  outline: 2px solid var(--inbox-accent);
  outline-offset: -3px;
}
.inbox-list:focus-visible {
  outline: 2px solid var(--inbox-accent);
  outline-offset: -3px;
}
.inbox-topbar {
  display: flex;
  align-items: center;
  gap: 42px;
  min-height: 60px;
  padding: 0 28px;
  border-bottom: 1px solid var(--inbox-border);
}
.inbox-brand {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -1.2px;
}
.inbox-brand::after {
  content: ".";
  color: var(--inbox-accent);
}
.inbox-navigation {
  font-size: 11px;
  color: var(--inbox-muted);
  letter-spacing: 0.02em;
}
.inbox-demo-label {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.025em;
  color: #706775;
}
.inbox-demo-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--inbox-accent);
}
.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 28px 18px;
  gap: 12px;
}
.inbox-title-line {
  display: flex;
  align-items: center;
  gap: 9px;
}
.inbox-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  font-weight: 700;
}
.inbox-count {
  color: var(--inbox-accent);
  font-size: 15px;
  font-weight: 600;
}
.inbox-workspace {
  font-size: 11px;
  color: var(--inbox-muted);
}
.inbox-filters {
  display: flex;
  gap: 22px;
  padding: 0 28px;
  border-bottom: 1px solid var(--inbox-border);
  flex-wrap: wrap;
}
.inbox-filter {
  padding: 12px 2px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--inbox-muted) !important;
  font-size: 12px !important;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.inbox-filter:hover {
  color: var(--inbox-ink) !important;
}
.inbox-filter[aria-pressed="true"] {
  color: var(--inbox-ink) !important;
  border-bottom-color: var(--inbox-accent);
  font-weight: 650;
}
.inbox-body {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.4fr);
}
.inbox-list {
  min-width: 0;
  max-height: 620px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border-right: 1px solid var(--inbox-border);
  background: #fdfcfd;
}
.inbox-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 23px 21px;
  border: 0;
  border-bottom: 1px solid var(--inbox-border);
  background: transparent;
  text-align: left;
  transition: background 0.2s;
}
.inbox-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
}
.inbox-row:hover {
  background: #f9f5f7;
}
.inbox-row[aria-pressed="true"] {
  background: #fff2f5;
}
.inbox-row[aria-pressed="true"]::before {
  background: var(--inbox-accent);
}
.inbox-avatar {
  display: flex;
  flex: 0 0 29px;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid #e3dce2;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  color: #7a6d79;
}
.inbox-row-content {
  display: block;
  min-width: 0;
  flex: 1;
}
.inbox-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.inbox-customer-name {
  font-size: 13px;
  font-weight: 650;
  min-width: 0;
  overflow-wrap: anywhere;
}
.inbox-time {
  color: #948c96;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.inbox-channel {
  display: block;
  margin: 3px 0 8px;
  font-size: 10px;
  color: var(--inbox-muted);
}
.inbox-preview {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.6;
  color: #625b66;
}
.inbox-state {
  display: inline-block;
  margin-top: 12px;
  color: #786876;
  font-size: 10px;
  line-height: 1.5;
}
.inbox-state::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 5px 2px 0;
  border-radius: 50%;
  background: #b09baa;
}
.inbox-row[aria-pressed="true"] .inbox-state {
  color: #b83051;
}
.inbox-row[aria-pressed="true"] .inbox-state::before {
  background: var(--inbox-accent);
}
.inbox-detail {
  min-width: 0;
  padding: 23px 32px 27px;
}
.inbox-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.inbox-customer-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.inbox-detail-name {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
}
.inbox-reference {
  color: #a297a4;
  font-size: 9px;
  letter-spacing: 0.04em;
}
.inbox-owner {
  display: block;
  margin-top: 4px;
  color: var(--inbox-muted);
  font-size: 10px;
}
.inbox-detail-state {
  flex-shrink: 0;
  padding: 3px 7px;
  color: #bd3456;
  background: #fff0f3;
  border-radius: 3px;
  font-size: 10px;
}
.inbox-detail-headline {
  margin: 24px 0 23px;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.55;
  letter-spacing: -0.04em;
}
.inbox-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 23px;
}
.inbox-event {
  position: relative;
  padding: 0 0 21px 19px;
  border-left: 1px solid var(--inbox-border);
}
.inbox-event::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5bbc7;
  box-shadow: 0 0 0 4px #fff;
}
.inbox-event:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.inbox-event:last-child::before {
  background: var(--inbox-accent);
}
.inbox-event-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.inbox-event-label {
  color: #918396;
  font-size: 10px;
  font-weight: 600;
}
.inbox-event-time {
  font-size: 9px;
  color: #a297a4;
  font-variant-numeric: tabular-nums;
}
.inbox-event-title {
  margin: 6px 0 4px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}
.inbox-event-body {
  margin: 0;
  font-size: 11px;
  color: var(--inbox-muted);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.inbox-original {
  margin: 8px 0;
  padding: 9px 11px;
  border-left: 2px solid #e3dce5;
  background: #faf8fb;
  color: #4a3d50;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.inbox-recording {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid var(--inbox-border);
  border-radius: 4px;
}
.inbox-recording-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  background: var(--inbox-accent);
  border-radius: 50%;
}
.inbox-recording-label {
  font-size: 9px;
  white-space: nowrap;
  color: var(--inbox-muted);
}
.inbox-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  height: 18px;
  overflow: hidden;
}
.inbox-wave-bar {
  flex: 0 0 2px;
  height: 5px;
  background: #df8d9f;
  border-radius: 1px;
}
.inbox-wave-bar:nth-child(3n) {
  height: 13px;
}
.inbox-wave-bar:nth-child(4n) {
  height: 8px;
}
.inbox-wave-bar:nth-child(7n) {
  height: 17px;
}
.inbox-recording-duration {
  font-size: 9px;
  color: #8b7d8c;
  font-variant-numeric: tabular-nums;
}
.inbox-facts {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  margin: 9px 0 0;
  background: #f8f6f8;
  border-radius: 4px;
}
.inbox-fact {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 7px;
  font-size: 10px;
  line-height: 1.65;
}
.inbox-fact-label {
  color: #918395;
}
.inbox-fact-value {
  margin: 0;
  color: #605264;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.inbox-next {
  padding: 14px 16px;
  border-left: 2px solid var(--inbox-accent);
  background: #fff6f8;
}
.inbox-next-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c13d5b;
}
.inbox-next-label {
  font-size: 9px;
  font-weight: 650;
}
.inbox-next-arrow {
  font-size: 13px;
  line-height: 1;
}
.inbox-next-action {
  display: block;
  margin: 5px 0 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.inbox-next-status {
  display: block;
  font-size: 10px;
  color: #a37a86;
}
.inbox-footnote {
  margin: 0;
  padding: 13px 28px;
  border-top: 1px solid var(--inbox-border);
  color: #968b98;
  font-size: 9px;
  line-height: 1.65;
  word-break: keep-all;
}
@media (max-width: 820px) {
  .inbox-body {
    grid-template-columns: minmax(200px, 0.8fr) minmax(0, 1.4fr);
  }
  .inbox-row {
    padding: 20px 15px;
    gap: 8px;
  }
  .inbox-avatar {
    display: none;
  }
  .inbox-detail {
    padding: 23px;
  }
}
@media (max-width: 580px) {
  .inbox-widget {
    border-radius: 10px;
  }
  .inbox-topbar {
    min-height: 51px;
    padding: 0 16px;
    gap: 12px;
  }
  .inbox-brand {
    font-size: 20px;
  }
  .inbox-navigation {
    display: none;
  }
  .inbox-demo-label {
    font-size: 9px;
  }
  .inbox-toolbar {
    padding: 20px 16px 10px;
  }
  .inbox-title {
    font-size: 20px;
  }
  .inbox-workspace {
    font-size: 10px;
  }
  .inbox-filters {
    padding: 0 16px;
    gap: 0;
    flex-wrap: nowrap;
  }
  .inbox-filter {
    flex: 1;
    padding: 12px 3px;
    white-space: nowrap;
  }
  .inbox-body {
    display: block;
  }
  .inbox-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--inbox-border);
    max-height: 248px;
  }
  .inbox-row {
    padding: 13px 13px 10px;
    border-bottom: 0;
    min-height: 114px;
  }
  .inbox-row:nth-child(odd) {
    border-right: 1px solid var(--inbox-border);
  }
  .inbox-row:only-child {
    grid-column: 1 / -1;
    border-right: 0;
  }
  .inbox-row:nth-child(n + 3) {
    border-top: 1px solid var(--inbox-border);
  }
  .inbox-row-heading {
    gap: 4px;
  }
  .inbox-customer-name {
    font-size: 12px;
  }
  .inbox-time {
    font-size: 9px;
  }
  .inbox-channel {
    margin: 3px 0 5px;
    font-size: 9px;
  }
  .inbox-preview {
    font-size: 10px;
  }
  .inbox-state {
    margin-top: 6px;
    font-size: 9px;
  }
  .inbox-detail {
    padding: 23px 19px;
  }
  .inbox-detail-headline {
    margin-top: 23px;
    font-size: 14px;
  }
  .inbox-detail-name {
    font-size: 15px;
  }
  .inbox-identity {
    min-width: 0;
  }
  .inbox-event-title {
    font-size: 12px;
  }
  .inbox-event-body {
    font-size: 11px;
  }
  .inbox-footnote {
    padding: 12px 16px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inbox-filter,
  .inbox-row {
    transition: none;
  }
}
