/* Shared chrome of the original four-tab web client. */
:root {
  --topbar-h: 64px;
  --bottomnav-h: calc(82px + env(safe-area-inset-bottom, 0px));
  --hg-control-rim: var(--hg-glass-line);
  --hg-control-ink: var(--hg-glass-text);
  --hg-control-glass: var(--hg-smoke-face);
}
body[data-view] > header {
  padding: calc(var(--safe-top) + 9px) clamp(12px, 3.5vw, 34px) 9px !important;
  border: 0;
  box-shadow: 0 1px 0 #ffffff09;
  background: linear-gradient(#111215ed,#111215b8) !important;
  -webkit-backdrop-filter: saturate(1.15) blur(14px);
  backdrop-filter: saturate(1.15) blur(14px);
}
body[data-view] > header .topbar {
  height: 100%;
  max-width: 1100px;
  margin-inline: auto;
  gap: clamp(5px, 1.6vw, 13px);
}
body[data-view] #btnLogoHome {
  flex: none;
  min-height: 44px;
  color: var(--hg-glass-text);
  letter-spacing: -.055em;
  font: 780 clamp(21px, 5.5vw, 28px)/1 system-ui, sans-serif;
}
body[data-view] #btnLogoHome b {color: var(--hg-glass-ice); font-weight: 630}
body[data-view] header .search {
  height: 44px;
  max-width: 580px;
  margin-inline-start: auto;
  align-items: stretch;
  gap: 0;
  border-radius: 25px;
  background: var(--hg-control-glass);
  box-shadow: inset 0 0 0 1px var(--hg-control-rim), var(--hg-smoke-depth);
}
body[data-view] header #q {
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--hg-control-ink);
  border-radius: inherit;
  padding-inline: clamp(10px, 2.6vw, 17px) 0;
  font-size: 14px;
  text-overflow: ellipsis;
}
body[data-view] header #q::placeholder {color: var(--hg-glass-muted); opacity: 1}
body[data-view] header #btnSearch {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--hg-glass-text);
}
body[data-view] #btnSearch svg {width: 17px; height: 17px; margin: 0}
body[data-view] #btnSearch .lbl {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body[data-view] header button.toprank {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  min-width: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 22px;
  background: var(--hg-control-glass);
  box-shadow: inset 0 0 0 1px var(--hg-control-rim), var(--hg-smoke-depth);
  color: var(--hg-control-ink);
}
body[data-view] header button.toprank .ic {display: inline-flex}
body[data-view] header .toprank svg {width: 17px; height: 17px}
body[data-view] #btnLang {gap: 4px}
body[data-view] #langMenu {
  background: var(--hg-glass-surface);
  border: 1px solid var(--hg-glass-line);
  color: var(--hg-control-ink);
  padding: 5px;
  border-radius: 16px;
}
body[data-view] #langMenu button {min-height: 44px}
body[data-view] #langMenu button.on,
body[data-view] header .toprank.on {color: var(--hg-glass-ice); background-color: #34333a}
body[data-view] #bottomNav {
  inset-inline: clamp(12px, 5vw, 26px);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-width: 422px;
  margin-inline: auto;
  height: 62px;
  padding: 5px;
  align-items: stretch;
  border: 1px solid rgba(221,215,234,.34);
  border-radius: 35px;
  background: #303137;
  box-shadow: var(--hg-lens-depth);
}
/* The rim uses the outer two pixels. Text and hit targets sit on clear glass. */
@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
body[data-view] #bottomNav::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  background: var(--hg-lens-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
}
body[data-view] #bottomNav button {
  position: relative;
  isolation: isolate;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 2px 2px 6px;
  border-radius: 27px;
  color: #e2e1e8;
  text-shadow: 0 1px 3px #080810;
  font: 520 11px/1.22 system-ui,sans-serif;
  letter-spacing: .005em;
}
body[data-view] #bottomNav .ic svg {width: 20px; height: 20px}
body[data-view] #bottomNav .on {
  color: #fff;
  background: var(--hg-lens-selected);
  box-shadow: inset 0 1px 1px #fff9, inset 0 -1.5px 1px #c8b1f591, inset 1px 0 2px #e1d9ff26, 0 2px 6px #09090f80;
}
body[data-view] #bottomNav .on .ic {color: #f2ecff}
body[data-view] #bottomNav .on::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: var(--hg-glass-violet);
  box-shadow: 0 0 5px rgba(188, 163, 243, .22);
  pointer-events: none;
}
body[data-view] :is(header, #bottomNav) :is(button,input):focus-visible {
  z-index: 1;
  outline: 2px solid var(--hg-glass-violet);
  outline-offset: -2px;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  body[data-view] #bottomNav {
    background: var(--hg-lens-face);
    -webkit-backdrop-filter: var(--hg-lens-backdrop);
    backdrop-filter: var(--hg-lens-backdrop);
  }
}
@media (max-width: 370px) {
  body[data-view] > header {padding-inline: 7px !important}
  body[data-view] > header .topbar {gap: 4px}
  body[data-view] header button.toprank {padding-inline: 6px}
  body[data-view] header #q {padding-inline-start: 10px; font-size: 13px}
}
@media (min-width: 720px) {
  body[data-view] #bottomNav {inset-inline: 16px; bottom: calc(10px + env(safe-area-inset-bottom, 0px))}
  body[data-view] header .search {flex: 1; margin-inline-start: auto}
}
@media (prefers-reduced-transparency: reduce) {
  body[data-view] #bottomNav {background: var(--hg-glass-surface); -webkit-backdrop-filter: none; backdrop-filter: none}
  body[data-view] > header {background: var(--hg-glass-bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none}
}
