/* R5 header actions: the existing local workspace, sign-in and account routes remain unchanged. */
body.front-v2.zc25-brand .zc-header .zc-header-actions {
  --z5-action-bg:#f8fbff;
  --z5-action-hover:#eaf3ff;
  --z5-action-border:#d8e5f5;
  --z5-action-ink:#2a4b70;
  --z5-login-bg:#1767ff;
  --z5-login-hover:#0c55e8;
  --z5-login-ink:#fff;
  gap:8px;
  flex-shrink:0;
}
html[data-theme="dark"] body.front-v2.zc25-brand .zc-header .zc-header-actions {
  --z5-action-bg:#1b2d43;
  --z5-action-hover:#263f5d;
  --z5-action-border:#3c526d;
  --z5-action-ink:#d5e5f8;
  --z5-login-bg:#7ab5ff;
  --z5-login-hover:#9ac8ff;
  --z5-login-ink:#10233d;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .z6-header-workspace {
  box-sizing:border-box;
  height:40px;
  min-height:40px;
  min-width:40px;
  width:auto;
  flex:0 0 auto;
  gap:7px;
  padding:0 11px;
  border:1px solid var(--z5-action-border)!important;
  border-radius:12px;
  background:var(--z5-action-bg)!important;
  color:var(--z5-action-ink)!important;
  box-shadow:0 1px 2px #17385d05!important;
  font-size:13px;
  font-weight:650;
  line-height:1;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .z6-header-workspace:hover {
  background:var(--z5-action-hover)!important;
  border-color:var(--z25-blue)!important;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .hu-login-btn {
  display:inline-flex;
  box-sizing:border-box;
  align-items:center;
  justify-content:center;
  min-width:76px;
  height:40px;
  min-height:40px;
  gap:7px;
  padding:0 14px!important;
  border:1px solid transparent!important;
  border-radius:12px;
  background:var(--z5-login-bg)!important;
  color:var(--z5-login-ink)!important;
  box-shadow:0 3px 9px #1767ff1a!important;
  font-size:13px;
  font-weight:700;
  line-height:1;
  text-decoration:none;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .hu-login-btn:hover {
  background:var(--z5-login-hover)!important;
  color:var(--z5-login-ink)!important;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions :is(.zc22-bookmark-icon,.zc22-login-icon) {
  display:block!important;
  width:18px;
  height:18px;
  flex:0 0 18px;
  stroke-width:1.8;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .hu-btn {
  box-sizing:border-box;
  min-height:40px;
  padding:4px 10px 4px 5px;
  gap:7px;
  border:1px solid var(--z5-action-border);
  border-radius:12px;
  background:var(--z5-action-bg);
  color:var(--z5-action-ink);
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .hu-avatar {
  width:28px;height:28px;flex:0 0 28px;border-radius:9px;
}
body.front-v2.zc25-brand .zc-header .zc-header-actions .hu-name {max-width:88px;}
body.front-v2.zc25-brand .zc-header .zc-header-actions .z6-header-workspace .zc22-bookmark-label {display:inline!important;}
body.front-v2.zc25-brand .zc-header .zc-header-actions :is(.z6-header-workspace,.hu-login-btn,.hu-menu):focus-visible {
  outline:3px solid var(--z25-blue);
  outline-offset:3px;
}
/* Tablet keeps the same destinations, but the saved icon has its own labelled hit target. */
@media(min-width:768px) and (max-width:1279px) {
  body.front-v2.zc25-brand .zc-header .zc-header-actions .z6-header-workspace {
    width:40px;min-width:40px;padding:0;
  }
  body.front-v2.zc25-brand .zc-header .zc-header-actions .z6-header-workspace .zc22-bookmark-label {display:none!important;}
}
@media(max-width:767px) {
  /* The existing mobile header and bottom workspace navigation remain responsible for their controls. */
  body.front-v2.zc25-brand .zc-header .zc-header-actions {gap:6px;}
}
@media(prefers-reduced-motion:no-preference) {
  /* Legacy front-v2 disables transitions globally; only these safe properties are re-enabled. */
  body.front-v2.zc25-brand .zc-header .zc-header-actions :is(.z6-header-workspace,.hu-login-btn,.hu-btn) {
    transition:background-color 140ms ease-out,border-color 140ms ease-out,color 140ms ease-out,translate 120ms ease-out!important;
  }
  body.front-v2.zc25-brand .zc-header .zc-header-actions :is(.z6-header-workspace,.hu-login-btn):active {translate:0 1px;}
}
@media(pointer:coarse) and (min-width:768px) {
  body.front-v2.zc25-brand .zc-header .zc-header-actions :is(.z6-header-workspace,.hu-login-btn,.hu-btn) {
    min-height:44px;height:44px;min-width:44px;
  }
}
