/* Project snapshots: the detail page's back link, the height of its Used by grid and the Tags field. Everything else
   on the snapshot pages uses shared components and classes. */
.project-snapshots-runs-grid {
    height: 22rem;
    min-height: 0;
}

/* The switch sizes its label to --label-width, a fixed column made for labels on the left; sized to its text, the
   hold label stays on one line inside its card. */
.project-snapshots-hold-toggle {
    --label-width: auto;
}

.project-snapshots-detail-screen .wc-ui-detail-heading {
    overflow-wrap: anywhere;
}

/* The heading is a grid; the link keeps its own width there instead of stretching across the header. */
.project-snapshots-back {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--nwc-accent);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.project-snapshots-back:hover {
    text-decoration: underline;
}

/* The Tags field. Its options open over the content under the text input, and the picked tags wrap below it; both
   line up with the input, which follows the text field's 10.5rem label column and 1rem gap and is at most 28.75rem
   wide. */
.project-snapshots-tag-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-snapshots-tag-input {
    position: relative;
    --nwc-suggestion-position: static;
    --nwc-suggestion-popup-inset-inline-start: 11.5rem;
    --nwc-suggestion-popup-inline-size: min(28.75rem, calc(100% - 11.5rem));
    --nwc-suggestion-popup-max-block-size: 15rem;
    --nwc-suggestion-row-font-family: var(--nwc-font-primary);
    --nwc-suggestion-row-font-size: 1rem;
    --nwc-suggestion-row-font-weight: 400;
    --nwc-suggestion-row-line-height: 1.7;
    --nwc-suggestion-row-color: var(--nwc-text-secondary);
    --nwc-suggestion-row-active-outline: .0625rem solid var(--nwc-accent);
    --nwc-suggestion-row-active-outline-offset: -.0625rem;
}

.project-snapshots-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    max-width: 28.75rem;
    margin-inline-start: 11.5rem;
}

.project-snapshots-tag-chip {
    --nwc-tag-gap: .25rem;
    --nwc-tag-border-width: 0;
    --nwc-tag-radius: .25rem;
    --nwc-tag-background: var(--nwc-accent-subtle);
    --nwc-tag-color: var(--nwc-accent);
    --nwc-tag-font-size: 1rem;
    --nwc-tag-font-weight: 400;
    --nwc-tag-line-height: 1.7;
    --nwc-tag-min-block-size: auto;
    --nwc-tag-padding-block: .125rem;
    --nwc-tag-padding-inline: .5rem .125rem;
    --nwc-tag-label-white-space: normal;
    --nwc-tag-label-overflow: visible;
    --nwc-tag-label-text-overflow: clip;
    --nwc-tag-close-inline-size: 2rem;
    --nwc-tag-close-block-size: 2rem;
    --nwc-tag-close-border: .0625rem solid transparent;
    --nwc-tag-close-padding: .5rem;
    --nwc-tag-close-border-radius: .625rem;
    --nwc-tag-close-margin-inline-end: 0;
    --nwc-tag-close-font-size: .7rem;
    --nwc-tag-close-font-weight: 600;
    --nwc-tag-close-line-height: 1.5;
    --nwc-tag-close-hover-background: var(--nwc-accent-subtle);
    --nwc-tag-close-hover-opacity: 1;
    overflow-wrap: anywhere;
}
