:root {
    --p286-ink: #282828;
    --p286-orange: #F66308;
    --p286-orange-deep: #C44C06;
    --p286-muted: #6A6A6A;
    --p286-border: #E6E1DC;
    --p286-bg: #F7F5F3;
    --p286-card: #ffffff;
    --p286-header-bg: rgba(255, 255, 255, 0.94);
    --p286-control-bg: rgba(255, 255, 255, 0.8);
    --p286-control-hover: #FFF1E8;
    --p286-control-active: #F66308;
    --p286-field: #ffffff;
    --p286-copy: #3A3A3A;
    --p286-title: #282828;
    --p286-footer-bg: #282828;
    --p286-footer-text: #F6F4F2;
    --p286-shadow: 0 14px 36px rgba(40, 40, 40, 0.08);
    --rz-primary: #F66308;
    --rz-primary-light: #FF8A3D;
    --rz-primary-dark: #C44C06;
    --rz-secondary: #282828;
    --rz-base-background-color: #ffffff;
    --rz-text-color: #282828;
    color-scheme: light;
}

html[data-theme="dark"] {
    --p286-ink: #F4F4F4;
    --p286-orange: #FF7A2E;
    --p286-orange-deep: #F66308;
    --p286-muted: #B5B5B5;
    --p286-border: #333333;
    --p286-bg: #121212;
    --p286-card: #1C1C1C;
    --p286-header-bg: rgba(18, 18, 18, 0.94);
    --p286-control-bg: rgba(28, 28, 28, 0.9);
    --p286-control-hover: #2A211C;
    --p286-control-active: #FF7A2E;
    --p286-field: #141414;
    --p286-copy: #E8E8E8;
    --p286-title: #F7F7F7;
    --p286-footer-bg: #0E0E0E;
    --p286-footer-text: #E8E8E8;
    --p286-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
    --rz-primary: #FF7A2E;
    --rz-primary-light: #FFB07A;
    --rz-primary-dark: #F66308;
    --rz-secondary: #F4F4F4;
    --rz-base-background-color: #1C1C1C;
    --rz-text-color: #F2F2F2;
    --rz-grid-header-background-color: #242424;
    --rz-grid-stripe-background-color: #202020;
    --rz-grid-hover-background-color: #2C2C2C;
    --rz-grid-cell-color: #F2F2F2;
    --rz-grid-header-color: #F2F2F2;
    --rz-input-background-color: #141414;
    --rz-input-color: #F2F2F2;
    color-scheme: dark;
}

.language-selector,
.theme-selector {
    position: relative;
    display: inline-flex;
    z-index: 40;
}

.language-backdrop,
.theme-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 39;
    border: 0;
    padding: 0;
    background: transparent;
}

.language-selector.is-open .language-backdrop,
.theme-selector.is-open .theme-backdrop {
    display: block;
}

.language-trigger,
.theme-trigger {
    position: relative;
    z-index: 41;
}

.language-menu,
.theme-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 42;
    min-width: 4.6rem;
    padding: 0.35rem;
    border: 1px solid var(--p286-border);
    border-radius: 0.75rem;
    background: var(--p286-card);
    box-shadow: var(--p286-shadow);
}

.language-selector.is-open .language-menu,
.theme-selector.is-open .theme-menu {
    display: block;
}

.language-flag {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    height: 2.15rem;
    margin: 0;
    padding: 0 0.5rem 0 0.35rem;
    border: 1px solid var(--p286-border);
    border-radius: 0.65rem;
    background: var(--p286-card);
    color: var(--p286-copy);
    text-decoration: none;
    cursor: pointer;
}

.language-menu-item + .language-menu-item,
.theme-menu-item + .theme-menu-item {
    margin-top: 0.35rem;
}

.language-flag:hover,
.language-flag.is-active,
.theme-button.active,
.theme-button:hover {
    background: var(--p286-control-hover);
}

.language-flag-mark {
    width: 1.35rem;
    height: 0.95rem;
    display: inline-flex;
}

.language-flag-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

.language-flag-code {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.theme-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--p286-orange);
    cursor: pointer;
}

.theme-trigger {
    border: 1px solid var(--p286-border);
    background: var(--p286-control-bg);
}

.theme-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon-dark { display: none; }

html[data-theme="dark"] .theme-trigger .theme-icon-light { display: none; }
html[data-theme="dark"] .theme-trigger .theme-icon-dark { display: block; }

.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.goog-te-banner-frame,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
#goog-gt-tt,
.goog-tooltip {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

html, body {
    top: 0 !important;
}

.translate-host,
.goog-te-gadget {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
