image.symbolic-circular {
  background-color: color-mix(in srgb, currentColor 8%, transparent);
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  -gtk-icon-style: symbolic;
}

#pps-loading-message {
    background-color: var(--window-bg-color);
    color: var(--window-fg-color);
    border-radius: 10px;
    padding: 10px;
}

.content-view.document-page {
    border-radius: 0;
}


.zoom-overlay button.circular {
    padding: 3px;
}

pps-view:focus {
    outline: 2px solid color-mix(in srgb, var(--accent-color) 50%, transparent);
    outline-offset: 2px;
}

pps-view.document-page {
    background-color: white;
    padding: 0;
}

pps-view.document-page.inverted {
    background-color: black;
}

.inverted-color {
    filter: invert(1) hue-rotate(180deg);
}

pps-presentation-view {
    background-color: black;
}

pps-presentation-view.white-mode {
    background-color: white;
}

.toolbar.nested {
  padding-top: 0px;
  padding-bottom: 0px;
}

.content-view .combo {
    padding-left: 2px;
    padding-right: 2px;
}

pps-sidebar-thumbnails child.activatable picture {
    border: 1px solid var(--shade-color);
    background-clip: content-box;
    background-color: #ffffff;
}

pps-sidebar-thumbnails child.activatable picture.inverted-color {
    /* The border gets inverted too and becomes light otherwise */
    border: 1px solid white;
}

pps-sidebar-thumbnails picture {
    border-radius: 6px;
}

pps-sidebar-thumbnails.columns-1 gridview > child {
    padding: 12px 12px 6px;
    border-radius: 12px;
}

pps-sidebar-thumbnails.columns-2 gridview > child {
    padding: 8px 8px 6px;
    border-radius: 6px;
}

window.pps-annotation-window, pps-sidebar-annotations-row {
    --annotation-color: var(--yellow-4);
    --annotation-fg-color: oklab(from var(--annotation-color) round(1 - l, 1) 0 0);
}

pps-sidebar-annotations-row {
    padding: 8px 0;
}

pps-sidebar-annotations-row .annotation-content {
    padding: 6px;
    border-radius: 6px;
    background-color: var(--annotation-color);
    color: var(--annotation-fg-color);
}

pps-sidebar-annotations-row .reference-bar {
    padding: 0 3px;
    border-radius: 3px;
    background-color: var(--annotation-color);
}

window.pps-annotation-window {
    background-color: var(--annotation-color);
}

window.pps-annotation-window headerbar {
    background-color: var(--annotation-color);
    color: var(--annotation-fg-color);
    box-shadow: none;
    font-weight: 800;
    font-size: larger;
}

window.pps-annotation-window text {
    background-color: var(--annotation-color);
    color: var(--annotation-fg-color);
}

window.pps-annotation-window label {
    padding-top: 12px;
    padding-bottom: 6px;
}

window.pps-annotation-window textview {
    background-color: var(--annotation-color);
    color: var(--annotation-fg-color);
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 18px;
}

.color-button {
    border-radius: 9999px;
    padding: 3px;
    background: var(--accent-bg-color);
    min-width: 24px;
    min-height: 24px;
    outline: none;
    background-clip: content-box;
    box-shadow: none;
}

.color-button:checked {
    box-shadow: 0 0 0 3px var(--accent-bg-color);
}

.accent-button:focus:focus-visible {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

.accent-button:checked:focus-visible {
    box-shadow: 0 0 0 3px var(--accent-bg-color),
                0 0 0 6px color-mix(in srgb, var(--accent-color) 30%, transparent);
}

#color-button-yellow {
    --accent-bg-color: var(--yellow-4);
}

#color-button-orange {
    --accent-bg-color: var(--orange-3);
}

#color-button-red {
    --accent-bg-color: var(--red-2);
}

#color-button-purple {
    --accent-bg-color: var(--purple-2);
}

#color-button-blue {
    --accent-bg-color: var(--blue-3);
}

#color-button-green {
    --accent-bg-color: var(--green-3);
}

#text-highlight > image {
    background-color: var(--accent-bg-color);
    background-clip: content-box;
}
