:root {
    --solar-action-bg: #32834f;
    --solar-action-hover: #286d41;
    --solar-action-pressed: #205a35;
}

/* Action buttons share one solid treatment; navigation and preference toggles keep their own styles. */
html:root[data-resolved-theme] body :is(
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    a[class*="-button"],
    summary,
    [role="button"],
    .page-link,
    a.dropdown-item,
    .room-buttons a,
    .solar-address-navigation span
):not(:where(.solar-navigation *, .ui-pref-icon)) {
    background-color: var(--solar-action-bg) !important;
    background-image: none !important;
    border: 1px solid var(--solar-action-bg) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 700;
    min-height: 36px;
    padding: 8px 14px;
    line-height: 1.3;
    cursor: pointer;
}

html:root[data-resolved-theme] body :is(
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    a[class*="-button"],
    summary,
    [role="button"],
    .page-link,
    a.dropdown-item,
    .room-buttons a,
    .solar-address-navigation span
):not(:where(.solar-navigation *, .ui-pref-icon)):hover:not(:disabled):not([aria-disabled="true"]) {
    background-color: var(--solar-action-hover) !important;
    border-color: var(--solar-action-hover) !important;
}

html:root[data-resolved-theme] body :is(
    button,
    input[type="submit"],
    input[type="button"],
    .btn,
    a[class*="-button"],
    summary,
    [role="button"],
    .page-link,
    a.dropdown-item,
    .room-buttons a
):not(:where(.solar-navigation *, .ui-pref-icon)):focus-visible {
    outline: 3px solid #a5dfb6;
    outline-offset: 3px;
}

html:root[data-resolved-theme] body :is(button, .btn):not(:where(.solar-navigation *, .ui-pref-icon))[aria-pressed="true"] {
    background: var(--solar-action-pressed) !important;
    border-color: var(--solar-action-pressed) !important;
    box-shadow: inset 0 0 0 2px #fff !important;
}

html:root[data-resolved-theme] body :is(button, input[type="submit"], input[type="button"], .btn):not(:where(.solar-navigation *, .ui-pref-icon)):disabled,
html:root[data-resolved-theme] body .btn:not(:where(.solar-navigation *, .ui-pref-icon))[aria-disabled="true"] {
    opacity: .55;
    cursor: default;
}

html:root[data-resolved-theme] body summary:not(:where(.solar-navigation *, .ui-pref-icon)) {
    width: fit-content;
    max-width: 100%;
}
html:root[data-resolved-theme] body summary:not(:where(.solar-navigation *, .ui-pref-icon)) > span {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
html:root[data-resolved-theme] body button.btn-close {
    width: 36px;
    height: 36px;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 3 10 10M13 3 3 13' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 14px 14px !important;
}

html:root[data-resolved-theme] body input[type="file"]::file-selector-button {
    background: var(--solar-action-bg);
    border: 1px solid var(--solar-action-bg);
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
}
html:root[data-resolved-theme] body input[type="file"]::file-selector-button:hover {
    background: var(--solar-action-hover);
}
