html .topbar, body.app .app-header {
  --header-text: #c9d1d9; --header-hover: #ffffff0f; --header-border: #ffffff1f;
}
html.light-theme .topbar, html[data-theme="light"] .topbar, body.app.light-mode .app-header {
  --header-text: #1e293b; --header-hover: #e6ebf2; --header-border: #00000026;
}
html :is(.topbar, .app-header) .cd-header-button {
  appearance: none; display: inline-flex; position: relative; align-items: center; justify-content: center;
  box-sizing: border-box; flex: 0 0 44px; width: 44px !important; height: 44px !important;
  min-width: 44px; margin: 0 !important; padding: 0 !important; border: 1px solid transparent !important;
  border-radius: 10px; background: transparent; box-shadow: none; color: var(--header-text) !important;
  font: inherit; text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
html :is(.topbar, .app-header) .cd-header-button:is(:hover, [aria-expanded="true"]) { background: var(--header-hover) !important; border-color: var(--header-border) !important; }
html :is(.topbar, .app-header) .cd-header-button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
html :is(.topbar, .app-header) .cd-header-button:disabled { opacity: .45; cursor: default; }
html .app-header #fullscreenToggle:not([data-fullscreen-bound]) { opacity:1; }
html :is(.topbar, .app-header) .cd-header-button svg { width: 20px; height: 20px; flex-shrink: 0; pointer-events: none; }
html .cd-notification-badge {
  position: absolute; top: 0; right: -2px; display: grid; place-items: center; box-sizing: border-box;
  min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--c-header, var(--surface, #111318));
  border-radius: 10px; background: #dc2626; color: #fff; font: 700 10px/14px Inter, "Segoe UI", sans-serif;
  pointer-events: none;
}
html .cd-notification-badge[hidden] { display: none; }
html .cd-notifications {
  --c-surface: #111318; --c-surface2: #17191f; --c-border: #ffffff14; --c-border2: #ffffff1f;
  --c-text: #c9d1d9; --c-text2: #c3cad3; --c-text3: #8a93a0;
  display: flex !important; flex-direction: column; font-family: Inter, "Segoe UI", sans-serif;
  overflow: hidden !important;
}
html.light-theme .cd-notifications, body.app.light-mode .cd-notifications {
  --c-surface: #fff; --c-surface2: #f1f3f7; --c-border: #d8dee7; --c-border2: #d8dee7;
  --c-text: #1f2937; --c-text2: #4b5563; --c-text3: #64748b;
}
html .cd-notifications[hidden] { display: none !important; }
html .cd-notification-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-bottom: 1px solid var(--c-border); }
html .cd-notification-header h2 { margin: 0; color: var(--c-text); font: 650 15px/22px Inter, "Segoe UI", sans-serif; }
html .cd-notification-read-all, html .cd-notification-retry, html .cd-notification-footer {
  appearance: none; padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; color: #60a5fa;
  font: 600 12px/18px Inter, "Segoe UI", sans-serif; cursor: pointer; user-select: none;
}
html.light-theme .cd-notifications :is(.cd-notification-read-all, .cd-notification-retry, .cd-notification-footer), body.app.light-mode .cd-notifications :is(.cd-notification-read-all, .cd-notification-retry, .cd-notification-footer) { color: #1d4ed8; }
html .cd-notifications button:disabled { opacity: .5; cursor: default; }
html .cd-notifications button:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
html .cd-notification-list { min-height: 0; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
html .cd-notification-row { display: flex; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--c-border); }
html .cd-notification-row:last-child { border-bottom: 0; }
html .cd-notification-main { appearance: none; display: flex; flex: 1; min-width: 0; align-items: flex-start; gap: 10px; padding: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--c-text); text-align: left; font: inherit; cursor: pointer; user-select: none; }
html .cd-notification-main:hover, html .cd-notification-action:hover, html .cd-notification-read-all:not(:disabled):hover, html .cd-notification-footer:hover { background: var(--c-surface2); }
html .cd-notification-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: #2563eb20; color: #60a5fa; }
html .cd-notification-icon svg { width: 17px; height: 17px; }
html .cd-notification-text { display: grid; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
html .cd-notification-title { color: var(--c-text); font-size: 14px; font-weight: 650; line-height: 20px; }
html .cd-notification-row.is-read .cd-notification-title { font-weight: 400; }
html .cd-notification-body { color: var(--c-text2); font-size: 13px; line-height: 19px; }
html .cd-notification-time { color: var(--c-text3); font-size: 12px; line-height: 18px; }
html .cd-notification-action { appearance: none; display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin: 7px 2px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-text2); cursor: pointer; }
html .cd-notification-action svg { width: 16px; height: 16px; }
html .cd-notification-status { display: grid; flex: 0 0 auto; gap: 8px; justify-items: center; padding: 20px 12px; color: var(--c-text2); text-align: center; font-size: 13px; line-height: 20px; }
html .cd-notification-footer { flex: 0 0 auto; margin-top: 4px; padding: 10px 12px; }
html .cd-notifications [hidden] { display: none !important; }
body.app #adminPanel .app-header .header-right-icons .responsive-navbar #customizerTrigger { margin:0!important; }
@media(max-width:720px) {
  html .topbar .public-language-trigger, body.app .app-header .public-language-trigger { width:122px; min-width:122px; padding:0 12px 0 11px; grid-template-columns:24px minmax(0,1fr) 18px; gap:6px; font-size:12px; }
}
@media(max-width:400px) {
  html .topbar .public-language-trigger, body.app .app-header .public-language-trigger { width:44px; min-width:44px; padding:0; grid-template-columns:1fr; }
  html .topbar :is(.public-language-label, .public-language-chevron), body.app .app-header :is(.public-language-label, .public-language-chevron) { display:none; }
}
@media(prefers-reduced-motion:reduce) { html :is(.topbar, .app-header) .cd-header-button { transition: none; } }
