/* Presentation copies exist only in the sparse view. Full views keep their data. */
.list-inline-badges { display: none; }
.list-badges-popover { display: none; }
@media screen {
  [data-list-layout="compact"] .list-summary-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
  }
  [data-list-layout="compact"] .list-summary-name { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
  [data-list-layout="compact"] .list-inline-badges {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 0;
    min-width: 34px;
    overflow: hidden;
    font: 11px/1.3 var(--friendly-font, "Segoe UI", Arial, sans-serif);
    font-weight: 400;
  }
  .list-inline-badges > :not(.list-badges-more),
  .list-badges-popover > .list-summary-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 4px;
    min-height: 22px;
    margin: 0;
    padding: 3px 6px;
    border: 1px solid #dce4d8;
    border-radius: 5px;
    background: #f0f4ec;
    color: #425b47;
    font: inherit;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
  }
  .list-inline-badges[hidden], .list-inline-badges > [hidden], .list-badges-more[hidden] { display: none !important; }
  .list-badges-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 30px;
    margin: 0;
    padding: 4px;
    border: 1px solid #dce4d8;
    border-radius: 6px;
    background: #f0f4ec;
    color: #365b43;
    font: inherit;
    cursor: pointer;
    box-shadow: none;
    transition: background-color 150ms ease;
  }
  .list-badges-more:hover, .list-badges-more[aria-expanded="true"] { background: #e4eddd; }
  .list-badges-more:focus-visible { outline: 2px solid #365b43; outline-offset: -2px; }
  .list-badges-popover:is(:popover-open, .is-open) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    position: fixed;
    inset: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: min(360px, calc(100dvh - 24px));
    overflow: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 12px;
    border: 1px solid #dce4d8;
    border-radius: 10px;
    background: #fff;
    color: #283d30;
    box-shadow: 0 8px 30px #1b322027;
    font: 12px/1.5 "Segoe UI", Arial, sans-serif;
    z-index: 100;
  }
  .list-badges-popover > .list-summary-badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  @media (max-width: 760px), (pointer: coarse) {
    [data-list-layout="compact"] .list-inline-badges { min-width: 44px; }
    .list-badges-more { min-width: 44px; min-height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) { .list-badges-more { transition: none; } }
}
@media print { .list-inline-badges, .list-badges-popover { display: none !important; } }
