.page-theme-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
  gap: 2px;
  border: 1px solid #cbdbe6;
  border-radius: 999px;
  background: #f3f8fb;
}

.page-theme-switch button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #41617b;
  cursor: pointer;
}

.page-theme-switch button[aria-pressed="true"] { background: #12344c; color: white; }
.page-theme-switch button:hover:not([aria-pressed="true"]) { background: #e2edf4; }
.page-theme-switch button:focus-visible { outline: 2px solid #087ca4; outline-offset: 1px; }
.page-theme-switch svg { width: 17px; height: 17px; }

html[data-page-theme="light"] .ppt-section-intro,
html[data-page-theme="light"] .ppt-about p,
html[data-page-theme="light"] .ppt-row-label,
html[data-page-theme="light"] .ppt-dashboard figcaption,
html[data-page-theme="light"] .ppt-product .ppt-question,
html[data-page-theme="light"] .cmp.hot li { color: var(--muted); }

html[data-page-theme="light"] .ppt-products { background: var(--panel); }
html[data-page-theme="light"] .ppt-award h2 { color: var(--txt); }
html[data-page-theme="light"] .ppt-hkie.card,
html[data-page-theme="light"] .ppt-service.card { box-shadow: none; }
html[data-page-theme="light"] .project-photo-pending > span,
html[data-page-theme="light"] .project-photo-source a { color: var(--cyan); }

@media (max-width: 1080px) {
  .nav-inner:has(.page-theme-switch) { gap: 12px; }
  .nav-right:has(.page-theme-switch) { gap: 8px; margin-left: 0; }
}

@media (max-width: 420px) {
  .nav-inner:has(.page-theme-switch) { gap: 8px; padding-inline: 12px; }
  .nav-inner:has(.page-theme-switch) .nav-brand { min-width: 0; }
  .nav-inner:has(.page-theme-switch) .nav-brand img { height: 32px; width: auto; object-fit: contain; }
  .nav-inner:has(.page-theme-switch) .nav-toggle { width: 32px; height: 34px; flex-shrink: 0; }
  .nav-right:has(.page-theme-switch) .lang-switch button { width: 30px; }
}
