html.dark body.portal-page { background: rgb(var(--silon-mist)); }
html.dark body.portal-page::before { display: none; }
html.dark .portal-page .o-menu-item:hover,
html.dark .portal-page .o-nav a:hover,
html.dark .portal-page .o-ghost:hover { background: rgb(var(--silon-hover)); }

html.dark .portal-page :is(.o-control, .o-combo, .o-phone, .o-phone-search, .o-seg, .o-phone__country) {
  background: rgb(var(--silon-surface));
}
html.dark .portal-page :is(.o-control, .o-combo, .o-phone, .o-phone-search):hover {
  border-color: rgb(var(--silon-slate));
}
html.dark .portal-page :is(.o-control:focus, .o-phone-search:focus, .o-combo:focus-within, .o-phone:focus-within) {
  background: rgb(var(--silon-paper));
}
html.dark .portal-page :is(.o-control, .o-phone-search):focus-visible {
  outline: 2px solid rgb(var(--silon-blue-ink));
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .portal-page .app-top {
    min-height: 64px;
    height: auto;
    padding-block: 8px;
    flex-wrap: wrap;
  }
  .portal-page .app-top-l { flex: 1 1 0; }
  .portal-page .app-top-a {
    flex: 0 0 100%;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
  }
  .portal-page .app-top-a:has(> .public-controls:only-child) { flex-basis: auto; }
}
