@layer components {
  .inbox-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3);
  }
  .inbox-toolbar__caption {
    font-size: var(--fs-xs); font-weight: var(--fw-heavy);
    letter-spacing: .06em; text-transform: uppercase; color: var(--text-2);
  }
  .inbox-list { display: grid; gap: var(--sp-2); }
  .inbox-list[aria-busy="true"] { opacity: .5; pointer-events: none; }

  .inbox-item {
    position: relative;
    display: grid; gap: 3px;
    width: 100%; min-width: 0;
    padding: 14px var(--sp-4) 14px 38px;
    text-align: left;
    border: 1.5px solid var(--line); border-radius: var(--r-l);
    background: var(--surface);
    cursor: pointer;
    transition: background var(--t-base), border-color var(--t-base), transform var(--t-fast) var(--spring);
  }
  .inbox-item::before {
    content: ""; position: absolute; left: 16px; top: 20px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-3); opacity: .5;
  }
  .inbox-item:active { transform: scale(.98); }
  @media (hover: hover) { .inbox-item:hover { border-color: var(--line-strong); background: var(--surface-2); } }

  .inbox-item[data-unread="true"] {
    border-color: color-mix(in srgb, var(--brand) 24%, transparent);
    background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  }
  .inbox-item[data-unread="true"]::before { background: var(--brand); opacity: 1; box-shadow: 0 0 0 4px var(--brand-soft); }

  .inbox-item__title { font-weight: var(--fw-bold); line-height: 1.3; overflow-wrap: anywhere; }
  .inbox-item__body { font-size: var(--fs-s); color: var(--text-2); line-height: 1.5; overflow-wrap: anywhere; }
  .inbox-item__date { margin-top: 4px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--text-2); font-variant-numeric: tabular-nums; }
}
