@layer features {
  .alert-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    gap: 15px;
    align-items: start;
  }

  .alert-filters {
    padding: 12px 0 15px;
  }

  .alert-filters h2 {
    margin: 8px 15px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
  }

  .alert-filters button {
    width: 100%;
    height: 36px;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 0;
    font-size: 11px;
  }

  .alert-filters button.active {
    background: var(--green-soft);
    box-shadow: inset 3px 0 var(--green);
  }

  .alert-filters button b {
    font-size: 11px;
  }

  .alert-feed-header {
    height: 40px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 11px;
  }

  .alert-item {
    margin-bottom: 9px;
    padding: 16px;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 13px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 15px;
  }

  .alert-severity {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--amber);
    background: var(--amber-soft);
    border-radius: 10px;
  }

  .alert-item.critico .alert-severity,
  .alert-item.offline .alert-severity {
    color: var(--red);
    background: var(--red-soft);
  }

  .alert-severity .icon {
    width: 16px;
  }

  .alert-copy > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .alert-copy time {
    color: var(--muted);
    font-size: 10px;
  }

  .alert-copy h2 {
    margin: 8px 0 2px;
    font-size: 16px;
  }

  .alert-copy > strong {
    color: var(--muted);
    font-size: 11px;
  }

  .alert-copy p {
    margin: 7px 0 11px;
    color: var(--muted);
    font-size: 12px;
  }

  .alert-copy footer {
    display: flex;
    gap: 13px;
  }

  .alert-copy footer a {
    padding: 0;
    color: var(--green);
    background: transparent;
    border: 0;
    font-size: 11px;
    font-weight: 600;
  }

  @media (max-width: 680px) {
    .alert-layout {
      display: block;
    }

    .alert-filters {
      margin-bottom: 13px;
      padding: 6px;
      display: flex;
      overflow-x: auto;
    }

    .alert-filters h2 {
      display: none;
    }

    .alert-filters button {
      min-width: max-content;
      width: auto;
      padding: 0 11px;
      gap: 8px;
    }

    .alert-filters button.active {
      border-radius: 9px;
      box-shadow: none;
    }

    .alert-item {
      padding: 13px;
      grid-template-columns: 28px 1fr;
    }

    .alert-severity {
      width: 28px;
      height: 28px;
    }
  }
}
