/* One command row, with the web address in a centered Horizon extension. */
body { --toolbar-h:72px; }
body #desktop { padding-top:var(--toolbar-h); }
body > .fm-toolbar.glass {
  height:var(--toolbar-h);
  border-radius:0 0 12px 12px !important;
  overflow:visible !important;
}
/* Both pieces sample one viewport-wide gradient, with a shared origin. */
body.fm-horizon-theme > .fm-toolbar:is(.glass,#fm-toolbar) {
  border-top-width:0 !important;
  border-bottom-color:transparent !important;
  background:var(--horizon-chrome) !important;
  background-size:100vw calc(var(--toolbar-h) + 41px) !important;
  background-position:center top !important;
  background-origin:border-box !important;
  background-repeat:no-repeat !important;
}
body .fm-toolbar .toolbar-center-cluster .toolbar-btn { width:78px; height:58px; }
body .fm-toolbar .fm-web-addressbar {
  top:100%;
  left:50%; right:auto;
  transform:translateX(-50%);
  width:min(824px,calc(100vw - 32px));
  height:42px;
  padding:0 34px 10px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  isolation:isolate;
}
body .fm-toolbar .fm-web-addressbar::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:var(--horizon-chrome,linear-gradient(110deg,#18354e,#b4cfdd));
  background-size:100vw calc(var(--toolbar-h) + 41px);
  background-position:center calc(1px - var(--toolbar-h));
  background-repeat:no-repeat;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 824 42' preserveAspectRatio='none'%3E%3Cpath d='M0 0H824C807 0 814 42 790 42H34C10 42 17 0 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 824 42' preserveAspectRatio='none'%3E%3Cpath d='M0 0H824C807 0 814 42 790 42H34C10 42 17 0 0 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events:none;
}
body .fm-toolbar .fm-web-addressbar .fm-web-address-form { flex:1; }
@media(max-width:1180px),(max-height:760px) {
  body { --toolbar-h:64px; }
  body .fm-toolbar .toolbar-center-cluster .toolbar-btn { width:72px; height:52px; }
}
@media(max-width:700px) {
  body .fm-toolbar .toolbar-center-wrap { max-width:calc(100vw - 136px) !important; left:58px; right:66px; transform:none; }
  body .fm-toolbar .profile-card { width:44px; min-width:44px; padding:5px; justify-content:center; }
  body .fm-toolbar .profile-card > div:last-child { display:none; }
  body .fm-toolbar .fm-web-addressbar { width:calc(100vw - 24px); padding-inline:clamp(22px,4.2vw,34px); }
}
