.updates-page {
    --update-added-bg: color-mix(in srgb, var(--m-base) 18%, transparent);
    --update-removed-bg: color-mix(in srgb, var(--hidden) 14%, transparent);
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 32px 80px;
}
[data-theme="dark"] .updates-page {
    --update-added-bg: color-mix(in srgb, var(--m-base) 11%, transparent);
    --update-removed-bg: color-mix(in srgb, var(--hidden) 9%, transparent);
}
.updates-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-bottom: 8px;
}
.updates-controls .search {
    flex: 1 1 190px;
    max-width: 280px;
    margin-left: auto;
}
.updates-controls .search input {
    width: 100%;
    padding: 7px 12px;
}
.updates-filters.graph-filters {
    margin: 0;
}
@media (max-width: 720px) {
    .updates-controls .search {
        display: none;
    }
    .updates-filters.graph-filters {
        display: flex;
        position: static;
        padding: 0;
        max-height: none;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        animation: none;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        gap: 6px;
    }
    .updates-filters .graph-flabel {
        display: none;
    }
    .updates-filters .graph-fgroup,
    .updates-filters .chips {
        flex-wrap: nowrap;
    }
    .updates-filters .chips {
        gap: 0;
    }
    .updates-filters .chip {
        padding: 5px 4px;
        font-size: 11px;
        white-space: nowrap;
        border-radius: 0;
    }
    .updates-filters .chip + .chip {
        margin-left: -1px;
    }
    .updates-filters .chip[aria-pressed="true"] {
        z-index: 1;
    }
}
.updates-filters .chip:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}
.updates-fallback-note {
    margin-bottom: 20px;
}
@media (max-width: 380px) {
    .updates-filters .chip {
        font-size: 10px;
        padding-right: 2px;
        padding-left: 2px;
    }
    .updates-filters.graph-filters {
        gap: 4px;
    }
}
.updates-heading {
    font-size: 16px;
    font-weight: 600;
    margin: 36px 0 0;
    padding: 0 16px 16px;
    border-bottom: 2px solid var(--ink);
}
.updates-heading:first-child {
    margin-top: 0;
}
.update-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    width: 100%;
    padding: 22px 16px;
    text-align: left;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--edge);
}
button.update-main {
    cursor: pointer;
}
.update-row:has(button.update-main):hover,
.update-row:focus-within {
    background: var(--paper-2);
}
button.update-main:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}
.update-main {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0;
    text-align: left;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
}
.update-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}
.update-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.update-logo--ph {
    font-weight: 700;
    background: var(--card);
}
.update-content {
    display: grid;
    gap: 7px;
}
.update-content strong {
    font-size: 17px;
    font-weight: 600;
}
.update-change {
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.update-field {
    color: var(--ink-soft);
}
.update-missing {
    font-size: 12px;
    color: var(--ink-soft);
}
.update-reason {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
}
.update-badge {
    font-size: 12px;
    border: 1px solid var(--edge);
    padding: 4px 7px;
    white-space: nowrap;
}
.update-badge.is-added {
    color: var(--m-base);
    border-color: currentColor;
    background: var(--update-added-bg);
}
.update-badge.badge--hidden {
    border-color: var(--hidden);
}
@media (max-width: 720px) {
    .updates-page {
        padding: 24px 12px 48px;
    }
    .updates-heading {
        padding-left: 12px;
    }
    .update-row {
        display: block;
        position: relative;
        padding: 18px 12px;
    }
    .update-main {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 12px;
    }
    .update-content {
        display: contents;
    }
    .update-content strong {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        font-size: 15px;
        padding-right: 30px;
    }
    .update-content > :not(strong) {
        grid-column: 1 / -1;
    }
    .update-logo {
        grid-column: 1;
        grid-row: 1;
        width: 32px;
        height: 32px;
    }
}
.update-meta {
    position: relative;
    font-size: 12px;
}
.update-meta__toggle {
    display: none;
}
.update-meta__details {
    display: grid;
    justify-items: end;
    gap: 9px;
}
.update-meta time {
    color: var(--ink-soft);
    white-space: nowrap;
}
.update-change {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.update-field {
    flex-shrink: 0;
}
.update-diff {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    border-radius: 3px;
}
.update-sign {
    font-weight: 700;
    font-size: 15px;
}
.update-diff.is-added,
.update-text.is-added {
    background: var(--update-added-bg);
    color: var(--m-base);
}
.update-diff.is-removed,
.update-text.is-removed {
    background: var(--update-removed-bg);
    color: var(--hidden);
}
.update-arrow {
    color: var(--ink-soft);
    font-weight: 600;
}
.update-added-note {
    font-size: 13px;
    color: var(--m-base);
    font-weight: 500;
}
.update-diff.is-removed .badge,
.update-text.is-removed {
    text-decoration: line-through;
}
.update-diff .badge--ghost {
    color: var(--ink);
    border-color: var(--edge);
}
.update-text {
    display: block;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
}
.update-links {
    font-weight: 400;
}
.update-content .update-links strong {
    font-size: inherit;
    font-weight: 600;
}
.updates-bottom {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 32px;
}
.updates-more {
    padding: 12px 28px;
    font: inherit;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--ink);
    cursor: pointer;
}
.updates-more:hover {
    background: var(--paper-2);
}
.updates-more[hidden] {
    display: none;
}
#updates-count {
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
}
@media (max-width: 720px) {
    .update-meta {
        position: absolute;
        top: 18px;
        right: 12px;
    }
    .update-change {
        gap: 2px;
    }
    .update-meta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        padding: 0;
        color: var(--ink-soft);
        background: transparent;
        border: 0;
        cursor: pointer;
    }
    .update-meta__toggle svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .update-meta__toggle.is-added {
        color: var(--m-base);
    }
    .update-meta__toggle.is-hidden {
        color: var(--hidden);
    }
    .update-meta__toggle:focus-visible {
        outline: 2px solid var(--brand);
        outline-offset: 2px;
    }
    .update-meta__details {
        display: none;
        position: absolute;
        z-index: 5;
        top: calc(100% + 5px);
        right: 0;
        align-items: center;
        gap: 8px;
        padding: 10px;
        background: var(--card);
        border: 1px solid var(--ink);
        box-shadow: 3px 3px 0 var(--ink);
    }
    .update-meta__toggle[aria-expanded="true"] + .update-meta__details {
        display: flex;
    }
}
.updates-top-title {
    font-size: 13px;
    line-height: 1.3;
}
.page-updates .topbar__search {
    display: flex;
    justify-content: flex-end;
}
.page-updates .topbar__search input {
    width: min(280px, 100%);
}
@media (max-width: 720px) {
    .page-updates .topbar__brand {
        font-size: 13px;
        letter-spacing: -0.5px;
    }
    .updates-top-title {
        font-size: 12px;
    }
}
