body.std-design .std-controls:where(:has(+ .fp-visitor-tools)) {
  margin-left: auto;
}

body.std-design .fp-visitor-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

body.std-design .std-topbar > .fp-visitor-tools > .std-header-search {
  flex: 0 0 44px;
  order: 0;
  margin: 0;
}

.fp-visitor-time {
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 5px 10px;
  border: 1px solid #75bba540;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3f3ea, #f8f5e8);
  color: #28574c;
  white-space: nowrap;
}

.fp-visitor-time > span {
  font-size: 24px;
  line-height: 1;
}

.fp-visitor-time small {
  display: block;
  font: 700 9px/1.3 system-ui;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.fp-visitor-time strong {
  display: block;
  font: 750 13px/1.4 system-ui;
  font-variant-numeric: tabular-nums;
}

body.dark .fp-visitor-time, [data-theme=dark] .fp-visitor-time {
  background: #303437;
  color: #d8e9df;
  border-color: #56605b;
}

@media (max-width: 1150px) {
  .fp-visitor-time { padding-inline: 8px; }
  .fp-visitor-time > span { display: none; }
  .fp-visitor-time strong { font-size: 12px; }
}

@media (min-width: 701px) and (max-width: 900px) {
  body.std-design .std-topbar { gap: 10px; padding: 12px; }
  body.std-design .std-brand, body.std-design .std-plugg { font-size: 17px; gap: 6px; }
  body.std-design .std-brand img, body.std-design .std-plugg img { width: 30px; height: 30px; }
}

@media (max-width: 700px) {
  body.std-design .fp-visitor-tools { order: 2; margin-left: auto; }
}

@media (max-width: 900px) and (orientation: landscape) {
  body.std-design .std-header .std-topbar:has(> .fp-visitor-tools) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 10px;
  }

  body.std-design .std-topbar:has(> .fp-visitor-tools)::before { display: none; }

  body.std-design .std-topbar > :is(.std-brand, .std-plugg) {
    flex: 0 0 auto;
    gap: 5px;
    font-size: clamp(12px, 2.2vw, 17px);
  }

  body.std-design .std-brand img, body.std-design .std-plugg img {
    width: 28px;
    height: 28px;
  }

  body.std-design .fp-visitor-tools { margin-left: auto; }
  body.std-design.christmas .std-header .std-christmas-crafts { padding-inline: 10px; }
}

@media (max-width: 620px) and (orientation: landscape) {
  body.std-design .std-header .std-topbar:has(> .fp-visitor-tools) { gap: 5px !important; }
  body.std-design .std-topbar > :is(.std-brand, .std-plugg) { font-size: 11px; }
  body.std-design .std-brand img, body.std-design .std-plugg img { width: 24px; height: 24px; }
  body.std-design.christmas .std-header .std-christmas-crafts { font-size: 12px; padding-inline: 6px; }
  .fp-visitor-time { padding-inline: 6px; }
  .fp-visitor-time strong { font-size: 11px; }
}

@media (max-width: 700px) and (orientation: portrait) {
  body.std-design .std-topbar > .fp-visitor-tools > .std-header-search,
  body.std-design .std-header:has(.fp-visitor-tools) .std-search-panel {
    display: none;
  }

  body.std-design .std-topbar {
    padding: 8px 10px;
    gap: 6px;
    flex-wrap: nowrap;
  }

  body.std-design .std-topbar::before { display: none; }
  body.std-design .std-brand, body.std-design .std-plugg {
    gap: 5px;
    font-size: clamp(12px, 3.1vw, 16px);
    letter-spacing: -.45px;
  }

  body.std-design .std-brand img, body.std-design .std-plugg img {
    width: clamp(28px, 8vw, 34px);
    height: clamp(28px, 8vw, 34px);
  }

  body.std-design:not(.christmas) .std-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.std-design:not(.christmas) .std-brand { grid-area: 1 / 1; }
  body.std-design:not(.christmas) .std-plugg { grid-area: 1 / 2; }
  body.std-design:not(.christmas) .std-controls {
    grid-area: 2 / 1;
    justify-self: start;
    margin: 0;
  }
  body.std-design:not(.christmas) .fp-visitor-tools { grid-area: 2 / 2; }
}
