@layer components {
  .ticket-attachment-card {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25em 0.4em;
    padding: 0.35em 0.6em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: var(--font-size-sm, 0.875rem);
    text-decoration: none;
    color: inherit;
    vertical-align: middle;
    max-width: 100%;
  }

  .ticket-attachment-card--rendered:hover {
    background: #e9ecef;
    border-color: #adb5bd;
  }

  .ticket-attachment-card__state {
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    color: white;
  }

  .ticket-attachment-card__state--open { background: #ce352c; }
  .ticket-attachment-card__state--classified,
  .ticket-attachment-card__state--assigned { background: #1ba1e2; }
  .ticket-attachment-card__state--in_progress { background: #60a917; }
  .ticket-attachment-card__state--finished,
  .ticket-attachment-card__state--closed { background: #1c3faa; }

  .ticket-attachment-card__description {
    flex-basis: 100%;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ticket-prompt-menu-item {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    padding: 0.25em 0;
    width: 100%;
  }

  .ticket-prompt-menu-item__header {
    display: flex;
    align-items: center;
    gap: 0.4em;
  }

  .ticket-prompt-menu-item__header .svg-icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
  }

  .ticket-prompt-menu-item__description {
    color: #6c757d;
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ticket-prompt-menu-item__meta {
    display: flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8em;
    color: #6c757d;
  }

  .ticket-prompt-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
  }

  .ticket-prompt-author::before {
    content: "·";
    margin-right: 0.3em;
  }

  .ticket-prompt-state {
    font-size: 0.8em;
    font-weight: 600;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    color: white;
    margin-left: auto;
  }

  .ticket-prompt-state--open { background: #ce352c; }
  .ticket-prompt-state--classified,
  .ticket-prompt-state--assigned { background: #1ba1e2; }
  .ticket-prompt-state--in_progress { background: #60a917; }
  .ticket-prompt-state--finished,
  .ticket-prompt-state--closed { background: #1c3faa; }
}
